joyce8/EMBER2024-capa huggingface dataset:
Function at 0x454529
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00454480
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x454558
mov eax, 0xea61
jmp 0x4545d6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x454568
mov eax, 0xea62
jmp 0x4545d6
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00454480
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x454595
mov eax, 0xea62
jmp 0x4545d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x4545ad
mov eax, 0xea65
jmp 0x4545d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x4545c2
mov eax, 0xea66
jmp 0x4545d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x4545d2
mov eax, 0xea67
jmp 0x4545d6
xor eax, eax
jmp 0x4545d6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409ebd
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov eax, section.sect_0
call 0x409ebd
lcall 0x5de5, 0x8b10c483
jmp fcn.0076d6b4
Function at 0x43bc40
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0043544c
xor ebx, ebx
cmp dword [0x453af4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x43bd16
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x43bdf6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x43bdf6
push eax
call fcn.004353de
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x453af4], eax
call esi
push eax
call fcn.004353de
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x453af8], eax
call esi
push eax
call fcn.004353de
mov dword [0x453afc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00435c5a
test eax, eax
pop ecx
pop ecx
je 0x43bce4
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004328e2
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x43bd16
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.004353de
cmp eax, ebx
pop ecx
mov dword [0x453b04], eax
je 0x43bd16
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004353de
pop ecx
mov dword [0x453b00], eax
mov eax, dword [0x453b00]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x43bd9b
cmp dword [0x453b04], ecx
je 0x43bd9b
push eax
call fcn.00435455
push dword [0x453b04]
mov esi, eax
call fcn.00435455
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x43bd9b
cmp edi, ebx
je 0x43bd9b
call esi
cmp eax, ebx
je 0x43bd68
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x43bd68
test byte [ebp - 0x18], 1
jne 0x43bd9b
lea eax, [ebp - 0x10]
push eax
call fcn.00435c91
test eax, eax
pop ecx
je 0x43bd83
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.004328e2
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x43bd92
or dword [ebp + 0x10], 0x200000
jmp 0x43bdd6
or dword [ebp + 0x10], 0x40000
jmp 0x43bdd6
mov eax, dword [0x453af8]
cmp eax, dword [ebp - 8]
je 0x43bdd6
push eax
call fcn.00435455
cmp eax, ebx
pop ecx
je 0x43bdd6
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x43bdd6
mov eax, dword [0x453afc]
cmp eax, dword [ebp - 8]
je 0x43bdd6
push eax
call fcn.00435455
cmp eax, ebx
pop ecx
je 0x43bdd6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x453af4]
call fcn.00435455
cmp eax, ebx
pop ecx
je 0x43bdf6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x43bdf8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
pop eax
nop
nop
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x101f957
Capabilities:
Read .ini file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x200c
call fcn.0100b900
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x2008], 0
push ebx
mov ebx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x14]
test edi, edi
jne 0x101f996
and dword [ebp - 0x2008], edi
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101fab8
push esi
mov esi, 0x1000
push esi
lea eax, [ebp - 0x2004]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push edi
push esi
lea eax, [ebp - 0x2004]
push eax
push 0x1008c08
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionW]
cmp eax, 0xffe
jne 0x101f9dd
and dword [ebp - 0x2008], 0
push 0x6f
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x101fab7
xor eax, eax
xor ecx, ecx
lea esi, [ebp - 0x2004]
cmp word [ebp + ecx*2 - 0x2004], ax
jne 0x101f9ff
cmp word [ebp + ecx*2 - 0x2002], ax
je 0x101fab7
cmp ecx, 0xfff
jae 0x101fab7
cmp word [esi], ax
jne 0x101fa13
inc esi
inc esi
inc ecx
mov edi, esi
jmp 0x101fa1a
inc esi
inc esi
inc ecx
cmp word [esi], ax
jne 0x101fa17
cmp ebx, eax
je 0x101fa2e
mov edx, dword [ebp - 0x2008]
cmp edx, dword [ebp + 8]
je 0x101fa3a
cmp edi, esi
je 0x101f9e7
inc dword [ebp - 0x2008]
jmp 0x101f9e7
push 0x3d
push edi
call sub.msvcrt.dll_wcschr
pop ecx
pop ecx
mov dword [ebp - 0x200c], eax
test eax, eax
je 0x101fa50
mov esi, eax
sub esi, edi
sar esi, 1
cmp esi, dword [ebp + 0x10]
jb 0x101fa5d
push 0x7a
jmp 0x101faaa
push esi
push edi
push dword [ebp + 0x10]
push ebx
call fcn.0101946b
push 2
xor eax, eax
push ebx
mov word [ebx + esi*2], ax
call fcn.01019403
movzx eax, ax
test eax, eax
je 0x101faa3
cmp eax, 0x7f
je 0x101faa3
mov eax, dword [ebp - 0x200c]
test eax, eax
je 0x101fab7
add eax, 2
push eax
call sub.msvcrt.dll__wtoi
or eax, 0x10000000
pop ecx
mov dword [ebp - 0x2008], eax
jmp 0x101fab7
xor eax, eax
mov word [ebx], ax
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
and dword [ebp - 0x2008], 0
pop esi
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x2008]
pop edi
xor ecx, ebp
pop ebx
call fcn.0100b8c5
leave
ret 0x10
Function at 0x420860
Capabilities:
Inspect section memory permissions

Disassembly:
sub esp, 0x124
push ebx
push ebp
push esi
push edi
mov ecx, 0x3e
xor eax, eax
lea edi, [esp + 0x3c]
xor ebx, ebx
rep stosd dword es:[edi], eax
mov ecx, 0xa
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x138]
lea eax, [esp + 0x3c]
push eax
push ecx
mov dword [esp + 0x18], ebx
xor esi, esi
call fcn.00420cd0
add eax, 4
movsx edx, word [esp + 0x50]
jo 0x4209b6
add eax, 0x14
jo 0x4209b6
add eax, edx
jo 0x4209b6
mov edi, eax
mov ax, word [esp + 0x42]
sub ax, 1
jo 0x4209b6
movsx ebp, ax
cmp ebp, ebx
jl 0x4209a7
lea ecx, [esp + 0x14]
push ecx
call fcn.004210b0
push 0x28
push edi
push eax
call fcn.00421000
mov eax, dword [esp + 0x38]
test eax, 0x20000000
je 0x42091e
test eax, 0x40000000
je 0x42090d
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x20
add eax, 0x20
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 0x70
add eax, 0x10
jmp 0x420943
test eax, 0x40000000
je 0x420936
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 2
add eax, 2
jmp 0x420943
and eax, 0x80000000
neg eax
sbb eax, eax
and eax, 7
inc eax
lea edx, [esp + 0x10]
mov esi, eax
push edx
call fcn.004210b0
push eax
push esi
mov ecx, dword [esp + 0x28]
mov esi, dword [esp + 0x140]
mov eax, dword [esp + 0x24]
add ecx, esi
push eax
jo 0x4209b6
push ecx
call fcn.00420fe0
test eax, eax
je 0x420990
add edi, 0x28
jo 0x4209b6
add ebx, 1
jo 0x4209b6
cmp ebx, ebp
jle 0x4208d7
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x124
ret 4
mov esi, 4
call dword [sym.imp.KERNEL32.DLL_SetFileApisToANSI]
call dword [sym.imp.KERNEL32.DLL_SetFileApisToOEM]
call dword [sym.imp.USER32.DLL_WaitMessage]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x124
ret 4
call dword [sym.imp.MSVBVM60.DLL___vbaErrorOverflow]
nop
nop
nop
nop

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
nop
nop
nop
pop eax
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
nop
jl 0x433030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x10003fa0
Capabilities:
Read file on windows

Disassembly:
push edi
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x10003fc2
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x10003fb6
xor eax, eax
pop edi
ret
mov eax, dword [eax + 8]
push eax
push edi
push 1
push ebx
call ecx
jmp 0x10003ff4
cmp dword [esi + 8], 0
jne 0x10003fe6
mov ecx, dword [eax + 8]
push 0x100397e4
push ecx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x10003fe6
or eax, 0xffffffff
pop edi
ret
mov edx, dword [esi + 8]
push edx
push edi
push 1
push ebx
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x10004017
mov eax, dword [esi + 8]
test eax, eax
je 0x10004011
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, edi
pop edi
ret
Function at 0x100047c0
Capabilities:
Read file on windows

Disassembly:
mov eax, 0x2018
call fcn.10037a70
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x2014], eax
mov ecx, dword [esp + 0x2020]
mov edx, dword [esp + 0x2024]
mov eax, dword [esp + 0x201c]
mov dword [esp + 8], ecx
lea ecx, [esp + 0xc]
push ecx
push 0
mov dword [esp + 0xc], edx
push eax
lea edx, [esp + 0xc]
push edx
push 0
call fcn.10004110
add esp, 0x14
test eax, eax
jne 0x10004905
mov eax, dword [esp]
push ebx
push ebp
push esi
push edi
mov ebp, eax
test eax, eax
je 0x100048f2
mov eax, dword [ebp + 4]
cmp eax, 3
je 0x10004864
cmp eax, 2
je 0x10004864
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [esp + 0x18]
push eax
push ecx
push edx
call dword [esp + 0x20]
add esp, 0xc
cmp dword [ebp + 0xc], eax
je 0x100048e7
lea ecx, [esp + 0x10]
push ecx
call fcn.10003d40
add esp, 4
or eax, 0xffffffff
jmp 0x10004901
mov ebx, ebp
xor esi, esi
cmp dword [ebx + 4], 2
jne 0x10004872
xor edi, edi
jmp 0x100048cd
test esi, esi
jne 0x10004892
mov eax, dword [ebx + 8]
push 0x100397e4
push eax
call dword [sym.imp.MSVCR90.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x10004928
push esi
push 0x2000
lea ecx, [esp + 0x2c]
push 1
push ecx
call dword [sym.imp.MSVCR90.dll_fread]
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x100048c0
test esi, esi
je 0x100048be
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
xor esi, esi
mov ebx, dword [ebx]
cmp edi, 0xffffffff
je 0x1000491a
cmp edi, 0x2000
ja 0x1000491a
mov eax, dword [esp + 0x18]
push edi
lea edx, [esp + 0x28]
push edx
push eax
call dword [esp + 0x20]
add esp, 0xc
cmp edi, eax
jne 0x1000491a
test edi, edi
jne 0x10004868
mov ebp, dword [ebp]
test ebp, ebp
jne 0x10004825
lea eax, [esp + 0x10]
push eax
call fcn.10003d40
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x2014]
xor ecx, esp
call fcn.100377f0
add esp, 0x2018
ret
test esi, esi
je 0x10004928
push esi
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
lea edx, [esp + 0x10]
push edx
call fcn.10003d40
add esp, 4
or eax, 0xffffffff
jmp 0x10004901
Function at 0x10009f30
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
push 0
push eax
push ecx
push edx
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x10009f62
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
sub eax, 0x2733
neg eax
sbb eax, eax
and eax, 0xffffffe7
add eax, 0x51
ret
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
xor eax, eax
ret

Function at 0x1000a0a0
Capabilities:
Write file on windows

Disassembly:
mov ecx, dword [esi + 0x1a8]
push ebp
mov ebp, dword [esp + 8]
test ecx, ecx
je 0x1000a0c1
mov edx, dword [esi + 0x134]
push edx
push ebx
push ebp
push eax
push esi
call ecx
add esp, 0x14
pop ebp
ret
test eax, eax
jl 0x1000a0f7
cmp eax, 2
jg 0x1000a0f7
mov ecx, dword [esi + 0x130]
push edi
mov edi, dword [sym.imp.MSVCR90.dll_fwrite]
push ecx
push 1
lea edx, [eax + eax*2 + 0x1003a5e8]
push 2
push edx
call edi
mov eax, dword [esi + 0x130]
push eax
push 1
push ebx
push ebp
call edi
add esp, 0x20
pop edi
xor eax, eax
pop ebp
ret

Function at 0x1000a100
Capabilities:
Write file on windows

Disassembly:
sub esp, 0xa4
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0xa0], eax
mov eax, dword [esp + 0xb8]
push ebx
push ebp
mov ebp, dword [esp + 0xb8]
push esi
mov esi, dword [esp + 0xb4]
cmp dword [esi + 0x2e8], 0
push edi
je case.default.0x1000a162
test eax, eax
je case.default.0x1000a162
mov eax, dword [eax + 0x9c]
test eax, eax
je case.default.0x1000a162
mov edx, dword [esp + 0xbc]
dec edx
mov ecx, str.Data
cmp edx, 3
ja case.default.0x1000a162
jmp dword [edx*4 + 0x1000a22c]
mov ecx, str.Header
mov edx, str.from
jmp 0x1000a17f
mov ecx, str.Header
mov edx, 0x1003a60c
push eax
push edx
push ecx
push str.__s__s__s_
lea eax, [esp + 0x20]
push 0xa0
push eax
call sym.libcurl.dll_curl_msnprintf
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1000a1a0
sub eax, edx
mov edi, eax
mov eax, dword [esi + 0x1a8]
test eax, eax
je 0x1000a1fe
mov ecx, dword [esi + 0x134]
push ecx
push edi
lea edx, [esp + 0x18]
push edx
push 0
push esi
call eax
add esp, 0x14
test eax, eax
jne 0x1000a1e5
mov ebx, dword [esp + 0xc4]
mov eax, dword [esp + 0xbc]
push ebp
call fcn.1000a0a0
add esp, 4
mov ecx, dword [esp + 0xb0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100377f0
add esp, 0xa4
ret
mov eax, dword [esi + 0x130]
mov ebx, dword [sym.imp.MSVCR90.dll_fwrite]
push eax
push 1
push 2
push 0x1003a5e8
call ebx
mov ecx, dword [esi + 0x130]
push ecx
push 1
lea edx, [esp + 0x28]
push edi
push edx
call ebx
add esp, 0x20
jmp case.default.0x1000a162
Function at 0x1000a450
Capabilities:
Send data
Send data on socket

Disassembly:
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + eax*4 + 0x154]
push edi
push 0
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [esp + 0x20]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x1000a4cd
push ebp
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebp, eax
cmp ebp, 0x2733
jne 0x1000a4a4
pop ebp
pop edi
pop esi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
ret
push ebp
push esi
call fcn.10024630
push eax
mov eax, dword [esi]
push str.Send_failure:__s
push eax
call fcn.1000a2d0
mov ecx, dword [esi]
add esp, 0x14
mov dword [ecx + 0x860c], ebp
mov dword [ebx], 0x37
mov eax, edi
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1000a880
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esi + 0x158]
push ebp
mov ebp, dword [esi]
push edi
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x14]
push ecx
push ebx
or edi, 0xffffffff
mov dword [esp + 0x18], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x1000a8da
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 edi, eax
push ebx
push esi
call fcn.1001f860
add esp, 8
cmp edi, 0xffffffff
jne 0x1000a914
push str.Error_accept__ing_server_connect
push ebp
call fcn.1000a2d0
add esp, 8
pop edi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.100377f0
add esp, 0x88
ret
push str.Connection_accepted_from_server_n
push ebp
call fcn.1000a240
push 1
push edi
mov dword [esi + 0x158], edi
call fcn.1002a110
mov dword [esi + 0x168], 1
mov eax, dword [ebp + 0x1b0]
add esp, 0x10
test eax, eax
je 0x1000a988
mov ecx, dword [ebp + 0x1b4]
push 1
push edi
push ecx
call eax
add esp, 0xc
test eax, eax
je 0x1000a988
push edi
push esi
call fcn.1001f860
add esp, 8
pop edi
pop ebp
mov dword [esi + 0x158], 0xffffffff
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.100377f0
add esp, 0x88
ret
mov ecx, dword [esp + 0x90]
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.100377f0
add esp, 0x88
ret
Function at 0x1000e3d0
Capabilities:
Check http status code

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, eax
mov ebx, dword [edi]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
xor esi, esi
cmp eax, 2
je 0x1000e40a
push str.Couldnt_set_desired_mode
push ebx
call fcn.1000a2d0
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x1000e421
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push ebx
call fcn.1000a240
add esp, 0xc
cmp ebp, 0x13
jne 0x1000e436
push edi
call fcn.1000e350
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x1000e44b
push edi
call fcn.1000b460
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x1000e463
push 0xd
push 1
call fcn.1000d6c0
add esp, 8
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x1000e476
push 0xe
push 1
call fcn.1000d6c0
add esp, 8
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

Function at 0x10016df0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10016e56
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10016e56
lea edx, [esp]
push edx
call dword [0x10044044]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100377f0
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.100377f0
add esp, 0x108
ret
jmp 0x10016df0

Function at 0x10016e70
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call dword [sym.imp.MSVCR90.dll_getenv]
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10016e56
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10016e56
lea edx, [esp]
push edx
call dword [0x10044044]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.100377f0
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.100377f0
add esp, 0x108
ret
jmp 0x10016df0

Function at 0x100185c0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x10044060]
xor eax, esp
mov dword [esp + 0x190], eax
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
je 0x100185f5
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.1000a2d0
add esp, 0xc
jmp 0x1001862e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x10018620
shr eax, 8
test al, al
jne 0x10018620
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.100377f0
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.1000a2d0
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.100377f0
add esp, 0x194
ret
Function at 0x100187c0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
mov edx, dword [edi + 0x154]
mov al, byte [esp + 8]
push esi
mov esi, dword [edi]
push 0
push 3
lea ecx, [esp + 0xc]
push ecx
push edx
mov byte [esp + 0x14], 0xff
mov byte [esp + 0x15], al
mov byte [esp + 0x16], bl
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jge 0x10018804
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1000a2d0
add esp, 0xc
mov esi, dword [esp + 0xc]
mov ecx, dword [edi]
push str.SENT
mov eax, ebx
call fcn.100186c0
add esp, 4
pop esi
pop ecx
ret
Function at 0x100194e0
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
mov eax, dword [esp + 8]
mov eax, dword [eax]
push ebx
mov ebx, dword [eax + 0x128]
mov dword [esp + 4], eax
jne 0x10019649
push ebp
push esi
push edi
lea edi, [ebx + 0x1cb0]
lea ebp, [ebx + 0x1eb0]
mov dword [ebp], edi
cmp edi, ebp
jae 0x10019519
mov byte [edi], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10019526
mov byte [eax], 0xfa
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10019533
mov byte [eax], 0x1f
inc dword [ebp]
movzx ecx, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push ecx
call esi
movzx edx, ax
movzx eax, word [ebx + 0x1caa]
push eax
mov dword [esp + 0x20], edx
call esi
movzx ecx, ax
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10019567
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10019577
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x10019583
mov byte [eax], cl
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1001958f
mov byte [eax], ch
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x1001959c
mov byte [eax], 0xff
inc dword [ebp]
mov eax, dword [ebp]
cmp eax, ebp
jae 0x100195a9
mov byte [eax], 0xf0
inc dword [ebp]
mov eax, dword [ebp]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, edi
sub ecx, 2
push ecx
mov dword [ebx + 0x1eb4], eax
lea eax, [ebx + 0x1cb2]
push 0x3e
mov dword [ebp], edi
call fcn.10018a20
mov ebp, dword [sym.imp.WS2_32.dll_send]
add esp, 8
push 0
push 3
push edi
mov edi, dword [esp + 0x24]
mov edx, dword [edi + 0x154]
push edx
call ebp
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x10019608
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.1000a2d0
add esp, 0xc
lea ecx, [ebx + 0x1cb3]
push 4
push ecx
call fcn.100192b0
mov edx, dword [edi + 0x154]
add esp, 8
push 0
push 2
add ebx, 0x1cb7
push ebx
push edx
call ebp
test eax, eax
jge 0x10019646
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.1000a2d0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret