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

Disassembly:
push rsi
push r13
push r14
sub rsp, 0x90
mov rax, qword [0x18049d0e0]
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 0x1801fc186
mov eax, select
jmp 0x1801fc335
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rbp
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x70], r15
cmp al, 0x5b
jne 0x1801fc34f
cmp r14, 4
jb 0x1801fc2a6
inc rsi
sub r14, 2
cmp byte [r14 + rsi], 0x5d
lea rdi, [r14 + rsi]
jne 0x1801fc2a6
lea rdx, str.0123456789abcdefABCDEF:.
mov rcx, rsi
call fcn.180227120
cmp r14, rax
je 0x1801fc28b
cmp byte [rsi + rax], 0x25
lea rdi, [rsi + rax]
mov r14, rax
jne 0x1801fc2a6
xor ebp, ebp
lea rdx, [0x1804073ac]
lea rcx, [rdi + 1]
lea rbx, [rdi + 1]
lea r8d, [rbp + 2]
call fcn.180210360
test eax, eax
jne 0x1801fc221
movzx eax, byte [rdi + 3]
lea rcx, [rdi + 3]
test al, al
je 0x1801fc221
cmp al, 0x5d
cmovne rbx, rcx
movzx eax, byte [rbx]
test al, al
je 0x1801fc2ad
mov rcx, rbp
nop
cmp al, 0x5d
je 0x1801fc24d
cmp rcx, 0xf
jge 0x1801fc24d
inc rbx
mov byte [rsp + rcx + 0x20], al
inc ebp
inc rcx
movzx eax, byte [rbx]
test al, al
jne 0x1801fc230
test ebp, ebp
je 0x1801fc2ad
cmp byte [rbx], 0x5d
jne 0x1801fc2ad
movsxd rax, ebp
cmp rax, 0x10
jae 0x1801fc36a
lea rcx, [rsp + 0x20]
mov byte [rsp + rax + 0x20], 0
call qword [case.0x1801c1865.0]
mov qword [r13 + 0x28], rax
test rax, rax
jne 0x1801fc286
mov eax, 7
jmp 0x1801fc31b
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 0x1801fc2b4
mov eax, reloc.WLDAP32.dll_Ordinal_22
jmp 0x1801fc31b
mov eax, 3
jmp 0x1801fc31b
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 0x1801fc316
lea rax, [rsp + 0x30]
or rdx, 0xffffffffffffffff
nop dword [rax + rax]
inc rdx
cmp byte [rax + rdx], 0
jne 0x1801fc2e0
cmp rdx, r14
jae 0x1801fc316
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 0x1801fc300
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.1800b7d20
add rsp, 0x90
pop r14
pop r13
pop rsi
ret
lea rdx, str.__r_n_t_:______________
mov rcx, rsi
call fcn.180213ef8
cmp r14, rax
je 0x1801fc319
mov eax, reloc.WS2_32.dll_setsockopt
jmp 0x1801fc31b
call fcn.1800b815c
int3
Function at 0x1801fdbb0
Capabilities:
Convert ip address from string

Disassembly:
mov r11, rsp
push rbx
push r14
sub rsp, 0x158
mov rax, qword [0x18049d0e0]
xor rax, rsp
mov qword [rsp + 0x130], rax
mov rbx, rdx
mov r14, rcx
test rcx, rcx
je 0x1801fde4e
movzx ecx, byte [rcx]
test cl, cl
je 0x1801fde4e
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 0x1801fde05
cmp byte [rdx], 0
je 0x1801fde05
movzx eax, byte [0x18032b318]
xor r15d, r15d
cmp al, byte [rdx]
jne 0x1801fdc2d
movzx eax, byte [0x18032b319]
cmp al, byte [rdx + 1]
je 0x1801fde4a
cmp cl, 0x5b
jne 0x1801fdc89
mov edx, 0x5d
mov rcx, r14
call fcn.18020d43c
mov rsi, rax
test rax, rax
je 0x1801fde05
inc r14
sub rsi, r14
cmp rsi, 0x80
jae 0x1801fde05
mov r8, rsi
lea rcx, [rsp + 0xb0]
mov rdx, r14
call fcn.18020cd80
mov byte [rsp + rsi + 0xb0], r15b
lea r14, [rsp + 0xb0]
mov r15d, 2
jmp 0x1801fdcc1
or rsi, 0xffffffffffffffff
nop dword [rax]
inc rsi
cmp byte [r14 + rsi], r15b
jne 0x1801fdc90
lea r8, [rsp + 0x20]
mov rdx, r14
mov ecx, 2
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1801fdcb6
mov r15d, eax
jmp 0x1801fdcc1
cmp byte [r14 + rsi - 1], 0x2e
jne 0x1801fdcc1
dec rsi
cmp byte [rbx], 0
je 0x1801fde05
movabs r12, 0x100100000200
movzx eax, byte [rbx]
xor edi, edi
test al, al
je 0x1801fdcf3
nop dword [rax]
cmp al, 0x20
je 0x1801fdce8
cmp al, 9
jne 0x1801fdcf3
movzx eax, byte [rbx + 1]
inc rbx
test al, al
jne 0x1801fdce0
movzx eax, byte [rbx]
mov rcx, rbx
test al, al
je 0x1801fddef
cmp al, 0x2c
ja 0x1801fdd0f
movsx rax, al
bt r12, rax
jb 0x1801fdd1d
movzx eax, byte [rbx + 1]
inc rbx
inc rdi
test al, al
jne 0x1801fdd01
test rdi, rdi
je 0x1801fddef
test r15d, r15d
je 0x1801fdd91
xor ebp, ebp
cmp rdi, 0x80
jae 0x1801fddef
mov rdx, rcx
mov r8, rdi
lea rcx, [rsp + 0x30]
call fcn.18020cd80
lea edx, [rbp + 0x2f]
mov byte [rsp + rdi + 0x30], bpl
lea rcx, [rsp + 0x30]
call fcn.18020d43c
mov rdi, rax
test rax, rax
je 0x1801fdd72
lea rcx, [rax + 1]
call fcn.180215408
mov ebp, eax
mov byte [rdi], 0
lea rdx, [rsp + 0x30]
mov r8d, ebp
mov rcx, r14
cmp r15d, 2
jne 0x1801fdd8a
call fcn.1801fdf30
jmp 0x1801fddeb
call fcn.1801fde60
jmp 0x1801fddeb
cmp byte [rcx + rdi - 1], 0x2e
lea rax, [rdi - 1]
cmovne rax, rdi
mov r8, rax
test rax, rax
je 0x1801fddb2
cmp byte [rcx], 0x2e
jne 0x1801fddb2
inc rcx
lea r8, [rax - 1]
cmp r8, rsi
jne 0x1801fddc9
mov r8, rsi
mov rdx, r14
call sym.gcm64.dll_curl_strnequal
test eax, eax
setne al
jmp 0x1801fddeb
jae 0x1801fddef
mov rax, r14
sub rax, r8
cmp byte [rax + rsi - 1], 0x2e
lea rdx, [rax + rsi]
jne 0x1801fdde9
call sym.gcm64.dll_curl_strnequal
test eax, eax
je 0x1801fdde9
mov al, 1
jmp 0x1801fddeb
xor al, al
test al, al
jne 0x1801fde4a
cmp byte [rbx], 0x2c
jne 0x1801fddfc
inc rbx
cmp byte [rbx], 0x2c
je 0x1801fddf4
cmp byte [rbx], 0
jne 0x1801fdcd4
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.1800b7d20
add rsp, 0x158
pop r14
pop rbx
ret
mov al, 1
jmp 0x1801fde07
xor al, al
jmp 0x1801fde2f
Function at 0x1801fde60
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 0x1801fde97
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 0x1801fde85
lea r8, [rsp + 0x40]
mov rdx, rsi
lea ecx, [rax + 1]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1801fde85
test edi, 0xffffffdf
je 0x1801fdf06
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 0x1801fdf30
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 [0x18049d0e0]
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 0x1801fdf9e
lea r8, [rsp + 0x20]
mov rdx, rsi
lea ecx, [rax + 0x16]
call qword [sym.imp.WS2_32.dll_inet_pton]
cmp eax, 1
jne 0x1801fdf9e
cmp ebx, 0x10
ja 0x1801fdf9e
jne 0x1801fdfbd
test edi, edi
je 0x1801fdfc1
xor al, al
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1800b7d20
mov rbx, qword [rsp + 0x70]
mov rsi, qword [rsp + 0x78]
add rsp, 0x50
pop rdi
ret
test ebx, ebx
je 0x1801fdfd7
mov r8d, ebx
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
call fcn.18020cca0
test eax, eax
jne 0x1801fdf9e
test edi, edi
je 0x1801fdfff
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 0x1801fdf9e
mov al, 1
jmp 0x1801fdfa0
Function at 0x180204eb0
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 0x180204efc
mov esi, dword [rbx + 0x158]
cmp esi, 0x191
je 0x180204f23
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 0x180204f69
mov esi, dword [rbx + 0x158]
cmp esi, 0x197
jne 0x180204f69
mov rcx, rdi
call fcn.1801d8a20
mov rdi, rax
test rax, rax
jne 0x180204f3b
lea eax, [rdi + 0x1b]
jmp 0x1802050da
cmp esi, 0x197
mov r8, rdi
mov rcx, rbx
sete dl
call fcn.1801da700
mov rcx, rdi
mov ebx, eax
call qword [fcn.18020f070]
test ebx, ebx
je 0x1802050d8
mov eax, ebx
jmp 0x1802050da
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 0x180204fc4
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x180204fa9
lea rdx, str.Ignoring_Content_Length_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1801cdb50
jmp 0x1802050d8
xor edx, edx
lea r9, [rbp + 0x298]
lea rcx, [rdi + 0xf]
lea r8d, [rdx + 0xa]
call fcn.1801e0340
jmp 0x1802050d8
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.1801d8940
test al, al
jne 0x1802050a3
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 0x18020507a
mov r8d, dword [rbx + 0x158]
lea eax, [r8 - 0xc8]
cmp eax, 0x64
jae 0x180205031
lea rdx, str.Ignoring_Transfer_Encoding_in_CONNECT__03d_response
mov rcx, rbx
call fcn.1801cdb50
jmp 0x1802050d8
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.1801d8940
test al, al
je 0x1802050d8
lea rdx, str.CONNECT_responded_chunked
mov rcx, rbx
call fcn.1801cdb50
mov rcx, rbx
mov byte [rbp + 0x2a4], 1
call fcn.1802003b0
jmp 0x1802050d8
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.1801d8940
test al, al
je 0x1802050ac
mov byte [rbp + 0x2a5], 1
jmp 0x1802050d8
lea r9, [rbx + 0x158]
mov rcx, rdi
lea r8, [rsp + 0x40]
lea rdx, str.HTTP_1._d__d
call fcn.1801c1890
cmp eax, 2
jne 0x1802050d8
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 0x18020a4b0
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.18020ffc8]
mov rdi, rax
test rax, rax
jne 0x18020a4f2
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 0x18020a535
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 0x18020a592
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 0x18020a550
mov eax, dword [rbx + 0x1c]
cmp rsi, rax
jae 0x18020a5d3
nop word [rax + rax]
mov rcx, qword [rdi + 8]
lea rdx, [0x180409100]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov rcx, qword [rdi + 0x10]
lea rdx, [0x180409101]
mov r8d, 1
call qword [rbx + reloc.WS2_32.dll_htonl]
mov eax, dword [rbx + 0x1c]
inc rsi
cmp rsi, rax
jb 0x18020a5a0
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 0x18023086c
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x18023088c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.180213e2c
or eax, 0xffffffff
jmp 0x18023088e
xor eax, eax
add rsp, 0x28
ret

Function at 0x180231e04
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 0x180231ca4
call fcn.180213e9c
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.18020ee10
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 0x180231c8c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 0xc
test cl, 1
jne 0x180231c8c
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
mov rax, qword [rbp + 0x10]
shr ecx, 1
test cl, 1
je 0x180231cd6
lock or dword [rax + 0x14], 0x10
jmp 0x180231c8c
lock or dword [rax + 0x14], 1
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
test ecx, 0x4c0
jne 0x180231cf3
mov rcx, qword [rbp + 0x10]
call fcn.180235ebc
mov rax, qword [rbp + 0x10]
mov rcx, qword [rax + 8]
mov qword [rax], rcx
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18022a1b0
mov rdx, qword [rbp + 0x10]
mov ecx, eax
mov r8d, dword [rdx + 0x20]
mov rdx, qword [rdx + 8]
call fcn.1802316dc
mov dword [rbx + 0x10], eax
mov rax, qword [rbp + 0x10]
mov edx, dword [rax + 0x10]
lea ecx, [rdx + 1]
cmp ecx, 1
ja 0x180231d4a
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 0x180231c8c
mov ecx, dword [rax + 0x14]
test cl, 6
jne 0x180231db6
mov rcx, qword [rbp + 0x10]
call fcn.18022a1b0
cmp eax, 0xffffffff
je 0x180231d9d
mov rcx, qword [rbp + 0x10]
call fcn.18022a1b0
cmp eax, 0xfffffffe
je 0x180231d9d
mov rbx, qword [rbp + 0x10]
mov rcx, rbx
call fcn.18022a1b0
movsxd rdi, eax
lea rsi, [0x180519160]
mov rcx, rbx
sar rdi, 6
call fcn.18022a1b0
and eax, 0x3f
shl rax, 6
add rax, qword [rsi + rdi*8]
jmp 0x180231da4
lea rax, [0x1804a7790]
mov al, byte [rax + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x180231db6
mov rax, qword [rbp + 0x10]
lock or dword [rax + 0x14], 0x20
mov rax, qword [rbp + 0x10]
cmp dword [rax + 0x20], 0x200
jne 0x180231dec
mov ecx, dword [rax + 0x14]
shr ecx, 6
test cl, 1
je 0x180231de8
mov rax, qword [rbp + 0x10]
mov ecx, dword [rax + 0x14]
shr ecx, 8
test cl, 1
jne 0x180231de8
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 0x180231c8f
jmp 0x180231c5c
Function at 0x180231e50
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
mov rdx, rcx
test rcx, rcx
jne 0x180231e2d
call fcn.180213e9c
mov dword [rax], reloc.WLDAP32.dll_Ordinal_22
call fcn.18020ee10
or eax, 0xffffffff
jmp 0x180231e4a
sub dword [rcx + 0x10], 1
jns 0x180231e3c
add rsp, 0x28
jmp fcn.180231e04
mov rax, qword [rcx]
movzx ecx, byte [rax]
inc rax
mov qword [rdx], rax
mov eax, ecx
add rsp, 0x28
ret
jmp 0x180231e0c
Function at 0x180252bc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rbx
mov eax, reloc.WLDAP32.dll_Ordinal_32
call fcn.1800b7d60
sub rsp, rax
lea rdx, [rsp + 0x38]
mov rbx, rcx
call fcn.180252ab0
test rax, rax
je 0x180252c89
cmp dword [rsp + 0x38], 0
jg 0x180252c89
cmp dword [rsp + 0x3c], 0
jg 0x180252c89
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 0x180252c30
mov ecx, reloc.WLDAP32.dll_Ordinal_60
mov word [rax + 0x1bc], cx
mov rcx, rbx
call fcn.180252fb0
mov rcx, rbx
call fcn.180252680
test eax, eax
jns 0x180252c4d
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 0x180252c74
mov dword [rax + 0x1a8], 1
mov rcx, rbx
call fcn.180252fb0
mov rcx, rbx
add rsp, 0x20
pop rbx
jmp fcn.1802556d0
xor eax, eax
add rsp, 0x20
pop rbx
ret

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

Disassembly:
mov qword [rsp + 8], rbx
push rdi
mov eax, Ordinal_50
call fcn.1800b7d60
sub rsp, rax
mov edi, edx
mov rbx, rcx
test edx, edx
jle 0x18025530c
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.180277e20
mov eax, 1
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
call fcn.180252ca0
test eax, eax
je 0x180255336
mov rcx, rbx
call fcn.180242e10
mov rcx, rbx
test eax, eax
jne 0x180255343
call fcn.180307ff0
mov rcx, rax
mov edx, 1
call fcn.180268020
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.180252bc0
Function at 0x180260910
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.1800b7d60
sub rsp, rax
mov rax, qword [0x18049d0e0]
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 0x180260980
mov r8d, 0x4d6
lea rdx, [0x18041ca28]
lea rcx, str.assertion_failed:_rec__orig_len___md_size
call fcn.1800d8290
cmp edi, 0x40
jbe 0x18026099e
mov r8d, 0x4d7
lea rdx, [0x18041ca28]
lea rcx, str.assertion_failed:_md_size___EVP_MAX_MD_SIZE
call fcn.1800d8290
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 0x1802609c9
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.18020d280
mov r10d, dword [r13 + 0xc]
mov r9d, r12d
cmp ebp, r10d
jae 0x180260a76
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 0x180260a00
mov rsi, qword [rsp + 0x28]
mov r15, rdi
test edi, edi
je 0x180260ab6
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 0x180260a80
mov rcx, qword [rsp + 0xb0]
xor rcx, rsp
call fcn.1800b7d20
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 0x180261720
Capabilities:
Encode data using xor

Disassembly:
push rbx
push rsi
mov eax, Ordinal_41
call fcn.1800b7d60
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 0x180261777
mov edx, dword [rdx + 8]
lea eax, [rsi + r8]
cmp eax, edx
jbe 0x180261760
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 0x18026177c
cmp esi, dword [rdx + 8]
ja 0x180261757
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.18027c710
mov rcx, rax
call fcn.180281b30
bt eax, 0x15
jae 0x1802617c1
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 0x18026184f
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 0x180261810
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 0x18027e5a0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1800b7d60
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 0x180285870
Capabilities:
Get thread local storage value

Disassembly:
mov eax, Ordinal_41
call fcn.1800b7d60
sub rsp, rax
lea rcx, [0x18051b5a8]
add rsp, 0x28
jmp fcn.18027e400