joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140004160
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x14000418d
xor eax, eax
jmp 0x1400042f9
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400041c7
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x1400041c7
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x1400042f9
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x1400042ec
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000420a
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140004235
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400042f1
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400042a4
sub eax, 1
je 0x1400042a4
cmp eax, 2
jne 0x1400042ec
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x1400042f1
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x1400042d2
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x1400042ec
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x1400042f1
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400054c0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004540
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000b040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004613
cmp byte [rcx + 0x71], 0
je 0x140004613
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000460f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400045d4
sub eax, 1
je 0x1400045d8
cmp eax, 2
jne 0x14000460f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400054c0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004606
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000460f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400045bc
xor al, al
jmp 0x1400045bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400054c0
add rsp, 0x60
pop rbx
ret

Function at 0x140006060
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400060aa
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400060aa
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400060aa
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400060aa
cmp dword [rcx + 0x84], 0xe
jbe 0x1400060aa
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x1400060ac
xor al, al
add rsp, 0x28
ret
Function at 0x140001240
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov rax, qword [0x14005d8c0]
xor rax, rsp
mov qword [rsp + 0x108], rax
mov r8d, 0x68
xor edx, edx
lea rcx, [rsp + 0x80]
call fcn.140037a20
mov dword [rsp + 0x80], 0x68
mov dword [rsp + 0xbc], 1
xor eax, eax
mov word [rsp + 0xc0], ax
mov r8d, 0x18
xor edx, edx
lea rcx, [rsp + 0x68]
call fcn.140037a20
mov rcx, qword [rsp + 0x120]
call fcn.14000fdd0
lea rcx, [rsp + 0x68]
mov qword [rsp + 0x48], rcx
lea rcx, [rsp + 0x80]
mov qword [rsp + 0x40], rcx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor r9d, r9d
xor r8d, r8d
mov rdx, rax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1400013a7
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rax, [rsp + 0x51]
mov rdi, rax
xor eax, eax
mov ecx, 1
rep stosb byte [rdi], al
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
call fcn.1400014c0
mov rcx, rax
call fcn.1400100f0
mov qword [rsp + 0x60], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x54], eax
lea rdx, [rsp + 0xf0]
lea rcx, [rsp + 0x51]
call fcn.1400013f0
mov rcx, rax
call fcn.140010370
mov rdx, rax
lea rcx, [0x14005edc0]
call fcn.140008610
mov ecx, dword [rsp + 0x54]
mov edx, ecx
mov rcx, rax
call fcn.14000c9b0
mov rcx, qword [rsp + 0x60]
mov rdx, rcx
mov rcx, rax
call fcn.140008610
lea rdx, [0x14000a6e0]
mov rcx, rax
call fcn.14000cb70
xor al, al
jmp 0x1400013cf
mov edx, 0xffffffff
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
mov rcx, qword [rsp + 0x108]
xor rcx, rsp
call fcn.140015110
add rsp, 0x110
pop rdi
ret

