joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d660
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5af743
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x623fcc]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x10], edi
mov eax, dword [edi]
push 0
push 0
mov dword [ebp - 0x14], 0
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea eax, [edx - 0x18]
mov dword [edx + edi - 4], eax
mov eax, dword [edi]
mov dword [edi + 8], 0
mov dword [edi + 0xc], 0
mov esi, dword [eax + 4]
add esi, edi
mov ecx, esi
mov dword [esi + 0x30], 0
mov dword [esi + 8], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0x201
mov dword [esi + 0x18], 6
mov dword [esi + 0x1c], 0
mov dword [esi + 0x20], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00407550
push 8
call fcn.00414ead
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x40d73f
xorps xmm0, xmm0
movq qword [ebx], xmm0
push 1
mov dword [ebp - 4], 2
call fcn.00550f16
add esp, 4
mov dword [ebx + 4], eax
jmp 0x40d741
xor ebx, ebx
mov eax, dword [ebp + 8]
mov dword [esi + 0x30], ebx
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], 0
mov dword [ebp - 4], 3
mov ecx, dword [ebx + 4]
mov dword [ebp - 0x18], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 4
push eax
call fcn.0040dac0
add esp, 4
mov ecx, eax
mov edx, dword [eax]
push 0x20
mov eax, dword [edx + 0x20]
call eax
mov bl, al
mov dword [ebp - 4], 5
mov ecx, dword [ebp - 0x18]
test ecx, ecx
je 0x40d7a2
mov edx, dword [ecx]
call dword [edx + 8]
test eax, eax
je 0x40d7a2
mov edx, dword [eax]
mov ecx, eax
push 1
call dword [edx]
mov byte [ebp - 4], 1
cmp dword [esi + 0x38], 0
mov byte [esi + 0x40], bl
jne 0x40d7bf
mov eax, dword [esi + 0xc]
mov ecx, esi
push 0
or eax, 4
push eax
call fcn.00407550
lea edx, [edi + 0x10]
mov dword [ebp + 8], edx
mov eax, dword [edx]
mov eax, dword [eax + 4]
mov dword [edx + eax], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov eax, dword [edx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + edx - 4], eax
mov eax, dword [edi]
mov eax, dword [eax + 4]
mov dword [edi + eax], vtable.std::basic_iostream_char__struct_std::char_traits_char__.0
mov eax, dword [edi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + edi - 4], eax
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40d850
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x40d881
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x40d870
pop edi
mov eax, edx
pop esi
pop ebp
ret 8
Function at 0x410080
Capabilities:
Parse credit card information

