joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4533b0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x495fd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0048dd27
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00452d10
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0048dc55
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.0048a519
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.0048a519
push 1
push 0
push 0
mov ecx, esi
call fcn.0048a4c1
push 1
push 0
push 1
mov ecx, esi
call fcn.0048a4c1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048dd99
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x453530
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x495ff8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0048dd27
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00452d10
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0048dc55
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x4535f4
cmp dword [esp + 0x40], 1
jne 0x4535f2
cmp ecx, eax
jge 0x4535f4
mov eax, ecx
cmp eax, 0xc8
jge 0x453600
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.004533b0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0048dd99
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x453df0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4960a3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00488939
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0048dfcf
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0048f4eb
test eax, eax
je 0x453f0c
mov ecx, dword [esp + 0x3c]
call fcn.0048dffc
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x453ed0
push edi
mov ecx, esi
call fcn.0048b664
mov ecx, esi
call fcn.004540c0
cmp dword [esp + 0x38], 1
jne 0x453f05
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0048b79f
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x456100
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x456133
push esi
call fcn.004644c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x45612c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x4561b9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4561a2
mov eax, dword [esi + 8]
test eax, eax
je 0x456157
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x45619e
cmp eax, 2
je 0x4561a2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x45614a
cmp eax, 3
je 0x45617d
cmp eax, 1
jne 0x45614a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x45614a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x45614a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.004561e0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x4561c8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.004561e0
add esp, 4
pop esi
ret

Function at 0x456a60
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x456a81
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x456a81
mov eax, dword [eax + 0x44]
test eax, eax
je 0x456a81
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x471bb0
Capabilities:
Capture webcam image

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, ecx
mov eax, dword [eax + 4]
cmp dword [esi + 0xec], 1
jne 0x471c53
test eax, eax
jbe 0x471c53
mov ecx, dword [esi + 0xbc]
test ecx, ecx
jle 0x471c53
mov ecx, dword [esi + 0x1c]
push edi
push 0
push eax
push 0x419
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
mov edi, eax
mov eax, dword [esi + 0xbc]
inc edi
test eax, eax
jne 0x471bfe
xor esi, esi
jmp 0x471c04
mov esi, dword [esi + 0xb4]
add esi, 4
xor ebx, ebx
test edi, edi
jbe 0x471c2f
push ebp
mov ebp, edi
add esi, 6
push esi
call fcn.0040b930
add esi, eax
push esi
mov ebx, esi
call fcn.0040b930
add esp, 8
add esi, eax
dec edi
dec ebp
jne 0x471c10
pop ebp
test edi, edi
pop edi
jne 0x471c53
test ebx, ebx
je 0x471c53
mov edx, dword [esp + 0x10]
push 0x4e
add edx, 0x10
push ebx
push edx
call fcn.00477c70
add esp, 0xc
mov eax, 1
pop esi
pop ebx
ret 0xc
pop esi
xor eax, eax
pop ebx
ret 0xc
Function at 0x471d75
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x471e8d
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x471e8d
mov eax, dword [esi + 0x3c]
push eax
call fcn.00488d8b
mov esi, eax
test esi, esi
je 0x471e8d
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x471e8d
mov ecx, esi
call fcn.00471d00
cmp edi, eax
jge 0x471e8d
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x471e13
mov dword [esp + 0x34], 1
jmp 0x471e6e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x471e8d
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.00471300
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x4880bb
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4880dd
cmp dword [edi + 0x3c], 0
jne 0x4880dd
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004908f6
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
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0048810a
pop edi
pop esi
pop ebx
ret 8

Function at 0x48972f
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x489767
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00487746
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0048771e
jmp 0x489773
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x48ae21
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x48ae63
call fcn.004908f6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x48ae63
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x48ae5a
xor eax, eax
jmp 0x48ae6b
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0048ae71
pop edi
pop esi
pop ebx
ret 4

Function at 0x490e26
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x490e54
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x490e72
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00490d8c
jmp 0x490e72
mov eax, dword [esi + 0x14]
test eax, eax
je 0x490e72
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00490d8c
test edi, edi
mov eax, edi
jne 0x490e5c
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx

Function at 0x401118
Capabilities:
Query environment variable

Disassembly:
enter 0x34, 0
mov edx, 0x403154
sub dword [ebp - 0x20], esi
push edx
push dword [edx + 0xd4]
push dword [edx + 0x60]
call fcn.00401a38
pop edx
push edx
lea edi, [edx - 0x154]
push edi
call sub.KERNEL32.dll_GetModuleHandleA
test eax, eax
jne 0x401135
pop edx
push edx
call sub.KERNEL32.dll_GetEnvironmentStringsA
pop edx
add esp, 0x34
pop ebp
ret 0x10

Function at 0x40188c
Capabilities:
Query environment variable

Disassembly:
enter 0x60, 0
mov ebx, 0x4031b0
and dword [ebx - 0x78], 0x49
call sub.KERNEL32.dll_GetEnvironmentStringsA
push ebx
push dword [ebx + 0x9c]
push dword [ebx + 0xb4]
push edi
call fcn.004012a0
pop ebx
push 0xfffffffffffffff5
call sub.KERNEL32.dll_GetStdHandle
add esp, 0x60
pop ebp
ret 0xc
Function at 0x401250
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
cmp dword [0x4340a8], 0x10
mov eax, dword [0x434094]
push edi
jae 0x40126b
mov eax, 0x434094
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401293
test bl, bl
jne 0x4012eb
mov ecx, esi
call fcn.00403dd0
pop edi
mov esp, ebp
pop ebp
ret
push esi
call fcn.00401980
test bl, bl
je 0x4012c7
test al, al
je 0x4012eb
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call edi
push esi
call fcn.004012f0
push 0x7d0
call edi
mov ecx, esi
call fcn.00403dd0
pop edi
mov esp, ebp
pop ebp
ret
test al, al
je 0x4012dd
push esi
call fcn.004012f0
mov ecx, esi
call fcn.00403dd0
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00403dd0
mov ecx, esi
call fcn.004034d0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x402f00
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x427c4b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x432b60]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push esi
mov eax, dword [0x432b60]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
xor ebx, ebx
push 0xffffffffffffffff
push ebx
push 0x436a40
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00405ed0
push ebx
push 0x434020
or eax, 0xffffffff
lea esi, [esp + 0x14]
mov dword [esp + 0x23c], ebx
call fcn.004048a0
push ebx
push 0x434074
or eax, 0xffffffff
call fcn.004048a0
push 0x1ff
lea eax, [esp + 0x2d]
push ebx
push eax
mov byte [esp + 0x34], bl
call fcn.004155a0
mov eax, dword [esp + 0x1c]
mov esi, 0x10
add esp, 0xc
cmp dword [esp + 0x24], esi
jae 0x402fad
lea eax, [esp + 0x10]
push eax
push 0x200
lea ecx, [esp + 0x30]
push ecx
push 0x42c643
push str.upurl
push str.liveupdate
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
cmp cl, bl
jne 0x402fd4
sub eax, edx
push eax
lea edx, [esp + 0x2c]
push edx
mov ecx, 0x436a78
call fcn.00406890
cmp dword [esp + 0x24], esi
jb 0x403002
mov eax, dword [esp + 0x10]
push eax
call fcn.00407b33
add esp, 4
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.00414015
add esp, 0x22c
ret
Function at 0x403b70
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x427e23
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x432b60]
xor eax, esp
mov dword [esp + 0x110], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x432b60]
xor eax, esp
push eax
lea eax, [esp + 0x128]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x18], esi
mov dword [esp + 0x130], 0
mov ebp, dword [esp + 0x13c]
test ebp, ebp
jne 0x403bcb
xor ebx, ebx
jmp 0x403be7
mov ecx, dword [esp + 0x140]
sub ecx, ebp
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
push 0x103
lea eax, [esp + 0x25]
push 0
push eax
mov byte [esp + 0x2c], 0
call fcn.004155a0
mov edx, dword [0x434040]
mov eax, 0x10
add esp, 0xc
cmp dword [0x434054], eax
jae 0x403c18
mov edx, 0x434040
cmp dword [0x43401c], eax
mov ecx, dword [0x434008]
jae 0x403c2b
mov ecx, 0x434008
cmp dword [esi + 0x18], eax
jb 0x403c35
mov eax, dword [esi + 4]
jmp 0x403c38
lea eax, [esi + 4]
push edx
push ecx
push eax
lea ecx, [esp + 0x2c]
push str._s_s_s
push ecx
mov eax, 0x104
call fcn.00404f60
add esp, 0x14
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x42c643
lea ecx, [esp + 0x18]
call fcn.004067d0
xor esi, esi
test ebx, ebx
mov byte [esp + 0x130], 1
jle 0x403d4e
lea edi, [ebp + 0x24]
test ebp, ebp
lea eax, [esp + 0x14]
push eax
je 0x403ca9
mov ecx, dword [esp + 0x144]
sub ecx, ebp
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x403cae
call fcn.0041414e
cmp dword [edi - 0xc], 0x10
jb 0x403cb9
mov eax, dword [edi - 0x20]
jmp 0x403cbc
lea eax, [edi - 0x20]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.004067d0
call fcn.00403310
test ebp, ebp
je 0x403cf2
mov ecx, dword [esp + 0x140]
sub ecx, ebp
mov eax, 0x88888889
imul ecx
add edx, ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp esi, eax
jb 0x403cf7
call fcn.0041414e
cmp dword [edi + 0x14], 0x10
jb 0x403d01
mov eax, dword [edi]
jmp 0x403d03
mov eax, edi
mov ecx, dword [esp + 0x14]
push ecx
push eax
mov ecx, 0x434004
call fcn.00405ca0
mov ecx, dword [esp + 0x20]
push eax
call fcn.00405ca0
push eax
lea edx, [esp + 0x30]
push str._s_s_s_s
push edx
mov eax, 0x104
call fcn.00404f60
add esp, 0x18
lea eax, [esp + 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esi, 1
add edi, 0x3c
cmp esi, ebx
jl 0x403c80
mov byte [esp + 0x130], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x403d76
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x403d97
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x140]
push ecx
push edx
mov eax, ebp
call fcn.00405720
push ebp
call fcn.00407b33
add esp, 0xc
mov ecx, dword [esp + 0x128]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.00414015
add esp, 0x120
ret 0x10
Function at 0x403dd0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x427be8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x432b60]
xor eax, esp
mov dword [esp + 0x1c], eax
push esi
push edi
mov eax, dword [0x432b60]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
push 0xffffffffffffffff
mov edi, ecx
push 0
push edi
lea ecx, [esp + 0x18]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
call fcn.00405ed0
push 0
push 0x4340ac
or eax, 0xffffffff
lea esi, [esp + 0x14]
mov dword [esp + 0x3c], 0
call fcn.004048a0
mov esi, 0x10
cmp dword [edi + 0x18], esi
jb 0x403e4f
mov edi, dword [edi + 4]
jmp 0x403e52
add edi, 4
cmp dword [esp + 0x24], esi
mov eax, dword [esp + 0x10]
jae 0x403e60
lea eax, [esp + 0x10]
push 1
push edi
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
cmp dword [esp + 0x24], esi
jb 0x403e86
mov eax, dword [esp + 0x10]
push eax
call fcn.00407b33
add esp, 4
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00414015
add esp, 0x2c
ret

Function at 0x406410
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 0x406429
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406464
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406460
lea ebx, [ebx]
cmp esi, eax
jae 0x406464
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406450
cmp esi, eax
jb 0x40646a
pop esi
pop edi
xor eax, eax
pop ebx
ret
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x4098ef
Capabilities:
Create http request

Disassembly:
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]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x409918
call fcn.0040b309
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]
test eax, eax
mov dword [esi + 8], eax
jne 0x40993b
push eax
push dword [esi + 4]
call fcn.0040987a
push esi
push eax
mov ecx, 0x434100
call fcn.00409530
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x40a193
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x427434
call fcn.004151c2
mov esi, ecx
mov dword [ebp - 0x10], esi
push dword [ebp + 0x1c]
mov edi, dword [ebp + 8]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.0040a155
and dword [ebp - 4], 0
lea ecx, [esi + 0x18]
mov dword [esi], vtable.CHttpConnection.0
call fcn.004069f0
push dword [esi + 8]
mov edi, dword [edi + 8]
push 0
push 3
push dword [ebp + 0x18]
mov byte [ebp - 4], 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call dword [sym.imp.WININET.dll_InternetConnectA]
test eax, eax
mov dword [esi + 4], eax
jne 0x40a1f9
push eax
push dword [esi + 8]
call fcn.0040987a
push dword [esi + 0xc]
mov ecx, 0x434100
push eax
call fcn.00409530
mov eax, esi
call fcn.00415261
ret 0x18

Function at 0x40be67
Capabilities:
Read file on windows

Disassembly:
cmp dword [esp + 8], 0
push esi
mov esi, ecx
jne 0x40be70
xor eax, eax
jmp 0x40bed9
cmp dword [esp + 8], 0
jne 0x40be7c
call fcn.00408238
push edi
push dword [esi + 0x10]
push dword [esp + 0x14]
push 1
push dword [esp + 0x18]
call fcn.00417ddf
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x40beb7
push dword [esi + 0x10]
call fcn.00417ae5
test eax, eax
pop ecx
jne 0x40beb7
mov esi, dword [esi + 0xc]
call fcn.0041556a
push esi
push dword [eax]
push 1
call fcn.0040d937
push dword [esi + 0x10]
call fcn.00417b14
test eax, eax
pop ecx
je 0x40bed6
push dword [esi + 0x10]
call fcn.00417a39
push eax
call fcn.00405930
pop ecx
pop ecx
jmp 0x40bea5
mov eax, edi
pop edi
pop esi
ret 8

Function at 0x40bee2
Capabilities:
Write file on windows

Disassembly:
cmp dword [esp + 4], 0
push esi
mov esi, ecx
jne 0x40beec
call fcn.00408238
push dword [esi + 0x10]
push dword [esp + 0x10]
push 1
push dword [esp + 0x14]
call fcn.00417f59
add esp, 0x10
cmp eax, dword [esp + 0xc]
je 0x40bf19
mov esi, dword [esi + 0xc]
call fcn.0041556a
push esi
push dword [eax]
push 1
call fcn.0040d937
pop esi
ret 8

Function at 0x414015
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x432b60]
jne 0x41401f
repz ret
jmp fcn.0041cf98