joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140055080
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov dword [rsp + 0x20], 0
cmp qword [rsp + 0x40], 0
je 0x1400550bf
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
test eax, eax
je 0x1400550bf
lea rdx, [0x140073628]
mov rcx, qword [rsp + 0x40]
call fcn.140052aa0
test eax, eax
jne 0x1400550f6
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20001004
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1400550e5
xor eax, eax
jmp 0x140055145
cmp dword [rsp + 0x20], 0
jne 0x1400550f4
call qword [sym.imp.KERNEL32.dll_GetACP]
jmp 0x140055145
jmp 0x140055141
lea rdx, [0x140073640]
mov rcx, qword [rsp + 0x40]
call fcn.140052aa0
test eax, eax
jne 0x140055133
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x2000000b
mov rax, qword [rsp + 0x48]
mov ecx, dword [rax + 8]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140055131
xor eax, eax
jmp 0x140055145
jmp 0x140055141
mov rcx, qword [rsp + 0x40]
call fcn.1400379f0
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400551b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov dword [rsp + 8], ecx
sub rsp, 0x48
mov dword [rsp + 0x20], 0
movzx eax, word [rsp + 0x50]
and eax, 0x3ff
movzx eax, ax
bts eax, 0xa
movzx eax, ax
mov dword [rsp + 0x24], eax
call fcn.14003ac10
add rax, 0x98
mov qword [rsp + 0x30], rax
mov r9d, 2
lea r8, [rsp + 0x20]
mov edx, 0x20000001
mov ecx, dword [rsp + 0x24]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x140055213
xor eax, eax
jmp 0x140055253
mov eax, dword [rsp + 0x20]
cmp dword [rsp + 0x50], eax
je 0x14005524e
cmp dword [rsp + 0x58], 0
je 0x14005524e
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call fcn.140054980
mov dword [rsp + 0x28], eax
mov rcx, qword [rsp + 0x30]
mov rcx, qword [rcx]
call fcn.14002ff20
mov ecx, dword [rsp + 0x28]
cmp ecx, eax
jne 0x14005524e
xor eax, eax
jmp 0x140055253
mov eax, 1
add rsp, 0x48
ret
Function at 0x140056b80
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x14007f040]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140056ba9
jmp 0x140056c2e
mov rcx, qword [rbp + 0x30]
call fcn.14005fd70
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140056bc2
jmp 0x140056c2e
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140056bdf
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.14005e840
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov qword [rbp + 0x10], 0
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400452d0
test eax, eax
jne 0x140056c2e
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.140009ce0
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x14005b880
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400303e0
lea rcx, [rsp + 0x48]
call fcn.1400303e0
call fcn.140039730
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400302d0
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14005b8ef
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.140030470
lea rcx, [rsp + 0x78]
call fcn.140030470
mov eax, dword [rsp + 0x24]
jmp 0x14005b980
call fcn.140039730
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400302d0
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14005b936
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.140030470
lea rcx, [rsp + 0x78]
call fcn.140030470
mov eax, dword [rsp + 0x2c]
jmp 0x14005b980
lea rcx, [rsp + 0x48]
call fcn.140030790
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.140030790
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.140030470
lea rcx, [rsp + 0x78]
call fcn.140030470
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1426cb058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1426cb1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x1426cb089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1426cb06f
add dl, dl
jne 0x1426cb096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1426cb0f6
xor eax, eax
add dl, dl
jne 0x1426cb0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1426cb1ad
add dl, dl
jne 0x1426cb0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1426cb0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1426cb0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1426cb0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1426cb0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x1426cb07e
mov eax, 1
add dl, dl
jne 0x1426cb106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1426cb113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1426cb0fb
sub eax, ebx
mov ebx, 1
jne 0x1426cb14c
mov ecx, 1
add dl, dl
jne 0x1426cb12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1426cb13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1426cb123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1426cb07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x1426cb168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1426cb175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1426cb15d
cmp eax, 0x7d00
jae 0x1426cb19b
cmp eax, 0x500
jb 0x1426cb196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1426cb07e
cmp eax, 0x7f
ja 0x1426cb19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x1426cb07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1426cb1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x1426cb07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00528ff0]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00529000]
mov dword [rax], 1
mov rax, qword [0x00529010]
mov dword [rax], 1
mov rax, qword [0x00528fe0]
mov dword [rax], 1
mov rax, qword [0x00528eb0]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00528fd0]
mov dword [0x00543008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00528f90]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x00528d20]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x401e80
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x20
cmp byte [rdx], 0
mov rbx, rdx
je 0x401ea0
test rcx, rcx
je 0x401e9a
call sym.pthread_mutex_unlock
mov byte [rbx], 0
add rsp, 0x20
pop rbx
ret
mov ecx, 1
call sym.std::__throw_system_error_int_
nop
nop dword [rax + rax]

Function at 0x401eb0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
xor eax, eax
test ecx, ecx
je 0x401ec0
add rsp, 0x38
ret
mov eax, 1
xchg byte [0x00543040], al
test al, al
jne 0x401efd
cmp qword [0x00543070], 0
mov dword [rsp + 0x2c], 2
je 0x401f2c
lea rdx, [rsp + 0x2c]
lea rcx, [0x00543060]
call qword [0x00543078]
mov eax, 1
add rsp, 0x38
ret
mov ecx, 2
call qword [sym.__acrt_iob_func]
mov r8d, 0x34
mov edx, 1
lea rcx, str.Received_second_interrupt__terminating_immediately._n
mov r9, rax
call sym.fwrite
mov ecx, 1
call sym.exit
call sym.std::__throw_bad_function_call__
nop
nop dword [rax]
nop word cs:[rax + rax]

Function at 0x402e50
Capabilities:
Get socket status

Disassembly:
sub rsp, 0x28
movzx eax, byte [rcx]
cmp al, 1
je 0x402ed0
cmp al, 2
jne 0x402e70
cmp qword [rcx + 8], 0
je 0x402ef6
add rsp, 0x28
ret
cmp al, 3
jne 0x402ea0
cmp qword [rcx + 8], 0
jne 0x402e6a
lea r9, [0x00515150]
mov edx, 0x4e15
lea r8, [0x0051500b]
lea rcx, [0x00515028]
call sym.ggml_abort
nop word [rax + rax]
cmp al, 8
jne 0x402e6a
cmp qword [rcx + 8], 0
jne 0x402e6a
lea r9, [0x00515198]
mov edx, 0x4e16
lea r8, [0x0051500b]
lea rcx, [0x00515028]
call sym.ggml_abort
nop word [rax + rax]
cmp qword [rcx + 8], 0
jne 0x402e6a
lea r9, [0x005150c0]
mov edx, 0x4e13
lea r8, [0x0051500b]
lea rcx, [0x00515028]
call sym.ggml_abort
lea r9, [0x00515108]
mov edx, 0x4e14
lea r8, [0x0051500b]
lea rcx, [0x00515028]
call sym.ggml_abort
nop
nop word cs:[rax + rax]
Function at 0x402f20
Capabilities:
Get socket status

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x258
mov qword [rsp + 0x48], rcx
lea esi, [rcx + 1]
mov dword [rsp + 0x40], 1
lea rbp, [rsp + 0x40]
mov dword [rsp + 0x38], 0
lea rdi, [rsp + 0x38]
mov dword [rsp + 0x3c], edx
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rbp
mov ecx, esi
call qword [sym.imp.WS2_32.dll_select]
movsxd rbx, eax
test rbx, rbx
jns 0x402f7a
call qword [sym.imp.msvcrt.dll__errno]
cmp dword [rax], 4
je 0x402f51
mov rax, rbx
add rsp, 0x258
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x403120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp rcx, rdx
mov rsi, rcx
mov rbp, rdx
je 0x403211
lea rbx, [rsi + 1]
mov rdi, rdx
mov r8d, 0x3f
sub rdi, rcx
bsr rax, rdi
xor rax, 0x3f
cdqe
sub r8, rax
add r8, r8
call fcn.004026d0
cmp rdi, 0x10
jle 0x403220
lea rdi, [rsi + 0x10]
mov r13d, 1
jmp 0x403198
mov r8, rbx
sub r8, rsi
jne 0x403293
add rbx, 1
mov byte [rsi], r12b
cmp rdi, rbx
je 0x4031d2
movzx r12d, byte [rbx]
cmp r12b, byte [rsi]
jl 0x403180
movzx edx, byte [rbx - 1]
lea rax, [rbx - 1]
cmp r12b, dl
jl 0x4031b6
jmp 0x4032d5
mov rax, rcx
mov byte [rax + 1], dl
movzx edx, byte [rax - 1]
lea rcx, [rax - 1]
cmp r12b, dl
jl 0x4031b3
add rbx, 1
mov byte [rax], r12b
cmp rdi, rbx
jne 0x403198
cmp rbp, rdi
je 0x403211
nop word [rax + rax]
movzx ecx, byte [rdi]
lea rax, [rdi - 1]
movzx edx, byte [rdi - 1]
cmp cl, dl
jl 0x4031f7
jmp 0x4032b0
mov rax, r8
mov byte [rax + 1], dl
movzx edx, byte [rax - 1]
lea r8, [rax - 1]
cmp cl, dl
jl 0x4031f4
add rdi, 1
mov byte [rax], cl
cmp rbp, rdi
jne 0x4031e0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp rbp, rbx
mov r12d, 1
jne 0x403244
jmp 0x403211
mov r8, rbx
sub r8, rsi
jne 0x403280
mov byte [rsi], dil
add rbx, 1
cmp rbp, rbx
je 0x403211
movzx edi, byte [rbx]
cmp dil, byte [rsi]
jl 0x403230
movzx edx, byte [rbx - 1]
lea rax, [rbx - 1]
cmp dil, dl
jl 0x403263
jmp 0x4032d0
mov rax, rcx
mov byte [rax + 1], dl
movzx edx, byte [rax - 1]
lea rcx, [rax - 1]
cmp dil, dl
jl 0x403260
mov byte [rax], dil
jmp 0x40323b
mov rcx, r12
mov rdx, rsi
sub rcx, r8
add rcx, rbx
call sym.memmove
jmp 0x403238
mov rcx, r13
mov rdx, rsi
sub rcx, r8
add rcx, rbx
call sym.memmove
jmp 0x40318c
mov rax, rdi
add rdi, 1
cmp rbp, rdi
mov byte [rax], cl
jne 0x4031e0
jmp 0x403211
mov rax, rbx
jmp 0x403273
mov rax, rbx
jmp 0x4031c6
Function at 0x416dc0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov rcx, qword [rcx]
lea rax, [rcx + 8]
mov r9, r8
mov r8, rdx
mov rdx, rax
jmp method.main.lambda_httplib::Request_const__httplib::Response_17::operator___httplib::Request_const__httplib::Response__const__clone_.isra.3313_
Function at 0x41cf10
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp rcx, rdx
mov rsi, rcx
mov rbp, rdx
je 0x41d001
lea rbx, [rsi + 1]
mov rdi, rdx
mov r8d, 0x3f
sub rdi, rcx
bsr rax, rdi
xor rax, 0x3f
cdqe
sub r8, rax
add r8, r8
call fcn.0041c8b0
cmp rdi, 0x10
jle 0x41d010
lea rdi, [rsi + 0x10]
mov r13d, 1
jmp 0x41cf88
mov r8, rbx
sub r8, rsi
jne 0x41d083
add rbx, 1
mov byte [rsi], r12b
cmp rdi, rbx
je 0x41cfc2
movzx r12d, byte [rbx]
cmp r12b, byte [rsi]
jl 0x41cf70
movzx edx, byte [rbx - 1]
lea rax, [rbx - 1]
cmp r12b, dl
jl 0x41cfa6
jmp 0x41d0c5
mov rax, rcx
mov byte [rax + 1], dl
movzx edx, byte [rax - 1]
lea rcx, [rax - 1]
cmp r12b, dl
jl 0x41cfa3
add rbx, 1
mov byte [rax], r12b
cmp rdi, rbx
jne 0x41cf88
cmp rbp, rdi
je 0x41d001
nop word [rax + rax]
movzx ecx, byte [rdi]
lea rax, [rdi - 1]
movzx edx, byte [rdi - 1]
cmp cl, dl
jl 0x41cfe7
jmp 0x41d0a0
mov rax, r8
mov byte [rax + 1], dl
movzx edx, byte [rax - 1]
lea r8, [rax - 1]
cmp cl, dl
jl 0x41cfe4
add rdi, 1
mov byte [rax], cl
cmp rbp, rdi
jne 0x41cfd0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp rbp, rbx
mov r12d, 1
jne 0x41d034
jmp 0x41d001
mov r8, rbx
sub r8, rsi
jne 0x41d070
mov byte [rsi], dil
add rbx, 1
cmp rbp, rbx
je 0x41d001
movzx edi, byte [rbx]
cmp dil, byte [rsi]
jl 0x41d020
movzx edx, byte [rbx - 1]
lea rax, [rbx - 1]
cmp dil, dl
jl 0x41d053
jmp 0x41d0c0
mov rax, rcx
mov byte [rax + 1], dl
movzx edx, byte [rax - 1]
lea rcx, [rax - 1]
cmp dil, dl
jl 0x41d050
mov byte [rax], dil
jmp 0x41d02b
mov rcx, r12
mov rdx, rsi
sub rcx, r8
add rcx, rbx
call sym.memmove
jmp 0x41d028
mov rcx, r13
mov rdx, rsi
sub rcx, r8
add rcx, rbx
call sym.memmove
jmp 0x41cf7c
mov rax, rdi
add rdi, 1
cmp rbp, rdi
mov byte [rax], cl
jne 0x41cfd0
jmp 0x41d001
mov rax, rbx
jmp 0x41d063
mov rax, rbx
jmp 0x41cfb6

Function at 0x41e7c0
Capabilities:
Query environment variable

Disassembly:
push rsi
push rbx
sub rsp, 0x38
cmp qword [rcx + 0x430], 0
mov rbx, rcx
je 0x41e7e0
add rsp, 0x38
pop rbx
pop rsi
ret
lea rcx, str.HF_TOKEN
call sym.getenv
test rax, rax
je 0x41e7d3
lea rcx, str.HF_TOKEN
call sym.getenv
mov rcx, rax
mov rsi, rax
call sym.strlen
mov r8, qword [rbx + 0x430]
lea rcx, [rbx + 0x428]
xor edx, edx
mov qword [rsp + 0x20], rax
mov r9, rsi
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_replace_unsigned_long_long__unsigned_long_long__char_const__unsigned_long_long_
nop
add rsp, 0x38
pop rbx
pop rsi
ret
Function at 0x4362b0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0xa10
cmp edx, 0xffffffff
mov rbx, rcx
je 0x43630a
mov dword [rbx + 0x198], edx
mov ecx, 1
nop dword [rax]
mov eax, edx
shr eax, 0x1e
xor eax, edx
imul eax, eax, 0x6c078965
lea edx, [rax + rcx]
mov dword [rbx + rcx*4 + 0x198], edx
add rcx, 1
cmp rcx, 0x270
jne 0x4362d0
mov qword [rbx + 0xb58], 0x270
add rsp, 0xa10
pop rbx
pop rsi
pop rdi
ret
lea rsi, [rsp + 0x20]
mov dword [rsp + 0x30], 0x3931746d
lea rax, [rsi + 0x10]
mov byte [rsi + 0x16], 0x37
mov rdx, rsi
mov qword [rsp + 0x20], rax
lea rdi, [rsp + 0x40]
mov eax, 0x3339
mov word [rsi + 0x14], ax
mov rcx, rdi
mov qword [rsp + 0x28], 7
mov byte [rsp + 0x37], 0
call sym.std::random_device::_M_init_pretr1_std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char____const_
mov rcx, rdi
call sym.std::random_device::_M_getval_pretr1__
mov rcx, qword [rsp + 0x20]
add rsi, 0x10
mov edx, eax
cmp rcx, rsi
je 0x4362c2
mov dword [rsp + 0xa38], eax
call sym.operator_delete_void_
mov edx, dword [rsp + 0xa38]
jmp 0x4362c2
Function at 0x436660
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x490
pxor xmm0, xmm0
lea r8, str._trepeat_last_n___d__repeat_penalty___.3f__frequency_penalty___.3f__presence_penalty___.3f_n_ttop_k___d__tfs_z___.3f__top_p___.3f__min_p___.3f__typical_p___.3f__temp___.3f_n_tmirostat___d__mirostat_lr___.3f__mirostat_ent___.3f
cvtss2sd xmm0, dword [rdx + 0x40]
movsd qword [rsp + 0x78], xmm0
pxor xmm0, xmm0
mov rsi, rcx
cvtss2sd xmm0, dword [rdx + 0x44]
movsd qword [rsp + 0x70], xmm0
mov eax, dword [rdx + 0x3c]
pxor xmm0, xmm0
lea rdi, [rsp + 0x90]
mov rcx, rdi
mov rbx, rdi
mov dword [rsp + 0x68], eax
cvtss2sd xmm0, dword [rdx + 0x20]
movsd qword [rsp + 0x60], xmm0
pxor xmm0, xmm0
cvtss2sd xmm0, dword [rdx + 0x1c]
movsd qword [rsp + 0x58], xmm0
pxor xmm0, xmm0
cvtss2sd xmm0, dword [rdx + 0x14]
movsd qword [rsp + 0x50], xmm0
pxor xmm0, xmm0
cvtss2sd xmm0, dword [rdx + 0x10]
movsd qword [rsp + 0x48], xmm0
pxor xmm0, xmm0
cvtss2sd xmm0, dword [rdx + 0x18]
movsd qword [rsp + 0x40], xmm0
mov eax, dword [rdx + 0xc]
pxor xmm0, xmm0
mov dword [rsp + 0x38], eax
cvtss2sd xmm0, dword [rdx + 0x38]
movsd qword [rsp + 0x30], xmm0
pxor xmm0, xmm0
cvtss2sd xmm0, dword [rdx + 0x34]
movsd qword [rsp + 0x28], xmm0
pxor xmm0, xmm0
cvtss2sd xmm0, dword [rdx + 0x30]
movsd qword [rsp + 0x20], xmm0
mov r9d, dword [rdx + 0x2c]
mov edx, 0x400
call sym.snprintf
lea rax, [rsi + 0x10]
mov qword [rsi], rax
mov r8d, dword [rbx]
add rbx, 4
lea edx, [r8 - 0x1010101]
not r8d
and edx, r8d
and edx, 0x80808080
je 0x43673b
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea rcx, [rbx + 2]
cmove rbx, rcx
mov ecx, edx
add cl, dl
sbb rbx, 3
sub rbx, rdi
cmp rbx, 0xf
mov qword [rsp + 0x88], rbx
ja 0x4367c0
cmp rbx, 1
jne 0x4367b0
movzx edx, byte [rsp + 0x90]
mov byte [rsi + 0x10], dl
mov qword [rsi + 8], rbx
mov byte [rax + rbx], 0
mov rax, rsi
add rsp, 0x490
pop rbx
pop rsi
pop rdi
ret
test rbx, rbx
je 0x436797
jmp 0x4367e2
lea rdx, [rsp + 0x88]
xor r8d, r8d
mov rcx, rsi
call sym.std::__cxx11::basic_string_char__std::char_traits_char___std::allocator_char___::_M_create_unsigned_long_long__unsigned_long_long_
mov rdx, qword [rsp + 0x88]
mov qword [rsi], rax
mov qword [rsi + 0x10], rdx
mov r8, rbx
mov rdx, rdi
mov rcx, rax
call sym.memcpy
mov rbx, qword [rsp + 0x88]
mov rax, qword [rsi]
jmp 0x436797
Function at 0x43fef0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
cmp rcx, rdx
mov rsi, rcx
mov rbp, rdx
je 0x43ffe1
lea rbx, [rsi + 1]
mov rdi, rdx
mov r8d, 0x3f
sub rdi, rcx
bsr rax, rdi
xor rax, 0x3f
cdqe
sub r8, rax
add r8, r8
call method.void_std::__introsort_loop___gnu_cxx::__normal_iterator_char__std::vector_char__std::allocator_char_______long_long____gnu_cxx::__ops._Iter_less_iter____gnu_cxx::__normal_iterator_char__std::vector_char__std::allocator_char_________gnu_cxx::__nor
cmp rdi, 0x10
jle 0x43fff0
lea rdi, [rsi + 0x10]
mov r13d, 1
jmp 0x43ff68
mov r8, rbx
sub r8, rsi
jne 0x440063
add rbx, 1
mov byte [rsi], r12b
cmp rdi, rbx
je 0x43ffa2
movzx r12d, byte [rbx]
cmp r12b, byte [rsi]
jl 0x43ff50
movzx edx, byte [rbx - 1]
lea rax, [rbx - 1]
cmp r12b, dl
jl 0x43ff86
jmp 0x4400a5
mov rax, rcx
mov byte [rax + 1], dl
movzx edx, byte [rax - 1]
lea rcx, [rax - 1]
cmp r12b, dl
jl 0x43ff83
add rbx, 1
mov byte [rax], r12b
cmp rdi, rbx
jne 0x43ff68
cmp rbp, rdi
je 0x43ffe1
nop word [rax + rax]
movzx ecx, byte [rdi]
lea rax, [rdi - 1]
movzx edx, byte [rdi - 1]
cmp cl, dl
jl 0x43ffc7
jmp 0x440080
mov rax, r8
mov byte [rax + 1], dl
movzx edx, byte [rax - 1]
lea r8, [rax - 1]
cmp cl, dl
jl 0x43ffc4
add rdi, 1
mov byte [rax], cl
cmp rbp, rdi
jne 0x43ffb0
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret
cmp rbp, rbx
mov r12d, 1
jne 0x440014
jmp 0x43ffe1
mov r8, rbx
sub r8, rsi
jne 0x440050
mov byte [rsi], dil
add rbx, 1
cmp rbp, rbx
je 0x43ffe1
movzx edi, byte [rbx]
cmp dil, byte [rsi]
jl 0x440000
movzx edx, byte [rbx - 1]
lea rax, [rbx - 1]
cmp dil, dl
jl 0x440033
jmp 0x4400a0
mov rax, rcx
mov byte [rax + 1], dl
movzx edx, byte [rax - 1]
lea rcx, [rax - 1]
cmp dil, dl
jl 0x440030
mov byte [rax], dil
jmp 0x44000b
mov rcx, r12
mov rdx, rsi
sub rcx, r8
add rcx, rbx
call sym.memmove
jmp 0x440008
mov rcx, r13
mov rdx, rsi
sub rcx, r8
add rcx, rbx
call sym.memmove
jmp 0x43ff5c
mov rax, rdi
add rdi, 1
cmp rbp, rdi
mov byte [rax], cl
jne 0x43ffb0
jmp 0x43ffe1
mov rax, rbx
jmp 0x440043
mov rax, rbx
jmp 0x43ff96
Function at 0x446160
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00543964]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x4462e8
mov rax, qword [0x00543968]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x4461ac
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x446235
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x446190
mov rcx, rbx
call sym.__mingw_GetSectionForAddress
test rax, rax
mov r12, rax
je 0x44631d
mov rax, qword [0x00543968]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call sym._GetPEImageBase
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00543968]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x446300
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x44622e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x446290
add dword [0x00543964], 1
cmp edi, 8
jae 0x446263
test dil, 4
jne 0x4462d4
test edi, edi
je 0x446258
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x4462ef
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov eax, edi
sub edi, 1
mov rdx, qword [rbp + rax - 8]
cmp edi, 8
mov qword [rbx + rax - 8], rdx
jb 0x446258
and edi, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov rcx, qword [rbp + rdx]
cmp eax, edi
mov qword [rbx + rdx], rcx
jb 0x44627c
jmp 0x446258
add rsi, qword [0x00543968]
mov r8d, 0x40
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r9, rsi
mov qword [rsi + 8], rcx
mov qword [rsi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x44622e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call sym.__report_error
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x446258
xor esi, esi
jmp 0x4461b7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x446258
mov rax, qword [0x00543968]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call sym.__report_error
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call sym.__report_error
nop
nop dword [rax]

Function at 0x446a70
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00543c40]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00543c20]
test rbx, rbx
je 0x446ac4
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test eax, eax
jne 0x446abb
test rsi, rsi
je 0x446abb
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x446aa0
lea rcx, [0x00543c40]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]