Disassembly:
push ecx
push ebx
push esi
mov esi, ecx
xor cl, cl
mov eax, dword [esi + 0x4c]
cmp eax, 0xffffffff
je 0x410290
cmp eax, 0x7c
je 0x410290
cmp eax, 0x29
jne 0x4100c1
cmp dword [esi + 0x10], 0
jne 0x410290
cmp eax, eax
jne 0x4100c1
test dword [esi + 0x50], 0x10000000
je 0x41029d
jmp 0x410249
cmp eax, 0x2e
jne 0x4100d2
push 5
lea ecx, [esi + 0x24]
call fcn.00410300
jmp 0x41014b
cmp eax, 0x5c
jne 0x41012e
mov ecx, esi
call fcn.00410020
test byte [esi + 0x50], 0x80
je 0x410122
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x410101
push 4
lea ecx, [esi + 0x24]
call fcn.00410300
mov ecx, esi
call fcn.00410020
jmp 0x410282
cmp al, 0x42
jne 0x410122
push 4
lea ecx, [esi + 0x24]
call fcn.00410300
mov eax, dword [esi + 0x28]
mov ecx, esi
xor dword [eax + 8], 1
call fcn.00410020
jmp 0x410282
mov ecx, esi
call fcn.00410d70
jmp 0x41027b
cmp eax, 0x5b
jne 0x410196
mov ecx, esi
call fcn.00410020
mov ecx, esi
call fcn.00410c80
cmp dword [esi + 0x4c], 0x5d
jne 0x4102ab
mov edx, dword [esi + 8]
mov eax, dword [esi]
cmp eax, edx
je 0x41018a
cmp byte [eax], 0x5c
jne 0x410187
lea ecx, [eax + 1]
cmp ecx, edx
je 0x410187
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x410174
mov bl, byte [ecx]
cmp bl, 0x28
je 0x410185
cmp bl, 0x29
je 0x410185
test dl, 0x10
jne 0x410187
mov dl, byte [ecx]
cmp dl, 0x7b
je 0x410185
cmp dl, 0x7d
jne 0x410187
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040f380
jmp 0x41027b
cmp eax, 0x28
jne 0x410205
mov ecx, esi
call fcn.00410020
mov ecx, esi
call fcn.00410f10
cmp dword [esi + 0x4c], 0x29
mov bh, al
jne 0x41029d
mov eax, dword [esi]
mov edx, dword [esi + 8]
cmp eax, edx
je 0x4101f4
cmp byte [eax], 0x5c
jne 0x4101f1
lea ecx, [eax + 1]
cmp ecx, edx
je 0x4101f1
mov edx, dword [esi + 0x50]
test dl, 8
jne 0x4101de
mov bl, byte [ecx]
cmp bl, 0x28
je 0x4101ef
cmp bl, 0x29
je 0x4101ef
test dl, 0x10
jne 0x4101f1
mov dl, byte [ecx]
cmp dl, 0x7b
je 0x4101ef
cmp dl, 0x7d
jne 0x4101f1
mov eax, ecx
inc eax
mov dword [esi], eax
mov ecx, esi
call fcn.0040f380
test bh, bh
je 0x410282
jmp 0x41027b
cmp eax, 0x5e
jne 0x41021d
push 2
lea ecx, [esi + 0x24]
call fcn.00410300
mov ecx, esi
call fcn.00410020
jmp 0x410282
cmp eax, 0x24
jne 0x410235
push 3
lea ecx, [esi + 0x24]
call fcn.00410300
mov ecx, esi
call fcn.00410020
jmp 0x410282
cmp eax, 0x2a
je 0x410296
cmp eax, 0x2b
je 0x410296
cmp eax, 0x3f
je 0x410296
cmp eax, 0x7b
je 0x410296
cmp eax, 0x7d
jne 0x410259
test dword [esi + 0x50], 0x10000000
je 0x4102a4
jmp 0x410267
cmp eax, 0x5d
jne 0x410267
test dword [esi + 0x50], 0x10000000
je 0x4102ab
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.004111c0
mov ecx, esi
call fcn.00410020
mov ecx, esi
call fcn.00411020
mov eax, dword [esi + 0x4c]
mov cl, 1
cmp eax, 0xffffffff
jne 0x410093
pop esi
mov al, cl
pop ebx
pop ecx
ret
push 0xa
call fcn.0040f370
push 5
call fcn.0040f370
push 6
call fcn.0040f370
push 4
call fcn.0040f370
int3

Function at 0x414e30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0041735c
Function at 0x4173c1
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 esi, esi
call fcn.00432c2c
push 5
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4173f8
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
mov ecx, dword [ebp - 4]
push ebx
push dword [ebp + 0xc]
push esi
call fcn.00417417
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 0x41d164
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], ecx
mov esi, edi
cmp dword [ebp + 8], esi
je 0x41d1a9
call fcn.00432c2c
push 0xf0
push dword [ebp + 8]
mov ebx, dword [eax + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x41d1a9
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
je 0x41d1c5
push esi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.00432ddb
mov ebx, eax
test edi, edi
je 0x41d1c3
test esi, esi
je 0x41d1c3
push esi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x41dbe1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, ecx
push edi
test esi, esi
je 0x41dc9f
cmp dword [esi + 0x20], 0
je 0x41dc9f
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x41dc9f
cmp dword [ebp + 8], 0
je 0x41dc9f
xor eax, eax
mov ebx, eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], ebx
mov edi, eax
call fcn.00432c2c
push 0x5c0f98
push dword [ebp + 8]
mov eax, dword [eax + 0xc]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x41dc70
mov edi, dword [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push dword [ebp - 0x10]
mov dword [ebp - 4], eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41dc9f
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov dword [ebp - 8], eax
push dword [ebp - 4]
push ebx
push esi
call fcn.0044e350
add esp, 0xc
mov ebx, eax
cmp dword [ebp - 8], 0
je 0x41dc90
test edi, edi
je 0x41dc90
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
test ebx, ebx
je 0x41dc9b
mov ecx, esi
call fcn.0041d983
mov eax, ebx
jmp 0x41dca1
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x422240
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5aff59
call fcn.0054fb50
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x422266
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x4222c6
call fcn.00416c73
push eax
lea ecx, [ebp - 0x10]
call fcn.00404040
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5bea70]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00596948
push eax
call fcn.00404100
add esp, 0x14
test esi, esi
je 0x4222b9
push esi
call fcn.00596953
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.00404680
mov eax, ebx
call fcn.0054fb19
ret 8

Function at 0x42f16f
Capabilities:
Query or enumerate registry value
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
xor esi, esi
push edi
cmp dword [ecx + 0x58], esi
je 0x42f1c2
push esi
push dword [ebp + 8]
call fcn.0042f358
mov edi, eax
test edi, edi
je 0x42f1bd
lea eax, [ebp - 4]
mov dword [ebp - 4], 4
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
jne 0x42f1bd
mov eax, dword [ebp - 8]
jmp 0x42f1d4
mov eax, dword [ebp + 0x10]
jmp 0x42f1d4
push dword [ecx + 0x6c]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntW]
pop edi
pop esi
leave
ret 0xc

