joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d1b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x469310]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405052
and dword [ebp - 0x14], 0
cmp dword [0x46eff0], 0
mov dword [ebp - 0x18], eax
jne 0x405dce
push 0x401db8
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405e76
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x401dac
push ebx
call edi
test eax, eax
je 0x405e76
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push 0x401d9c
push ebx
mov dword [0x46eff0], eax
call edi
push eax
call esi
push 0x401d88
push ebx
mov dword [0x46eff4], eax
call edi
push eax
call esi
push 0x401d6c
push ebx
mov dword [0x46eff8], eax
call edi
push eax
call esi
mov dword [0x46f000], eax
test eax, eax
je 0x405dce
push 0x401d54
push ebx
call edi
push eax
call esi
mov dword [0x46effc], eax
mov eax, dword [0x46effc]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405e27
cmp dword [0x46f000], ecx
je 0x405e27
push eax
call esi
push dword [0x46f000]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405e27
test ebx, ebx
je 0x405e27
call edi
test eax, eax
je 0x405e1e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x405e1e
test byte [ebp - 8], 1
jne 0x405e27
or dword [ebp + 0x10], 0x200000
jmp 0x405e5a
mov eax, dword [0x46eff4]
cmp eax, dword [ebp - 0x18]
je 0x405e5a
push eax
call esi
test eax, eax
je 0x405e5a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x405e5a
mov eax, dword [0x46eff8]
cmp eax, dword [ebp - 0x18]
je 0x405e5a
push eax
call esi
test eax, eax
je 0x405e5a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x46eff0]
call esi
test eax, eax
je 0x405e76
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405e78
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406086
leave
ret

Function at 0x406086
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x469310]
jne 0x406090
repz ret
jmp fcn.00407276
Function at 0x4072ad
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [0x46bc7c], 0
jne 0x4072eb
xor ecx, ecx
push esi
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
movzx edx, dl
neg edx
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4072c1
mov dword [ecx*4 + 0x46bc78], eax
inc ecx
cmp ecx, 0x100
jl 0x4072bc
pop esi
cmp dword [ebp + 0x10], 0
mov eax, dword [ebp + 8]
not eax
jbe 0x407318
mov ecx, dword [ebp + 0xc]
movzx edx, byte [ecx]
dec dword [ebp + 0x10]
xor edx, eax
and edx, 0xff
shr eax, 8
xor eax, dword [edx*4 + 0x46bc78]
inc ecx
cmp dword [ebp + 0x10], 0
ja 0x4072f9
not eax
pop ebp
ret 0xc

Function at 0x1003a98
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x1003af0
call fcn.01003b0c
xor eax, eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x1003ae7
cmp ecx, 0xffffffff
je 0x1003ae7
and dword [ebp - 4], eax
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x1003ae0
mov edx, dword [ecx + 0x3c]
test edx, edx
jl 0x1003ae0
cmp edx, 0x10000000
jae 0x1003ae0
lea eax, [edx + ecx]
mov dword [ebp - 0x1c], eax
cmp dword [eax], 0x4550
jne 0x1006d0b
mov dword [ebp - 4], 0xfffffffe
call fcn.010023d0
ret 4
je 0x1006d56
outsb dx, byte [esi]
je 0x1006d75
jb 0x1006d7c
dec esp
and ch, byte [edx]
Function at 0x10001050
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 8]
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jge 0x10001068
xor eax, eax
pop esi
ret 0x10
mov ecx, dword [esp + 0x14]
push ebx
push ebp
xor ebp, ebp
push edi
lea edi, [esi + 0xc]
push edi
mov dword [esi + 0x34], ecx
mov dword [edi], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x20], ebp
mov dword [esi + 0x14], ebp
mov dword [esi + 0x1c], ebp
mov dword [esi + 0x18], ebp
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [esi + 0x34]
mov edx, dword [esi + 0x10]
sub edx, dword [eax + 4]
mov ecx, dword [edi]
sub ecx, dword [esi + 0x38]
sub edx, dword [esi + 0x3c]
sub ecx, dword [eax]
mov ebx, dword [sym.imp.USER32.dll_OffsetRect]
push edx
push ecx
push eax
call ebx
push ebp
lea edi, [esi + 0x24]
push edi
push ebp
push 0x30
call dword [sym.imp.USER32.dll_SystemParametersInfoW]
mov eax, dword [edi]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi]
mov edx, dword [edx + 8]
push eax
mov eax, dword [ecx]
push eax
mov ecx, esi
call edx
test eax, eax
mov eax, dword [esi + 0x34]
je 0x100010da
mov ecx, dword [edi]
sub ecx, dword [eax]
jmp 0x100010f8
mov ecx, dword [eax + 8]
mov edx, dword [esi]
mov eax, dword [esi + 0x2c]
mov edx, dword [edx + 8]
push ecx
push eax
mov ecx, esi
call edx
test eax, eax
je 0x100010fd
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x2c]
sub ecx, dword [eax + 8]
push ebp
push ecx
push eax
call ebx
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x34]
mov edx, dword [esi]
mov edx, dword [edx + 8]
push eax
mov eax, dword [ecx + 4]
push eax
mov ecx, esi
call edx
test eax, eax
mov eax, dword [esi + 0x34]
je 0x1000112f
mov ecx, dword [esi + 0x28]
sub ecx, dword [eax + 4]
push ecx
push ebp
push eax
call ebx
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 0x10
mov ecx, dword [eax + 0xc]
mov edx, dword [esi]
mov eax, dword [esi + 0x30]
mov edx, dword [edx + 8]
push ecx
push eax
mov ecx, esi
call edx
test eax, eax
je 0x10001152
mov eax, dword [esi + 0x34]
mov ecx, dword [esi + 0x30]
sub ecx, dword [eax + 0xc]
push ecx
push ebp
push eax
call ebx
pop edi
pop ebp
pop ebx
mov eax, 1
pop esi
ret 0x10
Function at 0x100012d0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
mov dl, byte [eax + 1]
sub esp, 8
push ebx
mov ebx, ecx
mov cl, byte [eax]
push ebp
mov ebp, dword [esp + 0x14]
test ebx, ebx
jle 0x10001366
sub ebp, dword [0x1000ed7c]
push esi
push edi
movzx esi, cl
mov ecx, dword [0x1000fa10]
movzx edi, dl
mov dword [esp + 0x14], ebx
lea eax, [esi + 1]
cdq
mov esi, 0x307
idiv esi
mov ebx, 0x307
inc ebp
movzx esi, dl
movzx eax, byte [esi + ecx]
add eax, edi
mov byte [esp + 0x12], dl
cdq
mov edi, 0x307
idiv edi
mov al, byte [esi + ecx]
movzx edi, dl
mov byte [esp + 0x13], dl
movzx edx, byte [edi + ecx]
mov byte [esi + ecx], dl
mov byte [edi + ecx], al
movzx edx, byte [edi + ecx]
movzx eax, byte [esi + ecx]
add eax, edx
cdq
idiv ebx
movzx eax, dl
movzx edx, byte [eax + ecx]
xor byte [ebp - 1], dl
sub dword [esp + 0x14], 1
jne 0x10001300
mov cl, byte [esp + 0x12]
mov eax, dword [esp + 0x20]
mov dl, byte [esp + 0x13]
pop edi
pop esi
pop ebp
mov byte [eax + 1], dl
mov byte [eax], cl
pop ebx
add esp, 8
ret
Function at 0x100021b0
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [esp + 0x1c]
mov eax, dword [ebx]
movzx ecx, word [eax + 0x14]
push ebp
mov ebp, dword [ebx + 4]
push esi
xor edx, edx
push edi
mov dword [esp + 0x14], ebp
lea esi, [ecx + eax + 0x18]
mov dword [esp + 0x10], 0
cmp dx, word [eax + 6]
jae 0x100022a0
add esi, 0x10
mov eax, dword [esi]
test eax, eax
jne 0x1000222e
mov eax, dword [esp + 0x24]
mov edi, dword [eax + 0x38]
test edi, edi
jle 0x10002286
mov ecx, dword [esi - 4]
push 4
push 0x1000
push edi
add ecx, ebp
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100022b7
mov eax, dword [esi - 4]
add eax, ebp
mov dword [esi - 8], eax
test edi, edi
je 0x10002286
push edi
push 0
push eax
call fcn.10003490
add esp, 0xc
jmp 0x10002286
mov edx, dword [esi + 4]
add edx, eax
cmp dword [esp + 0x20], edx
jb 0x100022af
push 4
push 0x1000
push eax
mov eax, dword [esi - 4]
add eax, ebp
push eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0x100022b7
mov eax, dword [esi - 4]
mov edx, dword [esi + 4]
mov ebx, dword [esi]
add edx, dword [esp + 0x1c]
add eax, ebp
test ebx, ebx
jbe 0x1000227f
mov edi, edx
mov ecx, eax
sub edi, eax
mov ebp, ebx
jmp 0x10002270
mov dl, byte [edi + ecx]
mov byte [ecx], dl
inc ecx
sub ebp, 1
jne 0x10002270
mov ebp, dword [esp + 0x14]
mov ebx, dword [esp + 0x28]
mov dword [esi - 8], eax
mov ecx, dword [ebx]
mov eax, dword [esp + 0x10]
movzx edx, word [ecx + 6]
inc eax
add esi, 0x28
cmp eax, edx
mov dword [esp + 0x10], eax
jl 0x100021e3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 8
ret 0x10
push 0xd
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 8
ret 0x10
Function at 0x10002370
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x2c]
mov eax, dword [edi]
movzx ecx, word [eax + 0x14]
mov edx, dword [edi + 0x30]
mov esi, dword [ecx + eax + 0x20]
dec edx
lea ecx, [ecx + eax + 0x18]
not edx
and edx, esi
mov dword [esp + 0x14], esi
mov esi, dword [ecx + 0x10]
mov dword [esp + 0x18], edx
test esi, esi
jne 0x100023b4
mov ebx, dword [ecx + 0x24]
test bl, 0x40
je 0x100023ad
mov esi, dword [eax + 0x20]
jmp 0x100023b4
test bl, bl
jns 0x100023b4
mov esi, dword [eax + 0x24]
mov dword [esp + 0x1c], esi
mov esi, dword [ecx + 0x24]
mov dword [esp + 0x20], esi
mov esi, 1
add ecx, 0x28
mov dword [esp + 0x24], 0
mov dword [esp + 0x10], 1
cmp si, word [eax + 6]
jae 0x10002494
lea ebx, [ecx + 0x24]
mov esi, dword [edi + 0x30]
mov ebp, dword [ebx - 0x1c]
mov edi, dword [ebx - 0x14]
dec esi
not esi
and esi, ebp
test edi, edi
jne 0x10002409
mov ecx, dword [ebx]
test cl, 0x40
je 0x10002402
mov edi, dword [eax + 0x20]
jmp 0x10002409
test cl, cl
jns 0x10002409
mov edi, dword [eax + 0x24]
cmp edx, esi
je 0x10002442
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
add eax, ecx
cmp eax, esi
ja 0x10002442
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x14]
call fcn.100022d0
test eax, eax
je 0x100024b7
mov eax, dword [ebx]
mov edx, esi
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
jmp 0x1000246e
mov eax, dword [ebx]
test eax, 0x2000000
je 0x1000245b
test dword [esp + 0x20], 0x2000000
je 0x1000245b
or dword [esp + 0x20], eax
jmp 0x10002468
or eax, dword [esp + 0x20]
and eax, 0xfdffffff
mov dword [esp + 0x20], eax
sub edi, dword [esp + 0x14]
add edi, ebp
mov eax, dword [esp + 0x2c]
mov eax, dword [eax]
mov ecx, dword [esp + 0x10]
movzx esi, word [eax + 6]
inc ecx
add ebx, 0x28
cmp ecx, esi
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x10], ecx
jl 0x100023e4
lea ecx, [esp + 0x14]
mov edx, edi
mov dword [esp + 0x24], 1
call fcn.100022d0
pop edi
neg eax
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x18
ret 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret 4
Function at 0x10002b8c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1000e024]
jne 0x10002b96
repz ret
jmp fcn.100031fb

Function at 0x10007153
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.100057aa
and dword [ebp - 4], 0
cmp dword [0x1000f754], 0
mov ebx, eax
jne 0x10007204
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x100072b5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1000c008
push edi
call esi
test eax, eax
je 0x100072b5
push eax
call fcn.10005738
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x1000f754], eax
call esi
push eax
call fcn.10005738
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x1000f758], eax
call esi
push eax
call fcn.10005738
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1000f75c], eax
call esi
push eax
call fcn.10005738
pop ecx
mov dword [0x1000f764], eax
test eax, eax
je 0x10007204
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10005738
pop ecx
mov dword [0x1000f760], eax
mov eax, dword [0x1000f760]
cmp eax, ebx
je 0x1000725c
cmp dword [0x1000f764], ebx
je 0x1000725c
push eax
call fcn.100057b3
push dword [0x1000f764]
mov esi, eax
call fcn.100057b3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000725c
test edi, edi
je 0x1000725c
call esi
test eax, eax
je 0x10007253
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x10007253
test byte [ebp - 0xc], 1
jne 0x1000725c
or dword [ebp + 0x10], 0x200000
jmp 0x10007295
mov eax, dword [0x1000f758]
cmp eax, ebx
je 0x10007295
push eax
call fcn.100057b3
pop ecx
test eax, eax
je 0x10007295
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x10007295
mov eax, dword [0x1000f75c]
cmp eax, ebx
je 0x10007295
push eax
call fcn.100057b3
pop ecx
test eax, eax
je 0x10007295
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x1000f754]
call fcn.100057b3
pop ecx
test eax, eax
je 0x100072b5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x100072b7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x403a70
Capabilities:
Get system information on windows
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c4
mov eax, dword [0x470074]
xor eax, esp
mov dword [esp + 0x1c0], eax
push ebx
push esi
mov ebx, ecx
lea eax, [esp + 0x10]
push edi
push eax
mov dword [0x4734b0], ebx
mov dword [ebx + 0x4c], 0
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x28]
add eax, eax
mov dword [ebx + 0x3c], eax
mov eax, dword [esp + 0x18]
mov dword [ebx + 0x40], eax
lea eax, [esp + 0x38]
push eax
push 0x202
mov dword [ebx + 0x68], 1
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x70], 1
mov dword [ebx + 0x74], 0
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov dword [esp + 0x10], eax
test eax, eax
je 0x403b0c
lea eax, [esp + 0x10]
mov edx, str.CCoreServer::_Winsock2Init
push eax
push 0x151
mov ecx, str.WSAStartup_failed_with_error:__d
call fcn.00408250
add esp, 8
jmp 0x403c1f
mov eax, dword [esp + 0x38]
cmp al, 2
jne 0x403c02
shr eax, 8
cmp al, 2
jne 0x403c02
push 0x15d
mov edx, str.CCoreServer::_Winsock2Init
mov ecx, str.The_Winsock_2.2_dll_was_found_okay_n
call fcn.004080b0
add esp, 4
mov ecx, ebx
call fcn.00404150
test al, al
je 0x403c1f
mov edi, dword [sym.imp.LIBEAY32.dll_Ordinal_1804]
call edi
push 0x29
push str.d:working_directorydydyxtduservicelibcurlhttpclient2.cpp
call edi
shl eax, 2
push eax
call dword [sym.imp.LIBEAY32.dll_Ordinal_188]
add esp, 0xc
mov dword [0x4735e8], eax
xor esi, esi
call edi
test eax, eax
jle 0x403b90
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov ecx, dword [0x4735e8]
mov dword [ecx + esi*4], eax
inc esi
call edi
cmp esi, eax
jl 0x403b74
push 0x418f10
call dword [sym.imp.LIBEAY32.dll_Ordinal_197]
add esp, 4
push sub.KERNEL32.dll_GetCurrentThreadId
call dword [sym.imp.LIBEAY32.dll_Ordinal_196]
add esp, 4
cmp byte [0x473a0c], 0
jne 0x403bc7
push 3
mov byte [0x473a0c], 1
call dword [sym.imp.libcurl.dll_curl_global_init]
add esp, 4
mov ecx, ebx
call fcn.00403e70
test al, al
je 0x403c1f
push 0x86
mov edx, str.CCoreServer::Run
mov ecx, 0x466164
call fcn.004080b0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1c0]
xor ecx, esp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 4
push 0x157
mov edx, str.CCoreServer::_Winsock2Init
mov ecx, str.Could_not_find_a_usable_version_of_Winsock.dll_n
call fcn.004080b0
add esp, 4
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, ebx
call fcn.00403c60
push 0x8d
mov edx, str.CCoreServer::Run
mov ecx, 0x466178
call fcn.004080b0
mov ecx, dword [esp + 0x1d0]
add esp, 4
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 4
Function at 0x404380
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0x4734c0
push 0
push 0
push 0x404710
push 0
push 0
mov ebx, ecx
call fcn.00438bcc
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4043c7
call fcn.00438a1f
push eax
call fcn.00438a32
push eax
push 0x24c
mov ecx, str._beginthreadex_printthread__d___ul
call fcn.004084f0
add esp, 0xc
push 0x4734b8
push 0
push 0
push 0x405250
push 0
push 0
mov dword [0x4734c8], esi
call fcn.00438bcc
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x40440b
call fcn.00438a1f
push eax
call fcn.00438a32
push eax
push 0x253
mov ecx, str._beginthreadex_printthread__d___ul
call fcn.004084f0
add esp, 0xc
mov eax, dword [ebx + 0x3c]
xor ecx, ecx
mov edx, 4
mov dword [0x4735e0], esi
mul edx
push 0x472571
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0041da03
add esp, 8
mov dword [0x4734cc], eax
test eax, eax
jne 0x404468
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
mov edx, str.CCoreServer::_BeginThread
lea eax, [ebp - 4]
mov ecx, 0x4663e4
push eax
push 0x25b
call fcn.00408250
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebx + 0x3c], esi
jbe 0x4044bc
push 0
push 0
push 0
push 0x404520
push 0
push 0
call fcn.00438bcc
mov edi, eax
add esp, 0x18
test edi, edi
jne 0x4044ab
call fcn.00438a1f
push eax
call fcn.00438a32
push eax
lea eax, [ebp - 4]
push eax
push ecx
call fcn.004086b0
mov esi, dword [ebp - 4]
add esp, 0x10
mov eax, dword [0x4734cc]
mov dword [eax + esi*4], edi
inc esi
mov dword [ebp - 4], esi
cmp esi, dword [ebx + 0x3c]
jb 0x404472
push 0
push 0
push 0
push 0x4045b0
push 0
push 0
call fcn.00438bcc
mov esi, eax
add esp, 0x18
test esi, esi
jne 0x4044f7
call fcn.00438a1f
push eax
call fcn.00438a32
push eax
push 0x26d
mov ecx, str._beginthreadex_listenthread__d___ul
call fcn.004084f0
add esp, 0xc
push 0x271
mov edx, str.CCoreServer::_BeginThread
mov dword [0x4734c4], esi
mov ecx, 0x466468
call fcn.004080b0
add esp, 4
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405e00
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x470074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [0x4734b0]
xorps xmm0, xmm0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
lea ecx, [edi + 0x48]
push ecx
mov dword [edi + 0x1c], 0x4063b0
mov dword [edi + 0x20], 0x407010
mov dword [edi + 0x24], fcn.00406750
mov dword [edi + 0x30], 0
call fcn.00403200
lea ecx, [esi + 0x30]
mov eax, 1
lock xadd dword [ecx], eax
mov eax, dword [esi + 0x20]
test eax, eax
je 0x405e7e
push eax
call dword [sym.imp.SSLEAY32.dll_Ordinal_96]
push dword [esi + 0x20]
call dword [sym.imp.SSLEAY32.dll_Ordinal_48]
add esp, 8
mov dword [esi + 0x20], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x405e8f
push eax
call dword [sym.imp.SSLEAY32.dll_Ordinal_8]
add esp, 4
push dword [esi]
call dword [sym.imp.WS2_32.dll_closesocket]
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [esi], eax
push edi
cmp eax, 0xffffffff
je 0x405efa
mov ecx, ebx
call fcn.00407030
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0x20
push 0x20
push 0
lea eax, [edi + 0x190]
push eax
mov eax, dword [0x4734b0]
push dword [esi]
push dword [eax + 0x10]
mov eax, dword [ebx + 0x34]
call eax
test eax, eax
jne 0x405f18
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x405f18
push edi
mov ecx, ebx
call fcn.00407090
push edi
push esi
call fcn.00406750
add esp, 8
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 8

Function at 0x405f30
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x470074]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea ecx, [ebp - 8]
push edi
mov edi, dword [ebp + 8]
lea eax, [esi + 0x28]
push 0
push esi
push ecx
lea ecx, [ebp - 0xc]
mov dword [esi + 0x2c], 0
push ecx
push 1
push eax
mov dword [eax], 0
mov dword [esi + 0x1c], 0x4067c0
mov dword [esi + 0x20], 0x406890
mov dword [esi + 0x24], 0x4068a0
push dword [edi]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x405fc1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x405fc1
mov eax, dword [esi + 0x24]
push esi
push edi
call eax
add esp, 8
xor al, al
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop esi
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 8
Function at 0x406300
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x470074]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push 0
push edi
lea edx, [edi + 0x28]
mov dword [ebp - 8], 0
lea eax, [edi + 0x190]
mov dword [edi + 0x1c], 0x406fc0
add eax, dword [edi + 0x30]
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x34]
sub eax, dword [edi + 0x30]
push 0
mov dword [edx], eax
lea eax, [ebp - 8]
push eax
push 1
push edx
mov dword [edi + 0x20], 0x406890
mov dword [edi + 0x24], 0x4068a0
push dword [ebx]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x406395
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x406395
mov eax, dword [edi + 0x24]
push edi
push ebx
call eax
add esp, 8
xor al, al
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
xor ecx, ebp
pop ebx
call fcn.0041d98c
mov esp, ebp
pop ebp
ret 8

Function at 0x4094f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x409521
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x409510
pop edi
mov eax, edx
pop esi
pop ebp
ret 8