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

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov eax, dword [rcx]
mov rbx, rcx
mov rsi, rdx
test rdx, rdx
je 0x1400215c8
cmp eax, 1
je 0x1400214fb
call fcn.140020410
lea rbp, [rax + 8]
mov rdi, rax
mov rcx, rbp
call fcn.14001fd40
mov r12d, dword [rbx]
test r12d, r12d
je 0x140021510
cmp r12d, 1
jne 0x1400215a0
mov rcx, rbp
call fcn.140020010
test rdi, rdi
je 0x1400214fb
mov rcx, rdi
call fcn.1400207a0
xor eax, eax
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
lea rax, [0x140020880]
mov qword [rsp + 0x28], rdi
mov qword [rsp + 0x20], rax
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
mov r12, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call r12
test rax, rax
je 0x140021608
mov rax, qword [rax + 0x18]
mov qword [rsp + 0x30], rax
lock or qword [rsp], 0
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call r12
test rax, rax
je 0x1400215f0
lea rdx, [rsp + 0x20]
mov qword [rax + 0x18], rdx
lock or qword [rsp], 0
call rsi
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call r12
test rax, rax
je 0x1400215e0
mov rdx, qword [rsp + 0x30]
mov qword [rax + 0x18], rdx
mov dword [rbx], 1
jmp 0x1400214e6
mov ecx, 2
call qword [fcn.14001e090]
mov r9d, r12d
mov r8, rbx
lea rdx, str._once__p_is__d_n
mov rcx, rax
call sub.msvcrt.dll_fprintf
jmp 0x1400214e6
mov eax, 0x16
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140020bd0
test rax, rax
jne 0x140021589
jmp 0x1400c0e75
call fcn.140020bd0
test rax, rax
jne 0x140021565
jmp 0x1400c0e8e
call fcn.140020bd0
test rax, rax
jne 0x14002153f
jmp 0x1400c0e84
mov rax, qword [rsp + 0x30]
mov qword [0], rax
ud2
mov rax, qword [pe_dos_header]
ud2
lea rax, [rsp + 0x20]
mov qword [0], rax
ud2

Function at 0x140021890
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov esi, ecx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140021908
lea rbp, [rbx + 0x68]
xor r12d, r12d
mov rcx, rbp
call fcn.140020320
cmp esi, dword [rbx + 0x48]
jae 0x1400218e3
mov rax, qword [rbx + 0x58]
cmp byte [rax + rsi], 0
je 0x1400218e3
mov rax, qword [rbx + 0x50]
mov r12, qword [rax + rsi*8]
mov rcx, rbp
call fcn.140020360
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140020bd0
mov rbx, rax
jmp 0x1400218bd
Function at 0x140021920
Capabilities:
Get thread local storage value

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
mov r12, rdx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebp, eax
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140021a20
lea r13, [rbx + 0x68]
mov rcx, r13
call fcn.140020320
cmp esi, dword [rbx + 0x48]
jae 0x1400219a0
mov rdi, qword [rbx + 0x50]
mov qword [rdi + rsi*8], r12
mov rax, qword [rbx + 0x58]
mov rcx, r13
mov byte [rax + rsi], 1
call fcn.140020360
mov ecx, ebp
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
lea r15d, [rsi + 1]
mov rcx, qword [rbx + 0x50]
movsxd r14, r15d
lea rdx, [r14*8]
call sub.msvcrt.dll_realloc
mov rdi, rax
test rax, rax
je 0x140021a2d
mov rcx, qword [rbx + 0x58]
mov rdx, r14
call sub.msvcrt.dll_realloc
mov r14, rax
test rax, rax
je 0x140021a2d
mov eax, dword [rbx + 0x48]
mov edx, r15d
sub edx, eax
lea rcx, [rdi + rax*8]
lea r8, [rdx*8]
xor edx, edx
call sub.msvcrt.dll_memset
mov ecx, dword [rbx + 0x48]
mov r8d, r15d
xor edx, edx
mov rax, rcx
add rcx, r14
sub r8d, eax
call sub.msvcrt.dll_memset
mov qword [rbx + 0x50], rdi
mov qword [rbx + 0x58], r14
mov dword [rbx + 0x48], r15d
jmp 0x14002196f
call fcn.140020bd0
mov rbx, rax
jmp 0x14002195a
mov rcx, r13
call fcn.140020360
mov eax, 0xc
jmp 0x14002198d

Function at 0x140021ab0
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021ad8
mov rax, qword [rax + 0x30]
add rsp, 0x28
ret
call fcn.140020bd0
test rax, rax
jne 0x140021aca
add rsp, 0x28
ret

Function at 0x140021b40
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021b68
add rax, 0x18
add rsp, 0x28
ret
call fcn.140020bd0
test rax, rax
jne 0x140021b5a
jmp 0x140021b5e

Function at 0x140021c80
Capabilities:
Get thread local storage value

Disassembly:
sub rsp, 0x28
mov eax, dword [0x140104dc8]
test eax, eax
jne 0x140021c98
xor eax, eax
add rsp, 0x28
ret
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021cc8
mov edx, dword [rax + 0x20]
test edx, edx
jg 0x140021c8e
test byte [rax + 0x40], 3
je 0x140021c8e
mov eax, dword [rax + 0x44]
and eax, 1
jmp 0x140021c90
call fcn.140020bd0
test rax, rax
jne 0x140021cae
jmp 0x140021c8e

Function at 0x140021ce0
Capabilities:
Get thread local storage value

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, ecx
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021d20
test ebx, ebx
jle 0x140021d10
lock add dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
lock sub dword [rax + 0x20], 1
add rsp, 0x20
pop rbx
ret
call fcn.140020bd0
test rax, rax
jne 0x140021cfd
add rsp, 0x20
pop rbx
ret
Function at 0x140021e10
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140021e88
test byte [rbx + 0x40], 0xc
jne 0x140021e3f
mov eax, dword [0x140104dc8]
test eax, eax
jne 0x140021e50
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001fd40
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140021e73
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140021e73
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140021e9c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140020010
call fcn.140020bd0
mov rbx, rax
test rax, rax
jne 0x140021e2f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140021eba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140020010
call fcn.140021d30
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140021f40
call fcn.14001faf0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140021f78
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140021fd0
test esi, esi
je 0x140021f56
call fcn.140021e10
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140021fb0
mov edx, edi
call fcn.14001fba0
call fcn.140021e10
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021fc0
call fcn.140021e10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140021e10
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140021f15
call fcn.140020bd0
mov rbx, rax
jmp 0x140021f15
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140021f2e
call fcn.140020bd0
jmp 0x140021f56
call fcn.140020bd0
mov rbx, rax
jmp 0x140021f11
Function at 0x140021ed0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140021e88
test byte [rbx + 0x40], 0xc
jne 0x140021e3f
mov eax, dword [0x140104dc8]
test eax, eax
jne 0x140021e50
add rsp, 0x28
pop rbx
pop rsi
ret
lea rsi, [rbx + 0x38]
mov rcx, rsi
call fcn.14001fd40
movzx eax, byte [rbx + 0x40]
test al, 3
je 0x140021e73
mov edx, dword [rbx + 0x44]
test dl, 1
je 0x140021e73
mov ecx, dword [rbx + 0x20]
test ecx, ecx
jle 0x140021e9c
mov rcx, rsi
add rsp, 0x28
pop rbx
pop rsi
jmp fcn.140020010
call fcn.140020bd0
mov rbx, rax
test rax, rax
jne 0x140021e2f
add rsp, 0x28
pop rbx
pop rsi
ret
and eax, 0xfffffff3
mov rcx, qword [rbx + 0x30]
and edx, 0xfffffffe
or eax, 4
mov dword [rbx + 0x44], edx
mov byte [rbx + 0x40], al
test rcx, rcx
je 0x140021eba
call qword [sym.imp.KERNEL32.dll_ResetEvent]
mov rcx, rsi
call fcn.140020010
call fcn.140021d30
nop
nop dword [rax + rax]
push rdi
push rsi
push rbx
sub rsp, 0x20
test rcx, rcx
je 0x140021f40
call fcn.14001faf0
mov rsi, rax
mov eax, 0xfffffffe
cmp rax, rsi
jb 0x140021f78
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
mov edi, esi
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140021fd0
test esi, esi
je 0x140021f56
call fcn.140021e10
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140021fb0
mov edx, edi
call fcn.14001fba0
call fcn.140021e10
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
test rax, rax
je 0x140021fc0
call fcn.140021e10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140021e10
xor eax, eax
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
mov edi, 0xffffffff
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
jne 0x140021f15
call fcn.140020bd0
mov rbx, rax
jmp 0x140021f15
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140021f2e
call fcn.140020bd0
jmp 0x140021f56
call fcn.140020bd0
mov rbx, rax
jmp 0x140021f11

Function at 0x140021fe0
Capabilities:
Get thread local storage value

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov esi, ecx
call fcn.140020b20
mov ecx, dword [0x1400d31b8]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rbx, rax
test rax, rax
je 0x140022050
test esi, esi
je 0x140022030
call fcn.140021e10
mov rcx, qword [rbx + 0x30]
test rcx, rcx
je 0x140022060
mov edx, esi
call fcn.14001fba0
call fcn.140021e10
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140021e10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.140021e10
xor eax, eax
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140020bd0
mov rbx, rax
jmp 0x140022001
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14002201a
Function at 0x140086c20
Capabilities:
Read file on windows

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov r12, qword [sym.imp.msvcrt.dll__errno]
mov rdi, rcx
mov rsi, rdx
mov ebx, r8d
mov rcx, qword [rdi]
call sub.msvcrt.dll__fileno
mov ecx, eax
mov r8d, ebx
mov rdx, rsi
call sub.msvcrt.dll__read
movsxd rbp, eax
cmp eax, 0xffffffff
je 0x140086c68
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call r12
cmp dword [rax], 4
je 0x140086c3a
mov rax, rbp
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
Function at 0x140029a40
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x140029a4d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x140029a5d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140029a45
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140029a75
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140029a62
sub eax, 3
jb 0x140029a8f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x140029ac6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140029ab6
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140029ab4
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140029aa3
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.140029a02
jmp 0x140029a4d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x14c00
mov dl, 0xe
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x140029b12
cmp rsi, rcx
jae 0x140029b1a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x140029af9
cmp al, 0x8f
ja 0x140029af9
cmp byte [rsi - 2], 0xf
je 0x140029aff
sub al, 0xe8
cmp al, 1
ja 0x140029ae3
cmp rsi, rcx
jae 0x140029b1a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x140029ae9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x140029b1a
lodsb al, byte [rsi]
jmp 0x140029af9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x27000]
mov eax, dword [rdi]
or eax, eax
je 0x140029b77
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x291dc]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140029b27
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140029b71
mov qword [rbx], rax
add rbx, 8
jmp 0x140029b47
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x140029bb1
cmp al, 0xef
ja 0x140029ba3
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x140029b83
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x140029b92
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x227]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140029c05
sub rsp, 0xffffffffffffff80
jmp 0x1400014d4
Function at 0x140001070
Capabilities:
Allocate or change rwx memory

Disassembly:
push rsi
push r14
sub rsp, 0x88
mov rax, qword [0x140005008]
xor rax, rsp
mov qword [rsp + 0x68], rax
xor esi, esi
lea rcx, str.Thisisnotthepathtosomefile
mov qword [rsp + 0x30], rsi
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
mov edx, 0x80000000
mov dword [rsp + 0x20], 3
lea r8d, [rsi + 1]
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov r14, rax
cmp rax, 0xffffffffffffffff
jne 0x1400010c8
jmp 0x14000128e
mov qword [rsp + 0x28], rsi
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], esi
mov r8d, 0x1000002
mov qword [rsp + 0x70], r15
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov qword [rsp + 0x40], rax
mov r15, rax
test rax, rax
jne 0x140001100
lea eax, [r15 - 2]
jmp 0x140001289
xor r9d, r9d
mov qword [rsp + 0x28], rsi
xor r8d, r8d
mov qword [rsp + 0x20], rsi
mov rcx, rax
lea edx, [r9 + 4]
call qword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov qword [rsp + 0x60], rax
test rax, rax
jne 0x140001131
mov eax, 0xfffffffd
jmp 0x140001289
lea rcx, str.thisisnotadynamiclinkedlibrary
mov qword [rsp + 0x78], r13
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov r13, rax
test rax, rax
jne 0x140001154
lea eax, [r13 - 4]
jmp 0x140001284
mov qword [rsp + 0x80], r12
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r12, rax
test rax, rax
jne 0x140001174
lea eax, [r12 - 5]
jmp 0x14000127c
mov qword [rsp + 0xa0], rbx
lea r8, [rsp + 0x48]
mov qword [rsp + 0xa8], rbp
mov r9d, 0x18
mov rdx, r13
mov qword [rsp + 0xb0], rdi
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_K32GetModuleInformation]
mov rbp, qword [rsp + 0x48]
movzx ebx, si
movsxd rdi, dword [rbp + 0x3c]
add rdi, rbp
cmp si, word [rdi + 6]
jae 0x14000123e
mov r15, qword [rsp + 0x60]
movzx ecx, word [rdi + 0x14]
add rcx, rdi
movzx eax, bx
lea rdx, [rax + rax*4]
lea rsi, [rcx + rdx*8]
lea rcx, [rsi + 0x18]
lea rdx, str.thisisnotthetextsection
call sub.api_ms_win_crt_string_l1_1_0.dll_strcmp
test eax, eax
jne 0x140001230
mov ecx, dword [rsi + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rsi + 0x20]
lea r8d, [rax + 0x40]
add rcx, rbp
mov dword [rsp + 0x60], eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [rsi + 0x24]
mov r8d, dword [rsi + 0x20]
lea rdx, [rax + r15]
lea rcx, [rax + rbp]
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [rsi + 0x24]
lea r9, [rsp + 0x60]
mov edx, dword [rsi + 0x20]
add rcx, rbp
mov r8d, dword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
inc bx
cmp bx, word [rdi + 6]
jb 0x1400011c1
mov r15, qword [rsp + 0x40]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rdi, qword [rsp + 0xb0]
xor eax, eax
mov rbp, qword [rsp + 0xa8]
mov rbx, qword [rsp + 0xa0]
mov r12, qword [rsp + 0x80]
mov r13, qword [rsp + 0x78]
mov r15, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
xor rcx, rsp
call fcn.1400012e0
add rsp, 0x88
pop r14
pop rsi
ret
Function at 0x140001bb4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140001bfe
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140001bfe
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140001bfe
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140001bfe
cmp dword [rcx + 0x84], 0xe
jbe 0x140001bfe
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140001c00
xor al, al
add rsp, 0x28
ret
Function at 0x401010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x00404460]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x00404470]
mov dword [rax], 1
mov rax, qword [0x00404480]
mov dword [rax], 1
mov rax, qword [0x00404450]
mov dword [rax], 1
mov rax, qword [0x00404340]
cmp word [rax], 0x5a4d
je 0x4010b0
mov rax, qword [0x00404440]
mov dword [0x00407008], edx
mov eax, dword [rax]
test eax, eax
je 0x4010a0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x00404400]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x004042f0]
cmp dword [rax], 1
je 0x4010f0
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x401075
movsxd rcx, dword [rax + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x401058
movzx ecx, word [rax + 0x18]
cmp cx, 0x10b
je 0x401103
cmp cx, 0x20b
jne 0x401058
cmp dword [rax + 0x84], 0xe
jbe 0x401058
mov ecx, dword [rax + 0xf8]
xor edx, edx
test ecx, ecx
setne dl
jmp 0x401058
lea rcx, [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x401058
mov r8d, dword [rax + 0xe8]
xor edx, edx
test r8d, r8d
setne dl
jmp 0x401058

Function at 0x4015cd
Capabilities:
Hide graphical window

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
call sym.__main
mov byte [rbp - 9], 0
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
call sym.kbhit
test eax, eax
je 0x401600
call sym.getch
mov byte [rbp - 9], al
movzx eax, byte [rbp - 9]
cmp al, 0x1b
je 0x401627
lea rax, [rbp - 9]
mov rcx, rax
call dbg.logToFile
jmp 0x401600
nop
mov eax, 0
add rsp, 0x30
pop rbp
ret
Function at 0x402700
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
je 0x402710
xor eax, eax
ret
jmp sym._ValidateImageBase.part.0

Function at 0x402720
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x402761
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
mov r8d, dword [rax + 0xc]
cmp r8, rdx
mov rcx, r8
ja 0x402758
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x402763
add rax, 0x28
cmp rax, r9
jne 0x402744
xor eax, eax
ret

Function at 0x402800
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404340]
cmp word [r8], 0x5a4d
mov rdx, rcx
jne 0x40286d
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x40286d
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x40286d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x402864
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x40286f
add rax, 0x28
cmp rax, r9
jne 0x402850
xor eax, eax
add rsp, 0x28
ret

Function at 0x402970
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r8, qword [0x00404340]
xor eax, eax
cmp word [r8], 0x5a4d
mov rdx, rcx
je 0x402990
add rsp, 0x28
ret
mov rcx, r8
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402988
movsxd rax, dword [r8 + 0x3c]
mov rcx, rdx
sub rcx, r8
add r8, rax
movzx edx, word [r8 + 6]
movzx eax, word [r8 + 0x14]
test edx, edx
lea rax, [r8 + rax + 0x18]
je 0x4029ed
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x4029e4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x4029f4
add rax, 0x28
cmp rax, r9
jne 0x4029d0
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret

Function at 0x402a10
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x00404340]
cmp word [r11], 0x5a4d
mov r9d, ecx
jne 0x402a7e
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x402a7e
movsxd rax, dword [r11 + 0x3c]
add rax, r11
mov edx, dword [rax + 0x90]
test edx, edx
je 0x402a7e
movzx ecx, word [rax + 0x14]
lea rcx, [rax + rcx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x402a7e
sub eax, 1
lea rax, [rax + rax*4]
lea rax, [rcx + rax*8 + 0x28]
mov r10d, dword [rcx + 0xc]
cmp rdx, r10
mov r8, r10
jb 0x402a75
add r8d, dword [rcx + 8]
cmp rdx, r8
jb 0x402a85
add rcx, 0x28
cmp rcx, rax
jne 0x402a60
xor eax, eax
add rsp, 0x28
ret
add rdx, r11
jne 0x402a98
jmp 0x402a7e
sub r9d, 1
add rdx, 0x14
mov ecx, dword [rdx + 4]
test ecx, ecx
jne 0x402aa6
mov eax, dword [rdx + 0xc]
test eax, eax
je 0x402a7e
test r9d, r9d
jg 0x402a90
mov eax, dword [rdx + 0xc]
add rax, r11
add rsp, 0x28
ret
Function at 0x402d10
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
lea rax, [rsp + 0x58]
mov rbx, rcx
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call sym.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sym.fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sym.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop
nop
nop
nop
nop
nop
nop