joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100320e0
Capabilities:
Generate random numbers via winapi

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov ecx, 0x2b
test edi, edi
je 0x1003218b
mov ebp, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
nop dword [eax]
mov ebx, 4
lea eax, [esp + 0x1c]
push 4
push eax
cmp edi, ebx
push ebp
cmovb ebx, edi
call fcn.10052cf0
add esp, 0xc
cmp eax, 4
jne 0x10032146
cmp byte [0x1006a794], 0
jne 0x10032152
push 2
push eax
lea eax, [esp + 0x24]
mov dword [esp + 0x24], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x1003218d
mov eax, dword [esp + 0x1c]
jmp 0x1003216f
imul eax, dword [0x1006a790], 0x41c64e6d
add eax, 0x3039
mov dword [0x1006a790], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x1c], eax
test ebx, ebx
je 0x10032183
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x10032173
mov dword [esp + 0x1c], eax
test edi, edi
jne 0x10032100
mov eax, ecx
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x100321a0
Capabilities:
Generate random numbers via winapi

Disassembly:
sub esp, 0x8c
mov eax, dword [0x1006a744]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0x90]
mov edx, dword [esp + 0x98]
mov dword [esp + 4], eax
mov eax, edx
push ebx
and eax, 0xfffffffe
lea ebx, [esp + 0xc]
push ebp
mov ebp, dword [esp + 0x9c]
cmp eax, 0x100
jae 0x10032309
test dl, 1
je 0x10032309
push esi
dec edx
mov esi, ebx
push edi
mov edi, edx
mov dword [esp + 0xa8], edx
shr edi, 1
mov ecx, 0x2b
je 0x100322b3
nop word [eax + eax]
push 4
lea eax, [esp + 0x14]
mov ebx, 4
push eax
push dword [esp + 0x1c]
cmp edi, ebx
cmovb ebx, edi
call fcn.10052cf0
add esp, 0xc
cmp eax, 4
jne 0x10032259
cmp byte [0x1006a794], 0
jne 0x10032269
push 2
push eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
mov ecx, eax
test eax, eax
jne 0x100322f0
mov eax, dword [esp + 0x10]
jmp 0x10032286
imul eax, dword [0x1006a790], 0x41c64e6d
add eax, 0x3039
mov dword [0x1006a790], eax
rol eax, 0x10
xor ecx, ecx
mov dword [esp + 0x10], eax
test ebx, ebx
je 0x100322a0
nop word [eax + eax]
mov byte [esi], al
dec edi
inc esi
shr eax, 8
sub ebx, 1
jne 0x10032290
mov dword [esp + 0x10], eax
test edi, edi
jne 0x10032210
mov edx, dword [esp + 0xa8]
lea ebx, [esp + 0x18]
mov eax, ecx
test eax, eax
jne 0x100322f0
test edx, edx
je 0x100322ea
nop dword [eax]
movzx ecx, byte [ebx]
lea ebx, [ebx + 1]
mov eax, ecx
and ecx, 0xf
shr eax, 4
movzx eax, byte [eax + 0x1005e960]
mov byte [ebp], al
movzx eax, byte [ecx + 0x1005e960]
mov byte [ebp + 1], al
add ebp, 2
sub edx, 2
jne 0x100322c0
mov byte [ebp], 0
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x88]
xor ecx, esp
call fcn.10056613
add esp, 0x8c
ret
mov ecx, dword [esp + 0x90]
mov eax, 0x2b
pop ebp
pop ebx
xor ecx, esp
call fcn.10056613
add esp, 0x8c
ret
Function at 0x10032330
Capabilities:
Generate random numbers via winapi

Disassembly:
push dword [esp + 8]
push 0
push dword [esp + 0xc]
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
push 2
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
ret

Function at 0x10032360
Capabilities:
Move file

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
call fcn.10041a10
push dword [esp + 0x38]
movups xmm0, xmmword [eax]
movups xmmword [esp + 0x18], xmm0
call fcn.1000c1f0
push dword [esp + 0x40]
mov edi, eax
call fcn.1000c1f0
mov ebx, dword [sym.imp.KERNEL32.dll_MoveFileExW]
add esp, 0xc
mov esi, eax
push 1
push esi
push edi
call ebx
test eax, eax
jne 0x100323f5
mov ebp, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax + eax]
lea eax, [esp + 0x20]
push eax
call fcn.10041a10
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.10041ac0
add esp, 0x20
test edx, edx
ja 0x10032419
jb 0x100323e7
cmp eax, 0x3e8
ja 0x10032419
push 1
call ebp
push 1
push esi
push edi
call ebx
test eax, eax
je 0x100323b0
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x10032405
push edi
call ebx
add esp, 4
test esi, esi
je 0x1003240f
push esi
call ebx
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
mov ebx, dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
test edi, edi
je 0x10032429
push edi
call ebx
add esp, 4
test esi, esi
je 0x10032433
push esi
call ebx
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x20
ret
Function at 0x1003e0c0
Capabilities:
Get common file path

Disassembly:
push ecx
push ebx
push edi
push str.kernel32
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov ebx, eax
test ebx, ebx
jne 0x1003e0da
pop edi
pop ebx
pop ecx
ret
push ebp
push esi
push str.LoadLibraryExW
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, dword [esp + 0x18]
mov ebp, eax
push 0x100620b8
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcspbrk]
add esp, 8
test eax, eax
je 0x1003e123
test ebp, ebp
je 0x1003e114
push 8
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
test ebp, ebp
je 0x1003e149
push str.AddDllDirectory
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1003e149
push 0x800
push 0
push esi
call ebp
pop esi
pop ebp
mov edi, eax
pop edi
pop ebx
pop ecx
ret
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov edx, eax
mov dword [esp + 0x10], edx
test edx, edx
je 0x1003e222
mov ecx, esi
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003e166
sub ecx, ebx
sar ecx, 1
lea eax, [ecx + edx]
lea eax, [eax*2 + 2]
push eax
call dword [0x100691ac]
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x1003e218
push dword [esp + 0x10]
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1003e218
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003e1a7
sub ecx, edx
sar ecx, 1
mov dword [ebx + ecx*2], 0x5c
mov ecx, ebx
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1003e1c2
sub ecx, edx
sar ecx, 1
add ecx, ecx
sub ecx, esi
add ecx, ebx
nop word [eax + eax]
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x1003e1e0
test ebp, ebp
je 0x1003e20f
push 8
push 0
push ebx
call ebp
push ebx
mov edi, eax
call dword [0x100691b0]
add esp, 4
mov eax, edi
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret
push ebx
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov edi, eax
push ebx
call dword [0x100691b0]
add esp, 4
pop esi
pop ebp
mov eax, edi
pop edi
pop ebx
pop ecx
ret

Function at 0x1003f190
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 + 0x120]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jns 0x1003f1dc
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
push str.Sending_data_failed___d_
push esi
call fcn.1000c060
add esp, 0xc
push dword [esp + 0x14]
push ebx
push str.SENT
push esi
call fcn.1003eda0
add esp, 0x10
pop esi
pop ebx
ret
Function at 0x1003f330
Capabilities:
Send data
Send data on socket

Disassembly:
push ecx
cmp dword [esp + 0xc], 0x1f
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov eax, dword [ebx + 0xc]
mov ebp, dword [ebx + 0x124]
mov dword [esp + 8], eax
jne 0x1003f483
push esi
lea ecx, [ebp + 0x1cb4]
push edi
lea edi, [ebp + 0x1eb4]
mov eax, ecx
mov dword [edi], ecx
cmp ecx, edi
jae 0x1003f36d
lea eax, [ecx + 1]
mov byte [ecx], 0xff
mov dword [edi], eax
cmp eax, edi
jae 0x1003f381
mov byte [eax], 0xfa
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1003f381
mov byte [eax], 0x1f
inc dword [edi]
movzx eax, word [ebp + 0x1ca8]
mov esi, dword [sym.imp.WS2_32.dll_htons]
push eax
call esi
movzx eax, ax
mov dword [esp + 0x18], eax
movzx eax, word [ebp + 0x1caa]
push eax
call esi
mov edx, dword [esp + 0x18]
movzx ecx, ax
mov eax, dword [edi]
cmp eax, edi
jae 0x1003f3eb
mov byte [eax], dl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1003f3eb
mov byte [eax], dh
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1003f3eb
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1003f3eb
shr ecx, 8
mov byte [eax], cl
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1003f3eb
mov byte [eax], 0xff
inc dword [edi]
mov eax, dword [edi]
cmp eax, edi
jae 0x1003f3eb
mov byte [eax], 0xf0
mov eax, dword [edi]
inc eax
mov dword [ebp + 0x1eb8], eax
lea esi, [ebp + 0x1cb4]
sub eax, esi
mov dword [edi], esi
sub eax, 2
push eax
lea eax, [ebp + 0x1cb6]
push eax
push 0x3e
push ebx
call fcn.1003eeb0
mov eax, dword [esp + 0x20]
add esp, 0x10
mov edi, dword [sym.imp.WS2_32.dll_send]
push 0
push 3
push esi
push dword [eax + 0x120]
call edi
mov esi, dword [sym.imp.WS2_32.dll_WSAGetLastError]
test eax, eax
jns 0x1003f443
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1000c060
add esp, 0xc
push 4
lea eax, [ebp + 0x1cb7]
push eax
push ebx
call fcn.1003f200
add esp, 0xc
lea eax, [ebp + 0x1cbb]
push 0
push 2
push eax
mov eax, dword [esp + 0x1c]
push dword [eax + 0x120]
call edi
test eax, eax
jns 0x1003f481
call esi
push eax
push str.Sending_data_failed___d_
push ebx
call fcn.1000c060
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x100408a0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x88
mov eax, dword [0x1006a744]
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 + 0x378]
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 0x10040926
push dword [esp + 0x10]
lea eax, [esp + 0x18]
push eax
lea eax, [edi + 0xb0]
push eax
call sub.VCRUNTIME140.dll_memcpy
mov eax, dword [esp + 0x1c]
add esp, 0xc
mov dword [edi + 0x130], eax
mov esi, dword [edi + 0x134]
cmp esi, 4
jge 0x10040961
push str.Received_too_short_packet
push ebx
call fcn.1000c060
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.10056613
add esp, 0x88
ret
mov edx, dword [edi + 0x148]
movzx eax, byte [edx]
movzx ecx, byte [edx + 1]
shl eax, 8
or ecx, eax
mov dword [edi + 0xc], ecx
dec ecx
cmp ecx, 5
ja case.0x10040980.1
jmp dword [ecx*4 + 0x10040a8c]
cmp esi, 4
jle case.0x10040980.4
movzx ecx, byte [edx + 2]
movzx eax, byte [edx + 3]
shl ecx, 8
or ecx, eax
movzx eax, word [edi + 0x144]
inc eax
movzx eax, ax
cmp eax, ecx
jne case.0x10040980.4
lea eax, [esi - 4]
push eax
lea eax, [edx + 4]
push eax
push 1
push ebx
call fcn.10033720
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100409db
push 5
push edi
call fcn.100413a0
add esp, 8
mov eax, esi
jmp 0x10040948
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.10030d30
jmp 0x10040a61
movzx ecx, byte [edx + 2]
lea ebp, [edx + 4]
movzx eax, byte [edx + 3]
add esi, 0xfffffffc
shl ecx, 8
or ecx, eax
push esi
push ebp
mov dword [edi + 8], ecx
call fcn.10041410
add esp, 8
cmp eax, esi
jae case.0x10040980.4
push ebp
push str.TFTP_error:__s
push ebx
call fcn.1000c130
jmp 0x10040a61
lea eax, [esi - 2]
push eax
lea eax, [edx + 2]
push eax
push edi
call fcn.10040650
add esp, 0xc
test eax, eax
je case.0x10040980.4
jmp 0x10040948
push str.Internal_error:_Unexpected_packet
push 0x10058a10
push ebx
call fcn.1000c060
add esp, 0xc
push ebx
call fcn.10031290
add esp, 4
test eax, eax
je 0x10040946
push 5
push edi
call fcn.100413a0
add esp, 8
mov eax, 0x2a
jmp 0x10040948
Function at 0x10049740
Capabilities:
Convert ip address from string

Disassembly:
sub esp, 0x4c
mov eax, dword [0x1006a744]
xor eax, esp
mov dword [esp + 0x48], eax
mov eax, dword [esp + 0x50]
push ebx
mov ebx, dword [esp + 0x5c]
push edi
mov edi, dword [esp + 0x5c]
mov dword [esp + 8], eax
mov al, byte [edi]
test al, al
jne 0x1004977c
pop edi
mov eax, 0xe
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.10056613
add esp, 0x4c
ret
cmp al, 0x5b
jne 0x100498f4
push ebp
push esi
cmp ebx, 4
jb 0x100498dc
inc edi
sub ebx, 2
push str.0123456789abcdefABCDEF:.
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strspn]
add esp, 8
cmp ebx, eax
je 0x10049863
mov ebx, eax
add eax, edi
mov dword [esp + 0x14], eax
cmp byte [eax], 0x25
jne 0x100498dc
push 2
lea esi, [eax + 1]
xor ebp, ebp
push 0x10063874
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x100497e5
mov cl, byte [esi + 2]
lea eax, [esi + 2]
test cl, cl
je 0x100497e5
cmp cl, 0x5d
cmovne esi, eax
mov al, byte [esi]
test al, al
je 0x100498dc
lea ecx, [esp + 0x18]
sub ecx, esi
cmp al, 0x5d
je 0x1004980a
cmp ebp, 0xf
jge 0x1004980a
mov byte [ecx + esi], al
inc ebp
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x100497f5
test ebp, ebp
je 0x100498dc
cmp byte [esi], 0x5d
jne 0x100498dc
cmp ebp, 0x10
jae 0x10049922
lea eax, [esp + 0x18]
mov byte [esp + ebp + 0x18], 0
push eax
call dword [0x100691b8]
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [ecx + 0x14], eax
test eax, eax
jne 0x1004985a
pop esi
pop ebp
pop edi
mov eax, 7
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.10056613
add esp, 0x4c
ret
mov eax, dword [esp + 0x14]
mov word [eax], 0x5d
lea eax, [esp + 0x18]
mov byte [ebx + edi], 0
push eax
push edi
push 0x17
call dword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x100498dc
push 0x2e
lea eax, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
push eax
push 0x17
call sub.WS2_32.dll_inet_ntop
test eax, eax
je 0x100498c3
lea edx, [esp + 0x28]
lea ecx, [edx + 1]
mov al, byte [edx]
inc edx
test al, al
jne 0x10049898
sub edx, ecx
cmp edx, ebx
jae 0x100498c3
lea ecx, [esp + 0x28]
mov esi, edi
mov eax, ecx
sub esi, eax
nop
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [esi + ecx - 1], al
test al, al
jne 0x100498b0
mov byte [edx + edi + 1], al
mov ebx, edx
pop esi
pop ebp
mov byte [ebx + edi], 0x5d
xor eax, eax
pop edi
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.10056613
add esp, 0x4c
ret
pop esi
pop ebp
pop edi
mov eax, 0x16
pop ebx
mov ecx, dword [esp + 0x48]
xor ecx, esp
call fcn.10056613
add esp, 0x4c
ret
push str.__r_n_t_:_______________
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcspn]
xor ecx, ecx
add esp, 8
cmp ebx, eax
mov edx, 0x15
cmovne ecx, edx
mov eax, ecx
mov ecx, dword [esp + 0x50]
pop edi
pop ebx
xor ecx, esp
call fcn.10056613
add esp, 0x4c
ret
call fcn.100567fc
int3
Function at 0x10050760
Capabilities:
Get file size
Read file on windows

Disassembly:
sub esp, 0x120
mov eax, dword [0x1006a744]
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.1000c1f0
add esp, 4
mov dword [esp + 0x20], eax
test eax, eax
jne 0x100507df
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003d4c0
push eax
push edi
push str.schannel:_invalid_path_name_for_CA_file__s:__s
push ebp
call fcn.1000c060
push esi
call dword [0x100691b0]
add esp, 0x20
lea eax, [ebx + 0x4d]
jmp 0x10050940
push 0
push 0x80
push 3
push 0
push 1
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x10050839
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003d4c0
push eax
push edi
push str.schannel:_failed_to_open_CA_file__s:__s
push ebp
call fcn.1000c060
push 0
mov esi, 0x4d
call dword [0x100691b0]
add esp, 0x20
jmp 0x10050931
lea ecx, [esp + 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x10050879
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003d4c0
push eax
push edi
push str.schannel:_failed_to_determine_size_of_CA_file__s:__s
push ebp
call fcn.1000c060
add esp, 0x1c
mov esi, 0x4d
jmp 0x1005091d
mov edi, dword [esp + 0x24]
cmp dword [esp + 0x28], ebx
jl 0x100508a7
jg 0x1005088d
cmp edi, 0x100000
jbe 0x100508a7
push 0x100000
push str.schannel:_CA_file_exceeds_max_size_of__u_bytes
push ebp
call fcn.1000c060
add esp, 0xc
mov esi, 0x4d
jmp 0x1005091d
lea eax, [edi + 1]
push eax
call dword [0x100691ac]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x100508bf
lea esi, [eax + 0x1b]
jmp 0x1005091d
test edi, edi
je 0x10050904
nop dword [eax]
nop word [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 0x1005095d
mov eax, dword [esp + 0x10]
test eax, eax
je 0x10050959
add esi, eax
cmp esi, edi
jb 0x100508d0
push ebp
push dword [esp + 0x18]
mov byte [edi + ebx], 0
push edi
push ebx
push dword [esp + 0x2c]
call fcn.10050560
add esp, 0x14
mov esi, eax
push dword [esp + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call dword [0x100691b0]
add esp, 4
push dword [esp + 0x20]
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x12c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.10056613
add esp, 0x120
ret
mov edi, esi
jmp 0x10050904
push 0x100
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.1003d4c0
push eax
push dword [esp + 0x24]
push str.schannel:_failed_to_read_from_CA_file__s:__s
push ebp
call fcn.1000c060
add esp, 0x1c
mov esi, 0x4d
jmp 0x1005091d
Function at 0x100520a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x18
push ebx
push ebp
mov ebp, dword [esp + 0x24]
mov eax, 0x180
mov edx, 0x140
push esi
push edi
cmp dword [ebp], 0x1006a6f8
mov ecx, dword [ebp + 8]
cmovne eax, edx
mov dword [esp + 0x20], ecx
add eax, dword [ebp + 0xc]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x100520d8
mov byte [eax], 0
mov ebx, dword [esp + 0x30]
mov esi, dword [ebx + 0x8d8]
test esi, esi
je 0x1005228c
push dword [ecx + 8]
mov edi, dword [esi + 0x14]
call dword [0x100691b8]
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
je 0x10052131
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x1c9], 0
je 0x1005213e
push dword [eax + 0x64]
call dword [0x100691b8]
mov ecx, eax
add esp, 4
mov dword [esp + 0x10], ecx
test ecx, ecx
jne 0x10052146
mov edi, dword [esp + 0x30]
push edi
call dword [0x100691b0]
add esp, 4
pop edi
pop esi
pop ebp
mov eax, 0x1b
pop ebx
add esp, 0x18
ret
mov dword [esp + 0x10], 0
mov eax, dword [ebp + 0xc]
cmp byte [eax + 0x1ca], 0
je 0x1005215e
mov ecx, dword [eax + 0x444]
mov dword [esp + 0x14], ecx
jmp 0x10052166
mov dword [esp + 0x14], 0xffffffff
mov eax, dword [ebx + 0x78]
test eax, eax
je 0x1005217c
test byte [eax + 4], 0x10
je 0x1005217c
lea edx, [eax + 0x78]
mov dword [esp + 0x2c], edx
jmp 0x10052186
lea eax, [ebx + 0x8dc]
mov dword [esp + 0x2c], eax
mov eax, dword [ebx + 0x4a4]
mov ecx, 1
cmp eax, ecx
jbe 0x100521d3
mov eax, dword [ebx + 0x8d8]
add eax, 0x74
nop
cmp dword [eax - 8], 0
mov edx, edi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], edi
je 0x100521cd
mov edi, dword [eax]
lea esi, [eax - 0x14]
cmp edi, edx
cmovge esi, dword [esp + 0x1c]
inc ecx
add eax, 0x60
cmp edi, edx
cmovge edi, edx
cmp ecx, dword [ebx + 0x4a4]
jb 0x100521a0
mov eax, dword [ebx + 0x4a4]
cmp ecx, eax
jne 0x100521e2
push esi
call fcn.10052bc0
add esp, 4
jmp 0x100521ee
lea esi, [ecx + ecx*2]
shl esi, 5
add esi, dword [ebx + 0x8d8]
mov eax, dword [esp + 0x34]
push dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [esp + 0x3c]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x30]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
call dword [0x100691b0]
push dword [esi + 4]
call dword [0x100691b0]
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x38]
mov ebx, dword [esp + 0x18]
mov dword [esi + 0x1c], eax
mov eax, dword [esp + 0x28]
mov dword [esi], edi
mov dword [esi + 4], ebx
mov eax, dword [eax + 0x10]
mov dword [esi + 0x18], eax
mov eax, dword [ebp + 0xc]
lea ebp, [esi + 0x20]
push ebp
push dword [esp + 0x30]
mov eax, dword [eax + 0x1e0]
mov eax, dword [eax]
mov dword [esi + 8], eax
call fcn.10051790
add esp, 0x10
test al, al
jne 0x10052281
push ebp
call fcn.10051a10
push edi
mov dword [esi + 0xc], 0
call dword [0x100691b0]
push ebx
call dword [0x100691b0]
add esp, 0xc
mov eax, 0x1b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret
mov eax, dword [esp + 0x3c]
test eax, eax
je 0x1005228c
mov byte [eax], 1
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x10052900
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x10
mov ecx, dword [esp + 0x14]
push ebx
push ebp
mov ebp, dword [esp + 0x20]
mov ebx, 0x180
mov eax, dword [ecx]
cmp eax, 0x1006a6f8
mov edx, dword [ecx + 8]
push esi
mov esi, 0x140
mov dword [esp + 0x10], edx
cmovne ebx, esi
mov byte [esp + 0xf], 1
add ebx, dword [ecx + 0xc]
mov esi, 0x3cc
cmp eax, 0x1006a6f8
mov dword [esp + 0x18], ebx
mov eax, dword [esp + 0x28]
mov ecx, 0x434
cmovne ecx, esi
mov dword [eax], 0
add ecx, ebp
je 0x10052a9d
cmp byte [ecx + 0x3c], 0
je 0x10052a9d
cmp dword [ebp + 0x8d8], 0
je 0x10052a9d
mov eax, dword [ebp + 0x78]
test eax, eax
je 0x10052982
test byte [eax + 4], 0x10
je 0x10052982
add eax, 0x78
jmp 0x10052988
lea eax, [ebp + 0x8dc]
push edi
xor edi, edi
mov dword [esp + 0x18], eax
cmp dword [ebp + 0x4a4], edi
jbe 0x10052a66
xor ebx, ebx
nop dword [eax]
mov esi, dword [ebp + 0x8d8]
add esi, ebx
cmp dword [esi + 0xc], 0
je 0x10052a56
push dword [esi]
push dword [edx + 8]
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x10052a52
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 4]
cmp byte [ecx + 0x1c9], 0
jne 0x100529e0
test eax, eax
je 0x100529f4
jmp 0x10052a52
test eax, eax
je 0x10052a52
push eax
push dword [ecx + 0x64]
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x10052a52
mov eax, dword [esp + 0x24]
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x1c]
cmp byte [ecx + 0x1ca], 0
jne 0x10052a0e
cmp eax, 0xffffffff
je 0x10052a1b
jmp 0x10052a52
cmp eax, 0xffffffff
je 0x10052a52
cmp dword [ecx + 0x444], eax
jne 0x10052a52
mov edx, dword [esp + 0x14]
mov eax, dword [edx + 0x10]
cmp eax, dword [esi + 0x18]
jne 0x10052a56
mov eax, dword [ecx + 0x1e0]
push dword [esi + 8]
push dword [eax]
call sym.libcurl.dll_curl_strequal
add esp, 8
test eax, eax
je 0x10052a52
lea eax, [esi + 0x20]
push eax
push dword [esp + 0x20]
call fcn.100524b0
add esp, 8
test al, al
jne 0x10052a72
mov edx, dword [esp + 0x14]
inc edi
add ebx, 0x60
cmp edi, dword [ebp + 0x4a4]
jb 0x100529a0
mov al, byte [esp + 0x13]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x2c]
inc dword [eax]
mov eax, dword [eax]
mov dword [esi + 0x14], eax
mov eax, dword [esi + 0xc]
mov dword [ecx], eax
mov ecx, dword [esp + 0x30]
test ecx, ecx
je 0x10052a93
mov eax, dword [esi + 0x10]
mov dword [ecx], eax
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x10
ret
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x10
ret