joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45f560
Capabilities:
Check if file exists
Get file attributes
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x40
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], edx
xor bl, bl
cmp dword [esi + 0x14], 8
jb 0x45f57d
mov eax, dword [esi]
jmp 0x45f57f
mov eax, esi
test eax, eax
je 0x45f6a3
cmp word [eax], 0
je 0x45f6a3
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x45f6a3
test al, 0x10
jne 0x45f6a3
cmp dword [esi + 0x14], 8
jb 0x45f5b1
mov esi, dword [esi]
push 0x479544
push esi
call fcn.0043cf4b
mov esi, eax
add esp, 8
test esi, esi
je 0x45f6a3
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push esi
movlpd qword [esp + 0x18], xmm0
call fcn.0043f4a4
push 2
push 0
push esi
call fcn.0043ec34
lea eax, [esp + 0x24]
push eax
push esi
call fcn.0043f4a4
lea eax, [esp + 0x34]
push eax
push esi
call fcn.0043f52b
add esp, 0x24
cmp dword [esp + 0x10], 0x28
jbe 0x45f69a
xor eax, eax
mov dword [esp + 0x20], 0x48535844
push esi
push 1
mov word [esp + 0x40], ax
xorps xmm0, xmm0
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
lea eax, [esp + 0x28]
push 0x28
push eax
mov dword [esp + 0x34], 0x28
mov dword [esp + 0x38], 0
mov dword [esp + 0x3c], 0
movsd qword [esp + 0x40], xmm0
call fcn.0043d148
add esp, 0x10
test eax, eax
je 0x45f69a
mov eax, dword [esp + 0x2c]
not eax
ror eax, 3
cmp eax, dword [esp + 0xc]
jne 0x45f69a
cmp dword [esp + 0x20], 0x48535844
jne 0x45f69a
cmp dword [esp + 0x24], 0x28
jne 0x45f69a
movzx ecx, word [esp + 0x38]
add ecx, dword [esp + 0x44]
mov eax, dword [esp + 0x3c]
add ecx, dword [esp + 0x40]
add eax, 0x28
add eax, ecx
cmp eax, dword [esp + 0x10]
sete bl
push esi
call fcn.0043c824
add esp, 4
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x106e8
Capabilities:
Find process by pid

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
xor esi, esi
push edi
mov dword [ebp - 8], esi
mov dword [ebp - 4], esi
call fcn.00010686
fsub qword [eax]
inc edx
inc ecx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.ntoskrnl.exe_PsLookupProcessByProcessId
mov edi, eax
cmp edi, esi
jl 0x10762
push 0x10882
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.ntoskrnl.exe_MmGetSystemRoutineAddress]
cmp eax, esi
je 0x10759
lea ecx, [ebp - 4]
push ecx
push 1
push dword [eax]
push dword [ebp + 0x10]
push esi
push esi
push dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObOpenObjectByPointer]
mov edi, eax
cmp edi, esi
jl 0x10759
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
call dword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
mov eax, edi
pop edi
pop esi
leave
ret 0xc
Function at 0x4069c5
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4069e9
xor eax, eax
test eax, eax
je 0x4069fc
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4069fc
xor ecx, ecx
jmp 0x4069ff
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x406b22
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dec], 0
push esi
jne 0x406b59
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406b33
mov dword [ecx*4 + 0x427de8], eax
inc ecx
cmp ecx, 0x100
jl 0x406b2e
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406b8a
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427de8]
xor eax, esi
inc ecx
dec edx
jne 0x406b6c
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
jmp fcn.00401219
Function at 0x4011c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4011d9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4011ed
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40120e
cmp esi, eax
jae 0x4011e7
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401200
cmp esi, eax
jae 0x4011e7
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x402af0
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x402b9e
push 0x94
mov ebx, 1
call fcn.0042de6f
mov esi, eax
add esp, 4
test esi, esi
je 0x402c13
xor eax, eax
mov ecx, 0x25
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x402b54
push esi
mov ebx, 5
call fcn.0042dd57
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 5
jne 0x402c0a
mov ecx, dword [esi + 8]
test ecx, ecx
jne 0x402b78
push esi
mov ebx, 6
call fcn.0042dd57
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 5
jne 0x402c0a
cmp dword [esi + 8], ebx
jne 0x402c0a
push esi
mov ebx, 7
call fcn.0042dd57
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp al, 4
jae 0x402ba8
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x94
mov ebx, 2
call fcn.0042de6f
mov esi, eax
add esp, 4
test esi, esi
je 0x402c13
xor eax, eax
mov ecx, 0x25
mov edi, esi
rep stosd dword es:[edi], eax
push esi
mov dword [esi], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esi + 4]
cmp eax, 4
jne 0x402c0a
cmp dword [esi + 8], 0xa
jne 0x402bfa
push esi
mov ebx, 3
call fcn.0042dd57
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 4
jne 0x402c0a
cmp dword [esi + 8], 0x5a
jne 0x402c0a
mov ebx, 4
push esi
call fcn.0042dd57
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x402c20
Capabilities:
Get disk information
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x84
push ebx
push esi
push edi
lea eax, [esp + 0x28]
push eax
push 0x64
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
mov al, byte [esp + 0x28]
test al, al
mov edi, dword [ebp + 0x10]
mov dword [edi], 0
lea esi, [esp + 0x28]
je 0x402ce6
mov ebx, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x402c70
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x402cc5
movsx ecx, byte [esi]
push ecx
call fcn.0042dbee
add esp, 4
cmp eax, 0x41
je 0x402cc5
movsx edx, byte [esi]
push edx
call fcn.0042dbee
mov ecx, dword [edi]
mov edx, dword [ebp + 8]
add esp, 4
mov byte [edx + ecx], al
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x28]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov edx, dword [edi]
shrd eax, ecx, 0x14
mov dword [ebx + edx*8], eax
shr ecx, 0x14
mov dword [ebx + edx*8 + 4], ecx
inc dword [edi]
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x402cd0
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x402c58
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4035f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449788
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
push edi
lea ecx, [esp + 8]
call fcn.004430c5
push 0
push 0
push 0
push str.DISPLAY
mov dword [esp + 0x30], 0
call dword [sym.imp.GDI32.dll_CreateICA]
push eax
lea ecx, [esp + 0xc]
call fcn.0044345d
mov eax, dword [esp + 0x10]
mov edi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push eax
call edi
mov ecx, dword [esp + 0x10]
push 0x5a
push ecx
mov esi, eax
call edi
cmp esi, 0x60
mov edi, eax
jne 0x40367f
cmp edi, esi
jne 0x4036ac
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.004434c5
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
cmp esi, 0x78
jne 0x4036ac
cmp edi, esi
jne 0x4036ac
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.004434c5
pop edi
mov eax, esi
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.004434c5
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret
Function at 0x4036d0
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x4497a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x258
push esi
push edi
sub esp, 0xc
lea eax, [esp + 0x27c]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x278], 0
call fcn.0041c2d0
lea ecx, [esp + 0x28]
push ecx
call fcn.00403260
mov eax, dword [eax + 4]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x1c]
call fcn.0041c1c0
mov eax, dword [esp + 0x274]
lea edx, [esp + 0x6c]
sub edx, eax
jmp 0x403740
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x403740
mov dx, word [esp + 0x27c]
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0
push 0
push 0x20
push 1
push 0
mov word [esp + 0x74], dx
push 0
lea edx, [esp + 0x8c]
push edx
push 0
mov dword [esp + 0x50], 0x44
mov dword [esp + 0x7c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x4037e3
push eax
push str.Error
push str.Create_process_failed
push eax
call dword [sym.imp.USER32.dll_MessageBoxA]
lea ecx, [esp + 0x270]
mov dword [esp + 0x268], 0xffffffff
call fcn.0041c1c0
mov eax, 0xbeb95
mov ecx, dword [esp + 0x260]
mov dword fs:[0], ecx
pop edi
pop esi
add esp, 0x264
ret
mov eax, dword [esp + 0xc]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0xc]
lea ecx, [esp + 8]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov esi, dword [esp + 8]
lea ecx, [esp + 0x270]
mov dword [esp + 0x268], 0xffffffff
call fcn.0041c1c0
mov ecx, dword [esp + 0x260]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x264
ret
Function at 0x403a40
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4497a8
push eax
mov dword fs:[0], esp
sub esp, 0x904
push ebx
push esi
mov eax, dword [esp + 0x920]
lea edx, [esp + 0x718]
sub edx, eax
xor ebx, ebx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x403a70
lea eax, [esp + 0x718]
push 0x44f9d4
push eax
call fcn.0042e0e5
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 8], esi
je 0x403c21
push esi
lea ecx, [esp + 0x14]
push 0x1e0
push ecx
call fcn.0042e003
mov al, byte [esi + 0xc]
add esp, 0xc
test al, 0x10
jne 0x403c18
lea esi, [esp + 0x10]
sub esi, 2
push ebp
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x10]
push edi
jmp 0x403ad2
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403ae0
sub eax, edx
mov byte [esi + eax], bl
mov edi, 0x44f6bf
lea esi, [esp + 0x18]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403bf4
cmp byte [esp + 0x18], 0x5b
jne 0x403b1f
lea eax, [esp + 0x18]
push eax
call fcn.00402f70
add esp, 4
mov ebp, eax
jmp 0x403bf4
cmp byte [esp + 0x19], 0x22
mov edx, 1
je 0x403b39
jmp 0x403b30
mov al, byte [esp + edx + 0x19]
inc edx
cmp al, 0x22
jne 0x403b30
lea ecx, [edx - 1]
mov eax, ecx
shr ecx, 2
lea esi, [esp + 0x19]
lea edi, [esp + 0x400]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
mov byte [esp + edx + 0x3ff], bl
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403b63
sub eax, esi
mov ecx, eax
sub ecx, edx
sub ecx, 4
mov eax, ecx
shr ecx, 2
lea esi, [esp + edx + 0x1b]
lea edi, [esp + 0x20c]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0x18]
rep movsb byte es:[edi], byte [esi]
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403b93
lea ecx, [esp + 0x20c]
sub eax, esi
push ecx
sub eax, edx
lea edx, [esp + 0x5f8]
push 0x44f9d0
push edx
mov byte [esp + eax + 0x214], bl
call fcn.0042dfab
lea eax, [esp + 0x218]
add esp, 0xc
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403bd0
sub eax, edx
push eax
lea eax, [esp + 0x5f8]
push eax
push 1
push ebx
lea ecx, [esp + 0x410]
push ecx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, dword [esp + 0x10]
push esi
lea edx, [esp + 0x1c]
push 0x1e0
push edx
call fcn.0042e003
mov al, byte [esi + 0xc]
add esp, 0xc
test al, 0x10
je 0x403ace
pop edi
pop ebp
push esi
call fcn.0042df5a
add esp, 4
lea ecx, [esp + 0x91c]
mov dword [esp + 0x914], 0xffffffff
call fcn.0041c1c0
mov ecx, dword [esp + 0x90c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x910
ret
Function at 0x404890
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x449961
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push esi
mov dword [esp + 4], 0
sub esp, 0xc
lea eax, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x14], esp
push eax
mov dword [esp + 0x3c], 1
call fcn.0041c2d0
lea ecx, [esp + 0x18]
push ecx
call fcn.00403340
add esp, 0x10
push 0x477370
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.0041c5d0
sub esp, 0xc
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041c2d0
lea eax, [esp + 0x24]
push eax
call fcn.004033f0
add esp, 0x10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call fcn.0041c5d0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.0041c1c0
sub esp, 0xc
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.0041c2d0
mov esi, dword [esp + 0x40]
push esi
call fcn.00403f50
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 1
call fcn.0041c1c0
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call fcn.0041c1c0
mov ecx, dword [esp + 0x24]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret
Function at 0x4107c0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push eax
call fcn.004106f0
mov esi, eax
test esi, esi
je 0x4108b0
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call edi
push eax
call fcn.004102e0
mov ebp, dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
mov dword [esp + 0x18], eax
call ebp
push esi
call edi
test eax, eax
jne 0x410804
mov dword [esp + 0x10], eax
jmp 0x410819
cmp dword [eax], 0x28
jne 0x41080e
mov ebx, dword [eax + 4]
jmp 0x410812
movzx ebx, word [eax + 4]
push esi
call ebp
mov dword [esp + 0x10], ebx
push esi
call edi
test eax, eax
jne 0x410824
xor ebx, ebx
jmp 0x410835
cmp dword [eax], 0x28
jne 0x41082e
mov ebx, dword [eax + 8]
jmp 0x410832
movzx ebx, word [eax + 6]
push esi
call ebp
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x34]
mov edi, dword [esp + 0x24]
mov ebp, dword [sym.imp.GDI32.dll_SelectPalette]
mov dword [ecx], edx
mov ecx, dword [esp + 0x14]
push 0
mov dword [eax], ebx
mov edx, dword [edi + 4]
push ecx
push edx
call ebp
mov dword [esp + 0x18], eax
mov eax, dword [edi + 4]
push eax
call dword [sym.imp.GDI32.dll_RealizePalette]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push 0
push 0
push 0
push esi
push ebx
push ecx
mov ecx, dword [edi + 4]
push edx
push eax
push ecx
call fcn.00410640
mov edx, dword [esp + 0x18]
mov eax, dword [edi + 4]
push 1
push edx
push eax
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [esp + 0x14]
test eax, eax
pop edi
pop ebp
pop ebx
je 0x4108b0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
add esp, 0xc
ret

