joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421300
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, ebx
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x421320
sub edx, ecx
sar edx, 1
cmp edx, 0x104
jbe 0x421348
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret
push edi
mov edi, ebx
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x421350
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
sub edi, ecx
push esi
push eax
sar edi, 1
call fcn.00444b40
push 0x5c
push ebx
call fcn.004fa303
add esp, 0x14
test eax, eax
je 0x4213f3
lea eax, [ebx + esi*2]
push 0x5c
push eax
call fcn.004fa303
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x421394
sub eax, edx
mov esi, edi
sar eax, 1
sub esi, eax
lea eax, [ebp - 0x20c]
inc esi
push esi
push ebx
push 0x104
push eax
call fcn.004e6f5a
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4213e1
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x42140e
lea eax, [ebx + esi*2]
push 0x5c
push eax
call fcn.004fa303
add esp, 8
test eax, eax
jne 0x421383
cmp esi, edi
jge 0x421421
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x421421
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x421421
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004d1626
mov esp, ebp
pop ebp
ret
Function at 0x422b60
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x514294
mov eax, dword fs:[0]
push eax
sub esp, 0x5c
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x48], edi
mov dword [edi + 4], 0
mov dword [ebp - 0x4c], edi
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 0
mov dword [edi + 0x48], 7
mov dword [edi + 0x44], 0
cmp dword [edi + 0x48], 8
jb 0x422bc0
mov eax, dword [edi + 0x34]
jmp 0x422bc3
lea eax, [edi + 0x34]
xor ecx, ecx
push 5
mov word [eax], cx
lea ecx, [edi + 0x34]
push str.ABDEF
call fcn.00403800
push edi
push 4
push edi
push 0x422f00
push 0
push 0
mov byte [ebp - 4], 1
call fcn.004e6a38
add esp, 0x18
mov dword [edi + 4], eax
test eax, eax
je 0x422d2f
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 2
cmp dword [edi + 0x44], 0
je 0x422c79
push 0
lea edx, [edi + 0x34]
lea ecx, [ebp - 0x44]
call fcn.00424180
add esp, 4
mov esi, eax
lea eax, [ebp - 0x2c]
cmp eax, esi
je 0x422c60
mov eax, dword [ebp - 0x18]
cmp eax, 0x10
jb 0x422c45
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.00409eb0
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x18], 0xf
mov dword [ebp - 0x1c], 0
mov byte [ebp - 0x2c], 0
call fcn.004090f0
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x422d08
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
jmp 0x422d03
mov edx, dword [edi]
lea ecx, [ebp - 0x64]
call fcn.00422850
mov esi, eax
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x44]
push 1
push 0x547290
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
call fcn.00409fd0
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 5
call fcn.00408fc0
lea ecx, [ebp - 0x2c]
cmp ecx, eax
je 0x422ccc
push 0xffffffffffffffff
push 0
push eax
call fcn.00409b90
mov eax, dword [ebp - 0x30]
cmp eax, 0x10
jb 0x422ce1
inc eax
lea ecx, [ebp - 0x44]
push eax
push dword [ebp - 0x44]
call fcn.00409eb0
mov eax, dword [ebp - 0x50]
mov dword [ebp - 0x30], 0xf
mov dword [ebp - 0x34], 0
mov byte [ebp - 0x44], 0
cmp eax, 0x10
jb 0x422d08
inc eax
lea ecx, [ebp - 0x64]
push eax
push dword [ebp - 0x64]
call fcn.00409eb0
cmp dword [ebp - 0x18], 0x10
lea edx, [ebp - 0x2c]
mov ecx, dword [edi]
cmovae edx, dword [ebp - 0x2c]
call fcn.00422870
mov ecx, dword [ebp - 0x18]
cmp ecx, 0x10
jb 0x422d2f
inc ecx
push ecx
push dword [ebp - 0x2c]
lea ecx, [ebp - 0x2c]
call fcn.00409eb0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret 4
Function at 0x423260
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push esi
push edi
push eax
call fcn.00423220
xor ecx, ecx
add esp, 4
mov edx, 2
lea edi, [eax + 2]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004e26cc
mov esi, eax
add esp, 4
test esi, esi
je 0x4232bc
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push edi
push esi
call fcn.0040a130
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.004df89f
add esp, 4
pop edi
pop esi
pop ecx
pop ebp
ret

Function at 0x423420
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0xc], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x423489
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret

Function at 0x4235b0
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 5
push eax
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x4235f8
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
cmp word [edx], 0
jne 0x423605
xor ecx, ecx
jmp 0x423620
mov ecx, edx
push esi
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x423610
sub ecx, esi
sar ecx, 1
pop esi
push ecx
push edx
mov ecx, edi
call fcn.00403800
push dword [ebp - 0xc]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.004d1626
mov esp, ebp
pop ebp
ret
Function at 0x423770
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov edi, ecx
test eax, eax
je 0x42379a
push eax
push 0x800
push edi
call fcn.004e3f86
add esp, 0xc
push 0x44
lea eax, [ebp - 0x50]
push 0
push eax
call fcn.00444b40
or dword [ebp - 0x24], 0x101
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x50], 0x44
push 0
push 1
push dword [edi + 0x121c]
call esi
mov eax, dword [edi + 0x1218]
push 0
push 1
push dword [edi + 0x120c]
mov dword [ebp - 0x14], eax
call esi
mov eax, dword [edi + 0x1208]
push 0
push 1
push dword [edi + 0x1228]
mov dword [ebp - 0x10], eax
call esi
mov eax, dword [edi + 0x122c]
mov dword [ebp - 0x18], eax
xor eax, eax
mov word [ebp - 0x20], ax
lea eax, [edi + 0x1238]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x423875
push dword [edi + 0x1218]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [edi + 0x1218], 0
push dword [edi + 0x1208]
call esi
mov dword [edi + 0x1208], 0
push dword [edi + 0x122c]
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 0x122c], 0
xor ecx, ebp
pop edi
pop esi
call fcn.004d1626
mov esp, ebp
pop ebp
ret 0x10
push ecx
lea ecx, [ebp - 0x5c]
call fcn.00423320
push 0x55a008
lea eax, [ebp - 0x5c]
push eax
call fcn.004429fb
int3
Function at 0x426b10
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov esi, ecx
mov dword [ebp - 8], 1
push 0
lea eax, [ebp - 0x10]
mov dword [esi + 4], 0
push eax
lea edi, [esi + 4]
mov dword [esi], 0
push esi
push edi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 0xc], 0xffffffff
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0xc
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x426b80
mov eax, dword [esi]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x426b78
push eax
call esi
mov eax, dword [edi]
test eax, eax
je 0x426b97
jmp 0x426b94
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004d1626
mov esp, ebp
pop ebp
ret 8
push eax
call esi
push ecx
lea ecx, [ebp - 0x1c]
call fcn.00423320
push 0x55a008
lea eax, [ebp - 0x1c]
push eax
call fcn.004429fb
int3
Function at 0x427640
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x55d198]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
lea eax, [ebp - 8]
push eax
push 0x20019
push 0
push edx
push ecx
mov dword [ebp - 0x10], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x42769b
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4276ad
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004d1626
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0xc]
xor ecx, ecx
inc eax
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004d1b3b
mov ecx, dword [ebp - 0xc]
mov esi, eax
lea ecx, [ecx*2 + 2]
push ecx
push 0
push esi
call fcn.00444b40
add esp, 0x10
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp - 0x10]
push 0
push ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 8]
test eax, eax
jne 0x427695
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x14]
push esi
call fcn.004046e0
push esi
call fcn.004d1b44
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov eax, 1
pop esi
pop ebx
call fcn.004d1626
mov esp, ebp
pop ebp
ret

Function at 0x428c70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0x547c18
push 0x93
call fcn.004863f6
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x428cac
push esi
call fcn.004863f6
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x428cb3
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
push edi
push esi
call fcn.004863f6
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x428ccd
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [0x562d44]
test ebx, ebx
je 0x428cf7
push 1
push ebx
call fcn.004d1b2d
mov eax, dword [0x562d44]
add esp, 8
test ebx, ebx
mov ecx, 0x8123
cmovne eax, ecx
mov dword [0x562d44], eax
push edi
call fcn.004d1b3b
add esp, 4
mov dword [0x562d44], eax
pop ebx
test eax, eax
je 0x428d23
push edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
push eax
push dword [0x562d44]
call fcn.00442e40
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
push 0
push edi
push dword [0x562d44]
call fcn.0048af18
add esp, 0xc
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x42cbb0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x511f56
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x55d198]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.004d1637
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004305cd
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x445ab0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x55d198]
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 0x445b05
mov eax, dword [esp]
cmp al, 2
jne 0x445aff
shr eax, 8
cmp al, 2
jne 0x445aff
call fcn.0044adf0
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.004d1626
add esp, 0x194
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [esp + 0x190]
mov eax, 2
xor ecx, esp
call fcn.004d1626
add esp, 0x194
ret

Function at 0x44b780
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x44b79c
cmp dword [esi + 0x48], 0
je 0x44b79c
push 2
push 3
push esi
call fcn.004607d0
add esp, 0xc
push dword [esp + 0xc]
call fcn.00459d00
add esp, 4
test esi, esi
je 0x44b7bd
cmp dword [esi + 0x48], 0
je 0x44b7bd
push 3
push esi
call fcn.00460810
add esp, 8
pop esi
ret
Function at 0x454a00
Capabilities:
Write file on windows

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push dword [esp + 0x14]
lea ebx, [edi + 0x5ac]
push 0x4000
push ebx
call fcn.00456be0
mov eax, dword [edi + 0x160]
add esp, 0x10
test eax, eax
je 0x454a51
cmp byte [edi + 0x85dc], 0
jne 0x454a51
push ebx
push 0x522e98
push 0x100
push eax
call fcn.00456af0
add esp, 0x10
mov byte [edi + 0x85dc], 1
cmp byte [edi + 0x318], 0
je 0x454ac6
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x454a60
sub esi, ecx
cmp esi, 0x3fff
jae 0x454a81
mov byte [edi + esi + 0x5ac], 0xa
inc esi
mov byte [edi + esi + 0x5ac], al
mov eax, dword [edi + 0x1d0]
test eax, eax
je 0x454a9f
push dword [edi + 0x15c]
push esi
push ebx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
pop ebx
ret
push dword [edi + 0x158]
push 1
push 2
push 0x522e80
call fcn.004e145a
push dword [edi + 0x158]
push 1
push esi
push ebx
call fcn.004e145a
add esp, 0x20
pop esi
pop edi
pop ebx
ret

Function at 0x454ad0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x808
mov eax, dword [0x55d198]
xor eax, esp
mov dword [esp + 0x804], eax
push edi
mov edi, dword [esp + 0x810]
test edi, edi
je 0x454b99
cmp byte [edi + 0x318], 0
je 0x454b99
push esi
lea eax, [esp + 0x81c]
push eax
push dword [esp + 0x81c]
lea eax, [esp + 0x10]
push 0x801
push eax
call fcn.00456be0
lea esi, [esp + 0x18]
add esp, 0x10
lea ecx, [esi + 1]
nop word [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x454b30
mov eax, dword [edi + 0x1d0]
sub esi, ecx
test eax, eax
je 0x454b6e
push dword [edi + 0x15c]
lea ecx, [esp + 0xc]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [esp + 0x804]
xor ecx, esp
call fcn.004d1626
add esp, 0x808
ret
push dword [edi + 0x158]
push 1
push 2
push 0x522e80
call fcn.004e145a
push dword [edi + 0x158]
lea eax, [esp + 0x1c]
push 1
push esi
push eax
call fcn.004e145a
add esp, 0x20
pop esi
mov ecx, dword [esp + 0x808]
pop edi
xor ecx, esp
call fcn.004d1626
add esp, 0x808
ret

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

Disassembly:
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x168]
call fcn.00455170
add esp, 8
push 0
push dword [esp + 0x24]
push dword [esp + 0x24]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebp, dword [esp + 0x24]
mov ebx, eax
mov dword [ebp], 0
cmp ebx, 0xffffffff
jne 0x454e46
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x454e1e
pop edi
pop esi
mov dword [ebp], 0x51
xor eax, eax
pop ebp
pop ebx
ret
push esi
push edi
call fcn.004462a0
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.00454a00
mov eax, dword [edi]
add esp, 0x14
mov dword [eax + 0x85e0], esi
mov eax, ebx
mov dword [ebp], 0x37
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x455170
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 8]
mov eax, edx
push ebx
push esi
shl eax, 4
lea esi, [ecx + 0x18c]
mov ebx, dword [ecx + edx*4 + 0x168]
add esi, eax
mov eax, dword [ecx + 0x2b8]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x3c], 3
je 0x45521e
cmp dword [ecx + edx*4 + 0x17c], 0x454d20
jne 0x45521e
cmp dword [esi], 0
je 0x4551b7
test edi, edi
je 0x45521e
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebx
call fcn.00454360
add esp, 0x10
cmp eax, 0xffffffff
je 0x45521e
test al, 1
je 0x45521e
cmp dword [esi], 0
jne 0x455207
push 0x8000
mov dword [esi + 4], 0x8000
call dword [0x55d090]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x455207
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x45521e
add dword [esi + 8], eax
pop edi
pop esi
pop ebx
ret

Function at 0x455230
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi + 0x1d0]
test eax, eax
je 0x455259
push dword [esi + 0x15c]
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [esp + 0x18]
push esi
call eax
add esp, 0x14
pop esi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x455292
push dword [esi + 0x158]
lea eax, [eax + eax*2]
push 1
add eax, 0x522e80
push 2
push eax
call fcn.004e145a
push dword [esi + 0x158]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.004e145a
add esp, 0x20
xor eax, eax
pop esi
ret

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

Disassembly:
sub esp, 8
push esi
push edi
mov edi, dword [esp + 0x14]
mov esi, dword [edi + 0x5a0]
test esi, esi
je 0x4554a6
mov eax, dword [edi + 0x44]
test eax, eax
jne 0x45546f
cmp dword [edi + 0x40], eax
je 0x4554a6
mov dword [esp + 8], esi
mov byte [esp + 0xc], 0
test eax, eax
jne 0x45547f
mov eax, dword [edi + 0x40]
push 0x4562e0
lea ecx, [esp + 0xc]
add eax, 0x68
push ecx
push eax
call fcn.0045e770
add esp, 0xc
cmp byte [esp + 0xc], 0
jne 0x4554af
mov dword [edi + 0x5a0], 0
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4554b9
mov dword [eax], esi
cmp byte [esi + 0x1ac], 0
mov edi, dword [esi + 0x168]
je 0x4554de
push esi
call fcn.0042c670
add esp, 4
test eax, eax
jne 0x4554f7
pop edi
or eax, 0xffffffff
pop esi
add esp, 8
ret
cmp edi, 0xffffffff
je 0x4554f7
push 2
push 1
lea eax, [esp + 0x1c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4554a6
mov eax, edi
pop edi
pop esi
add esp, 8
ret
Function at 0x455b60
Capabilities:
Set socket configuration

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
lea eax, [esp + 0xc]
push 4
push eax
push 1
mov esi, dword [edi]
push 6
push dword [esp + 0x20]
mov dword [esp + 0x20], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x455ba8
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.004462a0
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00454ad0
add esp, 0x14
pop edi
pop esi
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00454ad0
add esp, 8
pop edi
pop esi
ret
Function at 0x455c90
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x108
mov eax, dword [0x55d198]
xor eax, esp
mov dword [esp + 0x104], eax
push ebx
push edi
mov edi, dword [esp + 0x114]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x455e83
cmp byte [edi + 0x28a], 0
push esi
jne 0x455e79
cmp byte [edi + 0x2a4], 0
jne 0x455e79
mov esi, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x94]
mov dword [esp + 0x10], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x455d35
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004462a0
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00454a00
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d1626
add esp, 0x108
ret
push 0x80
lea eax, [esp + 0x14]
mov dword [esp + 0x10], 0x80
push 0
push eax
call fcn.00444b40
add esp, 0xc
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x455d9d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.004462a0
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00454a00
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d1626
add esp, 0x108
ret
lea eax, [edi + 0xfc]
push eax
lea esi, [edi + 0xcc]
lea eax, [esp + 0x94]
push esi
push eax
call fcn.00456300
add esp, 0xc
test al, al
jne 0x455df6
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004462a0
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00454a00
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d1626
add esp, 0x108
ret
movups xmm0, xmmword [esi]
mov eax, dword [esi + 0x28]
movups xmmword [edi + 0x58], xmm0
movups xmm0, xmmword [esi + 0x10]
movups xmmword [edi + 0x68], xmm0
movq xmm0, qword [esi + 0x20]
movq qword [edi + 0x78], xmm0
mov dword [edi + 0x80], eax
mov ax, word [esi + 0x2c]
mov word [edi + 0x84], ax
lea eax, [edi + 0x130]
push eax
lea eax, [edi + 0x100]
push eax
lea eax, [esp + 0x18]
push eax
call fcn.00456300
add esp, 0xc
test al, al
jne 0x455e79
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.004462a0
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00454a00
add esp, 0x18
pop esi
pop edi
pop ebx
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.004d1626
add esp, 0x108
ret
push edi
call fcn.00455930
add esp, 4
pop esi
mov ecx, dword [esp + 0x10c]
pop edi
pop ebx
xor ecx, esp
call fcn.004d1626
add esp, 0x108
ret