joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10009360
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 0x100093f0
cmp r11, r10
ja 0x10009466
cmp r10, rdx
ja 0x10009478
add r11, r9
xor r15d, r15d
nop word cs:[rax + rax]
cmp r14, r15
je 0x100093f2
lea r12, [r15 + 1]
cmp byte [r11 + r15], cl
mov r15, r12
jne 0x100093d0
jmp 0x10009454
ja 0x100093fa
mov r11, r10
cmp rax, r8
jne 0x10009394
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 0x10009430
mov rdi, r8
sub ecx, edx
jns 0x1000944b
jmp 0x10009456
cmp r8, rsi
je 0x10009487
movzx r8d, byte [rdi + 1]
add rdi, 2
and edx, 0x7f
shl edx, 8
or edx, r8d
sub ecx, edx
js 0x10009456
xor al, 1
cmp rdi, rsi
jne 0x10009410
jmp 0x10009456
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.OOFFzzPPUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
mov rcx, r11
mov rdx, r10
call fcn.10007160
lea r8, str.OOFFzzPPUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
mov rcx, r10
call fcn.10006730
lea rcx, str.OOFFzzPPUUUUUUUUUUUUUUUUUUUUUUUUUUUUU
call fcn.10007d00
int3
Function at 0x1000a3ec
Capabilities:
Hash data with crc32

Disassembly:
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x20
mov r9, r8
mov rax, rdx
not ecx
lea rdi, [0x101998b8]
mov ebx, 0xff
lea rsi, str.crc32fast_1.4.2KKKKKKKKKKKKKKKK
cmp r9, 0x40
jb 0x1000a51c
mov r14d, 4
sub r14, 1
jb 0x1000a411
cmp r9, 0xf
jbe 0x1000a549
movzx edx, byte [rax + 0xf]
movzx r8d, byte [rax + 0xe]
mov ebp, dword [rdi + r8*4 + 0x400]
xor ebp, dword [rdi + rdx*4]
movzx edx, byte [rax + 0xd]
xor ebp, dword [rdi + rdx*4 + 0x800]
movzx edx, byte [rax + 0xc]
xor ebp, dword [rdi + rdx*4 + 0xc00]
movzx edx, byte [rax + 0xb]
xor ebp, dword [rdi + rdx*4 + 0x1000]
movzx edx, byte [rax + 0xa]
xor ebp, dword [rdi + rdx*4 + 0x1400]
movzx edx, byte [rax + 9]
xor ebp, dword [rdi + rdx*4 + 0x1800]
movzx edx, byte [rax + 8]
xor ebp, dword [rdi + rdx*4 + 0x1c00]
movzx edx, byte [rax + 7]
xor ebp, dword [rdi + rdx*4 + 0x2000]
movzx edx, byte [rax + 6]
xor ebp, dword [rdi + rdx*4 + 0x2400]
movzx edx, byte [rax + 5]
xor ebp, dword [rdi + rdx*4 + 0x2800]
movzx edx, byte [rax + 4]
xor ebp, dword [rdi + rdx*4 + 0x2c00]
mov edx, ecx
shr edx, 0x18
movzx r8d, byte [rax + 3]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3000]
mov edx, ecx
shr edx, 0x10
and edx, ebx
movzx r8d, byte [rax + 2]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3400]
mov edx, ecx
shr edx, 8
and edx, ebx
movzx r8d, byte [rax + 1]
xor r8d, edx
xor ebp, dword [rdi + r8*4 + 0x3800]
and ecx, ebx
movzx edx, byte [rax]
xor edx, ecx
xor ebp, dword [rdi + rdx*4 + 0x3c00]
mov rcx, rax
mov rdx, r9
mov r8, rsi
call fcn.1000aa2f
mov r9, rdx
mov ecx, ebp
jmp 0x1000a421
xor edx, edx
cmp r9, rdx
je 0x1000a53a
mov r8b, byte [rax + rdx]
xor r8b, cl
movzx r8d, r8b
shr ecx, 8
xor ecx, dword [rdi + r8*4]
inc rdx
jmp 0x1000a51e
not ecx
mov eax, ecx
add rsp, 0x20
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
ret
lea r8, str.crc32fast_1.4.2KKKKKKKKKKKKKKKK
mov ecx, 0xf
mov rdx, r9
call fcn.10005d40
int3
Function at 0x10016400
Capabilities:
Encode data using xor

Disassembly:
mov rax, rdx
sub rdx, rcx
cmp rdx, 0x20
jae fcn.100061b0
cmp rax, rcx
je 0x10016425
cmp rdx, 4
jae 0x10016428
xor eax, eax
xor r8d, r8d
jmp 0x100164c0
xor eax, eax
ret
mov r8, rdx
and r8, 0xfffffffffffffffc
pxor xmm0, xmm0
xor eax, eax
movdqa xmm2, xmmword [0x1004e6a0]
movdqa xmm3, xmmword [0x1004e6b0]
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 0x10016450
paddq xmm1, xmm0
pshufd xmm0, xmm1, 0xee
paddq xmm0, xmm1
movq rax, xmm0
cmp r8, rdx
je 0x100164d7
nop dword [rax]
xor r9d, r9d
cmp byte [rcx + r8], 0xc0
setge r9b
add rax, r9
inc r8
cmp rdx, r8
jne 0x100164c0
ret
Function at 0x100173d0
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 0x1001742b
mov r10, qword [rsi + 8]
mov rcx, qword [rsi + 0x10]
cmp rcx, r10
jae 0x1001742b
movzx eax, byte [r8 + rcx]
cmp eax, 0x49
je 0x10017446
cmp eax, 0x42
jne 0x1001742b
lea r11, [rcx + 1]
mov qword [rsi + 0x10], r11
cmp r11, r10
jae 0x100174f6
cmp byte [r8 + r11], 0x5f
jne 0x100174f6
lea rax, [rcx + 2]
mov qword [rsi + 0x10], rax
xor eax, eax
jmp 0x1001755e
mov rcx, rsi
xor edx, edx
call fcn.10012e60
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.10012e60
test al, al
jne 0x100175f1
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x10017482
lea rdx, [0x1019f3ab]
mov r8d, 1
call fcn.100067b0
test al, al
jne 0x100175f1
mov rax, qword [rsi]
mov dil, 1
test rax, rax
je 0x1001743a
xor r14d, r14d
lea rbx, [0x1019f719]
nop word [rax + rax]
mov rcx, qword [rsi + 0x10]
cmp rcx, qword [rsi + 8]
jae 0x100174b4
cmp byte [rax + rcx], 0x45
je 0x10017613
sub r14, 1
jb 0x100174d9
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x100174d9
mov r8d, 2
mov rdx, rbx
call fcn.100067b0
test al, al
jne 0x100175f1
mov rcx, rsi
call fcn.10014680
test al, al
jne 0x100175f1
mov rax, qword [rsi]
test rax, rax
jne 0x100174a0
jmp 0x1001743a
xor eax, eax
mov edi, 0x3e
nop dword [rax]
mov r9b, 1
cmp r11, r10
jae 0x100175b8
movzx edx, byte [r8 + r11]
cmp dl, 0x5f
je 0x10017552
lea ebx, [rdx - 0x30]
cmp bl, 0xa
jb 0x1001753c
lea ebx, [rdx - 0x61]
cmp bl, 0x1a
jae 0x1001752b
add dl, 0xa9
jmp 0x1001753a
lea ebx, [rdx - 0x41]
cmp bl, 0x1a
jae 0x100175b8
add dl, 0xe3
mov ebx, edx
inc r11
mov qword [rsi + 0x10], r11
mul rdi
jo 0x100175b8
movzx edx, bl
add rax, rdx
jae 0x10017500
jmp 0x100175b8
inc r11
mov qword [rsi + 0x10], r11
inc rax
je 0x100175b8
cmp rax, rcx
jae 0x100175b5
mov ecx, dword [rsi + 0x18]
inc ecx
cmp ecx, 0x1f4
ja 0x1001760b
cmp qword [rsi + 0x20], 0
je 0x10017604
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.100173d0
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rsi], xmm0
movups xmmword [rsi + 0x10], xmm1
jmp 0x1001743c
mov r9b, 1
xor edi, edi
mov rcx, qword [rsi + 0x20]
test rcx, rcx
je 0x100175f9
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, [0x1019f6f8]
test r9b, r9b
cmovne rdx, rax
call fcn.100067b0
test al, al
je 0x100175f9
mov dil, 2
jmp 0x1001743a
mov qword [rsi], 0
mov byte [rsi + 8], dil
xor edi, edi
jmp 0x1001743a
mov dil, 1
xor r9d, r9d
jmp 0x100175ba
inc rcx
mov qword [rsi + 0x10], rcx
jmp 0x1001743a
Function at 0x1001a810
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rdi
push rbx
sub rsp, 0x60
mov rsi, rcx
cmp qword [rcx], 0
je 0x1001a895
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 0x1001a8d6
cmp dword [rsp + 0x2c], 0
je 0x1001a8ba
call sub.KERNEL32.dll_TlsAlloc
cmp eax, 0xffffffff
je 0x1001a8ee
mov edi, eax
inc eax
mov dword [rsi + 0x18], eax
mov rax, qword [0x101aa0f8]
nop
mov qword [rsi + 8], rax
lock cmpxchg qword [0x101aa0f8], rsi
jne 0x1001a870
mov byte [0x101aa0f0], 1
mov rcx, rbx
xor edx, edx
xor r8d, r8d
call sub.KERNEL32.dll_InitOnceComplete
jmp 0x1001a8cc
call sub.KERNEL32.dll_TlsAlloc
mov dword [rsp + 0x28], eax
cmp eax, 0xffffffff
je 0x1001a938
mov ecx, eax
inc ecx
xor eax, eax
lock cmpxchg dword [rsi + 0x18], ecx
jne 0x1001a8bf
mov edi, dword [rsp + 0x28]
jmp 0x1001a8cc
mov edi, dword [rsi + 0x18]
jmp 0x1001a8ca
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.1001ad80
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._JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rdx, str.IIIIIIIIIIIIIIIAAAAXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX
lea rcx, [rsp + 0x30]
call fcn.10005c80
lea rax, str.out_of_TLS_indexes
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 1
lea rax, str._JJJJJJJJJJJJJJJJJJJJJJJJJJJJJJJccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccccc
mov qword [rsp + 0x40], rax
xorps xmm0, xmm0
movups xmmword [rsp + 0x48], xmm0
lea rcx, [rsp + 0x28]
lea rdx, [rsp + 0x30]
call fcn.1001add0
int3
Function at 0x1001ac60
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1004d098]
test ecx, ecx
je 0x1001ad39
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1001ac94
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1001ac94
add rdi, 0x10
jmp 0x1001ad2f
mov ecx, dword [0x1004d098]
test ecx, ecx
je 0x1001ad4c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1001ad2d
mov rsi, rax
test rax, rax
jne 0x1001acfc
movzx eax, byte [0x101aa020]
mov edx, 0x18
xor ecx, ecx
call fcn.100468b0
test rax, rax
je 0x1001ad6f
mov rsi, rax
lea rax, [0x1004d080]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1004d098]
test ecx, ecx
je 0x1001ad5f
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 0x1001ad2f
test rcx, rcx
je 0x1001ad2f
lock dec qword [rcx]
jne 0x1001ad2f
call fcn.1001a7c0
jmp 0x1001ad2f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1004d080]
call fcn.1001a810
mov ecx, eax
jmp 0x1001ac76
lea rcx, [0x1004d080]
call fcn.1001a810
mov ecx, eax
jmp 0x1001aca4
lea rcx, [0x1004d080]
call fcn.1001a810
mov ecx, eax
jmp 0x1001acf4
mov ecx, 8
mov edx, 0x18
call fcn.10005130
int3
Function at 0x1001bf30
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1004d078]
test ecx, ecx
je 0x1001bfea
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1001bf60
cmp qword [rax + 8], 0
je 0x1001bf60
add rax, 0x10
jmp 0x1001bfe4
mov ecx, dword [0x1004d078]
test ecx, ecx
je 0x1001bffd
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1001bfe2
mov rsi, rax
test rax, rax
jne 0x1001bfc8
movzx eax, byte [0x101aa020]
mov edx, 0x20
xor ecx, ecx
call fcn.100468b0
test rax, rax
je 0x1001c020
mov rsi, rax
lea rax, [0x1004d060]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1004d078]
test ecx, ecx
je 0x1001c010
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 0x1001bfe4
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1004d060]
call fcn.1001a810
mov ecx, eax
jmp 0x1001bf45
lea rcx, [0x1004d060]
call fcn.1001a810
mov ecx, eax
jmp 0x1001bf70
lea rcx, [0x1004d060]
call fcn.1001a810
mov ecx, eax
jmp 0x1001bfc0
mov ecx, 8
mov edx, 0x20
call fcn.10005130
int3
Function at 0x1001d970
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 0x1001d9f0
jmp 0x1001d9df
jae 0x1001da95
cmp r8, 0x201
jae 0x1001d9f0
mov r15d, 0x200
lea r12, [rsp + 0x68]
mov r13, r8
jmp 0x1001da37
sub r8, r14
sub rsi, r14
cmp rsi, r8
jae 0x1001da17
lea rcx, [rsp + 0x30]
mov rdx, r14
call fcn.1001c8f0
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 0x1001da5c
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x1001daea
mov r8d, ebp
cmp r13, r8
jne 0x1001d9d0
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x1001db14
add r13, r13
cmp r13, rbx
cmovae r13, rbx
mov r8, r13
cmp r8, 0x201
jb 0x1001d9df
jmp 0x1001d9f0
cmp r15, r8
jb 0x1001db2e
lea rcx, [rsp + 0x48]
mov rdx, r12
call fcn.1001e350
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 0x1001dad5
mov edx, 2
mov rcx, qword [rsp + 0x20]
call fcn.10004c20
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 0x1001dac6
jmp 0x1001dad5
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
mov edx, 0x28
call fcn.10006ad0
jmp 0x1001db43
lea rax, str.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
mov rcx, r8
mov rdx, r15
mov r8, rax
call fcn.10006730
ud2
Function at 0x1001fa70
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.10038050
mov rdi, rdx
test rax, rax
je 0x1001fb08
mov qword [rsp + 0x40], rax
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x48], rdi
call fcn.10019eb0
mov qword [rsi], 0
jmp 0x1001fcd9
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 0x1001fbc4
test dword [rsp + 0x40], 0x400
je 0x1001fb69
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 0x1001fbc4
mov r12d, dword [rsp + 0x60]
mov r15d, dword [rsp + 0x64]
test rdi, rdi
je 0x1001fc19
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 0x1001fc9c
mov rbx, qword [rsp + 0x40]
jmp 0x1001fc1b
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.10019eb0
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 0x1001fc8b
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 0x1001fc8b
mov qword [rsi + 8], rbx
mov qword [rsi + 0x10], r15
mov qword [rsi + 0x18], r12
mov qword [rsi], 1
jmp 0x1001fcd1
mov qword [rsi], 0
mov rcx, rbx
call sub.KERNEL32.dll_CloseHandle
jmp 0x1001fcd1
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.10019eb0
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 0x100389d0
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.1001c3e0
mov rax, qword [rsp + 0xa8]
cmp rax, rdi
jne 0x10038a1f
lea rcx, [rsp + 0xb0]
call fcn.10019eb0
mov qword [rsi], rdi
jmp 0x10038bfb
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 0x10038ab0
jmp 0x10038a8f
jae 0x10038b57
cmp r8, 0x201
jae 0x10038ab0
mov edi, 0x200
lea rbp, [rsp + 0xa8]
mov r12, r8
jmp 0x10038af7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x10038ad7
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.1001c8f0
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 0x10038b1e
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x10038b96
mov r8d, r15d
cmp r12, r8
jne 0x10038a80
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x10038c2b
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x10038a8f
jmp 0x10038ab0
cmp rdi, r8
jb 0x10038c45
lea rcx, [rsp + 0x88]
mov rdx, rbp
call fcn.1001e350
movabs rdi, 0x8000000000000000
movups xmm0, xmmword [rsp + 0x88]
movups xmm1, xmmword [rsp + 0x98]
movaps xmmword [rsp + 0x70], xmm1
movaps xmmword [rsp + 0x60], xmm0
jmp 0x10038bb7
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 0x10038bd0
mov edx, 2
mov rcx, qword [rsp + 0x28]
call fcn.10004c20
cmp qword [rsp + 0x60], rdi
jne 0x10038c10
mov qword [rsi], rdi
lea rcx, [rsp + 0x68]
call fcn.10019eb0
cmp qword [rsp + 0x40], 0
je 0x10038bfb
mov edx, 2
mov rcx, qword [rsp + 0x30]
call fcn.10004c20
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 0x10038bec
jmp 0x10038bfb
lea rcx, str.internal_error:_entered_unreachable_code
lea r8, str.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
mov edx, 0x28
call fcn.10006ad0
jmp 0x10038c5a
lea rax, str.OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.10006730
ud2
Function at 0x1003bb50
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1004d0d8]
test ecx, ecx
je 0x1003bc29
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x1003bb84
mov rdi, rax
cmp qword [rax + 8], 0
je 0x1003bb84
add rdi, 0x10
jmp 0x1003bc1f
mov ecx, dword [0x1004d0d8]
test ecx, ecx
je 0x1003bc3c
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x1003bc1d
mov rsi, rax
test rax, rax
jne 0x1003bbec
movzx eax, byte [0x101aa020]
mov edx, 0x18
xor ecx, ecx
call fcn.100468b0
test rax, rax
je 0x1003bc5f
mov rsi, rax
lea rax, [0x1004d0c0]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1004d0d8]
test ecx, ecx
je 0x1003bc4f
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 0x1003bc1f
test rcx, rcx
je 0x1003bc1f
lock dec qword [rcx]
jne 0x1003bc1f
call fcn.1003bc70
jmp 0x1003bc1f
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1004d0c0]
call fcn.1001a810
mov ecx, eax
jmp 0x1003bb66
lea rcx, [0x1004d0c0]
call fcn.1001a810
mov ecx, eax
jmp 0x1003bb94
lea rcx, [0x1004d0c0]
call fcn.1001a810
mov ecx, eax
jmp 0x1003bbe4
mov ecx, 8
mov edx, 0x18
call fcn.10005130
int3
Function at 0x10042b00
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.1001c3e0
mov rcx, qword [rsp + 0x40]
mov rax, qword [rsp + 0x48]
cmp rcx, rbx
jne 0x10042b3d
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], rbx
jmp 0x10042b6a
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.10042a30
mov r14, qword [rsp + 0x28]
cmp r14, rbx
jne 0x10042b83
lea rcx, [rsp + 0x30]
call fcn.10019eb0
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 0x10042ba7
mov qword [rsi], r14
mov qword [rsi + 8], rdi
mov qword [rsi + 0x10], r15
jmp 0x10042b77
mov qword [rsi], rbx
test r14, r14
je 0x10042b77
mov edx, 2
mov rcx, rdi
add rsp, 0x70
pop rbx
pop rdi
pop rsi
pop r14
pop r15
jmp fcn.10004c20
Function at 0x10044650
Capabilities:
Create thread

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x38
mov rbx, r8
mov r14, rdx
mov rdi, rcx
movzx eax, byte [0x101aa020]
mov edx, 0x10
xor ecx, ecx
call fcn.100468b0
test rax, rax
je 0x10044705
mov rsi, rax
mov qword [rax], r14
mov qword [rax + 8], rbx
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x10000
lea r8, [0x10044760]
xor ebx, ebx
xor ecx, ecx
mov rdx, rdi
mov r9, rax
call sub.KERNEL32.dll_CreateThread
mov rdx, rax
test rax, rax
jne 0x100446f8
mov rbx, qword [rsi]
mov r14, qword [rsi + 8]
mov rcx, rbx
call qword [r14]
cmp qword [r14 + 8], 0
je 0x100446d7
mov rdx, qword [r14 + 0x10]
mov rcx, rbx
call fcn.10004c20
mov edx, 8
mov rcx, rsi
call fcn.10004c20
call sub.KERNEL32.dll_GetLastError
mov edx, eax
shl rdx, 0x20
or rdx, 2
mov ebx, 1
mov rax, rbx
add rsp, 0x38
pop rbx
pop rdi
pop rsi
pop r14
ret
mov ecx, 8
mov edx, 0x10
call fcn.10005130
ud2

Function at 0x10044a00
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.1004adf0
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, [0x1003c380]
lea r13, [rsp + 0x60]
lea r12, [0x10050288]
mov qword [rsp + 0x48], rdi

Function at 0x10044f00
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 0x10044f31
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, [0x100395c0]
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.IIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIIII
lea rcx, [rsp + 0x50]
call fcn.10005c80
ud2