joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10015b40
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 0x10015b5a
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 0x1006a76c
push ebx
mov dword [esp + 0x18], edi
call fcn.10051840
add esp, 8
test eax, eax
je 0x10015ba6
test edi, edi
je 0x10015b97
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 0x10015bcc
push str.AddDllDirectory
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x10015bcc
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 0x10015c80
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015be5
sub eax, edx
lea eax, [eax + edi + 1]
push eax
call dword [section..data]
mov esi, eax
add esp, 4
test esi, esi
je 0x10015c76
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x10015c76
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015c13
sub eax, edx
mov ecx, 0x5c
mov word [eax + esi], cx
mov eax, esi
lea edx, [eax + 1]
lea ebx, [ebx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10015c30
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 0x10015c40
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10015c6d
push 8
push 0
push esi
call eax
push esi
mov ebp, eax
call dword [0x1007b004]
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 [0x1007b004]
add esp, 4
pop edi
pop ebx
pop esi
mov eax, ebp
pop ebp
pop ecx
ret
Function at 0x10015c90
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x230
mov eax, dword [0x1007b430]
xor eax, esp
mov dword [esp + 0x22c], eax
test byte [esp + 0x234], 2
je 0x10015cf7
lea eax, [esp + 0x9c]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x10015cdd
mov eax, dword [esp + 0x9c]
cmp al, 2
jne 0x10015cd7
shr eax, 8
cmp al, 2
je 0x10015cf7
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, 2
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x230
ret
call fcn.1003fb30
test eax, eax
jne 0x10015db4
push esi
push 0x9c
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.1004db40
mov esi, dword [sym.imp.KERNEL32.dll_VerSetConditionMask]
add esp, 0xc
push 3
push 2
push 0
push 0
mov dword [esp + 0x14], 0x9c
mov dword [esp + 0x18], 6
mov dword [esp + 0x1c], 0
mov dword [esp + 0x24], 2
call esi
push 3
push 1
push edx
push eax
call esi
push 3
push 0x20
push edx
push eax
call esi
push 3
push 0x10
push edx
push eax
call esi
push 1
push 8
push edx
push eax
call esi
push edx
push eax
push 0x33
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_VerifyVersionInfoA]
pop esi
test eax, eax
je 0x10015da8
push 0x1007d8a0
mov dword [0x1007d8a8], 1
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
xor eax, eax
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x230
ret
mov dword [0x1007d8a8], 0
xor eax, eax
mov ecx, dword [esp + 0x22c]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x230
ret
Function at 0x10019f50
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x14
mov eax, dword [esi + 0xa90]
push 4
lea ecx, [esp + 4]
push ecx
push 8
shr eax, 0xd
push 0xffff
and eax, 1
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x10019f8f
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d_n
push esi
call fcn.100148c0
add esp, 0xc
add esp, 0x14
ret
mov edx, dword [esi + 0xa50]
push edx
mov dword [esp + 0xc], 1
call fcn.10014490
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0xa54]
push eax
call fcn.10014490
imul eax, eax, 0x3e8
add esp, 8
push 0
push 0
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push 0xc
lea edx, [esp + 0x20]
push edx
push 0x98000004
push edi
mov dword [esp + 0x24], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.WS2_32.dll_WSAIoctl]
test eax, eax
je 0x1001a008
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d_n
push esi
call fcn.100148c0
add esp, 0x10
add esp, 0x14
ret
Function at 0x1001a690
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18c
mov eax, dword [0x1007b430]
xor eax, esp
mov dword [esp + 0x188], eax
push ebp
mov ebp, dword [esp + 0x194]
cmp dword [ebp + 0x90], 2
push edi
mov edi, dword [ebp]
mov dword [esp + 0xc], edi
je 0x1001a84d
mov eax, dword [ebp + 0x294]
push ebx
push esi
test al, 2
jne 0x1001a842
test eax, 0x8000000
jne 0x1001a842
mov esi, dword [esp + 0x1a4]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x9c]
push ecx
mov ebx, 0x80
push esi
mov dword [esp + 0x1c], ebx
call dword [sym.imp.WS2_32.dll_getpeername]
test eax, eax
je 0x1001a730
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push ebx
lea edx, [esp + 0x11c]
mov esi, eax
push edx
push esi
call fcn.1003f380
push eax
push esi
push str.getpeername___failed_with_errno__d:__s
push edi
call fcn.100149a0
add esp, 0x1c
jmp 0x1001a84b
push ebx
lea eax, [esp + 0x1c]
push 0
push eax
mov dword [esp + 0x1c], ebx
call fcn.1004db40
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1001a785
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
push ebx
lea eax, [esp + 0x11c]
push eax
push esi
call fcn.1003f380
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.100149a0
add esp, 0x1c
jmp 0x1001a84b
lea edi, [ebp + 0x10a]
lea ebx, [ebp + 0x138]
lea esi, [esp + 0x98]
call fcn.1001a640
test eax, eax
jne 0x1001a7dc
call fcn.100508c6
mov esi, eax
call fcn.100508c6
mov edx, dword [esi]
push 0x80
lea ecx, [esp + 0x11c]
push ecx
push edx
mov edi, eax
call fcn.1003f380
mov ecx, dword [esp + 0x20]
push eax
mov eax, dword [edi]
push eax
push str.ssrem_inet_ntop___failed_with_errno__d:__s
push ecx
call fcn.100149a0
add esp, 0x1c
jmp 0x1001a84b
lea edi, [ebp + 0x5c]
mov ecx, 0xb
lea esi, [ebp + 0x10a]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
lea ebx, [ebp + 0x16c]
lea edi, [ebp + 0x13c]
lea esi, [esp + 0x18]
call fcn.1001a640
test eax, eax
jne 0x1001a842
call fcn.100508c6
mov esi, eax
call fcn.100508c6
push 0x80
lea edx, [esp + 0x11c]
mov edi, eax
mov eax, dword [esi]
push edx
push eax
call fcn.1003f380
mov ecx, dword [edi]
mov edx, dword [esp + 0x20]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edx
call fcn.100149a0
add esp, 0x1c
jmp 0x1001a84b
push ebp
call fcn.1001a5c0
add esp, 4
pop esi
pop ebx
mov ecx, dword [esp + 0x190]
pop edi
pop ebp
xor ecx, esp
call fcn.1004b8fc
add esp, 0x18c
ret
Function at 0x1001a870
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x88
mov eax, dword [0x1007b430]
xor eax, esp
mov dword [esp + 0x84], eax
mov eax, dword [esp + 0x8c]
push esi
mov esi, dword [eax]
push 4
lea eax, [esp + 8]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x18], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jge 0x1001a8e7
push 0x80
lea edx, [esp + 0xc]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1003f380
push eax
push str.Could_not_set_TCP_NODELAY:__s_n
push esi
call fcn.100148c0
add esp, 0x18
pop esi
mov ecx, dword [esp + 0x84]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x88
ret
push str.TCP_NODELAY_set_n
push esi
call fcn.100148c0
mov ecx, dword [esp + 0x90]
add esp, 8
pop esi
xor ecx, esp
call fcn.1004b8fc
add esp, 0x88
ret

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

Disassembly:
mov eax, dword [esp + 4]
test byte [eax + 0x1fc], 1
je 0x1001a9cd
push eax
call fcn.100117c0
add esp, 4
test eax, eax
jne 0x1001a9ed
xor eax, eax
ret
mov eax, dword [eax + 0x1a8]
cmp eax, 0xffffffff
je 0x1001a9ca
push 2
push 1
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jne 0x1001a9ed
ret
mov eax, 1
ret
Function at 0x10022b90
Capabilities:
Send data
Send data on socket

Disassembly:
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
push str.Connected_for_receive
push 0x1006a3f4
push ecx
call fcn.100148c0
add esp, 0xc
mov eax, esi
mov dword [esi], 1
call fcn.10021ba0
test eax, eax
jne 0x10022bc0
mov ecx, esi
jmp fcn.10021ff0
ret
Function at 0x10023010
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1007b430]
xor eax, esp
mov dword [esp + 0x88], eax
push ebx
push ebp
push esi
push edi
mov ebx, ecx
mov esi, dword [ebx + 0x4b8]
mov ebp, dword [ebx]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
mov edx, dword [esi + 0x154]
mov eax, dword [esi + 0x15c]
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esi + 0x14]
push 0
add edx, 4
push edx
push eax
push ecx
mov dword [esp + 0x2c], ebx
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [esi + 0x148], 0
mov dword [esi + 0x14c], eax
jne 0x10023097
mov edx, dword [esp + 0x10]
push edx
lea eax, [esp + 0x1c]
push eax
lea ecx, [esi + 0xc8]
push ecx
call fcn.1004b910
mov edx, dword [esp + 0x1c]
add esp, 0xc
mov dword [esi + 0x148], edx
mov eax, dword [esi + 0x14c]
cmp eax, 4
jge 0x100230d2
push str.Received_too_short_packet
push ebp
call fcn.100149a0
add esp, 8
mov dword [esi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.1004b8fc
add esp, 0x8c
ret
mov edx, dword [esi + 0x15c]
movzx cx, 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.0x100230f8
jmp dword [ecx*4 + 0x10023240]
cmp eax, 4
jle case.0x100230f8.4
mov ecx, dword [esi + 0x15c]
movzx dx, byte [ecx + 2]
movzx ecx, byte [ecx + 3]
shl dx, 8
movzx edx, dx
or edx, ecx
movzx ecx, word [esi + 0x40]
inc ecx
and ecx, 0xffff
cmp ecx, edx
jne case.0x100230f8.4
mov edx, dword [esi + 0x15c]
add eax, 0xfffffffc
push eax
add edx, 4
push edx
push 1
push ebx
call fcn.10014e80
mov edi, eax
add esp, 0x10
test edi, edi
je 0x10023165
mov ecx, 5
mov eax, esi
call fcn.10022f90
mov eax, edi
jmp 0x100230b9
mov eax, dword [esi + 0x14c]
sub eax, 4
cdq
add dword [ebp + 0xa0], eax
mov ecx, dword [ebp + 0xa0]
adc dword [ebp + 0xa4], edx
mov eax, dword [ebp + 0xa4]
push eax
push ecx
push ebp
call fcn.100365b0
add esp, 0xc
jmp case.0x100230f8.4
mov edi, dword [esi + 0x15c]
lea ebx, [eax - 4]
mov eax, dword [esi + 0x15c]
movzx dx, byte [eax + 2]
shl dx, 8
movzx ecx, dx
movzx edx, byte [eax + 3]
push ebx
add edi, 4
or ecx, edx
push 0
push edi
mov dword [esi + 8], ecx
call fcn.1004d610
add esp, 0xc
test eax, eax
je 0x100231e0
sub eax, edi
cmp eax, ebx
jae 0x100231e0
push edi
push str.TFTP_error:__s_n
push ebp
call fcn.100148c0
add esp, 0xc
mov ebx, dword [esp + 0x14]
push ebx
call fcn.10036810
add esp, 4
test eax, eax
je 0x100230b7
mov ecx, 5
mov eax, esi
call fcn.10022f90
mov eax, 0x2a
jmp 0x100230b9
add eax, 0xfffffffe
push eax
mov eax, dword [esi + 0x15c]
add eax, 2
push eax
push esi
call fcn.10021d90
add esp, 0xc
test eax, eax
je case.0x100230f8.4
jmp 0x100230b9
push str.Internal_error:_Unexpected_packet
push 0x1006b4ec
push ebp
call fcn.100149a0
add esp, 0xc
jmp case.0x100230f8.4
Function at 0x10024bf0
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x1007b430]
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 0x10024c25
push eax
push str.WSAStartup_failed___d_
push esi
call fcn.100149a0
add esp, 0xc
jmp 0x10024c5e
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov eax, dword [esp]
cmp al, 2
jne 0x10024c50
shr eax, 8
test al, al
jne 0x10024c50
xor eax, eax
mov ecx, dword [esp + 0x190]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x194
ret
push str.insufficient_winsock_version_to_support_telnet
push esi
call fcn.100149a0
add esp, 8
mov ecx, dword [esp + 0x190]
xor ecx, esp
mov eax, 2
call fcn.1004b8fc
add esp, 0x194
ret

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

Disassembly:
push ecx
mov edx, dword [esi + 0x1a8]
mov al, byte [esp + 8]
push edi
mov edi, dword [esi]
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 0x10024e34
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push edi
call fcn.100149a0
add esp, 0xc
mov edx, dword [esp + 0xc]
mov ecx, dword [esi]
mov eax, ebx
mov edi, str.SENT
call fcn.10024cf0
pop edi
pop ecx
ret
Function at 0x10025b50
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 ebp
mov ebp, dword [eax + 0x154]
mov dword [esp + 4], eax
jne 0x10025ca9
push ebx
push esi
push edi
lea ebx, [ebp + 0x1cb0]
lea edi, [ebp + 0x1eb0]
mov dword [edi], ebx
cmp ebx, edi
jae 0x10025b87
mov byte [ebx], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10025b92
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10025b9d
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 0x10025bcf
mov dl, byte [esp + 0x1c]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10025bdd
mov dl, byte [esp + 0x1d]
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10025be7
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10025bf1
mov byte [eax], ch
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10025bfc
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x10025c07
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
mov esi, dword [esp + 0x10]
mov ecx, eax
sub ecx, ebx
sub ecx, 2
push ecx
mov dword [ebp + 0x1eb4], eax
lea eax, [ebp + 0x1cb2]
push 0x3e
mov dword [edi], ebx
call fcn.10025050
mov edi, dword [esp + 0x20]
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 3
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_send]
push edx
call ebx
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jge 0x10025c64
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.100149a0
add esp, 0xc
lea ecx, [ebp + 0x1cb3]
push ecx
push edi
mov eax, 4
call fcn.100258d0
mov edx, dword [edi + 0x1a8]
add esp, 8
push 0
push 2
add ebp, 0x1cb7
push ebp
push edx
call ebx
test eax, eax
jge 0x10025ca6
call esi
push eax
mov eax, dword [esp + 0x14]
push str.Sending_data_failed___d_
push eax
call fcn.100149a0
add esp, 0xc
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret
Function at 0x10026860
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x18
mov eax, dword [0x1007b430]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov ebp, dword [esi + 0x1ac]
mov edi, dword [esi]
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x18]
push ecx
push ebp
or ebx, 0xffffffff
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x100268b7
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
push ebp
mov dword [esp + 0x1c], 0x10
call dword [sym.imp.WS2_32.dll_accept]
mov ebx, eax
push ebp
push esi
call fcn.1001aa00
add esp, 8
cmp ebx, 0xffffffff
jne 0x100268ec
push str.Error_accept__ing_server_connect
push edi
call fcn.100149a0
add esp, 8
pop edi
pop esi
pop ebp
mov eax, 0x1e
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x18
ret
push str.Connection_accepted_from_server_n
push edi
call fcn.100148c0
and dword [esi + 0x294], 0xfffff7ff
push 1
push ebx
mov dword [esi + 0x1ac], ebx
call fcn.10042380
add esp, 0x10
mov dword [esi + 0x1bc], 1
cmp dword [edi + 0x610], 0
je 0x1002696d
push 1
push edi
call fcn.10017c20
mov ecx, dword [edi + 0x614]
mov edx, dword [edi + 0x610]
push 1
push ebx
push ecx
call edx
push 0
push edi
mov ebx, eax
call fcn.10017c20
add esp, 0x1c
test ebx, ebx
je 0x1002696d
call fcn.100267c0
pop edi
pop esi
pop ebp
mov eax, 0x2a
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x18
ret
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.1004b8fc
add esp, 0x18
ret
Function at 0x1002a330
Capabilities:
Check http status code

Disassembly:
push ebx
mov ebx, eax
mov eax, 0x51eb851f
imul ecx
sar edx, 5
push ebp
mov ebp, dword [esp + 0xc]
mov eax, edx
shr eax, 0x1f
push esi
add eax, edx
xor esi, esi
push edi
mov edi, dword [ebx]
cmp eax, 2
je 0x1002a36a
push str.Couldnt_set_desired_mode
push edi
call fcn.100149a0
add esp, 8
pop edi
lea eax, [esi + 0x11]
pop esi
pop ebp
pop ebx
ret
cmp ecx, 0xc8
je 0x1002a381
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push edi
call fcn.100148c0
add esp, 0xc
cmp ebp, 0x13
jne 0x1002a396
push ebx
call fcn.1002a2b0
add esp, 4
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x14
jne 0x1002a3a7
call fcn.100274a0
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x15
jne 0x1002a3c0
push 0xd
push 1
push ebx
call fcn.10029540
add esp, 0xc
pop edi
mov esi, eax
pop esi
pop ebp
pop ebx
ret
cmp ebp, 0x16
jne 0x1002a3d4
push 0xe
push 1
push ebx
call fcn.10029540
add esp, 0xc
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
Function at 0x100358e0
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1007b430]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.100520dc
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10035945
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10035945
lea edx, [esp]
push edx
call dword [0x1007b00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.1004b8fc
add esp, 0x108
ret
jmp 0x100358e0

Function at 0x10035960
Capabilities:
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x1007b430]
xor eax, esp
mov dword [esp + 0x104], eax
mov eax, dword [esp + 0x10c]
push eax
call fcn.100520dc
add esp, 4
mov byte [esp], 0
test eax, eax
je 0x10035945
push 0x104
lea ecx, [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
cmp byte [esp], 0
je 0x10035945
lea edx, [esp]
push edx
call dword [0x1007b00c]
add esp, 4
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1004b8fc
add esp, 0x108
ret
mov ecx, dword [esp + 0x104]
xor ecx, esp
xor eax, eax
call fcn.1004b8fc
add esp, 0x108
ret
jmp 0x100358e0
Function at 0x10039bc0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ebx
push ebp
lea ecx, [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x1c]
xor ebx, ebx
mov dword [eax], ebx
mov eax, dword [esp + 0x20]
push edx
push eax
push ecx
mov dword [esp + 0x18], ebx
xor ebp, ebp
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 0xc], eax
cmp eax, ebx
jne 0x10039d71
push edi
mov edi, dword [esp + 0x14]
cmp edi, ebx
je 0x10039d4f
push esi
jmp 0x10039c10
cmp dword [edi + 4], 2
jne 0x10039cc8
cmp dword [edi + 0x18], ebx
je 0x10039cc8
mov eax, dword [edi + 0x10]
cmp eax, ebx
jbe 0x10039cc8
cmp eax, 0x10
jb 0x10039cc8
push 0x20
call dword [section..data]
mov esi, eax
add esp, 4
cmp esi, ebx
je 0x10039cd5
mov edx, dword [edi]
mov dword [esi], edx
mov eax, dword [edi + 4]
mov dword [esi + 4], eax
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
push 0x10
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
call dword [section..data]
add esp, 4
mov dword [esi + 0x18], eax
cmp eax, ebx
je 0x10039cdf
mov ecx, dword [edi + 0x18]
mov edx, dword [ecx]
mov dword [eax], edx
mov edx, dword [ecx + 4]
mov dword [eax + 4], edx
mov edx, dword [ecx + 8]
mov dword [eax + 8], edx
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
mov eax, dword [edi + 0x14]
cmp eax, ebx
je 0x10039cb5
push eax
call dword [0x1007b00c]
add esp, 4
mov dword [esi + 0x14], eax
cmp eax, ebx
je 0x10039cf3
cmp dword [esp + 0x10], ebx
jne 0x10039cbf
mov dword [esp + 0x10], esi
cmp ebp, ebx
je 0x10039cc6
mov dword [ebp + 0x1c], esi
mov ebp, esi
mov edi, dword [edi + 0x1c]
cmp edi, ebx
jne 0x10039c10
jmp 0x10039d0f
mov dword [esp + 0x14], 8
jmp 0x10039d0f
push esi
mov dword [esp + 0x18], 8
call dword [0x1007b004]
add esp, 4
jmp 0x10039d0f
mov edx, dword [esi + 0x18]
push edx
mov dword [esp + 0x18], 8
call dword [0x1007b004]
push esi
call dword [0x1007b004]
add esp, 8
mov eax, dword [esp + 0x18]
pop esi
cmp eax, ebx
je 0x10039d1f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0x10], ebx
je 0x10039d49
mov eax, dword [esp + 0xc]
push eax
call fcn.10039b80
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x14]
add esp, 4
pop edi
mov ecx, ebx
pop ebp
mov dword [esp + 4], ebx
mov dword [edx], ecx
pop ebx
add esp, 0xc
ret
cmp dword [esp + 0xc], ebx
jne 0x10039d62
push 0x2af9
mov dword [esp + 0x14], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x10]
mov dword [edx], ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret

Function at 0x1003a060
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.1004f5cb
add esp, 0x18
test eax, eax
je 0x1003a083
cmp eax, 0xffffffff
jne 0x1003a085
xor eax, eax
ret
Function at 0x1003cbc0
Capabilities:
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
sub esp, 0x14
push esi
push 0
push ebx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], esi
call fcn.1004db40
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000000
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x1003cca0
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 4]
lea edx, [esp]
push edx
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x1003cc81
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
mov ecx, dword [esp]
push 0
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x1003cc81
mov ecx, dword [esp]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
push 0
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x14]
push eax
push 4
push ecx
call ebp
test eax, eax
je 0x1003cc80
cmp esi, dword [esp + 0xc]
jb 0x1003cc80
mov eax, dword [esp + 4]
push 0
lea edx, [esp + 0x18]
push edx
push ebx
push 2
push eax
call ebp
pop ebp
mov eax, dword [esp]
test eax, eax
je 0x1003cc8f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x1003cca0
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret