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

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov ebx, eax
xor eax, eax
push ebp
push 0x4d8026
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebx + 8]
test eax, eax
je 0x4d8010
or edx, 0xffffffff
lock xadd dword [eax], edx
add edx, 0xffffffff
mov eax, dword [ebx + 8]
cmp dword [eax], 0
jne 0x4d8010
mov edx, dword [eax + 4]
test edx, edx
je 0x4d7fdc
push 0
push edx
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebx + 8]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
push ebp
push 0x4d8006
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.004d8034
mov eax, dword [ebp - 4]
call fcn.0041f740
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4d8010
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d802d
lea eax, [ebp - 4]
call fcn.00409b04
ret
Function at 0x4019f0
Capabilities:
Hash data using crc32b

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
mov eax, 0x80
lea esp, [esp]
xor edx, edx
test bl, 1
cmovne edx, eax
mov eax, ebx
shr eax, 1
test al, 1
je 0x401a13
or edx, 0x40
shr eax, 1
test al, 1
je 0x401a1c
or edx, 0x20
shr eax, 1
test al, 1
je 0x401a25
or edx, 0x10
shr eax, 1
test al, 1
je 0x401a2e
or edx, 8
shr eax, 1
test al, 1
je 0x401a37
or edx, 4
shr eax, 1
test al, 1
je 0x401a40
or edx, 2
test al, 2
je 0x401a47
or edx, 1
shl edx, 0x18
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
mov ecx, edx
and ecx, 0x80000000
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x4c11db7
xor ecx, eax
mov edx, ecx
and edx, 0x80000000
neg edx
lea eax, [ecx + ecx]
sbb edx, edx
and edx, 0x4c11db7
xor edx, eax
xor esi, esi
mov dword [edi + ebx*4], edx
lea ecx, [esi + 0x1f]
lea ebx, [ebx]
test dl, 1
je 0x401b1e
mov eax, 1
shl eax, cl
or esi, eax
dec ecx
shr edx, 1
cmp ecx, 0xffffffff
jg 0x401b10
mov dword [edi + ebx*4], esi
mov eax, 0x80
inc ebx
cmp ebx, 0xff
jle 0x401a00
pop edi
pop esi
pop ebx
ret

Function at 0x401b40
Capabilities:
Encode data using xor
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 0xc]
lea eax, [ebp + 0xc]
push 0x42889c
push str..Datainfo.xtm
push eax
mov dword [ebp - 4], ecx
mov dword [edi], 0xffffffff
mov dword [ebp + 0xc], 0
call fcn.0040cf29
add esp, 0xc
test eax, eax
je 0x401b7d
xor al, al
pop edi
mov esp, ebp
pop ebp
ret 0xc
push ebx
push 0x400
call fcn.0040cf6e
add esp, 4
mov ebx, eax
mov dword [ebp - 8], ebx
push dword [ebp + 0xc]
test ebx, ebx
jne 0x401ba9
call fcn.0040d06c
add esp, 4
xor al, al
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
push 0x400
push 1
push ebx
call fcn.0040d2a8
add esp, 0x10
test eax, eax
je 0x401bfd
push esi
mov edi, edi
mov esi, ebx
test eax, eax
je 0x401be5
mov ebx, dword [edi]
lea esi, [esi + 1]
movzx ecx, byte [esi - 1]
movzx edx, bl
xor edx, ecx
shr ebx, 8
mov ecx, dword [ebp - 4]
xor ebx, dword [ecx + edx*4]
mov dword [edi], ebx
dec eax
jne 0x401bc6
mov ebx, dword [ebp - 8]
push dword [ebp + 0xc]
push 0x400
push 1
push ebx
call fcn.0040d2a8
add esp, 0x10
test eax, eax
jne 0x401bc0
pop esi
push ebx
call fcn.0040d354
push dword [ebp + 0xc]
call fcn.0040d06c
not dword [edi]
add esp, 8
mov al, 1
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x4057d0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x42c010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x45de2c]
mov ecx, dword [ebp + 0xc]
push ebx
push esi
push edi
test eax, eax
js 0x4058da
cmp eax, 2
jge 0x4058da
imul edi, eax, 0x214
inc eax
push ecx
push 0x100
mov dword [0x45de2c], eax
add edi, 0x45da04
lea ebx, [edi + 4]
mov dword [edi], 1
push ebx
call fcn.0040cd74
add esp, 0xc
cmp dword [edi], 0
je 0x4058da
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 0x4058b6
mov dword [edi], 0
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c5b1
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 0x4058da
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.0040c5b1
mov esp, ebp
pop ebp
ret 8
Function at 0x4058f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x824
mov eax, dword [0x42c010]
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 0x405add
cmp eax, dword [ecx + 0x42c]
jge 0x405add
imul edi, eax, 0x214
add edi, ecx
cmp dword [edi + 4], 0
je 0x405add
lea eax, [ebp - 0x81c]
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0x816]
cmp eax, dword [edi + 0x108]
jne 0x40596f
movzx eax, word [ebp - 0x81a]
cmp eax, dword [edi + 0x10c]
jne 0x40596f
movzx eax, word [ebp - 0x81c]
cmp eax, dword [edi + 0x110]
je 0x405a2e
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 0x4059f9
mov dword [edi + 4], 0
pop edi
pop esi
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0040c5b1
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 0x405a2e
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.0040c5b1
mov esp, ebp
pop ebp
ret
push 0x3ff
lea eax, [ebp - 0x80b]
mov byte [ebp - 0x80c], 0
push 0
push eax
call fcn.0040fee0
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x80c]
push 0x400
push eax
call fcn.0040d918
push 0x3ff
lea eax, [ebp - 0x40b]
mov byte [ebp - 0x40c], 0
push 0
push eax
call fcn.0040fee0
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, 0x40
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x405ab7
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.0040c5b1
mov esp, ebp
pop ebp
ret
Function at 0x405b30
Capabilities:
Encode data using xor
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42c010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
test eax, eax
je 0x405b62
push eax
call fcn.0040dec6
add esp, 4
mov dword [esi + 4], 0
push ebx
lea eax, [ebp - 0x108]
push 0x428ca8
push eax
call fcn.00405f90
add esp, 0xc
lea eax, [ebp - 0x108]
push 0
push 0x20
push 3
push 0
push 3
push 0xc0000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x405c49
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
mov dword [esi + 8], eax
call fcn.0040c4a6
add esp, 4
mov dword [esi + 4], eax
test eax, eax
je 0x405be3
push 0
lea ecx, [ebp - 0x10c]
mov dword [ebp - 0x10c], 0
push ecx
push dword [esi + 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
test eax, eax
jne 0x405bf8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret 8
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0xc], 0
je 0x405c24
xor ecx, ecx
cmp dword [esi + 8], ecx
jbe 0x405c24
jmp 0x405c10
mov eax, dword [esi + 4]
add byte [ecx + eax], 0x95
mov eax, dword [esi + 4]
xor byte [ecx + eax], 0xca
inc ecx
cmp ecx, dword [esi + 8]
jb 0x405c10
mov dword [esi + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 4]
pop edi
mov dword [esi + 0x7c], eax
xor ecx, ebp
pop esi
mov al, 1
pop ebx
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret 8
push ebx
push str._s_file_not_found
call fcn.0040bd80
int3
Function at 0x406120
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x122c
call fcn.00417260
mov eax, dword [0x42c010]
xor eax, esp
mov dword [esp + 0x1228], eax
cmp dword [0x45deec], 0
push ebx
push esi
push edi
je 0x4062d5
push 0
lea eax, [esp + 0x112c]
push eax
push 0x104
push str.MHPDetect.dll
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
test eax, eax
jne 0x406183
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x1228]
xor ecx, esp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
push 0x1000
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.PSAPI.DLL_EnumProcesses]
test eax, eax
je 0x40616c
mov esi, dword [esp + 0x14]
xor ebx, ebx
shr esi, 2
mov dword [esp + 0x10], esi
test esi, esi
jle 0x4062d5
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
mov esi, dword [esp + ebx*4 + 0x20]
test esi, esi
je 0x4062cc
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.004065c0
test al, al
jne 0x4062c8
mov dword [esp + 0x18], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push esi
mov dword [esp + 0x24], eax
call fcn.00406640
push dword [esp + ebx*4 + 0x20]
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4062c8
push 0x104
lea eax, [esp + 0x1024]
push eax
push 0
push esi
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
test eax, eax
je 0x4062c5
mov eax, str.ZONESRV06.exe
lea ecx, [esp + 0x1020]
lea ebx, [ebx]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x406260
test dl, dl
je 0x40625c
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x406260
add ecx, 2
add eax, 2
test dl, dl
jne 0x406240
xor eax, eax
jmp 0x406265
sbb eax, eax
or eax, 1
test eax, eax
jne 0x4062c5
lea eax, [esp + 0x1128]
push eax
push esi
call fcn.004062f0
test al, al
jne 0x4062c5
lea ecx, [esp + 0x1128]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x406285
sub ecx, edx
lea eax, [esp + 0x1128]
push ecx
push eax
push esi
call fcn.004063e0
test al, al
lea eax, [esp + 0x1020]
push eax
push dword [esp + ebx*4 + 0x24]
jne 0x4062b6
push str._ProcessManager___d___s__Could_not_initialize_process_
push 1
jmp 0x4062bd
push str._ProcessManager___d___s__Initialization_successful_
push 3
call fcn.0040be00
add esp, 0x10
push esi
call edi
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x4061c1
mov ecx, dword [esp + 0x1234]
mov al, 1
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret
Function at 0x4062f0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x110c
call fcn.00417260
mov eax, dword [0x42c010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x110c]
push eax
push 0x1000
lea eax, [ebp - 0x1108]
mov dword [ebp - 0x110c], 0
push eax
push ebx
call dword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
jne 0x406346
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret 8
push esi
push edi
mov edi, dword [ebp - 0x110c]
xor esi, esi
shr edi, 2
test edi, edi
jle 0x4063b5
jmp 0x406360
push 0x104
lea eax, [ebp - 0x108]
push eax
push dword [ebp + esi*4 - 0x1108]
push ebx
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test eax, eax
je 0x4063b0
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x108]
mov dl, byte [ecx]
cmp dl, byte [eax]
jne 0x4063a7
test dl, dl
je 0x4063a3
mov dl, byte [ecx + 1]
cmp dl, byte [eax + 1]
jne 0x4063a7
add ecx, 2
add eax, 2
test dl, dl
jne 0x406387
xor eax, eax
jmp 0x4063ac
sbb eax, eax
or eax, 1
test eax, eax
je 0x4063ca
inc esi
cmp esi, edi
jl 0x406360
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c5b1
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.0040c5b1
mov esp, ebp
pop ebp
ret 8
Function at 0x4063e0
Capabilities:
Check mutex on windows
Create thread
Inject dll
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
mov eax, dword [0x42c010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
push 4
push 0x1000
push ebx
push 0
push esi
mov dword [ebp - 0x48], eax
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
je 0x406436
push 0
push ebx
push dword [ebp - 0x48]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x40644b
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret 0xc
push str.LoadLibraryA
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x4c], eax
test eax, eax
je 0x406428
push esi
call dword [sym.imp.KERNEL32.dll_GetProcessId]
push eax
lea eax, [ebp - 0x44]
push str.XTMPID_d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [ebp - 0x48], eax
test eax, eax
je 0x406428
push 0
push 0
push edi
push dword [ebp - 0x4c]
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
test eax, eax
jne 0x4064db
push 0x8000
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret 0xc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push ebx
push edi
push esi
test eax, eax
jne 0x4064b7
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp - 0x48]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408640
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0
push fcn.00408a30
push 0
push 0
mov dword [0x4c5c10], 0x428f80
mov dword [0x4c5c14], 0
mov dword [0x4c5c1c], 0
mov dword [0x4c5c20], 0
mov dword [0x4c5c24], 0
mov dword [0x4c5c28], 0
mov dword [0x4c5c18], 0
mov dword [0x4c5c2c], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [0x4c5c14]
mov dword [0x4c5c18], eax
mov eax, dword [0x4c5c20]
mov byte [0x4c5c30], 0
mov dword [0x4c5c34], 0
mov dword [0x4c5c24], eax
mov byte [0x4c5c40], 0
mov dword [0x4c5c44], 0xffffffff
mov dword [0x4c5c50], 0
mov dword [0x4c5c54], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x4c5c58], eax
mov eax, 0x4c5c10
mov dword [0x4c5c5c], 0x64
mov dword [0x4c5c60], 0
ret
Function at 0x408dc0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
push 0
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
mov edi, eax
push 8
push edi
call esi
push 0xa
push edi
mov dword [ebp - 4], eax
call esi
push edi
push 0
mov esi, eax
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
mov edi, dword [eax + 4]
cmp ecx, edi
jle 0x408e10
cmp esi, dword [eax + 8]
jle 0x408e10
mov dword [0x4c5c48], edi
mov esi, dword [eax + 8]
jmp 0x408e53
mov eax, 0x51eb851f
mov edi, dword [ebp - 4]
imul ecx
mov eax, 0x51eb851f
mov dword [0x4c5c60], 0x64
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
imul esi
lea ecx, [ecx + ecx*4]
sar edx, 5
add ecx, ecx
mov eax, edx
sub edi, ecx
shr eax, 0x1f
add eax, edx
mov dword [0x4c5c48], edi
lea eax, [eax + eax*4]
add eax, eax
sub esi, eax
push 1
lea eax, [esi + 0x1e]
mov dword [0x4c5c4c], esi
push eax
push edi
push 0
push 0
push dword [0x4c5c34]
mov byte [0x4c5c30], 1
call dword [sym.imp.USER32.dll_MoveWindow]
push 1
push dword [0x4c5c34]
call dword [sym.imp.USER32.dll_ShowWindow]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40ab90
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 0x40abb6
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 0x40abc7
push eax
call ebx
mov dword [edi + 0x6c], 0
push esi
lea ecx, [edi + 0x38]
call fcn.004070b0
lea esi, [edi + 0x14]
mov ebx, 8
mov eax, dword [esi]
test eax, eax
je 0x40abf5
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
dec ebx
jne 0x40abd8
mov eax, dword [edi + 0x10]
pop esi
test eax, eax
je 0x40ac1f
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 0x40ac25
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [edi + 8]
test eax, eax
je 0x40ac36
push eax
call ebx
mov dword [edi + 8], 0
mov eax, dword [edi + 4]
cmp eax, 0xffffffff
je 0x40ac4c
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
pop edi
pop ebx
ret

Function at 0x40ac50
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x42c010]
xor eax, ebp
mov dword [ebp - 4], eax
push 1
push 0
push 0
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [0x4c66e4], eax
cmp eax, 0xffffffff
jne 0x40aca2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__WSASocket___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret
mov eax, 2
push 0
mov word [ebp - 0x14], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x10], eax
movzx eax, word [0x4c66ec]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [0x4c66e4]
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
jne 0x40ad05
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__bind___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret
push 5
push dword [0x4c66e4]
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
jne 0x40ad3e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__listen___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
call fcn.0040c5b1
mov esp, ebp
pop ebp
ret
Function at 0x40ad50
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push esi
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40ad7e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str._SocketManager__socket___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
pop esi
ret
push 0
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
mov dword [0x4c66e8], eax
test eax, eax
jne 0x40adb5
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateIoCompletionPort___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
xor al, al
pop esi
ret
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
mov al, 1
pop esi
ret

Function at 0x40adc0
Capabilities:
Create thread

Disassembly:
push 0
push 0
push 0x4c66e0
push 0x40b760
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c66f0], eax
test eax, eax
jne 0x40adfa
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x40ae20
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
ret
mov al, 1
ret

Function at 0x40ae30
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push esi
push edi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x10]
mov ecx, 8
cmp eax, ecx
cmova eax, ecx
xor esi, esi
mov dword [0x4c6714], eax
test eax, eax
je 0x40ae97
mov edi, 0x4c66f4
nop
push 0
push 0
push 0x4c66e0
push 0x40b8e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [edi], eax
test eax, eax
je 0x40aebd
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
je 0x40ae9f
inc esi
add edi, 4
cmp esi, dword [0x4c6714]
jb 0x40ae60
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40aee0
Capabilities:
Create thread

Disassembly:
push 0
push 0x800
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [0x4c674c], eax
test eax, eax
jne 0x40af13
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateSemaphore___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
ret
push 0
push 0
push 0x4c66e0
push 0x40b9e0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x4c6750], eax
test eax, eax
jne 0x40af4d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__CreateThread___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
ret
push 2
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test eax, eax
jne 0x40af73
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str._SocketManager__SetThreadPriority___failed_with_error:__d
push 1
call fcn.0040be00
add esp, 0xc
xor al, al
ret
mov al, 1
ret