joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180059930
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
sub rsp, 8
mov r10, rcx
mov r9d, 0x270
mov ecx, dword [rcx]
cmp ecx, r9d
jne 0x180059991
lea r8, [r10 + 8]
nop dword [rax + rax]
mov edx, dword [r8 - 4]
xor edx, dword [r8]
lea r8, [r8 + 4]
btr edx, 0x1f
xor edx, dword [r8 - 8]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r8 + 0x62c]
xor ecx, edx
mov dword [r8 + 0x9b8], ecx
sub r9, 1
jne 0x180059950
mov ecx, dword [r10]
jmp 0x180059a7a
cmp ecx, 0x4e0
jb 0x180059a7a
lea r11, [r10 + 0x9c4]
mov qword [rsp], rbx
mov eax, dword [r11]
mov ebx, 0xe3
mov edx, dword [r11 + 4]
lea r8, [r11 + 4]
xor edx, eax
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 + 0x634]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x1800599b0
lea r11, [r10 + 0xd50]
mov ebx, 0x18c
mov eax, dword [r11]
nop dword [rax + rax]
mov edx, eax
lea r8, [r11 + 4]
xor edx, dword [r8]
btr edx, 0x1f
xor edx, eax
mov eax, edx
and al, 1
neg al
mov eax, dword [r8]
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r11 - 0xd4c]
xor ecx, edx
mov dword [r11 - 0x9c0], ecx
lea r11, [r8]
sub rbx, 1
jne 0x180059a00
mov edx, dword [r10 + 0x1380]
xor edx, dword [r10 + 4]
mov rbx, qword [rsp]
btr edx, 0x1f
xor edx, dword [r10 + 0x1380]
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0x9908b0df
xor ecx, dword [r10 + 0x634]
xor ecx, edx
mov dword [r10 + 0x9c0], ecx
xor ecx, ecx
mov dword [r10], ecx
mov eax, ecx
mov edx, dword [r10 + rax*4 + 4]
lea eax, [rcx + 1]
mov dword [r10], eax
mov ecx, edx
mov eax, dword [r10 + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
add rsp, 8
ret
Function at 0x180059ac0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov r10d, r8d
mov rdi, rdx
mov r11, rcx
mov rbx, qword [0x1800d20d8]
add rbx, rcx
mov r9, qword [0x1800d21e8]
add r9, rcx
mov r8d, 2
cmp byte [r9], 0
jne 0x180059b35
mov word [r9 + 1], 1
rdtsc
shl rdx, 0x20
or rax, rdx
mov qword [rsp + 0x30], rax
mov byte [r9 + 4], al
movzx eax, byte [rsp + 0x31]
mov edx, r8d
mov byte [r9 + 5], al
movzx ecx, byte [rsp + rdx + 0x30]
inc edx
mov byte [r9 + 6], cl
movzx eax, byte [rsp + rdx + 0x30]
mov byte [r9 + 7], al
mov byte [r9 + 8], 0
mov byte [r9], 1
mov rcx, r9
mov dword [rsp + 0x40], r10d
mov eax, dword [r9 + 4]
mov dword [rsp + 0x30], eax
movzx edx, byte [r9 + 1]
lea rax, [r8 + rcx]
test dl, dl
je 0x180059b78
xor ecx, ecx
nop dword [rax]
nop dword [rax + rax]
mov eax, dword [rsp + rcx + 0x30]
not eax
xor dword [rsp + rcx + 0x40], eax
lea rcx, [rcx + 4]
sub rdx, 1
jne 0x180059b60
lea rax, [r9 + 2]
movzx eax, byte [rax]
mov ecx, 4
sub rcx, rax
cmp rcx, 4
jae 0x180059ba4
nop dword [rax]
movzx eax, byte [rsp + rcx + 0x30]
not al
xor byte [rsp + rcx + 0x40], al
inc rcx
cmp rcx, 4
jb 0x180059b90
movzx eax, byte [r9 + 8]
inc al
and eax, 3
mov ecx, eax
mov eax, dword [rsp + 0x40]
mov dword [r9 + rcx*4 + 0xc], eax
mov byte [r9 + 8], cl
mov dword [rbx + 0x38], r10d
mov r9, qword [0x1800d20d8]
add r9, r11
mov r8, qword [r9 + 0x18]
movabs rdx, 0xcbf29ce484222325
movabs r11, 0x100000001b3
nop dword [rax]
nop word [rax + rax]
movsx rcx, byte [r8]
lea r8, [r8 + 1]
xor rdx, rcx
imul rdx, r11
test cl, cl
jne 0x180059bf0
movabs rax, 0x2374c594f5e76f06
cmp rdx, rax
jne 0x180059c1d
lea eax, [r10 - 0x1d]
cmp eax, 7
jbe 0x180059c4c
jmp 0x180059c74
movabs rax, 0xf9bdf861cccd5fd1
cmp rdx, rax
jne 0x180059c37
lea eax, [r10 - 0x1a]
cmp eax, 6
jbe 0x180059c4c
jmp 0x180059c74
movabs rax, 0xb4d052affec8dc8e
cmp rdx, rax
jne 0x180059c56
cmp r10d, 0x10
jne 0x180059c74
mov byte [r9 + 0x9c], 0
jmp 0x180059cb7
movabs rcx, 0x2f2959b508f215d2
movabs rax, 0xecc3c7c77aebb7ea
cmp rdx, rcx
je 0x180059c97
cmp rdx, rax
je 0x180059c97
cmp byte [r9 + 0x9c], 0xff
je 0x180059cb7
movabs rax, 0xeb5bc0df5355fba6
cmp rdx, rax
je 0x180059cb7
mov byte [r9 + 0x9c], 0xff
jmp 0x180059cb7
cmp r10d, 7
jne 0x180059d2a
cmp rdx, rcx
je 0x180059d3d
mov rax, qword [r9]
cmp rax, qword [r9 + 8]
je 0x180059cb7
mov qword [r9 + 8], rax
mov ecx, dword [0x1800d0e6c]
mov rax, qword gs:[0x58]
mov edx, 4
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1800d3690], ecx
jle 0x180059d13
lea rcx, [0x1800d3690]
call fcn.18005efac
cmp dword [0x1800d3690], 0xffffffff
jne 0x180059d13
mov rax, qword [0x1800cfcd8]
mov rdx, qword [rax]
add rdx, qword [0x1800d21f0]
mov qword [0x1800d3688], rdx
lea rcx, [0x1800d3690]
call fcn.18005ef4c
mov dl, 1
mov rcx, rbx
call qword [0x1800d3688]
nop
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
cmp r10d, 6
jne 0x180059caa
cmp rdx, rax
jne 0x180059caa
mov rax, qword [r9]
cmp rax, qword [r9 + 8]
je 0x180059d4a
mov qword [r9 + 8], rax
mov r8d, r10d
mov rdx, rdi
mov rcx, r9
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
jmp fcn.180059d70
Function at 0x18005c930
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rdi, rdx
lea r8, [rsp + 0x60]
mov ebx, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov r8d, ebx
mov ecx, 0x1300
neg eax
sbb r9d, r9d
and qword [rsp + 0x30], 0
and r9d, dword [rsp + 0x60]
xor edx, edx
and dword [rsp + 0x28], 0
mov dword [rsp + 0x60], r9d
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x18005c9b4
mov r8, qword [rdi]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x18008d640]
cmp byte [rcx + rax], 0
je 0x18005c9b4
dec r8
sub rdx, 1
jne 0x18005c99a
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x18006e01c
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.18005f710
sub rsp, rax
mov rax, qword [0x1800cf098]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.1800766fc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x18006e06b
mov rax, rbp
jmp 0x18006e173
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, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0xd1960]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.18007ce9c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0xd1960]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x18006e16f
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 0x18006e16f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.18007ce9c
test rax, rax
js 0x18006e16f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x18006e16f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x18006e161
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x18006e161
cmp byte [rcx], 0xd
jne 0x18006e147
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x18006e156
cmp byte [rcx + 1], 0xa
jne 0x18006e156
inc rcx
jmp 0x18006e156
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xcf470]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x18006e129
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x18006e173
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18005f660
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 0x18007a0cc
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 0x18007a0fe
call fcn.18006af10
mov dword [rax], 0x16
call fcn.18006dbe4
jmp 0x18007a21d
mov eax, dword [rcx + 0x14]
shr eax, 0xd
test al, 1
je 0x18007a21d
mov eax, dword [rcx + 0x14]
shr eax, 0xc
test al, 1
jne 0x18007a21d
mov eax, dword [rcx + 0x14]
shr eax, 1
test al, 1
je 0x18007a12d
lock or dword [rcx + 0x14], 0x10
jmp 0x18007a21d
lock or dword [rcx + 0x14], 1
mov eax, dword [rcx + 0x14]
test eax, 0x4c0
jne 0x18007a141
call fcn.18007c1ac
mov rdi, qword [rsi + 8]
mov rcx, rsi
mov ebx, dword [rsi + 0x20]
mov qword [rsi], rdi
call fcn.1800766fc
mov r8d, ebx
mov rdx, rdi
mov ecx, eax
call fcn.18007c6c4
mov dword [rsi + 0x10], eax
lea ecx, [rax + 1]
cmp ecx, 1
jbe 0x18007a20b
mov eax, dword [rsi + 0x14]
or edi, 0xffffffff
test al, 6
jne 0x18007a1d6
mov rcx, rsi
call fcn.1800766fc
cmp eax, edi
je 0x18007a1c1
mov rcx, rsi
call fcn.1800766fc
cmp eax, 0xfffffffe
je 0x18007a1c1
mov rcx, rsi
call fcn.1800766fc
movsxd rbx, eax
lea r14, [0x1800d1960]
mov rcx, rsi
sar rbx, 6
call fcn.1800766fc
and eax, 0x3f
lea rcx, [rax + rax*8]
mov rax, qword [r14 + rbx*8]
lea rdx, [rax + rcx*8]
jmp 0x18007a1c8
lea rdx, [0x1800cf420]
mov al, byte [rdx + 0x38]
and al, 0x82
cmp al, 0x82
jne 0x18007a1d6
lock or dword [rsi + 0x14], 0x20
cmp dword [rsi + 0x20], 0x200
jne 0x18007a1fa
mov eax, dword [rsi + 0x14]
shr eax, 6
test al, 1
je 0x18007a1fa
mov eax, dword [rsi + 0x14]
shr eax, 8
test al, 1
jne 0x18007a1fa
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 0x18007a220
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 0x18007c218
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, [0x1800d1960]
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 0x18007c276
cmp word [rdx], r12w
jne 0x18007c276
or byte [rax + r8*8 + 0x38], cl
jmp 0x18007c27c
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x18007c3d7
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x18007c3b2
lea r9, [rcx + 2]
cmp ax, r13w
je 0x18007c2b5
mov rcx, r9
jmp 0x18007c2d8
cmp r9, rdx
jae 0x18007c2ef
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 0x18007c299
jmp 0x18007c3d7
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 0x18007c3ac
cmp dword [rsp + 0x80], edi
je 0x18007c3ac
mov rdx, r14
lea r11, [0x1800d1960]
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 0x18007c385
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x18007c358
mov word [rbx], r12w
jmp 0x18007c3d3
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 0x18007c361
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x18007c3d3
cmp word [rsp + 0x70], r12w
jne 0x18007c392
cmp rbx, rsi
je 0x18007c352
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18007cea4
cmp word [rsp + 0x70], r12w
je 0x18007c3d7
mov word [rbx], r13w
jmp 0x18007c3d3
lea r11, [0x1800d1960]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x18007c3cf
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x18007c3d7
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 0x180080c38
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 0x180080c68
xor eax, eax
jmp 0x180080d2b
mov rbp, rbx
cmp word [rax], si
je 0x180080c8d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x180080c74
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x180080c70
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.18007f3bc
movsxd r14, eax
test eax, eax
jne 0x180080ccb
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x180080c61
mov rcx, r14
call fcn.18007af50
mov rdi, rax
test rax, rax
jne 0x180080ce4
xor ecx, ecx
call fcn.180079c4c
jmp 0x180080cc0
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.18007f3bc
test eax, eax
jne 0x180080d15
mov rcx, rdi
call fcn.180079c4c
jmp 0x180080d1f
xor ecx, ecx
call fcn.180079c4c
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 0x1800878c0
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.18007cea4
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.18007cea4
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x180087a10
cmp rax, 0xffffffffffffffff
je 0x180087a10
xor edi, edi
test rbp, rbp
jle 0x1800879bb
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.18007a238
mov rbx, rax
test rax, rax
jne 0x180087948
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x1800879b1
mov edx, 0x8000
mov ecx, r14d
call fcn.180087748
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.1800796dc
cmp eax, 0xffffffff
je 0x180087991
cdqe
sub rbp, rax
test rbp, rbp
jg 0x180087958
mov edx, r15d
mov ecx, r14d
call fcn.180087748
jmp 0x1800879b1
cmp byte [rsi + 0x38], dil
je 0x1800879a8
cmp dword [rsi + 0x34], 5
jne 0x1800879a8
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x1800879b1
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.180079c4c
jmp 0x180087a24
jns 0x180087a24
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.18007cea4
cmp rax, 0xffffffffffffffff
jne 0x1800879dc
cmp byte [rsi + 0x30], dil
je 0x180087a24
mov edi, dword [rsi + 0x2c]
jmp 0x180087a24
mov ecx, r14d
call fcn.1800813f0
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x180087a24
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 0x180087a24
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x180087a1d
mov eax, dword [rsi + 0x2c]
jmp 0x180087a22
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.18007cea4
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 0x180088110
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180088138
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180088138
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001010
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x1400d5610]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x1400d5620]
mov dword [rax], 1
mov rax, qword [0x1400d5630]
mov dword [rax], 1
mov rax, qword [0x1400d55a0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x1400d5600]
mov dword [0x1400e200c], 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 [0x1400d56f0]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x1400d56d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [str._x_f_]
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 0x14002a950
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 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 dbg.vfprintf
call sym.abort
nop
nop dword [rax]

Function at 0x14002a9c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x1400e20b4]
mov rbx, rcx
test esi, esi
jle 0x14002aaf0
mov rax, qword [0x1400e20b8]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x14002aa0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x14002aa95
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x14002a9f0
mov rcx, rbx
call dbg.__mingw_GetSectionForAddress
mov rdi, rax
test rax, rax
je 0x14002ab12
mov rax, qword [0x1400e20b8]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call dbg._GetPEImageBase
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x1400e20b8]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x14002aaf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x14002aa8e
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x14002aaa0
add dword [0x1400e20b4], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x1400e20b8]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x14002aa8e
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 esi, esi
jmp 0x14002aa18
mov rax, qword [0x1400e20b8]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call dbg.__report_error
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call dbg.__report_error
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x14002b0a0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x1400e2120]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400e2100]
test rbx, rbx
je 0x14002b0fc
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x14002b0f3
test eax, eax
jne 0x14002b0f3
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x14002b0d8
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x14002b310
Capabilities:
Parse pe header

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

Function at 0x14002b340
Capabilities:
Enumerate pe sections

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

Function at 0x14002b390
Capabilities:
Parse pe header

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rsi, rcx
call sym.strlen
cmp rax, 8
ja 0x14002b420
mov rdx, qword [0x1400d55a0]
xor ebx, ebx
cmp word [rdx], 0x5a4d
jne 0x14002b40e
movsxd rax, dword [rdx + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
jne 0x14002b40e
cmp word [rax + 0x18], 0x20b
jne 0x14002b40e
movzx edx, word [rax + 0x14]
lea rbx, [rax + rdx + 0x18]
movzx edx, word [rax + 6]
test dx, dx
je 0x14002b420
lea eax, [rdx - 1]
lea rax, [rax + rax*4]
lea rdi, [rbx + rax*8 + 0x28]
jmp 0x14002b3f9
add rbx, 0x28
cmp rbx, rdi
je 0x14002b420
mov r8d, 8
mov rdx, rsi
mov rcx, rbx
call sym.strncmp
test eax, eax
jne 0x14002b3f0
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 0x14002b430
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400d55a0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14002b450
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14002b458
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14002b450
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x14002b4ad
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]
mov rdx, r8
cmp rcx, r8
jb 0x14002b4a4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14002b450
add rax, 0x28
cmp rax, r9
jne 0x14002b490
xor eax, eax
ret

Function at 0x14002b4b0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400d55a0]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x14002b4cf
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14002b4d8
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x14002b4cf
movzx ecx, word [rax + 6]
mov eax, ecx
ret