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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bc5dd
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x6ac30c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 0x10]
mov dword [esi], vtable.cMultiLineText.0
call fcn.004b0340
push fcn.004b0350
push fcn.004b0340
push 5
push 0x20
lea eax, [esi + 0x58]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.00599fe5
lea ecx, [esi + 0xf8]
mov byte [ebp - 4], 1
call fcn.004b0340
lea ecx, [esi + 0x118]
mov byte [ebp - 4], 2
call fcn.004b0340
lea ecx, [esi + 0x140]
mov byte [ebp - 4], 3
call fcn.004b0340
push edi
push edi
push edi
mov eax, 0xffffff
push edi
lea edx, [esi + 0x38]
xor ecx, ecx
push edx
mov dword [esi + 0x30], eax
mov dword [esi + 0x34], eax
mov dword [esi + 0x48], edi
mov dword [esi + 4], edi
mov word [esi + 0xc], cx
mov dword [esi + 0x4c], edi
mov dword [esi + 8], edi
call dword [sym.imp.USER32.dll_SetRect]
mov dword [esi + 0x50], 0xff
mov dword [esi + 0x54], 0x64
mov dword [esi + 0x138], edi
mov dword [esi + 0x13c], edi
mov dword [esi + 0x160], edi
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c41e0
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bd783
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6ac30c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004b4990
xor edi, edi
lea ecx, [esi + 0x50]
mov dword [ebp - 4], edi
mov dword [esi], vtable.cWindow.0
call fcn.004b3ad0
mov ebx, 1
lea ecx, [esi + 0x1b4]
mov byte [ebp - 4], bl
call fcn.004b0340
fldz
fst dword [esi + 0x208]
mov ecx, ebx
fstp dword [esi + 0x20c]
mov word [esi + 0xc], cx
fld1
xor eax, eax
xor edx, edx
fst dword [esi + 0x228]
xor ecx, ecx
fstp dword [esi + 0x22c]
mov dword [esi + 8], edi
mov word [esi + 0x1c], ax
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], edi
mov dword [esi + 0x20], ebx
mov dword [esi + 0x24], edi
mov dword [esi + 0x224], edx
mov dword [esi + 0x1d4], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 4], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x1d8], 0xffffff
mov dword [esi + 0x1dc], 0xff
mov dword [esi + 0x1e0], 0x64
mov dword [esi + 0x18], fcn.0047fd50
mov dword [esi + 0x30], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x34], ebx
mov dword [esi + 0x214], edi
mov word [esi + 0x218], cx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [esi + 0x21c], eax
mov dword [esi + 0x220], edi
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

