joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9487ab
Capabilities:
Execute anti-debugging instructions

Disassembly:
lea esp, [esp + 3]
jmp 0x9487e3
lea esp, [esp + 1]
mov byte [esp + 1], bh
setbe al
jmp 0x948795
lea esp, [esp + 0x1c]
dec cl
mov ax, 0x9a23
mov edx, eax
mov dx, 0x7290
jmp 0x9487cd

Function at 0x9743c0
Capabilities:
Encrypt data using aes

Disassembly:
lea ebp, [ebp + 0xc]
movzx edx, byte [ebp]
pop ebp
jmp 0x974397
mov dword [ecx + 8], edx
push ebp
mov ebp, eax
jmp 0x974375
push ebp
mov ebp, eax
lea ebp, [ebp + 0xd]
jmp 0x9743a3
movzx esi, byte [ebp]
pop ebp
shl edx, 8
jmp 0x9743ec
push dword [esp + 0x15]
lea esp, [esp + 3]
xor edx, esi
jmp 0x97438f
shl edx, 8
xor edx, esi
shl edx, 8
jmp 0x9743f8
shr eax, 0x10
jmp 0x974401
xor edx, esi
movzx esi, byte [eax + 0xe]
movzx eax, byte [eax + 0xf]
jmp 0x9743cc
xor edx, eax
mov dword [ecx + 0xc], edx
mov eax, edx
jmp 0x9743d6
mov esi, 0xff
and eax, esi
jmp 0x974468
mov edi, edx
xchg ebx, ebp
shr edi, 8
mov ebp, ecx
sub esp, 0x13
jmp 0x974425
mov eax, dword [eax*4 + reloc.RASAPI32.dll_RasHangUpA]
lea esp, [esp + 0x5c]
xor eax, 0x1000000
jmp 0x97443b

Function at 0xa67c54
Capabilities:
Execute anti-debugging instructions

Disassembly:
stc
bts bp, sp
cmc
lea esp, [esp + 0x15]
xchg edx, ebp
clc
jmp 0xa67bfb
push word [esp + 5]
xchg word [esp + 0xc], dx
pop edx
mov eax, dword [esp + 0x1b]
mov edx, ebp
lea edx, [esp - 0x38]
jmp 0xa67b8f
not ax
lea edx, reloc.RASAPI32.dll_RasHangUpA
dec ebp
add esp, 1
mov ax, si
jmp 0xa67c29
not dh
xchg word [esp + 2], ax
mov eax, esp
mov ebp, dword [esp + 2]
neg edx
xchg byte [esp], dh
jmp 0xa67bbc
xchg edx, ebp
inc dh
lea edx, [ebp*4]
pop word [esp + 2]
setae al
bts ebp, ebp
jmp 0xa67bd2
mov eax, edi
not al
xchg byte [esp + 2], dl
rol ax, cl
sub esp, 7
jmp 0xa67c3a
pop dx
mov eax, ebp
rdtsc
mov eax, 0x95afa341
clc
ror al, 3
jmp 0xa67c13
pop word [esp + 4]
xchg byte [esp + 2], ah
lea edx, [eax + ecx]
xchg word [esp + 3], ax
pop dx
jmp 0xa67c67
mov ah, 8
add esp, 8
xchg word [esp + 0xe], bp
mov ebp, dword [esp + 0xc]
jmp 0xa67ba5
mov edx, dword [esp + 5]
rol ah, 0
dec dx
xchg dx, ax
sub ah, dh
mov eax, ebp
jmp 0xa67cc9
pushfd
not ax
xchg dword [esp + 5], edx
rcr bp, cl
mov al, bl
mov edx, ecx
jmp 0xa67c92
mov edx, 0xa8ec16df
cld
cmp edx, 0xa3214ce4
mov dword [esp], edi
mov dl, cl
mov dword [esp], ecx
jmp 0xa67ca8

Function at 0xa6804e
Capabilities:
Execute anti-debugging instructions

Disassembly:
pop dword [esp + 0xf]
neg eax
pop dword [esp + 0xa]
jmp 0xa68002
Function at 0xa68ad9
Capabilities:
Parse pe header

Disassembly:
call fcn.00a68044
lea esp, [esp + 0x38]
mov eax, dword fs:[0x30]
push ebp
jmp 0xa68a98
push ebp
mov ebp, eax
lea ebp, [ebp + 0x1c]
mov eax, dword [ebp]
jmp 0xa68a7f
push bp
push dword [esp + 1]
lea esp, [esp + 0x11]
lea esp, [esp + 2]
lea esp, [esp + 3]
mov dword [esp + 0x38], edi
jmp 0xa68a3d
pop ebp
push edx
mov edx, eax
mov eax, dword [edx]
jmp 0xa68ab9
mov ebp, eax
lea ebp, [ebp + 0xc]
mov eax, dword [ebp]
pop ebp
jmp 0xa68a4a
pop dword [esp + 0x15]
mov dword [esp + 0x18], eax
lea esp, [esp + 0x18]
jmp 0xa6803f
pop edx
mov eax, dword [eax + 8]
pushal
mov dword [esp + 0x1a], edx
jmp 0xa68aa3
push dword [esp + 1]
mov byte [esp], dl
push dword [esp + 7]
mov dword [esp + 0x2c], esi
pushal
jmp 0xa68a67
Function at 0x1004760
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x1004773
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100476f
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x10047a0
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x10047df
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x10047d5
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x10047e1
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x10047c5
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41fb6c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42b520]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00416e52
and dword [ebp - 0x14], 0
cmp dword [0x46d558], 0
mov dword [ebp - 0x18], eax
jne 0x41fc1f
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x41fcc7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x41fcc7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x46d558], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x46d55c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x46d560], eax
call edi
push eax
call esi
mov dword [0x46d568], eax
test eax, eax
je 0x41fc1f
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x46d564], eax
mov eax, dword [0x46d564]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41fc78
cmp dword [0x46d568], ecx
je 0x41fc78
push eax
call esi
push dword [0x46d568]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41fc78
test ebx, ebx
je 0x41fc78
call edi
test eax, eax
je 0x41fc6f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x41fc6f
test byte [ebp - 8], 1
jne 0x41fc78
or dword [ebp + 0x10], 0x200000
jmp 0x41fcab
mov eax, dword [0x46d55c]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x41fcab
mov eax, dword [0x46d560]
cmp eax, dword [ebp - 0x18]
je 0x41fcab
push eax
call esi
test eax, eax
je 0x41fcab
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46d558]
call esi
test eax, eax
je 0x41fcc7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x41fcc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004113cb
leave
ret

Function at 0x4ae4e5
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push dword [esp + 8]
jmp 0x4ae750
inc esi
mov dword [esp + 4], eax
mov byte [esp + 4], bl
mov byte [esp], ch
dec ecx
mov byte [esp + 4], 0xc
mov byte [esp], dl
cmc
add ecx, 0
jmp 0x4ac849
jmp 0x4acc11
call fcn.004af169
not ax
jmp 0x4aede4
xor bx, ax
bt eax, 0x1f
cmp cl, ah
sub ebp, 2
pushfd
pushfd
push eax
mov word [ebp], ax
push dword [esp + 0x10]
pushfd
push dword [esp]
lea esp, [esp + 0x44]
jmp fcn.004aee41
Function at 0x402eb0
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x402f59
push 0x94
mov ebx, 1
call fcn.004336bc
mov esi, eax
add esp, 4
test esi, esi
je 0x402fcb
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 0x402f14
push esi
mov ebx, 5
call fcn.004335a4
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 5
jne 0x402fc2
cmp dword [esi + 8], 0
jne 0x402f37
push esi
mov ebx, 6
call fcn.004335a4
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 5
jne 0x402fc2
cmp dword [esi + 8], ebx
jne 0x402fc2
push esi
mov ebx, 7
call fcn.004335a4
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp al, 4
jae 0x402f63
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x94
mov ebx, 2
call fcn.004336bc
mov esi, eax
add esp, 4
test esi, esi
je 0x402fcb
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 0x402fc2
cmp dword [esi + 8], 0xa
jne 0x402fb5
push esi
mov ebx, 3
call fcn.004335a4
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret
cmp eax, 4
jne 0x402fc2
cmp dword [esi + 8], 0x5a
jne 0x402fc2
mov ebx, eax
push esi
call fcn.004335a4
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x402fe0
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]
cmp byte [esp + 0x28], 0
mov edi, dword [ebp + 0x10]
mov dword [edi], 0
lea esi, [esp + 0x28]
je 0x4030a9
mov ebx, dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
je 0x40302f
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
jne 0x403085
movsx ecx, byte [esi]
push ecx
call fcn.00433582
add esp, 4
cmp eax, 0x41
je 0x403085
movsx edx, byte [esi]
push edx
call fcn.00433582
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
shr ecx, 0x14
mov dword [ebx + edx*8], eax
mov dword [ebx + edx*8 + 4], ecx
add dword [edi], 1
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403090
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x403017
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4039d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f058
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.00448915
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.00448cad
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 0x403a5f
cmp edi, esi
jne 0x403a8c
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00448d15
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 0x403a8c
cmp edi, esi
jne 0x403a8c
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00448d15
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.00448d15
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret

Function at 0x403ab0
Capabilities:
Create process on windows
Set current directory

Disassembly:
push 0xffffffffffffffff
push 0x44f078
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.00420d90
lea ecx, [esp + 0x28]
push ecx
call fcn.00403600
mov eax, dword [eax + 4]
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
lea ecx, [esp + 0x1c]
call fcn.00420c00
mov eax, dword [esp + 0x274]
lea edx, [esp + 0x6c]
sub edx, eax
jmp 0x403b20
mov cl, byte [eax]
mov byte [edx + eax], cl
add eax, 1
test cl, cl
jne 0x403b20
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 0x403bc5
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.00420c00
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.00420c00
mov ecx, dword [esp + 0x260]
pop edi
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x264
ret
Function at 0x403e40
Capabilities:
Set registry value

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44f078
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
add eax, 1
cmp cl, bl
jne 0x403e70
lea eax, [esp + 0x718]
push 0x455a20
push eax
call fcn.004338a5
mov esi, eax
add esp, 8
cmp esi, ebx
mov dword [esp + 8], esi
je 0x404023
push esi
lea ecx, [esp + 0x14]
push 0x1e0
push ecx
call fcn.004337c3
add esp, 0xc
test byte [esi + 0xc], 0x10
jne 0x40401a
lea esi, [esp + 0x10]
sub esi, 2
push ebp
mov dword [esp + 0x10], esi
mov ebp, dword [esp + 0x10]
push edi
jmp 0x403ed3
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x18]
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403ee0
sub eax, edx
mov byte [esi + eax], bl
mov edi, 0x4556bf
lea esi, [esp + 0x18]
mov ecx, 1
xor edx, edx
repe cmpsb byte [esi], byte es:[edi]
je 0x403ff7
cmp byte [esp + 0x18], 0x5b
jne 0x403f21
lea eax, [esp + 0x18]
push eax
call fcn.00403330
add esp, 4
mov ebp, eax
jmp 0x403ff7
cmp byte [esp + 0x19], 0x22
mov edx, 1
je 0x403f3a
lea ecx, [ecx]
add edx, 1
cmp byte [esp + edx + 0x18], 0x22
jne 0x403f30
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]
add eax, 1
cmp cl, bl
jne 0x403f64
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]
add eax, 1
cmp cl, bl
jne 0x403f96
lea ecx, [esp + 0x20c]
sub eax, esi
push ecx
sub eax, edx
lea edx, [esp + 0x5f8]
push 0x455a1c
push edx
mov byte [esp + eax + 0x214], bl
call fcn.0043376b
lea eax, [esp + 0x218]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x403fd1
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.004337c3
add esp, 0xc
test byte [esi + 0xc], 0x10
je 0x403ecf
pop edi
pop ebp
push esi
call fcn.0043371a
add esp, 4
lea ecx, [esp + 0x91c]
mov dword [esp + 0x914], 0xffffffff
call fcn.00420c00
mov ecx, dword [esp + 0x90c]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x910
ret
Function at 0x404d30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44f231
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.00420d90
lea ecx, [esp + 0x18]
push ecx
call fcn.004036f0
add esp, 0x10
push 0x476608
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 2
call fcn.004211a0
sub esp, 0xc
lea edx, [esp + 0x44]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00420d90
lea eax, [esp + 0x24]
push eax
call fcn.004037b0
add esp, 0x10
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x30], 3
call fcn.004211a0
lea ecx, [esp + 0x18]
mov byte [esp + 0x2c], 2
call fcn.00420c00
sub esp, 0xc
lea edx, [esp + 0x18]
mov ecx, esp
mov dword [esp + 0x14], esp
push edx
call fcn.00420d90
mov esi, dword [esp + 0x40]
push esi
call fcn.00404370
add esp, 0x10
lea ecx, [esp + 0xc]
mov dword [esp + 4], 1
mov byte [esp + 0x2c], 1
call fcn.00420c00
lea ecx, [esp + 0x38]
mov byte [esp + 0x2c], 0
call fcn.00420c00
mov ecx, dword [esp + 0x24]
mov eax, esi
mov dword fs:[0], ecx
pop esi
add esp, 0x2c
ret
Function at 0x4122f0
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0xc
push esi
push eax
call fcn.00412230
mov esi, eax
test esi, esi
je 0x4123e0
push ebx
push ebp
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
call edi
push eax
call fcn.00411e00
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 0x412334
mov dword [esp + 0x10], eax
jmp 0x412349
cmp dword [eax], 0x28
jne 0x41233e
mov ebx, dword [eax + 4]
jmp 0x412342
movzx ebx, word [eax + 4]
push esi
call ebp
mov dword [esp + 0x10], ebx
push esi
call edi
test eax, eax
jne 0x412354
xor ebx, ebx
jmp 0x412365
cmp dword [eax], 0x28
jne 0x41235e
mov ebx, dword [eax + 8]
jmp 0x412362
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.00412190
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 0x4123e0
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
pop esi
add esp, 0xc
ret

Function at 0x412720
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.00440dcc
test eax, eax
je 0x412751
lea ecx, [esi + 0x58]
call fcn.00440d8c
push 0x4001
push 0x160
lea ecx, [esp + 0x10]
push ecx
push 0
push 0x455b30
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
test eax, eax
jne 0x41278b
push 0x2e
push str.Cannot_retrieve_the_Handle_of_SystemImageList_
lea ecx, [esi + 0x54]
call fcn.00402690
pop esi
xor eax, eax
pop ebx
add esp, 0x160
ret
push edi
lea edi, [esi + 0x58]
push eax
mov ecx, edi
call fcn.00440df4
test eax, eax
jne 0x4127b6
push 0x24
push str.Cannot_Attach_SystemImageList_Handle
lea ecx, [esi + 0x54]
call fcn.00402690
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 0x4127c8
mov edi, dword [edi + 4]
mov eax, dword [esi + 0x1c]
push edi
push 0
push 0x1109
push eax
call ebx
push eax
call fcn.00440dcc
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x160
ret
Function at 0x413040
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 0x41308c
push 0x23
push str.Error_Getting_Logical_DriveStrings_
lea ecx, [ebx + 0x54]
call fcn.00402690
xor eax, eax
pop ebx
add esp, 0x80
ret
cmp byte [esp + 4], 0
push esi
lea esi, [esp + 8]
je 0x4130f6
push edi
lea esp, [esp]
push esi
push 0xffff0000
mov ecx, ebx
call fcn.00412960
push esi
mov ecx, ebx
mov edi, eax
call fcn.00412c00
test eax, eax
je 0x4130d9
push 0xffff0002
push edi
push 0
push 0
push 0
push 0
push 0
push 0x4556bf
push 0x23
mov ecx, ebx
call fcn.00440c0f
mov eax, esi
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x4130e0
sub eax, edx
cmp byte [esi + eax + 1], cl
lea esi, [esi + eax + 1]
jne 0x4130a0
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x80
ret
Function at 0x413c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x451168
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.00402730
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004024b0
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 0x413cc2
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 0x4140a0
Capabilities:
Get file size

Disassembly:
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 0x804]
test eax, eax
mov dword [esi + 0x818], 0
mov dword [esi + 0x81c], 0
jne 0x4140c7
xor edx, edx
pop esi
pop ecx
ret
push edi
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4140ed
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4140ed
pop edi
xor eax, eax
xor edx, edx
pop esi
pop ecx
ret
mov edx, dword [esp + 8]
push 1
push 0
push 0
push edx
call fcn.00433b80
xor ecx, ecx
add eax, edi
adc edx, ecx
pop edi
mov dword [esi + 0x818], eax
mov dword [esi + 0x81c], edx
pop esi
pop ecx
ret

Function at 0x4141c0
Capabilities:
Read file on windows

Disassembly:
mov edx, dword [esp + 0xc]
mov dword [edx], 0
mov eax, dword [ecx + 0x804]
test eax, eax
jne 0x4141d9
xor al, al
ret 0xc
mov ecx, dword [esp + 8]
push 0
push edx
mov edx, dword [esp + 0xc]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
setne al
ret 0xc

Function at 0x414200
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx + 0x804]
test eax, eax
jne 0x41420f
xor al, al
ret 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push 0
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne al
ret 0xc