joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41dfde
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x4599b8], eax
mov dword [0x4599b4], ecx
mov dword [0x4599b0], edx
mov dword [0x4599ac], ebx
mov dword [0x4599a8], esi
mov dword [0x4599a4], edi
mov word [0x4599d0], ss
mov word [0x4599c4], cs
mov word [0x4599a0], ds
mov word [0x45999c], es
mov word [0x459998], fs
mov word [0x459994], gs
pushfd
pop dword [0x4599c8]
mov eax, dword [ebp]
mov dword [0x4599bc], eax
mov eax, dword [ebp + 4]
mov dword [0x4599c0], eax
lea eax, [ebp + 8]
mov dword [0x4599cc], eax
mov eax, dword [ebp - 0x320]
mov dword [0x459908], 0x10001
mov eax, dword [0x4599c0]
mov dword [0x4598bc], eax
mov dword [0x4598b0], 0xc0000409
mov dword [0x4598b4], 1
mov eax, dword [0x408f9c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x458794]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x459900], eax
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x409190
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x459900], 0
jne 0x41e0ca
push 1
call sub.MSVCR100.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x4200ac
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x904
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
push 0x100
lea eax, [ebp - 0x904]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0x400
lea eax, [ebp - 0x804]
push eax
push esi
xor edi, edi
call fcn.004160d0
push 0x5c
pop esi
lea eax, [ebp - 0x804]
push esi
push eax
call dword [sym.imp.MSVCR100.dll_wcsrchr]
pop ecx
pop ecx
test eax, eax
je 0x420112
xor ecx, ecx
mov dword [ebp + edi*4 - 0x904], eax
mov word [eax], cx
inc edi
cmp edi, 0x40
jge 0x420155
test eax, eax
je 0x42014b
lea eax, [ebp - 0x804]
push eax
call fcn.00425487
test eax, eax
js 0x4200f1
jmp 0x42014b
mov eax, dword [ebp + edi*4 - 0x908]
dec edi
mov word [eax], si
push 0
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x420155
cmp edi, 1
jg 0x42012d
xor eax, eax
inc eax
jmp 0x420157
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0041d31a
leave
ret 4

Function at 0x420179
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push esi
push 0x10
push 1
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x4201c1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x4201c1
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4201c1
cmp word [eax + 2], 0
je 0x4201c1
cmp dword [eax + 0x28], 0xfeef04bd
jne 0x4201c1
add eax, 0x30
jmp 0x4201c6
mov eax, 0x409214
pop esi
pop ebp
ret
Function at 0x420a78
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x54], eax
test ebx, ebx
jne 0x420abd
push 0x15b3c8
call fcn.0041c827
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x420ab6
and dword [ebp - 0x4c], ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x420c21
cmp dword [0x45a24c], eax
je 0x420ad4
mov eax, dword [0x458b18]
mov dword [ebx], eax
xor eax, eax
inc eax
jmp 0x420c21
push edi
mov dword [ebx], eax
lea eax, [ebp - 0x4c]
push eax
push 0x20008
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x420b02
push 0x15b3c9
call fcn.0041c827
xor edi, edi
jmp 0x420c0c
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x54]
push eax
push 0
push 0
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
je 0x420b22
push 0x15b3ca
jmp 0x420af6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x420b34
push 0x15b3cb
jmp 0x420af6
push esi
push dword [ebp - 0x54]
lea ecx, [ebp - 0x50]
call fcn.004170d6
mov esi, dword [ebp - 0x50]
test al, al
jne 0x420b58
push 0x15b3cc
call fcn.0041c827
xor edi, edi
jmp 0x420c00
lea eax, [ebp - 0x54]
push eax
push dword [ebp - 0x54]
push esi
push 2
push dword [ebp - 0x4c]
call edi
test eax, eax
jne 0x420b72
push 0x15b3cd
jmp 0x420b4c
push 0x43
lea eax, [ebp - 0x47]
push 0
push eax
mov byte [ebp - 0x48], 0
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x48]
push eax
push 0
push 0xb
mov dword [ebp - 0x5c], 0x44
call dword [sym.imp.ADVAPI32.dll_CreateWellKnownSid]
test eax, eax
jne 0x420baa
push 0x15b3ce
jmp 0x420b4c
and dword [ebp - 0x58], 0
xor edi, edi
inc edi
cmp dword [esi], 0
jbe 0x420bf3
lea eax, [esi + 4]
mov dword [ebp - 0x50], eax
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x420bdb
mov eax, dword [ebp - 0x50]
push dword [eax]
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x420bf1
mov ecx, dword [ebp - 0x58]
mov eax, dword [ebp - 0x50]
inc ecx
add eax, 8
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x50], eax
cmp ecx, dword [esi]
jb 0x420bbc
jmp 0x420bf3
mov dword [ebx], edi
mov dword [0x45a24c], edi
mov eax, dword [ebx]
mov dword [0x458b18], eax
test esi, esi
je 0x420c0b
push esi
call fcn.0041ca48
pop ecx
pop esi
mov eax, dword [ebp - 0x4c]
test eax, eax
je 0x420c1e
and dword [ebp - 0x4c], 0
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041d31a
leave
ret 4
Function at 0x421727
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
call fcn.0042543e
test eax, eax
je 0x421848
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push edi
lea eax, [ebp - 0x214]
push eax
push 0x20019
xor edi, edi
push edi
push 0x409280
push 0x80000002
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x218], edi
call esi
test eax, eax
jne 0x42181a
lea eax, [ebp - 0x218]
push eax
push 0x20119
push edi
push 0x409280
push 0x80000002
call esi
test eax, eax
jne 0x42181a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x4092e4
push dword [ebp - 0x214]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x42181a
cmp dword [ebp - 0x220], 1
jne 0x42181a
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x220]
push eax
push edi
push 0x4092e4
push dword [ebp - 0x218]
mov dword [ebp - 0x21c], 0x20a
call esi
test eax, eax
jne 0x42181a
cmp dword [ebp - 0x220], 1
jne 0x42181a
inc bl
mov eax, dword [ebp - 0x218]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x421833
push eax
mov dword [ebp - 0x218], edi
call esi
mov ecx, dword [ebp - 0x214]
test ecx, ecx
je 0x421846
push ecx
mov dword [ebp - 0x214], edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041d31a
leave
ret
Function at 0x4013b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013cb
pop edi
pop ebx
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401402
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 0x10]
add eax, esi
and ecx, 0xf
jbe 0x4013fe
jmp 0x4013f0
cmp esi, eax
jae 0x401402
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x4013f0
cmp esi, eax
jb 0x401409
pop esi
pop edi
xor eax, eax
pop ebx
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x403430
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488311
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x59339c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x103
lea eax, [ebp - 0x113]
push 0
push eax
mov byte [ebp - 0x114], 0
call fcn.0046cb90
add esp, 0xc
push 0x103
lea ecx, [ebp - 0x114]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [ebp - 0x114]
push edx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov eax, dword [0x59331c]
mov edx, dword [eax + 0xc]
mov ecx, 0x59331c
call edx
add eax, 0x10
mov dword [ebp - 0x120], eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x120]
push str._sFFPlaySetupMiniOrg_temp.exe
push ecx
mov dword [ebp - 4], 0
call fcn.00402d10
mov edx, dword [0x59331c]
mov eax, dword [edx + 0xc]
add esp, 0xc
mov ecx, 0x59331c
call eax
add eax, 0x10
mov dword [ebp - 0x118], eax
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x118]
push str._sFFPlaySetupMini.exe
push edx
mov byte [ebp - 4], 1
call fcn.00402d10
mov eax, dword [0x59331c]
mov edx, dword [eax + 0xc]
add esp, 0xc
mov ecx, 0x59331c
call edx
add eax, 0x10
mov dword [ebp - 0x11c], eax
lea eax, [ebp - 0x114]
push eax
lea ecx, [ebp - 0x11c]
push str._sFFPlaySetup.exe
push ecx
mov byte [ebp - 4], 2
call fcn.00402d10
mov ebx, dword [ebp - 0x120]
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
add esp, 0xc
push ebx
call esi
cmp eax, 0xffffffff
jne 0x403575
mov eax, dword [ebp - 0x11c]
add eax, 0xfffffff0
mov byte [ebp - 4], 1
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x4035b9
mov edi, dword [ebp - 0x118]
push edi
call esi
cmp eax, 0xffffffff
jne 0x40358d
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov edi, dword [ebp - 0x11c]
push edi
call esi
cmp eax, 0xffffffff
jne 0x4035a5
push 1
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
lea eax, [edi - 0x10]
mov byte [ebp - 4], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035c5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [ebp - 0x118]
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 0
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4035eb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebx - 0x10]
or edx, 0xffffffff
lea ecx, [eax + 0xc]
mov dword [ebp - 4], edx
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40360a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0046bfc7
mov esp, ebp
pop ebp
ret
Function at 0x403630
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488348
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x59339c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x48]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4036d3
mov edx, dword [0x59331c]
mov eax, dword [edx + 0xc]
mov ecx, 0x59331c
call eax
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov edx, dword [esi + 0x48]
push ecx
push edx
lea eax, [ebp - 0x10]
push str._s:_d
push eax
mov dword [ebp - 4], 0
call fcn.00402d10
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi + 0x38]
add esp, 0x10
push 0
push 0
push ebx
push 3
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
lea eax, [ebx - 0x10]
mov dword [ebp - 4], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4036e7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
jmp 0x4036e7
mov eax, dword [esi + 0x38]
push 0
push 0
push 0
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov edi, eax
mov ecx, dword [esi + 0x50]
cmp dword [ecx - 0xc], 0
mov ebx, dword [sym.imp.WININET.dll_InternetSetOptionA]
je 0x403702
mov eax, ecx
mov edx, dword [eax - 0xc]
push edx
push eax
push 0x2b
push edi
call ebx
mov eax, dword [esi + 0x54]
cmp dword [eax - 0xc], 0
je 0x403717
mov esi, eax
mov ecx, dword [esi - 0xc]
push ecx
push esi
push 0x2c
push edi
call ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x403e70
Capabilities:
Parse url

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x488410
mov eax, dword fs:[0]
push eax
sub esp, 0x60
push ebx
push esi
push edi
mov eax, dword [0x59339c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 0x3c
xor ebx, ebx
lea eax, [ebp - 0x6c]
push ebx
push eax
call fcn.0046cb90
mov ecx, dword [edi + 0x20]
mov esi, dword [ecx - 0xc]
add esp, 0xc
lea edx, [ebp - 0xd]
push edx
add esi, 8
push esi
lea ecx, [ebp - 0x20]
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call fcn.004096f0
lea eax, [ebp - 0xd]
push eax
push esi
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], ebx
mov byte [ebp - 0xd], bl
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call fcn.004096f0
mov ecx, dword [ebp - 0x20]
mov edx, dword [ebp - 0x30]
mov edi, dword [edi + 0x20]
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], 0x3c
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], esi
mov ecx, dword [edi - 0xc]
push ebx
push ecx
push edi
mov byte [ebp - 4], 1
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
mov edi, dword [ebp - 0x20]
cmp edi, ebx
jne 0x403f24
xor eax, eax
jmp 0x403f39
mov eax, edi
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403f30
sub eax, edx
mov ecx, dword [ebp + 8]
push eax
push edi
call fcn.00402380
mov esi, dword [ebp - 0x30]
cmp esi, ebx
jne 0x403f4e
xor eax, eax
jmp 0x403f5c
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x403f53
sub eax, edx
mov ecx, dword [ebp + 0xc]
push eax
push esi
call fcn.00402380
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x60]
mov dword [edx], eax
cmp esi, ebx
je 0x403f7b
push esi
call fcn.0046bfbc
add esp, 4
cmp edi, ebx
je 0x403f88
push edi
call fcn.0046bfbc
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x404ab0
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x59339c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x3ff
lea eax, [ebp - 0x403]
mov dword [ebp - 0x408], 0
push 0
push eax
mov dword [ebp - 0x408], 0x400
mov byte [ebp - 0x404], 0
call fcn.0046cb90
add esp, 0xc
lea ecx, [ebp - 0x408]
push ecx
lea edx, [ebp - 0x404]
push edx
push 0
call sub.urlmon.dll_ObtainUserAgentString
lea eax, [ebp - 0x404]
push eax
mov ecx, esi
call fcn.00403fa0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0046bfc7
mov esp, ebp
pop ebp
ret
Function at 0x404c70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48869b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x59339c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
xor ebx, ebx
lea ecx, [esi + 0x10]
push ebx
mov dword [esi], vtable.FCHttpRequest.0
call fcn.00404b30
mov eax, dword [0x59331c]
mov edx, dword [eax + 0xc]
mov ecx, 0x59331c
mov dword [ebp - 4], ebx
call edx
add eax, 0x10
mov dword [esi + 0x64], eax
mov eax, dword [0x59331c]
mov edx, dword [eax + 0xc]
mov ecx, 0x59331c
mov byte [ebp - 4], 1
call edx
add eax, 0x10
mov dword [esi + 0x68], eax
mov eax, dword [0x59331c]
mov edx, dword [eax + 0xc]
lea edi, [esi + 0x6c]
mov ecx, 0x59331c
mov byte [ebp - 4], 2
mov dword [ebp - 0x14], edi
call edx
add eax, 0x10
mov dword [edi + 8], eax
mov eax, dword [0x59331c]
mov edx, dword [eax + 0xc]
mov ecx, 0x59331c
mov byte [ebp - 4], 3
call edx
add eax, 0x10
mov dword [edi + 0xc], eax
mov dword [edi], ebx
mov dword [edi + 4], ebx
mov dword [edi + 0x14], ebx
lea eax, [esi + 0x88]
push eax
mov dword [esi + 0x84], vtable.inner::FCAutoCSec.0
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [esi + 0x84], vtable.inner::CReceiveBuffer.0
mov dword [esi + 0xb4], 0xf
mov dword [esi + 0xb0], ebx
mov byte [esi + 0xa0], bl
mov dword [esi + 0xbc], ebx
mov dword [esi + 0xc0], ebx
mov dword [esi + 0xc4], ebx
mov dword [esi + 0xc8], ebx
mov dword [esi + 0xcc], ebx
mov dword [esi + 0xd0], ebx
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov dword [esi + 8], ecx
push eax
lea ecx, [esi + 0x10]
mov byte [ebp - 4], 0xa
mov dword [esi + 0xc], edx
call fcn.00403890
lea ecx, [esi + 0x60]
push ecx
lea eax, [esi + 0x68]
push eax
lea eax, [esi + 0x64]
push eax
lea ecx, [esi + 0x10]
call fcn.00403e70
mov ecx, esi
call fcn.00403630
push ebx
push ebx
push esi
push 0x401770
push ebx
push ebx
mov dword [esi + 0xc0], eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0xcc], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x58], eax
mov eax, dword [esi + 0x44]
mov dword [esi + 0x5c], ebx
cmp eax, ebx
je 0x404df0
mov edx, dword [esi + 8]
push ebx
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_SetTimer]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4053f0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x18]
push esi
xor edx, edx
xor esi, esi
mov dword [ebp - 4], edx
cmp si, word [eax + 6]
jae 0x405490
push ebx
lea esi, [ecx + 0x1c]
push edi
mov edi, edi
mov ebx, dword [esi]
mov edx, dword [ecx + 0x18]
mov edi, dword [edx + 0x38]
mov eax, dword [ebx + 0xc]
lea eax, [eax + edi - 1]
xor edx, edx
div edi
add esi, 4
imul eax, edi
mov dword [ebx + 0xc], eax
mov ebx, dword [esi - 4]
mov edx, dword [ecx + 0x18]
mov edi, dword [edx + 0x38]
mov eax, dword [ebx + 8]
lea eax, [edi + eax - 1]
xor edx, edx
div edi
imul eax, edi
mov dword [ebx + 8], eax
mov ebx, dword [esi - 4]
mov edx, dword [ecx + 0x18]
mov edi, dword [edx + 0x3c]
mov eax, dword [ebx + 0x14]
lea eax, [eax + edi - 1]
xor edx, edx
div edi
imul eax, edi
mov dword [ebx + 0x14], eax
mov edx, dword [ecx + 0x18]
mov edi, dword [edx + 0x3c]
mov ebx, dword [esi - 4]
mov eax, dword [ebx + 0x10]
lea eax, [edi + eax - 1]
xor edx, edx
div edi
imul eax, edi
mov dword [ebx + 0x10], eax
mov edx, dword [ecx + 0x18]
mov eax, dword [ebp - 4]
movzx edx, word [edx + 6]
inc eax
mov dword [ebp - 4], eax
cmp eax, edx
jl 0x405410
pop edi
xor edx, edx
pop ebx
mov eax, dword [ebp - 4]
mov eax, dword [ecx + eax*4 + 0x18]
mov esi, dword [eax + 0xc]
add esi, dword [eax + 8]
mov eax, dword [ecx + 0x18]
mov dword [eax + 0x50], esi
mov eax, dword [ecx + 0x18]
mov dword [eax + 0xd0], edx
mov eax, dword [ecx + 0x18]
mov dword [eax + 0xd4], edx
mov eax, dword [ecx + 0x18]
mov dword [eax + 0xd8], edx
mov ecx, dword [ecx + 0x18]
mov dword [ecx + 0xdc], edx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4054d0
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
xor edx, edx
push ebx
push esi
mov esi, ecx
mov ebx, dword [esi + 0x18]
mov ecx, dword [ebx + 0x3c]
lea eax, [ecx + eax - 1]
div ecx
push edi
movzx edi, word [ebx + 6]
mov ebx, dword [ebx + 0x38]
imul eax, ecx
mov dword [ebp + 0xc], eax
mov eax, dword [esi + edi*4 + 0x18]
mov edx, dword [eax + 0x14]
add edx, dword [eax + 0x10]
lea eax, [edx + ecx - 1]
xor edx, edx
div ecx
xor edx, edx
imul eax, ecx
mov dword [ebp - 4], eax
mov eax, dword [esi + edi*4 + 0x18]
mov ecx, dword [eax + 0xc]
add ecx, dword [eax + 8]
lea eax, [ecx + ebx - 1]
div ebx
mov edx, dword [esi + edi*4 + 0x1c]
xor ecx, ecx
mov dword [edx], ecx
mov dword [edx + 4], ecx
mov dword [edx + 8], ecx
mov dword [edx + 0xc], ecx
mov dword [edx + 0x10], ecx
mov dword [edx + 0x14], ecx
mov dword [edx + 0x18], ecx
mov dword [edx + 0x1c], ecx
mov dword [edx + 0x20], ecx
mov dword [edx + 0x24], ecx
mov edx, dword [esi + edi*4 + 0x1c]
mov ecx, dword [ebp - 4]
mov dword [edx + 0x14], ecx
mov edx, dword [esi + edi*4 + 0x1c]
imul eax, ebx
mov dword [edx + 0xc], eax
mov ecx, dword [esi + edi*4 + 0x1c]
mov eax, dword [ebp + 0xc]
mov dword [ecx + 0x10], eax
lea eax, [ebx + eax - 1]
xor edx, edx
div ebx
mov edx, dword [esi + edi*4 + 0x1c]
mov ecx, dword [ebp + 8]
imul eax, ebx
mov dword [edx + 8], eax
mov eax, dword [esi + edi*4 + 0x1c]
mov dword [eax + 0x24], 0xc0000040
mov eax, ecx
lea edx, [eax + 1]
mov bl, byte [eax]
inc eax
test bl, bl
jne 0x405587
sub eax, edx
push eax
push ecx
mov ecx, dword [esi + edi*4 + 0x1c]
push ecx
call fcn.0046c4b0
mov edx, dword [ebp + 0xc]
add esp, 0xc
push edx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov dword [esi + edi*4 + 0x6c], eax
mov eax, dword [esi + 0x18]
inc word [eax + 6]
mov eax, dword [esi + edi*4 + 0x1c]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8