joyce8/EMBER2024-capa huggingface dataset:
Function at 0x585320
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x95e058]
xor edx, edx
cmp eax, edx
jne 0x585346
xor eax, eax
mov byte [eax + 0x95df58], al
inc eax
cmp eax, 0x100
jl 0x58532e
mov dword [0x95e058], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x95df58
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x5853d7
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x5853aa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x585378
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x585450
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x5854a3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x58548a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x58be40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5da76e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0058c760
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x7eccec
call fcn.005c076b
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x58bed3
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.005c076b
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x58becc
push 0
mov ecx, eax
call fcn.00582f50
mov dword [esi + 0xc], eax
jmp 0x58bed5
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x58bed5
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8
Function at 0x5b01ce
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x5b01ee
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005aeb0a
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x5b0211
test byte [esp + 8], 2
je 0x5b0211
call fcn.005aeb7d
mov dword [eax], 0xd
call fcn.005aeb86
mov dword [eax], 5
jmp 0x5b01ea
xor eax, eax
ret

Function at 0x5c2f8a
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x5c2fc2
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.005c0ed1
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.005c0ea9
jmp 0x5c2fce
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x5c4904
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 0x5c4946
call fcn.005cb37a
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x5c4946
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x5c493d
xor eax, eax
jmp 0x5c494e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.005c4954
pop edi
pop esi
pop ebx
ret 4

Function at 0x5cb8aa
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 0x5cb8d8
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x5cb8f6
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.005cb810
jmp 0x5cb8f6
mov eax, dword [esi + 0x14]
test eax, eax
je 0x5cb8f6
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.005cb810
test edi, edi
mov eax, edi
jne 0x5cb8e0
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x5ce61c
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x5ce644
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x5ce655
push 2
call edi
test ax, ax
jge 0x5ce655
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.005c25c0
cmp dword [esi + 0x30], ebx
jne 0x5ce72f
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.005c25c0
cmp eax, dword [esp + 0x34]
jne 0x5ce72f
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x5ce6cb
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x5ce710
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x5ce72f
cmp eax, 0x205
je 0x5ce72f
cmp eax, 0x201
je 0x5ce72f
cmp eax, 0x204
je 0x5ce72f
cmp eax, ebx
jne 0x5ce6f6
cmp dword [esp + 0x1c], 0x1b
je 0x5ce72f
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x96fb74]
jbe 0x5ce725
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x5ce688
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4015f0
Capabilities:
Set registry value

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [esp + 0x10]
push edi
push eax
push 0xf003f
push 0
push str.SOFTWARE
push 0x80000002
call esi
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.rcdrvinfo
push eax
call edi
mov ecx, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call ebx
mov edx, dword [esp + 0x14]
push edx
call ebx
lea eax, [esp + 0x14]
push eax
push 0xf003f
push 0
push str.SOFTWARE_rcdrvinfo
push 0x80000002
call esi
lea ecx, [esp + 0x18]
mov eax, dword [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
push 0
push 0xf003f
push 0
push 0
push 0
push str.geniusdog
push eax
call edi
mov edx, dword [esp + 0x10]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [esp + 0x1c]
push 4
push ecx
push 4
push 0
push str.build_no
push edx
mov dword [esp + 0x34], 2
call ebp
mov edi, 0x41c15c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x20]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x20]
or ecx, 0xffffffff
xor eax, eax
mov edx, dword [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
push ecx
lea ecx, [esp + 0x24]
push ecx
push 1
push eax
push str.product_time
push edx
call ebp
mov eax, dword [esp + 0x10]
push eax
call ebx
mov ecx, dword [esp + 0x14]
push ecx
call ebx
mov edx, dword [0x41d8a8]
lea eax, [edx - 4]
cmp eax, 4
ja case.default.0x40171d
jmp dword [eax*4 + 0x401850]
mov eax, dword [esp + 0x124]
push 0
push eax
call fcn.00401870
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov ecx, dword [esp + 0x124]
push 1
push ecx
call fcn.00401870
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x2710
call esi
mov edx, dword [esp + 0x124]
push 0
push edx
call fcn.00401c30
add esp, 8
mov edi, eax
push 0x2710
call esi
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
mov esi, dword [esp + 0x124]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 2
je 0x4017aa
cmp esi, 3
jne 0x4017c6
push 0x7d0
call edi
push 0x7d0
call edi
push 0xbb8
call edi
push 0xbb8
call edi
push 1
push esi
call fcn.00401c30
add esp, 8
cmp esi, 2
mov ebx, eax
je 0x4017dd
cmp esi, 3
jne 0x4017e4
push 0x2710
call edi
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x110
ret
mov esi, dword [esp + 0x124]
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp esi, 2
je 0x401808
cmp esi, 3
jne 0x40180f
push 0x2710
call ebx
push 2
push esi
call fcn.00401c30
add esp, 8
cmp esi, 2
mov edi, eax
je 0x40182a
cmp esi, 3
jne 0x401786
push 0x2710
call ebx
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
pop edi
pop esi
pop ebp
mov eax, 0xbbd
pop ebx
add esp, 0x110
ret
Function at 0x4079bd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x41ce88
cmp edx, dword [eax]
je 0x4079df
add eax, 8
inc ecx
cmp eax, 0x41cf18
jl 0x4079d0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x41ce88]
jne 0x407b0d
mov eax, dword [0x41fb98]
cmp eax, 1
je 0x407ae7
test eax, eax
jne 0x407a10
cmp dword [0x41ca74], 1
je 0x407ae7
cmp edx, 0xfc
je 0x407b0d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407a47
lea eax, [ebp - 0x1a4]
push 0x418dd0
push eax
call fcn.00407c40
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00407d30
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407a8a
lea eax, [ebp - 0x1a4]
push eax
call fcn.00407d30
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x418dcc
push edi
call fcn.00409af0
add esp, 0x10
lea eax, [ebp - 0xa0]
push 0x418db0
push eax
call fcn.00407c40
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00407c50
lea eax, [ebp - 0xa0]
push 0x418dac
push eax
call fcn.00407c50
push dword [esi + 0x41ce8c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00407c50
push 0x12010
lea eax, [ebp - 0xa0]
push 0x418d84
push eax
call fcn.00409a59
add esp, 0x2c
pop edi
jmp 0x407b0d
lea eax, [ebp + 8]
lea esi, [esi + 0x41ce8c]
push 0
push eax
push dword [esi]
call fcn.00407d30
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4127d8
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 0x41281a
call fcn.004153c5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41281a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x412811
xor eax, eax
jmp 0x412822
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00412828
pop edi
pop esi
pop ebx
ret 4

Function at 0x415b78
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 0x415ba6
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x415bc4
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00415ade
jmp 0x415bc4
mov eax, dword [esi + 0x14]
test eax, eax
je 0x415bc4
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00415ade
test edi, edi
mov eax, edi
jne 0x415bae
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
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.00403d80
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.00403d80
pop edi
mov esp, ebp
pop ebp
ret
test al, al
je 0x4012dd
push esi
call fcn.004012f0
mov ecx, esi
call fcn.00403d80
pop edi
mov esp, ebp
pop ebp
ret
mov ecx, esi
call fcn.00403d80
mov ecx, esi
call fcn.00403480
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.00404850
push ebx
push 0x434074
or eax, 0xffffffff
call fcn.00404850
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 0x42c66b
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.004068b0
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 0x403b20
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 0x403b7b
xor ebx, ebx
jmp 0x403b97
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 0x403bc8
mov edx, 0x434040
cmp dword [0x43401c], eax
mov ecx, dword [0x434008]
jae 0x403bdb
mov ecx, 0x434008
cmp dword [esi + 0x18], eax
jb 0x403be5
mov eax, dword [esi + 4]
jmp 0x403be8
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.00404f10
add esp, 0x14
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0x42c66b
lea ecx, [esp + 0x18]
call fcn.004067f0
xor esi, esi
test ebx, ebx
mov byte [esp + 0x130], 1
jle 0x403cfe
lea edi, [ebp + 0x24]
test ebp, ebp
lea eax, [esp + 0x14]
push eax
je 0x403c59
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 0x403c5e
call fcn.0041414e
cmp dword [edi - 0xc], 0x10
jb 0x403c69
mov eax, dword [edi - 0x20]
jmp 0x403c6c
lea eax, [edi - 0x20]
push ecx
mov ecx, esp
mov dword [esp + 0x24], esp
push eax
call fcn.004067f0
call fcn.004032c0
test ebp, ebp
je 0x403ca2
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 0x403ca7
call fcn.0041414e
cmp dword [edi + 0x14], 0x10
jb 0x403cb1
mov eax, dword [edi]
jmp 0x403cb3
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.00404f10
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 0x403c30
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 0x403d26
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x403d47
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x140]
push ecx
push edx
mov eax, ebp
call fcn.004056d0
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 0x403d80
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x427d88
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.00404850
mov esi, 0x10
cmp dword [edi + 0x18], esi
jb 0x403dff
mov edi, dword [edi + 4]
jmp 0x403e02
add edi, 4
cmp dword [esp + 0x24], esi
mov eax, dword [esp + 0x10]
jae 0x403e10
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 0x403e36
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 0x406430
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 0x406449
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x406484
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x406480
lea ebx, [ebx]
cmp esi, eax
jae 0x406484
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x406470
cmp esi, eax
jb 0x40648a
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 0x4098e9
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 0x409912
call fcn.0040b303
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 0x409935
push eax
push dword [esi + 4]
call fcn.00409874
push esi
push eax
mov ecx, 0x434100
call fcn.0040952a
mov eax, esi
pop esi
pop ebp
ret 0x18

Function at 0x40a18d
Capabilities:
Connect to http server

Disassembly:
push 4
mov eax, 0x427436
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.0040a14f
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 0x40a1f3
push eax
push dword [esi + 8]
call fcn.00409874
push dword [esi + 0xc]
mov ecx, 0x434100
push eax
call fcn.0040952a
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