joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a1b0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 8], ecx
cmp dword [ebx + 0x14], 0x10
mov edi, dword [ebx + 0x10]
mov dword [ebp - 4], edi
jb 0x45a1cf
mov esi, dword [ebx]
jmp 0x45a1d1
mov esi, ebx
xor ecx, ecx
mov edx, 0x811c9dc5
test edi, edi
je 0x45a1f1
nop dword [eax]
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x45a1e0
mov esi, dword [ebp - 8]
mov eax, dword [esi + 0x18]
mov edi, dword [esi + 4]
and eax, edx
lea edx, [eax*8]
mov eax, dword [esi + 0xc]
add esi, 4
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], esi
mov ecx, dword [eax + edx]
mov dword [ebp - 0xc], ecx
cmp edi, ecx
je 0x45a2ea
mov edi, dword [eax + edx + 4]
mov edi, dword [edi]
cmp edi, ecx
je 0x45a2ea
nop dword [eax + eax]
mov edi, dword [edi + 4]
cmp dword [edi + 0x1c], 0x10
jb 0x45a23e
mov esi, dword [edi + 8]
jmp 0x45a241
lea esi, [edi + 8]
cmp dword [ebx + 0x14], 0x10
jb 0x45a24b
mov edx, dword [ebx]
jmp 0x45a24d
mov edx, ebx
mov ebx, dword [edi + 0x18]
mov eax, ebx
mov ecx, dword [ebp - 4]
cmp ecx, ebx
cmovb eax, ecx
test eax, eax
je 0x45a2b6
sub eax, 4
jb 0x45a274
mov ecx, dword [edx]
cmp ecx, dword [esi]
jne 0x45a279
add edx, 4
add esi, 4
sub eax, 4
jae 0x45a263
cmp eax, 0xfffffffc
je 0x45a2ad
mov cl, byte [edx]
cmp cl, byte [esi]
jne 0x45a2a6
cmp eax, 0xfffffffd
je 0x45a2ad
mov cl, byte [edx + 1]
cmp cl, byte [esi + 1]
jne 0x45a2a6
cmp eax, 0xfffffffe
je 0x45a2ad
mov cl, byte [edx + 2]
cmp cl, byte [esi + 2]
jne 0x45a2a6
cmp eax, 0xffffffff
je 0x45a2ad
mov al, byte [edx + 3]
cmp al, byte [esi + 3]
je 0x45a2ad
sbb eax, eax
or eax, 1
jmp 0x45a2af
xor eax, eax
test eax, eax
jne 0x45a2bc
mov ecx, dword [ebp - 4]
cmp ecx, ebx
jb 0x45a2bc
jbe 0x45a2c9
cmp edi, dword [ebp - 0xc]
je 0x45a2ea
mov ebx, dword [ebp + 0xc]
jmp 0x45a230
push dword [ebp + 0x10]
mov ecx, dword [ebp - 0x10]
lea eax, [ebp + 0xc]
push eax
call fcn.0045a7c0
mov eax, dword [ebp + 8]
mov dword [eax], edi
pop edi
pop esi
mov byte [eax + 4], 0
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
cmp edi, eax
je 0x45a314
mov ecx, dword [esi + 4]
mov dword [ecx], eax
mov ecx, dword [eax + 4]
mov dword [ecx], edi
mov ecx, dword [edi + 4]
mov dword [ecx], esi
mov ecx, dword [eax + 4]
mov edx, dword [edi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 4]
mov dword [eax + 4], ecx
mov dword [esi + 4], edx
mov edx, dword [ebp - 8]
mov ebx, dword [ebp - 0x14]
mov ecx, dword [edx + 0xc]
add ecx, ebx
mov eax, dword [ecx]
cmp eax, dword [edx + 4]
jne 0x45a331
mov dword [ecx], esi
mov eax, dword [edx + 0xc]
mov dword [eax + ebx + 4], esi
jmp 0x45a353
cmp eax, edi
jne 0x45a339
mov dword [ecx], esi
jmp 0x45a353
mov eax, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ecx + 4], eax
cmp eax, esi
je 0x45a353
mov ecx, dword [edx + 0xc]
mov eax, dword [ecx + ebx + 4]
mov eax, dword [eax + 4]
mov dword [ecx + ebx + 4], eax
mov ecx, edx
call fcn.0045a4d0
mov eax, dword [ebp + 8]
pop edi
mov dword [eax], esi
pop esi
mov byte [eax + 4], 1
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45ce60
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx], 0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x168], 0
mov dword [ecx + 0x170], 0
mov dword [ecx + 0x174], 0
mov dword [ecx + 0x14], 0x67452301
mov dword [ecx + 0x18], 0xefcdab89
mov dword [ecx + 0x1c], 0x98badcfe
mov dword [ecx + 0x20], 0x10325476
mov dword [ecx + 0x24], 0xc3d2e1f0
ret
Function at 0x45eac0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea ecx, [ebp - 0x1c]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push 0xe
push str.D:_A__GA___WD_
mov dword [ebp - 8], 7
mov dword [ebp - 0xc], 0
mov word [ebp - 0x1c], ax
call fcn.004064e0
cmp dword [ebp - 8], 8
lea ecx, [ebp - 0x20]
push ecx
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x24], 0
push ecx
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x20], 0
cmovae eax, dword [ebp - 0x1c]
push 1
push eax
call sub.ADVAPI32.dll_ConvertStringSecurityDescriptorToSecurityDescriptorW
test eax, eax
jne 0x45eb2d
xor esi, esi
jmp 0x45eb4f
push dword [ebp - 0x20]
call fcn.00494ed4
push dword [ebp - 0x20]
mov esi, eax
push dword [ebp - 0x24]
push esi
call fcn.00496490
add esp, 0x10
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 8]
cmp eax, 8
jb 0x45eb64
inc eax
lea ecx, [ebp - 0x1c]
push eax
push dword [ebp - 0x1c]
call fcn.00406780
push ebx
push 0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0xc
push eax
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x28], 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
push eax
mov ecx, edi
call fcn.0042ad50
mov eax, dword [edi]
test eax, eax
je 0x45eba6
cmp eax, 0xffffffff
je 0x45eba6
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x45eba6
mov bl, 1
jmp 0x45eba8
xor bl, bl
test esi, esi
je 0x45ebb5
push esi
call fcn.00494a38
add esp, 4
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret
Function at 0x462c10
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x100
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x4c], ebx
cmp dword [esi + 0x10], ebx
jne 0x462c44
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 8
jb 0x462c4e
mov eax, dword [esi]
jmp 0x462c50
mov eax, esi
movzx ecx, word [eax]
mov eax, dword [0x4c4bc4]
movq xmm0, qword [str..X:]
push 0
push 0
push 3
mov dword [ebp - 0xc], eax
mov ax, word [0x4c4bc8]
push 0
push 3
mov word [ebp - 8], ax
lea eax, [ebp - 0x14]
push 0
push eax
movq qword [ebp - 0x14], xmm0
mov word [ebp - 0xc], cx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x4c], eax
cmp eax, 0xffffffff
je 0x462c32
push edi
xor edi, edi
mov dword [ebp - 0x18], ebx
push edi
lea ecx, [ebp - 0x50]
xorps xmm0, xmm0
push ecx
push 0x28
lea ecx, [ebp - 0x48]
movq qword [ebp - 0x20], xmm0
push ecx
push 0xc
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x20], ebx
push ecx
push 0x2d1400
push eax
mov dword [ebp - 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x462cd1
mov edi, dword [ebp - 0x2c]
jmp 0x462d67
push 2
call fcn.004235b0
add esp, 4
test al, al
je 0x462d57
push 2
push 0x96
push str.d:webapps_b_build_slave_repo_build_srcwow_basewinwow_machine_info_utils_win.cc
lea ecx, [ebp - 0x100]
call fcn.00422790
push str.__volume_path:
lea ecx, [ebp - 0x14]
add eax, 8
push ecx
push str.When_volume_access_path:
push eax
call fcn.00401950
add esp, 8
push eax
call fcn.00422ca0
add esp, 8
push eax
call fcn.00401950
add esp, 8
cmp dword [esi + 0x14], 8
jb 0x462d2a
mov esi, dword [esi]
push esi
push eax
call fcn.00422ca0
add esp, 8
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.__DeviceIoControl_failed_with_error_code:
push esi
call fcn.00401950
add esp, 8
mov ecx, eax
call fcn.0040b1d0
mov ebx, 4
test bl, 4
je 0x462d67
lea ecx, [ebp - 0x100]
call fcn.00422910
push dword [ebp - 0x4c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
cmp edi, 7
pop edi
sete al
xor ecx, ebp
pop esi
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret
Function at 0x463950
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x37c8
call fcn.00494a40
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
mov dword [ebp - 0x37c4], ebx
push esi
lea eax, [ebp - 0x104]
push str..PhysicalDrive_d
push eax
call fcn.00463d10
add esp, 0xc
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x463b69
push 0x2710
xorps xmm0, xmm0
mov dword [ebp - 0x37c8], 0
lea eax, [ebp - 0x37b4]
movq qword [ebp - 0x37c0], xmm0
push 0
push eax
mov dword [ebp - 0x37b8], 0
mov dword [ebp - 0x37c0], 0
mov dword [ebp - 0x37bc], 0
call fcn.00496a10
add esp, 0xc
lea eax, [ebp - 0x37c8]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b4]
push eax
push 0xc
lea eax, [ebp - 0x37c0]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x463b62
lea eax, [ebp - 0xcbc]
push eax
push 0
push dword [ebp - 0x37a8]
lea eax, [ebp - 0x37b4]
push eax
call fcn.00463b90
lea eax, [ebp - 0x8d4]
push eax
push 0
push dword [ebp - 0x37a4]
lea eax, [ebp - 0x37b4]
push eax
call fcn.00463b90
lea eax, [ebp - 0x10a4]
push eax
push 0
push dword [ebp - 0x37a0]
lea eax, [ebp - 0x37b4]
push eax
call fcn.00463b90
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x379c]
lea eax, [ebp - 0x37b4]
push eax
call fcn.00463b90
add esp, 0x40
cmp byte [0x4e49a8], 0
jne 0x463b27
mov bl, byte [ebp - 0x4ec]
movsx eax, bl
push eax
call fcn.004a4e5c
add esp, 4
test eax, eax
jne 0x463ace
movsx eax, byte [ebp - 0x4d9]
push eax
call fcn.004a4e5c
add esp, 4
test eax, eax
je 0x463b21
xor eax, eax
cmp bl, 0x20
jne 0x463ae0
inc eax
cmp byte [ebp + eax - 0x4ec], 0x20
je 0x463ad5
lea ecx, [ebp - 0x4ec]
mov edx, 0x4e49a8
add ecx, eax
sub edx, ecx
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x463af0
xor eax, eax
nop
mov cl, byte [ebp + eax - 0x8d4]
lea eax, [eax + 1]
mov byte [eax + 0x4e4da7], cl
test cl, cl
jne 0x463b00
mov ebx, 1
mov dword [ebp - 0x37c4], ebx
jmp 0x463b27
mov ebx, dword [ebp - 0x37c4]
push 0x2710
lea eax, [ebp - 0x37b4]
push 0
push eax
call fcn.00496a10
add esp, 0xc
lea eax, [ebp - 0x37c8]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x37b4]
push eax
push 0
push 0
push 0x700a0
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, 0x10
jl 0x463974
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret
Function at 0x463f40
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x5c]
push edi
mov edi, dword [ebp + 8]
push 0x40
push 0
push eax
call fcn.00496a10
mov eax, dword [esi + 0x10]
add esp, 0xc
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0x67452301
mov dword [ebp - 0x10], 0xefcdab89
mov dword [ebp - 0xc], 0x98badcfe
mov dword [ebp - 8], 0x10325476
jb 0x463f9d
mov esi, dword [esi]
push eax
push esi
lea ecx, [ebp - 0x5c]
call fcn.004646e0
push dword [ebp + 0x10]
lea ecx, [ebp - 0x5c]
push edi
call fcn.00463d50
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.0049510d
mov esp, ebp
pop ebp
ret

Function at 0x4658f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x4de4e4]
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 0x465940
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x46593a
shr eax, 8
cmp al, 2
jne 0x46593a
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret

Function at 0x4679d0
Capabilities:
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x48
push 1
call dword [0x4de450]
mov esi, dword [ebp + 8]
mov edi, eax
add esp, 8
mov ebx, 8
mov dword [esi + 0x3bc], edi
test edi, edi
je 0x467aac
push dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
lea eax, [edi + 0x10]
push ecx
push dword [ebp + 0xc]
mov dword [esi + 0x3ac], ecx
mov dword [esi + 0x3b4], 0
mov dword [esi + 0x3b8], 0
mov dword [esi + 0x3b0], 0
push eax
mov dword [edi + 4], 0xffffffff
mov dword [edi], 0
call fcn.00467ae0
add esp, 0x10
test eax, eax
je 0x467aac
mov eax, dword [esi + 0x3a8]
test eax, eax
je 0x467a64
push eax
call dword [0x4de444]
add esp, 4
mov dword [esi + 0x3a8], 0
push dword [ebp + 0xc]
call dword [0x4de44c]
add esp, 4
mov dword [esi + 0x3a8], eax
test eax, eax
je 0x467aac
push 0
push 2
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [edi + 4], eax
cmp eax, 0xffffffff
je 0x467aac
lea eax, [edi + 0x10]
push eax
push 0x467940
call fcn.00475fc0
add esp, 8
mov dword [edi], eax
test eax, eax
jne 0x467ac9
call fcn.0049a81a
mov ebx, dword [eax]
lea eax, [esi + 0x3a8]
push eax
call fcn.004678a0
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret
Function at 0x470960
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea ebx, [edi + 0x53c]
push 0x4000
push ebx
call fcn.00472ae0
mov eax, dword [edi + 0xf8]
add esp, 0x10
test eax, eax
je 0x4709b4
cmp dword [edi + 0x8568], 0
jne 0x4709b4
push ebx
push 0x4c2c90
push 0x100
push eax
call fcn.004729f0
add esp, 0x10
mov dword [edi + 0x8568], 1
cmp dword [edi + 0x2e4], 0
je 0x470a2a
push esi
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x4709c3
sub esi, ecx
cmp esi, 0x3fff
jae 0x4709e4
mov byte [edi + esi + 0x53c], 0xa
inc esi
mov byte [edi + esi + 0x53c], al
mov eax, dword [edi + 0x164]
test eax, eax
je 0x470a03
push dword [edi + 0xf4]
push esi
push ebx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
push dword [edi + 0xf0]
push 1
push 2
push 0x4c5ec0
call fcn.0049edbf
push dword [edi + 0xf0]
push 1
push esi
push ebx
call fcn.0049edbf
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x470a30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x470ae7
cmp dword [edi + 0x2e4], 0
je 0x470ae7
push esi
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x808]
push 0x801
push eax
call fcn.00472ae0
lea esi, [ebp - 0x808]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x470a81
mov eax, dword [edi + 0x164]
sub esi, ecx
test eax, eax
je 0x470aba
push dword [edi + 0xf4]
lea ecx, [ebp - 0x808]
push esi
push ecx
push 0
push edi
call eax
add esp, 0x14
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
push dword [edi + 0xf0]
push 1
push 2
push 0x4c5ec0
call fcn.0049edbf
push dword [edi + 0xf0]
lea eax, [ebp - 0x808]
push 1
push esi
push eax
call fcn.0049edbf
add esp, 0x20
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.0049510d
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x470d7e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x470d4e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.00474b50
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.00470960
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x856c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x471040
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x164]
test eax, eax
je 0x471069
push dword [esi + 0xf4]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
pop esi
pop ebp
ret
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x47109f
push dword [esi + 0xf0]
lea eax, [eax + eax*2]
push 1
add eax, 0x4c5ec0
push 2
push eax
call fcn.0049edbf
push dword [esi + 0xf0]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0049edbf
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x530]
cmp ecx, 0xffffffff
je 0x4712eb
mov eax, dword [eax + 0x524]
mov eax, dword [eax]
mov eax, dword [eax + ecx*4]
test eax, eax
je 0x4712eb
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x4712b9
mov dword [ecx], eax
cmp dword [eax + 0x148], 0
push esi
mov esi, dword [eax + 0x130]
je 0x4712cf
or eax, 0xffffffff
pop esi
pop ebp
ret
push 2
push 1
lea eax, [ebp + 0xb]
push eax
push esi
call dword [sym.imp.WS2_32.dll_recv]
or ecx, 0xffffffff
test eax, eax
cmove esi, ecx
mov eax, esi
pop esi
pop ebp
ret
or eax, 0xffffffff
pop ebp
ret
Function at 0x4714d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x4de4e4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x19c], 0
mov ebx, dword [edi]
jne 0x471643
mov esi, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], 0x80
push eax
push esi
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x47154e
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00474b50
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push ebx
call fcn.00470960
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x108]
mov dword [ebp - 0x108], 0x80
push eax
lea eax, [ebp - 0x104]
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x4715a1
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.00474b50
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push ebx
call fcn.00470960
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0x9e]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00471a40
add esp, 0xc
test eax, eax
jne 0x4715f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00474b50
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00470960
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
lea eax, [edi + 0x100]
push eax
lea eax, [edi + 0xd0]
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00471a40
add esp, 0xc
test eax, eax
jne 0x471643
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.00474b50
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.00470960
add esp, 0x18
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049510d
mov esp, ebp
pop ebp
ret
push edi
call fcn.004712f0
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0049510d
mov esp, ebp
pop ebp
ret
Function at 0x471f40
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
push 4
mov esi, dword [edi]
mov eax, dword [esi + 0x314]
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 1
push 6
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x471f8a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.00474b50
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.00470a30
add esp, 0x14
pop edi
pop esi
pop ebp
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.00470a30
add esp, 8
pop edi
pop esi
pop ebp
ret

Function at 0x473ed0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov bl, byte [esi]
test bl, bl
je 0x473f82
mov cl, byte [edi]
test cl, cl
je 0x473f82
movsx eax, bl
add eax, 0xffffff9f
cmp eax, 0x19
ja case.default.0x473efb
jmp dword [eax*4 + 0x473fa8]
mov bl, 0x41
jmp case.default.0x473efb
mov bl, 0x42
jmp case.default.0x473efb
mov bl, 0x43
jmp case.default.0x473efb
mov bl, 0x44
jmp case.default.0x473efb
mov bl, 0x45
jmp case.default.0x473efb
mov bl, 0x46
jmp case.default.0x473efb
mov bl, 0x47
jmp case.default.0x473efb
mov bl, 0x48
jmp case.default.0x473efb
mov bl, 0x49
jmp case.default.0x473efb
mov bl, 0x4a
jmp case.default.0x473efb
mov bl, 0x4b
jmp case.default.0x473efb
mov bl, 0x4c
jmp case.default.0x473efb
mov bl, 0x4d
jmp case.default.0x473efb
mov bl, 0x4e
jmp case.default.0x473efb
mov bl, 0x4f
jmp case.default.0x473efb
mov bl, 0x50
jmp case.default.0x473efb
mov bl, 0x51
jmp case.default.0x473efb
mov bl, 0x52
jmp case.default.0x473efb
mov bl, 0x53
jmp case.default.0x473efb
mov bl, 0x54
jmp case.default.0x473efb
mov bl, 0x55
jmp case.default.0x473efb
mov bl, 0x56
jmp case.default.0x473efb
mov bl, 0x57
jmp case.default.0x473efb
mov bl, 0x58
jmp case.default.0x473efb
mov bl, 0x59
jmp case.default.0x473efb
mov bl, 0x5a
push ecx
call fcn.00474180
add esp, 4
cmp bl, al
jne 0x473f82
mov bl, byte [esi + 1]
inc esi
inc edi
test bl, bl
jne 0x473ee6
movzx eax, byte [esi]
push eax
call fcn.00474180
movzx ecx, byte [edi]
mov bl, al
push ecx
call fcn.00474180
add esp, 8
xor ecx, ecx
cmp bl, al
sete cl
pop edi
pop esi
mov eax, ecx
pop ebx
pop ebp
ret