joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42ef44
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x24
mov eax, 0x470bd5
call fcn.00453426
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.004225f8
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x42ef8f
call fcn.004225f8
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x42efa0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x42efad
or eax, 0xffffffff
jmp 0x42f109
mov ecx, esi
call fcn.0042ea96
mov dword [ebp - 0x14], eax
call fcn.0041ec67
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x42f02b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x42f02b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x42f02b
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.00411d7c
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x42f02b
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x42f02b
mov ecx, ebx
call fcn.00425871
test eax, eax
je 0x42f02b
push 0
mov ecx, ebx
call fcn.0042588c
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.00420b31
push dword [ebp - 0x14]
call fcn.0041ebbf
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.0042ed4c
xor edi, edi
cmp eax, edi
je 0x42f088
test byte [esi + 0x3c], 0x10
je 0x42f072
push 4
pop edi
mov ecx, esi
call fcn.00425726
test ax, 0x100
je 0x42f068
push 5
pop edi
push edi
mov ecx, esi
call fcn.0041e730
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x42f088
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0042590c
or dword [ebp - 4], 0xffffffff
jmp 0x42f0b3
cmp dword [ebp - 0x28], edi
je 0x42f0c1
push 1
mov ecx, ebx
call fcn.0042588c
cmp dword [ebp - 0x2c], edi
je 0x42f0d1
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x42f0ea
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x42f0ea
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0042ead0
cmp dword [esi + 0x58], edi
je 0x42f106
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.004534cb
ret
Function at 0x42f13a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.004225f8
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42f171
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0042ed4c
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8

Function at 0x43c886
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
mov esi, ecx
cmp esi, edi
je 0x43c936
mov eax, dword [edi]
mov dword [esi], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
mov al, byte [edi + 5]
mov byte [esi + 5], al
mov al, byte [edi + 6]
mov byte [esi + 6], al
mov al, byte [edi + 7]
mov byte [esi + 7], al
mov al, byte [edi + 8]
mov byte [esi + 8], al
mov eax, dword [edi + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
mov dword [esi + 0x14], eax
mov eax, dword [edi + 0x18]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x1c]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x20]
mov dword [esi + 0x20], eax
mov eax, dword [edi + 0x24]
mov dword [esi + 0x24], eax
mov eax, dword [edi + 0x28]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
mov dword [esi + 0x2c], eax
mov eax, dword [edi + 0x30]
mov dword [esi + 0x30], eax
mov eax, dword [edi + 0x34]
mov dword [esi + 0x34], eax
mov eax, dword [edi + 0x38]
mov dword [esi + 0x38], eax
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x3c], eax
mov eax, dword [edi + 0x40]
mov dword [esi + 0x40], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x44], eax
mov eax, dword [edi + 0x48]
mov dword [esi + 0x48], eax
mov eax, dword [edi + 0x50]
mov dword [esi + 0x50], eax
mov eax, dword [edi + 0x54]
mov dword [esi + 0x54], eax
lea eax, [edi + 0x58]
push eax
lea ecx, [esi + 0x58]
call fcn.0043f566
add edi, 0x64
push edi
lea ecx, [esi + 0x64]
call fcn.0043c7f3
pop edi
mov eax, esi
pop esi
ret 4

Function at 0x43ddb6
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x43ddf0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x43ddf0
push ebx
push dword [esp + 0xc]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ebx, eax
dec ebx
neg ebx
sbb bl, bl
mov ecx, esi
inc bl
call fcn.0043dd6a
mov al, bl
pop ebx
jmp 0x43ddf2
xor al, al
pop esi
ret 4
Function at 0x43de2a
Capabilities:
Create process on windows

Disassembly:
push 0x78
mov eax, 0x471a62
call fcn.004533f3
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp dword [ecx + 4], esi
je 0x43de47
xor al, al
jmp 0x43df3c
push 0x10
lea eax, [ebp - 0x30]
push esi
push eax
call fcn.00452b30
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0x84]
push esi
push eax
call fcn.00452b30
mov dword [ebp - 0x84], ebx
mov bl, byte [ebp + 0xc]
add esp, 0x18
test bl, bl
je 0x43de7f
mov dword [ebp - 0x58], 1
mov word [ebp - 0x54], si
push dword [ebp + 0x14]
lea ecx, [ebp - 0x20]
call fcn.004020cd
mov eax, dword [ebp - 0x18]
sub eax, dword [ebp - 0x1c]
mov dword [ebp - 4], esi
test eax, 0xfffffffe
je 0x43dea6
lea ecx, [ebp - 0x20]
call fcn.004020fc
mov edi, eax
jmp 0x43dea8
xor edi, edi
push dword [ebp + 8]
lea ecx, [ebp - 0x40]
call fcn.004020cd
neg bl
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x84]
push ecx
push edi
push esi
sbb ebx, ebx
xor ecx, ecx
and ebx, 8
cmp byte [ebp + 0x10], cl
push ebx
setne cl
mov byte [ebp - 4], 1
push ecx
push esi
push esi
mov ecx, eax
call fcn.004020fc
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
cmp byte [ebp - 0x40], 0
mov edi, eax
je 0x43def7
push dword [ebp - 0x3c]
call fcn.00401990
pop ecx
cmp edi, esi
jne 0x43df19
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [ebp - 0x20], 0
je 0x43de40
push dword [ebp - 0x1c]
call fcn.00401990
pop ecx
jmp 0x43de40
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp byte [ebp - 0x20], 0
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 4], eax
je 0x43df3a
push dword [ebp - 0x1c]
call fcn.00401990
pop ecx
mov al, 1
call fcn.004534cb
ret 0x10

Function at 0x43ecd1
Capabilities:
Delete file

Disassembly:
push 0x14
mov eax, 0x471bdd
call fcn.004533f3
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.Ghost::Utilities::TempFile.0
xor ebx, ebx
cmp byte [esi + 0x18], bl
mov dword [ebp - 4], ebx
je 0x43ed26
cmp byte [esi + 4], bl
je 0x43ed26
lea eax, [esi + 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.004020cd
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.004020fc
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp - 0x20], bl
je 0x43ed23
push dword [ebp - 0x1c]
call fcn.00401990
pop ecx
mov byte [esi + 0x18], bl
cmp byte [esi + 8], bl
je 0x43ed34
push dword [esi + 0xc]
call fcn.00401990
pop ecx
call fcn.004534cb
ret
Function at 0x445ddf
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, ecx
push str.DBGHELP.DLL
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
mov dword [esi], eax
je 0x445f11
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.SymCleanup
push eax
call edi
test eax, eax
mov dword [esi + 0xc], eax
je 0x445f10
push str.StackWalk64
push dword [esi]
call edi
test eax, eax
mov dword [esi + 8], eax
je 0x445f10
push str.SymFunctionTableAccess64
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x18], eax
je 0x445f10
push str.SymGetModuleBase64
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x1c], eax
je 0x445f10
push str.SymGetLineFromAddr64
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x20], eax
je 0x445f10
push str.SymLoadModule64
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x2c], eax
je 0x445f10
push ebx
push str.SymSetOptions
push dword [esi]
call edi
mov ebx, eax
test ebx, ebx
je 0x445f0f
push ebp
push str.SymInitialize
push dword [esi]
call edi
mov ebp, eax
test ebp, ebp
je 0x445f0e
push str.SymFromAddr
push dword [esi]
call edi
test eax, eax
mov dword [esi + 0x14], eax
jne 0x445eb9
push str.SymGetSymFromAddr64
push dword [esi]
call edi
mov dword [esi + 0x24], eax
push str.SymSetContext
push dword [esi]
call edi
push str.SymEnumSymbols
push dword [esi]
mov dword [esi + 0x30], eax
call edi
push str.SymGetTypeInfo
push dword [esi]
mov dword [esi + 0x10], eax
call edi
push str.SymEnumerateModules64
push dword [esi]
mov dword [esi + 0x28], eax
call edi
push str.SymUnloadModule64
push dword [esi]
mov dword [esi + 0x34], eax
call edi
push 0x16
mov dword [esi + 0x38], eax
call ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call ebp
test eax, eax
je 0x445f0e
mov byte [esi + 4], 1
pop ebp
pop ebx
pop edi
mov eax, esi
pop esi
ret
Function at 0x446097
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
mov edi, dword [ebp + 8]
push 0x1c
lea eax, [ebp - 0x24]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4460b9
xor al, al
jmp 0x446153
mov eax, dword [ebp - 0x20]
cdq
push ebx
push esi
mov ebx, edx
mov esi, eax
or eax, ebx
je 0x44614f
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x44614f
mov eax, dword [ebp + 0x20]
mov ecx, dword [ebp - 0x18]
mov dword [eax], esi
mov dword [eax + 4], ebx
mov eax, dword [ebp + 0x24]
mov dword [eax], ecx
mov eax, dword [esi + 0x3c]
add eax, esi
movzx ecx, word [eax + 0x14]
lea edx, [ecx + eax + 0x18]
mov ecx, dword [ebp + 0xc]
sub edi, esi
sbb ecx, ebx
movzx ebx, word [eax + 6]
and dword [ebp + 0xc], 0
test bx, bx
jbe 0x44614f
add edx, 0x10
mov eax, dword [edx - 4]
mov esi, dword [edx - 8]
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
mov eax, dword [edx]
cmp eax, esi
jbe 0x446125
mov esi, eax
cmp ecx, dword [ebp - 4]
jb 0x446143
ja 0x446131
cmp edi, dword [ebp - 8]
jb 0x446143
xor eax, eax
add esi, dword [ebp - 8]
adc eax, dword [ebp - 4]
cmp ecx, eax
jb 0x446156
ja 0x446143
cmp edi, esi
jb 0x446156
inc dword [ebp + 0xc]
add edx, 0x28
cmp word [ebp + 0xc], bx
jb 0x446110
xor al, al
pop esi
pop ebx
pop edi
leave
ret
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x18]
inc eax
sub edi, dword [ebp - 8]
mov word [edx], ax
mov eax, dword [ebp + 0x1c]
sbb ecx, dword [ebp - 4]
mov dword [eax], edi
mov dword [eax + 4], ecx
mov al, 1
jmp 0x446151

Function at 0x447181
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0xff
lea eax, [ebp - 0x104]
push eax
mov edi, ecx
call dword [sym.imp.WS2_32.dll_gethostname]
cmp eax, 0xffffffff
jne 0x4471c5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.gethostname_failed
mov edi, eax
call fcn.00446fee
pop ecx
xor al, al
jmp 0x447222
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4471e3
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push str.gethostbyname_failed
jmp 0x4471b9
cmp word [eax + 0xa], 4
je 0x4471f6
push 0x47ba38
call fcn.0044707b
jmp 0x4471c0
push esi
xor edx, edx
lea esi, [edi + 0x10c]
mov ecx, dword [eax + 0xc]
lea ecx, [ecx + edx*4]
cmp dword [ecx], 0
je 0x447219
mov ecx, dword [ecx]
mov ecx, dword [ecx]
mov dword [esi], ecx
inc edx
add esi, 4
cmp edx, 0x10
jb 0x4471ff
mov dword [edi + 0x14c], edx
mov al, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.004533e4
leave
ret
Function at 0x447767
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x493bd0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x14]
push esi
push edi
mov esi, 0x103
push esi
lea eax, [ebp - 0x20b]
push 0
push eax
mov edi, ecx
mov byte [ebp - 0x20c], 0
call fcn.00452b30
push esi
lea eax, [ebp - 0x107]
push 0
push eax
mov byte [ebp - 0x108], 0
call fcn.00452b30
add esp, 0x18
cmp dword [ebp + 8], 0
je 0x4477ee
cmp dword [edi + 0x950], 2
jne 0x4477ee
cmp byte [ebp + 0xc], 0
je 0x4477ee
lea esi, [edi + 0x748]
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp + 8]
call fcn.00450610
add esp, 0x14
jmp 0x44781c
lea eax, [edi + 0x84c]
push eax
lea esi, [edi + 0x748]
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00450693
add esp, 0x20
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.0045aa40
test eax, eax
pop ecx
pop ecx
jne 0x447838
lea eax, [ebp - 0x108]
jmp 0x447839
inc eax
push ebx
mov dword [ebp - 0x210], eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x447875
cmp byte [ebp + 0xc], 0
je 0x447875
cmp dword [edi + 0x950], 1
jne 0x447875
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push ebx
push dword [ebp + 8]
call fcn.00450610
add esp, 0x14
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4478c3
cmp byte [ebp + 0xc], 0
je 0x4478c3
cmp dword [edi + 0x950], 1
jne 0x4478c3
push dword [ebp + 8]
mov eax, dword [ebp - 0x210]
add eax, 5
push str._03d
push eax
call fcn.00453ae6
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x108]
push eax
push str._s._s
push ebx
call fcn.00453ae6
add esp, 0x1c
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004533e4
leave
ret 0x10
Function at 0x447e46
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x447e80
mov eax, dword [ebp + 8]
imul eax, eax, 0x28
lea esi, [eax + ecx + 0x198]
mov eax, dword [esi]
push 0
push edi
push dword [ebp + 0xc]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
je 0x447e88
test eax, eax
je 0x447ea7
add dword [ebp + 0xc], eax
sub edi, eax
test edi, edi
jne 0x447e5f
mov al, 1
pop edi
pop esi
pop ebp
ret 0xc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.gh_recv_failed
call fcn.004470a9
pop ecx
pop ecx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor al, al
jmp 0x447e82
push dword [ebp + 8]
push str.T_d:_bytes__0_n
push 0x1e
call fcn.00451d25
add esp, 0xc
jmp 0x447ea3
Function at 0x447ece
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [ebp + 8]
push ebx
push edi
mov edi, ecx
lea ecx, [eax + 0xb]
imul ecx, ecx, 0x28
lea ebx, [ecx + edi]
mov ecx, dword [ebx]
test ecx, ecx
mov dword [ebp - 8], edi
mov dword [ebp - 4], ebx
jne 0x447f04
push eax
push str.T_d:_Image_file_not_open._n
push 0x1e
call fcn.00451d25
add esp, 0xc
xor al, al
jmp 0x447f4f
imul eax, eax, 0x28
push esi
lea esi, [eax + edi]
push dword [esi + 0x1b4]
push dword [esi + 0x1b0]
call fcn.00403372
mov eax, dword [ebx]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0x14], 2
je 0x447f40
mov eax, dword [edi + 0xa5c]
push dword [eax + 0x68]
push dword [ebp + 8]
push str.T_d:_Couldnt_seek:__ul_n.
jmp 0x448058
xor edi, edi
inc edi
call fcn.00419ec4
test al, al
je 0x447f58
mov al, 1
pop esi
pop edi
pop ebx
leave
ret 8
mov ebx, dword [ebp - 4]
call fcn.00419eca
test al, al
jne 0x447f4c
cmp dword [ebp + 0xc], 0
jbe 0x447f4c
test edi, edi
jle 0x447f4c
mov eax, 0x2000
cmp dword [ebp + 0xc], eax
ja 0x447f78
mov eax, dword [ebp + 0xc]
mov edi, dword [ebx]
mov ebx, dword [ebp - 8]
push eax
add ebx, 0x9a23
push ebx
mov ecx, edi
call fcn.0040333e
mov eax, dword [edi]
mov eax, dword [eax + 4]
test byte [eax + edi + 0x14], 2
jne 0x44804d
mov edi, dword [edi + 4]
push 0x18
call dword [sym.imp.WS2_32.dll_htons]
test edi, edi
mov word [ebp - 0x18], ax
jne 0x447fe9
mov eax, dword [esi + 0x198]
xor ebx, ebx
push ebx
push 0xa
lea ecx, [ebp - 0x18]
push ecx
push eax
mov dword [ebp - 0x16], ebx
mov dword [ebp - 0x12], ebx
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xa
je 0x44803b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.gh_send_failed
call fcn.004470a9
pop ecx
pop ecx
push ebx
jmp 0x448079
push edi
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [ebp - 0x16], eax
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 0x12], eax
lea eax, [ebp - 0xc]
push eax
push 2
lea eax, [ebp - 0x28]
push eax
push dword [esi + 0x198]
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x24], ecx
mov dword [ebp - 0x28], 0xa
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], edi
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
je 0x448064
mov eax, edi
cdq
add dword [esi + 0x1b0], eax
adc dword [esi + 0x1b4], edx
sub dword [ebp + 0xc], edi
call fcn.00419ec4
test al, al
je 0x447f55
jmp 0x447f4c
push dword [edi + 0x68]
push dword [ebp + 8]
push str.T_d:_Couldnt_read:__ul_n.
push 0x1e
call fcn.00451d25
add esp, 0x10
jmp 0x44807f
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_failed
call fcn.004470a9
pop ecx
pop ecx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor al, al
jmp 0x447f4e
Function at 0x448086
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
lea eax, [ecx + 0xb]
imul eax, eax, 0x28
push edi
lea edi, [eax + ebx]
mov eax, dword [edi]
test eax, eax
jne 0x4480b7
push ecx
push str.T_d:_Image_file_not_open._n
push 0x1e
call fcn.00451d25
add esp, 0xc
xor al, al
jmp 0x448169
imul ecx, ecx, 0x28
push esi
lea esi, [ecx + ebx]
push dword [esi + 0x1b4]
lea ecx, [eax + 8]
push dword [esi + 0x1b0]
call fcn.0040318a
mov eax, dword [edi]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0x14], 2
je 0x44815d
mov eax, dword [ebx + 0xa5c]
push dword [eax + 0x68]
push dword [ebp + 8]
push str.T_d:_Couldnt_seek:__ul_n.
jmp 0x4481b1
call fcn.00419eca
test al, al
jne 0x448166
cmp dword [ebp + 0xc], 0
jbe 0x448166
mov eax, 0x2000
cmp dword [ebp + 0xc], eax
mov edx, eax
jae 0x448114
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x198]
push 0
push edx
lea ecx, [ebx + 0xba23]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x44816f
test eax, eax
je 0x44818c
mov ecx, dword [edi]
push eax
lea eax, [ebx + 0xba23]
push eax
add ecx, 8
call fcn.0040304e
mov eax, dword [edi]
mov ecx, dword [eax]
mov ecx, dword [ecx + 4]
test byte [ecx + eax + 0x14], 2
jne 0x4481a0
mov eax, dword [ebp - 4]
sub dword [ebp + 0xc], eax
call fcn.00419ec4
test al, al
je 0x4480f6
mov al, 1
pop esi
pop edi
pop ebx
leave
ret 8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.gh_recv_failed
call fcn.004470a9
pop ecx
pop ecx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
jmp 0x4481bb
push dword [ebp + 8]
push str.T_d:_bytes__0_n
push 0x1e
call fcn.00451d25
add esp, 0xc
jmp 0x4481bb
mov eax, dword [ebx + 0xa5c]
push dword [eax + 0x68]
push dword [ebp + 8]
push str.T_d:_Couldnt_write:__ul._n
push 0x1e
call fcn.00451d25
add esp, 0x10
xor al, al
jmp 0x448168
Function at 0x4481bf
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
sub esp, 0x24
dec eax
push ebx
mov ebx, ecx
je 0x4481ed
dec eax
je 0x4481ed
push dword [ebp + 0x14]
push dword [ebp + 8]
push str.T_d:_Bad_seek_mode:__d_n
push 0x1e
call fcn.00451d25
add esp, 0x10
xor al, al
jmp 0x4482fc
push esi
mov esi, dword [ebp + 8]
lea eax, [esi + 0xb]
imul eax, eax, 0x28
mov eax, dword [eax + ebx]
xor ecx, ecx
cmp eax, ecx
jne 0x448212
push esi
push str.T_d:_Image_file_not_open._n
push 0x1e
call fcn.00451d25
add esp, 0xc
jmp 0x44824b
mov dword [ebp + 8], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
lea ecx, [ebp + 8]
push ecx
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 0x14]
mov ecx, ebx
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
call fcn.00447cc3
test al, al
jne 0x448252
push dword [ebp + 8]
push esi
push str.T_d:_Couldnt_seek:__ul_n.
push 0x1e
call fcn.00451d25
add esp, 0x10
xor al, al
jmp 0x4482fb
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_htonl]
push 8
mov word [ebp - 0x14], ax
call edi
mov dword [ebp - 0x12], eax
call fcn.004574ab
push dword [eax]
call edi
mov edi, dword [ebp - 4]
push edi
push dword [ebp - 8]
mov dword [ebp - 0xe], eax
call fcn.00446f51
imul esi, esi, 0x28
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
add esi, ebx
xor ebx, ebx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 0x20], eax
push ebx
lea eax, [ebp + 0xc]
push ebx
mov dword [ebp - 0x18], eax
lea eax, [ebp + 0x14]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push dword [esi + 0x198]
mov dword [ebp + 0x10], edx
mov dword [ebp - 0x24], 0xa
mov dword [ebp - 0x1c], 8
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x4482e9
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.send_failed
call fcn.004470a9
pop ecx
pop ecx
push ebx
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor al, al
jmp 0x4482fa
mov eax, dword [ebp - 8]
mov dword [esi + 0x1b0], eax
mov dword [esi + 0x1b4], edi
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 0x10

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push 6
mov esi, ecx
call dword [sym.imp.WS2_32.dll_htons]
push 0x321
mov word [ebp - 0xc], ax
call dword [sym.imp.WS2_32.dll_htonl]
and dword [ebp - 6], 0
mov dword [ebp - 0xa], eax
mov eax, dword [ebp + 8]
imul eax, eax, 0x28
mov esi, dword [eax + esi + 0x198]
push 0
push 0xa
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.WS2_32.dll_send]
cmp eax, 0xa
pop esi
je 0x448369
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.gh_send_failed
call fcn.004470a9
pop ecx
pop ecx
push 0
call dword [sym.imp.WS2_32.dll_WSASetLastError]
xor al, al
jmp 0x44836b
mov al, 1
leave
ret 4