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

Disassembly:
mov eax, dword [esp + 4]
test ecx, ecx
je 0x10040ecc
push esi
cmp ecx, 4
jb 0x10040eb7
mov esi, ecx
shr esi, 2
push edi
mov edi, dword [edx]
xor dword [eax], edi
add eax, 4
add edx, 4
sub ecx, 4
sub esi, 1
jne 0x10040ea4
pop edi
test ecx, ecx
jbe 0x10040ecb
sub edx, eax
mov esi, ecx
nop
mov cl, byte [edx + eax]
xor byte [eax], cl
inc eax
sub esi, 1
jne 0x10040ec0
pop esi
ret

Function at 0x10040ed0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
push edi
cmp esi, 4
jb 0x10040efe
mov edi, esi
shr edi, 2
push ebx
mov ebx, dword [edx]
xor ebx, dword [eax]
add ecx, 4
mov dword [ecx - 4], ebx
add edx, 4
add eax, 4
sub esi, 4
sub edi, 1
jne 0x10040ee5
pop ebx
test esi, esi
jbe 0x10040f17
mov edi, ecx
sub edx, eax
sub edi, eax
mov cl, byte [edx + eax]
xor cl, byte [eax]
inc eax
sub esi, 1
mov byte [edi + eax - 1], cl
jne 0x10040f08
pop edi
pop esi
ret

Function at 0x10040f20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov edi, ecx
xor ecx, ecx
cmp edi, 4
jb 0x10040f4a
mov edx, edi
shr edx, 2
mov esi, dword [ebp]
xor esi, dword [eax]
add ebp, 4
or ecx, esi
add eax, 4
sub edi, 4
sub edx, 1
jne 0x10040f35
mov edx, ecx
shr edx, 0x10
movzx edx, dl
mov esi, ecx
shr esi, 0x18
or esi, edx
mov edx, ecx
shr edx, 8
movzx edx, dl
movzx ecx, cl
or esi, edx
or esi, ecx
test edi, edi
jbe 0x10040f81
sub ebp, eax
mov edi, edi
movzx edx, byte [eax + ebp]
movzx ecx, byte [eax]
xor edx, ecx
or esi, edx
inc eax
sub edi, 1
jne 0x10040f70
xor eax, eax
pop edi
test esi, esi
pop esi
sete al
pop ebp
ret

Function at 0x100419f0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x101e6378
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov eax, dword [0x1027e110]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 0xc]
xor edx, edx
mov dword [esp + 0x14], vtable.CryptoPP::ArraySink.0
mov dword [esp + 0x18], vtable.CryptoPP::ArraySink.1.0
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
mov dword [esp + 0x30], edx
push 1
push 0x1027f760
push edx
mov dword [esp + 0x54], 2
mov esi, dword [ecx]
mov dword [esp + 0x18], edx
mov dword [esp + 0x1c], edx
push eax
lea edx, [esp + 0x1c]
push edx
mov edx, dword [esi + 0x84]
lea eax, [esp + 0x28]
push eax
call edx
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.101b40e2
mov esp, ebp
pop ebp
ret 8
Function at 0x10056880
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
cmp dword [ebx], 0x1027905c
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push edi
mov dword [esp + 0x1c], ecx
jne 0x100568a2
add eax, 0x18c
jmp 0x100568a7
add eax, 0x140
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100568b9
mov dword [eax], 0
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x9e8], 0
jne 0x100568ce
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
mov ecx, dword [ecx + 8]
push ebp
push esi
mov esi, dword [edi + 0x9e8]
mov eax, dword [esi + 0x14]
push ecx
mov dword [esp + 0x34], eax
call dword [0x1027900c]
mov ebp, eax
add esp, 4
test ebp, ebp
mov dword [esp + 0x10], ebp
je 0x10056a68
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x1fc], 0
je 0x10056930
mov edx, dword [eax + 0x64]
push edx
call dword [0x1027900c]
add esp, 4
test eax, eax
mov dword [esp + 0x18], eax
jne 0x10056938
push ebp
call dword [0x10279004]
add esp, 4
pop esi
pop ebp
pop edi
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x18], 0
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x200], 0
je 0x10056950
mov eax, dword [eax + 0x3b0]
mov dword [esp + 0x1c], eax
jmp 0x10056958
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [edi + 0x78]
test eax, eax
je 0x1005696e
test byte [eax + 4], 0x10
je 0x1005696e
add eax, 0x78
mov dword [esp + 0x14], eax
jmp 0x10056978
lea ecx, [edi + 0x9ec]
mov dword [esp + 0x14], ecx
mov ebx, dword [edi + 0x50c]
mov eax, 1
cmp ebx, eax
jbe 0x100569c5
mov ecx, dword [edi + 0x9e8]
lea edx, [eax + 0x6b]
add ecx, 0x80
cmp dword [ecx - 8], 0
je 0x100569c5
mov ebp, dword [esp + 0x30]
cmp dword [ecx], ebp
jge 0x100569b4
mov esi, dword [edi + 0x9e8]
mov ebp, dword [esi + edx + 0x14]
add esi, edx
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x10]
add eax, 1
add edx, 0x6c
add ecx, 0x6c
cmp eax, ebx
jb 0x10056996
cmp eax, ebx
jne 0x100569d4
push esi
call fcn.10055290
add esp, 4
jmp 0x100569df
imul eax, eax, 0x6c
add eax, dword [edi + 0x9e8]
mov esi, eax
mov eax, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x14]
mov dword [esi + 0x10], eax
mov eax, dword [esi]
mov dword [esi + 0xc], edx
mov edx, dword [ecx]
push eax
mov dword [esi + 0x14], edx
call dword [0x10279004]
mov ecx, dword [esi + 4]
push ecx
call dword [0x10279004]
mov edx, dword [esp + 0x24]
mov ebx, dword [esp + 0x20]
mov eax, dword [esp + 0x2c]
mov dword [esi + 0x1c], edx
mov edx, dword [esp + 0x34]
mov dword [esi], ebp
mov dword [esi + 4], ebx
mov ecx, dword [eax + 0x10]
mov dword [esi + 0x18], ecx
mov eax, dword [edx + 0xc]
mov ecx, dword [eax + 0x254]
mov eax, dword [esp + 0x28]
mov edx, dword [ecx]
lea edi, [esi + 0x20]
push edi
push eax
mov dword [esi + 8], edx
call fcn.10054ed0
add esp, 0x10
test eax, eax
jne 0x10056a75
push edi
call fcn.10055120
push ebp
mov dword [esi + 0xc], 0
call dword [0x10279004]
push ebx
call dword [0x10279004]
add esp, 0xc
pop esi
pop ebp
pop edi
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x10056a83
mov dword [eax], 1
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x10057270
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
cmp esi, edi
mov ebx, 0x1505
jae 0x100572a2
movzx eax, byte [esi]
push eax
call fcn.10051e60
mov edx, ebx
shl edx, 5
movsx ecx, al
add edx, ebx
xor ecx, edx
add esi, 1
add esp, 4
cmp esi, edi
mov ebx, ecx
jb 0x10057281
pop edi
pop esi
movzx eax, bl
pop ebx
ret

Function at 0x100572b0
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
je 0x100572e1
push esi
call fcn.1007e2d0
add esp, 4
test eax, eax
jne 0x100572e1
lea eax, [esp + 4]
push eax
call fcn.10057200
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp fcn.10057270
xor eax, eax
pop esi
pop ecx
ret

Function at 0x1005a7d0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebp
push esi
push str.kernel32
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x1005a7ea
pop esi
pop ebp
pop ecx
ret
push ebx
push edi
push str.LoadLibraryExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ebx, dword [esp + 0x18]
mov edi, eax
push 0x101edd28
push ebx
mov dword [esp + 0x18], edi
call fcn.101b70d0
add esp, 8
test eax, eax
je 0x1005a836
test edi, edi
je 0x1005a827
push 8
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
test edi, edi
je 0x1005a85c
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005a85c
push 0x800
push 0
push ebx
call edi
pop edi
pop ebx
pop esi
mov ebp, eax
pop ebp
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, eax
test edi, edi
je 0x1005a914
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1005a875
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x1005a90a
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1005a90a
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1005a8a5
sub eax, edx
mov word [eax + esi], 0x5c
mov eax, esi
lea edx, [eax + 1]
jmp 0x1005a8c0
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1005a8c0
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
add ecx, 1
test al, al
jne 0x1005a8d2
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1005a901
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x10279004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ebp, eax
push esi
call dword [0x10279004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x1005a920
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x190], eax
test byte [esp + 0x198], 2
je 0x1005a97d
lea eax, [esp]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x1005a963
mov ax, word [esp]
cmp al, 2
jne 0x1005a95d
cmp ah, al
je 0x1005a97d
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.101b40e2
add esp, 0x194
ret
push str.iphlpapi.dll
call fcn.1005a7d0
add esp, 4
test eax, eax
mov dword [0x102830bc], eax
je 0x1005a9a8
push str.if_nametoindex
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005a9a8
mov dword [0x102830c0], eax
push 3
push 2
push 0
push 0
push 6
call fcn.1008b4c0
add esp, 0x14
neg eax
sbb eax, eax
neg eax
push 0x102893e8
mov dword [0x102893f0], eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
mov ecx, dword [esp + 0x190]
xor ecx, esp
xor eax, eax
call fcn.101b40e2
add esp, 0x194
ret

Function at 0x1005a9f0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x790], 0
je 0x1005aa88
cmp dword [esi + 0x1c4], 0
je 0x1005aa48
push edi
push esi
call fcn.1005bf00
push 1
push esi
mov edi, eax
call fcn.1005bed0
mov eax, dword [esi + 0x174]
mov ecx, dword [esp + 0x24]
mov edx, dword [esp + 0x20]
push eax
mov eax, dword [esp + 0x20]
push ecx
mov ecx, dword [esi + 0x1c4]
push edx
push eax
push esi
call ecx
push edi
push esi
call fcn.1005bed0
add esp, 0x28
pop edi
pop esi
ret
mov eax, dword [esp + 0xc]
test eax, eax
jl 0x1005aa88
cmp eax, 2
jg 0x1005aa88
mov edx, dword [esi + 0x170]
push edx
push 1
lea eax, [eax + eax*2 + 0x101edd68]
push 2
push eax
call fcn.101b57ed
mov ecx, dword [esi + 0x170]
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x20]
push ecx
push 1
push edx
push eax
call fcn.101b57ed
add esp, 0x20
pop esi
ret
Function at 0x1005aa90
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0x790], 0
jne 0x1005aac2
cmp dword [esi + 0x178], 0
je 0x1005abb3
mov ecx, dword [esp + 0x114]
push edi
lea eax, [esp + 0x11c]
push eax
push ecx
lea edx, [esp + 0x10]
push 0x100
push edx
call fcn.10062ab0
mov edx, dword [esi + 0x178]
add esp, 0x10
test edx, edx
mov edi, eax
je 0x1005ab18
cmp dword [esi + 0xe94], 0
jne 0x1005ab18
lea ecx, [esp + 8]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
add ecx, 1
add edx, 1
test al, al
jne 0x1005ab00
mov dword [esi + 0xe94], 1
mov byte [esp + edi + 8], 0xa
add edi, 1
cmp dword [esi + 0x790], 0
mov byte [esp + edi + 8], 0
je 0x1005abb2
cmp dword [esi + 0x1c4], 0
je 0x1005ab86
push ebx
push esi
call fcn.1005bf00
push 1
push esi
mov ebx, eax
call fcn.1005bed0
mov eax, dword [esi + 0x174]
mov edx, dword [esi + 0x1c4]
push eax
push edi
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
call edx
push ebx
push esi
call fcn.1005bed0
add esp, 0x28
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.101b40e2
add esp, 0x108
ret
mov eax, dword [esi + 0x170]
push eax
push 1
push 2
push 0x101edd68
call fcn.101b57ed
mov ecx, dword [esi + 0x170]
push ecx
push 1
lea edx, [esp + 0x20]
push edi
push edx
call fcn.101b57ed
add esp, 0x20
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.101b40e2
add esp, 0x108
ret
Function at 0x100690d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x101edee4
push eax
call fcn.1005abd0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10068140
test eax, eax
jne 0x100690fe
mov ecx, esi
jmp fcn.10068500
ret
Function at 0x10069560
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0xc]
push ebp
push esi
mov esi, dword [eax + 0x2d0]
push edi
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + 0x10], 0x80
mov eax, dword [esi + 0x13c]
mov ecx, dword [esi + 0x148]
lea edx, [esp + 0x14]
push edx
mov edx, dword [esi + 0x14]
push 0
add eax, 4
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x130], 0
mov dword [esi + 0x134], eax
jne 0x100695e1
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 0xb0]
push edx
call fcn.101b4f90
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x134]
cmp eax, 4
jge 0x1006961b
push str.Received_too_short_packet
push ebx
call fcn.1005aa90
add esp, 8
mov dword [esi + 0xc], 7
pop edi
pop esi
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101b40e2
add esp, 0x88
ret
mov edi, dword [esi + 0x148]
movzx edx, byte [edi + 1]
xor ecx, ecx
mov ch, byte [edi]
movzx ecx, cx
or ecx, edx
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x1006963d
jmp dword [ecx*4 + 0x100697a4]
cmp eax, 4
jle case.0x1006963d.4
mov edi, dword [esi + 0x148]
movzx edx, word [esi + 0x144]
xor ecx, ecx
mov ch, byte [edi + 2]
add edx, 1
and edx, 0xffff
mov cl, byte [edi + 3]
cmp edx, ecx
jne case.0x1006963d.4
add eax, 0xfffffffc
push eax
mov eax, edi
add eax, 4
push eax
push 1
push ebx
call fcn.1005f440
mov edi, eax
add esp, 0x10
test edi, edi
je 0x100696b4
mov ecx, 5
mov eax, esi
call fcn.100694e0
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101b40e2
add esp, 0x88
ret
mov eax, dword [esi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
mov ecx, dword [ebx + 0x94]
mov edx, dword [ebx + 0x90]
push ecx
push edx
push ebx
call fcn.10080c90
jmp 0x10069767
mov edi, dword [esi + 0x148]
lea ebp, [eax - 4]
mov eax, dword [esi + 0x148]
xor ecx, ecx
mov ch, byte [eax + 2]
push ebp
add edi, 4
push 0
push edi
mov cl, byte [eax + 3]
mov dword [esi + 8], ecx
call fcn.101b4410
add esp, 0xc
test eax, eax
je case.0x1006963d.4
sub eax, edi
cmp eax, ebp
jae case.0x1006963d.4
push edi
push str.TFTP_error:__s
push ebx
call fcn.1005abd0
jmp 0x10069767
mov edx, dword [esi + 0x148]
add eax, 0xfffffffe
push eax
add edx, 2
push edx
push esi
call fcn.100682c0
add esp, 0xc
test eax, eax
je case.0x1006963d.4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.101b40e2
add esp, 0x88
ret
push str.Internal_error:_Unexpected_packet
push 0x101edee4
push ebx
call fcn.1005aa90
add esp, 0xc
push ebx
call fcn.100815d0
add esp, 4
test eax, eax
je 0x10069601
mov ecx, 5
mov eax, esi
call fcn.100694e0
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x2a
call fcn.101b40e2
add esp, 0x88
ret
Function at 0x10069b60
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov cl, byte [esp + 8]
mov eax, dword [edi + 0xc]
push 0
push 3
lea edx, [esp + 8]
mov byte [esp + 8], 0xff
mov byte [esp + 9], cl
mov byte [esp + 0xa], bl
mov eax, dword [eax + 0x120]
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x10069ba4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.1005aa90
add esp, 0xc
push esi
mov esi, dword [esp + 0xc]
push str.SENT
mov eax, ebx
mov ecx, edi
call fcn.10069a50
add esp, 4
pop esi
pop ecx
ret
Function at 0x1006a460
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x808
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x804], eax
push ebx
push ebp
mov ebp, dword [esp + 0x814]
mov ebx, dword [ebp + 0x124]
mov ecx, dword [ebx + 0x1eb8]
sub ecx, dword [ebx + 0x1eb4]
mov eax, dword [ebp + 0xc]
push esi
add ecx, 2
push edi
mov dword [esp + 0x10], eax
push ecx
lea ecx, [ebx + 0x1cb4]
mov eax, 0x3c
mov esi, ebp
call fcn.10069db0
mov eax, dword [ebx + 0x1eb4]
movzx ecx, byte [eax]
add eax, 1
add esp, 4
cmp ecx, 0x18
mov dword [ebx + 0x1eb4], eax
je 0x1006a639
cmp ecx, 0x23
je 0x1006a5db
cmp ecx, 0x27
jne 0x1006a6cb
push 0
push ecx
push 0xfa
push 0xff
push str._c_c_c_c
lea edx, [esp + 0x28]
push 0x800
push edx
call fcn.10062b10
mov ebx, dword [ebx + 0x1cb0]
add esp, 0x1c
test ebx, ebx
mov edi, 4
je 0x1006a59c
mov edx, dword [ebx]
mov eax, edx
lea esi, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x1006a520
sub eax, esi
lea eax, [eax + edi + 1]
cmp eax, 0x7fa
jae 0x1006a591
push 0x2c
push edx
call fcn.101b5310
add esp, 8
test eax, eax
jne 0x1006a565
mov ecx, dword [ebx]
push ecx
push eax
mov edx, 0x800
push str._c_s
sub edx, edi
push edx
lea eax, [esp + edi + 0x24]
push eax
call fcn.10062b10
add esp, 0x14
jmp 0x1006a58f
mov edx, dword [ebx]
mov ecx, eax
add eax, 1
push eax
push 1
push edx
sub ecx, edx
push ecx
push 0
mov ecx, 0x800
push str._c_.s_c_s
sub ecx, edi
push ecx
lea edx, [esp + edi + 0x30]
push edx
call fcn.10062b10
add esp, 0x20
add edi, eax
mov ebx, dword [ebx + 4]
test ebx, ebx
jne 0x1006a515
push 0xf0
push 0xff
mov eax, 0x800
push str._c_c
sub eax, edi
push eax
lea ecx, [esp + edi + 0x24]
push ecx
call fcn.10062b10
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0x120]
add esp, 0x14
push 0
add edi, 2
push edi
lea edx, [esp + 0x1c]
push edx
push ecx
jmp 0x1006a695
lea ecx, [ebx + 0x1c28]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1006a5e6
push 0xf0
push 0xff
push ecx
push 0
push 0x23
push 0xfa
push 0xff
push str._c_c_c_c_s_c_c
lea edx, [esp + 0x34]
sub eax, esi
push 0x800
push edx
lea edi, [eax + 6]
call fcn.10062b10
mov ecx, dword [esp + 0x38]
mov edx, dword [ecx + 0x120]
add esp, 0x28
push 0
push edi
lea eax, [esp + 0x1c]
push eax
push edx
jmp 0x1006a695
lea ecx, [ebx + 0x1c08]
mov eax, ecx
lea esi, [eax + 1]
mov dl, byte [eax]
add eax, 1
test dl, dl
jne 0x1006a644
push 0xf0
push 0xff
push ecx
push 0
push 0x18
push 0xfa
push 0xff
sub eax, esi
push str._c_c_c_c_s_c_c
lea edi, [eax + 6]
lea eax, [esp + 0x34]
push 0x800
push eax
call fcn.10062b10
mov edx, dword [esp + 0x38]
mov eax, dword [edx + 0x120]
add esp, 0x28
push 0
push edi
lea ecx, [esp + 0x1c]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x1006a6b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.1005aa90
add esp, 0xc
add edi, 0xfffffffe
push edi
lea ecx, [esp + 0x1a]
mov eax, 0x3e
mov esi, ebp
call fcn.10069db0
add esp, 4
mov ecx, dword [esp + 0x814]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.101b40e2
add esp, 0x808
ret
Function at 0x1006a950
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
push ebp
mov ebp, dword [eax + 0x124]
mov eax, dword [eax + 0xc]
mov dword [esp + 4], eax
jne 0x1006aab0
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
cmp ebx, edi
mov dword [edi], ebx
jae 0x1006a989
mov byte [ebx], 0xff
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x1006a995
mov byte [eax], 0xfa
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x1006a9a1
mov byte [eax], 0x1f
add dword [edi], 1
movzx ecx, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebp + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x1006a9d4
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x1006a9e3
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x1006a9ee
mov byte [eax], cl
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x1006a9f9
mov byte [eax], ch
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x1006aa05
mov byte [eax], 0xff
add dword [edi], 1
mov eax, dword [edi]
cmp eax, edi
jae 0x1006aa11
mov byte [eax], 0xf0
add dword [edi], 1
mov eax, dword [edi]
mov esi, dword [esp + 0x18]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
mov dword [ebp + 0x1eb8], eax
push ecx
lea ecx, [ebp + 0x1cb6]
mov eax, 0x3e
mov dword [edi], ebx
call fcn.10069db0
mov edi, dword [sym.imp.WS2_32.dll_send]
add esp, 4
push 0
push 3
push ebx
mov ebx, dword [esp + 0x1c]
mov edx, dword [ebx + 0x120]
push edx
call edi
test eax, eax
jge 0x1006aa6b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1005aa90
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push eax
push esi
mov eax, 4
call fcn.1006a6f0
mov ecx, dword [ebx + 0x120]
add esp, 8
push 0
push 2
add ebp, 0x1cbb
push ebp
push ecx
call edi
test eax, eax
jge 0x1006aaad
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1005aa90
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x100709d0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x1c
mov eax, dword [0x1027e110]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push edi
mov edi, dword [esi + 0xc]
mov ebx, dword [edi + 0x124]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
mov dword [esp + 0x14], 0xffffffff
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10070a2b
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0xffffffff
jne 0x10070a56
push str.Error_accept__ing_server_connect
push esi
call fcn.1005aa90
add esp, 8
pop edi
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101b40e2
add esp, 0x1c
ret
push str.Connection_accepted_from_server
push esi
call fcn.1005abd0
mov dword [edi + 0x20c], 0
mov ecx, dword [esp + 0x10]
push 1
push ecx
call fcn.10094570
lea edx, [esp + 0x18]
push edx
push 1
push edi
push esi
call fcn.1008f0a0
add esp, 0x20
test eax, eax
jne 0x10070aef
cmp dword [esi + 0x1cc], eax
je 0x10070aed
push 1
push esi
call fcn.1005bed0
mov eax, dword [esp + 0x10]
mov ecx, dword [esi + 0x1d0]
mov edx, dword [esi + 0x1cc]
push 1
push eax
push ecx
call edx
push 0
push esi
mov ebx, eax
call fcn.1005bed0
add esp, 0x1c
test ebx, ebx
je 0x10070aed
push 1
push esi
call fcn.1005f660
push 1
push edi
push esi
call fcn.1005f640
add esp, 0x14
pop edi
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.101b40e2
add esp, 0x1c
ret
xor eax, eax
mov ecx, dword [esp + 0x20]
pop edi
pop ebx
xor ecx, esp
call fcn.101b40e2
add esp, 0x1c
ret
Function at 0x10074160
Capabilities:
Check http status code

Disassembly:
push ebx
mov bl, al
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
push ebp
mov ebp, dword [esi + 0xc]
shr eax, 0x1f
push edi
add eax, edx
xor edi, edi
cmp eax, 2
je 0x10074195
push str.Couldnt_set_desired_mode
push esi
call fcn.1005aa90
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x100741ac
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.1005abd0
add esp, 0xc
cmp bl, 0x13
jne 0x100741c1
push ebp
push esi
call fcn.100740e0
add esp, 8
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x14
jne 0x100741d3
mov ebx, esi
call fcn.100714b0
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x15
jne 0x100741ec
mov bl, 0xd
push 1
mov eax, esi
call fcn.10073590
add esp, 4
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x16
jne 0x10074201
mov bl, 0xe
push 1
mov eax, esi
call fcn.10073590
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop ebp
pop ebx
ret