joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007a8d0
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x1007a8e2
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1007a900
xor esi, esi
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
xor eax, eax
cmp eax, esi
pop esi
sbb eax, eax
neg eax
ret

Function at 0x1007a920
Capabilities:
Create udp socket

Disassembly:
mov eax, dword [esp + 8]
cmp byte [eax + 0x100], 2
jne 0x1007a96d
mov eax, dword [esp + 4]
test eax, eax
je 0x1007a93f
mov eax, dword [eax + 0x70]
mov al, byte [eax + 0xe3]
ret
push esi
push 0
push 2
push 0x17
call dword [sym.imp.WS2_32.dll_socket]
cmp eax, 0xffffffff
jne 0x1007a95a
xor esi, esi
test esi, esi
pop esi
setne al
ret
push eax
mov esi, 1
call dword [sym.imp.WS2_32.dll_closesocket]
test esi, esi
pop esi
setne al
ret
mov al, 1
ret

Function at 0x1007aae0
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x1007aafc
cmp dword [esi + 0x78], 0
je 0x1007aafc
push 2
push 3
push esi
call fcn.100772d0
add esp, 0xc
push dword [esp + 0xc]
call fcn.1007a4f0
add esp, 4
test esi, esi
je 0x1007ab1d
cmp dword [esi + 0x78], 0
je 0x1007ab1d
push 3
push esi
call fcn.10077310
add esp, 8
pop esi
ret
Function at 0x1007b310
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov ecx, dword [esp + 4]
mov eax, dword [ecx + 0xc]
cmp byte [eax + 0x266], 0
je 0x1007b329
mov dword [esp + 4], ecx
jmp fcn.100a05e0
mov dword [esp + 4], ecx
jmp fcn.100694e0
Function at 0x100862d0
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.1007a0e0
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.100c385c
push dword [esp + 0x40]
mov edi, eax
call fcn.100c385c
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExA]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x10086365
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.1007a0e0
movups xmm0, xmmword [esp + 0x14]
sub esp, 0xc
mov ecx, esp
sub esp, 0x10
movups xmmword [ecx], xmm0
mov ecx, esp
movups xmm0, xmmword [eax]
movups xmmword [ecx], xmm0
call fcn.1007a180
add esp, 0x20
test edx, edx
ja 0x10086389
jb 0x10086357
cmp eax, 0x3e8
ja 0x10086389
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x10086320
test edi, edi
je 0x10086372
push edi
call fcn.100bae00
add esp, 4
test esi, esi
je 0x1008637f
push esi
call fcn.100bae00
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
test edi, edi
je 0x10086396
push edi
call fcn.100bae00
add esp, 4
test esi, esi
je 0x100863a3
push esi
call fcn.100bae00
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x100863b0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information
Receive data
Receive data on socket
Send data
Send data on socket
Set socket configuration
Start tcp server

Disassembly:
sub esp, 0x34
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0x30], eax
push ebx
mov ebx, dword [esp + 0x48]
push esi
mov esi, dword [sym.imp.WS2_32.dll_socket]
push edi
push 6
push 1
push 2
mov dword [esp + 0x1c], 0x10
mov dword [esp + 0x18], 1
call esi
mov edi, eax
cmp edi, 0xffffffff
je 0x10086595
xorps xmm0, xmm0
mov eax, 2
movups xmmword [esp + 0x14], xmm0
push 0x7f000001
mov word [esp + 0x18], ax
call dword [sym.imp.WS2_32.dll_htonl]
mov dword [esp + 0x18], eax
xor eax, eax
push 4
mov word [esp + 0x1a], ax
lea eax, [esp + 0x10]
push eax
push 4
push 0xffff
push edi
mov dword [ebx + 4], 0xffffffff
mov dword [ebx], 0xffffffff
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
je 0x10086583
push 0x10
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_bind]
cmp eax, 0xffffffff
je 0x10086583
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
push eax
push edi
call dword [sym.imp.WS2_32.dll_getsockname]
cmp eax, 0xffffffff
je 0x10086583
push 1
push edi
call dword [sym.imp.WS2_32.dll_listen]
cmp eax, 0xffffffff
je 0x10086583
push 0
push 1
push 2
call esi
mov dword [ebx], eax
cmp eax, 0xffffffff
je 0x10086583
push 0x10
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x10086583
push 0
push 0
push edi
call dword [sym.imp.WS2_32.dll_accept]
mov dword [ebx + 4], eax
cmp eax, 0xffffffff
je 0x10086583
push ebx
push 0x100e2490
lea eax, [esp + 0x2c]
push 0xc
push eax
call fcn.10083110
lea esi, [esp + 0x34]
add esp, 0x10
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x100864e1
push 0
sub esi, ecx
lea eax, [esp + 0x28]
push esi
push eax
push dword [ebx]
call dword [sym.imp.WS2_32.dll_send]
cmp eax, esi
jne 0x10086583
push 0
push 0xc
lea eax, [esp + 0x38]
push eax
push dword [ebx + 4]
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, esi
jne 0x10086583
lea ecx, [esp + 0x24]
lea edx, [esp + 0x30]
sub esi, 4
jb 0x10086536
mov eax, dword [ecx]
cmp eax, dword [edx]
jne 0x1008653b
add ecx, 4
add edx, 4
sub esi, 4
jae 0x10086525
cmp esi, 0xfffffffc
je 0x10086568
mov al, byte [ecx]
cmp al, byte [edx]
jne 0x10086583
cmp esi, 0xfffffffd
je 0x10086568
mov al, byte [ecx + 1]
cmp al, byte [edx + 1]
jne 0x10086583
cmp esi, 0xfffffffe
je 0x10086568
mov al, byte [ecx + 2]
cmp al, byte [edx + 2]
jne 0x10086583
cmp esi, 0xffffffff
je 0x10086568
mov al, byte [ecx + 3]
cmp al, byte [edx + 3]
jne 0x10086583
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x30]
xor ecx, esp
call fcn.100ab558
add esp, 0x34
ret
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
push edi
call esi
push dword [ebx]
call esi
push dword [ebx + 4]
call esi
mov ecx, dword [esp + 0x3c]
or eax, 0xffffffff
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.100ab558
add esp, 0x34
ret
Function at 0x100865e0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
push ebx
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov dword [eax], ebx
lea eax, [esp + 0x10]
push eax
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x10086771
push esi
mov esi, dword [esp + 0x14]
test esi, esi
je 0x1008675c
push ebp
push edi
mov eax, dword [esi + 0x14]
test eax, eax
je 0x1008663e
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10086630
sub eax, edx
lea ecx, [eax + 1]
jmp 0x10086640
xor ecx, ecx
mov eax, dword [esi + 4]
mov dword [esp + 0x14], ecx
cmp eax, 2
jne 0x10086651
lea ebp, [eax + 0xe]
jmp 0x1008665d
cmp eax, 0x17
jne 0x100866fe
lea ebp, [eax + 5]
cmp dword [esi + 0x18], 0
je 0x100866fe
mov eax, dword [esi + 0x10]
test eax, eax
je 0x100866fe
cmp eax, ebp
jb 0x100866fe
lea eax, [ecx + 0x20]
add eax, ebp
push eax
call dword [0x10106048]
mov edi, eax
add esp, 4
test edi, edi
je 0x1008674d
mov ecx, dword [esi]
mov dword [edi], ecx
mov ecx, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [edi + 8], ecx
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
lea eax, [edi + 0x20]
push ebp
mov dword [edi + 0x10], ebp
mov dword [edi + 0x14], 0
mov dword [edi + 0x1c], 0
mov dword [edi + 0x18], eax
push dword [esi + 0x18]
push eax
call fcn.100adbd0
mov ecx, dword [esp + 0x20]
add esp, 0xc
test ecx, ecx
je 0x100866ea
mov eax, dword [edi + 0x18]
add eax, ebp
push ecx
mov dword [edi + 0x14], eax
push dword [esi + 0x14]
push eax
call fcn.100adbd0
add esp, 0xc
mov eax, dword [esp + 0x18]
test ebx, ebx
cmove ebx, edi
test eax, eax
je 0x100866fa
mov dword [eax + 0x1c], edi
mov dword [esp + 0x18], edi
mov esi, dword [esi + 0x1c]
test esi, esi
jne 0x10086622
mov esi, dword [esp + 0x10]
mov eax, dword [esp + 0x1c]
pop edi
pop ebp
test eax, eax
je 0x1008671e
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
test esi, esi
je 0x10086758
test ebx, ebx
je 0x1008673d
mov esi, dword [ebx + 0x1c]
push ebx
call dword [0x1010604c]
add esp, 4
mov ebx, esi
test esi, esi
jne 0x10086726
mov esi, dword [esp + 8]
mov eax, dword [esp + 0x28]
xor ebx, ebx
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
mov esi, 8
mov dword [esp + 0x10], esi
jmp 0x1008670d
test ebx, ebx
jne 0x10086768
mov esi, 0x2af9
push esi
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov dword [eax], ebx
mov eax, esi
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x1008a680
Capabilities:
Query environment variable

Disassembly:
push ebx
push ebp
xor ebp, ebp
push esi
push edi
lea esi, [ebp + 1]
push esi
push ebp
call dword [0x10106050]
mov edi, eax
add esp, 8
test edi, edi
je 0x1008a657
nop word [eax + eax]
push esi
push edi
push dword [esp + 0x1c]
mov ebp, edi
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
test esi, esi
je 0x1008a66f
cmp esi, ebx
je 0x1008a66f
cmp esi, 0x8000
ja 0x1008a66f
cmp esi, ebx
jb 0x1008a668
push esi
push edi
call dword [0x10106050]
mov edi, eax
add esp, 8
test edi, edi
jne 0x1008a620
push ebp
call dword [0x1010604c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push edi
call dword [0x1010604c]
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
ret
jmp 0x1008a600

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

Disassembly:
mov ecx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
push 0
mov byte [esp + 0x12], cl
lea ecx, [esp + 0x10]
push 3
mov eax, dword [esi + 0xc]
push ecx
mov byte [esp + 0x18], 0xff
mov byte [esp + 0x19], bl
push dword [eax + 0x148]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1008e98c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.10072c50
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.1008e240
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x1008eae0
Capabilities:
Send data
Send data on socket

Disassembly:
sub esp, 0x10
cmp dword [esp + 0x18], 0x1f
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x134]
mov dword [esp + 0x1c], eax
jne 0x1008ec3c
push esi
push edi
lea eax, [ebx + 0x1cb4]
lea edi, [ebx + 0x1eb4]
mov dword [edi], eax
cmp eax, edi
jae 0x1008eb1a
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008eb25
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008eb30
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebx + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
mov word [esp + 0x10], ax
movzx eax, word [ebx + 0x1caa]
push eax
call esi
mov ecx, dword [edi]
mov word [esp + 0x18], ax
cmp ecx, edi
jae 0x1008eb62
mov al, byte [esp + 0x10]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x1008eb70
mov al, byte [esp + 0x11]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x1008eb7e
mov al, byte [esp + 0x18]
mov byte [ecx], al
inc dword [edi]
mov ecx, dword [edi]
cmp ecx, edi
jae 0x1008eb8c
mov al, byte [esp + 0x19]
mov byte [ecx], al
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008eb97
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1008eba2
mov byte [eax], 0xf0
inc dword [edi]
mov eax, dword [edi]
lea esi, [ebx + 0x1cb4]
mov dword [ebx + 0x1eb8], eax
sub eax, esi
sub eax, 2
mov dword [edi], esi
push eax
lea eax, [ebx + 0x1cb6]
push eax
push 0x3e
push ebp
call fcn.1008e350
mov eax, dword [esp + 0x34]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x148]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x1008ebfc
call esi
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.10072c50
add esp, 0xc
push 4
lea eax, [ebx + 0x1cb7]
push eax
push ebp
call fcn.1008e9b0
add esp, 0xc
lea eax, [ebx + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x30]
push dword [eax + 0x148]
call edi
test eax, eax
jns 0x1008ec3a
call esi
push eax
push str.Sending_data_failed___d_
push ebp
call fcn.10072c50
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x1008fc10
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
push edi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax + 0x428]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x14], 0x80
lea eax, [esp + 0x18]
push eax
mov eax, dword [edi + 0x13c]
push 0
add eax, 4
push eax
push dword [edi + 0x148]
push dword [edi + 0x14]
call dword [sym.imp.WS2_32.dll_recvfrom]
cmp dword [edi + 0x130], 0
mov dword [edi + 0x134], eax
jne 0x1008fc96
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xb0]
push eax
call fcn.100adbd0
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov edx, dword [edi + 0x134]
cmp edx, 4
jge 0x1008fcd1
push str.Received_too_short_packet
push ebx
call fcn.10072c50
add esp, 8
mov dword [edi + 0xc], 7
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ab558
add esp, 0x88
ret
mov eax, dword [edi + 0x148]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
add ecx, 0xfffffffd
cmp ecx, 3
ja case.default.0x1008fcf2
jmp dword [ecx*4 + 0x1008fe1c]
cmp edx, 4
jle case.0x1008fcf2.4
mov eax, dword [edi + 0x148]
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x1008fcf2.4
lea eax, [edx - 4]
push eax
mov eax, dword [edi + 0x148]
add eax, 4
push eax
push 1
push ebx
call fcn.10072bb0
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1008fd59
push 5
push edi
call fcn.10090640
add esp, 8
mov eax, esi
jmp 0x1008fcb8
mov eax, dword [edi + 0x134]
sub eax, 4
cdq
add dword [ebx + 0x90], eax
adc dword [ebx + 0x94], edx
push dword [ebx + 0x94]
push dword [ebx + 0x90]
push ebx
call fcn.10080700
jmp 0x1008fdf1
mov eax, dword [edi + 0x148]
lea esi, [edx - 4]
mov ebp, dword [edi + 0x148]
add ebp, 4
push esi
movzx ecx, byte [eax + 2]
movzx eax, byte [eax + 3]
shl ecx, 8
or ecx, eax
push ebp
mov dword [edi + 8], ecx
call fcn.10090760
add esp, 8
cmp eax, esi
jae case.0x1008fcf2.4
push ebp
push str.TFTP_error:__s_n
push ebx
call fcn.10072d10
jmp 0x1008fdf1
lea eax, [edx - 2]
push eax
mov eax, dword [edi + 0x148]
add eax, 2
push eax
push edi
call fcn.1008f9a0
add esp, 0xc
test eax, eax
je case.0x1008fcf2.4
jmp 0x1008fcb8
push str.Internal_error:_Unexpected_packet
push 0x100e422c
push ebx
call fcn.10072c50
add esp, 0xc
push ebx
call fcn.10080a10
add esp, 4
test eax, eax
je 0x1008fcb6
push 5
push edi
call fcn.10090640
add esp, 8
mov eax, 0x2a
jmp 0x1008fcb8
Function at 0x10096f40
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
sub esp, 0x88
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0x84], eax
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x9c]
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x18]
or esi, 0xffffffff
push eax
mov ebx, dword [edi + 0xc]
mov ebp, dword [ebx + 0x14c]
push ebp
mov dword [esp + 0x1c], 0x80
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
jne 0x10096fa3
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x80
push eax
lea eax, [esp + 0x18]
push eax
push ebp
call dword [sym.imp.WS2_32.dll_accept]
mov esi, eax
push ebp
push ebx
push edi
call fcn.10073570
add esp, 0xc
cmp esi, 0xffffffff
jne 0x10096fc8
push str.Error_accept__ing_server_connect
push edi
call fcn.10072c50
add esp, 8
mov eax, 0x1e
jmp 0x10097038
push str.Connection_accepted_from_server_n
push edi
call fcn.10072d10
push 1
push esi
mov byte [ebx + 0x256], 0
mov dword [ebx + 0x14c], esi
call fcn.1009eba0
add esp, 0x10
mov byte [ebx + 0x269], 1
cmp dword [edi + 0x1b8], 0
je 0x10097036
push 1
push edi
call fcn.10064540
mov eax, dword [edi + 0x1b8]
push 1
push esi
push dword [edi + 0x1bc]
call eax
push 0
push edi
mov esi, eax
call fcn.10064540
add esp, 0x1c
test esi, esi
je 0x10097036
push ebx
push edi
call fcn.100974e0
add esp, 8
mov eax, 0x2a
jmp 0x10097038
xor eax, eax
mov ecx, dword [esp + 0x94]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ab558
add esp, 0x88
ret

Function at 0x10099750
Capabilities:
Check http status code

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0xc]
push edi
lea eax, [ecx - 0xc8]
xor edi, edi
mov ebx, dword [esi + 0xc]
cmp eax, 0x64
jb 0x10099780
push str.Couldnt_set_desired_mode
push esi
call fcn.10072c50
add esp, 8
lea eax, [edi + 0x11]
pop edi
pop esi
pop ebx
ret
cmp ecx, 0xc8
je 0x10099797
push ecx
push str.Got_a__03d_response_code_instead_of_the_assumed_200_n
push esi
call fcn.10072d10
add esp, 0xc
mov eax, dword [esp + 0x18]
cmp eax, 0x13
jne 0x100997b0
push ebx
push esi
call fcn.100993d0
add esp, 8
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x14
jne 0x100997c4
push esi
call fcn.10098320
add esp, 4
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x15
jne 0x100997dc
push 0xd
push 1
push esi
call fcn.10098ef0
add esp, 0xc
mov edi, eax
pop edi
pop esi
pop ebx
ret
cmp eax, 0x16
jne 0x100997f0
push 0xe
push 1
push esi
call fcn.10098ef0
add esp, 0xc
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebx
ret
Function at 0x100a44e0
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x1010607c]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebx
push ebp
mov ebp, dword [esp + 0x134]
xor ebx, ebx
push esi
push edi
mov edi, dword [esp + 0x138]
xor esi, esi
push edi
mov dword [esp + 0x20], eax
mov dword [esp + 0x18], edi
call fcn.100c385c
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x100a4558
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10084b80
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.10072c50
add esp, 0x1c
lea esi, [ebx + 0x4d]
jmp 0x100a4697
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x100a45aa
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10084b80
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.10072c50
add esp, 0x1c
mov esi, 0x4d
jmp 0x100a4697
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x100a45ea
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10084b80
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.10072c50
add esp, 0x1c
mov esi, 0x4d
jmp 0x100a468d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x100a4618
jg 0x100a45fe
cmp edi, 0x100000
jbe 0x100a4618
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.10072c50
add esp, 0xc
mov esi, 0x4d
jmp 0x100a468d
lea eax, [edi + 1]
push eax
call dword [0x10106048]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100a4630
lea esi, [eax + 0x1b]
jmp 0x100a468d
test edi, edi
je 0x100a4674
nop dword [eax]
nop dword [eax + eax]
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, edi
sub eax, esi
push eax
lea eax, [esi + ebx]
push eax
push dword [esp + 0x28]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100a46d1
mov eax, dword [esp + 0x10]
test eax, eax
je 0x100a46cd
add esi, eax
cmp esi, edi
jb 0x100a4640
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.100a42e0
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x1010604c]
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
je 0x100a46b2
push eax
call fcn.100bae00
add esp, 4
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.100ab558
add esp, 0x120
ret
mov edi, esi
jmp 0x100a4674
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10084b80
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.10072c50
add esp, 0x1c
mov esi, 0x4d
jmp 0x100a468d
Function at 0x100a9a80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
push edi
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x14]
lea eax, [eax + ecx*2]
add eax, 0xc
push eax
call dword [0x10106048]
mov edi, eax
add esp, 4
test edi, edi
jne 0x100a9aa7
pop edi
pop esi
pop ecx
ret
lea ecx, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], ecx
mov eax, dword [esi + 0xc]
add eax, ecx
push ebx
mov ebx, dword [esp + 0x1c]
mov dword [edi + 8], eax
push ebp
cmp ebx, dword [esi + 0x10]
jbe 0x100a9aef
mov eax, dword [esi]
push ecx
call eax
mov eax, dword [esi + 4]
push ebx
push dword [esp + 0x24]
push dword [edi + 4]
call eax
mov ebp, dword [edi + 8]
push dword [edi + 4]
add ebp, dword [esi + 0xc]
mov eax, dword [esi + 8]
push ebp
call eax
mov ebx, dword [esi + 0x14]
add esp, 0x18
mov dword [esp + 0x20], ebx
jmp 0x100a9af3
mov ebp, dword [esp + 0x1c]
push dword [edi + 4]
mov eax, dword [esi]
call eax
push dword [edi + 8]
mov eax, dword [esi]
call eax
mov eax, dword [esp + 0x28]
add esp, 8
xor ebx, ebx
test eax, eax
je 0x100a9b55
mov dword [esp + 0x10], eax
mov ebx, eax
movzx eax, byte [ebp]
xor al, 0x36
mov byte [esp + 0x18], al
lea eax, [esp + 0x18]
push 1
push eax
push dword [edi + 4]
mov eax, dword [esi + 4]
call eax
movzx eax, byte [ebp]
lea ebp, [ebp + 1]
xor al, 0x5c
mov byte [esp + 0x24], al
lea eax, [esp + 0x24]
push 1
push eax
push dword [edi + 8]
mov eax, dword [esi + 4]
call eax
add esp, 0x18
sub ebx, 1
jne 0x100a9b14
mov ebx, dword [esp + 0x10]
cmp ebx, dword [esi + 0x10]
jae 0x100a9b87
nop word [eax + eax]
mov eax, dword [esi + 4]
push 1
push 0x100e85b8
push dword [edi + 4]
call eax
mov eax, dword [esi + 4]
push 1
push 0x100e85b9
push dword [edi + 8]
call eax
inc ebx
add esp, 0x18
cmp ebx, dword [esi + 0x10]
jb 0x100a9b60
pop ebp
pop ebx
mov eax, edi
pop edi
pop esi
pop ecx
ret
Function at 0x100c9c47
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100c9bc9

Function at 0x100ca722
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100ca598

Function at 0x100cf34f
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100cefcc