joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1800e6acc
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
lea r9, str.GetTempPath2W
mov edi, ecx
lea rdx, str.GetTempPath2W
mov ecx, 5
lea r8, [0x18011afc8]
call fcn.1800e6130
test rax, rax
je 0x1800e6b16
movabs r10, 0xa3e5bf4030d1b870
mov rdx, rbx
mov ecx, edi
call qword [0x18010d648]
jmp 0x1800e6b21
mov rdx, rbx
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret

Function at 0x1800e7970
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1800e7986
mov al, 1
jmp 0x1800e79e6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1800e7997
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1800e79e4
mov ecx, dword [rcx + 0x18]
nop
call fcn.1800f8d18
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800e79e4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1800e79e4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1800e79e4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1800e79e6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1800f3d10
Capabilities:
Query environment variable

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 r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x1800f3d40
xor eax, eax
jmp 0x1800f3e03
mov rbp, rbx
cmp word [rax], si
je 0x1800f3d65
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x1800f3d4c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x1800f3d48
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.1800e34dc
movsxd r14, eax
test eax, eax
jne 0x1800f3da3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x1800f3d39
mov rcx, r14
call fcn.1800d9db8
mov rdi, rax
test rax, rax
jne 0x1800f3dbc
xor ecx, ecx
call fcn.1800d9d7c
jmp 0x1800f3d98
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.1800e34dc
test eax, eax
jne 0x1800f3ded
mov rcx, rdi
call fcn.1800d9d7c
jmp 0x1800f3df7
xor ecx, ecx
call fcn.1800d9d7c
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x1800f3e20
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 0x1800f3ea7
mov rsi, rbx
cmp word [rax], bp
je 0x1800f3e66
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1800f3e50
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1800f3e4c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1800d9db8
mov rdi, rax
test rax, rax
je 0x1800f3e94
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1800877a0
mov rbp, rdi
xor ecx, ecx
call fcn.1800d9d7c
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 0x1800f4d08
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.1800bc67c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1800f4d92
cmp byte [rbp - 0x21], r15b
je 0x1800f4d8d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1800f4dc8
call fcn.1800e66f0
test eax, eax
jne 0x1800f4db4
cmp byte [rbp - 0x21], r15b
je 0x1800f4dac
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1800f4dc8
cmp byte [rbp - 0x21], r15b
je 0x1800f4dc5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.1800bc384
test eax, eax
jne 0x1800f4e68
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.1800bc67c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1800f4e07
cmp byte [rbp - 0x21], r15b
je 0x1800f4e3c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1800f4e3c
call fcn.1800e66f0
test eax, eax
jne 0x1800f4e28
cmp byte [rbp - 0x21], r15b
je 0x1800f4e21
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1800f4e3c
cmp byte [rbp - 0x21], r15b
je 0x1800f4e39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.1800bc384
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1800f4e68
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1800f4e6b
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1800f4e79
mov rcx, rdi
call fcn.1800d9d7c
cmp byte [rbp + 0x3f], r15b
je 0x1800f4e88
mov rcx, qword [rbp + 0x27]
call fcn.1800d9d7c
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x1800f8420
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.1800da7e8
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 0x1800f84c1
cmp ebx, dword [rsp + 0x30]
je 0x1800f84ba
test esi, esi
je 0x1800f84ba
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1800f8495
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1800f84a2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x1800f847f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1800f84a6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1800f84c3
mov eax, 1
jmp 0x1800f84c3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x1800fd1f0
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.1800e9d94
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.1800e9d94
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x1800fd340
cmp rax, 0xffffffffffffffff
je 0x1800fd340
xor edi, edi
test rbp, rbp
jle 0x1800fd2eb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.1800e7fac
mov rbx, rax
test rax, rax
jne 0x1800fd278
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800fd2e1
mov edx, 0x8000
mov ecx, r14d
call fcn.1800fcde4
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.1800de384
cmp eax, 0xffffffff
je 0x1800fd2c1
cdqe
sub rbp, rax
test rbp, rbp
jg 0x1800fd288
mov edx, r15d
mov ecx, r14d
call fcn.1800fcde4
jmp 0x1800fd2e1
cmp byte [rsi + 0x38], dil
je 0x1800fd2d8
cmp dword [rsi + 0x34], 5
jne 0x1800fd2d8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
cmp byte [rsi + 0x30], dil
je 0x1800fd2e1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.1800d9d7c
jmp 0x1800fd354
jns 0x1800fd354
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.1800e9d94
cmp rax, 0xffffffffffffffff
jne 0x1800fd30c
cmp byte [rsi + 0x30], dil
je 0x1800fd354
mov edi, dword [rsi + 0x2c]
jmp 0x1800fd354
mov ecx, r14d
call fcn.1800f8d18
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1800fd354
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, recv
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], select
jmp 0x1800fd354
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x1800fd34d
mov eax, dword [rsi + 0x2c]
jmp 0x1800fd352
mov eax, socket
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.1800e9d94
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 0x1801bf3cd
Capabilities:
Encode data using xor

Disassembly:
push r13
movabs r13, 0x24a60f0c43955239
add r13d, 0x14c8023c
push r12
movabs r12, 0x22a140ca70543713
mov r12, qword [rsp]
and r13w, 0x6d77
sete r13b
bswap r13d
movsx r13d, r13b
xor r13d, 0x10dc4206
mov r13, qword [rsp + 8]
je 0x1801bf3fe
push qword [rsp + 0x20]
popfq
lea rsp, [rsp + 0x38]
call fcn.1802f8f7a

Function at 0x1801e7d2d
Capabilities:
Execute syscall

Disassembly:
push qword [rsp + 0x30]
popfq
lea rsp, [rsp + 0x38]
call fcn.1803545ba
outsd dx, dword [rsi]
mov ebx, 0x4abce79d
add dword [rax], ebp
mov dh, 0xa9
mov ah, 0x2b
push rsi
cmp dl, byte [rax + riz*2 + 5]
scasd eax, dword [rdi]
fld qword [rbx]
stosb byte [rdi], al
sysenter
push rcx
pop rdx
mov ah, 0xfb
ret 0x276e

Function at 0x1801f1895
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x28]
call fcn.1803545ba
shl byte [rbp - 0x43], 0x77
lodsb al, byte [rsi]
sahf
movsb byte [rdi], byte [rsi]
mov eax, 0xa649fe5b
cmp byte [rsi], dl
or esi, dword [rax + rbx*2 - 0x39]
invalid

Function at 0x18024f39a
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x10]
popfq
lea rsp, [rsp + 0x30]
call fcn.1803b7f55
xor byte [rbx + 0x78d25c74], dh
popfq
xlatb
div dword [rbx]
invalid

Function at 0x18025bea9
Capabilities:
Encode data using xor

Disassembly:
add qword [rsp + 0x18], 0x7fe219f8
push qword [rsp + 0x40]
popfq
lea rsp, [rsp + 0x58]
call fcn.1802f8f7a
invalid

Function at 0x180265b29
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x18]
popfq
lea rsp, [rsp + 0x28]
call fcn.1803e8641
int 0x8a
pop rdi
add dword [rax - 0x14ba2619], edx
stosd dword [rdi], eax
cmp esp, dword [rsp + rdx]
enter 0x617a, 0xffffffffffffffbd
mov dl, 0xe7
push rcx
rcl byte [rdi - 0x3fd4cd56], cl
fdivr qword [rcx]
mov ebp, 0xd251e7b2
xchg edi, eax
stosb byte [rdi], al
xor ch, byte [rbx]
rcr ah, 0x39
ja 0x180265b49
mov esp, dword [rcx + 0x540eaff2]
mov word [rbx - 0x254273ad], cs
in eax, 0x2f
invalid

Function at 0x180291b75
Capabilities:
Encode data using xor

Disassembly:
push qword [rsp + 0x20]
popfq
lea rsp, [rsp + 0x28]
call fcn.1803c1799
mov dh, 3
and al, byte [rax - 0x466cf2ad]
add byte [rcx - 0x7f646246], 0xfd
invalid

Function at 0x1802a8238
Capabilities:
Check for software breakpoints

Disassembly:
push rcx
mov rsi, qword [rsp + 0x28]
js fcn.180275035
mov rcx, rdi
call fcn.1801ef2bd
push rcx
cmp ch, ch
add ah, byte [rdx - 0x1c]
invalid

Function at 0x1802d9725
Capabilities:
Encode data using add xor sub operations

Disassembly:
xchg esp, eax
add eax, 0xdb10221b
in al, 0x37
movabs al, byte [0xffd49206830f777c]
jae 0x180022931
mov r15, qword [rsp + 0x20]
and r12w, r12w
lea r12, [r12 + r12*2 + 0x4ada1250]
mov dword [rsp + 8], r12d
mov r12, qword [rsp + 0x28]
sub word [rsp + 8], 0x1a3f
call fcn.18023758f
leave
push rsp
stosd dword [rdi], eax
xor eax, 0xc647be68
shl dword [rax - 0x1528d6e6], 4
pop rbx
je 0x1802d9719
adc al, 0xf9
push rdi
xchg esi, eax
invalid
Function at 0x1802d972b
Capabilities:
Encode data using xor

Disassembly:
xchg esp, eax
add eax, 0xdb10221b
in al, 0x37
movabs al, byte [0xffd49206830f777c]
jae 0x180022931
mov r15, qword [rsp + 0x20]
and r12w, r12w
lea r12, [r12 + r12*2 + 0x4ada1250]
mov dword [rsp + 8], r12d
mov r12, qword [rsp + 0x28]
sub word [rsp + 8], 0x1a3f
call fcn.18023758f
leave
push rsp
stosd dword [rdi], eax
xor eax, 0xc647be68
shl dword [rax - 0x1528d6e6], 4
pop rbx
je 0x1802d9719
adc al, 0xf9
push rdi
xchg esi, eax
invalid

Function at 0x140001000
Capabilities:
Enumerate files on windows

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x270
mov rdx, rcx
lea rsi, [rsp + 0x160]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x140002007]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x20]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x1400010a1
mov rsi, rax
lea rdi, [rsp + 0x4c]
lea rbx, [0x140002005]
mov r12, qword [sym.imp.KERNEL32.dll_lstrcmpA]
lea r14, [rsp + 0x20]
mov r13, qword [sym.imp.KERNEL32.dll_FindNextFileA]
lea r15, [0x140002004]
mov rcx, rdi
mov rdx, rbx
call r12
test eax, eax
je 0x14000108d
mov rcx, rdi
mov rdx, r15
call r12
test eax, eax
jne 0x1400010a5
mov rcx, rsi
mov rdx, r14
call r13
test eax, eax
jne 0x140001073
mov edi, 1
jmp 0x1400010a7
xor edi, edi
jmp 0x1400010b0
xor edi, edi
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov eax, edi
add rsp, 0x270
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret

Function at 0x1400010c5
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x388
mov rdx, rcx
lea rdi, [rsp + 0x280]
mov rcx, rdi
mov qword [rsp + 0x28], rdx
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rdx, [0x140002007]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_lstrcatA]
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp rax, 0xffffffffffffffff
je 0x1400011c2
mov rdi, rax
lea rbx, [rsp + 0x5c]
lea r14, [rsp + 0x30]
mov rbp, qword [sym.imp.KERNEL32.dll_FindNextFileA]
lea r15, [0x140002005]
mov r12, qword [sym.imp.KERNEL32.dll_lstrcmpA]
lea r13, [rsp + 0x170]
test byte [rsp + 0x30], 0x10
je 0x1400011ad
mov rcx, rbx
mov rdx, r15
call r12
test eax, eax
je 0x1400011ad
mov rcx, rbx
lea rdx, [0x140002004]
call r12
test eax, eax
je 0x1400011ad
mov rcx, r13
mov rdx, qword [rsp + 0x28]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
mov rcx, r13
lea rdx, [0x140002002]
mov rsi, qword [sym.imp.KERNEL32.dll_lstrcatA]
call rsi
mov rcx, r13
mov rdx, rbx
call rsi
mov rcx, r13
call section..text
mov rcx, r13
test eax, eax
je 0x1400011a8
call qword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x1400011ad
call fcn.1400010c5
mov rcx, rdi
mov rdx, r14
call rbp
test eax, eax
jne 0x140001143
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop
add rsp, 0x388
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004450]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004460]
mov dword [rax], 1
mov rax, qword [0x140004470]
mov dword [rax], 1
mov rax, qword [0x1400043e0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004440]
mov dword [0x14000700c], ecx
mov eax, dword [rax]
test eax, eax
je 0x1400010b0
mov ecx, 2
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140004510]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400044f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x140004370]
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 [sym._matherr]
call sym.__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 0x140001780
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 dword [rax]
Function at 0x140002140
Capabilities:
Parse pe header

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

Function at 0x140002170
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx r8d, word [rcx + 6]
movzx eax, word [rcx + 0x14]
test r8w, r8w
lea rax, [rcx + rax + 0x18]
je 0x1400021bd
lea ecx, [r8 - 1]
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
cmp rdx, r8
mov rcx, r8
jb 0x1400021b4
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x1400021bf
add rax, 0x28
cmp rax, r9
jne 0x1400021a0
xor eax, eax
ret

Function at 0x1400021c0
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x140002250
mov rdx, qword [0x1400043e0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14000223e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14000223e
cmp word [rax + 0x18], 0x20b
jne 0x14000223e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x140002250
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x140002229
add rbx, 0x28
cmp rbx, rdi
je 0x140002250
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x140002220
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret
xor ebx, ebx
mov rax, rbx
add rsp, 0x20
pop rbx
pop rsi
pop rdi
ret

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

Disassembly:
mov rdx, qword [0x1400043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002280
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002288
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002280
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400022dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
cmp rcx, r8
mov rdx, r8
jb 0x1400022d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002280
add rax, 0x28
cmp rax, r9
jne 0x1400022c0
xor eax, eax
ret

Function at 0x1400022e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400043e0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400022ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002308
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400022ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret
Function at 0x140002320
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043e0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x140002340
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x140002348
ret
cmp word [rdx + 0x18], 0x20b
jne 0x140002340
movzx r8d, word [rdx + 6]
movzx eax, word [rdx + 0x14]
test r8w, r8w
lea rax, [rdx + rax + 0x18]
je 0x140002390
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002387
test rcx, rcx
je 0x140002340
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002378
xor eax, eax
ret

Function at 0x1400023a0
Capabilities:
Parse pe header

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

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

Disassembly:
mov rdx, qword [0x1400043e0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002400
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002408
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002400
movzx r9d, word [r8 + 6]
sub rcx, rdx
movzx edx, word [r8 + 0x14]
test r9w, r9w
lea rdx, [r8 + rdx + 0x18]
je 0x140002400
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]
cmp rcx, r8
mov rax, r8
jb 0x140002454
add eax, dword [rdx + 8]
cmp rcx, rax
jb 0x140002460
add rdx, 0x28
cmp r9, rdx
jne 0x140002440
xor eax, eax
ret
mov eax, dword [rdx + 0x24]
not eax
shr eax, 0x1f
ret

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

Disassembly:
mov r11, qword [0x1400043e0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002492
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x1400024a0
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002492
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002492
movzx r10d, word [r8 + 6]
movzx edx, word [r8 + 0x14]
test r10w, r10w
lea rdx, [r8 + rdx + 0x18]
je 0x140002492
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]
cmp rax, r9
mov r8, r9
jb 0x1400024f5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002508
add rdx, 0x28
cmp rdx, r10
jne 0x1400024e0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x140002517
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x140002527
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400024fe
test ecx, ecx
jg 0x140002510
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret