joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001d660
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x1400560f0]
test ecx, ecx
je 0x14001d690
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14001d6a9
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14001d6a9
add rdi, 0x10
jmp 0x14001d765
lea rcx, [0x1400560d8]
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14001d67d
mov ecx, dword [0x1400560f0]
test ecx, ecx
je 0x14001d746
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001d763
mov rsi, rax
test rax, rax
jne 0x14001d715
movzx eax, byte [0x1401b51a8]
mov edx, 0x18
xor ecx, ecx
call fcn.14003e800
test rax, rax
je 0x14001d77f
mov rsi, rax
lea rax, [0x1400560d8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400560f0]
test ecx, ecx
je 0x14001d76f
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 0x14001d765
test rcx, rcx
je 0x14001d765
lock dec qword [rcx]
jne 0x14001d765
call fcn.14001cfa0
jmp 0x14001d765
lea rcx, [0x1400560d8]
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14001d6c8
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x1400560d8]
call fcn.14001d000
mov ecx, eax
jmp 0x14001d70d
mov ecx, 8
mov edx, 0x18
call fcn.140005ca0
int3

Function at 0x14001e3b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x140056110]
test ecx, ecx
je 0x14001e44d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14001e3d9
mov rsi, rax
cmp byte [rax + 8], 0
jne 0x14001e447
mov ecx, dword [0x140056110]
test ecx, ecx
je 0x14001e46f
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001e48c
mov rsi, rax
test rax, rax
jne 0x14001e441
movzx eax, byte [0x1401b51a8]
mov edx, 0x10
xor ecx, ecx
call fcn.14003e800
test rax, rax
je 0x14001e4a7
mov rsi, rax
lea rax, [0x1400560f8]
mov qword [rsi], rax
mov byte [rsi + 8], 0
mov ecx, dword [0x140056110]
test ecx, ecx
je 0x14001e497
dec ecx
mov rdx, rsi
call sub.KERNEL32.dll_TlsSetValue
mov word [rsi + 8], 1
add rsi, 9
jmp 0x14001e48e
lea rcx, [0x1400560f8]
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14001e3d0
jmp 0x14001e3d9
lea rcx, [0x1400560f8]
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14001e3f8
xor esi, esi
mov rax, rsi
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400560f8]
call fcn.14001d000
mov ecx, eax
jmp 0x14001e439
mov ecx, 8
mov edx, 0x10
call fcn.140005ca0
int3
Function at 0x14001f2c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
sub rsp, 0x20
mov ecx, dword [0x1400560d0]
test ecx, ecx
je 0x14001f2ed
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14001f306
cmp qword [rax + 8], 0
je 0x14001f306
add rax, 0x10
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400560b8]
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14001f2dc
mov ecx, dword [0x1400560d0]
test ecx, ecx
je 0x14001f388
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14001f3a1
mov rsi, rax
test rax, rax
jne 0x14001f36a
movzx eax, byte [0x1401b51a8]
mov edx, 0x20
xor ecx, ecx
call fcn.14003e800
test rax, rax
je 0x14001f3b9
mov rsi, rax
lea rax, [0x1400560b8]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x1400560d0]
test ecx, ecx
je 0x14001f3a9
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
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400560b8]
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14001f321
xor eax, eax
add rsp, 0x20
pop rsi
ret
lea rcx, [0x1400560b8]
call fcn.14001d000
mov ecx, eax
jmp 0x14001f362
mov ecx, 8
mov edx, 0x20
call fcn.140005ca0
int3
Function at 0x14003bc80
Capabilities:
Query environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x498
mov rsi, rcx
movabs rdi, 0x8000000000000000
lea rcx, [rsp + 0x98]
call fcn.14001f790
mov rax, qword [rsp + 0x98]
cmp rax, rdi
jne 0x14003bccf
mov rcx, qword [rsp + 0xa0]
call fcn.14001c760
mov qword [rsi], rdi
jmp 0x14003be8d
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0xa0]
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 0x14003bd60
jmp 0x14003bd3f
jae 0x14003be0b
cmp r8, 0x201
jae 0x14003bd60
mov edi, 0x200
lea rbp, [rsp + 0x98]
mov r12, r8
jmp 0x14003bda7
sub r8, r13
sub r14, r13
cmp r14, r8
jae 0x14003bd87
lea rcx, [rsp + 0x48]
mov rdx, r13
call fcn.14001fc60
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 0x14003bdd2
call sub.KERNEL32.dll_GetLastError
test eax, eax
jne 0x14003bec1
mov r8d, r15d
cmp r12, r8
jne 0x14003bd30
call sub.KERNEL32.dll_GetLastError
cmp eax, 0x7a
jne 0x14003beeb
add r12, r12
cmp r12, rsi
cmovae r12, rsi
mov r8, r12
cmp r8, 0x201
jb 0x14003bd3f
jmp 0x14003bd60
cmp rdi, r8
jb 0x14003bf05
lea rcx, [rsp + 0x78]
mov rdx, rbp
call fcn.140021180
movabs r14, 0x8000000000000000
mov rsi, qword [rsp + 0x78]
mov rdi, qword [rsp + 0x80]
movups xmm0, xmmword [rsp + 0x88]
movaps xmmword [rsp + 0x60], xmm0
test rbx, rbx
je 0x14003be5d
mov rcx, qword [0x1401b5178]
xor edx, edx
mov r8, qword [rsp + 0x28]
call fcn.140053cc4
cmp rsi, r14
jne 0x14003bea2
mov rax, qword [rsp + 0x38]
mov qword [rax], r14
mov rcx, rdi
call fcn.14001c760
cmp qword [rsp + 0x40], 0
je 0x14003be8d
mov rcx, qword [0x1401b5178]
xor edx, edx
mov r8, qword [rsp + 0x30]
call fcn.140053cc4
nop
add rsp, 0x498
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [rsp + 0x38]
mov qword [rax], rsi
mov qword [rax + 8], rdi
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x10], xmm0
cmp qword [rsp + 0x40], 0
jne 0x14003be7a
jmp 0x14003be8d
call sub.KERNEL32.dll_GetLastError
mov edi, eax
shl rdi, 0x20
or rdi, 2
movabs r14, 0x8000000000000000
mov rsi, r14
test rbx, rbx
jne 0x14003be4a
jmp 0x14003be5d
lea rcx, str.internal_error:_entered_unreachable_code_.cargo_registry_src_index.crates.io_6f17d22bba15001f_rayon_core_1.12.1_src_job.rs
lea r8, str.library_std_src_syspalwindowsmod.rs
mov edx, 0x28
call fcn.140007d10
jmp 0x14003bf1a
lea rax, str.library_std_src_syspalwindowsmod.rs
mov rcx, r8
mov rdx, rdi
mov r8, rax
call fcn.140007970
ud2
Function at 0x14003d750
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rsi
push rdi
sub rsp, 0x28
mov ecx, dword [0x140056130]
test ecx, ecx
je 0x14003d780
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x14003d799
mov rdi, rax
cmp qword [rax + 8], 0
je 0x14003d799
add rdi, 0x10
jmp 0x14003d855
lea rcx, [0x140056118]
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14003d76d
mov ecx, dword [0x140056130]
test ecx, ecx
je 0x14003d836
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x14003d853
mov rsi, rax
test rax, rax
jne 0x14003d805
movzx eax, byte [0x1401b51a8]
mov edx, 0x18
xor ecx, ecx
call fcn.14003e800
test rax, rax
je 0x14003d86f
mov rsi, rax
lea rax, [0x140056118]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140056130]
test ecx, ecx
je 0x14003d85f
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 0x14003d855
test rcx, rcx
je 0x14003d855
lock dec qword [rcx]
jne 0x14003d855
call fcn.14003d880
jmp 0x14003d855
lea rcx, [0x140056118]
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x14003d7b8
xor edi, edi
mov rax, rdi
add rsp, 0x28
pop rdi
pop rsi
ret
lea rcx, [0x140056118]
call fcn.14001d000
mov ecx, eax
jmp 0x14003d7fd
mov ecx, 8
mov edx, 0x18
call fcn.140005ca0
int3

Function at 0x14003e240
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 0x14003e276
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, [0x14003c8b0]
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_syspalwindows_rand.rs
lea rcx, [rsp + 0x50]
call fcn.140006ea0
ud2
Function at 0x140043220
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 [0x140056150]
test ecx, ecx
je 0x14004324d
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jb 0x140043266
cmp qword [rax + 8], 0
je 0x140043266
add rax, 0x10
add rsp, 0x30
pop rsi
ret
lea rcx, [0x140056138]
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 2
jae 0x14004323c
mov ecx, dword [0x140056150]
test ecx, ecx
je 0x140043328
dec ecx
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
je 0x140043345
mov rsi, rax
test rax, rax
jne 0x1400432d6
movzx eax, byte [0x1401b51a8]
mov edx, 0x20
xor ecx, ecx
call fcn.14003e800
test rax, rax
je 0x140043360
mov rsi, rax
lea rax, [0x140056138]
mov qword [rsi], rax
mov qword [rsi + 8], 0
mov ecx, dword [0x140056150]
test ecx, ecx
je 0x14004334d
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 0x140043306
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
jmp 0x14004330e
call fcn.14003e240
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, [0x140056138]
call fcn.14001d000
mov ecx, eax
call sub.KERNEL32.dll_TlsGetValue
cmp rax, 1
jne 0x140043285
xor eax, eax
add rsp, 0x30
pop rsi
ret
lea rcx, [0x140056138]
call fcn.14001d000
mov ecx, eax
jmp 0x1400432ce
mov ecx, 8
mov edx, 0x20
call fcn.140005ca0
int3
Function at 0x140043980
Capabilities:
Reference wmi statements

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x38
mov rsi, rdx
mov rdi, rcx
mov qword [rsp + 0x30], 0
mov r15, qword [rdx + 0x10]
test r15, r15
je 0x140043a57
lea rcx, [0x1401ad8ca]
call sub.OLEAUT32.dll_SysAllocString
mov rbx, rax
lea rcx, str.SELECT__FROM_MSAcpi_ThermalZoneTemperature
call sub.OLEAUT32.dll_SysAllocString
mov r14, rax
mov rcx, qword [rsi + 0x18]
mov rax, qword [rcx]
lea rdx, [rsp + 0x30]
mov qword [rsp + 0x28], rdx
mov qword [rsp + 0x20], 0
mov rdx, rbx
mov r8, r14
mov r9d, 0x30
call qword [rax + 0xa0]
mov ebp, eax
mov rcx, rbx
call sub.OLEAUT32.dll_SysFreeString
mov rcx, r14
call sub.OLEAUT32.dll_SysFreeString
test ebp, ebp
js 0x140043a57
mov rbx, qword [rsp + 0x30]
cmp qword [rsi + 0x20], 0
je 0x140043a23
mov rcx, qword [rsi + 0x28]
test rcx, rcx
je 0x140043a23
mov rax, qword [rcx]
call qword [rax + 0x10]
mov qword [rsi + 0x20], 1
mov qword [rsi + 0x28], rbx
mov rax, qword [rsi + 0x30]
mov qword [rdi + 0x30], rax
movups xmm0, xmmword [rsi]
movups xmm1, xmmword [rsi + 0x10]
movups xmmword [rdi + 0x10], xmm1
movups xmmword [rdi], xmm0
mov rax, qword [rsi + 0x20]
mov qword [rdi + 0x20], rax
mov rax, qword [rsi + 0x28]
mov qword [rdi + 0x28], rax
jmp 0x140043abf
mov qword [rdi], 2
mov rcx, qword [rsi + 0x28]
cmp qword [rsi + 0x20], 0
mov qword [rsi + 0x20], 0
je 0x140043a7c
test rcx, rcx
je 0x140043a7c
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 0x18]
mov qword [rsi + 0x10], 0
test r15, r15
je 0x140043a98
test rcx, rcx
je 0x140043a98
mov rax, qword [rcx]
call qword [rax + 0x10]
mov rcx, qword [rsi + 8]
cmp qword [rsi], 0
mov qword [rsi], 0
je 0x140043ab4
test rcx, rcx
je 0x140043ab4
mov rax, qword [rcx]
call qword [rax + 0x10]
cmp byte [rsi + 0x30], 0
je 0x140043abf
call sub.ole32.dll_CoUninitialize
nop
add rsp, 0x38
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140045550
Capabilities:
Encode data using xor

Disassembly:
push rsi
push rdi
push rbx
mov rax, rcx
add qword [rcx + 0x30], r8
mov r11, qword [rcx + 0x40]
test r11, r11
je 0x140045592
mov r10d, 8
sub r10, r11
cmp r8, r10
mov rdi, r10
cmovb rdi, r8
cmp rdi, 4
jb 0x14004559a
mov esi, dword [rdx]
mov r9d, 4
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jb 0x1400455ab
jmp 0x1400455c2
xor r10d, r10d
jmp 0x14004564d
xor esi, esi
xor r9d, r9d
mov rcx, r9
or rcx, 1
cmp rcx, rdi
jae 0x1400455c2
movzx ebx, word [rdx + r9]
lea ecx, [r9*8]
shl rbx, cl
or rsi, rbx
or r9, 2
cmp r9, rdi
jae 0x1400455d9
movzx edi, byte [rdx + r9]
shl r9d, 3
mov ecx, r9d
shl rdi, cl
or rsi, rdi
lea ecx, [r11*8]
shl rsi, cl
or rsi, qword [rax + 0x38]
mov qword [rax + 0x38], rsi
cmp r10, r8
jbe 0x1400455f9
add r11, r8
jmp 0x14004572a
mov r11, qword [rax + 0x18]
mov r9, qword [rax + 0x10]
mov rcx, qword [rax]
add rcx, r9
rol r9, 0xd
xor r11, rsi
xor r9, rcx
rol rcx, 0x20
mov rdi, qword [rax + 8]
add rdi, r11
rol r11, 0x10
xor r11, rdi
add rcx, r11
rol r11, 0x15
xor r11, rcx
add rdi, r9
rol r9, 0x11
mov qword [rax + 0x18], r11
xor r9, rdi
rol rdi, 0x20
mov qword [rax + 0x10], r9
mov qword [rax + 8], rdi
xor rcx, rsi
mov qword [rax], rcx
sub r8, r10
mov r11d, r8d
and r11d, 7
and r8, 0xfffffffffffffff8
cmp r10, r8
jae 0x1400456c2
mov rcx, qword [rax]
mov r9, qword [rax + 8]
mov rdi, qword [rax + 0x18]
mov rsi, qword [rax + 0x10]
nop
add rcx, rsi
rol rsi, 0xd
mov rbx, qword [rdx + r10]
xor rsi, rcx
rol rcx, 0x20
xor rdi, rbx
add r9, rdi
rol rdi, 0x10
xor rdi, r9
add rcx, rdi
rol rdi, 0x15
add r9, rsi
rol rsi, 0x11
xor rsi, r9
rol r9, 0x20
xor rdi, rcx
xor rcx, rbx
add r10, 8
cmp r10, r8
jb 0x140045670
mov qword [rax + 0x18], rdi
mov qword [rax + 0x10], rsi
mov qword [rax + 8], r9
mov qword [rax], rcx
cmp r11d, 4
jb 0x1400456e0
mov r9d, dword [rdx + r10]
mov r8d, 4
mov rcx, r8
or rcx, 1
cmp rcx, r11
jb 0x1400456f2
jmp 0x14004570c
xor r9d, r9d
xor r8d, r8d
mov rcx, r8
or rcx, 1
cmp rcx, r11
jae 0x14004570c
lea rcx, [r8 + r10]
movzx esi, word [rdx + rcx]
lea ecx, [r8*8]
shl rsi, cl
or r9, rsi
or r8, 2
cmp r8, r11
jae 0x140045726
add r10, r8
movzx edx, byte [rdx + r10]
shl r8d, 3
mov ecx, r8d
shl rdx, cl
or r9, rdx
mov qword [rax + 0x38], r9
mov qword [rax + 0x40], r11
pop rbx
pop rdi
pop rsi
ret
Function at 0x140051410
Capabilities:
Accept command line arguments

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x78
mov rax, rdx
mov rsi, rcx
lea rdx, [rsp + 0x24]
mov rcx, rax
call sub.SHELL32.dll_CommandLineToArgvW
test rax, rax
je 0x14005152c
mov rdi, rax
mov qword [rsp + 0x40], rsi
movsxd rbp, dword [rsp + 0x24]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x30], 8
mov qword [rsp + 0x38], 0
test rbp, rbp
je 0x14005150c
shl rbp, 3
mov r15d, 8
xor esi, esi
lea rbx, [rsp + 0x60]
lea r14, [rsp + 0x48]
xor r12d, r12d
jmp 0x1400514b9
lea rax, [r12 + r12*2]
mov rcx, qword [rsp + 0x70]
mov qword [r15 + rax*8 + 0x10], rcx
movups xmm0, xmmword [rsp + 0x60]
movups xmmword [r15 + rax*8], xmm0
inc r12
mov qword [rsp + 0x38], r12
add rsi, 8
cmp rbp, rsi
je 0x14005150c
mov r13, qword [rdi + rsi]
mov rcx, r13
call sub.msvcrt.dll_wcslen
lea rax, [rax*2]
add rax, r13
mov qword [rsp + 0x48], r13
mov qword [rsp + 0x50], rax
mov word [rsp + 0x58], 0
mov rcx, rbx
mov rdx, r14
call fcn.14004c150
cmp r12, qword [rsp + 0x28]
jne 0x140051490
lea rcx, [rsp + 0x28]
mov rdx, r12
call fcn.140051670
mov r15, qword [rsp + 0x30]
mov r12, qword [rsp + 0x38]
jmp 0x140051490
mov rcx, rdi
call sub.KERNEL32.dll_LocalFree
movups xmm0, xmmword [rsp + 0x28]
mov rcx, qword [rsp + 0x40]
movups xmmword [rcx], xmm0
mov rax, qword [rsp + 0x38]
mov qword [rcx + 0x10], rax
jmp 0x140051543
mov qword [rsi], 0
mov qword [rsi + 8], 8
mov qword [rsi + 0x10], 0
add rsp, 0x78
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x1400548c0
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.140055660
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.140055660
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 0x140054930
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1401b5224]
mov rbx, rcx
test esi, esi
jle 0x140054a60
mov rax, qword [0x1401b5228]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14005497b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140054a05
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140054960
mov rcx, rbx
call fcn.140055380
mov rdi, rax
test rax, rax
je 0x140054a82
mov rax, qword [0x1401b5228]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400554c0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1401b5228]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140054a67
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400549fe
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140054a10
add dword [0x1401b5224], 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 [0x1401b5228]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400549fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.1400548c0
nop dword [rax]
xor esi, esi
jmp 0x140054988
mov rax, qword [0x1401b5228]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.1400548c0
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.1400548c0
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140054ff0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1401b5280]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1401b5260]
test rbx, rbx
je 0x14005504c
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 eax, eax
jne 0x140055043
test rsi, rsi
je 0x140055043
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140055028
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 0x140055380
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1401ae4b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x1400553a0
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x1400553a8
ret
cmp word [r8 + 0x18], 0x20b
jne 0x1400553a0
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400553fd
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 0x1400553f4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400553a0
add rax, 0x28
cmp rax, r9
jne 0x1400553e0
xor eax, eax
ret

Function at 0x140055400
Capabilities:
Parse pe header

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

Function at 0x1400554c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1401ae4b0]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400554df
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400554e8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret
Function at 0x1400b6a10
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x14011beb8], rbx
je 0x1400b6a5c
cmp rax, rbx
jne 0x1400b6a4f
mov ebx, 1
mov esi, ebx
jmp 0x1400b6a61
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x1400b6a34
mov ebx, 1
mov eax, dword [0x14011bec0]
cmp eax, ebx
jne 0x1400b6a77
mov ecx, 0x1f
call fcn.1401b3000
jmp 0x1400b6adc
mov eax, dword [0x14011bec0]
test eax, eax
jne 0x1400b6ad6
mov dword [0x14011bec0], ebx
lea r15, [0x1400ca810]
lea rdi, [0x1400ca7f8]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x1400b6ac8
test eax, eax
jne 0x1400b6acc
cmp qword [rdi], 0
je 0x1400b6abd
mov rax, qword [rdi]
mov rcx, qword [0x1400ca210]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x1400b6a9e
test eax, eax
je 0x1400b6adc
mov eax, 0xff
jmp 0x1400b6bb8
mov dword [0x14011a418], ebx
mov eax, dword [0x14011bec0]
cmp eax, ebx
jne 0x1400b6b03
lea rdx, [0x1400ca7f0]
lea rcx, [0x1400ca218]
call sub.msvcrt.dll__initterm
mov dword [0x14011bec0], 2
test esi, esi
jne 0x1400b6b10
xor eax, eax
xchg qword [0x14011beb8], rax
cmp qword [0x14011bed8], 0
je 0x1400b6b44
lea rcx, [0x14011bed8]
call fcn.1400b71e0
test eax, eax
je 0x1400b6b44
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14011bed8]
mov r9, qword [0x1400ca210]
call r9
mov r8, qword [0x14011a430]
mov rdx, qword [0x14011a428]
mov ecx, dword [0x14011a420]
call fcn.1400038b0
mov dword [0x14011a414], eax
cmp dword [0x14011a438], 0
jne 0x1400b6b74
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14011a418], 0
jne 0x1400b6b89
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14011a414]
jmp 0x1400b6bb8
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400b7274
add rsp, 0x28
jmp 0x1400b6a10

Function at 0x1400b70dc
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x1400b7128
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400b7120
cmp dword [rcx + 0x3c], edx
jl 0x1400b7120
cmp dword [rcx + 0x3c], 0x10000000
jae 0x1400b7120
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x1400b7128
mov rax, rdx
add rsp, 0x18
ret