joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14003fd90
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x14004cd20]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14003fdb0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14003fdb8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14003fdb0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14003fe00
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14003fdf7
test rcx, rcx
je 0x14003fdb0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14003fde8
xor eax, eax
ret

Function at 0x14003fe10
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x14004cd20]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x14003fe2f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x14003fe38
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret

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

Disassembly:
mov rdx, qword [0x14004cd20]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14003fe70
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14003fe78
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14003fe70
sub rcx, rdx
movzx r9d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
lea rdx, [r8 + rdx + 0x18]
test r9w, r9w
je 0x14003fe70
lea eax, [r9 - 1]
lea rax, [rax + rax*4]
lea r9, [rdx + rax*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rdx + 0xc]
mov rax, r8
cmp rcx, r8
jb 0x14003fec4
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x14003fed0
add rdx, 0x28
cmp r9, rdx
jne 0x14003feb0
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x14004cd20]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14003ff02
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14003ff10
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14003ff02
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14003ff02
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14003ff02
lea r8d, [r10 - 1]
lea r8, [r8 + r8*4]
lea r10, [rdx + r8*8 + 0x28]
nop word cs:[rax + rax]
mov r9d, dword [rdx + 0xc]
mov r8, r9
cmp rax, r9
jb 0x14003ff65
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14003ff78
add rdx, 0x28
cmp rdx, r10
jne 0x14003ff50
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14003ff87
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14003ff97
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14003ff6e
test ecx, ecx
jg 0x14003ff80
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x14177f150
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14177f15d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14177f16d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x14177f155
lea eax, [rcx + 1]
jmp 0x14177f17b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x14177f18e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x14177f174
sub eax, 3
jb 0x14177f1ae
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x14177f1fd
sar eax, 1
movsxd rbp, eax
jb 0x14177f1e4
jmp 0x14177f1bc
add ebx, ebx
jne 0x14177f1ba
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14177f1e4
inc ecx
add ebx, ebx
jne 0x14177f1ca
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x14177f1e4
call r11
adc ecx, ecx
add ebx, ebx
jne 0x14177f1dd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x14177f1cc
add ecx, 2
jmp 0x14177f1e9
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.14177f112
jmp 0x14177f15d
pop rsi
pop rdi
pop rax
mov dword [rdi], eax
sub rsp, 0x28
lea rdi, [rsi + 0x1771000]
mov eax, dword [rdi]
or eax, eax
je 0x14177f269
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x17982ac]
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 0x14177f20d
jns 0x14177f242
movzx rdx, word [rdi]
add rdi, 2
jmp 0x14177f24c
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 0x14177f263
mov qword [rbx], rax
add rbx, 8
jmp 0x14177f22d
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 0x14177f2ad
cmp al, 0xef
ja 0x14177f295
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x14177f275
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x14177f284
mov eax, dword [rdi]
add rdi, 4
jmp 0x14177f284
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 + 0x277]
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 0x14177f301
sub rsp, 0xffffffffffffff80
jmp 0x140bcb25c
Function at 0x180005cea
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x180076640
mov byte [rsp + 0x10], dl
mov dword [rsp + 8], ecx
movsx eax, byte [rsp + 0x10]
mov ecx, dword [rsp + 8]
xor ecx, eax
mov eax, ecx
mov eax, eax
imul rax, rax, 0x1000193
ret
Function at 0x140006ee0
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x140006f76
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x140006f7d
mov r15, rsi
jmp 0x140006f3b
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.140020dd0
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x140006f6e
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006f53
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x140006f10
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140006f6e
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x140006f3b
sub rsi, r15
jmp 0x14000706a
xor esi, esi
jmp 0x14000706a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140006fd0
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x140006fd0
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.140020dd0
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x140006fe1
jmp 0x140007067
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x140007067
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x140007010
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x140007043
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.1400285d0
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x140007010
jmp 0x140007067
test r14, r14
je 0x140007064
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.1400285d0
sub r14, rax
jmp 0x140007067
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret

Function at 0x14001ef98
Capabilities:
Parse pe header

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

Function at 0x140024300
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140024448

Function at 0x14002e030
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002e058
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002e058
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1400381b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14003175c
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x140038251
cmp ebx, dword [rsp + 0x30]
je 0x14003824a
test esi, esi
je 0x14003824a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140038225
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140038232
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003820f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140038236
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140038253
mov eax, 1
jmp 0x140038253
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140038f4c
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.14001f5b0
sub rsp, rax
mov rax, qword [0x14005a798]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1400357fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140038f9b
mov rax, rbp
jmp 0x1400390a3
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 + 0x5c950]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140038c7c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5c950]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14003909f
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 0x14003909f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140038c7c
test rax, rax
js 0x14003909f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14003909f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140039091
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140039091
cmp byte [rcx], 0xd
jne 0x140039077
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140039086
cmp byte [rcx + 1], 0xa
jne 0x140039086
inc rcx
jmp 0x140039086
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5b2d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140039059
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400390a3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001d160
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 0x1400399ec
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 0x140039a73
mov rsi, rbx
cmp word [rax], bp
je 0x140039a32
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140039a1c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140039a18
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14003152c
mov rdi, rax
test rax, rax
je 0x140039a60
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140020dd0
mov rbp, rdi
xor ecx, ecx
call fcn.1400314f0
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 0x14003b36c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14003b382
mov al, 1
jmp 0x14003b3e2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14003b393
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14003b3e0
mov ecx, dword [rcx + 0x18]
nop
call fcn.140039b40
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14003b3e0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14003b3e0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14003b3e0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14003b3e2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14003bd18
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
lea r9, [0x14005c950]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14003bd6f
cmp word [rdx], r13w
jne 0x14003bd6f
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003bd74
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14003be99
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14003beba
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14003bdad
mov rdx, r9
mov word [rbx], cx
jmp 0x14003bdd4
cmp r9, r8
jae 0x14003bde4
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14003bd8e
jmp 0x14003be99
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14003be8e
cmp dword [rsp + 0x80], esi
je 0x14003be8e
lea r8, [0x14005c950]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003be66
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14003be36
mov word [rbx], r13w
jmp 0x14003be96
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14003be43
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003be96
cmp word [rsp + 0x70], r13w
jne 0x14003be73
cmp rbx, r14
je 0x14003be30
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140038bd8
cmp word [rsp + 0x70], r13w
je 0x14003be99
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
lea r8, [0x14005c950]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003be93
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14003be99
Function at 0x14004122c
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.140038bd8
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.140038bd8
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x14004137c
cmp rax, 0xffffffffffffffff
je 0x14004137c
xor edi, edi
test rbp, rbp
jle 0x140041327
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.140032a80
mov rbx, rax
test rax, rax
jne 0x1400412b4
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x14004131d
mov edx, 0x8000
mov ecx, r14d
call fcn.1400279dc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14003a4dc
cmp eax, 0xffffffff
je 0x1400412fd
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1400412c4
mov edx, r15d
mov ecx, r14d
call fcn.1400279dc
jmp 0x14004131d
cmp byte [rsi + 0x38], dil
je 0x140041314
cmp dword [rsi + 0x34], 5
jne 0x140041314
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x14004131d
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1400314f0
jmp 0x140041390
jns 0x140041390
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.140038bd8
cmp rax, 0xffffffffffffffff
jne 0x140041348
cmp byte [rsi + 0x30], dil
je 0x140041390
mov edi, dword [rsi + 0x2c]
jmp 0x140041390
mov ecx, r14d
call fcn.140039b40
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140041390
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140041390
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140041389
mov eax, dword [rsi + 0x2c]
jmp 0x14004138e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.140038bd8
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret
Function at 0x2c327f0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x2c327fd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x2c3280d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x2c327f5
lea eax, [rcx + 1]
jmp 0x2c3281b
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x2c3282e
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x2c32814
sub eax, 3
jb 0x2c3284e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x2c3289d
sar eax, 1
movsxd rbp, eax
jb 0x2c32884
jmp 0x2c3285c
add ebx, ebx
jne 0x2c3285a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x2c32884
inc ecx
add ebx, ebx
jne 0x2c3286a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x2c32884
call r11
adc ecx, ecx
add ebx, ebx
jne 0x2c3287d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x2c3286c
add ecx, 2
jmp 0x2c32889
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.02c327b2
jmp 0x2c327fd
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x280b000]
mov eax, dword [rdi]
or eax, eax
je 0x2c328f9
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x2832000]
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 0x2c328a9
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 0x2c328f3
mov qword [rbx], rax
add rbx, 8
jmp 0x2c328c9
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 0x2c3293d
cmp al, 0xef
ja 0x2c32925
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x2c32905
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x2c32914
mov eax, dword [rdi]
add rdi, 4
jmp 0x2c32914
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 + 0x1af]
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 0x2c32991
sub rsp, 0xffffffffffffff80
jmp 0x4687c0
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x14001d560]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x14001d570]
mov dword [rax], 1
mov rax, qword [0x14001d580]
mov dword [rax], 1
mov rax, qword [0x14001d500]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x14001d550]
mov dword [0x140022020], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call dbg.__p__fmode
mov rdx, qword [0x14001d630]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x14001d610]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x14001d4a0]
cmp dword [rax], 1
je 0x1400010f8
xor eax, eax
add rsp, 0x28
ret
mov ecx, 1
call sym.__set_app_type
jmp 0x140001077
movzx edx, word [rax + 0x18]
cmp dx, 0x10b
je 0x140001110
cmp dx, 0x20b
jne 0x14000105a
cmp dword [rax + 0x84], 0xe
jbe 0x14000105a
mov edx, dword [rax + 0xf8]
xor ecx, ecx
test edx, edx
setne cl
jmp 0x14000105a
mov rcx, qword [dbg._matherr]
call dbg.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret
cmp dword [rax + 0x74], 0xe
jbe 0x14000105a
mov r8d, dword [rax + 0xe8]
xor ecx, ecx
test r8d, r8d
setne cl
jmp 0x14000105a

Function at 0x140005221
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
cmp qword [rbp + 0x18], 0
je 0x140005249
mov rax, qword [rbp + 0x18]
mov rcx, rax
call sym.nimCStrLen_char_
mov rcx, rax
jmp 0x14000524e
mov ecx, 0
mov rdx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rdx
mov r8, rcx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret

Function at 0x14000eedb
Capabilities:
Write file on windows

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov qword [rbp + 0x20], r8
mov rdx, qword [rbp + 0x20]
mov rcx, qword [rbp + 0x10]
mov rax, qword [rbp + 0x18]
mov r9, rcx
mov r8, rdx
mov edx, 1
mov rcx, rax
call sym.fwrite
mov qword [rbp - 8], rax
mov rax, qword [rbp + 0x10]
mov rcx, rax
call sym.fflush
mov dword [rbp - 0xc], eax
nop
add rsp, 0x30
pop rbp
ret