joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401b60
Capabilities:
Get thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov dword [esp], 0x407048
call sym._EnterCriticalSection_4
mov ebx, dword [0x407040]
sub esp, 4
test ebx, ebx
je 0x401bab
nop
mov eax, dword [ebx]
mov dword [esp], eax
call sym._TlsGetValue_4
sub esp, 4
mov esi, eax
call sym._GetLastError_0
test eax, eax
jne 0x401ba4
test esi, esi
je 0x401ba4
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x401b80
mov dword [esp], 0x407048
call sym._LeaveCriticalSection_4
sub esp, 4
add esp, 0x14
pop ebx
pop esi
ret

Function at 0x401d90
Capabilities:
Write file on windows

Disassembly:
push esi
push ebx
sub esp, 0x14
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x17
mov dword [esp + 4], 1
lea esi, [esp + 0x24]
mov dword [esp], str.Mingw_runtime_failure:_n
lea ebx, [eax + 0x40]
mov dword [esp + 0xc], ebx
call sym._fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], esi
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._vfprintf
call sym._abort
lea esi, [esi]

Function at 0x401de0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
push edi
mov edi, ecx
push esi
push ebx
mov ebx, eax
mov esi, edx
sub esp, 0x4c
lea eax, [esp + 0x24]
mov dword [esp + 8], 0x1c
mov dword [esp], ebx
mov dword [esp + 4], eax
call sym._VirtualQuery_12
sub esp, 0xc
test eax, eax
je 0x401eb8
mov eax, dword [esp + 0x38]
cmp eax, 0x40
je 0x401e1e
cmp eax, 4
jne 0x401e40
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
call sym._memcpy
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [esp + 0x30]
lea ebp, [esp + 0x20]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], ebp
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
mov edx, dword [esp + 0x38]
mov dword [esp + 8], edi
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0x1c], edx
call sym._memcpy
mov edx, dword [esp + 0x1c]
cmp edx, 0x40
je 0x401e2e
cmp edx, 4
je 0x401e2e
mov eax, dword [esp + 0x20]
mov dword [esp + 0xc], ebp
mov dword [esp + 8], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 4], eax
mov eax, dword [esp + 0x24]
mov dword [esp], eax
call sym._VirtualProtect_16
sub esp, 0x10
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1c
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
call fcn.00401d90
Function at 0x409744
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409796
test eax, edx
je 0x409799
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409759
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40977f
add ecx, 4
js 0x40976f
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x40977c
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4097a5
test edx, edx
jne 0x40974c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x420518
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x42051e
ret
Function at 0x45da48
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x45d003
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004062cc
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x45d01c
call fcn.00405e60
mov eax, ebx
call fcn.0041d4dc
mov edi, eax
dec edi
test edi, edi
jl 0x45db00
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041d4b0
mov edx, dword [0x45ad5c]
call fcn.00404df4
test al, al
je 0x45dafc
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0041d4b0
lea edx, [ebp - 0x14]
call fcn.00449abc
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004062cc
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.00405edc
inc esi
dec edi
jne 0x45daae
movzx eax, byte [0x45d020]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x45d02c
mov eax, dword [ebp - 8]
call fcn.0040e748
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.00405be0
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.00449abc
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x45d01c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x360]
call fcn.00449abc
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x45d01c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x45d01c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x45d038
call fcn.0040aa88
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x45d00a
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00405b6c
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00405b6c
lea eax, [ebp - 0x14]
call fcn.00405b48
lea eax, [ebp - 0x10]
call fcn.00405b48
lea eax, [ebp - 8]
mov edx, 2
call fcn.00405b6c
ret
Function at 0x462404
Capabilities:
Parse pe header

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov edi, eax
xor ebx, ebx
mov eax, edi
mov edx, dword [eax]
call dword [edx]
mov esi, eax
cmp esi, 0x58
jbe 0x4624a7
xor ecx, ecx
xor edx, edx
mov eax, edi
mov ebp, dword [eax]
call dword [ebp + 0x14]
mov edx, esp
mov ecx, 2
mov eax, edi
mov ebp, dword [eax]
call dword [ebp + 0xc]
mov cx, 1
mov edx, 2
mov eax, edi
mov ebp, dword [eax]
call dword [ebp + 0x14]
cmp word [esp], 0x5a4d
jne 0x4624a7
mov cx, 1
mov edx, 0x38
mov eax, edi
mov ebp, dword [eax]
call dword [ebp + 0x14]
lea edx, [esp + 4]
mov ecx, 4
mov eax, edi
mov ebp, dword [eax]
call dword [ebp + 0xc]
mov eax, dword [esp + 4]
add eax, 4
add eax, 0x14
cmp esi, eax
jbe 0x4624a7
xor ecx, ecx
mov edx, dword [esp + 4]
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0x14]
lea edx, [esp + 4]
mov ecx, 4
mov eax, edi
mov ebx, dword [eax]
call dword [ebx + 0xc]
cmp dword [esp + 4], 0x4550
sete bl
mov eax, ebx
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x6bac1527
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp dword [ebp + 0xc], 1
jne 0x6bac1573
mov eax, dword [ebp + 8]
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [0x6bb073a8], eax
mov dword [esp + 8], 0x6bac1510
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
mov eax, 1
leave
ret 0xc

Function at 0x6bac15c1
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov esi, dword [ebp + 0xc]
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0x3000
mov dword [esp], 0
mov dword [esp + 4], esi
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
xor ecx, ecx
sub esp, 0x10
mov ebx, eax
jmp 0x6bac1611
mov eax, ecx
mov edi, 4
cdq
idiv edi
mov edi, dword [ebp + 0x10]
mov al, byte [edi + edx]
mov edi, dword [ebp + 8]
xor al, byte [edi + ecx]
mov byte [ebx + ecx], al
inc ecx
cmp ecx, esi
jl 0x6bac15f7
lea eax, [ebp - 0x1c]
mov dword [esp + 4], esi
mov dword [esp], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x20
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
mov dword [esp + 0xc], ebx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 8], 0x6bac15b8
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
sub esp, 0x18
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6bac1950
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], 0x1b
lea ebx, [esp + 0x24]
mov dword [esp + 4], 1
mov dword [esp], 0x6bb06064
add eax, 0x40
mov dword [esp + 0xc], eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp + 4], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
jmp fcn.6bac19b0
Function at 0x6bac20a0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x6bb07384
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x6bb0739c]
sub esp, 4
test ebx, ebx
je 0x6bac20f5
mov ebp, dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x6bac20ee
test esi, esi
je 0x6bac20ee
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x6bac20d0
mov dword [esp], 0x6bb07384
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x6bac22e0
Capabilities:
Parse pe header

Disassembly:
mov edx, dword [esp + 4]
xor eax, eax
cmp word [edx], 0x5a4d
je 0x6bac22f0
repz ret
add edx, dword [edx + 0x3c]
cmp dword [edx], 0x4550
jne 0x6bac22ed
xor eax, eax
cmp word [edx + 0x18], 0x10b
sete al
ret
Function at 0x401980
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x38
mov eax, dword [0x4dc100]
xor eax, esp
mov dword [esp + 0x34], eax
mov eax, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0x18], esi
push edi
mov edi, ecx
test esi, esi
je 0x401b19
cmp dword [edi + 4], 0xffffffff
je 0x4019b9
call fcn.004018f0
mov al, byte [esi]
sub al, 0x30
push esi
cmp al, 9
ja 0x4019e1
xorps xmm0, xmm0
mov eax, 2
movlpd qword [esp + 0x2c], xmm0
mov word [esp + 0x24], ax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [esp + 0x24], eax
jmp 0x401a19
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
test esi, esi
je 0x401b19
xorps xmm0, xmm0
lea eax, [esp + 0x24]
movaps xmmword [esp + 0x20], xmm0
movsx ecx, word [esi + 0xa]
push ecx
mov ecx, dword [esi + 0xc]
push dword [ecx]
push eax
call fcn.00476850
mov ax, word [esi + 8]
add esp, 0xc
mov word [esp + 0x20], ax
push 0x3afc
call dword [sym.imp.WS2_32.dll_htons]
push 0
push 1
push 2
mov word [esp + 0x2e], ax
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
mov dword [esp + 0x18], esi
cmp esi, 0xffffffff
jne 0x401a59
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004748e0
mov esp, ebp
pop ebp
ret 0xc
push 4
lea eax, [esp + 0x3c]
mov dword [edi + 4], esi
push eax
push 0x1002
push 0xffff
push esi
mov dword [esp + 0x4c], 0x40000
call dword [sym.imp.WS2_32.dll_setsockopt]
push 0x10
lea eax, [esp + 0x24]
push eax
push esi
call dword [sym.imp.WS2_32.dll_connect]
test eax, eax
je 0x401abc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push dword [esp + 0x18]
mov esi, eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [edi + 4], 0xffffffff
mov eax, esi
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004748e0
mov esp, ebp
pop ebp
ret 0xc
push 0x31
push 0x401
push dword [esp + 0x1c]
push esi
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov edx, dword [esp + 0x1c]
mov ecx, edx
mov eax, dword [esp + 0x14]
mov dword [edi + 8], eax
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x401ae0
sub ecx, esi
push ecx
push edx
lea ecx, [edi + 0xc]
call fcn.00402690
mov dword [edi + 0x24], 0x3afc
xor eax, eax
mov dword [edi + 0x40028], 1
pop edi
pop esi
mov ecx, dword [esp + 0x34]
xor ecx, esp
call fcn.004748e0
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, esp
call fcn.004748e0
mov esp, ebp
pop ebp
ret 0xc
Function at 0x401b30
Capabilities:
Receive data
Receive data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4dc100]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 4]
cmp eax, 0xffffffff
je 0x401d21
cmp dword [esi + 0x40028], 0
je 0x401d21
lea ecx, [ebp - 8]
xor ebx, ebx
push ecx
push 0x4004667f
push eax
call dword [sym.imp.WS2_32.dll_ioctlsocket]
cmp dword [ebp - 8], ebx
jbe 0x401d16
mov ecx, dword [sym.imp.WS2_32.dll_recv]
lea eax, [esi + 0x28]
mov dword [ebp - 0x18], ecx
push 0
push 0x40000
push eax
push dword [esi + 4]
call ecx
mov edi, eax
cmp edi, 0xffffffff
je 0x401cfa
test edi, edi
je 0x401ce9
add ebx, edi
mov dword [ebp - 0x14], ebx
test edi, edi
jle 0x401ce9
lea eax, [esi + 0x40030]
mov ebx, eax
mov dword [ebp - 0x10], ebx
nop dword [eax]
mov edx, dword [esi + 0x4003c]
mov ecx, edx
sub ecx, dword [esi + 0x40038]
jns 0x401bd7
add ecx, dword [eax]
mov ebx, eax
mov dword [ebp - 0x10], ebx
mov ebx, dword [ebx]
mov eax, ebx
sub eax, ecx
cmp edi, eax
jl 0x401c53
mov ecx, dword [ebp - 0x10]
lea eax, [ebx + ebx]
push eax
mov dword [ecx], eax
call fcn.00474936
add esp, 4
mov dword [ebp - 0xc], eax
push ebx
push dword [esi + 0x40034]
push eax
call fcn.00476850
mov eax, dword [esi + 0x4003c]
add esp, 0xc
cmp eax, dword [esi + 0x40038]
jge 0x401c2e
push eax
push dword [esi + 0x40034]
mov eax, dword [ebp - 0xc]
add eax, ebx
push eax
call fcn.00476850
add esp, 0xc
add dword [esi + 0x4003c], ebx
push dword [esi + 0x40034]
call fcn.004748ee
mov eax, dword [ebp - 0xc]
add esp, 4
mov ebx, dword [ebp - 0x10]
mov dword [esi + 0x40034], eax
lea eax, [esi + 0x40030]
jmp 0x401bc0
mov ebx, dword [esi + 0x40030]
lea eax, [edx + edi]
cmp eax, ebx
jl 0x401cca
sub ebx, edx
sub edi, ebx
test ebx, ebx
jne 0x401c81
push 0x37
push 0x4cffa0
push 0x4d0008
push str.ERROR____s_n_s:__d_n_n
call fcn.00401440
add esp, 0x10
push ebx
lea eax, [esi + 0x28]
push eax
mov eax, dword [esi + 0x4003c]
add eax, dword [esi + 0x40034]
push eax
call fcn.00476850
add esp, 0xc
lea eax, [esi + 0x4003c]
mov dword [ebp - 0xc], eax
test edi, edi
je 0x401cc4
lea eax, [esi + 0x28]
push edi
add eax, ebx
push eax
push dword [esi + 0x40034]
call fcn.00476850
mov eax, dword [ebp - 0xc]
add esp, 0xc
mov dword [eax], edi
jmp 0x401ce6
xor edi, edi
mov dword [eax], edi
jmp 0x401ce6
push edi
lea eax, [esi + 0x28]
push eax
mov eax, dword [esi + 0x40034]
add eax, edx
push eax
call fcn.00476850
add esp, 0xc
add dword [esi + 0x4003c], edi
mov ebx, dword [ebp - 0x14]
lea eax, [esi + 0x28]
mov ecx, dword [ebp - 0x18]
cmp ebx, dword [ebp - 8]
jb 0x401b85
jmp 0x401d16
push 0xc6
push 0x4d0030
push str.socket_receive_error_
push str.ERROR____s_n_s:__d_n_n
call fcn.00401440
add esp, 0x10
mov ecx, esi
call fcn.00401d40
test eax, eax
jne 0x401d16
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004748e0
mov esp, ebp
pop ebp
ret
Function at 0x402340
Capabilities:
Encode data using xor
Hash data with crc32
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c5fd
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x4dc100]
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 ebx, ecx
cmp dword [ebx + 0x40058], 0
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 0x24], edi
mov dword [ebp - 0x20], esi
je 0x4024fc
cmp dword [ebx + 4], 0xffffffff
je 0x4024fc
cmp dword [ebx + 0x40028], 0
je 0x4024fc
xorps xmm0, xmm0
mov dword [ebp - 0x14], 0
xor eax, eax
movq qword [ebp - 0x1c], xmm0
mov dword [ebp - 0x1c], vtable.DataPack.0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], eax
cmp dword [0x4dfc2c], eax
je 0x402459
mov eax, dword [0x4dfc28]
push esi
inc eax
push edi
push 0x4e00e4
mov dword [0x4dfc28], eax
mov dword [0x4e00e0], eax
call fcn.00476850
lea edi, [esi + 4]
add esp, 0xc
or ecx, 0xffffffff
xor edx, edx
test edi, edi
je 0x40241b
nop dword [eax]
movzx eax, byte [edx + 0x4e00e0]
inc edx
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4d0120]
cmp edx, edi
jb 0x402400
push 0x4e00e0
lea eax, [esi + 8]
mov dword [esi + 0x4e00e4], ecx
push 0x4e00e0
mov esi, eax
push eax
mov dword [ebp - 0x20], esi
call fcn.0041f1f0
push esi
mov dword [ebp - 0x18], esi
call fcn.00474936
push esi
mov edi, eax
mov dword [ebp - 0x24], eax
push 0x4e00e0
push edi
mov dword [ebp - 0x28], edi
call fcn.00476850
add esp, 0x10
lea eax, [esi + 6]
cmp eax, 0xc8
jg 0x4024f1
mov esi, dword [sym.imp.WS2_32.dll_htons]
lea edi, [ebx + 0x28]
push 0xaa55
call esi
mov word [edi], ax
mov eax, dword [ebp - 0x20]
push eax
push dword [ebp - 0x24]
mov word [edi + 2], ax
add edi, 4
push edi
call fcn.00476850
add esp, 0xc
push 0x55aa
call esi
mov ecx, dword [ebp - 0x20]
mov word [ecx + edi], ax
lea esi, [ecx + 6]
xor eax, eax
test esi, esi
jle 0x4024eb
push 0
mov edi, eax
lea eax, [ebx + 0x28]
push esi
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_send]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x4024cf
test ecx, ecx
lea eax, [ecx + edi]
cmove eax, edi
cmp eax, esi
jl 0x4024a8
jmp 0x4024eb
push 0x151
push 0x4d0030
push str.socket_send_error_
push str.ERROR____s_n_s:__d_n_n
call fcn.00401440
add esp, 0x10
add dword [ebx + 0x40040], esi
push dword [ebp - 0x28]
call fcn.004748ee
add esp, 4
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.004748e0
mov esp, ebp
pop ebp
ret 8
Function at 0x405440
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [esp + 0xc], edi
test eax, eax
jg 0x405472
jl 0x405465
test ecx, ecx
jne 0x405472
xor eax, eax
xor edx, edx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
cmp dword [ebx + 0x38], 0
je 0x40554f
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x2c]
mov dword [esp + 0xc], ecx
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x1c]
mov eax, dword [eax]
mov dword [esp + 0x18], eax
test eax, eax
je 0x4054a2
mov eax, dword [esp + 0x14]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x4054a4
xor eax, eax
cdq
mov dword [esp + 0x1c], edx
mov esi, eax
test edx, edx
jl 0x4054f8
jg 0x4054b5
test esi, esi
je 0x4054f8
mov eax, dword [esp + 0x10]
cmp eax, edx
jg 0x4054c9
jl 0x4054c3
cmp ecx, esi
jae 0x4054c9
mov esi, ecx
mov dword [esp + 0x1c], eax
push esi
push dword [esp + 0x1c]
push edi
call fcn.00476850
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
sub ecx, esi
mov eax, dword [eax]
sbb edx, dword [esp + 0x1c]
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
mov eax, dword [esp + 0x14]
jmp 0x40551c
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x1c]
mov edx, dword [esp + 0x10]
cmp eax, 0xffffffff
je 0x405538
mov ecx, dword [esp + 0xc]
mov esi, 1
add ecx, 0xffffffff
mov byte [edi], al
lea eax, [ebx + 0x2c]
adc edx, 0xffffffff
add edi, esi
mov dword [esp + 0x10], edx
mov dword [esp + 0xc], ecx
test edx, edx
jg 0x405487
jl 0x405538
test ecx, ecx
jne 0x405487
mov eax, dword [ebp + 0xc]
sub eax, dword [esp + 0xc]
mov ecx, dword [ebp + 0x10]
sbb ecx, edx
mov edx, ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov eax, dword [ebx + 0x1c]
lea esi, [ebx + 0x2c]
mov edi, ecx
mov edx, dword [eax]
test edx, edx
je 0x40558d
mov eax, dword [esi]
mov eax, dword [eax]
test eax, eax
je 0x40558d
cmp eax, ecx
mov esi, ecx
cmovb esi, eax
push esi
push edx
push dword [esp + 0x14]
call fcn.00476850
mov eax, dword [ebx + 0x2c]
sub edi, esi
add dword [esp + 0x18], esi
add esp, 0xc
sub dword [eax], esi
mov eax, dword [ebx + 0x1c]
add dword [eax], esi
lea esi, [ebx + 0x2c]
cmp dword [ebx + 0x4c], 0
je 0x4055f7
mov ecx, dword [ebx + 0xc]
lea eax, [ebx + 0x3c]
cmp dword [ecx], eax
jne 0x4055b3
mov eax, dword [ebx + 0xc]
mov edx, dword [ebx + 0x54]
mov ecx, dword [ebx + 0x50]
sub edx, ecx
mov dword [eax], ecx
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi]
mov dword [eax], edx
mov esi, dword [esp + 0xc]
cmp edi, 0xfff
jbe 0x4055e2
nop
push dword [ebx + 0x4c]
push 0xfff
push 1
push esi
call fcn.0047d320
add esp, 0x10
add esi, eax
sub edi, eax
cmp eax, 0xfff
jne 0x4055f7
cmp edi, eax
ja 0x4055c0
test edi, edi
je 0x4055f7
push dword [ebx + 0x4c]
push edi
push 1
push esi
call fcn.0047d320
add esp, 0x10
sub edi, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, edi
pop edi
pop esi
sbb edx, 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x408410
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49cc40
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x4dc100]
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
mov dword [edi + 4], 0
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
call fcn.004748f3
mov esi, eax
xorps xmm0, xmm0
movq qword [esi], xmm0
push 1
mov dword [ebp - 4], 0
call fcn.004734ec
add esp, 8
mov dword [esi + 4], eax
mov ecx, edi
mov dword [edi + 0x34], esi
call fcn.004083b0
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