Function at 0x45094b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4509a1
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45097a
call fcn.00418c3c
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x45098f
call fcn.00418c3c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4509a1
call fcn.00418c3c
call fcn.00432c2c
cmp dword [eax + 0x3c], 0
je 0x4509b6
push edi
mov ecx, ebx
call fcn.0045007b
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.00450b88
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4509df
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4509eb
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x459159
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 8], ecx
push edi
test esi, esi
jne 0x459173
call fcn.00432c2c
mov esi, dword [eax + 0xc]
push 0x5c4b2c
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4591c9
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4591c9
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
test eax, eax
jne 0x4591a8
xor esi, esi
jmp 0x4591be
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 8]
push eax
push dword [ebp - 4]
call fcn.004591d2
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
jmp 0x4591cb
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4c5a13
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [edi + 4]
call fcn.00422186
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
mov esi, eax
mov ecx, edi
and esi, 3
call fcn.004c5c2c
cmp esi, 3
je 0x4c5a51
mov dword [edi + 0xc], 1
cmp dword [edi], 0
je 0x4c5a9a
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
test eax, eax
jle 0x4c5a74
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, esi
call fcn.0041694f
jmp 0x4c5a85
push 0xff
mov ecx, esi
call fcn.004047d0
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.00413d80
jmp 0x4c5abe
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x4c5abe
push dword [esi]
push dword [ebp - 4]
call fcn.004359ec
pop edi
pop esi
leave
ret 0xc

Function at 0x4c5b83
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.004c5c2c
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x4c5bcb
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.0041694f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.00413d80
jmp 0x4c5bd6
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.004359ec
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x4c7fe0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.00535844
call fcn.00432c80
cmp dword [eax + 0x14], 0
jne 0x4c7ffb
mov ecx, esi
pop esi
jmp fcn.004c730b
pop esi
ret
Function at 0x517600
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0059825a
pop ecx
test eax, eax
jne 0x517642
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.0042f725
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x517608
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x531a1c
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00401dd0
call fcn.00432c80
cmp dword [eax + 0x14], 0
jne 0x531a37
mov ecx, esi
pop esi
jmp fcn.00531298
pop esi
ret

Function at 0x55249d
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x623fcc]
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 0x5524e4
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x5524de
shr eax, 8
cmp al, 2
jne 0x5524de
call fcn.00556112
jmp 0x5524e7
call dword [sym.imp.WS2_32.dll_WSACleanup]
push 2
pop eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0054f3d2
leave
ret

Function at 0x55693d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
test esi, esi
je 0x55695b
cmp dword [esi + 0x48], 0
je 0x55695b
push 2
push 3
push esi
call fcn.005682a8
add esp, 0xc
push dword [ebp + 0xc]
call fcn.00560732
pop ecx
test esi, esi
je 0x556978
cmp dword [esi + 0x48], 0
je 0x556978
push 3
push esi
call fcn.005682e0
pop ecx
pop ecx
pop esi
pop ebp
ret
Function at 0x55ec6a
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push eax
push edi
mov esi, dword [edi + eax*4 + 0x190]
call fcn.0055ef0d
pop ecx
pop ecx
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push esi
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov esi, eax
and dword [ebx], 0
cmp esi, 0xffffffff
jne 0x55ece4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp + 8], eax
cmp eax, 0x2733
jne 0x55ecbc
xor esi, esi
mov dword [ebx], 0x51
jmp 0x55ece4
push eax
push edi
call fcn.0056a638
push eax
push str.Send_failure:__s
push dword [edi]
call fcn.0055e94b
mov eax, dword [edi]
add esp, 0x14
mov ecx, dword [ebp + 8]
mov dword [eax + 0x4668], ecx
mov dword [ebx], 0x37
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
add edi, edi
mov eax, dword [esi + 0x390]
mov ebx, dword [esi + edi*8 + 0x1b8]
sub ebx, dword [esi + edi*8 + 0x1bc]
test byte [eax + 0x3c], 3
je 0x55efef
cmp dword [esi + ecx*4 + 0x1a4], 0x55ebd9
jne 0x55efef
xor edx, edx
cmp dword [esi + edi*8 + 0x1b4], edx
je 0x55ef5f
test ebx, ebx
je 0x55efef
mov eax, dword [esi + ecx*4 + 0x190]
push edx
push edx
push 0xffffffffffffffff
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call fcn.0055e35c
add esp, 0x14
cmp eax, 0xffffffff
je 0x55efef
test al, 1
je 0x55efef
mov ecx, dword [esi + edi*8 + 0x1b4]
test ecx, ecx
jne 0x55efc4
mov eax, 0x8000
push eax
mov dword [esi + edi*8 + 0x1b8], eax
call dword [0x624060]
and dword [esi + edi*8 + 0x1bc], 0
and dword [esi + edi*8 + 0x1c0], 0
mov ebx, dword [esi + edi*8 + 0x1b8]
pop ecx
mov ecx, eax
mov dword [esi + edi*8 + 0x1b4], ecx
test ecx, ecx
je 0x55efe7
mov eax, dword [esi + edi*8 + 0x1bc]
push 0
push ebx
add eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x55efef
add dword [esi + edi*8 + 0x1bc], eax
jmp 0x55efef
and dword [esi + edi*8 + 0x1b8], 0
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x55eff4
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x190]
test eax, eax
je 0x55f01c
push dword [esi + 0x11c]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push esi
call eax
add esp, 0x14
jmp 0x55f054
mov eax, dword [ebp + 0xc]
cmp eax, 2
ja 0x55f052
push dword [esi + 0x118]
imul eax, eax, 3
push 1
push 2
add eax, 0x5ed78c
push eax
call fcn.00589ed3
push dword [esi + 0x118]
push 1
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00589ed3
add esp, 0x20
xor eax, eax
pop esi
pop ebp
ret
Function at 0x55f0ff
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp byte [eax + 0x1d4], 0
je 0x55f11d
push eax
call fcn.0040cfa0
pop ecx
test eax, eax
jne 0x55f139
xor al, al
pop ebp
ret
mov ecx, dword [eax + 0x190]
cmp ecx, 0xffffffff
je 0x55f119
push 2
push 1
lea edx, [ebp + 0xb]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_recv]
jmp 0x55f115
mov al, 1
pop ebp
ret

