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

Disassembly:
jmp 0x1400120e0
mov dword [rsp + 0x18], r8d
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1400230a2]
call fcn.14001139d
mov dword [rbp + 4], 0
mov eax, dword [rbp + 0x1b0]
mov ecx, eax
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x64], 0
mov rax, qword [rbp + 0x1a8]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x1a8]
mov ecx, dword [rcx + 4]
lea eax, [rcx + rax*8]
imul eax, eax, 0x200
mov dword [rbp + 0x84], eax
xor r9d, r9d
lea r8, [rbp + 0x64]
mov edx, dword [rbp + 0x84]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x1400121b2
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.error_code:__d_n
call fcn.1400111b3
mov eax, 1
jmp 0x140012246
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, dword [rbp + 0x1b0]
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x1400121f1
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ReadFile:__u_n
call fcn.1400111b3
jmp 0x14001223c
mov dword [rbp + 0xa4], 0
jmp 0x14001220b
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
mov eax, dword [rbp + 0x44]
cmp dword [rbp + 0xa4], eax
jae 0x14001223c
movsxd rax, dword [rbp + 0xa4]
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
mov r8d, eax
mov edx, dword [rbp + 0xa4]
lea rcx, str._d:_t_x_n
call fcn.1400111b3
jmp 0x1400121fd
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_free]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001adb0]
call fcn.140011339
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret
Function at 0x1400110e6
Capabilities:
Read file on windows

Disassembly:
jmp 0x140011ed0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [section..data]
xor rax, rbp
mov qword [rbp + 0x178], rax
lea rcx, [0x1400230a2]
call fcn.14001139d
mov dword [rbp + 4], 0
mov ecx, 0x400
call qword [sym.imp.ucrtbased.dll_malloc]
mov qword [rbp + 0x28], rax
mov dword [rbp + 0x64], 0
mov rax, qword [rbp + 0x1a8]
mov eax, dword [rax]
mov rcx, qword [rbp + 0x1a8]
mov ecx, dword [rcx + 4]
lea eax, [rcx + rax*8]
imul eax, eax, 0x200
mov dword [rbp + 0x84], eax
xor r9d, r9d
lea r8, [rbp + 0x64]
mov edx, dword [rbp + 0x84]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x140011f9f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.SetFilePointer:__d_n
call fcn.1400111b3
mov eax, 1
jmp 0x14001203c
mov qword [rsp + 0x20], 0
lea r9, [rbp + 0x44]
mov r8d, 0x400
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x1a0]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x140011fdd
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.ReadFile:__u_n
call fcn.1400111b3
jmp 0x140012032
mov dword [rbp + 0xa4], 0
jmp 0x140011ff7
mov eax, dword [rbp + 0xa4]
inc eax
mov dword [rbp + 0xa4], eax
cmp dword [rbp + 0xa4], 8
jge 0x140012032
mov eax, dword [rbp + 0xa4]
add eax, 0x30
cdqe
mov rcx, qword [rbp + 0x28]
movzx eax, byte [rcx + rax]
mov ecx, dword [rbp + 0xa4]
shl ecx, 3
shl eax, cl
mov rcx, qword [rbp + 0x1b0]
add eax, dword [rcx]
mov rcx, qword [rbp + 0x1b0]
mov dword [rcx], eax
jmp 0x140011fe9
mov rcx, qword [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_free]
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x14001ae90]
call fcn.140011339
mov rax, rdi
mov rcx, qword [rbp + 0x178]
xor rcx, rbp
call fcn.1400111cc
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret

Function at 0x140011212
Capabilities:
Terminate process

Disassembly:
jmp 0x1400136f0
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]
add rsp, 0x28
ret
Function at 0x14001129e
Capabilities:
Parse pe header

Disassembly:
jmp 0x140014a40
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140014a60
xor al, al
jmp 0x140014ae1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140014a73
xor al, al
jmp 0x140014ae1
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 0x140014a9d
xor al, al
jmp 0x140014ae1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140014ab1
xor al, al
jmp 0x140014ae1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140014ac3
xor al, al
jmp 0x140014ae1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140014adf
xor al, al
jmp 0x140014ae1
mov al, 1
add rsp, 0x38
ret
Function at 0x140002700
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
mov r11d, r8d
mov r10, rdx
not r11d
mov r9, rcx
mov eax, r11d
test rdx, rdx
je 0x14000275d
lea rbx, [0x140090320]
movzx r8d, byte [r9]
lea r9, [r9 + 1]
dec r10
cmp r8b, 0x23
jne 0x140002744
cmp r10, 2
jb 0x140002744
cmp byte [r9], r8b
jne 0x140002744
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
xor rdx, r8
shr eax, 8
xor eax, dword [rbx + rdx*4]
test r10, r10
jne 0x140002720
not eax
mov rbx, qword [rsp + 8]
ret
movzx r8d, byte [rcx]
inc r9
test r8b, r8b
je 0x14000279f
lea rbx, [0x140090320]
cmp r8b, 0x23
jne 0x140002783
cmp byte [r9], r8b
jne 0x140002783
cmp byte [r9 + 1], r8b
cmove eax, r11d
movzx edx, al
movzx ecx, r8b
movzx r8d, byte [r9]
xor rdx, rcx
shr eax, 8
inc r9
xor eax, dword [rbx + rdx*4]
test r8b, r8b
jne 0x140002770
mov rbx, qword [rsp + 8]
not eax
ret

Function at 0x1400028e0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push r14
sub rsp, 0x20
mov r14, r8
test r8, r8
je 0x1400028fa
mov qword [r8], 0
lea rdx, [0x140090118]
call fcn.1400027b0
mov rbx, rax
test rax, rax
jne 0x14000291a
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
mov qword [rsp + 0x30], rsi
mov rcx, rbx
mov qword [rsp + 0x38], rdi
call fcn.140058598
mov esi, eax
cmp eax, 0xffffffff
je 0x1400029fa
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call fcn.140059170
test eax, eax
jne 0x1400029fa
mov rcx, rbx
call fcn.140058598
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x1400029fa
xor r8d, r8d
mov edx, esi
mov rcx, rbx
call fcn.140059170
test eax, eax
jne 0x1400029fa
cmp rdi, 0xffffffffffffffff
je 0x1400029fa
mov rax, qword [0x1400a61e0]
test rax, rax
je 0x14000298e
inc dword [rax + 0x3b4]
mov rdx, qword [0x1400a61d0]
mov rcx, rdi
call fcn.140001ec0
mov rsi, rax
test rax, rax
je 0x1400029fa
mov r9, rbx
mov r8, rdi
mov edx, 1
mov rcx, rax
call fcn.14005cc20
mov rcx, rbx
cmp rax, rdi
je 0x1400029e8
call fcn.140058dd0
mov rax, qword [0x1400a61e0]
test rax, rax
je 0x1400029d7
dec dword [rax + 0x3b4]
mov rdx, qword [0x1400a61d0]
mov rcx, rsi
call fcn.140001ed0
jmp 0x140002a02
call fcn.140058dd0
test r14, r14
je 0x1400029f5
mov qword [r14], rdi
mov rax, rsi
jmp 0x140002a04
mov rcx, rbx
call fcn.140058dd0
xor eax, eax
mov rsi, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret
Function at 0x14000ea60
Capabilities:
Hash data with crc32

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rax, qword [0x1400a3008]
xor rax, rsp
mov qword [rsp + 0x30], rax
mov rbx, qword [0x1400a61e0]
mov edi, edx
cmp byte [rbx + 0x1f4d], 0
jne 0x14000eac0
cmp byte [rbx + 0x1f4e], 0
jne 0x14000eac0
mov r9d, dword [rbx + 0x2ff8]
lea r8, str.Tooltip__02d
mov edx, 0x10
lea rcx, [rsp + 0x20]
call fcn.1400025f0
test dil, 1
je 0x14000ebde
jmp 0x14000eb48
movss xmm1, dword [rbx + 0x1614]
lea r8, str.Tooltip__02d
mov r9d, dword [rbx + 0x2ff8]
lea rcx, [rsp + 0x20]
movaps xmm0, xmm1
xor eax, eax
mulss xmm0, dword [0x1400951dc]
mulss xmm1, dword [0x1400951d0]
lea edx, [rax + 0x10]
addss xmm0, dword [rbx + 0x128]
addss xmm1, dword [rbx + 0x12c]
mov qword [rbx + 0x1cc8], rax
mov dword [rbx + 0x1cb4], 1
movss dword [rbx + 0x1cc0], xmm0
movss dword [rbx + 0x1cc4], xmm1
movss xmm0, dword [rbx + 0x1670]
mulss xmm0, dword [0x140095154]
or dword [rbx + 0x1cb0], 0x41
movss dword [rbx + 0x1d10], xmm0
call fcn.1400025f0
movzx r9d, byte [rsp + 0x20]
lea r8, [rsp + 0x21]
mov r10d, 0xffffffff
mov ecx, r10d
test r9b, r9b
je 0x14000eb98
lea r11, [0x140090320]
cmp r9b, 0x23
jne 0x14000eb7b
cmp byte [r8], r9b
jne 0x14000eb7b
cmp byte [r8 + 1], r9b
cmove ecx, r10d
movzx edx, cl
movzx eax, r9b
movzx r9d, byte [r8]
xor rdx, rax
shr ecx, 8
inc r8
xor ecx, dword [r11 + rdx*4]
test r9b, r9b
jne 0x14000eb68
not ecx
call fcn.140008aa0
test rax, rax
je 0x14000ebde
cmp byte [rax + 0x8e], 0
je 0x14000ebde
mov byte [rax + 0x95], 1
lea r8, str.Tooltip__02d
mov byte [rax + 0xb0], 1
lea rcx, [rsp + 0x20]
inc dword [rbx + 0x2ff8]
mov edx, 0x10
mov r9d, dword [rbx + 0x2ff8]
call fcn.1400025f0
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x20c0347
call fcn.14000b1d0
mov rcx, qword [rsp + 0x30]
xor rcx, rsp
call fcn.14004f140
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x1400319b0
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x270
mov rax, qword [0x1400a3008]
xor rax, rsp
mov qword [rsp + 0x260], rax
mov rdi, rdx
mov rsi, rcx
mov edx, r8d
mov ecx, 0x18
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140031a4d
lea rdx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x238
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_Module32First]
test eax, eax
je 0x140031a4d
nop dword [rax + rax]
lea rcx, [rsp + 0x50]
mov r8, rdi
sub r8, rcx
nop dword [rax + rax]
movzx edx, byte [rcx]
movzx eax, byte [rcx + r8]
sub edx, eax
jne 0x140031a33
inc rcx
test eax, eax
jne 0x140031a20
mov rcx, rbx
test edx, edx
je 0x140031b19
lea rdx, [rsp + 0x20]
call qword [sym.imp.KERNEL32.dll_Module32Next]
test eax, eax
jne 0x140031a10
xor edx, edx
mov dword [rsp + 0x20], 0xffffffff
mov r8d, 0x234
lea rcx, [rsp + 0x24]
call fcn.140053b60
mov rcx, rsi
lea rax, [rsp + 0x20]
mov edx, 4
nop dword [rax]
nop dword [rax + rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140031a80
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
movups xmmword [rcx], xmm0
movups xmm0, xmmword [rax + 0x20]
mov rax, qword [rax + 0x30]
movups xmmword [rcx + 0x10], xmm1
movups xmmword [rcx + 0x20], xmm0
mov qword [rcx + 0x30], rax
mov rax, rsi
mov rcx, qword [rsp + 0x260]
xor rcx, rsp
call fcn.14004f140
lea r11, [rsp + 0x270]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rsi
lea rax, [rsp + 0x20]
mov edx, 4
nop dword [rax]
lea rcx, [rcx + 0x80]
movups xmm0, xmmword [rax]
movups xmm1, xmmword [rax + 0x10]
lea rax, [rax + 0x80]
movups xmmword [rcx - 0x80], xmm0
movups xmm0, xmmword [rax - 0x60]
movups xmmword [rcx - 0x70], xmm1
movups xmm1, xmmword [rax - 0x50]
movups xmmword [rcx - 0x60], xmm0
movups xmm0, xmmword [rax - 0x40]
movups xmmword [rcx - 0x50], xmm1
movups xmm1, xmmword [rax - 0x30]
movups xmmword [rcx - 0x40], xmm0
movups xmm0, xmmword [rax - 0x20]
movups xmmword [rcx - 0x30], xmm1
movups xmm1, xmmword [rax - 0x10]
movups xmmword [rcx - 0x20], xmm0
movups xmmword [rcx - 0x10], xmm1
sub rdx, 1
jne 0x140031b30
jmp 0x140031ad3
Function at 0x14003ce30
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14003ce52
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14003cecc
mov rdi, r14
mov rcx, rbx
call fcn.14003e310
test rax, rax
jle 0x14003cea4
mov rdx, qword [rbx + 0x38]
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov r8, rbp
mov rdx, qword [rdx]
call fcn.140053fe0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14003cebc
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14003cec4
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14003ce66
sub r14, rdi
jmp 0x14003cfaf
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14003cee3
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14003cee5
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14003cf17
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140053fe0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14003cfac
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14003cf52
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 rbp, 0xfff
jbe 0x14003cf8d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14005cc20
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14003cfac
cmp rbp, rax
ja 0x14003cf60
test rbp, rbp
je 0x14003cfac
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14005cc20
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140041970
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
movabs rax, 0xcbf29ce484222325
mov r9d, 0
sub r8, rdx
je 0x1400419a4
movabs r10, 0x100000001b3
nop
movzx ecx, byte [r9 + rdx]
inc r9
xor rax, rcx
imul rax, r10
cmp r9, r8
jb 0x140041990
ret
Function at 0x14004fe6c
Capabilities:
Parse pe header

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

Function at 0x1400582b0
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.14007c410
sub rsp, rax
mov rax, qword [0x1400a3008]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14006acdc
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1400582ff
mov rax, rbp
jmp 0x140058407
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 + 0xa5a90]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14006af6c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0xa5a90]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140058403
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140058403
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14006af6c
test rax, rax
js 0x140058403
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140058403
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1400583f5
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x1400583f5
cmp byte [rcx], 0xd
jne 0x1400583db
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400583ea
cmp byte [rcx + 1], 0xa
jne 0x1400583ea
inc rcx
jmp 0x1400583ea
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa3410]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400583bd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140058407
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14004f140
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 0x140062fac
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 0x140062e17
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140062e17
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140062e17
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140062e17
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140062e17
cmp dword [rcx + 0x84], 0xe
jbe 0x140062e17
cmp dword [rcx + 0xf8], 0
je 0x140062e17
mov ecx, ebx
call fcn.140062ec8
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.140062ca4
nop
cmp dword [rbp + 0x20], 0
je 0x140062e65
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140062e70
int3
xor r8d, r8d
xor edx, edx
jmp 0x140062da8
Function at 0x14006b6f0
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
lea r9, [0x1400a5a90]
mov rax, r15
mov rbp, r15
and eax, 0x3f
sar rbp, 6
mov ecx, 4
xor esi, esi
mov r14, rdx
lea rdi, [rax + rax*8]
mov rax, qword [r9 + rbp*8]
lea r13d, [rcx + 6]
mov r10, qword [rax + rdi*8 + 0x28]
test r8, r8
je 0x14006b747
cmp word [rdx], r13w
jne 0x14006b747
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14006b74c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14006b871
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14006b892
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14006b785
mov rdx, r9
mov word [rbx], cx
jmp 0x14006b7ac
cmp r9, r8
jae 0x14006b7bc
cmp word [r9], r13w
mov rax, r12
mov ecx, 4
cmove rax, rcx
add rdx, rax
mov eax, r13d
cmp word [r9], r13w
cmovne ax, r11w
mov word [rbx], ax
mov rax, r12
add rbx, rax
cmp rdx, r8
jb 0x14006b766
jmp 0x14006b871
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rsi
mov r8d, r12d
lea rdx, [rsp + 0x70]
mov rcx, r10
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14006b866
cmp dword [rsp + 0x80], esi
je 0x14006b866
lea r8, [0x1400a5a90]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14006b83e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14006b80e
mov word [rbx], r13w
jmp 0x14006b86e
mov ecx, 0xd
mov word [rsp + 0x78], ax
mov word [rbx], cx
mov rax, qword [r8 + rbp*8]
lea rcx, [rax + rdi*8]
mov al, byte [rsp + rsi + 0x78]
mov byte [rcx + rsi + 0x3a], al
inc rsi
cmp rsi, r12
jl 0x14006b81b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14006b86e
cmp word [rsp + 0x70], r13w
jne 0x14006b84b
cmp rbx, r14
je 0x14006b808
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14006af74
cmp word [rsp + 0x70], r13w
je 0x14006b871
mov ecx, 0xd
mov word [rbx], cx
add rbx, r12
sub rbx, r14
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
lea r8, [0x1400a5a90]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14006b86b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14006b871
Function at 0x14006e6dc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14006e6f2
mov al, 1
jmp 0x14006e752
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14006e703
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14006e750
mov ecx, dword [rcx + 0x18]
nop
call fcn.140072f48
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14006e750
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14006e750
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14006e750
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14006e752
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140071f20
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 0x140071f50
xor eax, eax
jmp 0x140072013
mov rbp, rbx
cmp word [rax], si
je 0x140071f75
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140071f5c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140071f58
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.140071e40
movsxd r14, eax
test eax, eax
jne 0x140071fb3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140071f49
mov rcx, r14
call fcn.14006f078
mov rdi, rax
test rax, rax
jne 0x140071fcc
xor ecx, ecx
call fcn.14006c878
jmp 0x140071fa8
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.140071e40
test eax, eax
jne 0x140071ffd
mov rcx, rdi
call fcn.14006c878
jmp 0x140072007
xor ecx, ecx
call fcn.14006c878
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 0x14007562c
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.14006b390
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x1400756cd
cmp ebx, dword [rsp + 0x30]
je 0x1400756c6
test esi, esi
je 0x1400756c6
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x1400756a1
sub r8w, 0x61
cmp r8w, 0x19
ja 0x1400756ae
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14007568b
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x1400756b2
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x1400756cf
mov eax, 1
jmp 0x1400756cf
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret