joyce8/EMBER2024-capa huggingface dataset:
Function at 0x533b80
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
mov ecx, dword [ebp + 0x10]
push 0x80
lea eax, [esi + 0x18]
push ecx
push eax
mov dword [ebp - 4], eax
call fcn.0059a570
mov edx, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea edi, [esi + 4]
add esp, 0xc
cmp dword [edi], 0
mov dword [esi + 0xc], edx
jne 0x533bc1
push ebx
push edi
call fcn.005321a0
mov eax, dword [edi]
add esp, 8
mov dword [esi + 8], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
push ecx
push ebx
push edx
lea edi, [esi + 0x9c]
push str._MemoryPooltempl__s_
push edi
mov dword [esi + 0x98], ebx
call fcn.0059a4c2
add esp, 0x14
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0x98]
mov edx, dword [esi + 0x14]
lea ecx, [eax*4]
push ecx
mov ecx, dword [ebp - 4]
push eax
mov eax, dword [esi + 0xc]
push edx
push eax
push ebx
push ecx
push str.__s__Init_t_d_t_d_t_d_t_d_t_d_n
push edi
call fcn.0059a4c2
push edi
call fcn.00594970
add esp, 0x24
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x533c30
Capabilities:
Print debug messages

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
test eax, eax
jne 0x533c3c
pop esi
ret
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x533c55
dec ecx
mov dword [eax + 0x10], ecx
mov eax, dword [eax + 4]
mov eax, dword [eax + ecx*4]
test eax, eax
jne 0x533d38
mov ecx, dword [esi + 8]
mov eax, dword [ecx + 0x14]
push ebx
push edi
test eax, eax
jne 0x533cca
mov edx, dword [esi + 0xc]
push edx
lea edi, [esi + 4]
push edi
call fcn.005321a0
mov eax, dword [edi]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0xc]
inc dword [esi + 0x10]
push ecx
push edx
mov dword [esi + 8], eax
mov eax, dword [esi + 0x10]
push eax
lea ebx, [esi + 0x18]
push ebx
lea edi, [esi + 0x9c]
push str.___s_alloc_Band
push edi
call fcn.0059a4c2
add esp, 0x20
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
add dword [esi + 0x98], eax
mov ecx, dword [esi + 0x98]
lea edx, [ecx*4]
push edx
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x14]
push ecx
push eax
push edx
push ebx
push str.__s__Increse_t_d_t_d_t_d_t_d_t_d_n
jmp 0x533d1f
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 0x10]
mov dword [esi + 8], eax
mov eax, dword [esi + 0x14]
push eax
push ecx
push edx
lea ebx, [esi + 0x18]
push ebx
lea edi, [esi + 0x9c]
push 0x5c791c
push edi
call fcn.0059a4c2
add esp, 0x18
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [esi + 0xc]
sub dword [esi + 0x98], eax
mov ecx, dword [esi + 0x98]
lea edx, [ecx*4]
push edx
mov edx, dword [esi + 0x10]
push ecx
mov ecx, dword [esi + 0x14]
push ecx
push eax
push edx
push ebx
push str.__s__Decrese_t_d_t_d_t_d_t_d_t_d_n
push edi
call fcn.0059a4c2
push edi
call fcn.00594970
add esp, 0x24
pop edi
pop ebx
mov ecx, esi
pop esi
jmp fcn.00533c30
inc dword [esi + 0x14]
pop esi
ret
Function at 0x536060
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6ac30c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x14]
push edi
push 0xff
lea edx, [ebp - 0x104]
push edx
push 0
mov dword [ebp - 0x108], eax
mov dword [ebp - 0x10c], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x104]
push 0x5c
push eax
call fcn.0059bf20
mov byte [eax + 1], 0
mov eax, esi
add esp, 8
mov ecx, eax
jmp 0x5360c0
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x5360c0
lea edi, [ebp - 0x104]
sub eax, ecx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x5360d0
mov edx, dword [ebp - 0x10c]
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, dword [ebp - 0x108]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x104]
push ecx
push 0xff
push edx
push 0
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
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 0x539bd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push 0
push 0x80
push 3
push 0
push 0
push closesocket
push str.._ini_GameOption.opt
mov ebx, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x539c06
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea eax, [ebp - 4]
push eax
push 4
lea ecx, [ebp - 8]
push ecx
push esi
mov dword [ebp - 4], 0
call edi
test eax, eax
je 0x539c46
cmp dword [ebp - 8], 0x61208
jne 0x539c46
push 0
lea edx, [ebp - 4]
push edx
push 0xbc
add ebx, 4
push ebx
push esi
call edi
test eax, eax
jne 0x539c56
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 4], 0xbc
push esi
ja 0x539c47
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x53a210
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ecx + 0x80]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
cmp eax, dword [esi + 0x7c]
je 0x53a22f
mov dword [ecx + 0xc0], 1
push 0
push 0x80
push 2
push 0
lea ebx, [ecx + 4]
push 0
push 0x40000000
mov ecx, 0x2f
mov edi, ebx
push str.._ini_GameOption.opt
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x53a291
mov edi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
push 4
lea edx, [ebp + 8]
push edx
push esi
mov dword [ebp + 8], 0x61208
call edi
push 0
lea eax, [ebp - 4]
push eax
push 0xbc
push ebx
push esi
call edi
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x54c070
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x6ac30c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x264], esi
mov dword [ebp - 0x268], edi
test esi, esi
je 0x54c1b8
test edi, edi
je 0x54c1b8
push ebx
lea eax, [ebp - 0x25c]
push eax
push 0x1f4
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsA]
test eax, eax
je 0x54c15f
cmp byte [ebp - 0x25c], 0
je 0x54c15f
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiA]
lea esi, [ebp - 0x25c]
jmp 0x54c0e0
push 0x5d1818
push esi
call ebx
test eax, eax
je 0x54c14b
push 0x5d1814
push esi
call ebx
test eax, eax
je 0x54c14b
mov cl, byte [esi]
mov dl, byte [esi + 1]
push 0x64
lea eax, [ebp - 0x68]
mov byte [ebp - 0x260], cl
push eax
lea ecx, [ebp - 0x260]
push ecx
mov byte [ebp - 0x25f], dl
mov byte [ebp - 0x25e], 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
test eax, eax
je 0x54c167
lea edx, [ebp - 0x68]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x264]
mov edi, eax
push edi
lea eax, [ebp - 0x68]
push eax
push ecx
call fcn.0059ebf0
add esp, 0xc
test eax, eax
je 0x54c17c
add esi, 4
cmp byte [esi], 0
jne 0x54c0e0
mov esi, dword [ebp - 0x264]
mov edi, dword [ebp - 0x268]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
pop ebx
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x268]
lea edx, [ebp - 0x260]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [ebp - 0x264]
add eax, edi
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ebx
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
xor eax, eax
pop esi
call fcn.00599821
mov esp, ebp
pop ebp
ret 8
Function at 0x54d670
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0ac7
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 0x54d6be
mov dword [ebx], 0x5dc084
mov dword [ebx + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], eax
mov dword [ebp - 0x10], 1
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [ebx]
mov edi, dword [edx + 4]
add edi, ebx
mov ecx, edi
call fcn.00508a00
lea esi, [ebx + 4]
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 0x54d70a
mov eax, dword [edi + 0xc]
or eax, 4
or eax, 4
push 0
push eax
mov ecx, edi
call fcn.005088d0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebx + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
mov dword [ebp - 4], 2
call fcn.005090f0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
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 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 0x54dc30
Capabilities:
Get process image filename

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ba48b
mov eax, dword fs:[0]
push eax
sub esp, 0x230
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 dword [ebp - 0x238], ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 0x23c], ebx
mov dword [ebp - 0x220], 0xf
mov dword [ebp - 0x224], ebx
mov byte [ebp - 0x234], bl
push ebx
push 0x5cd755
lea ecx, [ebp - 0x234]
mov dword [ebp - 4], ebx
call fcn.0040c070
push edi
push ebx
push 0x400
mov byte [ebp - 0x114], bl
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
cmp edi, ebx
je 0x54dcd2
push 0x104
lea edx, [ebp - 0x218]
push edx
push edi
call sub.PSAPI.DLL_GetProcessImageFileNameA
test eax, eax
jne 0x54dd0a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x234]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.004130d0
cmp dword [ebp - 0x220], 0x10
jb 0x54dd87
mov ecx, dword [ebp - 0x234]
push ecx
call fcn.00599ae9
add esp, 4
jmp 0x54dd87
mov ecx, dword [ebp - 0x238]
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x218]
push eax
call fcn.0054c070
push edi
test eax, eax
jne 0x54dd37
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [ebp - 0x234]
push ecx
jmp 0x54dd69
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x114]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x54dd46
sub eax, edx
push eax
lea edx, [ebp - 0x114]
push edx
lea ecx, [ebp - 0x234]
call fcn.0040c070
lea eax, [ebp - 0x234]
push eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov ecx, esi
mov byte [esi], bl
call fcn.004130d0
lea ecx, [ebp - 0x234]
call fcn.00477ae0
mov eax, esi
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 8
Function at 0x54f010
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0c90
mov eax, dword fs:[0]
push eax
sub esp, 0x168
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
xor ebx, ebx
mov dword [ebp - 0x174], ecx
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
push ebx
push 2
mov dword [ebp - 4], ebx
mov dword [ebp - 0x170], 0x128
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
jne 0x54f082
cmp dword [ebp - 0x18], 0x10
jb 0x54f164
mov eax, dword [ebp - 0x2c]
push eax
jmp 0x54f15c
lea ecx, [ebp - 0x170]
push ecx
push edi
call sub.KERNEL32.dll_Process32First
cmp eax, ebx
je 0x54f14b
mov edx, dword [ebp - 0x168]
mov ecx, dword [ebp - 0x174]
push edx
lea eax, [ebp - 0x48]
push eax
call fcn.0054dc30
mov esi, eax
lea ecx, [ebp - 0x2c]
cmp ecx, esi
je 0x54f10e
cmp dword [ebp - 0x18], 0x10
jb 0x54f0c8
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00599ae9
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x2c], bl
cmp dword [esi + 0x14], 0x10
jae 0x54f0ef
mov eax, dword [esi + 0x10]
inc eax
push eax
lea eax, [ebp - 0x2c]
push esi
push eax
call fcn.0059b550
add esp, 0xc
jmp 0x54f0f6
mov ecx, dword [esi]
mov dword [ebp - 0x2c], ecx
mov dword [esi], ebx
mov edx, dword [esi + 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x18], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [ebp - 0x34], 0x10
mov byte [ebp - 4], bl
jb 0x54f123
mov ecx, dword [ebp - 0x48]
push ecx
call fcn.00599ae9
add esp, 4
cmp dword [ebp - 0x1c], ebx
jbe 0x54f136
lea edx, [ebp - 0x2c]
push edx
mov ecx, 0x6da018
call fcn.004142b0
lea eax, [ebp - 0x170]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x54f097
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x18], 0x10
jb 0x54f164
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00599ae9
add esp, 4
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 0x54f180
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x54
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
xor esi, esi
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 0x54], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], esi
mov byte [ebp - 0x2c], 0
mov ebx, dword [0x6da01c]
mov edi, dword [0x6da018]
mov ecx, ebx
sub ecx, edi
mov eax, 0x92492493
imul ecx
add edx, ecx
sar edx, 4
mov eax, edx
shr eax, 0x1f
add eax, edx
mov byte [ebp - 4], 1
je 0x54f34f
cmp edi, ebx
je 0x54f31e
push 0xffffffffffffffff
push 0
push 0x60d7b0
lea ecx, [ebp - 0x2c]
call fcn.0040bf50
sub esp, 0x1c
mov ecx, esp
mov dword [ebp - 0x4c], esp
push 0xffffffffffffffff
push 0
mov dword [ecx + 0x14], 0xf
mov dword [ecx + 0x10], 0
push edi
mov byte [ecx], 0
call fcn.0040bf50
lea ecx, [ebp - 0x48]
push ecx
mov ecx, dword [ebp - 0x60]
call fcn.0054db80
push eax
lea ecx, [ebp - 0x5c]
mov byte [ebp - 4], 2
call fcn.0044e220
mov esi, 0x10
mov byte [ebp - 4], 1
cmp dword [ebp - 0x34], esi
jb 0x54f266
mov edx, dword [ebp - 0x48]
push edx
call fcn.00599ae9
add esp, 4
mov eax, dword [ebp - 0x58]
push 0xffffffffffffffff
push 0
add eax, 0xffffffe4
push eax
lea ecx, [ebp - 0x2c]
call fcn.0044c940
mov ecx, dword [ebp - 0x2c]
cmp dword [ebp - 0x18], esi
jae 0x54f284
lea ecx, [ebp - 0x2c]
cmp dword [edi + 0x14], esi
jb 0x54f28d
mov eax, dword [edi]
jmp 0x54f28f
mov eax, edi
push 1
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
test eax, eax
jne 0x54f36b
mov ecx, dword [ebp - 0x4c]
mov edx, dword [0x6da01c]
push ecx
push edi
push edx
lea eax, [edi + 0x1c]
push eax
call fcn.00413300
mov eax, dword [0x6da01c]
lea esi, [eax - 0x1c]
add esp, 0x10
mov ebx, eax
cmp esi, eax
je 0x54f2f5
cmp dword [esi + 0x14], 0x10
jb 0x54f2d8
mov ecx, dword [esi]
push ecx
call fcn.00599ae9
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov byte [esi], 0
add esi, 0x1c
cmp esi, ebx
jne 0x54f2c7
mov eax, dword [0x6da01c]
sub eax, 0x1c
mov dword [0x6da01c], eax
cmp edi, eax
jne 0x54f1ff
mov esi, 0x10
cmp dword [ebp - 0x18], esi
jb 0x54f31b
mov edx, dword [ebp - 0x2c]
push edx
call fcn.00599ae9
add esp, 4
mov esi, dword [ebp - 0x5c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
test esi, esi
je 0x54f34f
mov eax, dword [ebp - 0x4c]
mov edx, dword [ebp - 0x58]
push eax
lea ecx, [ebp - 0x50]
push ecx
push edx
push esi
call fcn.00413090
push esi
call fcn.00599ae9
add esp, 0x14
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
add edi, 0x1c
cmp edi, dword [0x6da01c]
jne 0x54f1ff
jmp 0x54f30a
Function at 0x550190
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push 0x54f9a0
push 0
push 0
call fcn.0059cf07
add esp, 0x18
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
ret

Function at 0x5501b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0f08
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6ac30c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x105
mov dword [ebp - 4], 0
call fcn.00599f65
mov ecx, dword [ebp + 8]
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [esi + 0x28], eax
jae 0x5501f8
lea ecx, [ebp + 8]
push ecx
push 0x104
push eax
call fcn.0059c79f
mov eax, dword [esi + 0x28]
mov cl, byte [ebp + 0x24]
push 0
push 0
mov byte [eax + 0x104], cl
mov edx, dword [esi + 0x28]
push edx
push 0x54fcd0
push 0
push 0
call fcn.0059cf07
add esp, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x550242
mov eax, dword [ebp + 8]
push eax
call fcn.00599ae9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20

Function at 0x5504e0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c0f08
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x6ac30c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x105
mov dword [ebp - 4], 0
call fcn.00599f65
mov ecx, dword [ebp + 8]
add esp, 4
cmp dword [ebp + 0x1c], 0x10
mov dword [esi + 0x28], eax
jae 0x550528
lea ecx, [ebp + 8]
push ecx
push 0x104
push eax
call fcn.0059c79f
mov eax, dword [esi + 0x28]
mov cl, byte [ebp + 0x24]
push 0
push 0
mov byte [eax + 0x104], cl
mov edx, dword [esi + 0x28]
push edx
push 0x550260
push 0
push 0
call fcn.0059cf07
add esp, 0x24
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x1c], 0x10
jb 0x550572
mov eax, dword [ebp + 8]
push eax
call fcn.00599ae9
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 0x20
Function at 0x550b30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket
Create thread
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6ac30c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6da03c]
push esi
push edi
mov edi, dword [ebp + 8]
push 0xffffffffffffffff
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
movzx edx, word [esi + 0x1c]
mov ecx, 2
push edx
mov word [ebp - 0x14], cx
call sub.WSOCK32.dll_htons
cmp dword [esi + 0x14], 0x10
mov word [ebp - 0x12], ax
jb 0x550b74
mov esi, dword [esi]
push esi
call sub.WSOCK32.dll_inet_addr
push 6
push 1
push 2
mov dword [ebp - 0x10], eax
call sub.WSOCK32.dll_socket
push 0x10
lea ecx, [ebp - 0x14]
push ecx
push eax
mov dword [0x6da038], eax
call sub.WSOCK32.dll_connect
cmp eax, 0xffffffff
jne 0x550bb2
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
push 0x12c
call fcn.00599f65
lea edx, [edi + 0x10]
push edx
mov esi, eax
lea eax, [esi + 0x10]
push 0x104
push eax
call fcn.0059c79f
lea ecx, [edi + 0x114]
push ecx
lea edx, [esi + 0x114]
push 0x10
push edx
call fcn.0059c79f
mov eax, dword [edi + 0x124]
push 0
push 0
push esi
push 0x550760
mov dword [esi + 0x124], eax
mov cl, byte [edi + 0x128]
push 0
push 0
mov byte [esi + 0x128], cl
call fcn.0059cf07
mov ecx, dword [ebp - 4]
add esp, 0x34
pop edi
mov dword [0x6da03c], eax
xor ecx, ebp
mov al, 1
pop esi
call fcn.00599821
mov esp, ebp
pop ebp
ret 4
Function at 0x555370
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1333
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 edi, ecx
mov dword [ebp - 0x10], edi
xor esi, esi
mov dword [edi], vtable.CQuestManager.0
mov dword [edi + 4], esi
mov dword [edi + 8], esi
mov dword [edi + 0xc], esi
mov dword [edi + 0x10], esi
mov dword [edi + 0x14], esi
mov dword [edi + 0x18], esi
mov dword [ebp - 4], esi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], esi
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], esi
mov dword [edi + 0x38], esi
mov dword [edi + 0x3c], esi
mov dword [edi + 0x4c], esi
mov dword [edi + 0x50], esi
mov dword [edi + 0x54], esi
mov dword [edi + 0x58], esi
mov dword [edi + 0x5c], esi
mov dword [edi + 0x60], esi
mov dword [edi + 0x70], esi
mov dword [edi + 0x74], esi
mov dword [edi + 0x78], esi
mov dword [edi + 0x7c], esi
mov dword [edi + 0x80], esi
mov dword [edi + 0x84], esi
lea ecx, [edi + 0x98]
mov byte [ebp - 4], 3
call fcn.00554ee0
lea ecx, [edi + 0x144]
mov byte [ebp - 4], 4
call fcn.005254c0
push 0x3e8
lea ecx, [edi + 4]
mov byte [ebp - 4], 5
call fcn.004d6390
push 0xc8
lea ecx, [edi + 0x28]
call fcn.004d6390
push 0x3e8
lea ecx, [edi + 0x4c]
call fcn.004d6390
push 0x64
lea ecx, [edi + 0x70]
call fcn.004d6390
push 4
call fcn.00599f65
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 6
cmp eax, esi
je 0x555467
mov ecx, eax
call fcn.005574a0
jmp 0x555469
xor eax, eax
push 0x80
mov dword [edi + 0x94], eax
lea eax, [edi + 0xc0]
push esi
push eax
call fcn.00599ee0
add esp, 0xc
mov dword [edi + 0x140], esi
mov dword [edi + 0x178], esi
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