joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003f540
Capabilities:
Encode data using base64

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r12
sub rsp, 0x50
mov r12, r9
mov rsi, r8
mov rbx, rdx
mov rdi, rcx
test r8, r8
jne 0x14003f56d
xor al, al
jmp 0x14003f6cf
mov rax, qword [0x14005f6c0]
lea rcx, [rsp]
xor r11d, r11d
mov qword [rcx], rax
mov rax, qword [0x14005f6c8]
mov qword [rsp + 0x60], rbp
mov qword [rcx + 8], rax
mov rax, qword [0x14005f6d0]
mov rdx, r11
mov qword [rcx + 0x10], rax
mov rax, qword [0x14005f6d8]
mov qword [rcx + 0x18], rax
mov rax, qword [0x14005f6e0]
mov qword [rcx + 0x20], rax
mov rax, qword [0x14005f6e8]
mov qword [rcx + 0x28], rax
mov rax, qword [0x14005f6f0]
mov qword [rcx + 0x30], rax
mov rax, qword [0x14005f6f8]
mov qword [rcx + 0x38], rax
movzx eax, byte [0x14005f700]
mov byte [rcx + 0x40], al
mov rax, qword [r9]
mov rcx, r8
lea rbp, [r8 + rax]
test rbx, rbx
je 0x14003f6c1
add r8, 4
nop word [rax + rax]
movzx r9d, byte [rdx + rdi]
inc rdx
shl r9d, 0x10
cmp rdx, rbx
jne 0x14003f619
mov r11d, 2
jmp 0x14003f63d
movzx eax, byte [rdx + rdi]
inc rdx
shl eax, 8
or r9d, eax
cmp rdx, rbx
jne 0x14003f633
mov r11d, 1
jmp 0x14003f63d
movzx eax, byte [rdx + rdi]
or r9d, eax
inc rdx
mov r10d, r9d
and r9d, 0x3f
cmp r8, rbp
ja 0x14003f6e5
mov rax, r10
shr rax, 0x12
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx], al
mov rax, r10
shr rax, 0xc
and eax, 0x3f
movzx eax, byte [rsp + rax]
mov byte [rcx + 1], al
cmp r11, 1
jbe 0x14003f682
mov byte [rcx + 2], 0x3d
add rcx, 3
add r8, 3
jmp 0x14003f69a
shr r10, 6
add rcx, 3
and r10d, 0x3f
add r8, 3
movzx eax, byte [rsp + r10]
mov byte [rcx - 1], al
test r11, r11
je 0x14003f6aa
mov byte [rcx], 0x3d
inc rcx
inc r8
jmp 0x14003f6b8
movzx eax, byte [rsp + r9]
inc rcx
inc r8
mov byte [rcx - 1], al
cmp rdx, rbx
jb 0x14003f600
sub rcx, rsi
mov al, 1
mov qword [r12], rcx
mov rbp, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rdi, qword [rsp + 0x78]
add rsp, 0x50
pop r12
ret
xor al, al
jmp 0x14003f6ca
Function at 0x1408c80a6
Capabilities:
Execute anti-debugging instructions

Disassembly:
bswap edx
cmp r15d, r12d
clc
neg edx
push rbp
sar bpl, 0xd5
sbb bp, 0x4f4c
xor dword [rsp], edx
shrd bp, bp, 0xec
pop rbp
clc
movsxd rdx, edx
clc
jmp 0x1408198ab
add r10, rdx
jmp r10
push rdx
cqo
movsx rdx, r9w
push rdi
movzx rdx, bx
not dl
movzx r8d, r12w
push rbx
push r13
mov r8w, 0x1987
push rax
push r10
rdtsc
push rcx
cbw
cwde
rdtsc
push r12
setne dh
movsx r10w, dil
mov rdi, rsi
push rsi
bswap edi
cwd
push rbp
movzx ebp, r10w
cwde
movabs rdx, 0
movsx ax, r9b
xchg bpl, r10b
jmp 0x140841fe7
push rdx
lahf
movsx ebp, dx
mov dil, 0xc4
mov rbx, qword [rsp + 0x90]
dec ebx
rcr rbp, cl
rol ebx, 1
cwde
rol r10w, cl
sal rax, 0x83
xor ebx, 0x781c16d5
cdqe
adc rax, 0x3ba2594a
add ebx, 0x226710ea
ror ebx, 1
and bpl, spl
movsx bp, r13b
test r8w, 0x1fe2
add rbx, rdx
adc rdi, r11
cmovg rdi, r11
bsf r10w, di
movabs rax, 0x100000000
bts r10, r13
bswap r10w
shr dil, 0x94
lea rbx, [rbx + rax]
mov rdi, rsp
bt r10w, bp
cdq
xchg dx, dx
sub rsp, 0x180
xadd r10w, dx
btc r10, 0x94
rcl r10d, 0x6e
and rsp, 0xfffffffffffffff0
sal r10b, 0x31
shl bpl, 0x6c
cmc
mov rbp, rbx
movabs r8, 0
test di, r9w
sub rbp, r8
test sil, 0xb4
seto r10b
lea r10, [0x1408420a2]
xor dx, 0x724
mov edx, dword [rbx]
cmp r9b, r12b
stc
test spl, 0xe3
add rbx, 4
xor edx, ebp
cmc
add edx, 0x17532dee
jmp 0x14084f8dc
push r8
movsx r8, r15w
bswap r8
jmp 0x140824ae8
rol edx, 1
dec edx
jmp 0x14079a597
push r11
jmp 0x14084cbbb
push r15
jmp 0x1408865d1
push r14
jmp 0x1408824ad
pushfq
push r9
jmp 0x1408837d0

Function at 0x1412dda84
Capabilities:
Execute anti-debugging instructions

Disassembly:
push r8
movsx r8, r15w
bswap r8
jmp 0x1412d4492
push r11
jmp 0x141279cf5
push r15
jmp 0x1412cfda8
bswap edx
cmp r15d, r12d
clc
neg edx
push rbp
sar bpl, 0xd5
sbb bp, 0x4f4c
xor dword [rsp], edx
shrd bp, bp, 0xec
pop rbp
clc
movsxd rdx, edx
clc
jmp 0x14136323e
push r14
jmp 0x14127b48b
push rdx
cqo
movsx rdx, r9w
push rdi
movzx rdx, bx
not dl
movzx r8d, r12w
push rbx
push r13
mov r8w, 0x1987
push rax
push r10
rdtsc
push rcx
cbw
cwde
rdtsc
push r12
setne dh
movsx r10w, dil
mov rdi, rsi
push rsi
bswap edi
cwd
push rbp
movzx ebp, r10w
cwde
movabs rdx, 0
movsx ax, r9b
xchg bpl, r10b
jmp 0x14132dd39
pushfq
push r9
jmp 0x1412a59a4
rol edx, 1
dec edx
jmp 0x1412a6f8c
push rdx
lahf
movsx ebp, dx
mov dil, 0xc4
mov rbx, qword [rsp + 0x90]
dec ebx
rcr rbp, cl
rol ebx, 1
cwde
rol r10w, cl
sal rax, 0x83
xor ebx, 0x781c16d5
cdqe
adc rax, 0x3ba2594a
add ebx, 0x226710ea
ror ebx, 1
and bpl, spl
movsx bp, r13b
test r8w, 0x1fe2
add rbx, rdx
adc rdi, r11
cmovg rdi, r11
bsf r10w, di
movabs rax, 0x100000000
bts r10, r13
bswap r10w
shr dil, 0x94
lea rbx, [rbx + rax]
mov rdi, rsp
bt r10w, bp
cdq
xchg dx, dx
sub rsp, 0x180
xadd r10w, dx
btc r10, 0x94
rcl r10d, 0x6e
and rsp, 0xfffffffffffffff0
sal r10b, 0x31
shl bpl, 0x6c
cmc
mov rbp, rbx
movabs r8, 0
test di, r9w
sub rbp, r8
test sil, 0xb4
seto r10b
lea r10, [0x14132ddf4]
xor dx, 0x724
mov edx, dword [rbx]
cmp r9b, r12b
stc
test spl, 0xe3
add rbx, 4
xor edx, ebp
cmc
add edx, 0x17532dee
jmp 0x14132b379
add r10, rdx
jmp r10
Function at 0x18000e920
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x180057410]
xor rax, rsp
mov qword [rbp - 0x10], rax
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x19], 0x6c642e32
mov word [rbp - 0x15], 0x6c
mov dword [rbp - 0x1f], 0x656e7265
mov word [rbp - 0x1b], 0x336c
mov byte [rbp - 0x20], 0x4b
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180010ac0
add rsp, 0x40
pop rbp
ret

Function at 0x18000e97c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [0x180057410]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov esi, edx
mov edi, ecx
or rbx, 0xffffffffffffffff
mov dword [rbp - 0x1c], 0x746f6873
mov dword [rbp - 0x2e], 0x65746165
mov word [rbp - 0x22], 0x3233
mov word [rbp - 0x28], 0x6c6f
mov word [rbp - 0x30], 0x7243
mov word [rbp - 0x25], 0x6c65
mov word [rbp - 0x1f], 0x616e
mov word [rbp - 0x2a], 0x6f54
mov byte [rbp - 0x26], 0x68
mov byte [rbp - 0x1d], 0x70
mov byte [rbp - 0x18], 0
mov byte [rbp - 0x23], 0x70
mov byte [rbp - 0x20], 0x53
call fcn.18000e920
lea rdx, [rbp - 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000ea07
mov edx, esi
mov ecx, edi
call rax
mov rbx, rax
mov rax, rbx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180010ac0
mov rbx, qword [rsp + 0x80]
add rsp, 0x50
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000ea28
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x180057410]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov dword [rbp - 0x1d], 0x33646165
mov word [rbp - 0x17], 0x7269
mov word [rbp - 0x14], 0x74
mov word [rbp - 0x19], 0x4632
mov word [rbp - 0x1f], 0x7268
mov byte [rbp - 0x20], 0x54
mov byte [rbp - 0x15], 0x73
call fcn.18000e920
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000ea95
mov rdx, rsi
mov rcx, rdi
call rax
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180010ac0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x18000eab0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rax, qword [0x180057410]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov rsi, rdx
mov rdi, rcx
xor ebx, ebx
mov word [rbp - 0x19], 0x4e32
mov word [rbp - 0x1c], 0x6461
mov dword [rbp - 0x17], 0x747865
mov byte [rbp - 0x1a], 0x33
mov word [rbp - 0x1f], 0x7268
mov byte [rbp - 0x1d], 0x65
mov byte [rbp - 0x20], 0x54
call fcn.18000e920
lea rdx, [rbp - 0x20]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x18000eb1b
mov rdx, rsi
mov rcx, rdi
call rax
mov ebx, eax
mov eax, ebx
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.180010ac0
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x18000f36c
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
lea rbp, [rsp - 0x50]
sub rsp, 0x150
mov rax, qword [0x180057410]
xor rax, rsp
mov qword [rbp + 0x40], rax
cmp edx, 1
jne 0x18000f44e
lea rdx, [rsp + 0x30]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea rcx, [rsp + 0x30]
mov edx, 0x104
call fcn.1800122d0
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x30]
mov dword [rsp + 0x26], 0x75732074
mov dword [rsp + 0x2c], 0x74726f
mov dword [rsp + 0x21], 0x6174736e
mov word [rsp + 0x2a], 0x7070
mov byte [rsp + 0x20], 0x69
mov byte [rsp + 0x25], 0x6e
call fcn.180012048
test rax, rax
jne 0x18000f482
lea rdx, [sym.gphelper.dll_HookSetWindowPos]
lea rcx, [0x180058ad8]
call fcn.18001014c
test eax, eax
je 0x18000f482
lea rdx, [sym.gphelper.dll_HookSetForegroundWindow]
lea rcx, [0x180058a60]
call fcn.18001014c
test eax, eax
je 0x18000f482
lea rdx, [sym.gphelper.dll_HookSetActiveWindow]
lea rcx, [0x180058cf8]
call fcn.18001014c
test eax, eax
je 0x18000f482
lea rdx, [sym.gphelper.dll_HookBringWindowToTop]
lea rcx, [0x180058bb0]
call fcn.18001014c
jmp 0x18000f482
test edx, edx
jne 0x18000f482
lea rcx, [0x180058ad8]
call fcn.180010404
lea rcx, [0x180058a60]
call fcn.180010404
lea rcx, [0x180058cf8]
call fcn.180010404
lea rcx, [0x180058bb0]
call fcn.180010404
mov eax, 1
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.180010ac0
add rsp, 0x150
pop rbp
ret
Function at 0x180010404
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov rsi, rcx
xor edi, edi
call fcn.180010100
lea r12, [0x180058d60]
xor r8d, r8d
mov rdx, r12
mov rbx, qword [rdx]
test rbx, rbx
je 0x18001043e
lea rax, [rbx + 0x38]
cmp rax, qword [rsi]
je 0x18001044d
inc r8d
add rdx, 8
cmp r8d, 0x40
jb 0x18001042d
xor ebx, ebx
test rbx, rbx
je 0x18001050c
mov edx, dword [rbx + 8]
mov rcx, qword [rbx]
call fcn.180010708
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
and dword [rsp + 0x58], edi
mov rbp, rax
lea rax, [rsp + 0x58]
mov r9d, 0x40
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
test eax, eax
je 0x180010507
mov r8, qword [rbx]
xor edx, edx
cmp dword [rbx + 8], edx
jbe 0x1800104ab
mov al, byte [rdx + rbx + 0x58]
mov byte [rdx + r8], al
inc edx
cmp edx, dword [rbx + 8]
jb 0x18001049c
mov r8d, dword [rbx + 8]
mov rdx, qword [rbx]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov r8d, dword [rbx + 8]
mov r9d, dword [rsp + 0x58]
mov rdx, qword [rbx]
lea rax, [rsp + 0x58]
mov rcx, rbp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_VirtualProtectEx]
mov rax, qword [rbx]
mov qword [rsi], rax
mov edi, 1
mov rcx, r12
xor eax, eax
cmp qword [rcx], rbx
je 0x1800104fc
inc eax
add rcx, 8
cmp eax, 0x40
jb 0x1800104ea
jmp 0x180010507
and qword [r12 + rax*8], 0
dec dword [0x180058d24]
call fcn.180010530
lea rcx, [0x180058d38]
call qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x60]
mov eax, edi
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret

Function at 0x180010530
Capabilities:
Resume thread

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov esi, eax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, ILFindLastID
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetThreadPriority]
xor edi, edi
cmp dword [0x180058d30], edi
jbe 0x18001059a
mov rcx, qword [0x180058d28]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_ResumeThread]
mov rcx, qword [0x180058d28]
mov rcx, qword [rcx + rdi*8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
inc edi
cmp edi, dword [0x180058d30]
jb case.default.0x1800105cf
mov rcx, qword [0x180058d28]
call fcn.180012f4c
and qword [0x180058d28], 0
and dword [0x180058d30], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov edx, esi
mov rcx, rax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp qword [sym.imp.KERNEL32.dll_SetThreadPriority]
Function at 0x180010618
Capabilities:
Resume thread
Suspend thread

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x500
mov rax, qword [0x180057410]
xor rax, rsp
mov qword [rsp + 0x4f0], rax
mov ebp, r8d
mov rsi, rdx
mov r8d, ecx
mov ecx, 0x1fffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_OpenThread]
mov rbx, rax
lea rcx, [rax - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x1800106dc
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SuspendThread]
mov rcx, rbx
cmp eax, 0xffffffff
je 0x1800106d4
mov dword [rsp + 0x50], 0x100001
xor edi, edi
jmp 0x1800106c0
cmp qword [rsp + 0x118], rsi
jb 0x1800106dc
lea rax, [rsi + rbp]
cmp qword [rsp + 0x118], rax
jae 0x1800106dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp edi, 3
jge 0x1800106d1
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_SuspendThread]
inc edi
mov rcx, rbx
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_GetThreadContext]
test eax, eax
jne 0x180010681
jmp 0x1800106dc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov rax, rbx
mov rcx, qword [rsp + 0x4f0]
xor rcx, rsp
call fcn.180010ac0
lea r11, [rsp + 0x500]
mov rbx, qword [r11 + 0x18]
mov rbp, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret

Function at 0x1800108b8
Capabilities:
Get system information on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r14
sub rsp, 0x80
xor edi, edi
cmp dword [0x180058d24], 0x40
jae 0x1800109e8
lea rbx, [rcx + rdx]
add rcx, r8
mov rbp, 0xfffffffffff80000
lea rax, [rcx + 0x7ff80000]
cmp rcx, 0xffffffff80000000
lea r8d, [rdi + 0x2c]
cmovb rbp, rax
and dword [rsp + 0x50], edi
lea rcx, [r11 - 0x34]
xor edx, edx
call fcn.180011460
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, 0x80000000
lea rsi, [rbx - 0x7fff0000]
cmp rbx, rax
lea r14d, [rdi + 1]
cmovb rsi, r14
cmp rsi, rbp
jae 0x1800109e8
lea rdx, [rsp + 0x20]
mov r8d, 0x30
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1800109b8
cmp dword [rsp + 0x40], 0x10000
jne 0x1800109a6
mov rax, qword [rsp + 0x38]
cmp rax, 0x78
jb 0x1800109ab
mov edx, dword [rsp + 0x78]
mov ecx, edx
cmp rax, rdx
jb 0x1800109ab
lea eax, [rdx - 1]
xor edx, edx
mov r8d, 0x3000
add rax, rsi
div rcx
mov edx, 0x78
lea r9d, [rdx - 0x58]
imul rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rdi, rax
test rax, rax
jne 0x1800109bd
mov rax, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x20]
add rsi, rax
cmp rsi, rbp
jb 0x180010941
test rdi, rdi
je 0x1800109e8
lea rdx, [0x180058d60]
xor eax, eax
mov rcx, rdx
cmp qword [rcx], 0
je 0x1800109dd
add eax, r14d
add rcx, 8
cmp eax, 0x40
jb 0x1800109c9
jmp 0x1800109e8
add dword [0x180058d24], r14d
mov qword [rdx + rax*8], rdi
lea r11, [rsp + 0x80]
mov rax, rdi
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14000f780]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14000f790]
mov dword [rax], 1
mov rax, qword [0x14000f7a0]
mov dword [rax], 1
mov rax, qword [0x14000f770]
mov dword [rax], 1
mov rax, qword [0x14000f600]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x14000f760]
mov dword [0x140012020], 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 [0x14000f720]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14000f700]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14000f5b0]
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 0x1400022e0
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 0x140002350
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400120b4]
mov r12, rcx
test ebx, ebx
jle 0x140002480
mov rax, qword [0x1400120b8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000239c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x140002423
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x140002380
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x1400024a2
mov rax, qword [0x1400120b8]
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 [0x1400120b8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140002487
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000241c
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140002430
add dword [0x1400120b4], 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 [0x1400120b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000241c
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 0x1400023a7
mov rax, qword [0x1400120b8]
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 0x140002960
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140012120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140012100]
test rbx, rbx
je 0x1400029b4
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 0x1400029ab
test r12, r12
je 0x1400029ab
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002990
lea rcx, [0x140012120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002bd0
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140002be8
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
je 0x140002bf0
ret
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140002c00
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
mov r8, rdx
lea rdx, [rax + rcx]
movzx eax, word [rdx + 0x14]
lea rax, [rdx + rax + 0x18]
movzx edx, word [rdx + 6]
test edx, edx
je 0x140002c4c
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov ecx, dword [rax + 0xc]
mov rdx, rcx
cmp rcx, r8
ja 0x140002c43
add edx, dword [rax + 8]
cmp rdx, r8
ja 0x140002c4e
add rax, 0x28
cmp rax, r9
jne 0x140002c30
xor eax, eax
ret

Function at 0x140002c50
Capabilities:
Parse pe header

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x20
mov rbx, rcx
call sym.strlen
cmp rax, 8
ja 0x140002ce0
mov rdx, qword [0x14000f600]
xor r12d, r12d
cmp word [rdx], 0x5a4d
jne 0x140002cce
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x140002cce
cmp word [rax + 0x18], 0x20b
jne 0x140002cce
movzx edx, word [rax + 0x14]
lea r12, [rax + rdx + 0x18]
movzx eax, word [rax + 6]
test eax, eax
je 0x140002ce0
sub eax, 1
lea rax, [rax + rax*4]
lea rsi, [r12 + rax*8 + 0x28]
jmp 0x140002cb9
add r12, 0x28
cmp r12, rsi
je 0x140002ce0
mov r8d, 8
mov rdx, rbx
mov rcx, r12
call sym.strncmp
test eax, eax
jne 0x140002cb0
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret
xor r12d, r12d
mov rax, r12
add rsp, 0x20
pop rbx
pop rsi
pop r12
ret

Function at 0x140002cf0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x14000f600]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002d10
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002d18
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002d10
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x140002d65
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x140002d5c
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002d10
add rax, 0x28
cmp rax, r9
jne 0x140002d48
xor eax, eax
ret

Function at 0x140002d70
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14000f600]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002d90
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002d98
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x140002d90
movzx r8d, word [rax + 6]
mov eax, r8d
ret