Function at 0x1400013f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x28
mov rax, qword [0x14005d8c0]
xor rax, rsp
mov qword [rsp + 0x18], rax
mov byte [rsp], 0x3f
mov byte [rsp + 1], 0x7c
mov byte [rsp + 2], 0x4d
mov byte [rsp + 3], 0x5a
mov byte [rsp + 4], 0x5e
mov byte [rsp + 5], 0x4b
mov byte [rsp + 6], 0x5a
mov byte [rsp + 7], 0x6f
mov byte [rsp + 8], 0x4d
mov byte [rsp + 9], 0x50
mov byte [rsp + 0xa], 0x5c
mov byte [rsp + 0xb], 0x5a
mov byte [rsp + 0xc], 0x4c
mov byte [rsp + 0xd], 0x4c
mov byte [rsp + 0xe], 0x1f
mov byte [rsp + 0xf], 0x59
mov byte [rsp + 0x10], 0x5e
mov byte [rsp + 0x11], 0x56
mov byte [rsp + 0x12], 0x53
mov byte [rsp + 0x13], 0x5a
mov byte [rsp + 0x14], 0x5b
mov byte [rsp + 0x15], 0x1f
mov byte [rsp + 0x16], 0x17
mov byte [rsp + 0x17], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x48]
mov rsi, rax
mov ecx, 0x18
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x48]
mov rcx, qword [rsp + 0x18]
xor rcx, rsp
call fcn.140015110
add rsp, 0x28
pop rdi
pop rsi
ret
Function at 0x140008050
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14005d8c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rsp], 0x5f
mov byte [rsp + 1], 0x2f
mov byte [rsp + 2], 0x30
mov byte [rsp + 3], 0x28
mov byte [rsp + 4], 0x3a
mov byte [rsp + 5], 0x2d
mov byte [rsp + 6], 0x2c
mov byte [rsp + 7], 0x37
mov byte [rsp + 8], 0x3a
mov byte [rsp + 9], 0x33
mov byte [rsp + 0xa], 0x33
mov byte [rsp + 0xb], 0x71
mov byte [rsp + 0xc], 0x3a
mov byte [rsp + 0xd], 0x27
mov byte [rsp + 0xe], 0x3a
mov byte [rsp + 0xf], 0x7f
mov byte [rsp + 0x10], 0x72
mov byte [rsp + 0x11], 0x1a
mov byte [rsp + 0x12], 0x31
mov byte [rsp + 0x13], 0x3c
mov byte [rsp + 0x14], 0x30
mov byte [rsp + 0x15], 0x3b
mov byte [rsp + 0x16], 0x3a
mov byte [rsp + 0x17], 0x3b
mov byte [rsp + 0x18], 0x1c
mov byte [rsp + 0x19], 0x30
mov byte [rsp + 0x1a], 0x32
mov byte [rsp + 0x1b], 0x32
mov byte [rsp + 0x1c], 0x3e
mov byte [rsp + 0x1d], 0x31
mov byte [rsp + 0x1e], 0x3b
mov byte [rsp + 0x1f], 0x7f
mov byte [rsp + 0x20], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x58]
mov rsi, rax
mov ecx, 0x21
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015110
add rsp, 0x38
pop rdi
pop rsi
ret

Function at 0x140008370
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rsi
push rdi
sub rsp, 0x38
mov rax, qword [0x14005d8c0]
xor rax, rsp
mov qword [rsp + 0x28], rax
mov byte [rsp], 0x72
mov byte [rsp + 1], 0x34
mov byte [rsp + 2], 0x13
mov byte [rsp + 3], 0x1b
mov byte [rsp + 4], 0x1e
mov byte [rsp + 5], 0x17
mov byte [rsp + 6], 0x16
mov byte [rsp + 7], 0x52
mov byte [rsp + 8], 6
mov byte [rsp + 9], 0x1d
mov byte [rsp + 0xa], 0x52
mov byte [rsp + 0xb], 0
mov byte [rsp + 0xc], 7
mov byte [rsp + 0xd], 0x1c
mov byte [rsp + 0xe], 0x52
mov byte [rsp + 0xf], 0x22
mov byte [rsp + 0x10], 0x1d
mov byte [rsp + 0x11], 5
mov byte [rsp + 0x12], 0x17
mov byte [rsp + 0x13], 0
mov byte [rsp + 0x14], 0x21
mov byte [rsp + 0x15], 0x1a
mov byte [rsp + 0x16], 0x17
mov byte [rsp + 0x17], 0x1e
mov byte [rsp + 0x18], 0x1e
mov byte [rsp + 0x19], 0x52
mov byte [rsp + 0x1a], 1
mov byte [rsp + 0x1b], 0x11
mov byte [rsp + 0x1c], 0
mov byte [rsp + 0x1d], 0x1b
mov byte [rsp + 0x1e], 2
mov byte [rsp + 0x1f], 6
mov byte [rsp + 0x20], 0x5c
mov byte [rsp + 0x21], 0
lea rax, [rsp]
mov rdi, qword [rsp + 0x58]
mov rsi, rax
mov ecx, 0x22
rep movsb byte [rdi], byte [rsi]
mov rax, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.140015110
add rsp, 0x38
pop rdi
pop rsi
ret
Function at 0x14000f890
Capabilities:
Write file on windows

