joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140070694
Capabilities:
Get geographical location

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

Function at 0x140070cfc
Capabilities:
Parse pe header

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

Function at 0x140076bd8
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140076d2c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140076d9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140076d9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140076d9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140076d9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140076d9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140076d9b
cmp dword [rcx + 0xf8], 0
je 0x140076d9b
mov ecx, ebx
call fcn.140076c58
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140076ec0
nop
cmp dword [rbp + 0x20], 0
je 0x140076de9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140076cf8
int3
Function at 0x140076d2c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140076d2c
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140076d9b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140076d9b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140076d9b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140076d9b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140076d9b
cmp dword [rcx + 0x84], 0xe
jbe 0x140076d9b
cmp dword [rcx + 0xf8], 0
je 0x140076d9b
mov ecx, ebx
call fcn.140076c58
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140076ec0
nop
cmp dword [rbp + 0x20], 0
je 0x140076de9
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140076cf8
int3

Function at 0x140079a54
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x28
test r8, r8
jne 0x140079a74
call fcn.1400803e4
mov dword [rax], reloc.WS2_32.dll_shutdown
call fcn.140078040
xor eax, eax
add rsp, 0x28
ret
test rdx, rdx
je 0x140079a5d
test rcx, rcx
jne 0x140079a83
cmp qword [r8], rcx
je 0x140079a5d
add rsp, 0x28
jmp 0x140079a8c
push rbx
push rsi
push rdi
sub rsp, 0x50
mov rax, qword [0x1400c3780]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor r9d, r9d
mov rsi, r8
mov eax, r9d
mov r11, rdx
cmp rax, 0x20
mov r10, rcx
jae 0x140079bb1
mov byte [rsp + rax + 0x20], r9b
inc rax
cmp rax, 0x20
jl 0x140079ab6
movzx r8d, byte [r11]
inc r11
mov edx, r8d
mov eax, r8d
shr rdx, 3
and eax, 7
movzx ecx, byte [rsp + rdx + 0x20]
bts ecx, eax
mov byte [rsp + rdx + 0x20], cl
test r8b, r8b
jne 0x140079aca
test r10, r10
jne 0x140079af7
mov r10, qword [rsi]
movzx r8d, byte [r10]
mov edx, 1
mov eax, r8d
mov ecx, r8d
and ecx, 7
shr rax, 3
shl edx, cl
mov rbx, r10
test byte [rsp + rax + 0x20], dl
je 0x140079b54
mov rdi, r10
mov r11b, r8b
mov rbx, rdi
mov r8b, r11b
test r11b, r11b
je 0x140079b54
lea r10, [rdi + 1]
mov edx, 1
movzx r11d, byte [r10]
mov rdi, r10
mov eax, r11d
mov ecx, r11d
and ecx, 7
shr rax, 3
shl edx, cl
mov rbx, r10
mov r8b, r11b
test byte [rsp + rax + 0x20], dl
jne 0x140079b1e
mov r11, rbx
test r8b, r8b
je 0x140079b8f
mov al, byte [rbx]
movzx r8d, al
mov edx, 1
mov ecx, r8d
inc r11
and ecx, 7
shr r8, 3
shl edx, cl
test byte [rsp + r8 + 0x20], dl
jne 0x140079b89
mov al, byte [r11]
mov r10, r11
test al, al
jne 0x140079b5e
jmp 0x140079b8f
mov byte [r10], r9b
mov r10, r11
cmp r11, rbx
mov qword [rsi], r10
cmovne r9, rbx
mov rax, r9
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14006e470
add rsp, 0x50
pop rdi
pop rsi
pop rbx
ret
call fcn.140070814
int3
Function at 0x14007a5d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007a5f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14007a5f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140082e5c
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 0x140082e8c
xor eax, eax
jmp 0x140082f4f
mov rbp, rbx
cmp word [rax], si
je 0x140082eb1
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140082e98
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140082e94
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.140082dac
movsxd r14, eax
test eax, eax
jne 0x140082eef
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140082e85
mov rcx, r14
call fcn.1400805cc
mov rdi, rax
test rax, rax
jne 0x140082f08
xor ecx, ecx
call fcn.14007d8f8
jmp 0x140082ee4
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.140082dac
test eax, eax
jne 0x140082f39
mov rcx, rdi
call fcn.14007d8f8
jmp 0x140082f43
xor ecx, ecx
call fcn.14007d8f8
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 0x1400885fc
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.140078774
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140088686
cmp byte [rbp - 0x21], r15b
je 0x140088681
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400886bc
call fcn.14007e6d0
test eax, eax
jne 0x1400886a8
cmp byte [rbp - 0x21], r15b
je 0x1400886a0
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400886bc
cmp byte [rbp - 0x21], r15b
je 0x1400886b9
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.140082258
test eax, eax
jne 0x14008875c
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140078774
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400886fb
cmp byte [rbp - 0x21], r15b
je 0x140088730
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140088730
call fcn.14007e6d0
test eax, eax
jne 0x14008871c
cmp byte [rbp - 0x21], r15b
je 0x140088715
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140088730
cmp byte [rbp - 0x21], r15b
je 0x14008872d
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.140082258
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14008875c
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14008875f
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14008876d
mov rcx, rdi
call fcn.14007d8f8
cmp byte [rbp + 0x3f], r15b
je 0x14008877c
mov rcx, qword [rbp + 0x27]
call fcn.14007d8f8
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 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x1834c1674
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1834c167e
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x1834c16a7
pop rbp
sub rbp, 0x33
sub rbp, 0x34c1674
cmp edx, 1
je 0x1834c16ea
ldmxcsr dword [rsp]
add rsp, 8
popfq
pop r15
pop r14
pop r13
pop r12
pop r11
pop r10
pop r9
pop r8
pop rdi
pop rsi
pop rbp
pop rbx
pop rdx
pop rcx
pop rax
xor rax, rax
ret
sub rsp, 0x20
jmp 0x1834c16fa
mov rax, 0x34c1674
add rax, rbp
add rax, 0xb8
mov rcx, 0x60b
mov rdx, 0x448f6651
xor byte [rax], dl
inc rax
dec rcx
jne 0x1834c1719
jmp 0x1834c1730
sbb eax, ebx
mov eax, 0x516dd8da
push rcx
push rcx
sbb eax, edx
nop
pop rcx
push rax
push rcx
push rcx
sbb dword [rax - 0x48], edx
sbb dword [rsi + 0x51515491], edx
push rcx
sbb dword [rsi + 0x51517993], edx
push rcx
sbb dword [rsi - 0x6fafe64d], esp
fcmovbe st(0), st(0)
pop rbp
push rcx
push rcx
push rcx
sbb dword [rax - 0x47], edx
add dword [rcx], eax
sbb ecx, ebp
movabs eax, dword [0x195151515151c26a]
call 0x1d735a345
push rcx
push rcx
push rcx
push rcx
sbb dword [rax - 0x48], edx
sbb ebx, ebp
push rbp
insd dword [rdi], dx
mov esi, 0x51515142
push rcx
mov ecx, 0x51515154
mov eax, 0x51515147
nop
mov ecx, 0x19406053
rcl byte [rax + 0x51515155]
sbb dword [rsi - 0x402ba167], ebp
scasb al, byte [rdi]
scasb al, byte [rdi]
scasb al, byte [rdi]
xchg edx, eax
or dword [rbx], ecx
add eax, dword [rcx]
sbb ecx, ebp
movabs eax, dword [0x195151515151c26a]
call 0x1d735a38a
push rcx
push rcx
push rcx
push rcx
sbb dword [rax - 0x48], edx
mov ecx, 0x51515154
mov eax, 0x515153dc
add edi, dword [rcx + 0x5151512c]
or eax, dword [rsi]
sbb eax, ebx
xchg byte [rcx], bl
invalid
Function at 0x1400023a0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x270
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x260], rax
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
lea rdi, str.cs2.exe
nop word [rax + rax]
xor ecx, ecx
lea rdx, [rsp + 0x4c]
nop word [rax + rax]
movzx eax, word [rdi + rcx*2]
inc rcx
cmp ax, word [rdx + rcx*2 - 2]
jne 0x140002443
cmp rcx, 8
jne 0x140002400
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x28]
xor edx, edx
mov ecx, 0x1fffff
mov qword [0x140006788], r8
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [0x140006708], rax
mov eax, dword [rsp + 0x28]
jmp 0x140002460
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x1400023f0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.140002580
mov rbx, qword [rsp + 0x280]
add rsp, 0x270
pop rdi
ret

Function at 0x140002490
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x470
mov rax, qword [0x140006010]
xor rax, rsp
mov qword [rsp + 0x460], rax
mov edx, ecx
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x438
mov rcx, rax
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_Module32FirstW]
lea rdi, str.client.dll
nop dword [rax]
lea rdx, [rsp + 0x50]
mov rcx, 0xffffffffffffffff
nop dword [rax]
movzx eax, word [rdi + rcx*2 + 2]
cmp ax, word [rdx + rcx*2 + 2]
jne 0x140002510
add rcx, 2
cmp rcx, 0xb
je 0x14000254e
movzx eax, word [rdi + rcx*2]
cmp ax, word [rdx + rcx*2]
je 0x1400024f0
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Module32NextW]
test eax, eax
jne 0x1400024e0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov rcx, qword [rsp + 0x460]
xor rcx, rsp
call fcn.140002580
mov rbx, qword [rsp + 0x488]
add rsp, 0x470
pop rdi
ret
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rsp + 0x38]
jmp 0x14000252d

Function at 0x140002fec
Capabilities:
Parse pe header

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

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140004430]
xor ecx, ecx
mov dword [rax], 1
mov rax, qword [0x140004440]
mov dword [rax], 1
mov rax, qword [0x140004450]
mov dword [rax], 1
mov rax, qword [0x1400043d0]
cmp word [rax], 0x5a4d
jne 0x14000105a
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400010c0
mov rax, qword [0x140004420]
mov dword [0x140007020], 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 [0x1400044f0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg.__p__commode
mov rdx, qword [0x1400044d0]
mov edx, dword [rdx]
mov dword [rax], edx
call dbg._setargv
mov rax, qword [0x140004380]
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 0x140001830
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 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 rsi, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call sym.vfprintf
call sym.abort
nop
nop dword [rax]
Function at 0x140002200
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 0x14000224d
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 0x140002244
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x14000224f
add rax, 0x28
cmp rax, r9
jne 0x140002230
xor eax, eax
ret

Function at 0x140002250
Capabilities:
Parse pe header

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

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

Function at 0x140002370
Capabilities:
Parse pe header

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

Function at 0x1400023b0
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400043d0]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x1400023d0
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x1400023d8
ret
cmp word [rdx + 0x18], 0x20b
jne 0x1400023d0
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x140002420
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x140002417
test rcx, rcx
je 0x1400023d0
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x140002408
xor eax, eax
ret
Function at 0x140002430
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400043d0]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x140002522
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x140002530
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002522
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x140002522
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x140002522
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 0x140002585
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x140002598
add rdx, 0x28
cmp rdx, r10
jne 0x140002570
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x1400025a7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x1400025b7
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14000258e
test ecx, ecx
jg 0x1400025a0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x413260
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4133eb
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432480
xorps xmm15, xmm15
mov r14, qword [0x00604d98]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
jne 0x4132c5
mov rax, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
jmp 0x4132d4
add rsp, 0x48
pop rbp
ret
sub rcx, rbx
add rax, rbx
mov rbx, rcx
test rbx, rbx
jbe 0x4132f3
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x40], rax
mov rcx, rbx
jmp 0x413303
cmp rbx, 0x1000
jae 0x4132cb
jmp 0x41336d
add rsp, 0x48
pop rbp
ret
shr rbx, 1
and rbx, 0xfffffffffffff000
mov qword [rsp + 0x38], rbx
cmp rbx, 0x1000
jae 0x413315
xor edx, edx
jmp 0x413364
mov rcx, qword [sym.imp.kernel32.dll_VirtualFree]
mov qword [rsp], rcx
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], 0x4000
call fcn.00432480
xorps xmm15, xmm15
mov r14, qword [0x00604d98]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x20], 0
sete al
mov rcx, qword [rsp + 0x28]
mov rbx, qword [rsp + 0x38]
mov edx, eax
mov rax, qword [rsp + 0x40]
test dl, dl
jne 0x4132f9
jmp 0x4132e8
call fcn.0046e900
xorps xmm15, xmm15
mov r14, qword [0x00604d98]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov eax, dword [rsp]
mov qword [rsp + 0x30], rax
call fcn.00436c40
lea rax, [0x004e6979]
mov ebx, 0x18
nop dword [rax]
call fcn.004374c0
mov rax, qword [rsp + 0x38]
call fcn.00437200
lea rax, [0x004e6f50]
mov ebx, 0x19
nop dword [rax + rax]
call fcn.004374c0
mov rax, qword [rsp + 0x30]
call fcn.00437200
call fcn.00436e80
call fcn.00436ca0
lea rax, [0x004e9a2d]
mov ebx, 0x21
call fcn.00465ea0
nop
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.0046b1e0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.00413260