joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a430
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
movzx eax, byte [edi + 8]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 9]
xor edx, eax
movzx eax, byte [edi + 0xa]
imul edx, edx, 0x1000193
xor edx, eax
movzx eax, byte [edi + 0xb]
imul ecx, edx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [ebx + 0x18]
and ecx, eax
lea edx, [ecx*8]
mov ecx, dword [ebx + 0xc]
add ecx, edx
mov eax, dword [ecx]
cmp dword [ecx + 4], edi
jne 0x45a4a3
cmp eax, edi
jne 0x45a49b
mov eax, dword [ebx + 4]
mov dword [ecx], eax
mov ecx, dword [ebx + 0xc]
mov eax, dword [ebx + 4]
mov dword [edx + ecx + 4], eax
jmp 0x45a4ab
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
jmp 0x45a4ab
cmp eax, edi
jne 0x45a4ae
mov eax, dword [edi]
mov dword [ecx], eax
mov edi, dword [ebp + 0xc]
mov eax, dword [edi + 4]
mov esi, dword [edi]
push 0xc
push edi
mov dword [eax], esi
mov ecx, dword [edi]
mov eax, dword [edi + 4]
mov dword [ecx + 4], eax
dec dword [ebx + 8]
call fcn.004cd104
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebx
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, ebx
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
jb 0x45a4fa
mov esi, dword [ebx]
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x45a516
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x45a505
mov edi, dword [ebp - 4]
mov eax, dword [edi + 0x18]
mov ecx, dword [edi + 0xc]
and eax, edx
mov edi, dword [edi + 4]
mov edx, dword [ecx + eax*8]
lea eax, [eax*8 + 4]
add eax, ecx
mov dword [ebp + 0xc], edx
mov esi, edx
mov dword [ebp - 4], eax
cmp edx, edi
jne 0x45a540
mov eax, edi
jmp 0x45a544
mov eax, dword [eax]
mov eax, dword [eax]
cmp esi, eax
je 0x45a575
lea eax, [esi + 8]
push ebx
push eax
call fcn.00403560
add esp, 8
test al, al
jne 0x45a563
mov esi, dword [esi]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
jmp 0x45a538
lea eax, [esi + 8]
push eax
push ebx
call fcn.00403560
add esp, 8
test al, al
cmovne edi, esi
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45a590
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov esi, ecx
mov ebx, dword [ebp + 8]
movzx eax, byte [edi]
xor eax, 0x811c9dc5
imul edx, eax, 0x1000193
movzx eax, byte [edi + 1]
xor edx, eax
movzx eax, byte [edi + 2]
imul ecx, edx, 0x1000193
mov edx, dword [esi + 0xc]
xor ecx, eax
movzx eax, byte [edi + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, dword [esi + 0x18]
mov esi, dword [esi + 4]
and ecx, eax
lea eax, [ecx*8]
mov ecx, dword [eax + edx]
add edx, 4
add eax, edx
mov edx, ecx
mov dword [ebp + 0xc], eax
nop
cmp edx, esi
jne 0x45a5f8
mov eax, esi
jmp 0x45a5fc
mov eax, dword [eax]
mov eax, dword [eax]
cmp ecx, eax
je 0x45a619
mov eax, dword [ecx + 8]
cmp eax, dword [edi]
je 0x45a60e
mov ecx, dword [ecx]
mov eax, dword [ebp + 0xc]
jmp 0x45a5f0
pop edi
pop esi
mov dword [ebx], ecx
mov eax, ebx
pop ebx
pop ebp
ret 8
pop edi
mov dword [ebx], esi
mov eax, ebx
pop esi
pop ebx
pop ebp
ret 8
Function at 0x473180
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx edx, byte [eax + 8]
movzx ecx, byte [eax + 0xa]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
imul edx, esi, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0xb]
imul edx, edx, 0x1000193
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [edi + 0x18]
and edx, ecx
lea esi, [edx*8]
mov edx, dword [edi + 0xc]
add edx, esi
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x4731f3
cmp ecx, eax
jne 0x4731eb
mov ecx, dword [edi + 4]
mov dword [edx], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [esi + edx + 4], ecx
jmp 0x4731fb
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x4731fb
cmp ecx, eax
jne 0x4731fb
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
push 0x20
push eax
mov dword [ecx], esi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 8]
call fcn.004cd104
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebp
ret 8

Function at 0x473230
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
movzx edx, byte [eax + 8]
movzx ecx, byte [eax + 0xa]
xor edx, 0x811c9dc5
imul esi, edx, 0x1000193
movzx edx, byte [eax + 9]
xor esi, edx
imul edx, esi, 0x1000193
xor edx, ecx
movzx ecx, byte [eax + 0xb]
imul edx, edx, 0x1000193
xor edx, ecx
imul ecx, edx, 0x1000193
mov edx, dword [edi + 0x18]
and edx, ecx
lea esi, [edx*8]
mov edx, dword [edi + 0xc]
add edx, esi
mov ecx, dword [edx]
cmp dword [edx + 4], eax
jne 0x4732a3
cmp ecx, eax
jne 0x47329b
mov ecx, dword [edi + 4]
mov dword [edx], ecx
mov edx, dword [edi + 0xc]
mov ecx, dword [edi + 4]
mov dword [esi + edx + 4], ecx
jmp 0x4732ab
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
jmp 0x4732ab
cmp ecx, eax
jne 0x4732ab
mov ecx, dword [eax]
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov esi, dword [eax]
push 0x14
push eax
mov dword [ecx], esi
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
dec dword [edi + 8]
call fcn.004cd104
mov eax, dword [ebp + 8]
add esp, 8
pop edi
mov dword [eax], esi
pop esi
pop ebp
ret 8
Function at 0x47ac80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
test ebx, ebx
je 0x47acd7
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x24]
xor ecx, ecx
movzx esi, byte [eax + edi]
mov eax, esi
and esi, 0x3f
shr eax, 6
lea edx, [edx + eax*8]
xor eax, eax
bts eax, esi
cmp esi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp esi, 0x40
cmovae ecx, eax
or dword [edx], eax
or dword [edx + 4], ecx
inc edi
cmp edi, ebx
jne 0x47aca0
mov ecx, dword [ebp - 4]
mov ebx, dword [ecx + 4]
mov eax, dword [ebp + 0x10]
cmp ebx, eax
cmovb eax, ebx
cmp eax, ebx
je 0x47ad27
mov ecx, dword [ecx]
mov dword [ebp + 0x10], ecx
nop dword [eax + eax]
movzx edi, byte [ecx + eax]
xor esi, esi
mov ecx, edi
xor edx, edx
and ecx, 0x3f
bts esi, ecx
cmp ecx, 0x20
cmovae edx, esi
xor esi, edx
cmp ecx, 0x40
cmovae edx, esi
shr edi, 6
and esi, dword [ebp + edi*8 - 0x24]
and edx, dword [ebp + edi*8 - 0x20]
or esi, edx
je 0x47ad2a
inc eax
cmp eax, ebx
je 0x47ad27
mov ecx, dword [ebp + 0x10]
jmp 0x47acf0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47ad80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, dword [ebp + 0xc]
xorps xmm0, xmm0
push esi
push edi
mov edx, ecx
xor edi, edi
mov dword [ebp - 4], edx
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
test ebx, ebx
je 0x47add9
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x24]
xor ecx, ecx
movzx esi, byte [eax + edi]
mov eax, esi
and esi, 0x3f
shr eax, 6
lea edx, [edx + eax*8]
xor eax, eax
bts eax, esi
cmp esi, 0x20
cmovae ecx, eax
xor eax, ecx
cmp esi, 0x40
cmovae ecx, eax
or dword [edx], eax
or dword [edx + 4], ecx
inc edi
cmp edi, ebx
jne 0x47ada2
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 0x10]
cmp dword [edx + 4], ecx
cmovb ecx, dword [edx + 4]
lea eax, [ecx - 1]
cmp eax, 0xffffffff
je 0x47ae23
mov ebx, dword [edx]
nop dword [eax]
movzx edi, byte [ebx + eax]
xor esi, esi
mov ecx, edi
xor edx, edx
and ecx, 0x3f
bts esi, ecx
cmp ecx, 0x20
cmovae edx, esi
xor esi, edx
cmp ecx, 0x40
cmovae edx, esi
shr edi, 6
and esi, dword [ebp + edi*8 - 0x24]
and edx, dword [ebp + edi*8 - 0x20]
or esi, edx
je 0x47ae26
dec eax
cmp eax, 0xffffffff
jne 0x47adf0
or eax, 0xffffffff
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4835c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
test eax, eax
jne 0x4835cc
pop ebp
ret
mov dword [ebp + 0xc], eax
pop ebp
jmp fcn.004816e0

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x406220
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x41054c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x40632b
cmp eax, 2
jge 0x40632b
imul edi, eax, 0x214
inc eax
push ecx
push 0x100
mov dword [0x41054c], eax
add edi, 0x410124
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
cmp dword [edi], 0
je 0x40632b
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx edx, word [ebp - 0xe]
lea esi, [edi + 0x110]
movzx ecx, word [ebp - 0x12]
movzx eax, word [ebp - 0x14]
push edx
push ecx
push eax
push ebx
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x104], edx
mov dword [edi + 0x108], ecx
mov dword [edi + 0x10c], eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x210], eax
cmp eax, 0xffffffff
jne 0x406307
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00408c87
mov esp, ebp
pop ebp
ret 8
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40632b
push dword [edi + 0x210]
mov dword [edi], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408c87
mov esp, ebp
pop ebp
ret 8
Function at 0x406340
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push esi
push edi
test eax, eax
js 0x406528
cmp eax, dword [ecx + 0x42c]
jge 0x406528
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x406528
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x4063bf
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x4063bf
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x40647e
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movzx edx, word [ebp - 0x816]
lea esi, [edi + 0x114]
movzx ecx, word [ebp - 0x81a]
movzx eax, word [ebp - 0x81c]
push edx
push ecx
push eax
mov dword [edi + 0x110], eax
lea eax, [edi + 8]
push eax
push str.._s_04d__02d__02d.txt
push esi
mov dword [edi + 0x108], edx
mov dword [edi + 0x10c], ecx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 0x214], eax
cmp eax, 0xffffffff
jne 0x406449
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408c87
mov esp, ebp
pop ebp
ret
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x40647e
push dword [edi + 0x214]
mov dword [edi + 4], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00408c87
mov esp, ebp
pop ebp
ret
push 0x400
lea eax, [ebp - 0x80c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp + 0x14]
mov edx, 0x400
push eax
push ecx
push dword [ebp + 0x10]
lea ecx, [ebp - 0x80c]
call fcn.00406550
add esp, 0xc
lea eax, [ebp - 0x40c]
push 0x400
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x810]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x40c]
push str._02d:_02d:_02d__s_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [ebp - 0x40c]
add esp, 0x18
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406502
push 0
lea eax, [ebp - 0x820]
sub ecx, edx
push eax
push ecx
lea eax, [ebp - 0x40c]
push eax
push dword [edi + 0x214]
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 8]
pop edi
xor ecx, ebp
pop esi
call fcn.00408c87
mov esp, ebp
pop ebp
ret
Function at 0x4065d0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, ecx
push 0x100
lea ebx, [esi + 0xc]
push ebx
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
add esp, 0xc
push 0
push 0x20
push 3
push 0
push 1
push SQLBindCol
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x406629
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_open_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
test eax, eax
je 0x40664c
push eax
call fcn.00408f47
add esp, 4
mov dword [esi + 4], 0
push dword [esi + 8]
call fcn.00408f4c
add esp, 4
mov dword [esi + 4], eax
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x40669c
push ebx
lea eax, [esi + 0x218]
push str.__s__Could_not_read_file
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10c], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
pop edi
mov dword [esi + 0x214], eax
mov al, 1
pop esi
pop ebx
pop ebp
ret 4
Function at 0x407bd0
Capabilities:
Terminate thread

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
je 0x407bf6
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x70]
call ebx
mov dword [edi + 0x70], 0
mov eax, dword [edi + 0x6c]
test eax, eax
je 0x407c07
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.00407100
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x407c35
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
add esi, 4
sub ebx, 1
jne 0x407c18
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x407c61
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0x10]
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
call ebx
mov dword [edi + 0x10], 0
jmp 0x407c67
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x407c78
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x407c8e
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret
Function at 0x407eb0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x4d9f88
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test edi, edi
js 0x40801d
cmp edi, 0x190
jge 0x40801d
imul ecx, edi, 0x70
mov dword [ebp - 4], ecx
mov eax, dword [ecx + 0x4dc724]
test eax, eax
js 0x40801d
cmp eax, 0x190
jge 0x40801d
cmp dword [ecx + 0x4dc728], 0
je 0x40801d
cmp dword [ecx + 0x4dc73c], 0xffffffff
je 0x40801d
mov eax, dword [ebp + 0x10]
cmp eax, 0x2000
jle 0x407f34
push eax
push edi
push str._SocketManager__Max_msg_size__Type:_1__Index:__d__Size:__d_
push 1
call fcn.00408ac0
add esp, 0x10
jmp 0x40801d
mov ebx, dword [ecx + 0x4dc744]
cmp dword [ebx + 0x20], 0
jle 0x407f9b
mov edx, dword [ebx + 0x12028]
lea ecx, [edx + eax]
cmp ecx, 0x10000
jle 0x407f67
push ecx
push edi
push str._SocketManager__Max_msg_size__Type:_2__Index:__d__Size:__d_
push 1
call fcn.00408ac0
add esp, 0x10
jmp 0x408012
push eax
push dword [ebp + 0xc]
lea eax, [ebx + 0x2028]
add eax, edx
push eax
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
add esp, 0xc
add dword [ebx + 0x12028], ecx
push 0x4d9f88
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov al, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push eax
push dword [ebp + 0xc]
lea esi, [ebx + 0x24]
push esi
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [ebp + 0x10]
lea eax, [ebx + 0x14]
add esp, 0xc
mov dword [eax], ecx
mov dword [ebx + 0x20], ecx
lea ecx, [ebp + 8]
mov dword [ebx + 0x18], esi
mov dword [ebx + 0x1c], 1
push 0
push ebx
push 0
push ecx
push 1
push eax
mov eax, dword [ebp - 4]
mov dword [ebx + 0x2024], 0
mov dword [ebp + 8], 0
push dword [eax + 0x4dc73c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x407f85
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x407f85
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00408ac0
add esp, 0xc
push edi
mov ecx, 0x4d9f10
call fcn.00408040
push 0x4d9f88
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408220
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
lea edi, [esi + 0x78]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
test ebx, ebx
js 0x4083b2
cmp ebx, 0x190
jge 0x4083b2
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x40825d
mov ecx, esi
jmp 0x4083ac
mov esi, dword [ebp + 0x10]
imul eax, ebx, 0x70
mov edx, dword [esi + 0x2024]
add edx, ecx
mov ecx, dword [esi + 0x20]
mov dword [ebp + 0xc], eax
mov dword [esi + 0x2024], edx
cmp edx, ecx
jl 0x40834b
mov eax, dword [esi + 0x12028]
test eax, eax
jg 0x4082a0
push edi
mov dword [esi + 0x20], 0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
lea edx, [esi + 0x2028]
lea ecx, [esi + 0x24]
cmp eax, 0x2000
jle 0x408315
push 0x2000
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 0x24]
mov dword [esi + 0x14], 0x2000
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x12028]
sub eax, 0x2000
mov dword [esi + 0x1c], 1
mov dword [esi + 0x20], 0x2000
push eax
lea eax, [esi + 0x4028]
mov dword [esi + 0x2024], 0
push eax
lea eax, [esi + 0x2028]
push eax
call sub.VCRUNTIME140.dll_memmove
add esp, 0xc
lea eax, [esi + 0x14]
sub dword [esi + 0x12028], 0x2000
jmp 0x408361
push eax
push edx
push ecx
call sub.VCRUNTIME140.dll_memcpy
lea eax, [esi + 0x24]
mov dword [esi + 0x2024], 0
mov dword [esi + 0x18], eax
add esp, 0xc
mov eax, dword [esi + 0x12028]
mov dword [esi + 0x14], eax
mov dword [esi + 0x20], eax
lea eax, [esi + 0x14]
mov dword [esi + 0x12028], 0
jmp 0x40835a
lea eax, [esi + 0x24]
add eax, edx
sub ecx, edx
mov dword [esi + 0x18], eax
lea eax, [esi + 0x14]
mov dword [eax], ecx
mov dword [esi + 0x1c], 1
push 0
push esi
push 0
lea ecx, [ebp + 8]
mov dword [ebp + 8], 0
push ecx
push 1
push eax
mov eax, dword [ebp + 0xc]
push dword [eax + 0x4dc73c]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4083b2
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
call esi
cmp eax, 0x3e5
je 0x4083b2
call esi
push eax
push str._SocketManager__WSASend___failed_with_error:__d
push 1
call fcn.00408ac0
mov ecx, dword [ebp - 4]
add esp, 0xc
push ebx
call fcn.00408040
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x408a00
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi + 0x18]
mov dword [esi], vtable.CSocketManagerUdp.0
test eax, eax
je 0x408a2c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x408a42
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [esi + 4], 0xffffffff
test byte [ebp + 8], 1
je 0x408a56
push 0x2024
push esi
call fcn.00408ee6
add esp, 8
mov eax, esi
pop esi
pop ebp
ret 4
Function at 0x408a60
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x410040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x100
lea eax, [ebp - 0x104]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov edx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push eax
lea ecx, [ebp - 0x104]
call fcn.00408c70
add esp, 0x10
lea eax, [ebp - 0x104]
push 0x10
push str.Error
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x40977d
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4097bc
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4097bc
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4097bc
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4097bc
cmp dword [ecx + 0x74], 0xe
jbe 0x4097bc
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x404b30
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffbe4
mov esi, edx
mov ebx, eax
test bl, bl
je 0x404b72
movzx eax, bl
add ax, 0x41
dec eax
mov word [esp], ax
mov word [esp + 2], 0x3a
mov word [esp + 4], 0
lea eax, [esp + 0x212]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
push esp
call sub.kernel32.dll_SetCurrentDirectoryW
lea eax, [esp + 8]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryW
test bl, bl
je 0x404b92
lea eax, [esp + 0x212]
push eax
call sub.kernel32.dll_SetCurrentDirectoryW
mov eax, esi
lea edx, [esp + 8]
mov ecx, 0x105
call fcn.00408a10
add esp, 0x41c
pop esi
pop ebx
ret

Function at 0x404de8
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00407c28
test esi, esi
jne 0x404e1e
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00407db0
jmp 0x404e3c
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00404ccc
mov edi, eax
test esi, esi
je 0x404e3c
cmp dword [ebx], 0
je 0x404e3c
dec esi
jmp 0x404e25
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x404e70
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x58c008], 0x8088405
inc edx
mov dword [ebx + 0x58c008], edx
mul edx
mov eax, edx
pop ebx
ret