joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40121a
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x401243
mov al, byte [esi + 1]
inc esi
test al, al
je 0x40123b
cmp al, 0x22
jne 0x40122f
cmp byte [esi], 0x22
jne 0x40124d
inc esi
jmp 0x40124d
cmp al, 0x20
jle 0x40124d
inc esi
cmp byte [esi], 0x20
jg 0x401247
mov al, byte [esi]
test al, al
je 0x401257
cmp al, 0x20
jle 0x401240
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.00401bda
push 0x403004
push section..data
call fcn.00401bc0
test byte [ebp - 0x18], 1
pop ecx
pop ecx
je 0x401287
movzx eax, word [ebp - 0x14]
jmp 0x40128a
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov esi, eax
call fcn.00401bf2
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x4013d0
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ebp, esp
add esp, 0xfffffffc
push esi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov dword [0x40334c], eax
lea ecx, [ebp - 4]
push eax
push ecx
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
call dword [sym.imp.COMCTL32.dll_InitCommonControls]
mov eax, dword [ebp + 4]
mov dword [0x40319d], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401401
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
push 0x7f00
push esi
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x40319d]
mov dword [ebp - 0x48], eax
mov eax, 0x4018d6
mov dword [ebp - 0x54], eax
mov ecx, str.secondclass
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ecx, ecx
push ecx
push dword [0x40319d]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.bytesma
push eax
mov eax, 0x4030f5
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x403398], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x403398]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x4014b5
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x4014a7
mov esp, ebp
ret

Function at 0x43b643
Capabilities:
Encode data using xor

Disassembly:
push 0x43b3c1
pop eax
sub ebx, 0x875f4d16
inc ecx
or ebx, ebx
call fcn.0043b686
sub ecx, 0xad18abe
sub ecx, 1
xor dword [edx], eax
sub ecx, ecx
sub ebx, ebx
add ecx, ebx
inc edx
mov ebx, ecx
mov ecx, ecx
sub ecx, ebx
cmp edx, esi
jne fcn.0043b643
and ebx, ecx
mov ebx, ebx
add ebx, ebx
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x40993f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x409997
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x409997
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x409997
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4099c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push str.SoftwareMicrosoftDirect3D
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x409a2e
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push str.DisableMMX
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x409a25
cmp dword [ebp - 0xc], 4
jne 0x409a25
cmp dword [ebp - 0x10], edi
je 0x409a25
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x612c98], edi
xor eax, eax
jmp 0x409a56
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x612c98], edi
jge 0x409a51
mov dword [0x612c98], edi
call fcn.0040999b
test eax, eax
je 0x409a51
emms
mov dword [0x612c98], 1
mov eax, dword [0x612c98]
pop edi
leave
ret

Function at 0x409b36
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x74]
sub esp, 0x98
push ebx
push edi
push 0x25
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
xor bl, bl
and byte [ebp + 0x73], bl
push eax
mov dword [ebp - 0x24], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x409b6d
inc bl
mov byte [ebp + 0x73], 1
cmp dword [ebp - 0x14], 1
jne 0x409b8f
cmp dword [ebp - 0x20], 4
ja 0x409b99
jne 0x409b89
cmp dword [ebp - 0x1c], 0xa
jb 0x409b89
cmp word [ebp - 0x18], 0x55d
jae 0x409b99
mov byte [ebp + 0x73], 1
jmp 0x409b99
cmp dword [ebp - 0x14], 2
jne 0x409baf
test bl, bl
je 0x409bca
mov eax, dword [ebp + 0x7c]
sub eax, 6
je 0x409bba
dec eax
je 0x409bb3
sub eax, 3
jne 0x409baf
cmp byte [ebp + 0x73], 0
je 0x409bdb
xor eax, eax
jmp 0x409be3
call fcn.00409a59
jmp 0x409be3
cmp byte [ebp + 0x73], 0
jne 0x409baf
call fcn.00409a91
and eax, 4
jmp 0x409be3
cmp dword [ebp + 0x7c], 0xa
je 0x409bdb
push dword [ebp + 0x7c]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x409be3
call fcn.00409a91
and eax, 8
pop edi
pop ebx
add ebp, 0x74
leave
ret
Function at 0x40cd85
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x98
push ebx
push esi
xor esi, esi
cmp dword [ebp + 0x78], esi
push edi
mov edi, ecx
jne 0x40cda6
mov eax, 0x8876086c
jmp 0x40ce88
cmp dword [ebp + 0x7c], esi
je 0x40ce20
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 0x28], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x18], 2
je 0x40ce00
mov ebx, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push esi
push esi
push esi
push esi
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov dword [ebp + 0x6c], eax
add eax, 3
and eax, 0xfffffffc
call fcn.00555090
mov dword [ebp + 0x7c], esp
push esi
push esi
push dword [ebp + 0x6c]
push dword [ebp + 0x7c]
push 0xffffffffffffffff
push dword [ebp + 0x78]
push esi
push esi
call ebx
mov eax, dword [ebp + 0x7c]
mov dword [ebp + 0x78], eax
mov dword [ebp + 0x7c], esi
cmp dword [ebp + 0x7c], esi
je 0x40ce20
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x40ce39
push esi
push 0x10000000
push 3
push esi
push 1
push closesocket
push dword [ebp + 0x78]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [edi], eax
je 0x40ce79
push esi
push esi
push esi
push 2
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, 0xffffffff
mov dword [edi + 4], eax
je 0x40ce79
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
cmp eax, esi
mov dword [edi + 8], eax
je 0x40ce79
push esi
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [edi + 0xc], eax
jne 0x40ce86
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, 0x88760b59
jmp 0x40ce88
xor eax, eax
lea esp, [ebp - 0x34]
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8
Function at 0x431199
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x4311a7
xor eax, eax
pop ebp
ret
cmp dword [ebp + 0x10], 8
push esi
mov esi, dword [ebp + 8]
not esi
mov ecx, 0xff
jb 0x43127b
mov eax, dword [ebp + 0x10]
push ebx
shr eax, 3
push edi
xor ebx, ebx
mov bl, byte [edx]
mov edi, esi
shr edi, 8
sub dword [ebp + 0x10], 8
xor ebx, esi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d5700]
xor ebx, ebx
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d5700]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d5700]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d5700]
xor ebx, ebx
shr esi, 8
xor edi, esi
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d5700]
xor ebx, ebx
shr edi, 8
xor esi, edi
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d5700]
shr esi, 8
xor edi, esi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, edi
and ebx, ecx
mov esi, dword [ebx*4 + 0x5d5700]
shr edi, 8
xor esi, edi
xor ebx, ebx
inc edx
mov bl, byte [edx]
xor ebx, esi
and ebx, ecx
mov edi, dword [ebx*4 + 0x5d5700]
shr esi, 8
xor esi, edi
inc edx
dec eax
jne 0x4311c4
pop edi
pop ebx
cmp dword [ebp + 0x10], 0
je 0x43129b
xor eax, eax
mov al, byte [edx]
xor eax, esi
and eax, ecx
mov eax, dword [eax*4 + 0x5d5700]
shr esi, 8
xor esi, eax
inc edx
dec dword [ebp + 0x10]
jne 0x431281
mov eax, esi
not eax
pop esi
pop ebp
ret
Function at 0x442a90
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [ebp - 0x24], ecx
cmp dword [eax + 0x14], 0x10
jb 0x442ab1
mov eax, dword [eax]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x1c], eax
test eax, eax
jne 0x442adf
push str.Connect__:_gethostbyname___failed.
call fcn.00444390
add esp, 4
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 8
push ebx
xor ebx, ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp - 0x18], ebx
nop dword [eax]
push 0x5fb08c
xor bh, bh
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5fb08c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5fb078]
cmp eax, dword [0x5fb07c]
push 0x5fb08c
sete bl
call edi
test bl, bl
jne 0x442b48
mov ecx, dword [0x5fb07c]
mov bh, 1
mov eax, dword [0x5fb074]
mov eax, dword [eax + ecx*4]
inc ecx
cmp ecx, dword [0x5fb084]
mov dword [ebp - 0x18], eax
cmovge ecx, dword [0x5fb080]
mov dword [0x5fb07c], ecx
push 0x5fb08c
call edi
test bh, bh
jne 0x442b85
cmp esi, 0xa
jg 0x442b63
push 0x32
inc esi
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x442af0
push str.Connect__:_try_count_exceeding.
call fcn.00444390
add esp, 4
xor al, al
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 8
mov esi, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x18]
push 0x10
push ebx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_WSAEventSelect]
cmp eax, 0xffffffff
jne 0x442bc5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Connect__:_WSAEventSelect___failed:_error_code:__d
call fcn.00444390
add esp, 8
xor al, al
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp - 0x1c]
mov ecx, 2
push dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
mov dword [esi + 8], eax
mov word [ebp - 0x14], cx
mov dword [ebp - 0x10], eax
call dword [sym.imp.WS2_32.dll_htons]
push 0x619014
mov word [ebp - 0x12], ax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov dword [ebp - 0x1c], esi
lea eax, [ebp - 0x20]
push dword [ebp - 0x1c]
mov ecx, 0x61902c
mov dword [ebp - 0x20], ebx
push eax
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.004424f0
push 0x619014
call edi
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x442c5e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x2733
je 0x442c5e
push eax
push str.Connect__:_connect___failed:_error_code:__d
call fcn.00444390
add esp, 8
xor al, al
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
mov al, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.005548c1
mov esp, ebp
pop ebp
ret 8
Function at 0x4430b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x5fb010]
xor ecx, ecx
mov edx, 4
mov dword [ebp - 4], 0
mul edx
push esi
push edi
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00554c77
mov ecx, dword [0x5fb010]
shl ecx, 2
push ecx
push 0
push eax
mov dword [0x618fd0], eax
call fcn.00556fe0
xor esi, esi
add esp, 0x10
cmp dword [0x5fb010], esi
jle 0x443135
mov edi, dword [sym.imp.KERNEL32.dll_CreateThread]
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x443540
push 0x10000
push 0
call edi
mov ecx, dword [0x618fd0]
mov dword [ecx + esi*4], eax
mov eax, dword [0x618fd0]
cmp dword [eax + esi*4], 0
je 0x44313d
inc esi
cmp esi, dword [0x5fb010]
jl 0x443102
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x28], 0
jg 0x44348c
push ebx
push edi
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
sub eax, 2
je 0x443419
sub eax, 1
je 0x4433d0
sub eax, 1
jne 0x44348a
mov ecx, dword [esi + 0x10]
push dword [edi + 0x1c]
push dword [esi + 4]
mov eax, dword [ecx]
mov eax, dword [eax]
call eax
test al, al
jne 0x443483
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 0x10]
push 0
push dword [edi + 0x1c]
mov eax, dword [ecx]
push dword [esi + 4]
mov eax, dword [eax + 4]
call eax
test al, al
jne 0x4433ef
push dword [edi + 0x1c]
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, esi
call fcn.00443c20
test al, al
jne 0x44348a
push str.HandleGoodIoCompletions__:_setup_new_accept_failed
call fcn.00444390
mov eax, dword [esi]
add esp, 4
mov ecx, esi
call dword [eax + 8]
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
mov ebx, dword [ebp + 0x14]
nop dword [eax]
push 0
push ebx
push dword [ebp + 0x10]
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_recv]
mov edi, eax
cmp edi, 0xffffffff
je 0x44346f
test edi, edi
je 0x443457
push edi
push dword [ebp + 0x10]
mov ecx, esi
call fcn.00443760
cmp edi, ebx
je 0x443420
mov ecx, esi
call fcn.004438f0
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
mov ecx, dword [esi + 0x10]
test ecx, ecx
je 0x44348a
mov eax, dword [ecx]
push 0
push dword [esi + 4]
call dword [eax + 0xc]
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.HandleGoodIoCompletions__:_recv_failed:_error_code:__d
call fcn.00444390
add esp, 8
mov ecx, esi
call fcn.004438f0
pop edi
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4438f0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
xor esi, esi
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x14], 0
push ebx
push 0x5fb02c
xor bh, bh
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5fb02c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5fb018]
cmp eax, dword [0x5fb01c]
push 0x5fb02c
sete bl
call edi
test bl, bl
jne 0x443975
mov ecx, dword [0x5fb01c]
mov bh, 1
mov eax, dword [0x5fb014]
mov esi, dword [eax + ecx*4]
inc ecx
cmp ecx, dword [0x5fb024]
cmovge ecx, dword [0x5fb020]
mov dword [0x5fb01c], ecx
push 0x5fb02c
call edi
test bh, bh
jne 0x44398f
push 0x3e8
call fcn.00443150
add esp, 4
jmp 0x443920
push dword [esi + 0x20]
call fcn.00554c80
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x18], 2
mov dword [esi + 0x14], ecx
mov dword [esi + 0x1c], 0xffffffff
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
pop ebx
test ecx, ecx
je 0x4439ce
mov eax, dword [ecx + 4]
mov dword [esi + 0x28], eax
push 0
push esi
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_WSARecv]
test eax, eax
je 0x443a4c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x443a4c
push eax
push str.RegisterRecv__:_registration_failed:_error_code:__d
call fcn.00444390
push dword [esi + 0x20]
call fcn.00554c80
add esp, 0xc
mov dword [esi + 0x18], 0
mov ecx, 0x5fb014
mov dword [esi + 0x14], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
push esi
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
call fcn.00443860
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x443aa0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
push esi
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
call fcn.00554c77
push esi
push dword [ebp + 8]
mov dword [ebp - 0xc], eax
push eax
mov dword [ebp - 0x10], esi
call fcn.00556a60
mov edi, dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
add esp, 0x10
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov dword [ebp + 8], 0
push 0x5fb02c
mov byte [ebp + 0xf], 0
call edi
push 0x5fb02c
call edi
mov eax, dword [0x5fb018]
cmp eax, dword [0x5fb01c]
push 0x5fb02c
sete bl
call esi
test bl, bl
jne 0x443b38
mov ecx, dword [0x5fb01c]
mov eax, dword [0x5fb014]
mov byte [ebp + 0xf], 1
mov ebx, dword [eax + ecx*4]
inc ecx
cmp ecx, dword [0x5fb024]
mov dword [ebp + 8], ebx
cmovge ecx, dword [0x5fb020]
mov dword [0x5fb01c], ecx
jmp 0x443b3b
mov ebx, dword [ebp + 8]
push 0x5fb02c
call esi
cmp byte [ebp + 0xf], 0
jne 0x443b57
push 0x3e8
call fcn.00443150
add esp, 4
jmp 0x443ae2
push dword [ebx + 0x20]
mov edi, dword [ebp - 0x10]
mov esi, dword [ebp - 0xc]
call fcn.00554c80
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [ebx + 0x18], 1
mov dword [ebx + 0x14], ecx
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x20], esi
mov dword [ebx + 0x24], edi
mov dword [ebx + 0x28], 0
test ecx, ecx
je 0x443b93
mov eax, dword [ecx + 4]
mov dword [ebx + 0x28], eax
push 0
push ebx
push 0
lea eax, [ebp - 8]
push eax
push 1
lea eax, [ebp - 0x10]
push eax
push dword [ecx + 4]
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x443c08
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x443c08
push dword [ebx + 0x20]
call fcn.00554c80
add esp, 4
mov dword [ebx + 0x18], 0
mov ecx, 0x5fb014
mov dword [ebx + 0x14], 0
mov dword [ebx + 0x1c], 0
mov dword [ebx + 0x20], 0
push ebx
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
call fcn.00443860
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x443c20
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x616798]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
mov eax, ecx
mov dword [ebp - 0x20], 0
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x1c], eax
push ecx
push 4
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x14], 0xb5367df1
push ecx
push 0x10
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], 0x11cfcbac
push ecx
push 0xc8000006
push dword [eax + 4]
mov dword [ebp - 0xc], 0x8000ca95
mov dword [ebp - 8], 0x92a1485f
mov dword [ebp - 0x18], 0
call dword [sym.imp.WS2_32.dll_WSAIoctl]
push 1
push 0
push 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_WSASocketA]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
jne 0x443cb8
push str.Failed_to_create_socket_in_IOCP_setup.
call fcn.00444390
add esp, 4
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
push edi
xor edi, edi
push ebx
push 0x5fb02c
xor bh, bh
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0x5fb02c
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x5fb018]
cmp eax, dword [0x5fb01c]
push 0x5fb02c
sete bl
call esi
test bl, bl
jne 0x443d18
mov ecx, dword [0x5fb01c]
mov bh, 1
mov eax, dword [0x5fb014]
mov edi, dword [eax + ecx*4]
inc ecx
cmp ecx, dword [0x5fb024]
cmovge ecx, dword [0x5fb020]
mov dword [0x5fb01c], ecx
push 0x5fb02c
call esi
test bh, bh
jne 0x443d32
push 0x3e8
call fcn.00443150
add esp, 4
jmp 0x443cc3
push dword [edi + 0x20]
call fcn.00554c80
mov eax, dword [ebp - 0x1c]
add esp, 4
mov ebx, dword [ebp - 0x24]
mov dword [edi + 0x28], 0
mov dword [edi + 0x18], 3
mov dword [edi + 0x14], eax
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov eax, dword [eax + 4]
push 0x618ff4
mov dword [edi + 0x28], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push edi
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0x1c]
push 0x20
push 0x20
push 0
push 0x619040
push ebx
push dword [eax + 4]
call dword [ebp - 0x20]
test eax, eax
jne 0x443de1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp eax, 0x3e5
je 0x443de1
push str.AcceptEx___Failed_and_IO_aint_pending.
call fcn.00444390
add esp, 4
mov ecx, edi
call fcn.00443a60
push edi
mov ecx, 0x5fb014
call fcn.00443860
push ebx
call dword [sym.imp.WS2_32.dll_closesocket]
push 0x618ff4
call esi
pop ebx
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005548c1
mov esp, ebp
pop ebp
ret
push 0x618ff4
call esi
mov ecx, dword [ebp - 4]
mov al, 1
pop ebx
pop edi
xor ecx, ebp
pop esi
call fcn.005548c1
mov esp, ebp
pop ebp
ret
Function at 0x443e40
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5ac97f
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x616798]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lock inc dword [0x618fd8]
cmp dword [0x618fd8], 1
jne 0x443f7e
push 4
call fcn.00554883
add esp, 4
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x443e9d
mov ecx, eax
call fcn.00440040
jmp 0x443e9f
xor eax, eax
push dword [0x5fb010]
mov ecx, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x618fd4], eax
call fcn.00440090
call fcn.004430b0
test al, al
jne 0x443ef8
mov esi, dword [0x618fd4]
test esi, esi
je 0x443edd
mov ecx, esi
call fcn.00440050
push 4
push esi
call fcn.005548b3
add esp, 8
lock dec dword [0x618fd8]
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x7530
call fcn.00443150
mov ebx, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
add esp, 4
push 0x618fdc
call ebx
mov edi, dword [sym.imp.WS2_32.dll_WSACreateEvent]
xor esi, esi
nop word [eax + eax]
call edi
test eax, eax
je 0x443ee4
push eax
mov ecx, 0x5fb074
call fcn.004437d0
inc esi
cmp esi, 0x3f
jl 0x443f20
call edi
mov dword [0x61900c], eax
test eax, eax
je 0x443ee4
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0x442c80
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [0x619010], eax
test eax, eax
je 0x443ee4
push 0x619014
call ebx
push 0x618ff4
call ebx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret