joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44b9f0
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x525bc4]
cmp eax, 0xfffffc19
jne 0x44bb6f
push ebx
push esi
xor ebx, ebx
push str.kernel32
mov dword [ebp - 0x24], ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, ebx
jne 0x44ba2a
xor eax, eax
jmp 0x44ba4c
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
cmp esi, ebx
je 0x44ba49
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call esi
mov eax, dword [ebp - 0x24]
neg eax
sbb eax, eax
lea ecx, [ebp - 0x28]
push ecx
and eax, 0x100
add eax, 0x20019
push eax
push ebx
push str.SOFTWAREEYOOCLIENTSTATUS
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44bb1a
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov eax, 4
lea edx, [ebp - 0x24]
push edx
mov edx, dword [ebp - 0x28]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x34]
push eax
lea ecx, [ebp - 0x2c]
push ecx
push ebx
push str.BootFrom
push edx
call esi
test eax, eax
jne 0x44bac1
lea eax, [ebp - 0x24]
push eax
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x2c]
push edx
push ebx
push str.MixedMode
push eax
call esi
test eax, eax
je 0x44bad4
pop esi
or eax, 0xffffffff
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x34], ebx
je 0x44bb02
cmp dword [ebp - 0x30], ebx
jne 0x44bb02
mov eax, 1
pop esi
mov dword [0x525bc4], eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
pop esi
mov dword [0x525bc4], ebx
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
push 0x1a
push str.D:_syssetmenu_setmenu.dat
lea ecx, [ebp - 0x20]
mov dword [ebp - 0xc], 0xf
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0x20], bl
call fcn.00402a50
mov eax, dword [ebp - 0x20]
mov esi, 0x10
cmp dword [ebp - 0xc], esi
jae 0x44bb46
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
neg eax
sbb eax, eax
inc eax
mov dword [0x525bc4], eax
cmp dword [ebp - 0xc], esi
jb 0x44bb6d
mov edx, dword [ebp - 0x20]
push edx
call fcn.00482674
mov eax, dword [0x525bc4]
add esp, 4
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
Function at 0x44bb80
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
test edi, edi
jne 0x44bba7
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
push 0x1ff
lea eax, [ebp - 0x203]
push 0
push eax
mov byte [ebp - 0x204], 0
call fcn.004868c0
push 0x1ff
lea ecx, [ebp - 0x403]
push 0
push ecx
mov byte [ebp - 0x404], 0
call fcn.004868c0
push str.MainServer
push 0x51109c
lea edx, [ebp - 0x404]
call fcn.0044c350
add esp, 0x20
push esi
push 0x200
lea edx, [ebp - 0x204]
push edx
push 0
lea eax, [ebp - 0x404]
push eax
push str.setup
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringA]
lea eax, [ebp - 0x204]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44bc20
sub eax, edx
inc eax
cmp eax, 0x40
ja 0x44bb97
lea eax, [ebp - 0x204]
mov edx, edi
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x44bc40
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
call fcn.004822c9
mov esp, ebp
pop ebp
ret
Function at 0x44c180
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov dword [ebp - 0x8c], edi
push str.kernel32
mov dword [ebp - 0x90], edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp eax, edi
je 0x44c1d4
push str.IsWow64Process
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov esi, eax
cmp esi, edi
je 0x44c1d4
lea eax, [ebp - 0x90]
push eax
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call esi
push 0x3f
lea ecx, [ebp - 0x43]
push edi
push ecx
mov byte [ebp - 0x44], 0
call fcn.004868c0
add esp, 0xc
cmp dword [ebp - 0x90], edi
je 0x44c248
push 0x3f
lea edx, [ebp - 0x83]
push edi
push edx
mov byte [ebp - 0x84], 0
call fcn.004868c0
add esp, 0xc
lea edi, [ebp - 0x84]
mov esi, str.C:Program_Files__x86_E_YOOBaseSeting.ini
call fcn.0044bb80
test eax, eax
je 0x44c25d
mov eax, edi
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44c232
sub eax, edx
push eax
lea eax, [ebp - 0x84]
push eax
jmp 0x44c335
lea edi, [ebp - 0x44]
mov esi, str.C:Program_FilesE_YOOBaseSeting.ini
call fcn.0044bb80
test eax, eax
jne 0x44c310
push str.RE___cant_read_server_ip_from_base_seting_r_n
call fcn.00406550
add esp, 4
lea ecx, [ebp - 0x88]
push ecx
xor esi, esi
push esi
push esi
push str.SOFTWARECentury_Networkyileyoo
push reloc.WS2_32.dll_bind
mov dword [ebp - 0x88], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x44c2cf
lea edx, [ebp - 0x94]
push edx
mov edx, dword [ebp - 0x88]
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x8c]
push ecx
push esi
push str.ServerIpAddress
push edx
mov dword [ebp - 0x8c], esi
mov dword [ebp - 0x94], 0x40
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x44c2dc
push str.RE___cant_read_server_ip_from_registry_r_n
jmp 0x44c2d4
push str.RE___cant_read_server_ip_from_registry__cant_open_root_key__r_n
call fcn.00406550
add esp, 4
mov eax, dword [ebp - 0x88]
cmp eax, esi
je 0x44c2ed
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x44]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], esi
mov byte [ebx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44c300
sub eax, edx
push eax
lea eax, [ebp - 0x44]
push eax
jmp 0x44c335
lea eax, [ebp - 0x44]
mov dword [ebx + 0x14], 0xf
mov dword [ebx + 0x10], 0
mov byte [ebx], 0
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x44c327
sub eax, edx
push eax
lea ecx, [ebp - 0x44]
push ecx
mov ecx, ebx
call fcn.00402a50
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
mov eax, ebx
pop esi
call fcn.004822c9
mov esp, ebp
pop ebp
ret
Function at 0x44c370
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4e8318
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x44c3e4
mov ecx, esi
lea edi, [ebp - 0x2c]
call fcn.00407570
xor edi, edi
mov edx, eax
mov dword [ebp - 4], edi
call fcn.00407180
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], 0x10
jb 0x44c3d6
mov eax, dword [ebp - 0x2c]
push eax
call fcn.00482674
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
push 0x50e55c
push esi
call fcn.00484408
mov edi, eax
add esp, 8
test edi, edi
jne 0x44c418
mov edx, esi
call fcn.00407970
push 0x50e55c
push esi
call fcn.00484408
mov edi, eax
add esp, 8
test edi, edi
jne 0x44c418
lea eax, [edi + 0x6e]
jmp 0x44c43e
mov esi, dword [ebp + 8]
push edi
push esi
push 1
push ebx
call fcn.004845ce
add esp, 0x10
cmp eax, esi
je 0x44c433
mov eax, 0x1d
jmp 0x44c43e
push edi
call fcn.004848f9
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
Function at 0x44c460
Capabilities:
Check if file exists
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ee658
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov esi, ecx
mov ebx, 0x10
mov dword [ebp - 0x30], eax
cmp dword [esi + 0x14], ebx
jb 0x44c4a1
mov eax, dword [esi]
jmp 0x44c4a3
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x44c4f3
cmp dword [esi + 0x14], ebx
jb 0x44c4b7
mov ecx, dword [esi]
jmp 0x44c4b9
mov ecx, esi
lea edi, [ebp - 0x2c]
call fcn.00407570
xor edi, edi
mov edx, eax
mov dword [ebp - 4], edi
call fcn.00407180
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x18], ebx
jb 0x44c4e5
mov ecx, dword [ebp - 0x2c]
push ecx
call fcn.00482674
add esp, 4
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], edi
mov byte [ebp - 0x2c], 0
cmp dword [esi + 0x14], ebx
jb 0x44c4fc
mov eax, dword [esi]
jmp 0x44c4fe
mov eax, esi
push 0x50e55c
push eax
call fcn.00484408
mov edi, eax
add esp, 8
test edi, edi
jne 0x44c542
cmp dword [esi + 0x14], ebx
jb 0x44c51b
mov edx, dword [esi]
jmp 0x44c51d
mov edx, esi
call fcn.00407970
cmp dword [esi + 0x14], ebx
jb 0x44c529
mov esi, dword [esi]
push 0x50e55c
push esi
call fcn.00484408
mov edi, eax
add esp, 8
test edi, edi
jne 0x44c542
lea eax, [edi + 0x6e]
jmp 0x44c572
mov eax, dword [ebp - 0x30]
mov esi, dword [eax + 0x10]
cmp dword [eax + 0x14], ebx
jb 0x44c54f
mov eax, dword [eax]
push edi
push esi
push 1
push eax
call fcn.004845ce
add esp, 0x10
cmp eax, esi
je 0x44c567
mov eax, 0x1d
jmp 0x44c572
push edi
call fcn.004848f9
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
Function at 0x44c590
Capabilities:
Check if file exists
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec8b8
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x51f584]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ecx
mov eax, dword [ebp + 8]
mov esi, 0x10
cmp dword [ebp + 0x1c], esi
jae 0x44c5d1
lea eax, [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x44c608
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], esi
jb 0x44c5f4
mov edx, dword [ebp + 8]
push edx
call fcn.00482674
add esp, 4
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
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileA]
xor ebx, ebx
jmp 0x44c617
mov esi, 0x10
mov eax, dword [ebp + 8]
cmp dword [ebp + 0x1c], esi
jae 0x44c622
lea eax, [ebp + 8]
push 0
push 0x80
push 3
push 0
push 3
push 0xc0000000
push eax
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x44c683
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0x20
jne 0x44c6af
push 0xfa
inc ebx
call dword [sym.imp.KERNEL32.DLL_Sleep]
cmp ebx, 5
jl 0x44c612
mov dword [ebp - 4], esi
cmp dword [ebp + 0x1c], 0x10
jb 0x44c5f4
mov ecx, dword [ebp + 8]
push ecx
call fcn.00482674
add esp, 4
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 0
push esi
call dword [sym.imp.KERNEL32.DLL_GetFileSize]
mov edx, dword [ebp - 0x10]
push 0
push 0
push 0
push 4
push 0
push esi
mov dword [edx], eax
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
push esi
test edi, edi
jne 0x44c6e0
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp + 0x1c], 0x10
jb 0x44c5f4
mov eax, dword [ebp + 8]
push eax
call fcn.00482674
add esp, 4
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
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
call esi
push 0
push 0
push 0
push 2
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov ecx, dword [ebp - 0x14]
mov dword [ecx], eax
push edi
test eax, eax
jne 0x44c726
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004dc930
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
call esi
lea ecx, [ebp + 8]
mov dword [ebp - 4], 0xffffffff
call fcn.004dc930
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
Function at 0x44cc00
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xb0
mov eax, dword [0x51f584]
xor eax, esp
mov dword [esp + 0xac], eax
xor eax, eax
push ebx
push esi
mov esi, ecx
mov byte [esp + 0x6c], al
mov dword [esp + 0x6d], eax
mov dword [esp + 0x71], eax
mov dword [esp + 0x75], eax
mov dword [esp + 0x79], eax
mov dword [esp + 0x7d], eax
mov dword [esp + 0x81], eax
mov dword [esp + 0x85], eax
mov dword [esp + 0x89], eax
mov byte [esp + 0x90], al
mov dword [esp + 0x91], eax
mov dword [esp + 0x95], eax
mov dword [esp + 0x99], eax
mov dword [esp + 0x9d], eax
mov dword [esp + 0xa1], eax
mov dword [esp + 0xa5], eax
mov dword [esp + 0xa9], eax
mov dword [esp + 0xad], eax
cmp edi, eax
je 0x44cd27
mov ecx, edi
lea ebx, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
cmp dl, al
jne 0x44cca0
sub ecx, ebx
je 0x44cd27
mov dword [esp + 0x24], eax
mov dword [esp + 0x20], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], 0x67452301
mov dword [esp + 0x18], 0xefcdab89
mov dword [esp + 0x1c], 0x98badcfe
mov dword [esp + 0x20], 0x10325476
call fcn.00423480
lea esi, [esp + 0x14]
lea ebx, [esp + 0x70]
call fcn.00423540
lea eax, [esp + 0x94]
push eax
mov ecx, ebx
push ecx
call fcn.004026b0
lea edx, [esp + 0x9c]
push edx
push edi
call fcn.0048370b
add esp, 0x14
neg eax
sbb eax, eax
inc eax
pop esi
pop ebx
mov ecx, dword [esp + 0xac]
xor ecx, esp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0xb4]
pop esi
pop ebx
xor ecx, esp
mov eax, 1
call fcn.004822c9
mov esp, ebp
pop ebp
ret

Function at 0x44d190
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x18]
push eax
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x44d21e
lea ecx, [ebp - 0x20]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x44d1e4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x1c]
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
push 0
push eax
mov dword [ebp - 0x14], 1
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
Function at 0x44d490
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa7c
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_CreateFileW]
xor ebx, ebx
push 0
push 0x1000
push 4
push 0
push 0
push 0x10000000
push str..pipeProcessHelper_communication_pipe
call edi
mov esi, eax
cmp esi, 0xffffffff
jne 0x44d4f3
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xe7
jne 0x44d583
push 0x12c
push str..pipeProcessHelper_communication_pipe
call dword [sym.imp.KERNEL32.DLL_WaitNamedPipeW]
test eax, eax
je 0x44d583
inc ebx
cmp ebx, 3
jl 0x44d4a4
xor edi, edi
push edi
push edi
lea eax, [ebp - 8]
push eax
push esi
mov dword [ebp - 8], 2
call dword [sym.imp.KERNEL32.DLL_SetNamedPipeHandleState]
test eax, eax
je 0x44d583
push 0xa74
lea ecx, [ebp - 0xa7c]
push edi
push ecx
call fcn.004868c0
mov edx, dword [ebp + 8]
add esp, 0xc
push edi
lea eax, [ebp - 4]
push eax
push 0xa74
lea ecx, [ebp - 0xa7c]
push ecx
push esi
mov dword [ebp - 0xa7c], 0x1008
mov dword [ebp - 0xa78], edx
mov dword [ebp - 4], edi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x44d573
push edi
lea edx, [ebp - 4]
push edx
push 8
lea eax, [ebp - 0xa7c]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
je 0x44d573
mov edi, dword [ebp - 0xa78]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x44d9c0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x44da10
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x44da0a
shr eax, 8
cmp al, 2
jne 0x44da0a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 2
call fcn.004822c9
mov esp, ebp
pop ebp
ret

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

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

Function at 0x4565f0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x164]
test ecx, ecx
je 0x45660b
mov edx, dword [esi + 0xf4]
push edx
push edi
push ebx
push eax
push esi
call ecx
add esp, 0x14
ret
test eax, eax
js 0x45663f
cmp eax, 2
jg 0x45663f
mov ecx, dword [esi + 0xf0]
push ecx
push 1
lea edx, [eax + eax*2 + 0x4fad98]
push 2
push edx
call fcn.004845ce
mov eax, dword [esi + 0xf0]
push eax
push 1
push edi
push ebx
call fcn.004845ce
add esp, 0x20
xor eax, eax
ret

Function at 0x456850
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + eax*4 + 0x130]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4568cc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x4568a1
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push eax
push esi
call fcn.0045b470
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.004567b0
mov ecx, dword [esi]
mov edx, dword [ebp + 8]
mov dword [ecx + 0x8594], edx
add esp, 0x14
mov dword [ebx], 0x37
mov eax, edi
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4583b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
cmp dword [edi + 0x408], eax
push 4
lea ecx, [ebp - 4]
push ecx
setne al
push 8
push 0xffff
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x4583e9
push esi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push edi
call fcn.00456730
add esp, 0xc
mov esp, ebp
pop ebp
ret
Function at 0x458a00
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x51f584]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x1a4], 0
mov ebx, dword [esi]
push edi
mov dword [ebp - 0x108], esi
mov dword [ebp - 0x110], ebx
jne 0x458b97
mov edi, dword [ebp + 0xc]
lea eax, [ebp - 0x10c]
push eax
lea ecx, [ebp - 0x104]
push ecx
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x458a8a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0045b470
push eax
push edi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.004567b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x10c]
push edx
lea eax, [ebp - 0x84]
push eax
push edi
mov dword [ebp - 0x10c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x458add
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
push edi
push esi
call fcn.0045b470
push eax
push edi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.004567b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
lea ebx, [esi + 0xcc]
lea edi, [esi + 0x9e]
lea esi, [ebp - 0x104]
call fcn.004589c0
test eax, eax
jne 0x458b34
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov ecx, dword [ebp - 0x108]
mov esi, eax
push esi
push ecx
call fcn.0045b470
mov edx, dword [ebp - 0x110]
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.004567b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x108]
lea ebx, [eax + 0x100]
lea edi, [eax + 0xd0]
lea esi, [ebp - 0x84]
call fcn.004589c0
test eax, eax
jne 0x458b91
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov esi, eax
mov eax, dword [ebp - 0x108]
push esi
push eax
call fcn.0045b470
mov ecx, dword [ebp - 0x110]
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.004567b0
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004822c9
mov esp, ebp
pop ebp
ret
mov esi, dword [ebp - 0x108]
push esi
call fcn.00458960
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004822c9
mov esp, ebp
pop ebp
ret

Function at 0x458bc0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
push 4
lea ecx, [ebp - 4]
push ecx
push 1
push 6
push edx
mov dword [ebp - 4], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x458c06
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0045b470
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00456730
add esp, 0x14
pop esi
mov esp, ebp
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00456730
add esp, 8
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x458ca0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, dword [edi + 0x554]
test esi, esi
je 0x458ceb
mov eax, dword [edi + 0xc]
test eax, eax
je 0x458ceb
push 0x458c80
lea ecx, [ebp - 8]
mov dword [ebp - 8], esi
mov dword [ebp - 4], 0
mov edx, dword [eax + 0x64]
push ecx
push edx
call fcn.00460640
add esp, 0xc
cmp dword [ebp - 4], 0
jne 0x458cf4
mov dword [edi + 0x554], 0
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
test eax, eax
je 0x458cfd
mov dword [eax], esi
cmp dword [esi + 0x150], 0
mov edi, dword [esi + 0x130]
jne 0x458ceb
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x458ceb
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret