joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4165b0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.00402e80
cmp rax, rcx
je 0x4165d5
cmp rdx, 4
jae 0x4165d8
xor eax, eax
xor r8d, r8d
jmp 0x416670
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x0044f6a0]
movdqa xmm3, xmmword [0x0044f6b0]
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 0x416600
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x416687
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x416670
ret
Function at 0x417580
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x48
mov rsi, rcx
mov r8, qword [rcx]
test r8, r8
je 0x4175db
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x4175db
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x4175f6
cmp eax, 0x42
jne 0x4175db
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x4176a6
cmp byte [r8 + r11], 0x5f
jne 0x4176a6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x41770e
mov rcx, rsi
xor edx, edx
call fcn.00413010
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.00413010
test al, al
jne 0x4177a1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x417632
lea rdx, [0x00b855e3]
mov r8d, 1
call fcn.00403480
test al, al
jne 0x4177a1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x4175ea
xor r14d, r14d
lea rbx, [0x00b85951]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x417664
cmp byte [rax + rcx], 0x45
je 0x4177c3
sub r14, 1
jb 0x417689
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x417689
mov r8d, 2
mov rdx, rbx
call fcn.00403480
test al, al
jne 0x4177a1
mov rcx, rsi
call fcn.00414830
test al, al
jne 0x4177a1
mov rax, qword [rsi]
test rax, rax
jne 0x417650
jmp 0x4175ea
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x417768
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x417702
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x4176ec
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x4176db
add dl, 0xa9
jmp 0x4176ea
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x417768
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x417768
movzx edx, bl
add rax, rdx
jae 0x4176b0
jmp 0x417768
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x417768
cmp rax, rcx
jae 0x417765
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x4177bb
cmp qword [rsi + 0x20], 0
je 0x4177b4
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.00417580
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x4175ec
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x4177a9
mov eax, r9d
xor al, 1
movzx eax, al
lea r8, [rax + rax*8]
add r8, 0x10
lea rax, str.invalid_syntaxrecursion_limit_reached_for_______::closureshim_as__mut_const___dyn___unsafe_extern__
lea rdx, [0x00b85930]
test r9b, r9b
cmovne rdx, rax
call fcn.00403480
test al, al
je 0x4177a9
mov dil, 2
jmp 0x4175ea
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x4175ea
mov dil, 1
xor r9d, r9d
jmp 0x41776a
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x4175ea
Function at 0x41ac20
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x41aca5
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 0x41ace6
cmp dword [rsp + 0x2c], 0
je 0x41acca
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x41acfe
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x00b90108]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x00b90108], rsi
jne 0x41ac80
mov byte [0x00b90100], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x41acdc
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x41ad48
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x41accf
mov edi, dword [rsp + 0x28]
jmp 0x41acdc
mov edi, dword [rsi + 0x18]
jmp 0x41acda
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.0041b190
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._XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.qqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqqq
lea rcx, [rsp + 0x30]
call fcn.00402950
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.0041b1e0
int3
Function at 0x41b070
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x0044e0a8]
test ecx, ecx
je 0x41b149
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x41b0a4
mov rdi, rax
cmp qword [rax + 8], 0
je 0x41b0a4
add rdi, 0x10
jmp 0x41b13f
mov ecx, dword [0x0044e0a8]
test ecx, ecx
je 0x41b15c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x41b13d
mov rsi, rax
test rax, rax
jne 0x41b10c
movzx eax, byte [0x00b90030]
mov edx, 0x18
xor ecx, ecx
call fcn.00446d60
test rax, rax
je 0x41b17f
mov rsi, rax
lea rax, [0x0044e090]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x0044e0a8]
test ecx, ecx
je 0x41b16f
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 0x41b13f
test rcx, rcx
je 0x41b13f
lock dec qword [rcx]
jne 0x41b13f
call fcn.0041abd0
jmp 0x41b13f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x0044e090]
call fcn.0041ac20
mov ecx, eax
jmp 0x41b086
lea rcx, [0x0044e090]
call fcn.0041ac20
mov ecx, eax
jmp 0x41b0b4
lea rcx, [0x0044e090]
call fcn.0041ac20
mov ecx, eax
jmp 0x41b104
mov ecx, 8
mov edx, 0x18
call fcn.00401d20
int3
Function at 0x41c340
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x0044e088]
test ecx, ecx
je 0x41c3fa
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x41c370
cmp qword [rax + 8], 0
je 0x41c370
add rax, 0x10
jmp 0x41c3f4
mov ecx, dword [0x0044e088]
test ecx, ecx
je 0x41c40d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x41c3f2
mov rsi, rax
test rax, rax
jne 0x41c3d8
movzx eax, byte [0x00b90030]
mov edx, 0x20
xor ecx, ecx
call fcn.00446d60
test rax, rax
je 0x41c430
mov rsi, rax
lea rax, [0x0044e070]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x0044e088]
test ecx, ecx
je 0x41c420
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 0x41c3f4
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x0044e070]
call fcn.0041ac20
mov ecx, eax
jmp 0x41c355
lea rcx, [0x0044e070]
call fcn.0041ac20
mov ecx, eax
jmp 0x41c380
lea rcx, [0x0044e070]
call fcn.0041ac20
mov ecx, eax
jmp 0x41c3d0
mov ecx, 8
mov edx, 0x20
call fcn.00401d20
int3
Function at 0x41de70
Capabilities:
Get common file path

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x468
mov qword [rsp + 0x28], rcx
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x38], 2
mov qword [rsp + 0x40], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x20], rax
xor edi, edi
mov ebx, 0xffffffff
xor esi, esi
xor r14d, r14d
cmp r8, 0x201
jae 0x41def0
jmp 0x41dedf
jae 0x41df95
cmp r8, 0x201
jae 0x41def0
mov r15d, 0x200
lea r12, [rsp + 0x68]
mov r13, r8
jmp 0x41df37
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x41df17
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.0041ce10
mov rdi, qword [rsp + 0x30]
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
cmp rdi, rbx
mov r14d, 0xffffffff
cmovb r14, rdi
mov qword [rsp + 0x40], r14
mov rsi, rdi
mov r15, r14
mov r12, qword [rsp + 0x20]
mov r13, r14
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov ecx, r13d
mov rdx, r12
call sub.KERNEL32.dll_GetCurrentDirectoryW
mov ebp, eax
test eax, eax
jne 0x41df5c
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x41dfea
mov r8d, ebp
cmp r13, r8
jne 0x41ded0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x41e014
add r13, r13
cmp r13, rbx
cmovae r13, rbx
mov r8, r13
cmp r8, 0x201
jb 0x41dedf
jmp 0x41def0
cmp r15, r8
jb 0x41e02e
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.0041e850
movups xmm0, xmmword [rsp + 0x48]
movups xmm1, xmmword [rsp + 0x58]
mov rax, qword [rsp + 0x28]
movups xmmword [rax + 0x10], xmm1
movups xmmword [rax], xmm0
test rdi, rdi
je 0x41dfd5
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.00419660
nop
add rsp, 0x468
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov rcx, qword [rsp + 0x28]
mov qword [rcx + 8], rax
movabs rax, 0x8000000000000000
mov qword [rcx], rax
test rdi, rdi
jne 0x41dfc6
jmp 0x41dfd5
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.dddddddddddddddddddddddddddddddddddddd
mov edx, 0x28
call fcn.004037a0
jmp 0x41e043
lea rax, str.dddddddddddddddddddddddddddddddddddddd
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.00403400
ud2
Function at 0x41ff70
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbx
sub rsp, 0xe8
movaps xmmword [rsp + 0xd0], xmm6
mov rax, r8
mov rsi, rcx
mov dword [rsp + 0x88], 0
xorps xmm6, xmm6
movups xmmword [rsp + 0x90], xmm6
mov dword [rsp + 0xa0], 7
mov qword [rsp + 0xa4], 0
mov word [rsp + 0xac], 0
mov byte [rsp + 0xa8], 1
lea r8, [rsp + 0x88]
mov rcx, rdx
mov rdx, rax
call fcn.00438550
mov rdi, rdx
test rax, rax
je 0x420008
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
call fcn.0041a2c0
mov qword [rsi], 0
jmp 0x4201d9
movaps xmmword [rsp + 0x60], xmm6
movaps xmmword [rsp + 0x50], xmm6
movaps xmmword [rsp + 0x40], xmm6
mov dword [rsp + 0x70], 0
lea rdx, [rsp + 0x40]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileInformationByHandle
test eax, eax
je 0x4200c4
test dword [rsp + 0x40], 0x400
je 0x420069
mov qword [rsp + 0x80], 0
lea r8, [rsp + 0x80]
mov rcx, rdi
mov edx, 9
mov r9d, 8
call sub.KERNEL32.dll_GetFileInformationByHandleEx
test eax, eax
je 0x4200c4
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x420119
mov qword [rsp + 0x40], 0
call sub.KERNEL32.dll_GetCurrentProcess
mov dword [rsp + 0x30], 2
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov rcx, rax
mov rdx, rdi
mov r8, rax
call sub.KERNEL32.dll_DuplicateHandle
test eax, eax
je 0x42019c
mov rbx, qword [rsp + 0x40]
jmp 0x42011b
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
mov qword [rsp + 0x88], 2
call fcn.0041a2c0
mov qword [rsi], 0
mov rcx, rdi
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
jmp sub.KERNEL32.dll_CloseHandle
xor ebx, ebx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov rcx, rbx
xor edx, edx
mov r8d, 2
xor r9d, r9d
call sub.KERNEL32.dll_CreateFileMappingA
test rax, rax
je 0x42018b
mov r14, rax
shl r12, 0x20
or r12, r15
mov qword [rsp + 0x20], r12
mov rcx, rax
mov edx, 4
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32.dll_MapViewOfFile
mov r15, rax
mov rcx, r14
call sub.KERNEL32.dll_CloseHandle
test r15, r15
je 0x42018b
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x4201d1
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x4201d1
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x88], 1
lea rcx, [rsp + 0x90]
mov qword [rsp + 0x90], rax
call fcn.0041a2c0
mov qword [rsi], 0
mov rcx, rdi
call sub.KERNEL32.dll_CloseHandle
movaps xmm6, xmmword [rsp + 0xd0]
add rsp, 0xe8
pop rbx
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x438ed0
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x4a8
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0xa8]
call fcn.0041c900
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x438f1f
lea rcx, [rsp + 0xb0]
call fcn.0041a2c0
mov qword [rsi], rdi
jmp 0x4390fb
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x48], 0
mov qword [rsp + 0x50], 2
mov qword [rsp + 0x58], 0
mov r8d, 0x200
mov eax, 2
mov qword [rsp + 0x28], rax
xor ebx, ebx
mov esi, 0xffffffff
xor r14d, r14d
xor r13d, r13d
cmp r8, 0x201
jae 0x438fb0
jmp 0x438f8f
jae 0x439057
cmp r8, 0x201
jae 0x438fb0
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x438ff7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x438fd7
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.0041ce10
mov rbx, qword [rsp + 0x48]
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x28], rax
cmp rbx, rsi
mov r13d, 0xffffffff
cmovb r13, rbx
mov qword [rsp + 0x58], r13
mov r14, rbx
mov rdi, r13
mov rbp, qword [rsp + 0x28]
mov r12, r13
xor ecx, ecx
call sub.KERNEL32.dll_SetLastError
mov rcx, qword [rsp + 0x30]
mov rdx, rbp
mov r8d, r12d
call sub.KERNEL32.dll_GetEnvironmentVariableW
mov r15d, eax
test eax, eax
jne 0x43901e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x439096
mov r8d, r15d
cmp r12, r8
jne 0x438f80
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x43912b
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x438f8f
jmp 0x438fb0
cmp rdi, r8
jb 0x439145
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.0041e850
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x4390b7
call sub.KERNEL32.dll_GetLastError
shl rax, 0x20
or rax, 2
mov qword [rsp + 0x68], rax
movabs rdi, 0x8000000000000000
mov qword [rsp + 0x60], rdi
mov rsi, qword [rsp + 0x38]
test rbx, rbx
je 0x4390d0
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.00419660
cmp qword [rsp + 0x60], rdi
jne 0x439110
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.0041a2c0
cmp qword [rsp + 0x40], 0
je 0x4390fb
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.00419660
nop
add rsp, 0x4a8
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
movaps xmm0, xmmword [rsp + 0x60]
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rsi + 0x10], xmm1
movups xmmword [rsi], xmm0
cmp qword [rsp + 0x40], 0
jne 0x4390ec
jmp 0x4390fb
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.dddddddddddddddddddddddddddddddddddddd
mov edx, 0x28
call fcn.004037a0
jmp 0x43915a
lea rax, str.dddddddddddddddddddddddddddddddddddddd
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.00403400
ud2
Function at 0x43c050
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x0044e0e8]
test ecx, ecx
je 0x43c129
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x43c084
mov rdi, rax
cmp qword [rax + 8], 0
je 0x43c084
add rdi, 0x10
jmp 0x43c11f
mov ecx, dword [0x0044e0e8]
test ecx, ecx
je 0x43c13c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x43c11d
mov rsi, rax
test rax, rax
jne 0x43c0ec
movzx eax, byte [0x00b90030]
mov edx, 0x18
xor ecx, ecx
call fcn.00446d60
test rax, rax
je 0x43c15f
mov rsi, rax
lea rax, [0x0044e0d0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x0044e0e8]
test ecx, ecx
je 0x43c14f
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 0x43c11f
test rcx, rcx
je 0x43c11f
lock dec qword [rcx]
jne 0x43c11f
call fcn.0043c170
jmp 0x43c11f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x0044e0d0]
call fcn.0041ac20
mov ecx, eax
jmp 0x43c066
lea rcx, [0x0044e0d0]
call fcn.0041ac20
mov ecx, eax
jmp 0x43c094
lea rcx, [0x0044e0d0]
call fcn.0041ac20
mov ecx, eax
jmp 0x43c0e4
mov ecx, 8
mov edx, 0x18
call fcn.00401d20
int3
Function at 0x443000
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x70
mov rsi, rcx
movabs rbx, 0x8000000000000000
lea rcx, [rsp + 0x40]
call fcn.0041c900
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, rbx
jne 0x44303d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x44306a
mov rdx, qword [rsp + 0x50]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rdx
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x58]
call fcn.00442f30
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x443083
lea rcx, [rsp + 0x30]
call fcn.0041a2c0
mov qword [rsi], rbx
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
mov rdi, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
mov rcx, rdi
call sub.KERNEL32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4430a7
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x443077
mov qword [rsi], rbx
test r14, r14
je 0x443077
mov edx, 2
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.00419660
Function at 0x444eb0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x1098
call fcn.0044b2a0
sub rsp, rax
movaps xmmword [rsp + 0x1080], xmm6
mov rsi, rdx
mov rdi, rcx
lea r14, [rsp + 0x80]
mov r8d, 0x1000
mov rcx, r14
xor edx, edx
call sub.ntdll.dll_memset
xorps xmm6, xmm6
lea r15, [rsp + 0x3c]
lea rbx, [0x0043c880]
lea r13, [rsp + 0x60]
lea r12, [0x00451288]
mov qword [rsp + 0x48], rdi

Function at 0x4453b0
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 0x4453e1
mov rax, qword [rsp + 0x30]
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, [0x00439ac0]
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.LLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLL
lea rcx, [rsp + 0x50]
call fcn.00402950
ud2
Function at 0x44c150
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x00b90724]
test esi, esi
mov rbx, rcx
mov rbp, rdx
mov rdi, r8
jle 0x44c2d8
mov rax, qword [0x00b90728]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp rbx, rdx
jb 0x44c19c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp rbx, rdx
jb 0x44c225
add ecx, 1
add rax, 0x28
cmp ecx, esi
jne 0x44c180
mov rcx, rbx
call fcn.0044cdf0
test rax, rax
mov r12, rax
je 0x44c30d
mov rax, qword [0x00b90728]
lea rsi, [rsi + rsi*4]
shl rsi, 3
add rax, rsi
mov qword [rax + 0x20], r12
mov dword [rax], 0
call fcn.0044cf20
mov ecx, dword [r12 + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x00b90728]
mov qword [rax + rsi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x44c2f0
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x44c21e
sub eax, 0x40
and eax, 0xffffffbf
jne 0x44c280
add dword [0x00b90724], 1
cmp edi, 8
jae 0x44c253
test dil, 4
jne 0x44c2c4
test edi, edi
je 0x44c248
movzx eax, byte [rbp]
test dil, 2
mov byte [rbx], al
jne 0x44c2df
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 0x44c248
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 0x44c26c
jmp 0x44c248
add rsi, qword [0x00b90728]
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 0x44c21e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.0044d150
mov eax, dword [rbp]
mov edi, edi
mov dword [rbx], eax
mov eax, dword [rbp + rdi - 4]
mov dword [rbx + rdi - 4], eax
jmp 0x44c248
xor esi, esi
jmp 0x44c1a7
mov edi, edi
movzx eax, word [rbp + rdi - 2]
mov word [rbx + rdi - 2], ax
jmp 0x44c248
mov rax, qword [0x00b90728]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov edx, dword [r12 + 8]
mov r8, qword [rax + rsi + 0x18]
call fcn.0044d150
lea rcx, str.Address__p_has_no_image_section
mov rdx, rbx
call fcn.0044d150
nop
nop dword [rax]

Function at 0x44ca60
Capabilities:
Get thread local storage value

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x00b90a00]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x00b909e0]
test rbx, rbx
je 0x44cab4
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 0x44caab
test rsi, rsi
je 0x44caab
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x44ca90
lea rcx, [0x00b90a00]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x44cdf0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00b89aa0]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x44ce5d
mov rcx, r8
call fcn.0044ccd0
test eax, eax
je 0x44ce5d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x44ce5d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x44ce54
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x44ce5f
add rax, 0x28
cmp rax, r9
jne 0x44ce40
xor eax, eax
add rsp, 0x28
ret

Function at 0x44d150
Capabilities:
Write file on windows

Disassembly:
lea rcx, [0x00401540]
jmp 0x401510
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
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.0044d0f0
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.0044d0f0
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
jmp 0x401530