Function at 0x55f6a8
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 4], 0
mov eax, dword [0x62cb1c]
mov dword [ebp - 8], 0x4020
mov dword [ebp - 0xc], 4
push esi
push 2
pop esi
test eax, eax
jne 0x55f6ef
push 3
push esi
push eax
push 6
call fcn.00569aac
add esp, 0x10
test al, al
je 0x55f6e7
mov dword [0x62cb1c], esi
jmp 0x55f72f
xor eax, eax
inc eax
mov dword [0x62cb1c], eax
cmp eax, esi
je 0x55f72f
push ebx
lea eax, [ebp - 0xc]
mov esi, 0x1001
push eax
lea eax, [ebp - 4]
mov ebx, 0xffff
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x55f71d
mov eax, dword [ebp - 4]
cmp eax, dword [ebp - 8]
jg 0x55f72e
push 4
lea eax, [ebp - 8]
push eax
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.WS2_32.dll_setsockopt]
pop ebx
pop esi
leave
ret

Function at 0x55f7ef
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 8]
push 4
xor ecx, ecx
push eax
mov esi, dword [edi]
inc ecx
push ecx
push 6
push dword [ebp + 0xc]
mov dword [ebp + 8], ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x55f833
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
call fcn.0056a638
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.0055e9e6
add esp, 0x14
jmp 0x55f840
push str.TCP_NODELAY_set_n
push esi
call fcn.0055e9e6
pop ecx
pop ecx
pop edi
pop esi
pop ebp
ret
Function at 0x55f917
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x623fcc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 8]
cmp dword [edi + 0x8c], 2
mov ebx, dword [edi]
je 0x55fa74
cmp byte [edi + 0x356], 0
push esi
jne 0x55fa6c
cmp byte [edi + 0x372], 0
jne 0x55fa6c
lea eax, [ebp - 0x108]
mov esi, 0x80
push eax
lea eax, [ebp - 0x104]
mov dword [ebp - 0x108], esi
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x55f99a
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0056a638
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
jmp 0x55fa61
push esi
lea eax, [ebp - 0x84]
mov dword [ebp - 0x108], esi
push 0
push eax
call fcn.005836e0
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x84]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x55f9e5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push esi
push edi
call fcn.0056a638
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
jmp 0x55fa61
lea eax, [edi + 0x130]
push eax
lea esi, [edi + 0x102]
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.0055fec2
add esp, 0xc
test al, al
jne 0x55fa1e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0056a638
push eax
push esi
push str.ssrem_inet_ntop___failed_with_errno__d:__s
jmp 0x55fa61
push 0x2e
lea eax, [edi + 0x58]
push esi
push eax
call fcn.00583840
lea eax, [edi + 0x164]
push eax
lea eax, [edi + 0x134]
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.0055fec2
add esp, 0x18
test al, al
jne 0x55fa6c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push esi
push edi
call fcn.0056a638
push eax
push esi
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push ebx
call fcn.0055e94b
add esp, 0x18
jmp 0x55fa73
push edi
call fcn.0055f632
pop ecx
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0054f3d2
leave
ret