Function at 0x410c60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44b438
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00401df0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00401920
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x410cf2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x410f80
Capabilities:
Get file system object information

Disassembly:
sub esp, 0x160
push ebx
mov ebx, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push 0
push 0
mov esi, ecx
mov eax, dword [esi + 0x1c]
push 0x1108
push eax
call ebx
push eax
call fcn.0043b57c
test eax, eax
je 0x410fb1
lea ecx, [esi + 0x58]
call fcn.0043b53c
push 0x4001
push 0x160
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x44fad4
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
jne 0x410feb
push 0x2e
push str.Cannot_retrieve_the_Handle_of_SystemImageList_
lea ecx, [esi + 0x54]
call fcn.00401d50
pop esi
xor eax, eax
pop ebx
add esp, 0x160
ret
push edi
lea edi, [esi + 0x58]
push eax
mov ecx, edi
call fcn.0043b5a4
test eax, eax
jne 0x411016
push 0x24
push str.Cannot_Attach_SystemImageList_Handle
lea ecx, [esi + 0x54]
call fcn.00401d50
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x160
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.USER32.dll_DestroyIcon]
test edi, edi
je 0x411028
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x1c]
push edi
push 0
push 0x1109
push eax
call ebx
push eax
call fcn.0043b57c
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x160
ret
Function at 0x411890
Capabilities:
Get disk information

Disassembly:
sub esp, 0x80
push ebx
push 0xffff0000
push 0
mov ebx, ecx
mov eax, dword [ebx + 0x1c]
push 0x1101
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
lea ecx, [esp + 4]
push ecx
push 0x80
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
jne 0x4118dc
push 0x23
push str.Error_Getting_Logical_DriveStrings_
lea ecx, [ebx + 0x54]
call fcn.00401d50
xor eax, eax
pop ebx
add esp, 0x80
ret
mov al, byte [esp + 4]
test al, al
push esi
lea esi, [esp + 8]
je 0x411943
push edi
lea ebx, [ebx]
push esi
push 0xffff0000
mov ecx, ebx
call fcn.004111b0
push esi
mov ecx, ebx
mov edi, eax
call fcn.00411450
test eax, eax
je 0x411929
push 0xffff0002
push edi
push 0
push 0
push 0
push 0
push 0
push 0x44f6bf
push 0x23
mov ecx, ebx
call fcn.0043b3bf
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x411930
sub eax, edx
lea esi, [esi + eax + 1]
cmp byte [esi], 0
jne 0x4118f0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x80
ret
Function at 0x4146b0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44b9d0
push eax
mov dword fs:[0], esp
sub esp, 0x30
push esi
mov esi, ecx
push edi
mov edi, 0x12
mov dword [esi + 0xdc], edi
mov dword [esi + 0xe0], 6
mov dword [esi + 0xe4], 0xe
call fcn.004035f0
cmp eax, 0x60
jle 0x41470f
mov dword [esi + 0xdc], 0x16
mov dword [esi + 0xe0], 8
mov dword [esi + 0xe4], edi
push 0x3b
lea eax, [esp + 0xc]
push eax
mov ecx, 0x477420
call fcn.00417970
push eax
lea ecx, [esi + 0xbc]
mov dword [esp + 0x44], 0
call fcn.0041c340
lea ecx, [esp + 8]
mov dword [esp + 0x40], 0xffffffff
call fcn.0041c1c0
push 0x3c
lea ecx, [esp + 0x30]
push ecx
mov ecx, 0x477420
call fcn.00417970
mov edi, eax
push 0x13
lea edx, [esp + 0x24]
push edx
mov ecx, 0x477420
mov dword [esp + 0x48], 1
call fcn.00417970
push edi
push eax
lea eax, [esp + 0x1c]
push eax
mov byte [esp + 0x4c], 2
call fcn.004142a0
push eax
lea ecx, [esi + 0xc8]
mov byte [esp + 0x44], 3
call fcn.0041c340
lea ecx, [esp + 0x14]
mov byte [esp + 0x40], 2
call fcn.0041c1c0
lea ecx, [esp + 0x20]
mov byte [esp + 0x40], 1
call fcn.0041c1c0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x40], 0xffffffff
call fcn.0041c1c0
mov eax, dword [esp + 0x48]
mov edx, dword [esi]
push eax
push 0x8c
mov ecx, esi
mov byte [esi + 0xd8], 0
call dword [edx + 0x134]
mov ecx, dword [esp + 0x38]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x3c
ret 4