Disassembly:
test rcx, rcx
je 0x14000f9a2
mov rax, rsp
push rsi
push rdi
push r14
sub rsp, 0x50
mov qword [rax - 0x28], 0xfffffffffffffffe
mov qword [rax + 0x10], rbx
mov rsi, rdx
mov r14, rcx
and qword [rax - 0x38], 0
mov dword [rax - 0x40], 0x80
mov dword [rax - 0x48], 2
xor r9d, r9d
mov edx, 0x40000000
lea r8d, [r9 + 1]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateFileW]
nop dword [rax + rax]
mov rbx, rax
mov qword [rsp + 0x80], rax
cmp rax, 0xffffffffffffffff
jne 0x14000f917
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov rdx, rsi
call fcn.14000f544
mov rax, qword [r14]
mov rcx, r14
mov rax, qword [rax + 0x20]
call qword [0x14001bf80]
mov rdi, rax
mov rcx, qword [r14]
mov rax, qword [rcx + 0x18]
mov rcx, r14
call qword [0x14001bf80]
mov rdx, rax
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x70]
mov r8d, edi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_WriteFile]
nop dword [rax + rax]
test eax, eax
jne 0x14000f981
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
movzx ecx, ax
or ecx, 0x80070000
test eax, eax
cmovle ecx, eax
mov rdx, rsi
call fcn.14000f544
nop
test rbx, rbx
je 0x14000f995
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov rbx, qword [rsp + 0x78]
add rsp, 0x50
pop r14
pop rdi
pop rsi
ret

Function at 0x1400171a4
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140027290], eax
call fcn.140016ef0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140027290], 0
jne case.default.0x1400171fa
mov ecx, 1
call fcn.140016ef0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
push rbp
jmp qword [rbx + 0x5b]
Function at 0x140007204
Capabilities:
Terminate thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
call fcn.140007194
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateThread]
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007240
cmp qword [rbx + 0x18], rdi
je 0x140007247
mov rbx, qword [rbx]
test rbx, rbx
jne 0x140007237
jmp 0x140007261
mov rcx, qword [rbx + 0x10]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rdx, [rbx + 0x10]
lea rcx, [0x140020640]
call fcn.1400123b8
lea rcx, [0x140021210]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
adc dword [rcx], ebx
jp 0x14003f694
invalid
sub byte [rdi + 0x47], bl
jb 0x14003f67f
pop rdi
jb 0x14003f67f
invalid
shl byte [rbx + 0x1b], 1
int3
sbb ecx, esp
idiv dword [rcx + 0x1950f23]
push rdx
mov bl, byte [rdx - 0x45f858c7]
add esi, dword [rbp + 0x3c]
invalid
cmp esi, edi
mov eax, 0xe8b27ed0
call 0x13d5f1144
jle 0x14003f66a
call 0x19b1e7da5
std
mov bl, 0x67
mov byte [rbx + 0x5b], ch
scasb al, byte [rdi]
cld
jmp 0x14003f6b6
out dx, eax
xchg ebp, eax
loope 0x14003f6d3
invalid
pop rax
invalid
add edi, dword [rdi - 0x3a]
jl 0x14003f749
cld
add al, 0x7a
jp 0x14003f6e2
jp 0x14003f6e2
retf 0x65a1
in eax, dx
mov ch, 0xb8
invalid
out dx, al
mov ah, 0x3e
invalid
int1
js 0x14003f6c6
fist dword [rsi + 0x68]
add eax, 0x3b628556
fbld tbyte [rsi + 0x28]
jl 0x14003f705
cmp ebx, edi
sub byte [rbx + rax + 0x6c], bh
insb byte [rdi], dx
mov dword [rax + 0x79], ebp
cmc
jns 0x14003f6fc
xlatb
xlatb
mov edi, 0xa58a98f7
xchg edx, eax
sub dword [rsp + rbp*2 - 0x35], esi
retf
cdq
cdq
cdq
ret
in al, 0x85
nop
scasb al, byte [rdi]
add byte [rsi + 0x3613d319], bh
std
ret

Function at 0x14000727c
Capabilities:
Create thread

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x20], rsi
push rdi
sub rsp, 0x30
lea rax, [r11 + 0x18]
mov r9, rdx
mov r8, rcx
mov qword [r11 - 0x10], rax
xor edi, edi
mov edx, 0x1000
xor ecx, ecx
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rbp, rax
test rax, rax
je 0x140007342
lea rcx, [0x140021210]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140020640]
jmp 0x140007306
lea rsi, [rbx + 0x10]
xor edx, edx
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140007303
mov rcx, qword [rsi]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rbx]
lea rcx, [0x140020640]
mov rdx, rsi
call fcn.1400123b8
jmp 0x140007306
mov rbx, qword [rbx]
test rbx, rbx
jne 0x1400072d3
mov rdx, qword [0x14001f118]
lea rcx, [0x140020640]
mov rdi, rdx
inc rdx
mov qword [0x14001f118], rdx
lea edx, [rbx + 0x20]
call fcn.140012400
lea rcx, [0x140021210]
mov qword [rax], rbp
mov qword [rax + 8], rdi
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
mov rax, rdi
add rsp, 0x30
pop rdi
ret
Function at 0x140017724
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x40
cmp dword [0x1400211b8], 0
mov r14, rdx
mov r15, rcx
lea rbx, [0x1400211c8]
jne 0x140017771
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov rcx, rbx
mov dword [0x1400211f0], eax
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x1400211b8], 1
mov ecx, dword [0x1400211f0]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbp, rax
test rax, rax
jne 0x140017846
mov rcx, qword [0x1400204cc]
lea edx, [rax + 8]
lea r8d, [rax + 0x28]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbp, rax
test rax, rax
je 0x140017871
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rax, qword [0x1400211c0]
test rax, rax
je 0x1400177c1
mov qword [rax], rbp
mov rcx, rbx
mov qword [rbp + 8], rax
mov qword [0x1400211c0], rbp
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
and dword [rsp + 0x30], 0
and dword [rsp + 0x28], 0
lea r9, [rbp + 0x20]
mov r8, rdi
mov rcx, rax
mov rdx, rbx
mov dword [rsp + 0x20], 0x100000
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
mov rdx, qword [rbp + 0x20]
lea rcx, [rbp + 0x18]
lea r8, [0x14001788c]
mov r9, rbp
mov dword [rsp + 0x28], 8
or dword [rsp + 0x20], 0xffffffff
call qword [sym.imp.KERNEL32.dll_RegisterWaitForSingleObject]
mov ecx, dword [0x1400211f0]
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
mov rcx, qword [0x1400204cc]
xor edx, edx
lea r8d, [rdx + 0x18]
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
je 0x140017871
mov qword [rax + 8], r15
mov qword [rax + 0x10], r14
mov rcx, qword [rbp + 0x10]
mov qword [rax], rcx
mov qword [rbp + 0x10], rax
mov rbx, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
add rsp, 0x40
pop r15
pop r14
pop rdi
ret

Function at 0x1400020b4
Capabilities:
Create thread

Disassembly:
mov rax, rsp
push rbx
sub rsp, 0x40
and qword [rax + 0x18], 0
xor r9d, r9d
mov qword [rax - 0x18], rdx
xor r8d, r8d
mov qword [rax - 0x20], rcx
mov edx, 0x10000000
and qword [rax - 0x28], 0
lea rcx, [rax + 0x18]
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
js 0x1400020f4
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x40
pop rbx
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c1ba0]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c1bb0]
mov dword [rax], 1
mov rax, qword [0x1400c1bc0]
mov dword [rax], 1
mov rax, qword [0x1400c1b90]
mov dword [rax], 1
mov rax, qword [0x1400c1a30]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400c1b80]
mov dword [0x1400e9020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010c0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x1400c1b40]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400c1b20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400c0e80]
cmp dword [rax], 1
je 0x140001108
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001084
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001120
cmp dx, 0x20b
jne 0x140001067
cmp dword [rax + 0x84], 0xe
jbe 0x140001067
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x140001067
lea rcx, [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x140001067
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x140001067
Function at 0x14000b410
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, 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 dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x14000b480
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400e90c4]
mov r12, rcx
test ebx, ebx
jle 0x14000b5b0
mov rax, qword [0x1400e90c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000b4cc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000b553
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000b4b0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x14000b5d2
mov rax, qword [0x1400e90c8]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rsi + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x1400e90c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b5b7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b54c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b560
add dword [0x1400e90c4], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x1400e90c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b54c
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call dbg.__report_error
nop dword [rax]
xor ebx, ebx
jmp 0x14000b4d7
mov rax, qword [0x1400e90c8]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14000ba90
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400e9120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e9100]
test rbx, rbx
je 0x14000bae4
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x14000badb
test r12, r12
je 0x14000badb
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000bac0
lea rcx, [0x1400e9120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]