Function at 0x4c4750
Capabilities:
Check for time delay via gettickcount

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x10], 0
je 0x4c47a6
mov ecx, dword [esi + 0x1d4]
test ecx, ecx
je 0x4c47a6
mov edx, dword [esi + 0x1e0]
fldz
imul edx, dword [esi + 0x1dc]
mov eax, 0x51eb851f
mul edx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1d8]
lea eax, [esi + 0x1e4]
push edx
push eax
push ecx
lea edx, [esi + 0x228]
fstp dword [esp]
push 0
push edx
call fcn.004b0390
mov ecx, esi
call fcn.004c4610
mov eax, dword [esi + 0x214]
test eax, eax
je 0x4c4868
cmp dword [esi + 0x220], 0
je 0x4c4868
movzx ecx, word [esi + 0x218]
shl ecx, 5
add ecx, eax
cmp dword [ecx + 0x50], 0
je 0x4c4812
mov edx, dword [esi + 0x1e0]
fldz
imul edx, dword [esi + 0x1dc]
mov eax, 0x51eb851f
mul edx
shr edx, 5
shl edx, 0x18
or edx, dword [esi + 0x1d8]
lea eax, [esi + 0x1e4]
push edx
push eax
push ecx
lea edx, [esi + 0x228]
add ecx, 0x4c
fstp dword [esp]
push 0
push edx
call fcn.004b0390
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ecx, dword [esi + 0x214]
movzx edx, word [ecx + 0x48]
sub eax, dword [esi + 0x21c]
cmp eax, edx
jbe 0x4c4867
call edi
inc word [esi + 0x218]
mov dword [esi + 0x21c], eax
mov ax, word [esi + 0x218]
cmp ax, 0x40
jae 0x4c485e
mov ecx, dword [esi + 0x214]
movzx eax, ax
shl eax, 5
cmp dword [eax + ecx + 0x50], 0
jne 0x4c4867
xor edx, edx
mov word [esi + 0x218], dx
pop edi
pop esi
ret
Function at 0x4c59b0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push edi
mov ebx, ecx
push 0x5c78a8
push str.._Data_UserCfgInfo.dat
mov dword [ebp - 4], ebx
call fcn.0059a464
mov edi, eax
add esp, 8
test edi, edi
je 0x4c5a71
push esi
push edi
push 1
lea esi, [ebx + 0x30]
push 0x68
push esi
call fcn.0059b2f7
push edi
call fcn.0059a228
mov eax, esi
add esp, 0x14
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c59f6
sub eax, edx
je 0x4c5a33
mov ebx, 0xffffffd0
sub ebx, dword [ebp - 4]
mov ecx, esi
jmp 0x4c5a10
add byte [ecx], 0x9d
mov eax, esi
inc ecx
lea edi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c5a20
sub eax, edi
lea edx, [ebx + ecx]
cmp edx, eax
jb 0x4c5a10
mov ebx, dword [ebp - 4]
lea edi, [ebx + 0x62]
mov eax, edi
lea edx, [eax + 1]
jmp 0x4c5a40
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4c5a40
sub eax, edx
je 0x4c5a70
mov ebx, 0xffffff9e
sub ebx, dword [ebp - 4]
mov ecx, edi
add byte [ecx], 0x9d
mov eax, edi
inc ecx
lea esi, [eax + 1]
mov edi, edi
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c5a60
sub eax, esi
lea edx, [ebx + ecx]
cmp edx, eax
jb 0x4c5a55
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4c5a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x70
mov eax, dword [0x6ac30c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x5c7870
push str.._Data_UserCfgInfo.dat
mov esi, ecx
call fcn.0059a464
mov ebx, eax
add esi, 0x30
add esp, 8
mov ecx, 0x1a
lea edi, [ebp - 0x6c]
rep movsd dword es:[edi], dword [esi]
test ebx, ebx
je 0x4c5b34
lea eax, [ebp - 0x6c]
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c5ac2
sub eax, esi
je 0x4c5aed
lea ecx, [ecx]
add byte [ebp + ecx - 0x6c], 0x63
lea eax, [ebp - 0x6c]
inc ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c5ae0
sub eax, esi
cmp ecx, eax
jb 0x4c5ad0
lea eax, [ebp - 0x3a]
xor ecx, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c5af5
sub eax, esi
je 0x4c5b1d
add byte [ebp + ecx - 0x3a], 0x63
lea eax, [ebp - 0x3a]
inc ecx
lea esi, [eax + 1]
lea esp, [esp]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x4c5b10
sub eax, esi
cmp ecx, eax
jb 0x4c5b00
push ebx
push 1
lea eax, [ebp - 0x6c]
push 0x68
push eax
call fcn.0059b033
push ebx
call fcn.0059a228
add esp, 0x14
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599821
mov esp, ebp
pop ebp
ret

Function at 0x4c5b50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
push eax
lea ecx, [esi + 0x30]
push ecx
mov dword [esi + 0x94], edi
call fcn.0059a4c2
mov edx, dword [ebp + 0x10]
push edx
lea eax, [esi + 0x62]
push eax
call fcn.0059a4c2
add esp, 0x10
test edi, edi
je 0x4c5b8e
mov ecx, esi
call fcn.004c5a80
pop edi
pop esi
pop ebp
ret 0xc
push str.._Data_UserCfgInfo.dat
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c5c00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0xc]
pop ebp
jmp fcn.004be2e0

Function at 0x4caa15
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [0x60470c]
push esi
mov esi, ecx
mov ecx, dword [eax + 8]
mov dword [ecx + 0xc], 1
cmp dword [esi + 0x10], 0
push 0
mov ecx, 0x604704
push 0
je 0x4caa4b
push 3
mov dword [0x6d72c0], 1
call fcn.004ff730
mov dword [esi + 0x10], 0
jmp 0x4caa52
push 2
call fcn.004ff730
cmp dword [0x60cd40], 0
pop esi
jne 0x4caa70
mov dword [0x60cd40], 1
mov ecx, 0x60cca8
jmp fcn.00539c80
ret
Function at 0x4fb820
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push esi
push edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push eax
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4fb852
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp + 8]
push ecx
push 0x500
lea edx, [edi + 0x504]
push edx
push esi
call ebx
test eax, eax
jne 0x4fb882
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
push 0
lea eax, [ebp + 8]
push eax
push 0xc0
add edi, 0xac4
push edi
push esi
call ebx
push esi
test eax, eax
je 0x4fb873
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, 1
pop esi
pop ebp
ret 4
Function at 0x504050
Capabilities:
Hash data with md5

Disassembly:
push esi
mov esi, ecx
push edi
xor eax, eax
push 0x40
push eax
lea edi, [esi + 0x5c]
push edi
mov dword [esi], vtable.MD5_CTX.0
mov dword [esi + 0x18], eax
mov dword [esi + 0x14], eax
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
call fcn.00599ee0
add esp, 0xc
mov byte [edi], 0x80
pop edi
mov eax, esi
pop esi
ret

Function at 0x504170
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x6ac30c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
lea eax, [esi + 0x14]
xor ecx, ecx
lea ecx, [ecx]
movzx edx, byte [eax]
mov byte [ebp + ecx - 0xc], dl
movzx edx, byte [eax + 1]
mov byte [ebp + ecx - 0xb], dl
movzx edx, byte [eax + 2]
mov byte [ebp + ecx - 0xa], dl
movzx edx, byte [eax + 3]
mov byte [ebp + ecx - 9], dl
add ecx, 4
add eax, 4
cmp ecx, 8
jb 0x504190
mov ecx, dword [esi + 0x14]
shr ecx, 3
and ecx, 0x3f
mov eax, 0x38
cmp ecx, 0x38
jb 0x5041d2
mov eax, 0x78
sub eax, ecx
push eax
lea edi, [esi + 0x5c]
push edi
mov ecx, esi
call fcn.005040a0
push 8
lea eax, [ebp - 0xc]
push eax
mov ecx, esi
call fcn.005040a0
lea eax, [esi + 4]
lea ecx, [ebx + 1]
mov edx, 4
jmp 0x504200
movzx ebx, byte [eax]
mov byte [ecx - 1], bl
movzx ebx, byte [eax + 1]
mov byte [ecx], bl
movzx ebx, byte [eax + 2]
mov byte [ecx + 1], bl
movzx ebx, byte [eax + 3]
mov byte [ecx + 2], bl
add eax, 4
add ecx, 4
dec edx
jne 0x504200
push 0x9c
push edx
push esi
call fcn.00599ee0
push 0x40
push 0
push edi
mov dword [esi + 0x18], 0
mov dword [esi + 0x14], 0
mov dword [esi + 4], 0x67452301
mov dword [esi + 8], 0xefcdab89
mov dword [esi + 0xc], 0x98badcfe
mov dword [esi + 0x10], 0x10325476
call fcn.00599ee0
mov ecx, dword [ebp - 4]
add esp, 0x18
mov byte [edi], 0x80
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00599821
mov esp, ebp
pop ebp
ret 4

Function at 0x5067f0
Capabilities:
Create thread
Terminate process

Disassembly:
push esi
mov esi, dword [sym.imp.USER32.dll_FindWindowExA]
push 0
push str.ProcessHacker
push 0
push 0
call esi
push 0
test eax, eax
je 0x506830
push 0
push 0
push 0x5067c0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push str.TUserdefinedform
push 0
push 0
call esi
push 0
test eax, eax
jne 0x50680a
push str.TformAddressChange
push eax
push eax
call esi
push 0
test eax, eax
jne 0x50680a
push str.TMemoryBrowser
push eax
push eax
call esi
push 0
test eax, eax
jne 0x50680a
push str.TFoundCodeDialog
push eax
push eax
call esi
pop esi
test eax, eax
je 0x506871
push 0
jmp 0x50680a
ret
Function at 0x506a90
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push esi
mov ecx, 0x605580
call fcn.00518a10
mov ebx, dword [sym.imp.USER32.dll_GetSystemMetrics]
push 7
mov dword [0x6d7ff4], esi
call ebx
mov edi, eax
push 7
add edi, edi
call ebx
mov esi, eax
push 4
add esi, esi
call ebx
lea ecx, [esi + eax]
mov esi, dword [0x6c5c20]
xor edx, edx
mov eax, esi
div dword [0x6c51ac]
mov eax, dword [0x6c51b0]
mov edx, dword [eax + edx*4]
test edx, edx
je 0x506aee
cmp dword [edx], esi
je 0x506b35
mov edx, dword [edx + 0xc]
test edx, edx
jne 0x506ae3
mov edx, dword [ebp + 8]
push 0
push edx
push 0
push 0
add ecx, 0x300
push ecx
add edi, 0x400
push edi
push 0
push closesocket
push 0x2ca0000
push 0x6d7df0
push 0x6d7bf0
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
mov dword [0x6d7ff0], esi
test esi, esi
jne 0x506b54
pop edi
pop esi
pop ebx
pop ebp
ret
mov edx, dword [edx + 4]
test edx, edx
je 0x506aee
mov eax, dword [ebp + 8]
push 0
push eax
mov eax, dword [edx + 8]
push 0
add eax, ecx
mov ecx, dword [edx + 4]
push 0
push eax
add ecx, edi
push ecx
jmp 0x506b06
mov eax, dword [ebp + 0xc]
push eax
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 1
call dword [sym.imp.USER32.dll_ShowCursor]
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
push esi
mov ecx, 0x604704
call fcn.004ff870
push 0
push 0
push 2
mov ecx, 0x604704
call fcn.004ff730
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x5090f0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5beafb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6ac30c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.005995f1
push 4
mov dword [ebp - 4], 0
call fcn.00599f65
mov edi, eax
add esp, 4
test edi, edi
je 0x509170
call fcn.005992af
mov dword [edi], eax
call fcn.0059906e
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.00598fa3
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x509166
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00598fcb
jmp 0x509172
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
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
Function at 0x509d00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bece8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6ac30c]
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
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x509e21
cmp byte [edi + 0x49], bl
je 0x509e21
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
call edx
cmp eax, 0xffffffff
je 0x509e15
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x509d75
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x509d8d
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x509db6
dec eax
je 0x509dba
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x509e10
jmp 0x509e1c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x509dca
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x509df3
cmp ebx, 0x10
jae 0x509dd9
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.0059b033
add esp, 0x10
cmp esi, eax
jne 0x509e0d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x509e19
test esi, esi
jne 0x509d81
push esi
push 8
lea ecx, [ebp - 0x2c]
call fcn.0044cb50
jmp 0x509d7b
lea ecx, [ebp - 0x2c]
call fcn.00477ae0
xor al, al
jmp 0x509e23
lea ecx, [ebp - 0x2c]
call fcn.00477ae0
mov al, 1
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.00599821
mov esp, ebp
pop ebp
ret
Function at 0x50a360
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5bed67
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x6ac30c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp + 8], eax
je 0x50a3ae
mov dword [ebx], 0x5d9428
mov dword [ebx + 0x68], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov dword [ebx + edx], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov dword [ebx + 8], eax
mov dword [ebx + 0xc], eax
mov eax, dword [ebx]
mov edi, dword [eax + 4]
add edi, ebx
mov ecx, edi
call fcn.00508a00
lea esi, [ebx + 0x10]
push 0x20
mov ecx, edi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], 0
call fcn.00509750
cmp dword [edi + 0x38], 0
mov byte [edi + 0x40], al
jne 0x50a400
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.005088d0
mov ecx, dword [ebx]
mov edx, dword [ecx + 4]
mov ecx, esi
mov dword [ebp - 4], 2
mov dword [ebx + edx], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
call fcn.005090f0
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], 0
mov byte [esi + 0x49], 0
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
xor ecx, ecx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ecx
mov eax, dword [esi + 0x24]
mov dword [eax], ecx
mov edx, dword [esi + 0x34]
mov dword [edx], ecx
mov eax, dword [esi + 0x10]
mov dword [eax], ecx
mov edx, dword [esi + 0x20]
mov dword [edx], ecx
mov eax, dword [esi + 0x30]
mov dword [eax], ecx
mov dword [esi + 0x54], ecx
mov edx, dword [0x6d8688]
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ecx
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50bde0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ecx + 0x1f4]
test ecx, ecx
jne 0x50bdf3
xor eax, eax
pop ebp
ret 8
pop ebp
jmp fcn.0057f090

Function at 0x50e520
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x1f4], 0
push edi
je 0x50e5cd
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x50e5cd
push 0
push 1
push 0x6d86f8
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, 1
je 0x50e5cd
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [0x6d86e4], ecx
mov edx, dword [eax + 4]
mov dword [0x6d86e8], edx
mov eax, dword [eax + 8]
mov dword [0x6d86ec], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
mov dword [0x6d86d8], ecx
mov edx, dword [eax + 4]
mov dword [0x6d86dc], edx
mov eax, dword [eax + 8]
mov edx, dword [ebp + 0x14]
mov dword [0x6d86e0], eax
mov ecx, dword [esi + 0x1f4]
lea eax, [ebp + 0x10]
push eax
push 0
push 0
push 0x50e490
push 0
push 0
mov dword [0x6d86f0], ecx
mov dword [0x6d86f4], edi
mov dword [0x604cfc], edx
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x50e5d5
push eax
push 0x6d86f8
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
pop edi
xor eax, eax
pop esi
pop ebp
ret 0x10
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, 1
pop esi
pop ebp
ret 0x10

Function at 0x50edd0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6ac30c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
lea edx, [ebp - 0x104]
mov ebx, ecx
mov eax, esi
sub edx, esi
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x50edf4
movsx eax, byte [esi]
push eax
call fcn.0059e786
add esp, 4
test eax, eax
je 0x50ee85
lea ecx, [ebp - 0x104]
push ecx
call sub.WSOCK32.dll_gethostbyname
mov esi, eax
test esi, esi
jne 0x50ee32
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 8
mov eax, dword [esi + 0xc]
push edi
xor edi, edi
cmp dword [eax], edi
je 0x50ee84
lea esp, [esp]
movsx edx, word [esi + 0xa]
mov eax, dword [eax]
push edx
push eax
lea ecx, [ebp - 0x110]
push ecx
call fcn.0059a830
mov edx, dword [ebp - 0x110]
add esp, 0xc
push edx
call sub.WSOCK32.dll_inet_ntoa
push eax
lea eax, [ebp - 0x104]
push 0x5c7824
push eax
call fcn.0059a4c2
mov ecx, dword [esi + 0xc]
inc edi
lea eax, [ecx + edi*4]
add esp, 0xc
cmp dword [eax], 0
jne 0x50ee40
pop edi
lea edx, [ebp - 0x104]
push edx
push 0x20
push 0x6da200
call fcn.0059c79f
mov eax, dword [0x6da240]
mov esi, dword [ebp + 0xc]
imul eax, eax, 0x58
add esp, 0xc
cmp si, word [eax + 0x6c51dc]
jne 0x50eecb
cmp dword [0x6da220], 0
je 0x50eecb
cmp dword [0x6da23c], 0
jne 0x50eecb
mov ecx, 0x6da220
call fcn.0055f6b0
mov eax, dword [ebx + 0x114]
mov ecx, dword [eax]
push esi
lea edx, [ebp - 0x104]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
xor ecx, ecx
test eax, eax
setne cl
mov dword [ebx + 0x118], eax
pop esi
pop ebx
mov eax, ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 8