joyce8/EMBER2024-capa huggingface dataset:
Function at 0x180038834
Capabilities:
Read file on windows

Disassembly:
push rbx
sub rsp, 0x50
mov rax, qword [0x1801a5040]
xor rax, rsp
mov qword [rsp + 0x48], rax
and qword [rsp + 0x30], 0
lea rcx, [0x18019e3a0]
mov dword [rsp + 0x28], 0x80
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x20], 3
mov edx, 0x80000000
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1800388ae
and qword [rsp + 0x20], 0
lea r9, [rsp + 0x40]
mov r8d, 0x4c
lea rdx, [0x1801a5320]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ReadFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x1800388b0
xor al, al
mov rcx, qword [rsp + 0x48]
xor rcx, rsp
call fcn.180043740
add rsp, 0x50
pop rbx
ret

Function at 0x1800388c4
Capabilities:
Enumerate process modules
Enumerate processes

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x280
mov rax, qword [0x1801a5040]
xor rax, rsp
mov qword [rsp + 0x270], rax
mov ecx, dword [0x1801a5abc]
mov rax, qword gs:[0x58]
mov edx, 0x10
mov rax, qword [rax + rcx*8]
mov ecx, dword [rdx + rax]
cmp dword [0x1801ab7c4], ecx
jle 0x180038a13
lea rcx, [0x1801ab7c4]
call fcn.18004398c
cmp dword [0x1801ab7c4], 0xffffffff
jne 0x180038a13
xor edx, edx
lea ecx, [rdx + 2]
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rdi, rax
mov dword [rsp + 0x30], 0x238
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
xor ebx, ebx
jmp 0x180038978
lea rdx, str.Bodycam_Win64_Shipping.exe
lea rcx, [rsp + 0x5c]
call qword [sym.imp.KERNEL32.dll_lstrcmpiW]
mov rcx, rdi
test eax, eax
je 0x180038a46
lea rdx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x180038950
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x180038a00
lea r9, [rsp + 0x20]
xor r8d, r8d
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1800389f7
cmp dword [rsp + 0x20], ebx
je 0x1800389f7
mov edx, dword [rsp + 0x20]
mov ecx, 0x40
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x1800389f7
lea r9, [rsp + 0x20]
mov r8d, dword [rsp + 0x20]
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x1800389ee
mov rbx, qword [rdi]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [0x1801ab7b8], rbx
lea rcx, [0x1801ab7c4]
call fcn.180043920
mov rax, qword [0x1801ab7b8]
mov rax, qword [rax + 0x7a1a2c0]
mov rcx, qword [rsp + 0x270]
xor rcx, rsp
call fcn.180043740
lea r11, [rsp + 0x280]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov r8d, dword [rsp + 0x38]
jmp 0x180038988
Function at 0x18003ec54
Capabilities:
Log keystrokes via polling

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
xor esi, esi
mov rdi, rcx
mov ebx, esi
mov ecx, ebx
call qword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
js 0x18003ec85
inc ebx
cmp ebx, 0xff
jl 0x18003ec6a
xor al, al
jmp 0x18003ec89
mov dword [rdi], ebx
mov al, 1
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x180040f50
Capabilities:
Hide graphical window

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
push rbp
lea rbp, [rax - 0x5f]
sub rsp, 0xc0
and dword [rbp - 5], 0
mov ebx, 0x7f00
and dword [rbp + 7], 0
mov edx, ebx
and dword [rbp + 0xb], 0
xor ecx, ecx
and qword [rbp + 0xf], 0
movaps xmmword [rax - 0x18], xmm6
lea rax, [0x180040e5c]
mov qword [rbp - 1], rax
mov dword [rbp - 9], 0x50
call qword [sym.imp.USER32.dll_LoadIconW]
mov edx, ebx
xor ecx, ecx
mov qword [rbp + 0x17], rax
call qword [sym.imp.USER32.dll_LoadCursorW]
mov qword [rbp + 0x1f], rax
mov edx, ebx
mov rax, qword [0x1801a5da0]
xor ecx, ecx
mov qword [rbp + 0x37], rax
xorps xmm6, xmm6
call qword [sym.imp.USER32.dll_LoadIconW]
movups xmm0, xmmword [rbp - 9]
mov qword [rbp + 0x3f], rax
lea rcx, [0x1801a5db0]
movups xmm1, xmmword [rbp + 7]
movaps xmmword [0x1801a5db0], xmm0
movups xmm0, xmmword [rbp + 0x17]
movaps xmmword [0x1801a5dc0], xmm1
movaps xmmword [0x1801a5dd0], xmm0
movups xmm0, xmmword [rbp + 0x37]
movaps xmmword [0x1801a5de0], xmm6
movaps xmmword [0x1801a5df0], xmm0
call qword [sym.imp.USER32.dll_RegisterClassExW]
mov rcx, qword [0x1801a5d00]
test rcx, rcx
je 0x180041066
lea rdx, [0x1801ab668]
call qword [sym.imp.USER32.dll_GetClientRect]
mov rcx, qword [0x1801a5d00]
lea rdx, [0x1801ab760]
call qword [sym.imp.USER32.dll_ClientToScreen]
mov eax, dword [0x1801ab760]
mov ecx, dword [0x1801ab674]
mov dword [0x1801ab668], eax
mov eax, dword [0x1801ab764]
mov dword [0x1801ab66c], eax
mov eax, dword [0x1801ab670]
mov dword [0x1801a5cf8], eax
mov dword [0x1801a5e04], ecx
jmp 0x180041072
mov eax, dword [0x1801a5cf8]
mov ecx, dword [0x1801a5e04]
and qword [rsp + 0x58], 0
mov r9d, 0x90000000
and qword [rsp + 0x50], 0
and qword [rsp + 0x48], 0
and qword [rsp + 0x40], 0
mov rdx, qword [0x1801a5da0]
mov dword [rsp + 0x38], ecx
mov r8, rdx
mov dword [rsp + 0x30], eax
xor ecx, ecx
mov eax, dword [0x1801a5e00]
mov dword [rsp + 0x28], eax
mov eax, dword [0x1801a5d90]
mov dword [rsp + 0x20], eax
call qword [sym.imp.USER32.dll_CreateWindowExW]
mov rcx, rax
mov qword [0x1801a5da8], rax
lea rdx, [0x1801a5308]
call qword [sym.imp.dwmapi.dll_DwmExtendFrameIntoClientArea]
mov rcx, qword [0x1801a5da8]
mov edx, 0xffffffec
mov r8d, 0x800a0
call qword [sym.imp.USER32.dll_SetWindowLongW]
mov rcx, qword [0x1801a5da8]
mov edx, 5
call qword [sym.imp.USER32.dll_ShowWindow]
mov rcx, qword [0x1801a5da8]
lea r11, [rsp + 0xc0]
mov rbx, qword [r11 + 0x10]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop rbp
jmp qword [sym.imp.USER32.dll_UpdateWindow]

Function at 0x1800412a8
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x1800412d0
and qword [rsp + 0x28], 0
lea r8, [0x180041124]
and dword [rsp + 0x20], 0
xor r9d, r9d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x140010040
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 0x140010063
mov rcx, qword [rsp + 0x40]
call fcn.140010120
nop
jmp 0x14001007b
mov rax, qword [rsp + 0x40]
cmp dword [rax], 0x4e0
jb 0x14001007b
mov rcx, qword [rsp + 0x40]
call fcn.1400101d0
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 0x140010120
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp + 8], 0x270
jmp 0x140010141
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x4e0
jae 0x1400101c5
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 0x140010190
mov dword [rsp + 4], 0x9908b0df
jmp 0x140010198
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 0x140010134
add rsp, 0x18
ret
Function at 0x1400101d0
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 0x140010200
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
cmp qword [rsp], 0xe3
jae 0x140010282
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 0x14001024e
mov dword [rsp + 0x14], 0x9908b0df
jmp 0x140010256
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 0x1400101f5
mov qword [rsp + 8], 0xe3
jmp 0x14001029a
mov rax, qword [rsp + 8]
inc rax
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0x26f
jae 0x140010321
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 0x1400102eb
mov dword [rsp + 0x1c], 0x9908b0df
jmp 0x1400102f3
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 0x14001028d
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 0x140010375
mov dword [rsp + 0x24], 0x9908b0df
jmp 0x14001037d
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 0x140011160
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 0x140011244
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 0x1400111f2
mov dword [rsp + 0x18], 1
jmp 0x1400111fa
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 0x14001121a
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 0x1400111ab
mov rax, qword [rsp + 0x28]
cmp qword [rsp + 8], rax
jne 0x14001128f
mov rax, qword [rsp + 0x70]
cqo
and rax, 1
xor rax, rdx
sub rax, rdx
test rax, rax
jne 0x14001128f
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 0x1400112c7
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 0x140011337
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 0x1400112f3
mov dword [rsp + 0x1c], 1
jmp 0x1400112fb
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 0x140011337
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 0x1400112b7
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.14004bee0
add rsp, 0x58
ret

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

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

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

Function at 0x14004afc4
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x28
call fcn.140061aa4
mov rcx, qword [rax + 0x28]
test rcx, rcx
je 0x14004b016
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 0x14004b016
sub ecx, 1
je 0x14004b00f
cmp ecx, 1
je 0x14004b008
xor eax, eax
jmp 0x14004b01b
mov eax, 3
jmp 0x14004b01b
mov eax, 1
jmp 0x14004b01b
mov eax, 2
add rsp, 0x28
ret

Function at 0x14004cd74
Capabilities:
Parse pe header

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

Function at 0x140092360
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 0x1400923ec
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 0x1400923be
movzx eax, word [rbx]
add rbx, 2
test ax, ax
jne 0x14009239d
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.14004bee0
add rsp, 0x250
pop rbx
ret
Function at 0x140093efc
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 0x140093f6b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140093f6b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140093f6b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140093f6b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140093f6b
cmp dword [rcx + 0x84], 0xe
jbe 0x140093f6b
cmp dword [rcx + 0xf8], 0
je 0x140093f6b
mov ecx, ebx
call fcn.140094094
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.140093ce4
nop
cmp dword [rbp + 0x20], 0
jne 0x140093fcc
call fcn.1400abf44
cmp eax, 1
jne 0x140093fbc
xor dl, dl
jmp 0x140093fc6
call fcn.1400abd00
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x140093fd7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140093fe0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140093efc

