joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140016c90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
mov rax, rdx
mov rsi, qword [rsp + 0x90]
mov rdi, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x80]
mov ebx, ecx
shr ebx, 8
lea r8, [rax + r8*2]
xor r11d, r11d
mov r15, rax
movzx r14d, byte [rax + 1]
add rax, 2
lea r10, [r11 + r14]
cmp byte [r15], bl
jne 0x140016d20
cmp r11, r10
ja 0x140016d96
cmp r10, rdx
ja 0x140016daa
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x140016d22
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x140016d00
jmp 0x140016d84
ja 0x140016d2a
mov r11, r10
cmp rax, r8
jne 0x140016cc4
add rsi, rdi
movzx ecx, cx
mov al, 1
nop word cs:[rax + rax]
lea r8, [rdi + 1]
movzx edx, byte [rdi]
test dl, dl
js 0x140016d60
mov rdi, r8
sub ecx, edx
jns 0x140016d7b
jmp 0x140016d86
cmp r8, rsi
je 0x140016dbb
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x140016d86
xor al, 1
cmp rdi, rsi
jne 0x140016d40
jmp 0x140016d86
xor eax, eax
and al, 1
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r11
mov rdx, r10
call fcn.140014e30
ud2
lea r8, str.librarycore_srcunicodeprintable.rs
mov rcx, r10
call fcn.1400143a0
ud2
lea rcx, str.called__Option::unwrap____on_a__None__value_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
lea r8, str.librarycore_srcunicodeprintable.rs
mov edx, 0x2b
call fcn.140014740
ud2

Function at 0x14001dbe0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.140013f30
cmp rax, rcx
je 0x14001dc05
cmp rdx, 4
jae 0x14001dc08
xor eax, eax
xor r8d, r8d
jmp 0x14001dca0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x14004d670]
movdqa xmm3, xmmword [0x14004d680]
pxor xmm1, xmm1
nop dword [rax]
movzx r9d, word [rcx + rax]
movd xmm4, r9d
movzx r9d, word [rcx + rax + 2]
movd xmm5, r9d
pcmpgtb xmm4, xmm2
punpcklbw xmm4, xmm4
pshuflw xmm4, xmm4, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm0, xmm4
pcmpgtb xmm5, xmm2
punpcklbw xmm5, xmm5
pshuflw xmm4, xmm5, 0xd4
pshufd xmm4, xmm4, 0xd4
pand xmm4, xmm3
paddq xmm1, xmm4
add rax, 4
cmp r8, rax
jne 0x14001dc30
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x14001dcb7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x14001dca0
ret
Function at 0x14001ec40
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r9, qword [rcx]
test r9, r9
je 0x14001ec9b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x14001ec9b
movzx eax, byte [r9 + rcx]
cmp eax, 0x49
je 0x14001ecb6
cmp eax, 0x42
jne 0x14001ec9b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x14001ed66
cmp byte [r9 + r11], 0x5f
jne 0x14001ed66
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x14001edce
mov rcx, rsi
xor edx, edx
call fcn.14001a410
mov edi, eax
add dil, dil
mov eax, edi
add rsp, 0x48
pop rbx
pop rdi
pop rsi
pop r14
ret
inc rcx
mov qword [rsi + 0x10], rcx
mov rcx, rsi
xor edx, edx
call fcn.14001a410
test al, al
jne 0x14001ee61
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001ecf2
lea rdx, [0x1400535ab]
mov r8d, 1
call fcn.140014420
test al, al
jne 0x14001ee61
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x14001ecaa
xor r14d, r14d
lea rbx, [0x140053960]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x14001ed24
cmp byte [rax + rcx], 0x45
je 0x14001ee83
sub r14, 1
jb 0x14001ed49
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001ed49
mov r8d, 2
mov rdx, rbx
call fcn.140014420
test al, al
jne 0x14001ee61
mov rcx, rsi
call fcn.14001bc10
test al, al
jne 0x14001ee61
mov rax, qword [rsi]
test rax, rax
jne 0x14001ed10
jmp 0x14001ecaa
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r8b, 1
cmp r11, r10
jae 0x14001ee28
movzx edx, byte [r9 + r11]
cmp dl, 0x5f
je 0x14001edc2
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x14001edac
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x14001ed9b
add dl, 0xa9
jmp 0x14001edaa
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x14001ee28
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x14001ee28
movzx edx, bl
add rax, rdx
jae 0x14001ed70
jmp 0x14001ee28
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x14001ee28
cmp rax, rcx
jae 0x14001ee25
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x14001ee7b
cmp qword [rsi + 0x20], 0
je 0x14001ee74
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movaps xmmword [rsp + 0x30], xmm1
movaps xmmword [rsp + 0x20], xmm0
mov qword [rsi + 0x10], rax
mov dword [rsi + 0x18], ecx
mov rcx, rsi
call fcn.14001ec40
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x14001ecac
mov r8b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x14001ee69
lea rax, str.invalid_syntaxrecursion_limit_reached
lea rdx, [0x140053920]
test r8b, r8b
cmovne rdx, rax
xor r8b, 1
movzx eax, r8b
lea r8, [rax + rax*8]
add r8, 0x10
call fcn.140014420
test al, al
je 0x14001ee69
mov dil, 2
jmp 0x14001ecaa
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x14001ecaa
mov dil, 1
xor r8d, r8d
jmp 0x14001ee2a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x14001ecaa
Function at 0x1400222c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x14004c0c0]
test ecx, ecx
je 0x1400223d6
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400222f4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1400222f4
add rdi, 0x10
jmp 0x1400223cc
mov ecx, dword [0x14004c0c0]
test ecx, ecx
je 0x1400223e9
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400223ca
mov rsi, rax
test rax, rax
jne 0x140022399
mov qword [rsp + 0x28], 0
lea rax, [0x14004c0a8]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x14005d030]
mov rcx, qword [0x14005d0f0]
test rcx, rcx
jne 0x14002235b
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14002240c
mov rcx, rax
mov qword [0x14005d0f0], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14002240c
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x14004c0c0]
test ecx, ecx
je 0x1400223fc
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x1400223cc
test rcx, rcx
je 0x1400223cc
lock dec qword [rcx]
jne 0x1400223cc
call fcn.140022460
jmp 0x1400223cc
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x14004c0a8]
call fcn.1400226a0
mov ecx, eax
jmp 0x1400222d6
lea rcx, [0x14004c0a8]
call fcn.1400226a0
mov ecx, eax
jmp 0x140022304
lea rcx, [0x14004c0a8]
call fcn.1400226a0
mov ecx, eax
jmp 0x140022391
mov ecx, 8
mov edx, 0x18
call fcn.140012d60
ud2
Function at 0x1400226a0
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x140022725
mov dword [rsp + 0x2c], 0
lea rbx, [rsi + 0x10]
lea r8, [rsp + 0x2c]
mov rcx, rbx
xor edx, edx
xor r9d, r9d
call sub.KERNEL32.dll_InitOnceBeginInitialize
mov dword [rsp + 0x28], eax
cmp eax, 1
jne 0x140022766
cmp dword [rsp + 0x2c], 0
je 0x14002274a
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x140022780
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x14005d100]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x14005d100], rsi
jne 0x140022700
mov byte [0x14005d0f8], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x14002275c
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1400227cc
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x14002274f
mov edi, dword [rsp + 0x28]
jmp 0x14002275c
mov edi, dword [rsi + 0x18]
jmp 0x14002275a
mov edi, eax
mov ecx, dword [rsp + 0x28]
call sub.KERNEL32.dll_TlsFree
dec edi
mov eax, edi
add rsp, 0x60
pop rbx
pop rdi
pop rsi
ret
mov qword [rsp + 0x30], 0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140022830
ud2
mov rcx, rbx
mov edx, 4
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.library_std_src_syswindows_thread_local_key.rs
lea rcx, [rsp + 0x30]
call fcn.140013a00
ud2
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str.called__Option::unwrap____on_a__None__value_rustc_a28077b28a02b92985b3a3faecf92813155f1ea1library_alloc_srccollections_btree_navigate.rsIndex_out_of_bounds
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.140022880
ud2
Function at 0x1400232a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14004c0e0]
test ecx, ecx
je 0x140023369
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1400232cd
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x140023358
mov ecx, dword [0x14004c0e0]
test ecx, ecx
je 0x14002337c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14002335e
mov rsi, rax
test rax, rax
jne 0x140023352
movzx eax, byte [0x14005d030]
mov rcx, qword [0x14005d0f0]
test rcx, rcx
jne 0x14002331b
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x14002339f
mov rcx, rax
mov qword [0x14005d0f0], rax
mov r8d, 0x10
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x14002339f
mov rsi, rax
lea rax, [0x14004c0c8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x14004c0e0]
test ecx, ecx
je 0x14002338f
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x140023360
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14004c0c8]
call fcn.1400226a0
mov ecx, eax
jmp 0x1400232b5
lea rcx, [0x14004c0c8]
call fcn.1400226a0
mov ecx, eax
jmp 0x1400232dd
lea rcx, [0x14004c0c8]
call fcn.1400226a0
mov ecx, eax
jmp 0x14002334a
mov ecx, 8
mov edx, 0x10
call fcn.140012d60
ud2
Function at 0x140024000
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x14004c0a0]
test ecx, ecx
je 0x1400240e3
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140024030
cmp qword [rax + 8], 0
je 0x140024030
add rax, 0x10
jmp 0x1400240dd
mov ecx, dword [0x14004c0a0]
test ecx, ecx
je 0x1400240f6
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1400240db
mov rsi, rax
test rax, rax
jne 0x1400240c1
movzx eax, byte [0x14005d030]
mov rcx, qword [0x14005d0f0]
test rcx, rcx
jne 0x140024082
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140024119
mov rcx, rax
mov qword [0x14005d0f0], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140024119
mov rsi, rax
lea rax, [0x14004c088]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004c0a0]
test ecx, ecx
je 0x140024109
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], 0
mov byte [rsi + 0x18], 0
jmp 0x1400240dd
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x14004c088]
call fcn.1400226a0
mov ecx, eax
jmp 0x140024015
lea rcx, [0x14004c088]
call fcn.1400226a0
mov ecx, eax
jmp 0x140024040
lea rcx, [0x14004c088]
call fcn.1400226a0
mov ecx, eax
jmp 0x1400240b9
mov ecx, 8
mov edx, 0x20
call fcn.140012d60
ud2

Function at 0x140027bd0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x20
mov rax, rdx
movzx r9d, byte [rdx + 0x38]
movzx r8d, byte [rdx + 0x3a]
xor edx, edx
cmp r9b, 1
ja 0x140027c3b
movzx r10d, byte [rax + 0x10]
movzx r11d, r10b
test r8b, r8b
jne 0x140027d98
cmp r10b, 5
jb 0x140027d98
mov r10, qword [rax]
mov rdx, qword [rax + 8]
xor esi, esi
test r9b, r9b
jne 0x140027c2b
cmp r11b, 6
je 0x140027c2b
mov esi, 2
cmp rdx, 2
jb 0x140027e3a
cmp rsi, rdx
jne 0x140027d58
xor edx, edx
jmp 0x140027d98
xor r10d, r10d
add rdx, r10
lea rdi, [r10 + rsi]
inc rdi
cmp rdi, rdx
sete dl
movzx r10d, byte [r10 + rsi]
test dl, 1
jne 0x140027d8d
cmp r10b, 0x2e
jne 0x140027d8d
movzx edx, byte [rdi]
cmp dl, 0x5c
cmp r10b, 0x2e
sete r10b
lea r8, [0x140055328]
mov ecx, 2
call fcn.140013a40
ud2
Function at 0x140043e30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x38
mov ecx, dword [0x14004c100]
test ecx, ecx
je 0x140043f46
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140043e64
mov rdi, rax
cmp qword [rax + 8], 0
je 0x140043e64
add rdi, 0x10
jmp 0x140043f3c
mov ecx, dword [0x14004c100]
test ecx, ecx
je 0x140043f59
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140043f3a
mov rsi, rax
test rax, rax
jne 0x140043f09
mov qword [rsp + 0x28], 0
lea rax, [0x14004c0e8]
mov qword [rsp + 0x20], rax
movzx eax, byte [0x14005d030]
mov rcx, qword [0x14005d0f0]
test rcx, rcx
jne 0x140043ecb
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140043f7c
mov rcx, rax
mov qword [0x14005d0f0], rax
mov r8d, 0x18
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140043f7c
mov rsi, rax
mov rax, qword [rsp + 0x30]
mov qword [rsi + 0x10], rax
movups xmm0, xmmword [rsp + 0x20]
movups xmmword [rsi], xmm0
mov ecx, dword [0x14004c100]
test ecx, ecx
je 0x140043f6c
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
lea rdi, [rsi + 0x10]
mov rcx, qword [rsi + 0x10]
cmp qword [rsi + 8], 0
mov qword [rsi + 8], 1
mov qword [rsi + 0x10], 0
je 0x140043f3c
test rcx, rcx
je 0x140043f3c
lock dec qword [rcx]
jne 0x140043f3c
call fcn.140043fb0
jmp 0x140043f3c
xor edi, edi
mov rax, rdi
add rsp, 0x38
pop rdi
pop rsi
ret
lea rcx, [0x14004c0e8]
call fcn.1400226a0
mov ecx, eax
jmp 0x140043e46
lea rcx, [0x14004c0e8]
call fcn.1400226a0
mov ecx, eax
jmp 0x140043e74
lea rcx, [0x14004c0e8]
call fcn.1400226a0
mov ecx, eax
jmp 0x140043f01
mov ecx, 8
mov edx, 0x18
call fcn.140012d60
ud2

Function at 0x140044650
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push rsi
sub rsp, 0x80
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
lea rcx, [rsp + 0x30]
mov edx, 0x10
call sub.ADVAPI32.dll_SystemFunction036
test al, al
je 0x140044686
mov rax, qword [rsp + 0x30]
mov rdx, qword [rsp + 0x38]
add rsp, 0x80
pop rsi
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x28]
mov qword [rsp + 0x40], rax
lea rax, [0x1400426e0]
mov qword [rsp + 0x48], rax
lea rax, str.fallback_RNG_broken:
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x58], 1
mov qword [rsp + 0x70], 0
lea rax, [rsp + 0x40]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 1
lea rdx, str.library_std_src_syswindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140013a00
ud2
Function at 0x140049840
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x30
mov ecx, dword [0x14004c120]
test ecx, ecx
je 0x14004995b
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140049870
cmp qword [rax + 8], 0
je 0x140049870
add rax, 0x10
jmp 0x140049955
mov ecx, dword [0x14004c120]
test ecx, ecx
je 0x14004996e
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140049935
mov rsi, rax
test rax, rax
jne 0x140049905
movzx eax, byte [0x14005d030]
mov rcx, qword [0x14005d0f0]
test rcx, rcx
jne 0x1400498c2
call sub.KERNEL32.dll_GetProcessHeap
test rax, rax
je 0x140049994
mov rcx, rax
mov qword [0x14005d0f0], rax
mov r8d, 0x20
xor edx, edx
call sub.KERNEL32.dll_HeapAlloc
test rax, rax
je 0x140049994
mov rsi, rax
lea rax, [0x14004c108]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x14004c120]
test ecx, ecx
je 0x140049981
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
xorps xmm0, xmm0
movaps xmmword [rsp + 0x20], xmm0
lea rdx, [rsp + 0x20]
xor ecx, ecx
mov r8d, 0x10
mov r9d, 2
call sub.bcrypt.dll_BCryptGenRandom
test eax, eax
js 0x140049939
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x140049941
xor eax, eax
jmp 0x140049955
call fcn.140044650
mov rcx, rax
mov qword [rsi + 8], 1
lea rax, [rsi + 0x10]
mov qword [rsi + 0x10], rcx
mov qword [rsi + 0x18], rdx
add rsp, 0x30
pop rsi
ret
lea rcx, [0x14004c108]
call fcn.1400226a0
mov ecx, eax
jmp 0x140049855
lea rcx, [0x14004c108]
call fcn.1400226a0
mov ecx, eax
jmp 0x140049880
lea rcx, [0x14004c108]
call fcn.1400226a0
mov ecx, eax
jmp 0x1400498fd
mov ecx, 8
mov edx, 0x20
call fcn.140012d60
ud2

Function at 0x14004b160
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.14004bf20
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call fcn.14004bf20
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop dword [rax]
Function at 0x14004b1d0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x14005d204]
mov rbx, rcx
test esi, esi
jle 0x14004b300
mov rax, qword [0x14005d208]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14004b21b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14004b2a5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14004b200
mov rcx, rbx
call fcn.14004bc40
mov rdi, rax
test rax, rax
je 0x14004b322
mov rax, qword [0x14005d208]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.14004bd80
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x14005d208]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14004b307
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14004b29e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14004b2b0
add dword [0x14005d204], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x14005d208]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14004b29e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.14004b160
nop dword [rax]
xor esi, esi
jmp 0x14004b228
mov rax, qword [0x14005d208]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.14004b160
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.14004b160
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14004b8b0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x14005d260]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x14005d240]
test rbx, rbx
je 0x14004b90c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14004b903
test eax, eax
jne 0x14004b903
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14004b8e8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14004bc40
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400573b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14004bc60
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14004bc68
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14004bc60
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14004bcbd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14004bcb4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14004bc60
add rax, 0x28
cmp rax, r9
jne 0x14004bca0
xor eax, eax
ret

Function at 0x14004bcc0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400573b0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14004bcdf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14004bce8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14004bcdf
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x14004bd80
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400573b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14004bd9f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14004bda8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x140c84058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.140c841df
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 0x140c84089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c8406f
add dl, dl
jne 0x140c84096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c840f6
xor eax, eax
add dl, dl
jne 0x140c840a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140c841ad
add dl, dl
jne 0x140c840b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c840c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c840d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c840dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x140c840ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x140c8407e
mov eax, 1
add dl, dl
jne 0x140c84106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140c84113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c840fb
sub eax, ebx
mov ebx, 1
jne 0x140c8414c
mov ecx, 1
add dl, dl
jne 0x140c8412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c8413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c84123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c8407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140c84168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140c84175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140c8415d
cmp eax, 0x7d00
jae 0x140c8419b
cmp eax, 0x500
jb 0x140c84196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c8407e
cmp eax, 0x7f
ja 0x140c8419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x140c8407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x140c841d2
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 0x140c8407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x140ce9000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140ce900a
jmp 0x140ceb00f
jmp fcn.14089c058