joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, eax
xor ebx, ebx
cmp edi, ebx
jne 0x40791e
pop edi
pop ebp
mov eax, 0xffffff9a
pop ebx
add esp, 0xc
ret
cmp dword [edi + 0x18], ebx
je 0x407912
cmp dword [edi + 0x7c], ebx
je 0x40792d
call fcn.00407cf0
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00407670
add esp, 0xc
test eax, eax
je 0x407954
pop edi
pop ebp
mov eax, 0xffffff99
pop ebx
add esp, 0xc
ret
push esi
push 0x84
call fcn.00432c3a
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x407995
push 0x4000
call fcn.00432c3a
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
add esp, 4
mov dword [esi], eax
mov dword [esi + 0x44], ecx
mov dword [esi + 0x48], edx
mov dword [esi + 0x4c], ebx
cmp eax, ebx
jne 0x4079a2
push esi
call fcn.00432b1d
add esp, 4
pop esi
pop edi
pop ebp
mov eax, 0xffffff98
pop ebx
add esp, 0xc
ret
mov dword [esi + 0x40], ebx
mov ecx, dword [edi + 0x3c]
xor eax, eax
cmp dword [edi + 0x34], ebx
mov dword [esi + 0x54], ecx
mov dword [esi + 0x50], ebx
mov edx, dword [edi + 0x34]
sete al
mov dword [esi + 0x64], edx
mov ecx, dword [edi]
mov dword [esi + 0x60], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x68], edx
mov dword [esi + 0x18], ebx
cmp eax, ebx
jne 0x4079ea
lea eax, [esi + 4]
mov dword [esi + 0x24], ebx
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
call fcn.004067d0
test eax, eax
jne 0x4079ea
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov ecx, dword [edi + 0x44]
mov dword [esi + 0x5c], ecx
mov dl, byte [edi + 0x30]
and dl, 1
mov byte [esi + 0x6c], dl
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x407a14
mov cl, byte [edi + 0x39]
mov byte [esi + 0x80], cl
jmp 0x407a1d
mov dl, byte [edi + 0x3f]
mov byte [esi + 0x80], dl
movzx eax, byte [esi + 0x6c]
neg eax
sbb eax, eax
and eax, 0xc
lea edx, [esi + 0x70]
mov dword [esi + 0x7c], eax
mov dword [edx], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmp ebp, ebx
je 0x407a57
mov cl, byte [ebp]
cmp cl, bl
je 0x407a57
call fcn.004064c0
add ebp, 1
jne 0x407a46
mov ecx, dword [edi + 0x78]
mov edx, dword [esp + 0x18]
lea eax, [ecx + edx + 0x1e]
mov dword [esi + 0x3c], eax
mov dword [esi + 8], ebx
mov dword [edi + 0x7c], esi
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0xc
ret
Function at 0x407df0
Capabilities:
Get common file path

Disassembly:
push ecx
cmp dword [ebx], 0
push esi
push edi
jne 0x407e90
cmp dword [ebx + 4], 0xffffffff
jne 0x407e90
lea edi, [ebx + 0x140]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov eax, edi
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x407e20
sub eax, edx
mov al, byte [eax + ebx + 0x13f]
cmp al, 0x5c
je 0x407e51
cmp al, 0x2f
je 0x407e51
dec edi
lea esp, [esp]
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x407e40
mov ax, word [0x4511c8]
mov word [edi], ax
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
lea esi, [esp + 0x1c]
call fcn.00406c20
add esp, 8
test eax, eax
jne 0x407e75
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ecx
ret 8
call fcn.00406ff0
mov dword [ebx], eax
neg eax
sbb eax, eax
and eax, 0xfffffe00
add eax, 0x200
pop edi
pop esi
pop ecx
ret 8
pop edi
mov eax, 0x1000000
pop esi
pop ecx
ret 8

Function at 0x408410
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x20c
mov eax, dword [0x460770]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
mov ebp, dword [esp + 0x218]
push edi
mov edi, dword [esp + 0x218]
test edi, edi
je 0x40844d
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40844d
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov al, byte [ebp]
test al, al
je 0x408506
push esi
mov esi, ebp
mov ecx, ebp
lea ecx, [ecx]
cmp al, 0x2f
je 0x408468
cmp al, 0x5c
jne 0x40846a
mov esi, ecx
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x408460
cmp esi, ebp
je 0x4084a0
sub esi, ebp
push esi
lea eax, [esp + 0x114]
push ebp
push eax
call fcn.00439410
lea ecx, [esp + 0x11c]
push ecx
push edi
mov byte [esp + esi + 0x124], 0
call fcn.00408410
add esp, 0x14
mov byte [esp + 0xc], 0
test edi, edi
je 0x4084bb
lea edx, [esp + 0xc]
mov eax, edi
sub edx, edi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4084b1
mov eax, ebp
mov edx, ebp
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4084c0
lea edi, [esp + 0xc]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4084d0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
lea edx, [esp + 0xc]
and ecx, 3
push edx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
pop esi
cmp eax, 0xffffffff
jne 0x408506
push 0
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.00432019
add esp, 0x20c
ret
Function at 0x408d10
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x408d36
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x408d59
mov ecx, dword [esp + 4]
or eax, 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, dword [esp + 4]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x408d65
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
ret
Function at 0x409d50
Capabilities:
Create process on windows
Query environment variable
Self delete
Terminate process

Disassembly:
push 0xffffffffffffffff
push 0x4490b8
mov eax, dword fs:[0]
push eax
sub esp, 0x20c
mov eax, dword [0x460770]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
mov eax, dword [0x460770]
xor eax, esp
push eax
lea eax, [esp + 0x214]
mov dword fs:[0], eax
push 0x103
lea eax, [esp + 0x111]
push 0
mov dword [esp + 0x224], 0
push eax
mov byte [esp + 0x118], 0
call fcn.00435560
push 0x103
lea ecx, [esp + 0x19]
push 0
push ecx
mov byte [esp + 0x20], 0
call fcn.00435560
mov edx, dword [esp + 0x23c]
mov ecx, dword [edx - 8]
mov esi, dword [edx - 0xc]
mov eax, 1
sub eax, dword [edx - 4]
add esp, 0x18
or ecx, eax
jge 0x409df6
push 0
lea ecx, [esp + 0x228]
call fcn.00401fe0
mov edx, dword [esp + 0x224]
inc esi
push esi
push edx
lea edx, [esp + 0x114]
push edx
call fcn.00439410
add esp, 0xc
push str._c_del__ah__
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x10c]
push ecx
lea edx, [esp + 0xc]
push edx
call esi
push str._____NUL
lea eax, [esp + 0xc]
push eax
call esi
push 0x104
lea ecx, [esp + 0x110]
push ecx
push str.ComSpec
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x409e7e
push 0
push 0
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x118]
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp eax, 0x20
jle 0x409e7e
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
mov dword [esp + 0x21c], 0xffffffff
mov eax, dword [esp + 0x224]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409eac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0x214]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00432019
add esp, 0x218
ret
Function at 0x40edc0
Capabilities:
Check os version
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x449383
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
mov eax, dword [0x460770]
xor eax, esp
mov dword [esp + 0x78], eax
push ebp
push esi
push edi
mov eax, dword [0x460770]
xor eax, esp
push eax
lea eax, [esp + 0x8c]
mov dword fs:[0], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
push 0x64
lea ecx, [esp + 0x28]
push ecx
push 0
mov ebp, eax
push ebp
push 0
push 0x1200
mov dword [esp + 0x30], ebp
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp eax, 1
jae 0x40ee2e
mov byte [esp + 0x20], 0
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x14]
call fcn.00401cb0
mov dword [esp + 0x94], 0
mov esi, dword [esp + 0x10]
mov edx, dword [esi - 0xc]
xor eax, eax
test edx, edx
jle 0x40ef25
test eax, eax
jl 0x40ee7b
cmp eax, edx
jg 0x40ee7b
mov cl, byte [eax + esi]
cmp cl, 0xd
je 0x40ee85
cmp eax, edx
jg 0x40ee7b
cmp cl, 0xa
je 0x40ee85
inc eax
cmp eax, edx
jl 0x40ee58
jmp 0x40ef25
push 0x80070057
call fcn.004021a0
push eax
push 0
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x1c]
call fcn.00403cb0
mov byte [esp + 0x94], 1
mov ecx, dword [eax]
mov esi, dword [esp + 0x10]
lea eax, [ecx - 0x10]
add esi, 0xfffffff0
cmp eax, esi
je 0x40eef9
cmp dword [esi + 0xc], 0
lea edi, [esi + 0xc]
jl 0x40eeeb
mov edx, dword [eax]
cmp edx, dword [esi]
jne 0x40eeeb
push eax
call fcn.00401db0
mov ebp, eax
add esp, 4
or eax, 0xffffffff
lock xadd dword [edi], eax
dec eax
test eax, eax
jg 0x40eede
mov ecx, dword [esi]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
push esi
call eax
add ebp, 0x10
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
jmp 0x40eef9
mov eax, dword [ecx - 0xc]
push eax
push ecx
lea ecx, [esp + 0x18]
call fcn.00402090
mov byte [esp + 0x94], 0
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40ef21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov esi, dword [esp + 0x10]
push 0xffffffffffffffff
push ebp
push 0x44
push ecx
mov eax, esp
mov dword [esp + 0x24], esp
push ecx
mov ecx, dword [esp + 0x30]
mov dword [eax], esi
mov eax, esp
add ecx, 0x20
mov dword [esp + 0x28], esp
push ecx
mov dword [eax], str.file_error
call fcn.0040d4e0
mov dword [esp + 0xac], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 0x18
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40ef7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x8c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x78]
xor ecx, esp
call fcn.00432019
add esp, 0x88
ret 4
Function at 0x40efb0
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov esi, eax
mov eax, dword [esi]
mov ecx, dword [esi + 8]
push eax
push 1
push ecx
push edi
call fcn.00434269
mov ecx, dword [esi + 8]
add esp, 0x10
cmp eax, 1
mov eax, ecx
sete bl
cdq
idiv dword [esi + 0x18]
mov byte [esp + 0x12], bl
mov dword [esi + 0x1c], eax
test bl, bl
je 0x40f119
mov edx, dword [esi + 0x24]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push eax
push 0x18
push ecx
mov eax, esp
mov dword [eax], edx
push ecx
mov eax, esp
mov dword [eax], str.read
lea eax, [esi + 0x20]
push eax
mov dword [esp + 0x2c], eax
call fcn.0040d4e0
mov ecx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
add esp, 0x18
xor ebp, ebp
xor eax, eax
cmp ecx, 1
sete byte [esp + 0x13]
test ebx, ebx
je 0x40f0b9
xor edx, edx
dec ebx
cmp byte [esp + 0x13], dl
je 0x40f03d
cmp byte [edi], dl
jmp 0x40f041
cmp word [edi], 0
sete dl
test edx, edx
je 0x40f06b
test eax, eax
je 0x40f064
cmp edi, eax
je 0x40f064
imul ecx, ebp
mov edx, edi
sub edx, eax
push edx
push eax
sub eax, ecx
push eax
call fcn.004334d0
add esp, 0xc
mov ecx, dword [esi + 0x18]
lea eax, [ecx + edi]
inc ebp
add edi, ecx
test ebx, ebx
jne 0x40f030
test eax, eax
je 0x40f08e
cmp edi, eax
je 0x40f08e
mov ecx, dword [esi + 0x18]
imul ecx, ebp
sub edi, eax
push edi
push eax
sub eax, ecx
push eax
call fcn.004334d0
add esp, 0xc
test ebp, ebp
je 0x40f0b9
mov edx, dword [esp + 0x14]
push 0xffffffffffffffff
push ebp
push 1
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
push edx
mov dword [eax], str.nulls_removed
call fcn.0040d4e0
add esp, 0x18
sub dword [esi + 0x1c], ebp
cmp dword [esi + 0x18], 1
jle 0x40f10b
test byte [esi + 4], 0x80
je 0x40f10b
mov esi, dword [esi + 0x1c]
test esi, esi
je 0x40f0e6
lea esp, [esp]
mov ecx, dword [esp + 0x1c]
movzx eax, word [ecx + esi*2 - 2]
dec esi
rol ax, 8
mov word [ecx + esi*2], ax
test esi, esi
jne 0x40f0d0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
mov dword [eax], 0
push ecx
mov eax, esp
mov dword [eax], str.endian_swap
mov eax, dword [esp + 0x28]
push eax
call fcn.0040d4e0
add esp, 0x18
mov al, byte [esp + 0x12]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
push esi
call fcn.0040edc0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 8
ret 4
Function at 0x40f990
Capabilities:
Write file on windows

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, eax
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
imul ecx, eax
push edi
mov dword [esi + 8], ecx
test ebp, ebp
jne 0x40f9ac
mov ebp, edx
mov ecx, dword [esi + 4]
xor edi, edi
test cl, cl
jns 0x40fa26
test edx, edx
jne 0x40f9e5
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004141c0
mov edi, eax
mov eax, dword [esi + 0x1c]
add eax, eax
push eax
push ebp
push edi
call fcn.00439410
add esp, 0x10
mov edx, edi
mov ebp, edi
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x40fa02
lea esp, [esp]
movzx ecx, word [edx + eax*2 - 2]
dec eax
rol cx, 8
mov word [edx + eax*2], cx
test eax, eax
jne 0x40f9f0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
push ecx
mov eax, esp
push ecx
mov dword [eax], 0
mov eax, esp
lea ecx, [esi + 0x20]
push ecx
mov dword [eax], str.endian_swap
call fcn.0040d4e0
add esp, 0x18
mov edx, dword [esi]
mov eax, dword [esi + 8]
push edx
push 1
push eax
push ebp
call fcn.00434410
add esp, 0x10
cmp eax, 1
sete bl
test edi, edi
je 0x40fa4b
push edi
call fcn.004141cb
add esp, 4
test bl, bl
je 0x40fa83
mov edx, dword [esi + 0x1c]
mov ecx, dword [esi + 8]
add dword [esi + 0x14], ecx
push 0xffffffffffffffff
push edx
push 0x18
push ecx
mov ecx, dword [esi + 0x24]
mov eax, esp
push ecx
mov dword [eax], ecx
mov eax, esp
add esi, 0x20
push esi
mov dword [eax], str.write
call fcn.0040d4e0
add esp, 0x18
mov al, bl
pop edi
pop esi
pop ebp
pop ebx
ret 4
push esi
call fcn.0040edc0
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
ret 4
Function at 0x410b70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x448fc3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x460770]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x14], 1
mov edi, dword [esi + 0x30]
test edi, edi
je 0x410bb3
call fcn.00410330
push edi
call fcn.004141cb
add esp, 4
mov edi, dword [esi + 0x34]
test edi, edi
je 0x410bca
mov eax, edi
call fcn.0040e180
push edi
call fcn.004141cb
add esp, 4
mov byte [esp + 0x14], 0
mov eax, dword [esi + 4]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410bee
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [esi]
sub eax, 0x10
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x410c14
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4

Function at 0x4154b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x4154fc
call fcn.0041f4c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4154fc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x41553f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x415528
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x415528
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x41553c
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x416967
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x41698b
cmp dword [edi + 0x54], 0
jne 0x41698b
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0041f4c9
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00416928
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x41df35
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x41df7c
call fcn.0041f4c9
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x41df7c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x41df98
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0041daaf
mov esi, eax
test edi, edi
je 0x41df96
test ebx, ebx
je 0x41df96
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41e769
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x447f84
call fcn.00434f93
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x41e78e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x41e7d4
lea ecx, [ebp - 0x10]
call fcn.004021e0
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004185fa
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.004021c0
mov eax, esi
call fcn.0043506b
ret 8

Function at 0x421591
Capabilities:
Create http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
mov esi, ecx
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
mov dword [esi], vtable.CInternetSession.0
test eax, eax
jne 0x4215bc
call fcn.0041f4c9
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [esi + 8], eax
test eax, eax
jne 0x4215df
push eax
push dword [esi + 4]
call fcn.00421517
push esi
push eax
mov ecx, 0x463cb0
call fcn.004211cb
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x432019
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x460770]
jne 0x432023
repz ret
jmp fcn.00438b38
Function at 0x443151
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00438cb0
and dword [ebp - 4], 0
cmp dword [0x464a8c], 0
mov ebx, eax
jne 0x443202
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4432b3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x450584
push edi
call esi
test eax, eax
je 0x4432b3
push eax
call fcn.00438c3e
mov dword [esp], 0x450574
push edi
mov dword [0x464a8c], eax
call esi
push eax
call fcn.00438c3e
mov dword [esp], 0x450560
push edi
mov dword [0x464a90], eax
call esi
push eax
call fcn.00438c3e
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x464a94], eax
call esi
push eax
call fcn.00438c3e
pop ecx
mov dword [0x464a9c], eax
test eax, eax
je 0x443202
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00438c3e
pop ecx
mov dword [0x464a98], eax
mov eax, dword [0x464a98]
cmp eax, ebx
je 0x44325a
cmp dword [0x464a9c], ebx
je 0x44325a
push eax
call fcn.00438cb9
push dword [0x464a9c]
mov esi, eax
call fcn.00438cb9
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x44325a
test edi, edi
je 0x44325a
call esi
test eax, eax
je 0x443251
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x443251
test byte [ebp - 0xc], 1
jne 0x44325a
or dword [ebp + 0x10], 0x200000
jmp 0x443293
mov eax, dword [0x464a90]
cmp eax, ebx
je 0x443293
push eax
call fcn.00438cb9
pop ecx
test eax, eax
je 0x443293
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x443293
mov eax, dword [0x464a94]
cmp eax, ebx
je 0x443293
push eax
call fcn.00438cb9
pop ecx
test eax, eax
je 0x443293
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x464a8c]
call fcn.00438cb9
pop ecx
test eax, eax
je 0x4432b3
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4432b5
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x431072
nop
mov ebx, 0x40915c
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x5cc32402
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
loop 0x431060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
je 0x4310d2
nop
nop
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x34de5886
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
nop
add eax, edi
nop
loop 0x4310c0
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219