joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1801feda0
Capabilities:
Convert ip address from string

Disassembly:
push rsi
push r13
push r14
sub rsp, 0x90
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x60], rax
movzx eax, byte [rdx]
mov r14, r8
mov rsi, rdx
mov r13, rcx
test al, al
jne 0x1801fedd6
mov eax, recvfrom
jmp 0x1801fef85
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r15
cmp al, 0x5b
jne 0x1801fef9f
cmp r14, 4
jb 0x1801feef6
inc rsi
sub r14, 2
cmp byte [r14 + rsi], 0x5d
lea rdi, [r14 + rsi]
jne 0x1801feef6
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rsi
call fcn.18022a2d4
cmp r14, rax
je 0x1801feedb
cmp byte [rsi + rax], 0x25
lea rdi, [rsi + rax]
mov r14, rax
jne 0x1801feef6
xor ebp, ebp
lea rdx, [0x18040bbfc]
lea rcx, [rdi + 1]
lea rbx, [rdi + 1]
lea r8d, [rbp + 2]
call fcn.180212ee0
test eax, eax
jne 0x1801fee71
movzx eax, byte [rdi + 3]
lea rcx, [rdi + 3]
test al, al
je 0x1801fee71
cmp al, 0x5d
cmovne rbx, rcx
movzx eax, byte [rbx]
test al, al
je 0x1801feefd
mov rcx, rbp
nop
cmp al, 0x5d
je 0x1801fee9d
cmp rcx, 0xf
jge 0x1801fee9d
inc rbx
mov byte [rsp + rcx + 0x20], al
inc ebp
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x1801fee80
test ebp, ebp
je 0x1801feefd
cmp byte [rbx], 0x5d
jne 0x1801feefd
movsxd rax, ebp
cmp rax, 0x10
jae 0x1801fefba
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x1801c4485.0]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x1801feed6
mov eax, 7
jmp 0x1801fef6b
mov word [rdi], 0x5d
lea r8, [rsp + 0x20]
mov byte [rdi], 0
mov rdx, rsi
mov ecx, reloc.WS2_32.dll_socket
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
je 0x1801fef04
mov eax, reloc.WLDAP32.dll_Ordinal_22
jmp 0x1801fef6b
mov eax, 3
jmp 0x1801fef6b
mov r9d, reloc.WLDAP32.dll_Ordinal_46
lea r8, [rsp + 0x30]
lea rdx, [rsp + 0x20]
lea ecx, [r9 - 0x17]
call sub.WS2_32.dll_inet_ntop
test rax, rax
je 0x1801fef66
lea rax, [rsp + 0x30]
or rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x1801fef30
cmp rdx, r14
jae 0x1801fef66
lea rax, [rsp + 0x30]
mov r8, rsi
sub r8, rax
lea rcx, [rsp + 0x30]
nop
movzx eax, byte [rcx]
mov byte [r8 + rcx], al
lea rcx, [rcx + 1]
test al, al
jne 0x1801fef50
lea rdi, [rdx + rsi]
mov byte [rdi + 1], al
mov byte [rdi], 0x5d
xor eax, eax
mov rdi, qword [rsp + 0x78]
mov rbp, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x88]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x90
pop r14
pop r13
pop rsi
ret
lea rdx, str.__r_n_t_:______________
mov rcx, rsi
call fcn.180216a78
cmp r14, rax
je 0x1801fef69
mov eax, reloc.WS2_32.dll_setsockopt
jmp 0x1801fef6b
call fcn.1800b857c
int3
Function at 0x1802007f0
Capabilities:
Convert ip address from string

Disassembly:
mov r11, rsp
push rbx
push r14
sub rsp, 0x158
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rdx
mov r14, rcx
test rcx, rcx
je 0x180200a8e
movzx ecx, byte [rcx]
test cl, cl
je 0x180200a8e
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 0x18], rdi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r15
test rdx, rdx
je 0x180200a45
cmp byte [rdx], 0
je 0x180200a45
movzx eax, byte [0x18032e390]
xor r15d, r15d
cmp al, byte [rdx]
jne 0x18020086d
movzx eax, byte [0x18032e391]
cmp al, byte [rdx + 1]
je 0x180200a8a
cmp cl, 0x5b
jne 0x1802008c9
mov edx, 0x5d
mov rcx, r14
call fcn.18021004c
mov rsi, rax
test rax, rax
je 0x180200a45
inc r14
sub rsi, r14
cmp rsi, 0x80
jae 0x180200a45
mov r8, rsi
lea rcx, [rsp + 0xb0]
mov rdx, r14
call fcn.18020f990
mov byte [rsp + rsi + 0xb0], r15b
lea r14, [rsp + 0xb0]
mov r15d, 2
jmp 0x180200901
or rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp byte [r14 + rsi], r15b
jne 0x1802008d0
lea r8, [rsp + 0x20]
mov rdx, r14
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1802008f6
mov r15d, eax
jmp 0x180200901
cmp byte [r14 + rsi - 1], 0x2e
jne 0x180200901
dec rsi
cmp byte [rbx], 0
je 0x180200a45
movabs r12, 0x100100000200
movzx eax, byte [rbx]
xor edi, edi
test al, al
je 0x180200933
nop dword [rax]
cmp al, 0x20
je 0x180200928
cmp al, 9
jne 0x180200933
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x180200920
movzx eax, byte [rbx]
mov rcx, rbx
test al, al
je 0x180200a2f
cmp al, 0x2c
ja 0x18020094f
movsx rax, al
bt r12, rax
jb 0x18020095d
movzx eax, byte [rbx + 1]
inc rbx
inc rdi
test al, al
jne 0x180200941
test rdi, rdi
je 0x180200a2f
test r15d, r15d
je 0x1802009d1
xor ebp, ebp
cmp rdi, 0x80
jae 0x180200a2f
mov rdx, rcx
mov r8, rdi
lea rcx, [rsp + 0x30]
call fcn.18020f990
lea edx, [rbp + 0x2f]
mov byte [rsp + rdi + 0x30], bpl
lea rcx, [rsp + 0x30]
call fcn.18021004c
mov rdi, rax
test rax, rax
je 0x1802009b2
lea rcx, [rax + 1]
call fcn.180218184
mov ebp, eax
mov byte [rdi], 0
lea rdx, [rsp + 0x30]
mov r8d, ebp
mov rcx, r14
cmp r15d, 2
jne 0x1802009ca
call fcn.180200b70
jmp 0x180200a2b
call fcn.180200aa0
jmp 0x180200a2b
cmp byte [rcx + rdi - 1], 0x2e
lea rax, [rdi - 1]
cmovne rax, rdi
mov r8, rax
test rax, rax
je 0x1802009f2
cmp byte [rcx], 0x2e
jne 0x1802009f2
inc rcx
lea r8, [rax - 1]
cmp r8, rsi
jne 0x180200a09
mov r8, rsi
mov rdx, r14
call sym.gcm64.dll_curl_strnequal
test eax, eax
setne al
jmp 0x180200a2b
jae 0x180200a2f
mov rax, r14
sub rax, r8
cmp byte [rax + rsi - 1], 0x2e
lea rdx, [rax + rsi]
jne 0x180200a29
call sym.gcm64.dll_curl_strnequal
test eax, eax
je 0x180200a29
mov al, 1
jmp 0x180200a2b
xor al, al
test al, al
jne 0x180200a8a
cmp byte [rbx], 0x2c
jne 0x180200a3c
inc rbx
cmp byte [rbx], 0x2c
je 0x180200a34
cmp byte [rbx], 0
jne 0x180200914
xor al, al
mov r12, qword [rsp + 0x148]
mov rdi, qword [rsp + 0x150]
mov rsi, qword [rsp + 0x188]
mov rbp, qword [rsp + 0x180]
mov r15, qword [rsp + 0x140]
mov rcx, qword [rsp + 0x130]
xor rcx, rsp
call fcn.1800b8140
add rsp, 0x158
pop r14
pop rbx
ret
mov al, 1
jmp 0x180200a47
xor al, al
jmp 0x180200a6f
Function at 0x180200aa0
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
mov edi, r8d
mov dword [rsp + 0x48], ebx
mov rsi, rdx
mov dword [rsp + 0x40], ebx
cmp r8d, 0x20
jbe 0x180200ad7
xor al, al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rdx, rcx
lea r8, [rsp + 0x48]
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180200ac5
lea r8, [rsp + 0x40]
mov rdx, rsi
lea ecx, [rax + 1]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180200ac5
test edi, 0xffffffdf
je 0x180200b46
mov ecx, dword [rsp + 0x48]
call qword [sym.imp.WS2_32.dll_htonl]
mov ecx, dword [rsp + 0x40]
mov ebx, eax
call qword [sym.imp.WS2_32.dll_htonl]
or edx, 0xffffffff
mov ecx, reloc.WLDAP32.dll_Ordinal_32
sub ecx, edi
xor eax, ebx
shl edx, cl
test edx, eax
sete al
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov ecx, dword [rsp + 0x40]
cmp dword [rsp + 0x48], ecx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
sete al
add rsp, 0x20
pop rdi
ret

Function at 0x180200b70
Capabilities:
Convert ip address from string

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0x40], rax
test r8d, r8d
mov rsi, rdx
mov rdx, rcx
mov edi, 0x80
cmovne edi, r8d
mov ecx, reloc.WS2_32.dll_socket
mov ebx, edi
lea r8, [rsp + 0x30]
shr ebx, 3
and edi, 7
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180200bde
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rax + 0x16]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x180200bde
cmp ebx, 0x10
ja 0x180200bde
jne 0x180200bfd
test edi, edi
je 0x180200c01
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800b8140
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
test ebx, ebx
je 0x180200c17
mov r8d, ebx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.18020f8b0
test eax, eax
jne 0x180200bde
test edi, edi
je 0x180200c3f
movzx eax, byte [rsp + rbx + 0x30]
mov edx, 0xff
movzx r8d, byte [rsp + rbx + 0x20]
xor r8d, eax
mov eax, 8
sub eax, edi
movzx ecx, al
shl edx, cl
test edx, r8d
je 0x180200bde
mov al, 1
jmp 0x180200be0
Function at 0x180207ae0
Capabilities:
Check http status code

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r8
mov dword [rsp + 0x40], 0
mov rbp, rdx
mov rbx, rcx
mov rcx, rdi
lea rdx, str.WWW_Authenticate:
mov r8d, reloc.WS2_32.dll_recvfrom
call sym.gcm64.dll_curl_strnequal
test eax, eax
je 0x180207b2c
mov esi, dword [rbx + 0x158]
cmp esi, 0x191
je 0x180207b53
mov r8d, reloc.WS2_32.dll_send
lea rdx, str.Proxy_authenticate:
mov rcx, rdi
call sym.gcm64.dll_curl_strnequal
test eax, eax
je 0x180207b99
mov esi, dword [rbx + 0x158]
cmp esi, 0x197
jne 0x180207b99
mov rcx, rdi
call fcn.1801db660
mov rdi, rax
test rax, rax
jne 0x180207b6b
lea eax, [rdi + 0x1b]
jmp 0x180207d0a
cmp esi, 0x197
mov r8, rdi
mov rcx, rbx
sete dl
call fcn.1801dd340
mov rcx, rdi
mov ebx, eax
call qword [fcn.180211bf4]
test ebx, ebx
je 0x180207d08
mov eax, ebx
jmp 0x180207d0a
mov r8d, reloc.WS2_32.dll_ntohs
lea rdx, str.Content_Length:
mov rcx, rdi
call sym.gcm64.dll_curl_strnequal
test eax, eax
je 0x180207bf4
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x180207bd9
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1801d0780
jmp 0x180207d08
xor edx, edx
lea r9, [rbp + 0x298]
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1801e2f80
jmp 0x180207d08
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_inet_addr
lea rdx, str.Connection:
mov rcx, rdi
call fcn.1801db580
test al, al
jne 0x180207cd3
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call sym.gcm64.dll_curl_strnequal
test eax, eax
je 0x180207caa
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x180207c61
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1801d0780
jmp 0x180207d08
lea r9, str.chunked
mov qword [rsp + 0x20], 7
mov r8d, reloc.WS2_32.dll_select
lea rdx, str.Transfer_Encoding:
mov rcx, rdi
call fcn.1801db580
test al, al
je 0x180207d08
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.1801d0780
mov rcx, rbx
mov byte [rbp + 0x2a4], 1
call fcn.180202ff0
jmp 0x180207d08
lea r9, str.close
mov qword [rsp + 0x20], 5
mov r8d, reloc.WS2_32.dll_recvfrom
lea rdx, str.Proxy_Connection:
mov rcx, rdi
call fcn.1801db580
test al, al
je 0x180207cdc
mov byte [rbp + 0x2a5], 1
jmp 0x180207d08
lea r9, [rbx + 0x158]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, str.HTTP_1._d__d
call fcn.1801c44b0
cmp eax, 2
jne 0x180207d08
mov eax, dword [rbx + 0x158]
mov dword [rbx + 0x1394], eax
xor eax, eax
mov rbx, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x18020d0b0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rdi
push r14
sub rsp, 0x20
mov eax, dword [rcx + 0x18]
mov rbx, rcx
mov ebp, r8d
mov r14, rdx
lea ecx, [rax + rax]
mov eax, dword [rbx + 0x20]
add rax, 0x18
add rcx, rax
call qword [fcn.180212b48]
mov rdi, rax
test rax, rax
jne 0x18020d0f2
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
lea rcx, [rax + 0x18]
mov qword [rax], rbx
mov qword [rax + 8], rcx
mov eax, dword [rbx + 0x18]
add rax, rcx
mov qword [rsp + 0x48], rsi
mov qword [rdi + 0x10], rax
cmp ebp, dword [rbx + 0x1c]
jbe 0x18020d135
call qword [rbx]
mov rcx, qword [rdi + 8]
mov r8d, ebp
mov rdx, r14
call qword [rbx + reloc.WS2_32.dll_htonl]
mov r14d, dword [rbx + 0x18]
add r14, qword [rdi + 0x10]
mov rdx, qword [rdi + 8]
mov rcx, r14
call qword [rbx + reloc.WS2_32.dll_recv]
mov ebp, dword [rbx + 0x20]
mov rcx, qword [rdi + 8]
call qword [rbx]
mov rcx, qword [rdi + 0x10]
call qword [rbx]
xor esi, esi
test rbp, rbp
je 0x18020d192
mov rsi, rbp
nop dword [rax + rax]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x36
mov r8d, 1
mov byte [rsp + 0x40], al
mov rcx, qword [rdi + 8]
call qword [rbx + reloc.WS2_32.dll_htonl]
movzx eax, byte [r14]
lea rdx, [rsp + 0x40]
xor al, 0x5c
lea r14, [r14 + 1]
mov byte [rsp + 0x40], al
mov r8d, 1
mov rcx, qword [rdi + 0x10]
call qword [rbx + reloc.WS2_32.dll_htonl]
sub rbp, 1
jne 0x18020d150
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x18020d1d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x18040d930]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x18040d931]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18020d1a0
mov rsi, qword [rsp + 0x48]
mov rax, rdi
mov rbx, qword [rsp + 0x50]
add rsp, 0x20
pop r14
pop rdi
pop rbp
ret
Function at 0x180233a0c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x180233a2c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1802169ac
or eax, 0xffffffff
jmp 0x180233a2e
xor eax, eax
add rsp, 0x28
ret

Function at 0x1802350ec
Capabilities:
Read file on windows

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax + 8], rcx
push rbp
mov rbp, rsp
sub rsp, 0x20
test rcx, rcx
jne 0x180234f8c
call fcn.180216a1c
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.180211994
or eax, 0xffffffff
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop rbp
ret
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x180234f74
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180234f74
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x180234fbe
lock or dword [rax + 0x14], 0x10
jmp 0x180234f74
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180234fdb
mov rcx, qword [rbp + 0x10]
call fcn.18023911c
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18022d358
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1802349c4
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180235032
neg edx
sbb ecx, ecx
and ecx, 8
add ecx, 8
lock or dword [rax + 0x14], ecx
mov rax, qword [rbp + 0x10]
and dword [rax + 0x10], 0
jmp 0x180234f74
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x18023509e
mov rcx, qword [rbp + 0x10]
call fcn.18022d358
cmp eax, 0xffffffff
je 0x180235085
mov rcx, qword [rbp + 0x10]
call fcn.18022d358
cmp eax, 0xfffffffe
je 0x180235085
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18022d358
movsxd rdi, eax
lea rsi, [0x18059c500]
mov rcx, rbx
sar rdi, 6
call fcn.18022d358
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x18023508c
lea rax, [0x1804ad0f0]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18023509e
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x1802350d4
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x1802350d0
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x1802350d0
mov rax, qword [rbp + 0x10]
mov dword [rax + 0x20], 0x1000
mov rax, qword [rbp + 0x10]
dec dword [rax + 0x10]
mov rcx, qword [rax]
movzx edx, byte [rcx]
inc rcx
mov qword [rax], rcx
mov eax, edx
jmp 0x180234f77
jmp 0x180234f44
Function at 0x180235138
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180235115
call fcn.180216a1c
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.180211994
or eax, 0xffffffff
jmp 0x180235132
sub dword [rcx + 0x10], 1
jns 0x180235124
add rsp, 0x28
jmp fcn.1802350ec
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x1802350f4
Function at 0x180255b10
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1800b8180
sub rsp, rax
lea rdx, [rsp + 0x38]
mov rbx, rcx
call fcn.180255a00
test rax, rax
je 0x180255bd9
cmp dword [rsp + 0x38], 0
jg 0x180255bd9
cmp dword [rsp + 0x3c], 0
jg 0x180255bd9
mov rcx, qword [rbx + 0x98]
movzx eax, word [rcx + 0x1bc]
add ax, ax
mov word [rcx + 0x1bc], ax
mov rax, qword [rbx + 0x98]
cmp word [rax + 0x1bc], 0x3c
jbe 0x180255b80
mov ecx, reloc.WLDAP32.dll_Ordinal_60
mov word [rax + 0x1bc], cx
mov rcx, rbx
call fcn.180255f00
mov rcx, rbx
call fcn.1802555e0
test eax, eax
jns 0x180255b9d
or eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
mov rax, qword [rbx + 0x98]
inc dword [rax + 0x1a8]
mov rax, qword [rbx + 0x98]
cmp dword [rax + 0x1a8], 2
jbe 0x180255bc4
mov dword [rax + 0x1a8], 1
mov rcx, rbx
call fcn.180255f00
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.180258620
xor eax, eax
add rsp, 0x20
pop rbx
ret

Function at 0x180258210
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, Ordinal_50
call fcn.1800b8180
sub rsp, rax
mov edi, edx
mov rbx, rcx
test edx, edx
jle 0x18025825c
lea r9, str.ssl_statem_statem_dtls.c
mov dword [rsp + 0x20], 0x3bc
mov edx, 0x153
lea ecx, [rax - 0x1c]
lea r8d, [rax + 0x14]
call fcn.18026b510
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call fcn.180255bf0
test eax, eax
je 0x180258286
mov rcx, rbx
call fcn.180245d70
mov rcx, rbx
test eax, eax
jne 0x180258293
call fcn.1802f5120
mov rcx, rax
mov edx, 1
call fcn.18026f990
mov eax, edi
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
jmp fcn.180255b10
Function at 0x180263840
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0xc0
call fcn.1800b8180
sub rsp, rax
mov rax, qword [0x1804a20e0]
xor rax, rsp
mov qword [rsp + 0xb0], rax
mov eax, dword [rdx + 8]
xor r12d, r12d
mov dword [rsp + 0x20], eax
mov r13, rdx
sub eax, r8d
mov edi, r8d
mov rsi, rcx
mov qword [rsp + 0x28], rcx
mov ebp, r12d
mov dword [rsp + 0x24], eax
cmp dword [rdx + 0xc], r8d
jae 0x1802638b0
mov r8d, 0x4d6
lea rdx, [0x1804211a8]
lea rcx, str.assertion_failed:_rec__orig_len___md_size
call fcn.1800d8350
cmp edi, 0x40
jbe 0x1802638ce
mov r8d, 0x4d7
lea rdx, [0x1804211a8]
lea rcx, str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.1800d8350
mov ecx, dword [r13 + 0xc]
lea rax, [rsp + 0x30]
neg rax
lea r14, [rsp + 0x30]
and eax, 0x3f
add r14, rax
lea eax, [rdi + 0x100]
cmp ecx, eax
jbe 0x1802638f9
mov ebp, ecx
sub ebp, edi
sub ebp, 0x100
mov r8, rdi
xor edx, edx
mov rcx, r14
mov ebx, r12d
mov r15, rdi
call fcn.18020fe90
mov r10d, dword [r13 + 0xc]
mov r9d, r12d
cmp ebp, r10d
jae 0x1802639a6
mov esi, dword [rsp + 0x20]
mov r11d, esi
mov r15, qword [r13 + 0x18]
neg r11d
mov r13d, dword [rsp + 0x24]
nop
mov eax, ebp
lea ecx, [r11 + rbp]
xor ecx, esi
xor eax, r13d
lea r8d, [rax - 1]
not eax
shr eax, 0x1f
shr r8d, 0x1f
and r8d, eax
mov eax, ebp
xor eax, esi
neg r8d
or ecx, eax
or r12d, r8d
xor ecx, ebp
mov eax, ebp
shr ecx, 0x1f
and r8d, r9d
neg ecx
or ebx, r8d
and r12d, ecx
inc ebp
movzx edx, byte [rax + r15]
movzx eax, r12b
mov ecx, r9d
and al, dl
inc r9d
or byte [rcx + r14], al
mov ecx, r9d
sub ecx, edi
mov eax, edi
xor ecx, edi
xor eax, r9d
or ecx, eax
xor ecx, r9d
shr ecx, 0x1f
neg ecx
and r9d, ecx
cmp ebp, r10d
jb 0x180263930
mov rsi, qword [rsp + 0x28]
mov r15, rdi
test edi, edi
je 0x1802639e6
nop word [rax + rax]
mov ecx, ebx
lea rsi, [rsi + 1]
mov eax, ebx
inc ebx
xor rax, 0x20
movzx eax, byte [rax + r14]
movzx eax, byte [rcx + r14]
mov ecx, ebx
sub ecx, edi
mov byte [rsi - 1], al
xor ecx, edi
mov eax, edi
xor eax, ebx
or ecx, eax
xor ecx, ebx
shr ecx, 0x1f
neg ecx
and ebx, ecx
sub r15, 1
jne 0x1802639b0
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800b8140
mov rbx, qword [rsp + 0x108]
add rsp, 0xc0
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x180264650
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov eax, Ordinal_41
call fcn.1800b8180
sub rsp, rax
mov rax, qword [rcx + 8]
lea esi, [r9 + 1]
mov rbx, rdx
mov r10, rcx
mov r9, qword [rax + 0xc0]
test byte [r9 + 0x68], 1
je 0x1802646a7
mov edx, dword [rdx + 8]
lea eax, [rsi + r8]
cmp eax, edx
jbe 0x180264690
xor eax, eax
add rsp, 0x28
pop rsi
pop rbx
ret
mov eax, r8d
sub edx, r8d
add qword [rbx + 0x18], rax
add qword [rbx + 0x20], rax
sub dword [rbx + 0xc], r8d
mov dword [rbx + 8], edx
jmp 0x1802646ac
cmp esi, dword [rdx + 8]
ja 0x180264687
mov ecx, dword [rbx + 8]
mov rax, qword [rbx + 0x18]
dec ecx
mov qword [rsp + 0x20], rdi
movzx edi, byte [rcx + rax]
mov rcx, qword [r10 + 0x110]
call fcn.1802c3ea0
mov rcx, rax
call fcn.1802878e0
bt eax, 0x15
jae 0x1802646f1
or eax, 0xffffffff
sub eax, edi
mov rdi, qword [rsp + 0x20]
add dword [rbx + 8], eax
mov eax, 1
add rsp, 0x28
pop rsi
pop rbx
ret
mov r10d, dword [rbx + 8]
lea ecx, [rdi + rsi]
mov esi, 0x100
mov r8d, r10d
sub r8d, ecx
mov eax, r10d
xor r8d, ecx
xor eax, ecx
or r8d, eax
xor r8d, r10d
shr r8d, 0x1f
dec r8d
cmp r10d, esi
cmovb esi, r10d
xor r9d, r9d
test esi, esi
je 0x18026477f
mov r11d, edi
mov qword [rsp + 0x48], rbp
mov rbp, qword [rbx + 0x18]
shr r11d, 0x1f
nop word [rax + rax]
mov eax, r9d
mov ecx, edi
sub ecx, r9d
shr eax, 0x1f
shr ecx, 0x1f
xor cl, al
xor al, r11b
or cl, al
mov eax, r10d
sub eax, r9d
xor cl, r11b
dec cl
dec eax
movzx edx, cl
inc r9d
movzx ecx, byte [rax + rbp]
xor ecx, edi
and edx, ecx
not edx
and r8d, edx
cmp r9d, esi
jb 0x180264740
mov rbp, qword [rsp + 0x48]
not r8d
movzx eax, r8b
lea ecx, [rax - 1]
not eax
shr ecx, 0x1f
shr eax, 0x1f
and ecx, eax
lea eax, [rdi + 1]
mov rdi, qword [rsp + 0x20]
neg ecx
and eax, ecx
sub r10d, eax
mov dword [rbx + 8], r10d
mov dword [rsp + 0x58], ecx
not ecx
mov dword [rsp + 0x40], ecx
mov ecx, dword [rsp + 0x58]
mov eax, dword [rsp + 0x40]
and ecx, 1
or eax, ecx
add rsp, 0x28
pop rsi
pop rbx
ret
Function at 0x180284410
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1800b8180
sub rsp, rax
mov ecx, dword [rcx]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x18028b710
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1800b8180
sub rsp, rax
lea rcx, [0x18059e9e8]
add rsp, 0x28
jmp fcn.180284290