joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140022078
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x20
mov rsi, rcx
test rcx, rcx
jne 0x1400220aa
call fcn.140016af4
mov dword [rax], 0x16
call fcn.140010b74
jmp 0x1400221c9
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x1400221c9
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x1400221c9
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x1400220d9
lock or dword [rcx + 0x14], 0x10
jmp 0x1400221c9
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x1400220ed
call fcn.1400236dc
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.14001fa84
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.140022e58
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x1400221b7
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x140022182
mov rcx, rsi
call fcn.14001fa84
cmp eax, edi
je 0x14002216d
mov rcx, rsi
call fcn.14001fa84
cmp eax, 0xfffffffe
je 0x14002216d
mov rcx, rsi
call fcn.14001fa84
movsxd rbx, eax
lea r14, [0x14004c660]
mov rcx, rsi
sar rbx, 6
call fcn.14001fa84
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x140022174
lea rdx, [0x14004a3e0]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x140022182
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x1400221a6
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x1400221a6
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x1400221a6
mov dword [rsi + 0x20], 0x1000
mov rax, qword [rsi]
add dword [rsi + 0x10], edi
movzx edi, byte [rax]
inc rax
mov qword [rsi], rax
jmp 0x1400221cc
neg eax
sbb eax, eax
and eax, 8
add eax, 8
lock or dword [rsi + 0x14], eax
and dword [rsi + 0x10], 0
or edi, 0xffffffff
mov rbx, qword [rsp + 0x30]
mov eax, edi
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop r14
ret
Function at 0x1400224f4
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.14000a8b0
sub rsp, rax
mov rax, qword [0x14004a030]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001fa84
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140022543
mov rax, rbp
jmp 0x14002264b
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x140000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x4c660]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140023630
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x4c660]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140022647
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140022647
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140023630
test rax, rax
js 0x140022647
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140022647
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140022639
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140022639
cmp byte [rcx], 0xd
jne 0x14002261f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14002262e
cmp byte [rcx + 1], 0xa
jne 0x14002262e
inc rcx
jmp 0x14002262e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x4a430]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140022601
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14002264b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000a400
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400229ac
Capabilities:
Read file on windows

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x14004c660]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x140022a0a
cmp word [rdx], r12w
jne 0x140022a0a
or byte [rax + r8*8 + 0x38], cl
jmp 0x140022a10
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x140022b6b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x140022b46
lea r9, [rcx + 2]
cmp ax, r13w
je 0x140022a49
mov rcx, r9
jmp 0x140022a6c
cmp r9, rdx
jae 0x140022a83
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x140022a2d
jmp 0x140022b6b
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140022b40
cmp dword [rsp + 0x80], edi
je 0x140022b40
mov rdx, r14
lea r11, [0x14004c660]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x140022b19
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x140022aec
mov word [rbx], r12w
jmp 0x140022b67
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x140022af5
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140022b67
cmp word [rsp + 0x70], r12w
jne 0x140022b26
cmp rbx, rsi
je 0x140022ae6
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.140023638
cmp word [rsp + 0x70], r12w
je 0x140022b6b
mov word [rbx], r13w
jmp 0x140022b67
lea r11, [0x14004c660]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140022b63
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x140022b6b
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x140024ea4
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x140024f2b
mov rsi, rbx
cmp word [rax], bp
je 0x140024eea
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140024ed4
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140024ed0
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001d6e8
mov rdi, rax
test rax, rax
je 0x140024f18
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000c320
mov rbp, rdi
xor ecx, ecx
call fcn.14001d6ac
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14002f8d0
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x14002f90c
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000b2bc
test rax, rax
jne 0x14002f923
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x14002f8f8
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x14002f913
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push rbp
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov eax, 0x77
mov dword [rbp - 0x20], 0x1f0005
lea rcx, [rbp - 0x20]
mov word [rbp - 0xc], ax
mov dword [rbp - 0x1c], 0xf0030
mov dword [rbp - 0x18], 0x26000e
mov dword [rbp - 0x14], 0x17002f
mov dword [rbp - 0x10], 0x3f0009
call fcn.140007b44
mov rcx, qword [rax]
call 0x14002f8d0
mov qword [0x14004cc90], rax
lea rcx, [rbp - 0x20]
mov eax, 0x5a
mov dword [rbp - 0x20], 0x1f0005
mov word [rbp - 0x10], ax
mov dword [rbp - 0x1c], 0xf0030
mov dword [rbp - 0x18], 0x26000e
mov dword [rbp - 0x14], 0x64005e
call fcn.14000658c
mov rcx, qword [rax]
call 0x14002f8d0
lea rcx, [rbp - 0x20]
mov qword [0x14004cc80], rax
mov dword [rbp - 0x20], 0x2e0020
mov dword [rbp - 0x1c], 0x2d0006
mov dword [rbp - 0x18], 0x6a0027
call fcn.140007ac8
mov rcx, qword [rax]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop rbp
jmp 0x14002f8d0
Function at 0x1400305a4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
mov rbp, rsp
sub rsp, 0x40
mov rbx, qword [0x14004cc98]
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x32001d
mov dword [rbp - 0x1c], 0x2d0007
mov dword [rbp - 0x18], 0x590027
mov dword [rbp - 0x14], 0x78005f
mov dword [rbp - 0x10], 0x16003e
mov dword [rbp - 0xc], 0x65001b
call fcn.1400072e4
mov rcx, qword [rax]
call rbx
mov rbx, qword [0x14004cc98]
lea rcx, [rbp - 0x20]
mov qword [0x14004cc78], rax
mov dword [rbp - 0x20], 0x330019
mov dword [rbp - 0x1c], 0x28000c
mov dword [rbp - 0x18], 0xf0025
mov dword [rbp - 0x14], 0x780019
mov dword [rbp - 0x10], 0x16003e
mov dword [rbp - 0xc], 0x65001b
call fcn.1400072e4
mov rcx, qword [rax]
call rbx
movdqa xmm0, xmmword [0x1400438c0]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14004cc88], rax
mov word [rbp - 0x10], 0x33
mov byte [rbp - 0xe], 0x44
call fcn.1400078bc
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x2d07321d
mov dword [rbp - 0x1c], 0x33152f27
mov dword [rbp - 0x18], 0x30f39
mov word [rbp - 0x14], 0x691a
call fcn.140007408
lea rcx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x24163407
mov dword [rbp - 0x1c], 0x22080439
mov dword [rbp - 0x18], 0xb120a15
mov word [rbp - 0x14], 0x690c
call fcn.140007408
mov rcx, qword [0x14004cc88]
mov rdx, qword [rax]
call fcn.140033698
movdqa xmm0, xmmword [0x140043990]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14004cbf0], rax
mov byte [rbp - 0x10], 0x45
call fcn.140007810
mov rcx, qword [0x14004cc88]
mov rdx, qword [rax]
call fcn.140033698
movdqa xmm0, xmmword [0x140043920]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14004cbf8], rax
mov dword [rbp - 0x10], 0x4d213b21
call fcn.1400070ec
mov rcx, qword [0x14004cc88]
mov rdx, qword [rax]
call fcn.140033698
movdqa xmm0, xmmword [0x1400438e0]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14004cbe8], rax
mov byte [rbp - 0x10], 0x45
call fcn.140007810
mov rcx, qword [0x14004cc88]
mov rdx, qword [rax]
call fcn.140033698
movdqa xmm0, xmmword [0x140043890]
lea rcx, [rbp - 0x20]
movdqu xmmword [rbp - 0x20], xmm0
mov qword [0x14004cbe0], rax
mov dword [rbp - 0x10], 0xc2a382c
mov byte [rbp - 0xc], 0x54
call fcn.1400074b4
movdqa xmm0, xmmword [0x140043930]
movdqu xmmword [rbp - 0x20], xmm0
lea rcx, [rbp - 0x20]
mov word [rbp - 0x10], 0x162b
mov byte [rbp - 0xe], 0x44
call fcn.1400078bc
lea r11, [rsp + 0x40]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140031d90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140031e03
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rsi
mov ebp, dword [r14 + rax*4]
add rbp, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x140031e22
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140031ddc
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rbp
jmp 0x140031e05

Function at 0x140033698
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r10, rdx
mov r9, rcx
test rcx, rcx
je 0x140033719
test rdx, rdx
je 0x140033719
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov edx, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x24]
add rdx, rcx
mov ebp, dword [r8 + 0x18]
add rsi, rcx
xor ecx, ecx
test ebp, ebp
je 0x140033719
mov eax, dword [rdx]
mov rbx, r10
add rax, r9
sub rbx, rax
movzx r8d, byte [rax]
movzx r11d, byte [rax + rbx]
sub r8d, r11d
jne 0x14003370a
inc rax
test r11d, r11d
jne 0x1400336f4
test r8d, r8d
je 0x140033730
inc ecx
add rdx, 4
cmp ecx, ebp
jb 0x1400336e9
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rsi + rcx*2]
mov eax, dword [rdi + rcx*4]
add rax, r9
jmp 0x14003371b
Function at 0x14000a5a0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14000a5ad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14000a5bd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14000a5a5
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x14000a5d5
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14000a5c2
sub eax, 3
jb 0x14000a5ef
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14000a626
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x14000a616
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14000a614
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14000a603
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.14000a562
jmp 0x14000a5ad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1400
mov dl, 1
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x14000a672
cmp rsi, rcx
jae 0x14000a67a
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x14000a659
cmp al, 0x8f
ja 0x14000a659
cmp byte [rsi - 2], 0xf
je 0x14000a65f
sub al, 0xe8
cmp al, 1
ja 0x14000a643
cmp rsi, rcx
jae 0x14000a67a
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x14000a649
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x14000a67a
lodsb al, byte [rsi]
jmp 0x14000a659
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x8000]
mov eax, dword [rdi]
or eax, eax
je 0x14000a6d7
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xa1dc]
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 0x14000a687
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 0x14000a6d1
mov qword [rbx], rax
add rbx, 8
jmp 0x14000a6a7
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 0x14000a711
cmp al, 0xef
ja 0x14000a703
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14000a6e3
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
jmp 0x14000a6f2
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 0x14000a765
sub rsp, 0xffffffffffffff80
jmp 0x1400016d0
Function at 0x140011ed4
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
call fcn.140134000
add rsp, 0x28
jmp 0x140011ed4
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rdi
push r14
sub rsp, 0xb0
and dword [rsp + 0x20], 0
lea rcx, [rsp + 0x40]
call qword [sym.imp.api_ms_win_core_processthreads_l1_1_0.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor edi, edi
xor eax, eax
lock cmpxchg qword [0x14001f0e0], rbx
je 0x140011f1e
cmp rax, rbx
jne 0x140011f33
mov edi, 1
mov eax, dword [0x14001f0e8]
cmp eax, 1
jne 0x140011f40
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x140011fad
mov ecx, 0x3e8
call qword [sym.imp.api_ms_win_core_synch_l1_2_0.dll_Sleep]
jmp 0x140011f07
mov eax, dword [0x14001f0e8]
test eax, eax
jne 0x140011fa3
mov dword [0x14001f0e8], 1
lea r14, [0x140014e28]
lea rbx, [0x140014e10]
mov qword [rsp + 0x30], rbx
mov dword [rsp + 0x24], eax
cmp rbx, r14
jae 0x140011f95
test eax, eax
jne 0x140011f99
cmp qword [rbx], 0
je 0x140011f8a
mov rax, qword [rbx]
mov rcx, qword [0x140014db0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x140011f6b
test eax, eax
je 0x140011fad
mov eax, 0xff
jmp 0x140012102
mov dword [0x14001e5f4], 1
mov eax, dword [0x14001f0e8]
cmp eax, 1
jne 0x140011fd5
lea rdx, [0x140014e08]
lea rcx, [0x140014db8]
call sub.msvcrt.dll__initterm
mov dword [0x14001f0e8], 2
test edi, edi
jne 0x140011fe2
xor eax, eax
xchg qword [0x14001f0e0], rax
cmp qword [0x14001f100], 0
je 0x140012016
lea rcx, [0x14001f100]
call fcn.1400126e0
test eax, eax
je 0x140012016
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14001f100]
mov r9, qword [0x140014db0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__acmdln]
mov rbx, qword [rax]
mov qword [rsp + 0x28], rbx
mov edi, dword [rsp + 0x20]
mov cl, byte [rbx]
cmp cl, 0x20
ja 0x1400120a1
test cl, cl
je 0x140012038
test edi, edi
jne 0x1400120a1
dec cl
cmp cl, 0x1f
ja 0x14001204b
inc rbx
mov qword [rsp + 0x28], rbx
mov cl, byte [rbx]
jmp 0x140012038
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rbx
xor edx, edx
lea rcx, [0x140000000]
call fcn.1400015d4
mov dword [0x14001e5f0], eax
cmp dword [0x14001e610], 0
jne 0x14001208a
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14001e5f4], 0
jne 0x14001209f
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14001e5f0]
jmp 0x140012102
cmp cl, 0x22
jne 0x1400120b3
xor eax, eax
test edi, edi
sete al
mov edi, eax
mov dword [rsp + 0x20], eax
movzx ecx, cl
call qword [sym.imp.msvcrt.dll__ismbblead]
test eax, eax
je 0x1400120c8
inc rbx
mov qword [rsp + 0x28], rbx
inc rbx
mov qword [rsp + 0x28], rbx
jmp 0x140012029
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov rsp, r11
pop r14
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400c2a80]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400c2a90]
mov dword [rax], 1
mov rax, qword [0x1400c2aa0]
mov dword [rax], 1
mov rax, qword [0x1400c2a70]
mov dword [rax], 1
mov rax, qword [0x1400c2910]
cmp word [rax], 0x5a4d
jne 0x140001067
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010d0
mov rax, qword [0x1400c2a60]
mov dword [0x1400ea020], 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 [0x1400c2a20]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400c2a00]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x1400c1d60]
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 0x14000af70
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 0x14000afe0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x1400ea0c4]
mov r12, rcx
test ebx, ebx
jle 0x14000b110
mov rax, qword [0x1400ea0c8]
xor ecx, ecx
add rax, 0x18
nop word [rax + rax]
mov rdx, qword [rax]
cmp rdx, r12
ja 0x14000b02c
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x14000b0b3
add ecx, 1
add rax, 0x28
cmp ecx, ebx
jne 0x14000b010
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rsi, rax
test rax, rax
je 0x14000b132
mov rax, qword [0x1400ea0c8]
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 [0x1400ea0c8]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14000b117
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x14000b0ac
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x14000b0c0
add dword [0x1400ea0c4], 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 [0x1400ea0c8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14000b0ac
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 0x14000b037
mov rax, qword [0x1400ea0c8]
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 0x14000b5f0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x1400ea120]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400ea100]
test rbx, rbx
je 0x14000b644
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 0x14000b63b
test r12, r12
je 0x14000b63b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14000b620
lea rcx, [0x1400ea120]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]