joyce8/EMBER2024-capa huggingface dataset:
Function at 0x516040
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x190
push esi
mov esi, ecx
cmp byte [esi + 0xd4], 0
jne 0x516091
lea eax, [ebp - 0x190]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x516083
mov eax, dword [ebp - 0x190]
cmp al, 2
jae 0x51608a
cmp al, 1
jb 0x51607d
shr eax, 8
cmp al, 1
jae 0x51608a
call dword [sym.imp.WS2_32.dll_WSACleanup]
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
mov byte [esi + 0xd4], 1
mov al, byte [esi + 0xd4]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5160c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SOFTWAREGameRanger_
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x51613f
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x108]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x516110
sub eax, edx
inc eax
push eax
mov eax, dword [ebp - 4]
lea edx, [ebp - 0x108]
push edx
push 1
push 0
push str.ExecutablePath
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x518e00
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
test edi, edi
je 0x518e7f
cmp edi, 0xffffffff
je 0x518e7f
push ebx
push esi
push esi
push esi
push 2
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov ebx, eax
test ebx, ebx
je 0x518e77
push esi
push esi
push esi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov dword [ebp - 4], eax
test eax, eax
je 0x518e70
mov ecx, dword [ebp + 0xc]
push ecx
push eax
call fcn.0044ad30
mov esi, eax
add esp, 8
test esi, esi
jne 0x518e66
lea esi, [eax + 1]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x518e90
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push esi
lea eax, [ebp - 0x400]
push edi
push eax
call fcn.00452d10
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x400]
push ecx
push edi
call fcn.0045b740
push str.Components
push eax
call fcn.0045b740
add esp, 0x14
push 0
lea esi, [eax + 1]
push edi
mov byte [eax], 0x5c
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5196c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.00519600
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x519708
cmp byte [esi + 8], 0
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push edi
mov edi, dword [ebp + 8]
je 0x5196f6
mov eax, dword [esi + 4]
mov edx, dword [esi]
push edi
sub edx, eax
push 1
push edx
add eax, ecx
push eax
call ebx
add esp, 0x10
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
push edi
push 1
push eax
push ecx
call ebx
add esp, 0x10
pop edi
pop ebx
mov ecx, esi
call fcn.00519610
pop esi
pop ebp
ret 4
Function at 0x519720
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov esi, ecx
call fcn.00519600
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x5197a6
cmp byte [esi + 8], 0
push ebx
mov ebx, dword [ebp + 8]
je 0x51976f
mov eax, dword [esi + 4]
mov edx, dword [esi]
push ebx
sub edx, eax
push 1
push edx
add eax, ecx
push eax
call dword [sym.imp.msvcrt.dll_fwrite]
mov eax, dword [esi + 4]
mov ecx, dword [esi]
mov edx, dword [esi + 0xc]
sub ecx, eax
push ecx
add edx, eax
mov eax, dword [ebp + 0xc]
push edx
push eax
call fcn.0044ae40
add esp, 0x1c
mov edi, eax
jmp 0x519772
mov edi, dword [ebp + 0xc]
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0xc]
push ebx
push 1
push ecx
push edx
call dword [sym.imp.msvcrt.dll_fwrite]
mov eax, dword [esi + 4]
mov ecx, dword [esi + 0xc]
push eax
push ecx
push edi
call fcn.0044ae40
add esp, 0x1c
pop ebx
mov ecx, esi
mov edi, eax
call fcn.00519610
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
mov edi, dword [ebp + 0xc]
mov ecx, esi
call fcn.00519610
mov eax, edi
pop edi
pop esi
pop ebp
ret 8

Function at 0x51cfb0
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push 0x104
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x51cfe0
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathStripToRootA]
test eax, eax
jne 0x51cfea
mov dword [ebp - 0x108], 0x5c3a43
push 0
push 0
push 0
push 0
lea edx, [ebp - 4]
push edx
push 0
push 0
lea eax, [ebp - 0x108]
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x51d024
mov edx, dword [ebp + 8]
push 4
lea ecx, [ebp - 4]
push ecx
push edx
call fcn.005d5cb0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x51d030
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x40
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x51d05d
mov edx, dword [ebp + 8]
push 8
lea ecx, [ebp - 0x38]
push ecx
push edx
call fcn.005d5cb0
add esp, 0xc
mov esp, ebp
pop ebp
ret

Function at 0x51d070
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
lea eax, [ebp - 0x128]
push 0x620f64
push eax
call fcn.0045c0f0
lea ecx, [ebp - 0x28]
push 0x620f58
push ecx
call fcn.0045c0f0
add esp, 0x10
lea edx, [ebp - 8]
push edx
push 0x20119
push 0
lea eax, [ebp - 0x128]
push eax
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x51d103
lea ecx, [ebp - 4]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [ebp - 0x228]
push edx
push eax
push eax
lea eax, [ebp - 0x28]
push eax
push ecx
mov dword [ebp - 4], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x51d0f9
mov edx, dword [ebp - 4]
mov ecx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x228]
push eax
push ecx
call fcn.005d5cb0
add esp, 0xc
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x51d8b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x800
push 0x2e
push eax
call dword [sym.imp.msvcrt.dll_strchr]
add esp, 8
test eax, eax
je 0x51d8d2
xor eax, eax
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x800
lea ecx, [ebp - 0x800]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAddExtensionA]
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x51d925
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x800]
push eax
call esi
push str..dll
lea ecx, [ebp - 0x800]
push ecx
call edi
lea edx, [ebp - 0x800]
push edx
call ebx
test eax, eax
jne 0x51d965
push 0x800
lea eax, [ebp - 0x800]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
je 0x51d963
mov ecx, dword [ebp + 8]
push ecx
lea edx, [ebp - 0x800]
push edx
call esi
push str..dll
lea eax, [ebp - 0x800]
push eax
call edi
lea ecx, [ebp - 0x800]
push ecx
call ebx
test eax, eax
jne 0x51d965
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51e0a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x51e0d1
cmp eax, edi
jae 0x51e0d1
cmp byte [eax + esi - 1], 0x5c
lea ecx, [eax + esi]
je 0x51e0c8
mov byte [ecx], 0x5c
lea ecx, [eax + 1]
add ecx, esi
mov byte [ecx], 0
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x51e0e0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push eax
push ecx
call fcn.0045b740
push str..dll
push eax
call fcn.0045b740
add esp, 0x10
pop ebp
jmp fcn.004414e0

Function at 0x51e890
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
push esi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
mov dword [ebp - 4], esi
test esi, esi
je 0x51e937
lea eax, [ebp - 0x12c]
push eax
push esi
mov dword [ebp - 0x12c], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x51e930
push ebx
mov ebx, dword [sym.imp.msvcrt.dll__stricmp]
push edi
xor edi, edi
mov esi, 0x7183e1
lea ebx, [ebx]
cmp byte [esi - 1], 0
je 0x51e8ff
test byte [esi], 8
jne 0x51e8ff
mov ecx, dword [esi - 9]
push ecx
lea edx, [ebp - 0x108]
push edx
call ebx
add esp, 8
test eax, eax
je 0x51e90d
add esi, 0x10
inc edi
cmp esi, 0x718461
jl 0x51e8e0
jmp 0x51e917
shl edi, 4
or byte [edi + 0x7183e1], 8
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x12c]
push eax
push ecx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x51e8d3
mov esi, dword [ebp - 4]
pop edi
pop ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x51eb40
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
cmp byte [0x718400], 0
je 0x51ec08
push ebx
push esi
push 0x62141c
push eax
call fcn.0045c080
add esp, 8
lea edx, [ebp - 0x144]
push edx
mov ebx, eax
mov ecx, 0x2a
push edi
mov word [ebx], cx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
mov dword [ebp - 4], esi
cmp esi, 0xffffffff
je 0x51ec06
jmp 0x51eb90
cmp byte [ebp - 0x118], 0x2e
je 0x51ebed
mov al, byte [ebp - 0x144]
test al, 2
jne 0x51ebed
test al, 0x10
je 0x51ebed
lea eax, [ebp - 0x118]
push eax
push ebx
call fcn.0045b740
mov esi, eax
mov byte [esi], 0x5c
inc esi
push edi
push 2
mov eax, 0x62140c
mov ecx, esi
call fcn.0051eb00
push edi
push 2
mov eax, 0x6213fc
mov ecx, esi
call fcn.0051eb00
push edi
push 2
mov eax, 0x6213e8
mov ecx, esi
call fcn.0051eb00
mov esi, dword [ebp - 4]
add esp, 0x20
lea ecx, [ebp - 0x144]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x51eb90
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x51fd20
Capabilities:
Accept command line arguments

Disassembly:
cmp byte [0x71846b], 0
jne 0x51fd66
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov byte [0x71846b], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.msvcrt.dll_strstr]
push str.__type
push esi
mov dword [0x718478], eax
call edi
add esp, 8
test eax, eax
jne 0x51fd67
mov dword [0x718474], 1
pop edi
pop esi
ret
push 8
add eax, 7
push str.renderer
push eax
call dword [sym.imp.msvcrt.dll_strncmp]
neg eax
sbb eax, eax
neg eax
add eax, 2
push esi
mov dword [0x718474], eax
call fcn.0051fcb0
push str.__ns
push esi
call edi
add esp, 0x18
test eax, eax
je 0x51fd64
add eax, 5
push eax
call sym.GameRanger.exe_unsigned_int___cdecl_str_u_char_const__
add esp, 4
dec eax
je 0x51fdb6
sub eax, 2
jne 0x51fd64
pop edi
pop esi
jmp fcn.00429ca0
pop edi
pop esi
jmp fcn.0040c7c0
Function at 0x5250ad
Capabilities:
Terminate process

Disassembly:
push 0x58
push 0x64b838
call fcn.005250d0
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov edi, 0x71895c
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
test eax, eax
je 0x524e0c
cmp eax, esi
jne 0x524dff
xor esi, esi
inc esi
mov ebx, esi
jmp 0x524e0f
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x524de6
xor esi, esi
inc esi
mov eax, dword [0x718958]
cmp eax, esi
jne 0x524e22
push 0x1f
call sub.msvcrt.dll__amsg_exit
pop ecx
jmp 0x524e51
mov eax, dword [0x718958]
test eax, eax
jne 0x524e4b
mov dword [0x718958], esi
push 0x5f6078
push 0x5f6068
call fcn.00524d55
pop ecx
pop ecx
test eax, eax
je 0x524e51
jmp 0x524f79
mov dword [0x7184c4], esi
mov eax, dword [0x718958]
cmp eax, esi
jne 0x524e75
push 0x5f6064
push 0x5f5f94
call sub.msvcrt.dll__initterm
pop ecx
pop ecx
mov dword [0x718958], 2
test ebx, ebx
jne 0x524e81
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x718960], 0
je 0x524ea5
push 0x718960
call fcn.00529514
pop ecx
test eax, eax
je 0x524ea5
push 0
push 2
push 0
call dword [0x718960]
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x524f01
test al, al
je 0x524ebf
cmp dword [ebp - 0x1c], 0
jne 0x524f01
mov al, byte [esi]
test al, al
je 0x524ecf
cmp al, 0x20
ja 0x524ecf
inc esi
mov dword [ebp - 0x20], esi
jmp 0x524ebf
test byte [ebp - 0x3c], 1
je 0x524edb
movzx eax, word [ebp - 0x38]
jmp 0x524ede
push 0xa
pop eax
push eax
push esi
push 0
push 0x400000
call main
mov dword [0x7184c0], eax
cmp dword [0x7184b4], 0
jne 0x524f55
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp al, 0x22
jne 0x524f10
xor ecx, ecx
cmp dword [ebp - 0x1c], ecx
sete cl
mov dword [ebp - 0x1c], ecx
movzx eax, al
push eax
call dword [sym.imp.msvcrt.dll__ismbblead]
pop ecx
test eax, eax
je 0x524f23
inc esi
mov dword [ebp - 0x20], esi
inc esi
jmp 0x524eac
cmp dword [0x7184c4], 0
jne 0x524f64
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x7184c0]
jmp 0x524f85
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.00807000
ret
call fcn.00529979
jmp 0x524dac
Function at 0x529a9c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x529acb
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.00521172
add esp, 0x14
jmp 0x529ba9
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x529ba9
test al, 0x40
jne 0x529ba9
test al, 2
je 0x529aed
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x529ba9
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x529aad
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x529b99
cmp eax, 0xffffffff
je 0x529b99
test byte [esi + 0xc], 0x82
jne 0x529b6e
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x529b59
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x529b59
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x529b5e
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x529b6e
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x529b8c
mov eax, dword [esi + 0xc]
test al, 8
je 0x529b8c
test eax, 0x400
jne 0x529b8c
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
dec dword [esi + 4]
movzx eax, byte [ecx]
inc ecx
mov dword [esi], ecx
jmp 0x529bac
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x52c3ce
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x52c3fd
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.00521172
add esp, 0x14
jmp 0x52c4e7
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x52c4e7
test al, 0x40
jne 0x52c4e7
test al, 2
je 0x52c41f
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x52c4e7
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x52c3df
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x52c4d7
cmp eax, 1
je 0x52c4d7
cmp eax, 0xffffffff
je 0x52c4d7
test byte [esi + 0xc], 0x82
jne 0x52c4a9
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x52c494
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x52c494
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x52c499
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x52c4a9
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x52c4c7
mov eax, dword [esi + 0xc]
test al, 8
je 0x52c4c7
test eax, 0x400
jne 0x52c4c7
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x52c4ec
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x5b2ab0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x6a21bc]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x5b2b02
mov eax, dword [esp]
cmp al, 2
jne 0x5b2afc
shr eax, 8
cmp al, 2
jne 0x5b2afc
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.005211a0
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.005211a0
add esp, 0x194
ret
Function at 0x5b6ee0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
cmp dword [eax + 0x318], 2
jne 0x5b6ef2
jmp fcn.005b6e80
mov eax, 1
ret
Function at 0x5bfac0
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x5bfaf2
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x5bfc20
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1c0]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x10]
test ecx, ecx
je 0x5bfc49
mov edx, dword [esi + 0x14c]
push edx
mov edx, dword [esp + 0x10]
push ebp
push edx
push eax
push esi
call ecx
add esp, 0x14
pop ebp
pop ebx
ret
test eax, eax
js 0x5bfc83
cmp eax, 2
jg 0x5bfc83
mov ecx, dword [esi + 0x148]
push edi
mov edi, dword [sym.imp.msvcrt.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x629e08]
push 2
push edx
call edi
mov eax, dword [esi + 0x148]
mov ecx, dword [esp + 0x20]
push eax
push 1
push ebp
push ecx
call edi
add esp, 0x20
pop edi
pop ebp
mov eax, ebx
pop ebx
ret

Function at 0x5bfc90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x6a21bc]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebp
mov ebp, dword [esp + 0xb4]
push esi
mov esi, dword [esp + 0xb0]
cmp dword [esi + 0x4fc], 0
push edi
je case.default.0x5bfcf1
test eax, eax
je case.default.0x5bfcf1
mov eax, dword [eax + 0xa4]
test eax, eax
je case.default.0x5bfcf1
mov edx, dword [esp + 0xb8]
dec edx
mov ecx, str.Data
cmp edx, 3
ja case.default.0x5bfcf1
jmp dword [edx*4 + 0x5bfdc0]
mov ecx, str.Header
mov edx, str.from
jmp 0x5bfd0e
mov ecx, str.Header
mov edx, 0x629e2c
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x1c]
push 0xa0
push eax
call fcn.005ce3c0
lea eax, [esp + 0x24]
add esp, 0x18
lea edx, [eax + 1]
nop
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bfd30
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1c0]
test eax, eax
je 0x5bfd8e
mov ecx, dword [esi + 0x14c]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x5bfd76
mov eax, dword [esp + 0xc0]
push eax
mov eax, dword [esp + 0xbc]
push ebp
call fcn.005bfc20
add esp, 8
mov ecx, dword [esp + 0xac]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.005211a0
add esp, 0xa4
ret
mov eax, dword [esi + 0x148]
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push eax
push 1
push 2
push 0x629e08
call ebx
mov ecx, dword [esi + 0x148]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call ebx
add esp, 0x20
pop ebx
jmp case.default.0x5bfcf1
Function at 0x5bfec0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x6a21bc]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0x548], 0
jne 0x5bfef2
cmp dword [esi + 0x150], 0
je 0x5bffd0
mov ecx, dword [esp + 0x114]
lea eax, [esp + 0x118]
push eax
push ecx
lea edx, [esp + 0xc]
push 0x100
push edx
call fcn.005ce360
lea eax, [esp + 0x14]
add esp, 0x10
lea edx, [eax + 1]
jmp 0x5bff20
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x5bff20
sub eax, edx
mov edx, dword [esi + 0x150]
push edi
mov edi, eax
test edx, edx
je 0x5bff57
cmp dword [esi + 0x108a0], 0
jne 0x5bff57
lea ecx, [esp + 8]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x5bff43
mov dword [esi + 0x108a0], 1
cmp dword [esi + 0x548], 0
je 0x5bffcf
mov eax, dword [esi + 0x1c0]
mov byte [esp + edi + 8], 0xa
inc edi
mov byte [esp + edi + 8], 0
test eax, eax
je 0x5bffa1
mov ecx, dword [esi + 0x14c]
push ecx
push edi
lea edx, [esp + 0x10]
push edx
push 0
push esi
call eax
add esp, 0x14
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.005211a0
add esp, 0x108
ret
mov eax, dword [esi + 0x148]
push ebx
mov ebx, dword [sym.imp.msvcrt.dll_fwrite]
push eax
push 1
push 2
push 0x629e08
call ebx
mov ecx, dword [esi + 0x148]
push ecx
push 1
lea edx, [esp + 0x24]
push edi
push edx
call ebx
add esp, 0x20
pop ebx
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.005211a0
add esp, 0x108
ret

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

Disassembly:
mov ecx, dword [ebx + 0x310]
push ebp
mov ebp, dword [ebx + eax*4 + 0x198]
push esi
lea esi, [eax + 0x1c]
shl esi, 4
add esi, ebx
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [ecx + 0x40], 3
je 0x5c04cd
cmp dword [ebx + eax*4 + 0x1b0], 0x5c01d0
jne 0x5c04cd
cmp dword [esi], 0
je 0x5c046a
test edi, edi
je 0x5c04cd
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.005b6790
add esp, 0x10
cmp eax, 0xffffffff
je 0x5c04cd
test al, 1
je 0x5c04cd
cmp dword [esi], 0
jne 0x5c04af
mov edx, dword [ebx]
mov eax, dword [edx + 0x4d0]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x6a2b0c]
mov edi, dword [esi + 4]
xor ecx, ecx
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp eax, ecx
je 0x5c04ca
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x5c04cd
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
ret
mov dword [esi + 4], ecx
pop edi
pop esi
pop ebp
ret