joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14009a900
Capabilities:
Parse pe header

Disassembly:
mov r8, qword [0x1400c2610]
xor eax, eax
cmp word [r8], 0x5a4d
jne 0x14009a920
movsxd rdx, dword [r8 + 0x3c]
add rdx, r8
cmp dword [rdx], 0x4550
je 0x14009a928
ret
cmp word [rdx + 0x18], 0x20b
jne 0x14009a920
movzx eax, word [rdx + 0x14]
movzx r8d, word [rdx + 6]
lea rax, [rdx + rax + 0x18]
test r8w, r8w
je 0x14009a970
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea rdx, [rax + rdx*8 + 0x28]
nop dword [rax]
test byte [rax + 0x27], 0x20
je 0x14009a967
test rcx, rcx
je 0x14009a920
sub rcx, 1
add rax, 0x28
cmp rax, rdx
jne 0x14009a958
xor eax, eax
ret

Function at 0x14009a980
Capabilities:
Parse pe header

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

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

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

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

Disassembly:
mov r11, qword [0x1400c2610]
xor r9d, r9d
cmp word [r11], 0x5a4d
jne 0x14009aa72
movsxd r8, dword [r11 + 0x3c]
add r8, r11
cmp dword [r8], 0x4550
je 0x14009aa80
mov rax, r9
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14009aa72
mov eax, dword [r8 + 0x90]
test eax, eax
je 0x14009aa72
movzx edx, word [r8 + 0x14]
movzx r10d, word [r8 + 6]
lea rdx, [r8 + rdx + 0x18]
test r10w, r10w
je 0x14009aa72
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 0x14009aad5
add r8d, dword [rdx + 8]
cmp rax, r8
jb 0x14009aae8
add rdx, 0x28
cmp rdx, r10
jne 0x14009aac0
xor r9d, r9d
mov rax, r9
ret
add rax, r11
jmp 0x14009aaf7
sub ecx, 1
add rax, 0x14
mov r8d, dword [rax + 4]
test r8d, r8d
jne 0x14009ab07
mov edx, dword [rax + 0xc]
test edx, edx
je 0x14009aade
test ecx, ecx
jg 0x14009aaf0
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
ret
Function at 0x140011217
Capabilities:
Terminate process

Disassembly:
jmp 0x140013450
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x1400112a8
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400147a0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400147c0
xor al, al
jmp 0x140014841
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400147d3
xor al, al
jmp 0x140014841
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x1400147fd
xor al, al
jmp 0x140014841
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014811
xor al, al
jmp 0x140014841
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014823
xor al, al
jmp 0x140014841
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x14001483f
xor al, al
jmp 0x140014841
mov al, 1
add rsp, 0x38
ret
Function at 0x140012680
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113de
movzx eax, al
test eax, eax
jne 0x1400126a0
mov ecx, 7
call fcn.140011348
nop
mov byte [rsp + 0x20], 0
call fcn.14001135c
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x1400126c4
mov ecx, 7
call fcn.140011348
nop
jmp 0x14001271c
cmp dword [0x14001e868], 0
jne 0x140012717
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111bd
test eax, eax
je 0x1400126f8
mov eax, 0xff
jmp 0x140012821
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011352
mov dword [0x14001e868], 2
jmp 0x14001271c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011334
call fcn.1400112cb
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x140012779
mov rcx, qword [rsp + 0x30]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x140012779
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140025020]
nop
call fcn.140011302
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400127ad
mov rcx, qword [rsp + 0x38]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x1400127ad
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001139d
nop
call fcn.1400128d0
mov dword [rsp + 0x28], eax
call fcn.1400112a8
movzx eax, al
test eax, eax
jne 0x1400127cc
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x1400127db
call fcn.1400113a7
nop
xor edx, edx
mov cl, 1
call fcn.140011159
mov eax, dword [rsp + 0x28]
jmp 0x140012821
add rsp, 0x68
ret
Function at 0x140011217
Capabilities:
Terminate process

Disassembly:
jmp 0x140013680
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret

Function at 0x14001129e
Capabilities:
Parse pe header

Disassembly:
jmp 0x1400149d0
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x1400149f0
xor al, al
jmp 0x140014a71
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014a03
xor al, al
jmp 0x140014a71
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140014a2d
xor al, al
jmp 0x140014a71
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014a41
xor al, al
jmp 0x140014a71
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014a53
xor al, al
jmp 0x140014a71
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014a6f
xor al, al
jmp 0x140014a71
mov al, 1
add rsp, 0x38
ret
Function at 0x1400128c0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x68
mov ecx, 1
call fcn.1400113c0
movzx eax, al
test eax, eax
jne 0x1400128e0
mov ecx, 7
call fcn.140011339
nop
mov byte [rsp + 0x20], 0
call fcn.14001134d
mov byte [rsp + 0x21], al
cmp dword [0x14001e868], 1
jne 0x140012904
mov ecx, 7
call fcn.140011339
nop
jmp 0x14001295c
cmp dword [0x14001e868], 0
jne 0x140012957
mov dword [0x14001e868], 1
lea rdx, [0x14001a660]
lea rcx, [0x14001a330]
call fcn.1400111b8
test eax, eax
je 0x140012938
mov eax, 0xff
jmp 0x140012a61
lea rdx, [0x14001a220]
lea rcx, [section..rdata]
call fcn.140011343
mov dword [0x14001e868], 2
jmp 0x14001295c
mov byte [rsp + 0x20], 1
movzx ecx, byte [rsp + 0x21]
call fcn.140011325
call fcn.1400112c1
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
cmp qword [rax], 0
je 0x1400129b9
mov rcx, qword [rsp + 0x30]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x1400129b9
mov rax, qword [rsp + 0x30]
mov rax, qword [rax]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
xor r8d, r8d
mov edx, 2
xor ecx, ecx
mov rax, qword [rsp + 0x50]
call qword [0x140024020]
nop
call fcn.1400112f3
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
cmp qword [rax], 0
je 0x1400129ed
mov rcx, qword [rsp + 0x38]
call fcn.140011168
movzx eax, al
test eax, eax
je 0x1400129ed
mov rax, qword [rsp + 0x38]
mov rcx, qword [rax]
call fcn.14001137f
nop
call fcn.140012b10
mov dword [rsp + 0x28], eax
call fcn.14001129e
movzx eax, al
test eax, eax
jne 0x140012a0c
mov ecx, dword [rsp + 0x28]
call fcn.140011055
nop
movzx eax, byte [rsp + 0x20]
test eax, eax
jne 0x140012a1b
call fcn.140011389
nop
xor edx, edx
mov cl, 1
call fcn.140011154
mov eax, dword [rsp + 0x28]
jmp 0x140012a61
add rsp, 0x68
ret
Function at 0x140005c10
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x40]
sub rsp, 0x140
mov rax, qword [0x140e800c0]
xor rax, rsp
mov qword [rbp + 0x30], rax
mov ebx, edx
xor esi, esi
xorps xmm0, xmm0
xor eax, eax
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
mov qword [rbp + 0x20], rax
movups xmmword [rbp - 0x78], xmm0
mov qword [rbp - 0x68], rax
mov dword [rbp - 0x40], 0x68
mov dword [rbp - 4], 1
mov word [rbp], si
mov edi, esi
mov eax, 0x10
test edx, edx
cmove edi, eax
lea rax, [0x140065d58]
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], 0xd
mov rdx, rcx
cmp qword [rcx + 0x18], 7
jbe 0x140005ca7
mov rdx, qword [rcx]
mov rax, qword [rcx + 0x10]
mov qword [rsp + 0x50], rdx
mov qword [rsp + 0x58], rax
movups xmm0, xmmword [rsp + 0x50]
movups xmmword [rsp + 0x78], xmm0
movabs rax, 0xc000000000000000
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x50], 1
lea rax, [rsp + 0x70]
mov qword [rsp + 0x58], rax
movaps xmm0, xmmword [rsp + 0x50]
movdqa xmmword [rsp + 0x50], xmm0
movaps xmm1, xmmword [rsp + 0x60]
movdqa xmmword [rsp + 0x60], xmm1
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x60]
lea rcx, [rbp - 0x60]
call fcn.14000fc60
lea rdx, [rbp - 0x60]
cmp qword [rbp - 0x48], 7
cmova rdx, qword [rbp - 0x60]
lea rax, [rbp - 0x78]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x40]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rsi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], esi
xor r9d, r9d
xor r8d, r8d
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x140005d52
xor bl, bl
jmp 0x140005d8b
test ebx, ebx
je 0x140005d62
mov edx, ebx
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rbp - 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x50], 1
lea rcx, [rsp + 0x50]
call fcn.14000d730
mov bl, 1
mov rdx, qword [rbp - 0x48]
cmp rdx, 7
jbe 0x140005dc7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rbp - 0x60]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005dc2
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140005def
call fcn.1400231a0
movzx eax, bl
mov rcx, qword [rbp + 0x30]
xor rcx, rsp
call fcn.140023180
lea r11, [rsp + 0x140]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
call fcn.14002ab48
int3
Function at 0x140009990
Capabilities:
Read file on windows

Disassembly:
push rbx
push r14
push r15
sub rsp, 0x30
mov r15, r8
mov r14, rdx
mov rbx, rcx
test r8, r8
jg 0x1400099b4
xor eax, eax
add rsp, 0x30
pop r15
pop r14
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rdi
je 0x140009a42
mov rdi, r15
mov qword [rsp + 0x68], rbp
lea rsi, [rcx + 0x50]
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140009a10
mov rax, qword [rsi]
movsxd rcx, dword [rax]
test ecx, ecx
jle 0x140009a10
cmp rdi, rcx
mov rbp, rdi
cmovge rbp, rcx
mov rcx, r14
mov r8, rbp
call fcn.14003bbd0
mov rax, qword [rsi]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x140009a2d
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x140009a35
mov byte [r14], al
lea rsi, [rbx + 0x50]
dec rdi
mov ebp, 1
add r14, rbp
test rdi, rdi
jg 0x1400099d1
mov rbp, qword [rsp + 0x68]
sub r15, rdi
jmp 0x140009b20
mov rax, qword [rcx + 0x38]
mov rsi, r15
mov rdx, qword [rax]
test rdx, rdx
je 0x140009a59
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x140009a5b
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x140009a8d
cmp rax, r15
mov rdi, r15
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call fcn.14003bbd0
mov rax, qword [rbx + 0x50]
add r14, rdi
sub rsi, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x140009b1d
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140009ac8
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rsi, 0xfff
jbe 0x140009afe
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call fcn.14002a324
add r14, rax
sub rsi, rax
cmp rax, 0xfff
jne 0x140009b1d
cmp rsi, rax
ja 0x140009ad1
test rsi, rsi
je 0x140009b1d
mov r9, qword [rbx + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.14002a324
sub rsi, rax
sub r15, rsi
mov rsi, qword [rsp + 0x28]
mov rax, r15
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r15
pop r14
pop rbx
ret

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

Disassembly:
sub r8, rdx
movabs rax, 0xcbf29ce484222325
sar r8, 1
mov r9d, 0
add r8, r8
je 0x1400111e4
movabs r10, 0x100000001b3
nop word [rax + rax]
movzx ecx, byte [rdx + r9]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x1400111d0
ret
Function at 0x140018ff0
Capabilities:
Validate payment card number using luhn algorithm

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov dword [rcx + 0x74], 0
mov rbx, rcx
mov edi, 0x7fffffff
mov ebp, 0xfffd
nop word [rax + rax]
movzx ecx, word [rbx + 0x78]
lea eax, [rcx - 0x30]
cmp ax, 9
ja 0x1400190d3
lea r8d, [rcx - 0x30]
cmp r8d, 0xffffffff
je 0x1400190d3
mov r9d, dword [rbx + 0x74]
mov ecx, 0x7fffffff
sub ecx, r8d
mov eax, 0x66666667
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
cmp r9d, edx
jg 0x1400190f1
lea eax, [r9 + r9*4]
dec edi
lea ecx, [r8 + rax*2]
mov rax, qword [rbx + 0x10]
mov dword [rbx + 0x74], ecx
mov rcx, qword [rbx]
cmp rcx, rax
je 0x1400190c3
cmp word [rcx], 0x5c
jne 0x1400190bc
lea rdx, [rcx + 2]
cmp rdx, rax
je 0x1400190bc
mov r8d, dword [rbx + 0x80]
test r8b, 8
jne 0x1400190a7
movzx eax, word [rdx]
sub ax, 0x28
cmp ax, 1
jbe 0x1400190b9
test r8b, 0x10
jne 0x1400190bc
movzx eax, word [rdx]
sub ax, 0x7b
test bp, ax
jne 0x1400190bc
mov rcx, rdx
lea rax, [rcx + 2]
mov qword [rbx], rax
mov rcx, rbx
call fcn.140012b80
test edi, edi
jne 0x140019020
mov rbx, qword [rsp + 0x30]
cmp edi, 0x7fffffff
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
setne al
add rsp, 0x20
pop rdi
ret
mov edx, esi
call fcn.140012b70
int3

Function at 0x140020f08
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, [0x14003e560]
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x140020f42
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x140020f47
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 0x140020f90
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x14003e460]
cmp byte [rcx + rax], 0
je 0x140020f90
dec r8
sub rdx, 1
jne 0x140020f76
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140024028
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140024072
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140024072
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140024072
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140024072
cmp dword [rcx + 0x84], 0xe
jbe 0x140024072
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140024074
xor al, al
add rsp, 0x28
ret
Function at 0x14002c8ec
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 0x14002c95b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14002c95b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14002c95b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14002c95b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14002c95b
cmp dword [rcx + 0x84], 0xe
jbe 0x14002c95b
cmp dword [rcx + 0xf8], 0
je 0x14002c95b
mov ecx, ebx
call fcn.14002ca00
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.14002c7f4
nop
cmp dword [rbp + 0x20], 0
jne 0x14002c9bc
call fcn.140036b68
cmp eax, 1
jne 0x14002c9ac
xor dl, dl
jmp 0x14002c9b6
call fcn.140036b34
test al, al
sete dl
cmp dword [rbp + 0x20], 0
je 0x14002c9c7
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14002c9d0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14002c8ec

Function at 0x14002cad4
Capabilities:
Parse pe header

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

Function at 0x14002f52c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14002f542
mov al, 1
jmp 0x14002f5ae
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14002f553
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14002f5ac
mov ecx, dword [rcx + 0x18]
nop
call fcn.140037044
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14002f5ac
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 0x14002f5ac
and qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14002f5ac
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002f5ae
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400317b0
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 [0x140e87050]
mov ebx, r9d
mov rdi, r8
mov esi, edx
mov rbp, rcx
cmp rax, 0xffffffffffffffff
je 0x140031815
test rax, rax
jne 0x140031803
lea r9, [0x14005fbc0]
lea r8, [0x14005fbb8]
lea rdx, [0x14005fbc0]
lea ecx, [rax + 0xa]
call fcn.1400314d0
test rax, rax
je 0x140031815
mov r9d, ebx
mov r8, rdi
mov edx, esi
mov rcx, rbp
call fcn.14003bb90
jmp 0x14003182f
xor edx, edx
mov rcx, rbp
call fcn.140031aa0
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 0x140032370
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.140023aa0
sub rsp, rax
mov rax, qword [0x140e800c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14002f40c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400323bf
mov rax, rbp
jmp 0x1400324cb
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 + 0xe82850]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140033378
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xe82850]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1400324c7
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 0x1400324c7
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140033378
test rax, rax
js 0x1400324c7
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1400324c7
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400324b9
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400324b9
cmp byte [rcx], 0xd
jne 0x14003249f
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400324ae
cmp byte [rcx + 1], 0xa
jne 0x1400324ae
inc rcx
jmp 0x1400324ae
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xe804e0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140032481
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1400324cb
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140023180
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret