joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400ae310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400ecfe1], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x1400ae398
lea rdx, [0x1400d6d5a]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x1400ae400
mov rbx, qword [0x1400ece88]
jmp 0x1400ae355
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x1400ae350
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14009d600
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400ece88], rax
mov ebx, dword [rax]
mov qword [0x1400ece88], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400ece88], rdx
call fcn.1400ad440
cmp eax, ebx
jne 0x1400ae487
mov byte [0x1400ecfe1], 1
jmp 0x1400ae32c
cmp byte [0x1400ecfe0], 0
jne 0x1400ae343
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x1400ed948], rax
call rbx
mov qword [0x1400ed940], rax
call rbx
mov qword [0x1400ed938], rax
call rbx
mov qword [0x1400ed930], rax
call rbx
mov qword [0x1400ed928], rax
call rbx
mov qword [0x1400ed920], rax
call rbx
mov qword [0x1400ed918], rax
call rbx
mov byte [0x1400ecfe0], 1
mov qword [0x1400ed910], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xdc0
mov qword [0x1400ece80], rax
jmp 0x1400ae343
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x1400b6b20
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400c82a0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400c82a0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x1400b77f2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400edda8]
test eax, eax
je 0x1400b788a
lea rax, [0x1400edd80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400eddb0]
mov qword [rbp - 8], rax
jmp 0x1400b786e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x1400b7862
cmp qword [rbp - 0x10], 0
je 0x1400b7862
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400b7828
lea rax, [0x1400edd80]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400b788b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400b7990
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400b79b8
mov eax, 0
jmp 0x1400b7a06
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400b79e1
mov eax, 0
jmp 0x1400b7a06
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400b7a01
mov eax, 0
jmp 0x1400b7a06
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x1400b7a0c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400b7a8a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400b7a81
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400b7a81
mov rax, qword [rbp - 8]
jmp 0x1400b7a9f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400b7a54
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14006718c
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 0x10], rbx
mov dword [rsp + 8], ecx
push rbp
push rsi
push rdi
mov rbp, rsp
sub rsp, 0x40
mov rbx, rdx
xorps xmm0, xmm0
movdqu xmmword [rbp - 0x20], xmm0
xor esi, esi
mov qword [rbp - 0x10], rsi
mov dword [rbp + 0x30], esi
lea r8, [rbp + 0x30]
xor edx, edx
lea ecx, [rsi + 3]
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
je 0x1400671d4
lea edi, [rsi + 0xd]
jmp 0x14006728f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
cmp eax, 0xea
jne 0x14006728f
mov word [rbp + 0x20], si
mov edx, dword [rbp + 0x30]
mov r8, qword [rbp - 0x18]
mov rcx, r8
mov rdi, qword [rbp - 0x20]
sub rcx, rdi
sar rcx, 1
cmp rdx, rcx
jae 0x140067214
lea rax, [rdi + rdx*2]
mov qword [rbp - 0x18], rax
jmp 0x140067255
jbe 0x140067255
mov rax, qword [rbp - 0x10]
sub rax, rdi
sar rax, 1
cmp rdx, rax
jbe 0x140067238
lea r8, [rbp + 0x20]
lea rcx, [rbp - 0x20]
call fcn.140043124
mov rdi, qword [rbp - 0x20]
jmp 0x140067255
sub rdx, rcx
je 0x140067251
movzx eax, si
mov rdi, r8
mov rcx, rdx
rep stosw word [rdi], ax
lea r8, [r8 + rdx*2]
mov rdi, qword [rbp - 0x20]
mov qword [rbp - 0x18], r8
lea r8, [rbp + 0x30]
mov rdx, rdi
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_GetComputerNameExW]
nop dword [rax + rax]
test eax, eax
jne 0x140067281
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006728f
mov rdx, qword [rbp - 0x20]
mov rcx, rbx
call fcn.140004374
mov edi, esi
lea rcx, [rbp - 0x20]
call fcn.140020b54
mov eax, edi
mov rbx, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x140067cf0
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x1400b4480], eax
call fcn.140068190
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x1400b4480], 0
jne case.default.0x140067d46
mov ecx, 1
call fcn.140068190
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
out dx, eax
fadd qword [rdx + 0x4dd51b86]
invalid
Function at 0x1400105d0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x270
jne 0x1400105f3
mov rcx, qword [rsp + 0x40]
call fcn.1400106b0
nop
jmp 0x14001060b
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14001060b
mov rcx, qword [rsp + 0x40]
call fcn.140010760
nop
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
mov rcx, qword [rsp + 0x40]
mov eax, dword [rcx + rax*4 + 4]
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax]
inc eax
mov rcx, qword [rsp + 0x40]
mov dword [rcx], eax
mov eax, dword [rsp + 0x24]
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0xb
mov rcx, qword [rsp + 0x40]
and eax, dword [rcx + 0x1384]
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 7
and eax, 0x9d2c5680
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shl eax, 0xf
and eax, 0xefc60000
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
shr eax, 0x12
mov ecx, dword [rsp + 0x20]
xor ecx, eax
mov eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
add rsp, 0x38
ret

Function at 0x1400106b0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x1400106d1
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x140010755
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 - 0x9bc]
and eax, 0x80000000
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 - 0x9b8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp], eax
mov eax, dword [rsp]
and eax, 1
test eax, eax
je 0x140010720
mov dword [rsp + 4], 0x9908b0df
jmp 0x140010728
mov dword [rsp + 4], 0
mov eax, dword [rsp]
shr eax, 1
xor eax, dword [rsp + 4]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x1400106c4
add rsp, 0x18
ret
Function at 0x140010760
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x48
mov qword [rsp + 0x28], 0x26f
mov qword [rsp + 0x30], 0xe3
mov qword [rsp], 0
jmp 0x140010790
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x140010812
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x10], eax
mov eax, dword [rsp + 0x10]
and eax, 1
test eax, eax
je 0x1400107de
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x1400107e6
mov dword [rsp + 0x14], 0
mov eax, dword [rsp + 0x10]
shr eax, 1
xor eax, dword [rsp + 0x14]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
xor eax, dword [rcx + rdx*4 + 0xff8]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x140010785
mov qword [rsp + 8], 0xe3
jmp 0x14001082a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x1400108b1
mov rax, qword [rsp + 0x50]
mov rcx, qword [rsp + 8]
mov eax, dword [rax + rcx*4 + 0x9c4]
and eax, 0x80000000
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov ecx, dword [rcx + rdx*4 + 0x9c8]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x18], eax
mov eax, dword [rsp + 0x18]
and eax, 1
test eax, eax
je 0x14001087b
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x140010883
mov dword [rsp + 0x1c], 0
mov eax, dword [rsp + 0x18]
shr eax, 1
xor eax, dword [rsp + 0x1c]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
xor eax, dword [rcx + rdx*4 - 0x388]
mov rcx, qword [rsp + 0x50]
mov rdx, qword [rsp + 8]
mov dword [rcx + rdx*4 + 4], eax
jmp 0x14001081d
mov qword [rsp + 0x38], 0x26f
mov eax, 4
imul rax, rax, 0x4df
mov rcx, qword [rsp + 0x50]
mov eax, dword [rcx + rax + 4]
and eax, 0x80000000
mov ecx, 4
imul rcx, rcx, 0
mov rdx, qword [rsp + 0x50]
mov ecx, dword [rdx + rcx + 4]
btr ecx, 0x1f
or eax, ecx
mov dword [rsp + 0x20], eax
mov eax, dword [rsp + 0x20]
and eax, 1
test eax, eax
je 0x140010905
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14001090d
mov dword [rsp + 0x24], 0
mov eax, dword [rsp + 0x20]
shr eax, 1
xor eax, dword [rsp + 0x24]
mov ecx, 4
imul rcx, rcx, 0x18c
mov rdx, qword [rsp + 0x50]
xor eax, dword [rdx + rcx + 4]
mov ecx, 4
imul rcx, rcx, 0x26f
mov rdx, qword [rsp + 0x50]
mov dword [rdx + rcx + 4], eax
mov rax, qword [rsp + 0x50]
mov dword [rax], 0
add rsp, 0x48
ret
Function at 0x1400116f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov rax, qword [0x1400e6100]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x70]
dec rax
sar rax, 1
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 8], rax
jge 0x1400117d4
mov rax, qword [rsp + 8]
lea rax, [rax + rax + 2]
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 8]
mov edx, dword [rdx + r8*4 - 4]
cmp dword [rax + rcx*4], edx
jge 0x140011782
mov dword [rsp + 0x18], 1
jmp 0x14001178a
mov dword [rsp + 0x18], 0
movzx eax, byte [rsp + 0x18]
mov byte [rsp], al
movzx eax, byte [rsp]
movzx eax, al
test eax, eax
je 0x1400117aa
mov rax, qword [rsp + 8]
dec rax
mov qword [rsp + 8], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 8]
mov edx, dword [rdx + r8*4]
mov dword [rax + rcx*4], edx
mov rax, qword [rsp + 8]
mov qword [rsp + 0x68], rax
jmp 0x14001173b
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 8], rax
jne 0x14001181f
mov rax, qword [rsp + 0x70]
cqo
and rax, 1
xor rax, rdx
sub rax, rdx
test rax, rax
jne 0x14001181f
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x68]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x70]
mov edx, dword [rdx + r8*4 - 4]
mov dword [rax + rcx*4], edx
mov rax, qword [rsp + 0x70]
dec rax
mov qword [rsp + 0x68], rax
movzx eax, byte [rsp + 0x80]
mov byte [rsp + 0x38], al
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x10], rax
mov rax, qword [rsp + 0x10]
dec rax
sar rax, 1
mov qword [rsp + 0x20], rax
jmp 0x140011857
mov rax, qword [rsp + 0x10]
dec rax
sar rax, 1
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x10]
cmp qword [rsp + 0x30], rax
jge 0x1400118c7
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x78]
mov edx, dword [rdx]
cmp dword [rax + rcx*4], edx
jge 0x140011883
mov dword [rsp + 0x1c], 1
jmp 0x14001188b
mov dword [rsp + 0x1c], 0
movzx eax, byte [rsp + 0x1c]
mov byte [rsp + 1], al
movzx eax, byte [rsp + 1]
movzx eax, al
test eax, eax
je 0x1400118c7
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x60]
mov r8, qword [rsp + 0x20]
mov edx, dword [rdx + r8*4]
mov dword [rax + rcx*4], edx
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x10], rax
jmp 0x140011847
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x10]
mov rdx, qword [rsp + 0x78]
mov edx, dword [rdx]
mov dword [rax + rcx*4], edx
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14004c470
add rsp, 0x58
ret

Function at 0x14003f5c4
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140027c36
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140027c19
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140027c04
Function at 0x14003f5d8
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x140027c6e
movzx eax, byte [rcx + rdx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x140027c51
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x140027c3c

Function at 0x14004b554
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.140062034
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14004b5a6
and dword [rsp + 0x30], 0
lea r8, [rsp + 0x30]
mov r9d, 2
lea edx, [r9 + 0x20]
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
movzx ecx, word [rsp + 0x30]
sub ecx, 0x30
je 0x14004b5a6
sub ecx, 1
je 0x14004b59f
cmp ecx, 1
je 0x14004b598
xor eax, eax
jmp 0x14004b5ab
mov eax, 3
jmp 0x14004b5ab
mov eax, 1
jmp 0x14004b5ab
mov eax, 2
add rsp, 0x28
ret

Function at 0x14004d304
Capabilities:
Parse pe header

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

Function at 0x1400928f0
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x250
mov rax, qword [0x1400e6100]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rcx
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
mov r10, rax
lea rdx, [rax - 1]
cmp rdx, 0xfffffffffffffffd
ja 0x14009297c
lea r8, [rsp + 0x40]
xor edx, edx
mov cl, byte [rbx]
lea rax, [rsp + 0x234]
mov byte [r8], cl
inc r8
cmp r8, rax
je 0x14009294e
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x14009292d
lea rax, [rsp + 0x40]
mov byte [rsp + 0x233], dl
sub r8d, eax
mov dword [rsp + 0x30], edx
mov qword [rsp + 0x20], rdx
lea r9, [rsp + 0x30]
dec r8d
lea rdx, [rsp + 0x40]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14004c470
add rsp, 0x250
pop rbx
ret
Function at 0x14009448c
Capabilities:
Parse pe header

Disassembly:
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 0x1400944fb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400944fb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400944fb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400944fb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400944fb
cmp dword [rcx + 0x84], 0xe
jbe 0x1400944fb
cmp dword [rcx + 0xf8], 0
je 0x1400944fb
mov ecx, ebx
call fcn.140094624
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.140094274
nop
cmp dword [rbp + 0x20], 0
jne 0x14009455c
call fcn.1400ac4d4
cmp eax, 1
jne 0x14009454c
xor dl, dl
jmp 0x140094556
call fcn.1400ac290
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140094567
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140094570
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14009448c

Function at 0x14009470c
Capabilities:
Parse pe header

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

Function at 0x14009a0b0
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14009a0c6
mov al, 1
jmp 0x14009a132
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14009a0d7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14009a130
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400aca7c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14009a130
and qword [rsp + 0x38], 0
lea r8, [rsp + 0x38]
mov r9d, 1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14009a130
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14009a130
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14009a132
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14009ee8c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x30
mov rax, qword [0x1400f7050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x14009eef1
test rax, rax
jne 0x14009eedf
lea r9, [0x1400ca000]
lea r8, [0x1400c9ff8]
lea rdx, [0x1400ca000]
lea ecx, [rax + 0xa]
call fcn.14009e558
test rax, rax
je 0x14009eef1
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400bd950
jmp 0x14009ef0b
xor edx, edx
mov rcx, rbp
call fcn.14009f360
mov ecx, eax
mov r9d, ebx
mov r8, rdi
mov edx, esi
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a0180
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.14004ccb0
sub rsp, rax
mov rax, qword [0x1400e6100]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140099cfc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400a01cf
mov rax, rbp
jmp 0x1400a02db
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 + 0xe9bc0]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.1400a1a18
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xe9bc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400a02d7
mov dword [rsp + 0x30], edi
lea r9, [rsp + 0x30]
mov rcx, qword [rcx + r12*8 + 0x28]
lea rdx, [rsp + 0x40]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a02d7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a1a18
test rax, rax
js 0x1400a02d7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400a02d7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400a02c9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400a02c9
cmp byte [rcx], 0xd
jne 0x1400a02af
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400a02be
cmp byte [rcx + 1], 0xa
jne 0x1400a02be
inc rcx
jmp 0x1400a02be
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xe6550]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400a0291
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400a02db
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004c470
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret