joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100418c0
Capabilities:
Resolve dns

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x18]
mov dword [eax], 0
mov eax, dword [esp + 0x1c]
push edx
push eax
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], 0
call dword [sym.imp.WS2_32.dll_getaddrinfo]
mov dword [esp + 4], eax
test eax, eax
jne 0x10041a79
push esi
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x10041a56
push ebx
push ebp
mov eax, dword [edi + 0x14]
test eax, eax
je 0x1004192e
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10041920
sub eax, edx
lea ebx, [eax + 1]
jmp 0x10041930
xor ebx, ebx
mov eax, dword [edi + 4]
cmp eax, 2
jne 0x1004193d
lea ebp, [eax + 0xe]
jmp 0x10041949
cmp eax, 0x17
jne 0x100419e3
lea ebp, [eax + 5]
cmp dword [edi + 0x18], 0
je 0x100419e3
mov eax, dword [edi + 0x10]
test eax, eax
je 0x100419e3
cmp eax, ebp
jb 0x100419e3
lea edx, [ebx + ebp + 0x20]
push edx
call dword [section..data]
mov esi, eax
xor eax, eax
add esp, 4
cmp esi, eax
je 0x100419f0
mov ecx, dword [edi]
mov dword [esi], ecx
mov edx, dword [edi + 4]
mov dword [esi + 4], edx
mov ecx, dword [edi + 8]
mov dword [esi + 8], ecx
mov edx, dword [edi + 0xc]
mov dword [esi + 0x14], eax
mov dword [esi + 0x1c], eax
lea eax, [esi + 0x20]
mov dword [esi + 0xc], edx
mov dword [esi + 0x10], ebp
mov dword [esi + 0x18], eax
mov ecx, dword [edi + 0x18]
push ebp
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
test ebx, ebx
je 0x100419c9
mov eax, dword [esi + 0x18]
add eax, ebp
mov dword [esi + 0x14], eax
mov ecx, dword [edi + 0x14]
push ebx
push ecx
push eax
call sub.MSVCR100.dll_memcpy
add esp, 0xc
cmp dword [esp + 0x10], 0
jne 0x100419d4
mov dword [esp + 0x10], esi
mov eax, dword [esp + 0x18]
test eax, eax
je 0x100419df
mov dword [eax + 0x1c], esi
mov dword [esp + 0x18], esi
mov edi, dword [edi + 0x1c]
test edi, edi
jne 0x10041913
jmp 0x100419f8
mov dword [esp + 0x14], 8
mov eax, dword [esp + 0x1c]
pop ebp
pop ebx
test eax, eax
je 0x10041a09
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
cmp dword [esp + 0xc], 0
je 0x10041a4f
mov eax, dword [esp + 8]
test eax, eax
je 0x10041a33
jmp 0x10041a20
mov esi, dword [eax + 0x1c]
push eax
call dword [0x100a3004]
add esp, 4
mov eax, esi
test esi, esi
jne 0x10041a20
mov eax, dword [esp + 0x28]
mov dword [esp + 8], 0
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
cmp dword [esp + 8], 0
jne 0x10041a69
push 0x2af9
mov dword [esp + 0x10], 0x2af9
call dword [sym.imp.WS2_32.dll_WSASetLastError]
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 8]
pop edi
mov dword [eax], edx
mov eax, dword [esp + 8]
pop esi
add esp, 0x10
ret
Function at 0x10045f70
Capabilities:
Move file

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
lea eax, [esp + 0x10]
push edi
push eax
call fcn.10023220
mov edx, dword [esp + 0x3c]
mov ecx, dword [eax + 0xc]
mov edi, dword [eax]
mov ebx, dword [eax + 4]
mov ebp, dword [eax + 8]
push edx
mov dword [esp + 0x28], ecx
call dword [sym.imp.MSVCR100.dll__strdup]
mov esi, eax
mov eax, dword [esp + 0x44]
push eax
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 0xc
push 1
push eax
push esi
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x10046028
lea ecx, [ecx]
lea ecx, [esp + 0x24]
push ecx
call fcn.10023220
mov edx, dword [esp + 0x24]
sub esp, 0xc
mov ecx, esp
mov dword [ecx], edi
mov dword [ecx + 4], ebx
mov dword [ecx + 8], ebp
mov dword [ecx + 0xc], edx
mov edx, dword [eax]
sub esp, 0x10
mov ecx, esp
mov dword [ecx], edx
mov edx, dword [eax + 4]
mov dword [ecx + 4], edx
mov edx, dword [eax + 8]
mov eax, dword [eax + 0xc]
mov dword [ecx + 8], edx
mov dword [ecx + 0xc], eax
call fcn.100232c0
add esp, 0x20
test edx, edx
ja 0x10046050
jb 0x1004600e
cmp eax, 0x3e8
ja 0x10046050
push 1
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, dword [esp + 0x10]
push 1
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
je 0x10045fc0
mov edi, dword [sym.imp.MSVCR100.dll_free]
test esi, esi
je 0x10046038
push esi
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10046046
push eax
call edi
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret
mov edi, dword [sym.imp.MSVCR100.dll_free]
test esi, esi
je 0x10046060
push esi
call edi
add esp, 4
mov eax, dword [esp + 0x10]
test eax, eax
je 0x1004606e
push eax
call edi
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x24
ret

Function at 0x100461d0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
push esi
push 0
push edi
call sub.MSVCR100.dll_memset
add esp, 0xc
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10046227
mov ecx, dword [esp + 8]
push edi
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
test eax, eax
jne 0x10046230
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
mov eax, 2
pop esi
pop ecx
ret
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x10046250
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x14]
push ebp
xor ebp, ebp
push esi
push edi
mov ecx, 0x2b
cmp ebx, ebp
je 0x1004630c
mov edi, dword [esp + 0x1c]
lea esp, [esp]
mov esi, ebx
cmp ebx, 4
jb 0x1004627c
mov esi, 4
mov ecx, dword [esp + 0x18]
push 4
lea eax, [esp + 0x24]
push eax
push ecx
call fcn.10017840
add esp, 0xc
cmp eax, 4
jne 0x100462e8
cmp dword [0x100c0b00], ebp
jne 0x10046323
push 0xf0000040
push 1
push ebp
push ebp
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x24], ebp
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x100462e3
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x20]
push eax
push 4
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push ebp
test eax, eax
jne 0x10046314
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov eax, 2
mov ecx, eax
cmp eax, ebp
jne 0x1004630e
mov eax, dword [esp + 0x20]
cmp esi, ebp
je 0x10046304
mov byte [edi], al
inc edi
shr eax, 8
dec ebx
dec esi
jne 0x100462f6
mov dword [esp + 0x20], eax
cmp ebx, ebp
jne 0x10046270
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
jmp 0x100462e8
mov eax, dword [0x100c0afc]
imul eax, eax, 0x41c64e6d
add eax, 0x3039
mov dword [0x100c0afc], eax
rol eax, 0x10
mov dword [esp + 0x20], eax
xor ecx, ecx
jmp 0x100462f2
Function at 0x10048240
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 sub.MSVCR100.dll_memset
mov eax, dword [esp + 0x2c]
add esp, 0xc
push 0xf0000040
push eax
push 0
push 0
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10048320
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 0x10048301
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 0x10048301
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 0x10048300
cmp esi, dword [esp + 0xc]
jb 0x10048300
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 0x1004830f
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
mov eax, dword [esp + 4]
test eax, eax
je 0x10048320
push 0
push eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
add esp, 0x14
ret
Function at 0x1004a1b0
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 dword [sym.imp.MSVCR100.dll__beginthreadex]
add esp, 0x18
test eax, eax
je 0x1004a1d4
cmp eax, 0xffffffff
jne 0x1004a1d6
xor eax, eax
ret

Function at 0x1004ac10
Capabilities:
Get socket status

Disassembly:
sub esp, 8
push esi
mov esi, eax
test ebx, ebx
je 0x1004ac1f
cmp dword [ebx], 0
jne 0x1004ac31
test edi, edi
je 0x1004ac28
cmp dword [edi], 0
jne 0x1004ac31
test esi, esi
je 0x1004ac99
cmp dword [esi], 0
je 0x1004ac99
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
push eax
push ecx
lea edx, [esp + 0xc]
push edx
call fcn.10059080
add esp, 0xc
test esi, esi
je 0x1004ac51
cmp dword [esi], 0
jne 0x1004ac53
xor esi, esi
test edi, edi
je 0x1004ac60
cmp dword [edi], 0
je 0x1004ac60
mov edx, edi
jmp 0x1004ac62
xor edx, edx
test ebx, ebx
je 0x1004ac82
cmp dword [ebx], 0
je 0x1004ac82
push eax
mov eax, dword [esp + 0x14]
push esi
push edx
mov ecx, ebx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
add esp, 8
ret
push eax
mov eax, dword [esp + 0x14]
push esi
push edx
xor ecx, ecx
push ecx
inc eax
push eax
call dword [sym.imp.WS2_32.dll_select]
pop esi
add esp, 8
ret
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push ecx
push edx
call fcn.1004abc0
add esp, 8
pop esi
add esp, 8
ret

Function at 0x1004bdd0
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x108
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x104], eax
push 4
lea eax, [esp + 4]
push eax
push 1
push 6
push ecx
mov dword [esp + 0x14], 1
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1004be27
push 0x100
lea edx, [esp + 8]
push edx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
call fcn.1000ec90
push eax
push str.Could_not_set_TCP_NODELAY:__s
push esi
call fcn.1001ccc0
add esp, 0x18
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.1005cc54
add esp, 0x108
ret
Function at 0x1004be40
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0x18
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x14], eax
xor eax, eax
cmp dword [esi + 0x7c0], eax
push 4
lea ecx, [esp + 4]
push ecx
setne al
push 8
push 0xffff
push edi
mov dword [esp + 0x14], eax
call dword [sym.imp.WS2_32.dll_setsockopt]
test eax, eax
jns 0x1004be94
push edi
push str.Failed_to_set_SO_KEEPALIVE_on_fd__d
push esi
call fcn.1001ccc0
add esp, 0xc
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1005cc54
add esp, 0x18
ret
mov edx, dword [esi + 0x6e0]
push edx
mov dword [esp + 0xc], 1
call fcn.1001c080
imul eax, eax, 0x3e8
mov dword [esp + 4], eax
mov dword [esp + 0x10], eax
mov eax, dword [esi + 0x6e4]
push eax
call fcn.1001c080
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 0x1004bf0d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push edi
push str.Failed_to_set_SIO_KEEPALIVE_VALS_on_fd__d:__d
push esi
call fcn.1001ccc0
add esp, 0x10
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.1005cc54
add esp, 0x18
ret

Function at 0x1004c110
Capabilities:
Set socket configuration

Disassembly:
sub esp, 0xc
mov eax, dword [0x100c0b10]
mov dword [esp + 4], 0x4020
mov dword [esp], 0
mov dword [esp + 8], 4
test eax, eax
jne 0x1004c161
push 3
push 2
push eax
push eax
push 6
call fcn.1004a450
add esp, 0x14
test eax, eax
je 0x1004c155
mov dword [0x100c0b10], 2
add esp, 0xc
ret
mov dword [0x100c0b10], 1
jmp 0x1004c166
cmp eax, 2
je 0x1004c1ad
push esi
mov esi, dword [esp + 0x14]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 8]
push ecx
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1004c194
mov edx, dword [esp + 4]
cmp edx, dword [esp + 8]
jg 0x1004c1ac
push 4
lea eax, [esp + 0xc]
push eax
push 0x1001
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_setsockopt]
pop esi
add esp, 0xc
ret
Function at 0x1004c7d0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x104
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x100], eax
mov edx, dword [esp + 0x110]
mov eax, dword [esp + 0x10c]
push esi
mov esi, dword [esp + 0x10c]
mov ecx, dword [esi]
mov ecx, dword [ecx + 8]
push edi
mov edi, dword [esp + 0x11c]
push 0
push edx
push eax
mov dword [edi], 0
mov eax, dword [ecx + 0x98]
push eax
call dword [sym.imp.WS2_32.dll_recv]
cmp eax, 0xffffffff
jne 0x1004c871
push ebx
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
cmp ebx, 0x2733
jne 0x1004c83c
mov dword [edi], 0x51
jmp 0x1004c86d
push 0x100
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.1000ec90
mov edx, dword [esi + 4]
push eax
push str.Recv_failure:__s
push edx
call fcn.1001cb80
mov eax, dword [esi + 4]
mov dword [eax + 0xa38], ebx
add esp, 0x18
mov dword [edi], 0x38
or eax, 0xffffffff
pop ebx
mov ecx, dword [esp + 0x108]
pop edi
pop esi
xor ecx, esp
call fcn.1005cc54
add esp, 0x104
ret

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

Disassembly:
sub esp, 0x188
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x184], eax
mov eax, dword [esp + 0x18c]
push esi
mov esi, dword [eax + 8]
push 0x80
lea eax, [esp + 0xc]
push 0
push eax
mov dword [esp + 0x10], 0x80
call sub.MSVCR100.dll_memset
mov eax, dword [esi + 0x98]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
test eax, eax
je 0x1004ca5c
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push 0x100
lea ecx, [esp + 0x8c]
mov esi, eax
push ecx
push esi
call fcn.1000ec90
push eax
push esi
push str.getsockname___failed_with_errno__d:__s
push edi
call fcn.1001cb80
add esp, 0x1c
mov eax, 2
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.1005cc54
add esp, 0x188
ret
mov eax, dword [esp + 4]
lea edx, [esi + 0x120]
push edx
add esi, 0xf0
push esi
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.10021d20
add esp, 0x10
test eax, eax
jne 0x1004cad2
mov esi, dword [sym.imp.MSVCR100.dll__errno]
push ebx
call esi
mov ebx, eax
call esi
push 0x100
lea edx, [esp + 0x90]
mov esi, eax
mov eax, dword [ebx]
push edx
push eax
call fcn.1000ec90
mov ecx, dword [esi]
push eax
push ecx
push str.ssloc_inet_ntop___failed_with_errno__d:__s
push edi
call fcn.1001cb80
add esp, 0x1c
pop ebx
mov eax, 2
pop esi
mov ecx, dword [esp + 0x184]
xor ecx, esp
call fcn.1005cc54
add esp, 0x188
ret
mov ecx, dword [esp + 0x188]
pop esi
xor ecx, esp
xor eax, eax
call fcn.1005cc54
add esp, 0x188
ret
Function at 0x1004d7e0
Capabilities:
Connect socket

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
mov esi, dword [ebx + 8]
mov edx, dword [esi + 0x98]
mov edi, eax
mov eax, dword [esi + 0x14]
push eax
lea ecx, [esi + 0x18]
push ecx
push edx
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x1004d81b
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
lea ebx, [esi + 0xbc]
mov esi, eax
call fcn.1004c750
pop edi
pop esi
pop ebx
ret
push ebx
call fcn.1004c9c0
mov eax, dword [esi + 0x98]
push 1
push eax
call fcn.10052220
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x100505e0
Capabilities:
Create new key via cryptacquirecontext
Encrypt data using des via winapi
Encrypt or decrypt via wincrypt

Disassembly:
sub esp, 0x24
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x20], eax
push ebp
mov ebp, dword [esp + 0x30]
push 0xf0000040
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10050687
xor eax, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
push esi
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea esi, [esp + 0x20]
mov eax, ebp
mov word [esp + 0x14], 0x208
mov dword [esp + 0x18], 0x6601
mov dword [esp + 0x1c], 8
call fcn.10050550
mov ecx, esi
push 8
push ecx
call fcn.1005b570
mov ecx, dword [esp + 0x10]
add esp, 8
lea edx, [esp + 0x10]
push edx
push 0
push 0
push 0x14
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
pop esi
test eax, eax
jne 0x10050699
mov edx, dword [esp + 4]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor eax, eax
pop ebp
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.1005cc54
add esp, 0x24
ret
mov eax, dword [esp + 0x2c]
mov ecx, dword [eax]
mov dword [edi], ecx
mov edx, dword [eax + 4]
mov eax, dword [esp + 8]
push eax
lea ecx, [esp + 0xc]
push ecx
push edi
push 0
push 0
mov dword [edi + 4], edx
mov edx, dword [esp + 0x20]
push 0
push edx
call dword [sym.imp.ADVAPI32.dll_CryptEncrypt]
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptDestroyKey]
mov ecx, dword [esp + 4]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov ecx, dword [esp + 0x24]
pop ebp
xor ecx, esp
mov eax, 1
call fcn.1005cc54
add esp, 0x24
ret

Function at 0x10052080
Capabilities:
Get hostname

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push esi
mov byte [esi], 0
call dword [sym.imp.WS2_32.dll_gethostname]
mov byte [esi + edi - 1], 0
test eax, eax
jne 0x100520b3
push 0x2e
push esi
call dword [sym.imp.MSVCR100.dll_strchr]
add esp, 8
test eax, eax
je 0x100520b1
mov byte [eax], 0
xor eax, eax
pop edi
pop esi
ret
Function at 0x10058740
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x100a3428]
xor eax, esp
mov dword [esp + 0x11c], eax
mov eax, dword [esp + 0x124]
push ebp
push esi
push edi
mov edi, ecx
push ebx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], edi
xor ebp, ebp
xor esi, esi
call dword [sym.imp.MSVCR100.dll__strdup]
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
jne 0x100587ac
push 0x100
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000ed80
push eax
push ebx
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push edi
call fcn.1001cb80
add esp, 0x1c
lea esi, [ebp + 0x4d]
jmp 0x100588e1
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
jne 0x100587fe
push 0x100
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000ed80
push eax
push ebx
push str.schannel:_failed_to_open_CA_file__s:__s
push edi
call fcn.1001cb80
add esp, 0x1c
mov esi, 0x4d
jmp 0x100588e1
lea ecx, [esp + 0x20]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1005883e
push 0x100
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000ed80
push eax
push ebx
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push edi
call fcn.1001cb80
add esp, 0x1c
mov esi, 0x4d
jmp 0x100588d6
mov eax, dword [esp + 0x20]
cmp dword [esp + 0x24], esi
jl 0x10058868
jg 0x10058851
cmp eax, 0x100000
jbe 0x10058868
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push edi
call fcn.1001cb80
mov esi, 0x4d
jmp 0x100588d3
mov edi, eax
inc eax
push eax
call dword [section..data]
mov ebp, eax
add esp, 4
test ebp, ebp
jne 0x10058880
lea esi, [eax + 0x1b]
jmp 0x100588d6
test edi, edi
je 0x100588b9
push 0
lea eax, [esp + 0x14]
push eax
mov eax, dword [esp + 0x1c]
mov ecx, edi
sub ecx, esi
push ecx
lea edx, [esi + ebp]
push edx
push eax
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1005891b
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10058917
add esi, eax
cmp esi, edi
jb 0x10058884
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 0x18]
push eax
push ebp
push ecx
mov edx, ebx
mov ecx, edi
mov byte [edi + ebp], 0
call fcn.10058530
mov esi, eax
add esp, 0xc
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call dword [0x100a3004]
mov eax, dword [esp + 0x20]
add esp, 4
test eax, eax
je 0x100588fd
push eax
call dword [sym.imp.MSVCR100.dll_free]
add esp, 4
mov ecx, dword [esp + 0x128]
pop edi
mov eax, esi
pop esi
pop ebp
xor ecx, esp
call fcn.1005cc54
add esp, 0x120
ret
mov edi, esi
jmp 0x100588b9
push 0x100
lea ecx, [esp + 0x2c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1000ed80
mov edx, dword [esp + 0x18]
push eax
push ebx
push str.schannel:_failed_to_read_from_CA_file__s:__s
push edx
call fcn.1001cb80
add esp, 0x1c
mov esi, 0x4d
jmp 0x100588d6
Function at 0x10059b90
Capabilities:
Check http status code

Disassembly:
push ebx
push esi
push edi
push 0x11
mov esi, eax
push str.WWW_Authenticate:
push esi
mov ebx, ecx
mov edi, edx
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x10059bba
mov eax, dword [edi + 0xe0]
cmp eax, 0x191
je 0x10059bdb
push 0x13
push str.Proxy_authenticate:
push esi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x10059c1d
mov eax, dword [edi + 0xe0]
cmp eax, 0x197
jne 0x10059c1d
xor ebx, ebx
cmp eax, 0x197
push esi
sete bl
call fcn.100369e0
mov esi, eax
add esp, 4
test esi, esi
jne 0x10059bfb
pop edi
lea eax, [esi + 0x1b]
pop esi
pop ebx
ret
push esi
push ebx
push edi
call fcn.100371b0
push esi
mov edi, eax
call dword [0x100a3004]
add esp, 0x10
test edi, edi
je 0x10059dce
mov eax, edi
pop edi
pop esi
pop ebx
ret
push 0xf
push str.Content_Length:
push esi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x10059c7f
mov ecx, dword [edi + 0xe0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x10059c62
push ecx
push str.Ignoring_Content_Length_in_CONNECT__03d_response
push edi
call fcn.1001ccc0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
add ebx, 0x208
push ebx
push 0xa
push 0
add esi, 0xf
push esi
call fcn.10049460
add esp, 0x10
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 5
push str.close
push 0xb
push str.Connection:
push esi
call fcn.100378f0
add esp, 0x14
test eax, eax
jne 0x10059d41
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.10013d00
add esp, 0xc
test eax, eax
je 0x10059d26
mov ecx, dword [edi + 0xe0]
mov eax, 0x51eb851f
imul ecx
sar edx, 5
mov eax, edx
shr eax, 0x1f
add eax, edx
cmp eax, 2
jne 0x10059ce3
push ecx
push str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
push edi
call fcn.1001ccc0
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 7
push str.chunked
push 0x12
push str.Transfer_Encoding:
push esi
call fcn.100378f0
add esp, 0x14
test eax, eax
je 0x10059dce
push str.CONNECT_responded_chunked
push edi
call fcn.1001ccc0
push edi
mov dword [ebx + 0x214], 1
call fcn.10049980
add esp, 0xc
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 5
push str.close
push 0x11
push str.Proxy_Connection:
push esi
call fcn.100378f0
add esp, 0x14
test eax, eax
je 0x10059d51
pop edi
pop esi
mov dword [ebx + 0x218], 1
xor eax, eax
pop ebx
ret
push 7
push str.HTTP_1.
push esi
call dword [sym.imp.MSVCR100.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x10059dce
mov al, byte [esi + 7]
cmp al, 0x30
je 0x10059d71
cmp al, 0x31
jne 0x10059dce
cmp byte [esi + 8], 0x20
jne 0x10059dce
mov bl, byte [esi + 9]
cmp bl, 0x30
jl 0x10059dce
cmp bl, 0x39
jg 0x10059dce
mov dl, byte [esi + 0xa]
cmp dl, 0x30
jl 0x10059dce
cmp dl, 0x39
jg 0x10059dce
mov cl, byte [esi + 0xb]
cmp cl, 0x30
jl 0x10059dce
cmp cl, 0x39
jg 0x10059dce
mov al, byte [esi + 0xc]
cmp al, 0x30
jl 0x10059da9
cmp al, 0x39
jle 0x10059dce
movsx eax, bl
lea eax, [eax + eax*4]
movsx edx, dl
lea eax, [edx + eax*2]
movsx ecx, cl
lea eax, [eax + eax*4]
lea eax, [ecx + eax*2 - 0x14d0]
mov dword [edi + 0xe0], eax
mov dword [edi + 0xedc], eax
pop edi
pop esi
xor eax, eax
pop ebx
ret