Function at 0x14009417c
Capabilities:
Parse pe header

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

Function at 0x140099b20
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140099b36
mov al, 1
jmp 0x140099ba2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140099b47
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140099ba0
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400ac4ec
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140099ba0
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 0x140099ba0
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140099ba0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140099ba2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14009e8fc
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 0x14009e961
test rax, rax
jne 0x14009e94f
lea r9, [0x1400ca000]
lea r8, [0x1400c9ff8]
lea rdx, [0x1400ca000]
lea ecx, [rax + 0xa]
call fcn.14009dfc8
test rax, rax
je 0x14009e961
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.1400bd3c0
jmp 0x14009e97b
xor edx, edx
mov rcx, rbp
call fcn.14009edd0
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 0x14009fbf0
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.14004c720
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.14009976c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14009fc3f
mov rax, rbp
jmp 0x14009fd4b
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.1400a1488
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xe9bc0]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14009fd47
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 0x14009fd47
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.1400a1488
test rax, rax
js 0x14009fd47
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14009fd47
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14009fd39
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14009fd39
cmp byte [rcx], 0xd
jne 0x14009fd1f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14009fd2e
cmp byte [rcx + 1], 0xa
jne 0x14009fd2e
inc rcx
jmp 0x14009fd2e
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xe6550]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14009fd01
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14009fd4b
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004bee0
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 0x1400a027c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x30
movsxd r15, ecx
xor edi, edi
mov rax, r15
lea rcx, [0x1400e9bc0]
and eax, 0x3f
mov r12, r15
sar r12, 6
mov rsi, rdx
lea r9d, [rdi + 0xa]
mov r14, r15
lea rbp, [rax + rax*8]
mov rax, qword [rcx + r12*8]
mov r10, qword [rax + rbp*8 + 0x28]
test r8, r8
je 0x1400a02d2
cmp word [rdx], r9w
jne 0x1400a02d2
or byte [rax + rbp*8 + 0x38], 4
jmp 0x1400a02d7
and byte [rax + rbp*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rax, rsi
mov rbx, rsi
cmp rsi, r8
jae 0x1400a0456
mov r11d, 0xd
lea r13d, [r11 - 0xb]
movzx edx, word [rax]
cmp dx, 0x1a
je 0x1400a0421
lea rcx, [rax + 2]
cmp dx, r11w
jne 0x1400a031f
cmp rcx, r8
jae 0x1400a033f
cmp word [rcx], r9w
jne 0x1400a031f
add rax, 4
mov edx, r9d
jmp 0x1400a0322
mov rax, rcx
mov word [rbx], dx
mov r9, r13
mov rcx, rbx
mov r9d, 0xa
lea rbx, [rbx + r13]
cmp rax, r8
jb 0x1400a02f4
jmp 0x1400a0456
lea r9, [rsp + 0x80]
mov word [rsp + 0x70], di
mov r8d, r13d
mov dword [rsp + 0x80], edi
lea rdx, [rsp + 0x70]
mov qword [rsp + 0x20], rdi
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1400a041a
cmp dword [rsp + 0x80], edi
je 0x1400a041a
lea r9, [0x1400e9bc0]
mov rax, qword [r9 + r12*8]
test byte [rax + rbp*8 + 0x38], 0x48
mov ebp, 0xa
je 0x1400a03f4
movzx eax, word [rsp + 0x70]
cmp ax, bp
jne 0x1400a03a7
mov word [rbx], bp
jmp 0x1400a0453
mov word [rsp + 0x78], ax
mov rdx, r14
mov rax, r14
sar rdx, 6
and eax, 0x3f
mov word [rbx], 0xd
lea r8, [rax + rax*8]
mov rax, qword [r9 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, r13
jl 0x1400a03c2
mov rax, r14
sar rax, 6
and r14d, 0x3f
mov rax, qword [r9 + rax*8]
lea rcx, [r14 + r14*8]
mov byte [rax + rcx*8 + 0x3c], bpl
jmp 0x1400a0453
cmp word [rsp + 0x70], bp
jne 0x1400a0400
cmp rbx, rsi
je 0x1400a039f
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.1400a1490
cmp word [rsp + 0x70], bp
je 0x1400a0456
mov word [rbx], 0xd
jmp 0x1400a0453
mov rcx, r15
lea r9, [0x1400e9bc0]
and ecx, 0x3f
mov rax, r15
sar rax, 6
lea r8, [rcx + rcx*8]
mov rcx, qword [r9 + rax*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x1400a0450
or al, r13b
mov byte [rcx + r8*8 + 0x38], al
jmp 0x1400a0456
mov word [rbx], dx
add rbx, r13
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
mov rbx, qword [rsp + 0x88]
add rsp, 0x30
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret