joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009dd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x6c
mov dword [ebp - 8], 0
jmp 0x10009df2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc
jge 0x10009e31
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x6fad512a]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10009e2c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10009de9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10009e50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x49
mov dword [ebp - 8], 0
jmp 0x10009e72
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc
jge 0x10009eb1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x16440e0f]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10009eac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10009e69
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10009ed0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x4c
mov dword [ebp - 8], 0
jmp 0x10009ef2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xc
jge 0x10009f31
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx - 0x79547e8b]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10009f2c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10009ee9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xc], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4

Function at 0x10009f50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x65
mov dword [ebp - 8], 0
jmp 0x10009f72
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xb
jge 0x10009fb1
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x592a861c]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x10009fac
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10009f69
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xb], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x10009fd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x29
mov dword [ebp - 8], 0
jmp 0x10009ff2
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xb
jge 0x1000a031
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 8]
movsx edx, byte [ecx + 0x1e7b41dd]
xor edx, dword [ebp - 4]
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
mov byte [eax], dl
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
and edx, 0x800000ff
jns 0x1000a02c
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 4], edx
jmp 0x10009fe9
mov eax, dword [ebp - 0xc]
mov byte [eax + 0xb], 0
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x100187c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x20]
cmp dword [ebx], 0x100a305c
mov ecx, dword [ebx + 8]
mov eax, dword [ebx + 0xc]
push edi
mov dword [esp + 0x1c], ecx
jne 0x100187e2
add eax, 0x18c
jmp 0x100187e7
add eax, 0x140
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x34]
test eax, eax
je 0x100187f9
mov dword [eax], 0
mov edi, dword [esp + 0x28]
cmp dword [edi + 0x9f0], 0
jne 0x1001880e
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
mov ecx, dword [ecx + 8]
push ebp
push esi
mov esi, dword [edi + 0x9f0]
mov eax, dword [esi + 0x14]
push ecx
mov dword [esp + 0x34], eax
call dword [0x100a300c]
mov ebp, eax
add esp, 4
mov dword [esp + 0x10], ebp
test ebp, ebp
je 0x100189a3
mov eax, dword [ebx + 0xc]
cmp dword [eax + 0x1fc], 0
je 0x10018870
mov edx, dword [eax + 0x64]
push edx
call dword [0x100a300c]
add esp, 4
mov dword [esp + 0x18], eax
test eax, eax
jne 0x10018878
push ebp
call dword [0x100a3004]
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 0x10018890
mov eax, dword [eax + 0x4e8]
mov dword [esp + 0x1c], eax
jmp 0x10018898
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [edi + 0x78]
test eax, eax
je 0x100188ae
test byte [eax + 4], 0x10
je 0x100188ae
add eax, 0x78
mov dword [esp + 0x14], eax
jmp 0x100188b8
lea ecx, [edi + 0x9f4]
mov dword [esp + 0x14], ecx
mov ebx, dword [edi + 0x50c]
mov eax, 1
cmp ebx, eax
jbe 0x10018900
mov ecx, dword [edi + 0x9f0]
lea edx, [eax + 0x6b]
sub ecx, 0xffffff80
cmp dword [ecx - 8], 0
je 0x10018900
mov ebp, dword [esp + 0x30]
cmp dword [ecx], ebp
jge 0x100188f1
mov esi, dword [edi + 0x9f0]
mov ebp, dword [esi + edx + 0x14]
add esi, edx
mov dword [esp + 0x30], ebp
mov ebp, dword [esp + 0x10]
inc eax
add edx, 0x6c
add ecx, 0x6c
cmp eax, ebx
jb 0x100188d3
cmp eax, ebx
jne 0x1001890f
push esi
call fcn.10017440
add esp, 4
jmp 0x1001891a
imul eax, eax, 0x6c
add eax, dword [edi + 0x9f0]
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 [0x100a3004]
mov ecx, dword [esi + 4]
push ecx
call dword [0x100a3004]
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 + 0x30]
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.10016ff0
add esp, 0x10
test eax, eax
jne 0x100189b0
push edi
call fcn.10017240
push ebp
mov dword [esi + 0xc], 0
call dword [0x100a3004]
push ebx
call dword [0x100a3004]
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 0x100189be
mov dword [eax], 1
pop esi
pop ebp
pop edi
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x10018e90
Capabilities:
Hash data using djb2

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + eax]
mov ebx, 0x1505
cmp esi, edi
jae 0x10018ebe
movzx eax, byte [esi]
push eax
call fcn.10013bf0
mov edx, ebx
shl edx, 5
movsx ecx, al
add ebx, edx
inc esi
add esp, 4
xor ebx, ecx
cmp esi, edi
jb 0x10018ea1
pop edi
pop esi
movzx eax, bl
pop ebx
ret

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

Disassembly:
push ecx
push esi
mov esi, eax
test esi, esi
je 0x10018f01
push esi
call fcn.1003ffa0
add esp, 4
test eax, eax
jne 0x10018f01
lea eax, [esp + 4]
push eax
call fcn.10018e30
add esp, 4
mov ecx, eax
mov eax, dword [esp + 4]
pop esi
add esp, 4
jmp fcn.10018e90
xor eax, eax
pop esi
pop ecx
ret

Function at 0x1001c8b0
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 0x1001c8ca
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 0x10083b58
push ebx
mov dword [esp + 0x18], edi
call dword [sym.imp.MSVCR100.dll_strpbrk]
add esp, 8
test eax, eax
je 0x1001c917
test edi, edi
je 0x1001c908
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 0x1001c93d
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001c93d
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 0x1001c9f0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001c956
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x1001c9e6
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x1001c9e6
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001c984
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
jmp 0x1001c9a0
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1001c9a0
sub eax, edx
lea edx, [eax + esi]
mov ecx, ebx
sub edx, ebx
mov al, byte [ecx]
mov byte [edx + ecx], al
inc ecx
test al, al
jne 0x1001c9b0
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1001c9dd
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x100a3004]
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 [0x100a3004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x1001cae0
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x790], 0
je 0x1001cb79
cmp dword [esi + 0x1c4], 0
push edi
je 0x1001cb38
push esi
call fcn.1001e030
push 1
push esi
mov edi, eax
call fcn.1001e000
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.1001e000
add esp, 0x28
pop edi
pop esi
ret
mov eax, dword [esp + 0x10]
test eax, eax
js 0x1001cb78
cmp eax, 2
jg 0x1001cb78
mov edx, dword [esi + 0x170]
mov edi, dword [sym.imp.MSVCR100.dll_fwrite]
push edx
push 1
lea eax, [eax + eax*2 + 0x10083b98]
push 2
push eax
call edi
mov ecx, dword [esi + 0x170]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x24]
push ecx
push 1
push edx
push eax
call edi
add esp, 0x20
pop edi
pop esi
ret

Function at 0x1001cb80
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x108
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
mov esi, dword [esp + 0x110]
cmp dword [esi + 0x790], 0
jne 0x1001cbb2
cmp dword [esi + 0x178], 0
je 0x1001cc9e
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.100245f0
mov edx, dword [esi + 0x178]
add esp, 0x10
mov edi, eax
test edx, edx
je 0x1001cc04
cmp dword [esi + 0xe84], 0
jne 0x1001cc04
lea ecx, [esp + 8]
mov edi, edi
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
test al, al
jne 0x1001cbf0
mov dword [esi + 0xe84], 1
mov byte [esp + edi + 8], 0xa
inc edi
cmp dword [esi + 0x790], 0
mov byte [esp + edi + 8], 0
je 0x1001cc9d
cmp dword [esi + 0x1c4], 0
push ebx
je 0x1001cc70
push esi
call fcn.1001e030
push 1
push esi
mov ebx, eax
call fcn.1001e000
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.1001e000
add esp, 0x28
pop ebx
pop edi
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1005cc54
add esp, 0x108
ret
mov eax, dword [esi + 0x170]
mov ebx, dword [sym.imp.MSVCR100.dll_fwrite]
push eax
push 1
push 2
push 0x10083b98
call ebx
mov ecx, dword [esi + 0x170]
push ecx
push 1
lea edx, [esp + 0x24]
push edi
push edx
call ebx
add esp, 0x20
pop ebx
pop edi
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.1005cc54
add esp, 0x108
ret
Function at 0x1002a8d0
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
push str.Connected_for_receive
push 0x10083d14
push eax
call fcn.1001ccc0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10029930
test eax, eax
jne 0x1002a8fe
mov ecx, esi
jmp fcn.10029cd0
ret
Function at 0x1002ad70
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [ebx + 0xc]
push ebp
push esi
mov esi, dword [eax + 0x408]
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 0x1002adf1
mov eax, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esi + 0xb0]
push edx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esp + 0x18]
add esp, 0xc
mov dword [esi + 0x130], eax
mov eax, dword [esi + 0x134]
cmp eax, 4
jge 0x1002ae2b
push str.Received_too_short_packet
push ebx
call fcn.1001cb80
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.1005cc54
add esp, 0x88
ret
mov edx, dword [esi + 0x148]
movzx ecx, byte [edx]
movzx edx, byte [edx + 1]
shl cx, 8
movzx ecx, cx
or ecx, edx
mov dword [esi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x1002ae50
jmp dword [ecx*4 + 0x1002afcc]
cmp eax, 4
jle case.0x1002ae50.4
mov ecx, dword [esi + 0x148]
movzx edx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx edx, dx
or edx, ecx
movzx ecx, word [esi + 0x144]
inc ecx
and ecx, 0xffff
cmp ecx, edx
jne case.0x1002ae50.4
mov edx, dword [esi + 0x148]
add eax, 0xfffffffc
push eax
add edx, 4
push edx
push 1
push ebx
call fcn.10020e80
mov edi, eax
add esp, 0x10
test edi, edi
je 0x1002aed2
mov ecx, 5
mov eax, esi
call fcn.1002acf0
mov eax, edi
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.1005cc54
add esp, 0x88
ret
mov eax, dword [esi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
mov ecx, dword [ebx + 0x90]
adc dword [ebx + 0x94], edx
mov eax, dword [ebx + 0x94]
push eax
push ecx
push ebx
call fcn.100424e0
jmp 0x1002af8f
mov edi, dword [esi + 0x148]
lea ebp, [eax - 4]
mov eax, dword [esi + 0x148]
movzx edx, byte [eax + 2]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 3]
push ebp
add edi, 4
or ecx, edx
push 0
push edi
mov dword [esi + 8], ecx
call dword [sym.imp.MSVCR100.dll_memchr]
add esp, 0xc
test eax, eax
je case.0x1002ae50.4
sub eax, edi
cmp eax, ebp
jae case.0x1002ae50.4
push edi
push str.TFTP_error:__s
push ebx
call fcn.1001ccc0
jmp 0x1002af8f
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 0x148]
add eax, 2
push eax
push esi
call fcn.10029a30
add esp, 0xc
test eax, eax
je case.0x1002ae50.4
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.1005cc54
add esp, 0x88
ret
push str.Internal_error:_Unexpected_packet
push 0x10083d14
push ebx
call fcn.1001cb80
add esp, 0xc
push ebx
call fcn.10042e20
add esp, 4
test eax, eax
je 0x1002ae11
mov ecx, 5
mov eax, esi
call fcn.1002acf0
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
xor ecx, esp
mov eax, 0x2a
call fcn.1005cc54
add esp, 0x88
ret
Function at 0x1002b370
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
jns 0x1002b3b4
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.1001cb80
add esp, 0xc
push esi
mov esi, dword [esp + 0xc]
push str.SENT
mov eax, ebx
mov ecx, edi
call fcn.1002b270
add esp, 4
pop esi
pop ecx
ret
Function at 0x1002c130
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 0x1002c285
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb4]
lea edi, [ebp + 0x1eb4]
mov dword [edi], ebx
cmp ebx, edi
jae 0x1002c168
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002c173
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002c17e
mov byte [eax], 0x1f
inc dword [edi]
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 0x1002c1b0
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002c1be
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002c1c8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002c1d2
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002c1dd
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1002c1e8
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x18]
mov dword [ebp + 0x1eb8], eax
sub eax, ebx
sub eax, 2
push eax
lea ecx, [ebp + 0x1cb6]
mov eax, 0x3e
mov dword [edi], ebx
call fcn.1002b5c0
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
jns 0x1002c240
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1001cb80
add esp, 0xc
lea eax, [ebp + 0x1cb7]
push eax
push esi
mov eax, 4
call fcn.1002bee0
mov ecx, dword [ebx + 0x120]
add esp, 8
push 0
push 2
add ebp, 0x1cbb
push ebp
push ecx
call edi
test eax, eax
jns 0x1002c282
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1001cb80
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x10031cf0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x8c
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x88], 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], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10031d51
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
push ebx
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_accept]
mov dword [esp + 8], eax
cmp dword [esp + 8], 0xffffffff
jne 0x10031d82
push str.Error_accept__ing_server_connect
push esi
call fcn.1001cb80
add esp, 8
pop edi
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1005cc54
add esp, 0x8c
ret
push str.Connection_accepted_from_server
push esi
call fcn.1001ccc0
mov dword [edi + 0x20c], 0
mov ecx, dword [esp + 0x10]
push 1
push ecx
call fcn.10052220
lea edx, [esp + 0x18]
push edx
push 1
push edi
push esi
call fcn.1004dc70
add esp, 0x20
test eax, eax
jne 0x10031e21
cmp dword [esi + 0x1cc], eax
je 0x10031e1f
push 1
push esi
call fcn.1001e000
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.1001e000
add esp, 0x1c
test ebx, ebx
je 0x10031e1f
push 1
push esi
call fcn.100210a0
push 1
push edi
push esi
call fcn.10021080
add esp, 0x14
pop edi
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.1005cc54
add esp, 0x8c
ret
xor eax, eax
mov ecx, dword [esp + 0x90]
pop edi
pop ebx
xor ecx, esp
call fcn.1005cc54
add esp, 0x8c
ret
Function at 0x10035620
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 0x10035655
push str.Couldnt_set_desired_mode
push esi
call fcn.1001cb80
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x1003566c
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200
push esi
call fcn.1001ccc0
add esp, 0xc
cmp bl, 0x13
jne 0x10035681
push ebp
push esi
call fcn.100355a0
add esp, 8
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x14
jne 0x10035693
mov ebx, esi
call fcn.10032880
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x15
jne 0x100356ac
mov bl, 0xd
push 1
mov eax, esi
call fcn.10034ab0
add esp, 4
mov edi, eax
pop edi
pop ebp
pop ebx
ret
cmp bl, 0x16
jne 0x100356c1
mov bl, 0xe
push 1
mov eax, esi
call fcn.10034ab0
add esp, 4
mov edi, eax
mov eax, edi
pop edi
pop ebp
pop ebx
ret
Function at 0x1003ff20
Capabilities:
Create udp socket

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1003ff62
mov eax, dword [esi + 0x70]
cmp byte [eax + 0xf8], 0
jne 0x1003ff4f
push 0
call fcn.1003ff20
mov edx, dword [esi + 0x70]
add esp, 4
test eax, eax
setne cl
inc cl
mov byte [edx + 0xf8], cl
mov eax, dword [esi + 0x70]
xor ecx, ecx
cmp byte [eax + 0xf8], 2
pop esi
sete cl
mov eax, ecx
ret
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1003ff7e
xor esi, esi
xor eax, eax
test esi, esi
setg al
pop esi
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
test esi, esi
setg al
pop esi
ret
Function at 0x10040ea0
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
push esi
xor ebp, ebp
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x100a3008]
mov edi, eax
add esp, 8
test edi, edi
je 0x10040e68
lea ebx, [ebx]
mov eax, dword [esp + 0x14]
push esi
push edi
push eax
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x10040e80
cmp esi, ebx
je 0x10040e80
cmp esi, 0x8000
ja 0x10040e80
cmp esi, ebx
jb 0x10040e79
push esi
push edi
call dword [0x100a3008]
mov edi, eax
add esp, 8
test edi, edi
jne 0x10040e30
push ebp
call dword [0x100a3004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x100a3004]
add esp, 4
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
jmp 0x10040e10