joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d054
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x770]
sub rsp, 0x870
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rbp + 0x760], rax
mov rbx, rdx
mov rdi, rcx
mov esi, 0x400
lea rcx, [rbp + 0x360]
mov r8d, esi
xor edx, edx
call sub.VCRUNTIME140.dll_memset
call fcn.14000379c
mov qword [rsp + 0x30], rbx
lea rdx, [rbp + 0x360]
xor r14d, r14d
or r15, 0xffffffffffffffff
mov qword [rsp + 0x28], r14
mov r9, r15
mov rcx, qword [rax]
mov r8d, esi
mov qword [rsp + 0x20], rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___stdio_common_vsnprintf_s]
movzx ecx, byte [rbp + 0x75f]
lea ebx, [r14 + 0x20]
test eax, eax
mov r8d, ebx
cmovs eax, r15d
test eax, eax
cmovs ecx, r14d
xor edx, edx
mov byte [rbp + 0x75f], cl
lea rcx, [rsp + 0x40]
call sub.VCRUNTIME140.dll_memset
mov edx, ebx
lea rcx, [rsp + 0x40]
call fcn.14000cfa8
lea r8, [0x1400179cc]
mov edx, ebx
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcat_s]
mov r8d, esi
lea rcx, [rsp + 0x60]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rax, r15
inc rax
cmp byte [rdi + rax], r14b
jne 0x14000d12b
cmp rax, 6
jbe 0x14000d157
lea rcx, [rdi - 6]
add rcx, rax
lea rdx, str.__08x_
call qword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
test eax, eax
mov eax, 1
je 0x14000d15a
mov eax, r14d
lea rcx, [rsp + 0x40]
mov rsi, r15
inc rsi
cmp byte [rcx + rsi], r14b
jne 0x14000d162
test eax, eax
lea rcx, [0x1400178d6]
lea rdi, str.Error:
cmove rdi, rcx
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r9, [rbp + 0x360]
mov edx, 0x3ff
mov qword [rsp + 0x38], r9
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x30], rdi
lea r9, str.P:_04d_T:_04d__s_s
mov dword [rsp + 0x28], ebx
sub rdx, rsi
add rcx, rsi
mov dword [rsp + 0x20], eax
mov r8, r15
call fcn.140003804
mov ecx, dword [rbp + 0x35b]
test eax, eax
mov edx, 0x2e2e2e
mov r8, rsi
cmovs ecx, edx
lea rdx, [rsp + 0x40]
mov dword [rbp + 0x35b], ecx
lea rcx, [rsp + 0x60]
call sub.VCRUNTIME140.dll_memcpy
lea rcx, [rsp + 0x60]
dec rcx
inc rcx
cmp byte [rcx], r14b
jne 0x14000d1f5
movzx eax, word [0x140017a3c]
mov word [rcx], ax
lea rcx, [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rbp + 0x760]
xor rcx, rsp
call fcn.14000fce0
mov rbx, qword [rsp + 0x8b0]
add rsp, 0x870
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000d66c
Capabilities:
Set registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
xor ebx, ebx
mov rsi, rdx
mov qword [rax + 0x18], rbx
mov rbp, rcx
call fcn.14000da9c
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
mov rdx, qword [0x1400234d0]
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
lea edi, [rax + 1]
lea rax, [rsp + 0x50]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000d6cc
xor eax, eax
jmp 0x14000d700
mov rcx, qword [rsp + 0x50]
mov r9d, 1
mov dword [rsp + 0x28], edi
xor r8d, r8d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
jne 0x14000d6f3
lea ebx, [rax + 1]
mov rcx, qword [rsp + 0x50]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
Function at 0x14000d9d0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov dword [rax + 0x18], r8d
push rdi
sub rsp, 0x40
xor ebx, ebx
mov dword [rax + 0x20], 1
mov qword [rax - 0x18], rbx
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.api_ms_win_crt_environment_l1_1_0.dll_getenv]
test rax, rax
je 0x14000da1b
mov edx, dword [rsp + 0x60]
mov r8, rax
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_strcpy_s]
test eax, eax
jne 0x14000da46
lea eax, [rbx + 1]
jmp 0x14000da83
mov rdx, qword [0x1400234d0]
lea rax, [rsp + 0x30]
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov rcx, 0xffffffff80000001
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x14000da4a
xor eax, eax
jmp 0x14000da83
mov rcx, qword [rsp + 0x30]
lea rax, [rsp + 0x60]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x68]
xor r8d, r8d
mov qword [rsp + 0x20], rdi
mov rdx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000da76
lea ebx, [rax + 1]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
Function at 0x14000dc8c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x1770]
mov eax, 0x1870
call fcn.14000fc70
sub rsp, rax
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rbp + 0x1760], rax
mov r14d, edx
mov rsi, rcx
mov r15d, 0x800
lea rcx, [rsp + 0x60]
xor ebx, ebx
mov r8d, r15d
xor edx, edx
mov edi, ebx
call sub.VCRUNTIME140.dll_memset
mov r8d, r15d
lea rcx, [rbp + 0x760]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x50]
mov dword [rsp + 0x40], r15d
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x1400195f0]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000de33
xor edx, edx
jmp 0x14000de02
lea rax, [rsp + 0x60]
mov rdx, r15
lea r9, [0x140019620]
mov qword [rsp + 0x20], rax
lea r8, [0x140019494]
lea rcx, [rbp + 0x760]
call fcn.140009abc
lea rax, [rsp + 0x48]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x760]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000ddf9
mov r8, r15
lea rcx, [rbp + 0xf60]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0xf60]
mov dword [rsp + 0x40], r15d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x140019650]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000ddf9
cmp dword [rsp + 0x40], ebx
jbe 0x14000ddf9
mov rcx, qword [rsp + 0x48]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
xor r8d, r8d
mov qword [rsp + 0x20], rsi
lea rdx, [0x140019660]
mov dword [rsp + 0x40], r14d
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
inc edi
mov dword [rsp + 0x40], r15d
mov edx, edi
mov rcx, qword [rsp + 0x50]
lea r9, [rsp + 0x40]
mov qword [rsp + 0x38], rbx
lea r8, [rsp + 0x60]
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x14000dd29
or rax, 0xffffffffffffffff
inc rax
cmp byte [rsi + rax], bl
jne 0x14000de37
test rax, rax
setne bl
mov eax, ebx
mov rcx, qword [rbp + 0x1760]
xor rcx, rsp
call fcn.14000fce0
mov rbx, qword [rsp + 0x18b0]
add rsp, 0x1870
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x14000f24c
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 0x10], rbx
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push rbp
lea rbp, [rax - 0x1f78]
mov eax, 0x2070
call fcn.14000fc70
sub rsp, rax
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rbp + 0x1f60], rax
mov rbx, rcx
mov qword [rsp + 0x48], rcx
mov r14d, 0x800
lea rcx, [rsp + 0x60]
mov r8d, r14d
xor edx, edx
xor edi, edi
call sub.VCRUNTIME140.dll_memset
mov r8d, r14d
lea rcx, [rbp + 0x760]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
lea rax, [rsp + 0x48]
mov dword [rsp + 0x40], r14d
mov r9d, 0x20019
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rdx, [0x14001c9c8]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000f419
and qword [rsp + 0x38], rdi
and qword [rsp + 0x30], rdi
and qword [rsp + 0x28], rdi
and qword [rsp + 0x20], rdi
xor edx, edx
jmp 0x14000f3fc
lea rax, [rsp + 0x60]
mov rdx, r14
lea r9, str.SOFTWAREJavaSoftJava_Runtime_Environment
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x760]
call fcn.140009abc
lea rax, [rsp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [rbp + 0x760]
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x14000f3db
mov r8, r14
lea rcx, [rbp + 0xf60]
xor edx, edx
call sub.VCRUNTIME140.dll_memset
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0xf60]
mov dword [rsp + 0x40], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.RuntimeLib
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000f3db
cmp dword [rsp + 0x40], eax
jbe 0x14000f3db
mov rcx, qword [rsp + 0x50]
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea r9, [rsp + 0x44]
lea rax, [rbp + 0x1760]
mov dword [rsp + 0x40], r14d
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, [0x14001caa0]
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
and qword [rsp + 0x38], 0
inc edi
and qword [rsp + 0x30], 0
mov edx, edi
and qword [rsp + 0x28], 0
and qword [rsp + 0x20], 0
mov dword [rsp + 0x40], r14d
mov rcx, qword [rsp + 0x48]
lea r9, [rsp + 0x40]
lea r8, [rsp + 0x60]
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x14000f300
lea rdx, [rbp + 0x1760]
mov rcx, rbx
call fcn.14000c874
mov rax, rbx
mov rcx, qword [rbp + 0x1f60]
xor rcx, rsp
call fcn.14000fce0
lea r11, [rsp + 0x2070]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000f45c
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
push rbp
push rdi
push r12
push r13
push r14
lea rbp, [rax - 0x7e8]
sub rsp, 0x8c0
mov qword [rbp - 0x60], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400234e8]
xor rax, rsp
mov qword [rbp + 0x7b0], rax
mov r13d, r8d
mov r12, rdx
mov r14, rcx
mov qword [rbp - 0x58], rcx
xor eax, eax
mov dword [rsp + 0x34], eax
mov qword [rsp + 0x40], rax
mov dword [rsp + 0x48], eax
mov qword [rsp + 0x50], rax
mov ebx, eax
mov qword [rbp - 0x78], rax
mov dword [rbp - 0x70], eax
mov qword [rbp - 0x68], rax
mov edi, eax
mov qword [rsp + 0x70], rax
mov dword [rsp + 0x78], eax
mov qword [rbp - 0x80], rax
mov esi, eax
mov qword [rsp + 0x58], rax
mov dword [rsp + 0x60], eax
mov qword [rsp + 0x68], rax
call fcn.14000f24c
mov dword [rsp + 0x34], 1
mov r9d, 0x20019
lea r8, str.SOFTWARE
mov rdx, 0xffffffff80000002
lea rcx, [rsp + 0x40]
call fcn.14000cba8
test eax, eax
jne 0x14000f61a
mov ebx, 0x20019
mov r9d, ebx
lea r8, str.JavaSoft
mov rdx, qword [rsp + 0x40]
lea rcx, [rbp - 0x78]
call fcn.14000cba8
test eax, eax
jne 0x14000f616
mov r9d, ebx
lea r8, str.Java_Plug_in
mov rbx, qword [rbp - 0x78]
mov rdx, rbx
lea rcx, [rsp + 0x70]
call fcn.14000cba8
mov rdi, qword [rsp + 0x70]
test eax, eax
jne 0x14000f61a
mov r9d, 0x20019
mov r8, r12
mov rdx, rdi
lea rcx, [rsp + 0x58]
call fcn.14000cba8
mov rsi, qword [rsp + 0x58]
test eax, eax
jne 0x14000f61a
mov r12d, 0x800
mov dword [rsp + 0x30], r12d
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rbp - 0x50]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x38]
xor r8d, r8d
lea rdx, str.JavaHome
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x14000f61a
mov eax, dword [rsp + 0x38]
dec eax
cmp eax, 1
ja 0x14000f61a
mov eax, dword [rsp + 0x30]
test eax, eax
je 0x14000f5dc
cmp byte [rbp + rax - 0x51], 0
je 0x14000f5e0
jmp 0x14000f61a
mov byte [rbp - 0x50], 0
xor eax, eax
test eax, eax
jne 0x14000f61a
mov r8d, r12d
lea rdx, [rbp - 0x50]
lea rcx, [rbp - 0x50]
test r13d, r13d
je 0x14000f60e
call qword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test eax, eax
je 0x14000f61a
lea rdx, [rbp - 0x50]
mov rcx, r14
call fcn.14000f68c
jmp 0x14000f61a
call qword [sym.imp.KERNEL32.dll_GetLongPathNameA]
jmp 0x14000f5fc
mov rbx, qword [rbp - 0x78]
test rsi, rsi
je 0x14000f629
mov rcx, rsi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rdi, rdi
je 0x14000f638
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
test rbx, rbx
je 0x14000f647
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop
cmp qword [rsp + 0x40], 0
je 0x14000f65a
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, r14
mov rcx, qword [rbp + 0x7b0]
xor rcx, rsp
call fcn.14000fce0
lea r11, [rsp + 0x8c0]
mov rbx, qword [r11 + 0x40]
mov rsi, qword [r11 + 0x48]
mov rsp, r11
pop r14
pop r13
pop r12
pop rdi
pop rbp
ret
Function at 0x18000101c
Capabilities:
Encode data using xor

Disassembly:
push r14
push rsi
push rdi
push rbx
sub rsp, 0x98
mov rax, qword [0x180046a40]
xor rax, rsp
mov qword [rsp + 0x90], rax
movabs rax, 0x6c6c642e7364
lea rcx, [rsp + 0x80]
mov qword [rcx + 6], rax
movabs rax, 0x7364657669746361
mov qword [rcx], rax
mov rdi, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rdi
mov rsi, rax
movabs rax, 0x6c6c642e32336c
lea rcx, [rsp + 0x70]
mov qword [rcx + 5], rax
movabs rax, 0x32336c656e72654b
mov qword [rcx], rax
call rdi
mov rdi, rax
movabs rax, 0x6d654d734441
lea rdx, [rsp + 0x60]
mov qword [rdx + 7], rax
movabs rax, 0x41636f6c6c616552
mov qword [rdx], rax
mov r14, qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rsi
call r14
mov rbx, rax
movaps xmm0, xmmword [str.VirtualProtect]
lea rdx, [rsp + 0x50]
movaps xmmword [rdx], xmm0
mov rcx, rdi
call r14
mov rsi, rax
movaps xmm0, xmmword [str.EnumCalendarInfoA]
lea rdx, [rsp + 0x30]
movaps xmmword [rdx], xmm0
mov dword [rdx + 0xf], 0x416f
mov rcx, rdi
call r14
mov rdi, rax
xor r14d, r14d
xor ecx, ecx
mov edx, 0x43a04
mov r8d, 0x43a04
call rbx
mov rbx, rax
lea rax, section..data
xor byte [r14 + rax], 0xaa
inc r14
cmp r14, 0x43a04
jne 0x180001111
xor ecx, ecx
xor byte [rcx + rax], 0xbb
inc rcx
cmp rcx, 0x43a04
jne 0x180001124
lea rdx, section..data
mov ecx, 0x43a04
mov r8, rbx
call section..text
lea r9, [rsp + 0x2c]
mov edx, 0x43a04
mov rcx, rbx
mov r8d, 0x40
call rsi
mov rcx, rbx
mov edx, 0x800
mov r8d, 0xffffffff
mov r9d, 1
call rdi
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.1800011b0
xor eax, eax
add rsp, 0x98
pop rbx
pop rdi
pop rsi
pop r14
ret
Function at 0x2fc4d2620
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.2fc4d3700
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x2fc4d3022
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x2fc4f5108]
test eax, eax
je 0x2fc4d30ba
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x2fc4f5110]
mov qword [rbp - 8], rax
jmp 0x2fc4d309e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x2fc4d3092
cmp qword [rbp - 0x10], 0
je 0x2fc4d3092
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x2fc4d3058
lea rax, [0x2fc4f50e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x2fc4d30bb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x2fc4d31c0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x2fc4d31e8
mov eax, 0
jmp 0x2fc4d3236
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x2fc4d3211
mov eax, 0
jmp 0x2fc4d3236
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x2fc4d3231
mov eax, 0
jmp 0x2fc4d3236
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x140042490]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400424a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.140021d80
jmp 0x14000123c
mov rax, qword [0x1400424a0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400424a0]
mov dword [rax], 1
mov rax, qword [0x1400424e0]
mov rdx, rax
mov rax, qword [0x1400424d0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x140046024], 1
mov rax, qword [0x1400424a0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400424c0]
mov rdx, rax
mov rax, qword [0x1400424b0]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400424a0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x140042490]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [0x1400423e0]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [0x1400423e0]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.140021008
mov rax, qword [0x140042520]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x140042480]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140020800
mov eax, dword [0x140046004]
lea rdx, [0x140046008]
mov ecx, eax
call fcn.14000147c
call fcn.140020597
mov rax, qword [0x140042410]
mov rax, qword [rax]
mov rdx, qword [0x140046010]
mov qword [rax], rdx
mov rcx, qword [0x140046010]
mov rdx, qword [0x140046008]
mov eax, dword [0x140046004]
mov r8, rcx
mov ecx, eax
call fcn.1400016d0
mov dword [0x14004601c], eax
mov eax, dword [0x140046020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x14004601c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x140046024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x14004601c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140042440]
mov dword [rax], 1
mov rax, qword [0x140042450]
mov dword [rax], 1
mov rax, qword [0x140042460]
mov dword [rax], 1
mov rax, qword [0x140042400]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140020810
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140021b70
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x1400214e2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140046168]
test eax, eax
je 0x14002157a
lea rax, [0x140046140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140046170]
mov qword [rbp - 8], rax
jmp 0x14002155e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140021552
cmp qword [rbp - 0x10], 0
je 0x140021552
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140021518
lea rax, [0x140046140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002157b
nop
add rsp, 0x30
pop rbp
ret