joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14019a9b0
Capabilities:
Hook routines via microsoft detours

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x20
lea rdi, [rcx - 0x7ff80000]
mov rbx, rcx
cmp rcx, 0x7ff80000
ja 0x14019a9d2
mov edi, 0x80000
mov qword [rsp + 0x38], rsi
lea rsi, [rcx + 0x7ff80000]
cmp rbx, 0xffffffff80000000
jb 0x14019a9ee
mov rsi, 0xfffffffffff80000
movzx eax, byte [rcx]
cmp al, 0xff
jne 0x14019aa05
cmp byte [rcx + 1], 0x25
jne 0x14019aa49
movsxd rcx, dword [rcx + 2]
add rcx, 6
jmp 0x14019aa11
cmp al, 0xe9
jne 0x14019aa49
movsxd rcx, dword [rcx + 1]
add rcx, 5
add rcx, rbx
cmp rcx, rbx
jae 0x14019aa34
cmp rcx, 0xffffffff80000000
jae 0x14019aa2b
lea rsi, [rcx + 0x7ff80000]
jmp 0x14019aa49
mov rsi, 0xfffffffffff80000
jmp 0x14019aa49
lea rdi, [rcx - 0x7ff80000]
cmp rcx, 0x7ff80000
ja 0x14019aa49
mov edi, 0x80000
mov rdx, qword [0x1404bc730]
mov rax, qword [0x1404bc728]
mov qword [rsp + 0x30], rbp
test rdx, rdx
jne 0x14019aa70
test rax, rax
je 0x14019aa87
mov rdx, rax
mov qword [0x1404bc730], rax
mov rcx, qword [rdx + 0x10]
test rcx, rcx
je 0x14019aa87
cmp rcx, rdi
jb 0x14019aa87
cmp rcx, rsi
jbe 0x14019abda
mov qword [0x1404bc730], rax
mov rdx, rax
test rax, rax
je 0x14019aad2
mov rcx, rax
nop dword [rax]
test rax, rax
je 0x14019aabc
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x14019aabc
cmp rax, rdi
jb 0x14019aabc
cmp rax, rsi
jbe 0x14019abda
mov rdx, qword [rdx + 8]
mov qword [0x1404bc730], rdx
mov rcx, rdx
mov rax, rdx
test rdx, rdx
jne 0x14019aaa0
movzx eax, bx
sub rbx, rax
cmp rbx, 0x40000000
jbe 0x14019aafc
lea rdx, [rbx - 0x40000000]
mov rcx, rdi
call fcn.14019a8c0
mov rdx, rax
test rax, rax
jne 0x14019ab88
movabs rbp, 0xffffffff40000000
cmp rbx, rbp
jae 0x14019ab22
lea rcx, [rbx + 0x40000000]
mov rdx, rsi
call fcn.14019a7d0
mov rdx, rax
test rax, rax
jne 0x14019ab88
cmp rbx, 0x40000000
jbe 0x14019ab42
lea rcx, [rbx - 0x40000000]
mov rdx, rbx
call fcn.14019a7d0
mov rdx, rax
test rax, rax
jne 0x14019ab88
cmp rbx, rbp
jae 0x14019ab5e
lea rdx, [rbx + 0x40000000]
mov rcx, rbx
call fcn.14019a8c0
mov rdx, rax
test rax, rax
jne 0x14019ab88
mov rdx, rbx
mov rcx, rdi
call fcn.14019a8c0
mov rdx, rax
test rax, rax
jne 0x14019ab88
mov rdx, rsi
mov rcx, rbx
call fcn.14019a7d0
mov rdx, rax
test rax, rax
je 0x14019ac11
mov dword [rdx], 0x52727464
lea rcx, [rdx + 0xffa8]
xor r8d, r8d
mov qword [0x1404bc730], rdx
mov qword [rdx + 0x10], r8
mov r9d, 0x2a7
mov rax, qword [0x1404bc728]
mov qword [rdx + 8], rax
lea rax, [rdx + 0xff60]
mov qword [0x1404bc728], rdx
mov qword [rcx], r8
lea rcx, [rcx - 0x60]
mov r8, rax
sub rax, 0x60
sub r9, 1
jne 0x14019abc2
mov qword [rdx + 0x10], r8
mov rax, qword [rdx + 0x10]
cmp rax, rdi
jb 0x14019ac11
cmp rax, rsi
ja 0x14019ac11
mov rcx, qword [rax + 0x48]
movdqa xmm0, xmmword [0x1403c1fb0]
mov qword [rdx + 0x10], rcx
movups xmmword [rax], xmm0
movups xmmword [rax + 0x10], xmm0
movups xmmword [rax + 0x20], xmm0
movups xmmword [rax + 0x30], xmm0
movups xmmword [rax + 0x40], xmm0
movups xmmword [rax + 0x50], xmm0
jmp 0x14019ac13
xor eax, eax
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14019ac30
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x50
lea rbx, [rcx + 0x10000]
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
mov edi, 0x5a4d
nop dword [rax + rax]
mov r8d, gethostbyname
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x14019ac84
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret
cmp dword [rsp + 0x40], 0x1000
jne 0x14019acc7
mov eax, dword [rsp + 0x44]
cmp al, 1
je 0x14019acc7
bt eax, 8
jb 0x14019acc7
cmp word [rbx], di
jne 0x14019acc0
mov eax, dword [rbx + 0x3c]
cmp rax, qword [rsp + 0x38]
ja 0x14019acc0
cmp eax, 0x40
jb 0x14019acc0
cdqe
cmp dword [rax + rbx], 0x4550
jne 0x14019acc7
mov rax, rbx
jmp 0x14019ac79
jmp 0x14019acc7
mov rbx, qword [rsp + 0x38]
add rbx, qword [rsp + 0x20]
jmp 0x14019ac60

Function at 0x14019b000
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov r10, rcx
test rcx, rcx
jne 0x14019b01b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov r10, rax
mov eax, 0x5a4d
cmp word [r10], ax
je 0x14019b038
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14019b110
movsxd rbx, dword [r10 + 0x3c]
add rbx, r10
cmp dword [rbx], 0x4550
je 0x14019b059
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14019b110
movzx eax, word [rbx + 0x14]
test ax, ax
jne 0x14019b074
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14019b110
lea r11, [rbx + rax]
xor edx, edx
lea rdi, str..detour
mov dword [rsp + 0x20], edx
movzx eax, word [rbx + 6]
cmp edx, eax
jae 0x14019b0f4
lea rcx, [rdx + rdx*4]
lea r8, [rcx*8]
lea r9, [r8 + r11]
xor ecx, ecx
nop
movzx eax, byte [r9 + rcx + 0x18]
inc rcx
cmp al, byte [rdi + rcx - 1]
jne 0x14019b0f0
cmp rcx, 8
jne 0x14019b0a0
mov eax, dword [r11 + r8 + 0x24]
test eax, eax
je 0x14019b0f4
cmp dword [r11 + r8 + 0x28], 0
je 0x14019b0f4
lea rbx, [r10 + rax]
mov eax, dword [rbx]
cmp eax, 0x40
jb 0x14019b0f4
cmp dword [rbx + 4], 0x727444
jne 0x14019b0f4
cmp dword [rbx + 8], 0
jne 0x14019b0e3
mov dword [rbx + 8], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x14019b110
inc edx
jmp 0x14019b081
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14019b110
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret

Function at 0x14019b468
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14019b4b2
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14019b4b2
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14019b4b2
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14019b4b2
cmp dword [rcx + 0x84], 0xe
jbe 0x14019b4b2
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14019b4b4
xor al, al
add rsp, 0x28
ret
Function at 0x14019c710
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push rbx
sub rsp, 0x80
mov rax, qword [0x1404b41c0]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rbx, rcx
mov rcx, qword [0x1404bcb68]
mov rax, qword [rcx + 8]
cmp byte [rax + 0x19], 0
jne 0x14019c758
nop dword [rax]
cmp dword [rax + 0x20], 4
jge 0x14019c74c
mov rax, qword [rax + 0x10]
jmp 0x14019c752
mov rcx, rax
mov rax, qword [rax]
cmp byte [rax + 0x19], 0
je 0x14019c740
cmp byte [rcx + 0x19], 0
jne 0x14019c834
cmp dword [rcx + 0x20], 4
jg 0x14019c834
lea r8, [rcx + 0x28]
mov r10, qword [r8 + 0x10]
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x14019c781
mov rdx, qword [r8]
xor ecx, ecx
movabs r9, 0xcbf29ce484222325
test r10, r10
je 0x14019c7b3
movabs r11, 0x100000001b3
nop dword [rax]
movzx eax, byte [rdx + rcx]
xor r9, rax
imul r9, r11
inc rcx
cmp rcx, r10
jb 0x14019c7a0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call fcn.140029b40
mov rcx, qword [rax + 8]
test rcx, rcx
je 0x14019c7ee
cmp rcx, qword [rbx + 8]
je 0x14019c7ee
cmp qword [rbx + 0x10], 1
jne 0x14019c7f2
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.14019b850
add rsp, 0x80
pop rbx
ret
xor al, al
jmp 0x14019c7d8
lea rdx, [rsp + 0x38]
mov rcx, rbx
call fcn.14019c6c0
nop
mov r8, rax
lea rdx, str.AcceptEncoding_does_not_accept_any_other_values_if_disabled_is_present._You_set_the_following_encodings:
lea rcx, [rsp + 0x58]
call fcn.1401824c0
nop
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14019c850
lea rdx, [0x1404b0188]
lea rcx, [rsp + 0x20]
call fcn.140389ac8
nop
lea rcx, str.invalid_map_K__T__key
call fcn.1401817b8
int3
Function at 0x1401ab990
Capabilities:
Read file on windows

Disassembly:
sub rsp, 0x28
call fcn.14039c724
cdqe
add rsp, 0x28
ret

Function at 0x1401abc80
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
cmp byte [rcx + 0xa4e], 0
mov rbp, r9
mov r14, r8
movsxd rsi, edx
mov rdi, rcx
je 0x1401abd4b
cmp qword [rcx + 0x278], 0
je 0x1401abcfe
mov qword [rsp + 0x40], rbx
call fcn.1401ba3a0
mov dl, 1
mov rcx, rdi
movzx ebx, al
call fcn.1401ba380
mov rcx, qword [rdi + 0x1f0]
mov r9, rbp
mov qword [rsp + 0x20], rcx
mov r8, r14
mov rcx, rdi
mov edx, esi
call qword [rdi + 0x278]
movzx edx, bl
mov rcx, rdi
call fcn.1401ba380
mov rbx, qword [rsp + 0x40]
jmp 0x1401abd4b
mov ecx, esi
test edx, edx
je 0x1401abd0e
sub ecx, 1
je 0x1401abd0e
cmp ecx, 1
jne 0x1401abd4b
mov r9, qword [rdi + 0x1e8]
lea rax, [0x1403c2b78]
lea rcx, [rsi + rsi*2]
mov edx, 2
add rcx, rax
mov r8d, 1
call fcn.1403a1624
mov r9, qword [rdi + 0x1e8]
mov r8d, 1
mov rdx, rbp
mov rcx, r14
call fcn.1403a1624
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1401ac3a0
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rbx, rdx
mov edx, 0x2b
mov rsi, r8
mov rbp, rcx
test r8, r8
je 0x1401ac46c
xor r14d, r14d
nop dword [rax]
mov edi, 4
lea rdx, [rsp + 0x50]
cmp rsi, rdi
mov r8d, 4
mov rcx, rbp
cmovb rdi, rsi
call fcn.1401adb60
mov edx, eax
cmp eax, 4
jne 0x1401ac420
cmp byte [0x1404bd59c], r14b
jne 0x1401ac42a
mov r9d, 2
mov dword [rsp + 0x50], r14d
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb edx, edx
and edx, 2
test edx, edx
jne 0x1401ac46c
mov eax, dword [rsp + 0x50]
jmp 0x1401ac449
imul eax, dword [0x1404bd598], 0x41c64e6d
mov edx, r14d
add eax, 0x3039
mov dword [0x1404bd598], eax
ror eax, 0x10
mov dword [rsp + 0x50], eax
test rdi, rdi
je 0x1401ac463
sub rsi, rdi
mov byte [rbx], al
inc rbx
shr eax, 8
sub rdi, 1
jne 0x1401ac451
mov dword [rsp + 0x50], eax
test rsi, rsi
jne 0x1401ac3d0
mov rbx, qword [rsp + 0x40]
mov eax, edx
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1401ac490
Capabilities:
Generate random numbers via winapi

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
push rsi
push rdi
push r14
sub rsp, 0x20
mov rdi, r8
mov rsi, rdx
mov rbx, rcx
sub rdi, 1
je 0x1401ac558
xor ebp, ebp
lea r14, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
nop
mov r8d, 4
lea rdx, [rsp + 0x50]
mov rcx, rbx
call fcn.1401adb60
cmp eax, 4
jne 0x1401ac501
cmp byte [0x1404bd59c], bpl
jne 0x1401ac50b
mov r9d, 2
mov dword [rsp + 0x50], ebp
mov r8d, eax
lea rdx, [rsp + 0x50]
xor ecx, ecx
call sub.bcrypt.dll_BCryptGenRandom
neg eax
sbb eax, eax
and eax, 2
test eax, eax
jne 0x1401ac55d
mov ecx, dword [rsp + 0x50]
jmp 0x1401ac528
imul ecx, dword [0x1404bd598], 0x41c64e6d
add ecx, 0x3039
mov dword [0x1404bd598], ecx
ror ecx, 0x10
mov dword [rsp + 0x50], ecx
cmp ecx, 0xfffffffc
jae 0x1401ac4c0
mov eax, 0x8421085
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add eax, edx
shr eax, 5
imul eax, eax, 0x3e
sub ecx, eax
movzx eax, byte [rcx + r14]
mov byte [rsi], al
inc rsi
sub rdi, 1
jne 0x1401ac4c0
mov byte [rsi], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
add rsp, 0x20
pop r14
pop rdi
pop rsi
ret
Function at 0x1401b0f10
Capabilities:
Encode data using xor
Hash data using djb2

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
test rcx, rcx
je 0x1401b0ff2
call fcn.1401dbf20
test al, al
jne 0x1401b0ff2
mov qword [rsp + 0x30], rsi
xor esi, esi
mov qword [rsp + 0x38], rdi
mov rdi, 0xffffffffffffffff
inc rdi
cmp byte [rbx + rdi], sil
jne 0x1401b0f42
mov r8, rdi
mov edx, 0x2e
mov rcx, rbx
call fcn.1401dd780
test rax, rax
je 0x1401b0f87
sub rax, rbx
mov edx, 0x2e
mov r8, rax
mov rcx, rbx
call fcn.1401dd780
mov rsi, rax
test rax, rax
je 0x1401b0f87
inc rsi
mov rcx, rbx
sub rcx, rsi
add rdi, rcx
test rsi, rsi
cmovne rbx, rsi
lea rsi, [rbx + rdi]
mov edi, 0x1505
cmp rbx, rsi
jae 0x1401b0fbb
nop dword [rax]
movzx ecx, byte [rbx]
call fcn.1401aa1a0
imul rdi, rdi, 0x21
movsx rcx, al
inc rbx
xor rdi, rcx
cmp rbx, rsi
jb 0x1401b0fa0
mov rsi, qword [rsp + 0x30]
mov rcx, rdi
movabs rax, 0x410410410410411
mul rdi
sub rcx, rdx
shr rcx, 1
add rcx, rdx
shr rcx, 5
imul rcx, rcx, 0x3f
sub rdi, rcx
mov rax, rdi
mov rdi, qword [rsp + 0x38]
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x1401c3ed0
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rdi
sub rsp, 0x20
mov rbx, rcx
xor ebp, ebp
lea rcx, str.kernel32
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov rdi, rax
test rax, rax
jne 0x1401c3efa
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret
lea rdx, [0x140473968]
mov qword [rsp + 0x48], r14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
lea rdx, [0x14044d9b8]
mov rcx, rbx
mov r14, rax
call fcn.1403a46f0
test rax, rax
je 0x1401c3f5b
mov rcx, rbx
test r14, r14
je 0x1401c3f48
xor edx, edx
mov r8d, 8
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp qword [sym.imp.KERNEL32.dll_LoadLibraryW]
test r14, r14
je 0x1401c3f92
lea rdx, str.AddDllDirectory
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1401c3f92
xor edx, edx
mov r8d, 0x800
mov rcx, rbx
mov rax, r14
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
jmp rax
xor edx, edx
mov qword [rsp + 0x50], r15
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov r15d, eax
test eax, eax
je 0x1401c405c
mov rdi, 0xffffffffffffffff
mov qword [rsp + 0x40], rsi
mov rdx, rdi
nop dword [rax + rax]
inc rdx
cmp word [rbx + rdx*2], bp
jne 0x1401c3fc0
lea ecx, [rax + 1]
add rcx, rdx
add rcx, rcx
call qword [fcn.1403a1cd0]
mov rsi, rax
test rax, rax
je 0x1401c404e
mov edx, r15d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x1401c404e
mov rax, rdi
cmp word [rsi + rax*2 + 2], bp
lea rax, [rax + 1]
jne 0x1401c3ff3
mov dword [rsi + rax*2], 0x5c
inc rdi
cmp word [rsi + rdi*2], bp
jne 0x1401c4005
add rdi, rdi
sub rdi, rbx
add rdi, rsi
nop word [rax + rax]
movzx eax, word [rbx]
mov word [rbx + rdi], ax
lea rbx, [rbx + 2]
test ax, ax
jne 0x1401c4020
mov rcx, rsi
test r14, r14
je 0x1401c4045
xor edx, edx
mov r8d, 8
call r14
jmp 0x1401c404b
call qword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov rbp, rax
mov rcx, rsi
call qword [fcn.1403a1080]
mov rsi, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
mov rax, rbp
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop rdi
pop rbp
pop rbx
ret

Function at 0x1401c42e0
Capabilities:
Set thread local storage value

Disassembly:
mov eax, 0x28
call fcn.1401a7980
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 0x1401c4370
Capabilities:
Allocate thread local storage

Disassembly:
push rbx
push rdi
push r13
mov eax, gethostbyname
call fcn.1401a7980
sub rsp, rax
mov eax, dword [0x1404bd6d0]
mov r13d, ecx
mov ebx, 1
cmp eax, 2
je 0x1401c43e3
nop word [rax + rax]
xor eax, eax
lock cmpxchg dword [0x1404bd6d0], ebx
je 0x1401c43bd
cmp eax, ebx
je 0x1401c43a0
mov eax, dword [0x1404bd6d0]
cmp eax, 2
jne 0x1401c4402
jmp 0x1401c43e3
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
lea r8, [0x1401c49f0]
xor edx, edx
xor ecx, ecx
mov dword [0x1404bd6cc], eax
call fcn.140202c50
mov dword [0x1404bd6d0], 2
mov r8d, reloc.WS2_32.dll___WSAFDIsSet
lea rdx, str.crypto_threads_win.c
mov ecx, 0x58
call fcn.1401a5490
mov rdi, rax
test rax, rax
jne 0x1401c440d
xor eax, eax
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
mov qword [rsp + 0x50], rbp
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], r12
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.1402033f0
mov qword [rdi + 0x30], rax
call fcn.1402034d0
mov qword [rdi + 0x40], rax
call fcn.1402034d0
mov qword [rdi + 0x50], rax
call fcn.1402033f0
mov qword [rdi + 0x38], rax
call fcn.1402033f0
cmp r13d, ebx
mov qword [rdi + 0x48], rax
mov r8d, 0x85
lea rdx, str.crypto_threads_win.c
cmovge ebx, r13d
inc ebx
movsxd rbx, ebx
lea rcx, [rbx*8]
call fcn.1401a5490
mov qword [rdi + 0x18], rbx
mov qword [rdi + 0x10], rax
test rax, rax
je 0x1401c44a9
cmp qword [rdi + 0x40], 0
je 0x1401c44a9
cmp qword [rdi + 0x50], 0
je 0x1401c44a9
cmp qword [rdi + 0x30], 0
je 0x1401c44a9
cmp qword [rdi + 0x38], 0
je 0x1401c44a9
cmp qword [rdi + 0x48], 0
jne 0x1401c4502
mov r8d, 0xa8
lea rdx, str.crypto_threads_win.c
mov rcx, rax
call fcn.1401a53a0
lea rcx, [rdi + 0x40]
call fcn.1402038b0
lea rcx, [rdi + 0x50]
call fcn.1402038b0
lea rcx, [rdi + 0x38]
call fcn.140203480
lea rcx, [rdi + 0x48]
call fcn.140203480
lea rcx, [rdi + 0x30]
call fcn.140203480
mov r8d, 0xae
lea rdx, str.crypto_threads_win.c
mov rcx, rdi
call fcn.1401a53a0
xor edi, edi
mov r15, qword [rsp + 0x20]
mov rax, rdi
mov r14, qword [rsp + 0x28]
mov r12, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x50]
add rsp, 0x30
pop r13
pop rdi
pop rbx
ret
Function at 0x1401c45a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
mov eax, 0x20
call fcn.1401a7980
sub rsp, rax
mov rbx, rcx
mov esi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1404bd6cc]
mov edi, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, edi
mov r14, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r14, r14
jne 0x1401c4631
mov r8d, 0xdd
lea rdx, str.crypto_threads_win.c
mov ecx, 0xf0
call fcn.1401a5490
mov r14, rax
test rax, rax
jne 0x1401c4622
mov r8d, 0xde
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_data___NULL
call fcn.1401c4a50
mov ecx, dword [0x1404bd6cc]
mov rdx, r14
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
xor ecx, ecx
mov rax, r14
cmp qword [rax], 0
jne 0x1401c4642
cmp esi, 0xffffffff
cmove esi, ecx
cmp qword [rax + 0x10], rbx
je 0x1401c4703
inc ecx
add rax, 0x18
cmp ecx, 0xa
jl 0x1401c4636
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
nop
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1401c4660
mov rcx, qword [rbx + 0x10]
mov r8d, eax
lea rdx, [r8*8]
lock inc qword [rdx + rcx]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1401c4684
cmp r8d, eax
je 0x1401c46e2
nop dword [rax]
nop word [rax + rax]
mov rax, qword [rbx + 0x10]
lock dec qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1401c46b0
mov r8d, eax
mov rax, qword [rbx + 0x10]
lea rdx, [r8*8]
lock inc qword [rdx + rax]
prefetchw byte [rbx + 0x24]
mov eax, dword [rbx + 0x24]
mov ecx, eax
lock cmpxchg dword [rbx + 0x24], ecx
jne 0x1401c46d4
cmp r8d, eax
jne 0x1401c46a0
movsxd rax, esi
lea rcx, [rax + rax*2]
mov rax, qword [rbx + 0x10]
lea rdx, [r14 + rcx*8]
mov dword [rdx + 8], 1
mov qword [rdx + 0x10], rbx
lea rcx, [rax + r8*8]
mov qword [rdx], rcx
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x1401c4760
Capabilities:
Get thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
mov eax, 0x20
call fcn.1401a7980
sub rsp, rax
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x1404bd6cc]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, ebx
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor r9d, r9d
lea rdx, [rsi + 0x10]
xor r8d, r8d
cmp qword [rdx], rdi
je 0x1401c47c9
inc r9d
inc r8
add rdx, 0x18
cmp r8, 0xa
jl 0x1401c47a4
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
movsxd rax, r9d
lea rcx, [rax + rax*2]
add dword [rsi + rcx*8 + 8], 0xffffffff
lea rbx, [rsi + rcx*8]
jne 0x1401c4818
mov rax, qword [rbx]
mov rcx, 0xffffffffffffffff
lock xadd qword [rax], rcx
cmp rcx, 1
jns 0x1401c4809
mov r8d, 0x10b
lea rdx, str.crypto_threads_win.c
lea rcx, str.assertion_failed:_ret___0
call fcn.1401c4a50
mov qword [rbx], 0
mov qword [rbx + 0x10], 0
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401c5020
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x28
call fcn.1401a7980
sub rsp, rax
cmp dword [0x1404bd750], 0
jne 0x1401c51a1
mov qword [rsp + 0x30], rbx
lea rcx, str.OPENSSL_ia32cap
mov qword [rsp + 0x40], rsi
lea rbx, [0x1404bd6f0]
mov qword [rsp + 0x38], rbp
mov rdx, rbx
mov qword [rsp + 0x48], rdi
mov r8d, gethostbyname
mov qword [rsp + 0x20], r14
mov dword [0x1404bd750], 1
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0x2e
ja 0x1401c5163
movzx edi, word [rbx]
xor ebp, ebp
cmp di, 0x7e
mov ecx, ebp
mov r14d, 2
cmove ecx, r14d
add rcx, rbx
call fcn.1401c51b0
mov rsi, rax
cmp di, 0x7e
jne 0x1401c50df
lea rcx, [0x1404bcf30]
mov rdi, rax
call fcn.140058770
not rsi
movabs rcx, 0xedfff7fdffffffff
and rax, rsi
and edi, 0x1000000
mov rsi, rax
and rsi, rcx
test rdi, rdi
cmove rsi, rax
jmp 0x1401c50f4
cmp word [rbx], 0x3a
jne 0x1401c50f4
lea rcx, [0x1404bcf30]
call fcn.140058770
mov rsi, rax
movzx eax, word [rbx]
test ax, ax
je 0x1401c5111
nop dword [rax]
cmp ax, 0x3a
je 0x1401c511a
add rbx, r14
movzx eax, word [rbx]
test ax, ax
jne 0x1401c5100
mov qword [0x1404bcf38], rbp
jmp 0x1401c5172
test rbx, rbx
je 0x1401c5111
add rbx, r14
movzx edi, word [rbx]
cmp di, 0x7e
cmove rbp, r14
lea rcx, [rbx + rbp]
call fcn.1401c51b0
mov rcx, rax
shr rcx, 0x20
cmp di, 0x7e
jne 0x1401c5155
not eax
not ecx
and dword [0x1404bcf38], eax
and dword [0x1404bcf3c], ecx
jmp 0x1401c5172
mov dword [0x1404bcf38], eax
mov dword [0x1404bcf3c], ecx
jmp 0x1401c5172
lea rcx, [0x1404bcf30]
call fcn.140058770
mov rsi, rax
mov r14, qword [rsp + 0x20]
mov eax, esi
mov rdi, qword [rsp + 0x48]
bts eax, 0xa
mov rbp, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
shr rsi, 0x20
mov dword [0x1404bcf34], esi
mov rsi, qword [rsp + 0x40]
mov dword [0x1404bcf30], eax
add rsp, 0x28
ret
Function at 0x1401d5e20
Capabilities:
Set socket configuration

Disassembly:
push rbx
sub rsp, 0x30
mov eax, dword [0x1404bd890]
mov rbx, rcx
mov dword [rsp + 0x50], 0x4020
mov dword [rsp + 0x48], 0
mov dword [rsp + 0x58], 4
test eax, eax
jne 0x1401d5e88
mov r9d, 2
mov dword [rsp + 0x20], 3
xor r8d, r8d
xor edx, edx
mov ecx, 6
call fcn.140202650
test al, al
je 0x1401d5e7c
mov dword [0x1404bd890], 2
add rsp, 0x30
pop rbx
ret
mov dword [0x1404bd890], 1
jmp 0x1401d5e8d
cmp eax, 2
je 0x1401d5edf
lea rax, [rsp + 0x58]
mov edx, 0xffff
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_getsockopt]
test eax, eax
jne 0x1401d5ebe
mov eax, dword [rsp + 0x50]
cmp dword [rsp + 0x48], eax
jg 0x1401d5edf
lea r9, [rsp + 0x50]
mov dword [rsp + 0x20], 4
mov edx, 0xffff
mov r8d, 0x1001
mov rcx, rbx
call qword [sym.imp.WS2_32.dll_setsockopt]
add rsp, 0x30
pop rbx
ret