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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rsi, r8
test r8, r8
je 0x140034b84
and qword [r8], 0
lea rdx, [0x140089fdc]
call fcn.140034a40
mov rbx, rax
test rax, rax
je 0x140034c75
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
mov ebp, eax
cmp eax, 0xffffffff
je 0x140034c6c
xor edx, edx
mov rcx, rbx
lea r8d, [rdx + 2]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140034c6c
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_ftell]
movsxd rdi, eax
cmp edi, 0xffffffff
je 0x140034c6c
xor r8d, r8d
mov edx, ebp
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fseek]
test eax, eax
jne 0x140034c6c
mov rbp, rdi
cmp rdi, 0xffffffffffffffff
je 0x140034c6c
mov rax, qword [0x140145978]
test rax, rax
je 0x140034c09
inc dword [rax + 0xf4]
mov rcx, rbp
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov rdi, rax
test rax, rax
je 0x140034c6c
mov r9, rbx
mov r8, rbp
mov edx, 1
mov rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
mov rcx, rbx
cmp rax, rbp
je 0x140034c59
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rax, qword [0x140145978]
test rax, rax
je 0x140034c4e
dec dword [rax + 0xf4]
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
jmp 0x140034c75
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
test rsi, rsi
je 0x140034c67
mov qword [rsi], rbp
mov rax, rdi
jmp 0x140034c77
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140037728
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov dword [rsp + 0x10], edx
push rbx
sub rsp, 0x20
movsxd r8, dword [rcx + 0xe8]
mov r10d, 4
mov rax, qword [rcx + 0xf0]
mov r9d, r10d
mov ebx, dword [rax + r8*4 - 4]
lea r8, [rsp + 0x38]
not ebx
movzx eax, byte [r8]
inc r8
movzx ecx, bl
xor rcx, rax
shr ebx, 8
lea rax, [0x14007b5f0]
xor ebx, dword [rax + rcx*4]
sub r9, 1
jne 0x140037754
mov rcx, qword [0x140145978]
not ebx
cmp dword [rcx + 0x3f18], ebx
jne 0x140037792
movsxd r8, edx
mov ecx, ebx
mov edx, r10d
call fcn.1400484f0
mov eax, ebx
add rsp, 0x20
pop rbx
ret

Function at 0x14003779c
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
sub rsp, 0x18
movss xmm2, dword [rcx + 0x108]
lea r9, [rsp]
movss xmm3, dword [rcx + 0x10c]
mov r10d, 0x10
movss xmm0, dword [rdx]
movss xmm1, dword [rdx + 4]
subss xmm0, xmm2
mov rax, qword [rcx + 0xf0]
subss xmm1, xmm3
movsxd rcx, dword [rcx + 0xe8]
movss dword [rsp], xmm0
movss xmm0, dword [rdx + 8]
mov r8d, dword [rax + rcx*4 - 4]
subss xmm0, xmm2
movss dword [rsp + 4], xmm1
not r8d
movss xmm1, dword [rdx + 0xc]
subss xmm1, xmm3
movss dword [rsp + 8], xmm0
movss dword [rsp + 0xc], xmm1
movzx ecx, byte [r9]
lea rax, [0x14007b5f0]
movzx edx, r8b
inc r9
xor rdx, rcx
shr r8d, 8
xor r8d, dword [rax + rdx*4]
sub r10, 1
jne 0x14003780a
not r8d
mov eax, r8d
add rsp, 0x18
ret
Function at 0x140047180
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
cmp qword [rcx + 0x5c50], 0
lea rbx, [rcx + 0x5c58]
mov rsi, r8
mov rbp, rdx
mov rdi, rcx
je 0x140047219
mov r9d, dword [rbx + 4]
test r9d, r9d
jns 0x1400471d1
mov eax, r9d
mov rcx, rbx
cdq
sub eax, edx
xor edx, edx
sar eax, 1
add eax, r9d
test eax, eax
cmovg edx, eax
call fcn.140049448
and dword [rbx], 0
mov r8, rsi
mov rdx, rbp
mov rcx, rbx
call fcn.14003550c
mov eax, dword [rbx]
mov edx, 1
mov r9, qword [rdi + 0x5c50]
lea ecx, [rax - 1]
neg eax
sbb eax, eax
and eax, ecx
lea rcx, [0x140145976]
movsxd r8, eax
mov rax, qword [rdi + 0x5c60]
test rax, rax
cmovne rcx, rax
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
jmp 0x140047221
mov rcx, rbx
call fcn.14003550c
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret

Function at 0x140047a08
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x20
mov rax, qword [0x140145978]
mov rbx, rcx
and dword [rax + 0x5bb4], 0
test rcx, rcx
je 0x140047a71
and qword [rsp + 0x30], 0
lea rcx, [rsp + 0x30]
call fcn.140047a7c
lea rdx, [0x140089ff4]
mov rcx, rbx
mov rdi, rax
call fcn.140034a40
mov rbx, rax
test rax, rax
je 0x140047a71
mov r8, qword [rsp + 0x30]
mov r9, rax
mov edx, 1
mov rcx, rdi
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
mov rcx, rbx
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fclose]
mov rbx, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
Function at 0x140072b58
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x40
mov r14, rdx
lea rdx, [0x1400d2b78]
cmp qword [0x1400d2b90], 0xf
cmova rdx, qword [0x1400d2b78]
movabs rdi, 0xcbf29ce484222325
xor ecx, ecx
mov r8, qword [0x1400d2b88]
test r8, r8
je 0x140072bbc
movzx eax, byte [rdx + rcx]
xor rdi, rax
movabs r9, 0x100000001b3
imul rdi, r9
inc rcx
cmp rcx, r8
jb 0x140072b9f
mov r9, rdi
lea r8, [0x1400d2b78]
lea rdx, [rsp + 0x20]
call fcn.1400732bc
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140072be7
mov qword [r14], rax
mov byte [r14 + 8], 0
jmp 0x140072d36
movabs rax, 0x3ffffffffffffff
cmp qword [0x1401471c0], rax
jne 0x140072c08
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x1401471b8]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x38], 0
mov ecx, 0x40
call fcn.1400733f0
mov rsi, rax
mov qword [rsp + 0x38], rax
lea rdx, [0x1400d2b78]
lea rcx, [rax + 0x10]
call fcn.140003e6c
xor eax, eax
mov qword [rsi + 0x30], rax
mov dword [rsi + 0x38], eax
mov r8, qword [0x1401471c0]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140072c5f
cvtsi2ss xmm0, rcx
jmp 0x140072c74
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x1401471e8]
xorps xmm1, xmm1
test rcx, rcx
js 0x140072c8a
cvtsi2ss xmm1, rcx
jmp 0x140072c9f
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x1401471b0]
jbe 0x140072cd2
call fcn.140072fdc
lea r8, [rsi + 0x10]
mov r9, rdi
lea rdx, [rsp + 0x30]
call fcn.1400732bc
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x20], xmm0
mov r8, qword [0x1401471c0]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 8]
inc r8
mov qword [0x1401471c0], r8
mov qword [rsi], rcx
mov qword [rsi + 8], rdx
mov qword [rdx], rsi
mov qword [rcx + 8], rsi
and rdi, qword [0x1401471e0]
add rdi, rdi
mov rax, qword [0x1401471c8]
mov r8, qword [rax + rdi*8]
cmp r8, qword [0x1401471b8]
jne 0x140072d17
mov qword [rax + rdi*8], rsi
jmp 0x140072d29
cmp r8, rcx
jne 0x140072d22
mov qword [rax + rdi*8], rsi
jmp 0x140072d2e
cmp qword [rax + rdi*8 + 8], rdx
jne 0x140072d2e
mov qword [rax + rdi*8 + 8], rsi
mov qword [r14], rsi
mov byte [r14 + 8], 1
mov rax, r14
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x140072d50
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x40
mov r14, r8
mov rsi, rdx
mov rdx, r8
cmp qword [r8 + 0x18], 0xf
jbe 0x140072d78
mov rdx, qword [r8]
movabs rbx, 0xcbf29ce484222325
xor ecx, ecx
cmp qword [r8 + 0x10], rcx
jbe 0x140072da8
movzx eax, byte [rdx + rcx]
xor rbx, rax
movabs r8, 0x100000001b3
imul rbx, r8
inc rcx
cmp rcx, qword [r14 + 0x10]
jb 0x140072d8a
mov r9, rbx
mov r8, r14
lea rdx, [rsp + 0x20]
call fcn.1400732bc
mov rax, qword [rsp + 0x28]
test rax, rax
je 0x140072dce
mov qword [rsi], rax
mov byte [rsi + 8], 0
jmp 0x140072f3f
movabs rax, 0x3ffffffffffffff
cmp qword [0x1401471c0], rax
jne 0x140072def
lea rcx, str.unordered_map_set_too_long
call qword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const____ptr64_]
int3
lea rax, [0x1401471b8]
mov qword [rsp + 0x30], rax
and qword [rsp + 0x38], 0
mov ecx, 0x40
call fcn.1400733f0
mov rdi, rax
mov qword [rsp + 0x38], rax
xorps xmm0, xmm0
movups xmmword [rax + 0x10], xmm0
and qword [rax + 0x20], 0
and qword [rax + 0x28], 0
movups xmm0, xmmword [r14]
movups xmmword [rax + 0x10], xmm0
movups xmm1, xmmword [r14 + 0x10]
movups xmmword [rax + 0x20], xmm1
and qword [r14 + 0x10], 0
mov qword [r14 + 0x18], 0xf
mov byte [r14], 0
xor eax, eax
mov qword [rdi + 0x30], rax
mov dword [rdi + 0x38], eax
mov r8, qword [0x1401471c0]
lea rcx, [r8 + 1]
xorps xmm0, xmm0
test rcx, rcx
js 0x140072e69
cvtsi2ss xmm0, rcx
jmp 0x140072e7e
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm0, rax
addss xmm0, xmm0
mov rcx, qword [0x1401471e8]
xorps xmm1, xmm1
test rcx, rcx
js 0x140072e94
cvtsi2ss xmm1, rcx
jmp 0x140072ea9
mov rax, rcx
shr rax, 1
and ecx, 1
or rax, rcx
cvtsi2ss xmm1, rax
addss xmm1, xmm1
divss xmm0, xmm1
comiss xmm0, dword [0x1401471b0]
jbe 0x140072edc
call fcn.140072fdc
lea r8, [rdi + 0x10]
mov r9, rbx
lea rdx, [rsp + 0x30]
call fcn.1400732bc
movups xmm0, xmmword [rax]
movdqu xmmword [rsp + 0x20], xmm0
mov r8, qword [0x1401471c0]
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rcx + 8]
inc r8
mov qword [0x1401471c0], r8
mov qword [rdi], rcx
mov qword [rdi + 8], rdx
mov qword [rdx], rdi
mov qword [rcx + 8], rdi
and rbx, qword [0x1401471e0]
add rbx, rbx
mov rax, qword [0x1401471c8]
mov r8, qword [rax + rbx*8]
cmp r8, qword [0x1401471b8]
jne 0x140072f21
mov qword [rax + rbx*8], rdi
jmp 0x140072f33
cmp r8, rcx
jne 0x140072f2c
mov qword [rax + rbx*8], rdi
jmp 0x140072f38
cmp qword [rax + rbx*8 + 8], rdx
jne 0x140072f38
mov qword [rax + rbx*8 + 8], rdi
mov qword [rsi], rdi
mov byte [rsi + 8], 1
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x40
pop r14
ret
Function at 0x140074178
Capabilities:
Parse pe header

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

Function at 0x1400743b0
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x1400743ea
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x1400743ef
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 0x140074438
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140079d30]
cmp byte [rcx + rax], 0
je 0x140074438
dec r8
sub rdx, 1
jne 0x14007441e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x140074bfc
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rdi, rcx
mov rdx, rcx
mov ecx, 0x105
call fcn.1400744c8
mov ebx, eax
test eax, eax
jne 0x140074c2c
and dword [rsp + 0x38], eax
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rsp + 0x3c], eax
jmp 0x140074c8f
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x140074c86
test al, 0x10
je 0x140074c86
bt eax, 0xa
jae 0x140074c7f
mov r9d, 0x2000000
lea rcx, [rsp + 0x38]
mov r8d, 0x80
mov rdx, rdi
call fcn.140074ca0
mov rcx, qword [rsp + 0x38]
mov edi, eax
cmp rcx, 0xffffffffffffffff
je 0x140074c7b
call qword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x140074c7b
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_abort]
int3
test edi, edi
jne 0x140074c86
and dword [rsp + 0x3c], 0
jmp 0x140074c8b
or dword [rsp + 0x3c], 0xffffffff
mov dword [rsp + 0x38], ebx
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
ret
Function at 0x14000bcc0
Capabilities:
Read file on windows

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, 0x20
mov rbp, r8
mov r14, rdx
mov rdi, rcx
test r8, r8
jg 0x14000bcee
xor eax, eax
jmp 0x14000bdd4
cmp qword [rcx + 0x68], 0
je 0x14000bcff
call fcn.14000bdf0
jmp 0x14000bdd4
mov rax, qword [rcx + 0x38]
mov rsi, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x14000bd16
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000bd18
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000bd4a
cmp rax, rbp
mov rbx, rbp
mov rcx, r14
cmovb rbx, rax
mov r8, rbx
call fcn.14002c260
mov rax, qword [rdi + 0x50]
add r14, rbx
sub rsi, rbx
sub dword [rax], ebx
mov rcx, qword [rdi + 0x38]
movsxd rax, ebx
add qword [rcx], rax
cmp qword [rdi + 0x80], 0
je 0x14000bdce
mov r8, qword [rdi + 0x18]
lea rax, [rdi + 0x70]
cmp qword [r8], rax
jne 0x14000bd81
mov rcx, qword [rdi + 0x88]
mov rdx, qword [rdi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rdi + 0x38]
mov qword [rax], rcx
mov rax, qword [rdi + 0x50]
mov dword [rax], edx
mov ebx, 0xfff
jmp 0x14000bdaa
mov r9, qword [rdi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call fcn.1400168e8
add r14, rax
sub rsi, rax
cmp rax, rbx
jne 0x14000bdce
cmp rsi, rbx
ja 0x14000bd88
test rsi, rsi
je 0x14000bdce
mov r9, qword [rdi + 0x80]
mov r8, rsi
mov edx, 1
mov rcx, r14
call fcn.1400168e8
sub rsi, rax
sub rbp, rsi
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
mov rdi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret

Function at 0x14000d2d4
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000d31e
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000d31e
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000d31e
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000d31e
cmp dword [rcx + 0x84], 0xe
jbe 0x14000d31e
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14000d320
xor al, al
add rsp, 0x28
ret
Function at 0x140018c98
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 0x140018d07
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140018d07
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140018d07
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140018d07
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140018d07
cmp dword [rcx + 0x84], 0xe
jbe 0x140018d07
cmp dword [rcx + 0xf8], 0
je 0x140018d07
mov ecx, ebx
call fcn.140018db8
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.140018b94
nop
cmp dword [rbp + 0x20], 0
je 0x140018d55
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140018d60
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140018c98

Function at 0x140018e9c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140018c98
Function at 0x14002121c
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.14000d020
sub rsp, rax
mov rax, qword [0x14003f080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14001dbf8
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14002126b
mov rax, rbp
jmp 0x140021373
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 + 0x41600]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14002233c
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x41600]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14002136f
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 0x14002136f
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14002233c
test rax, rax
js 0x14002136f
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14002136f
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140021361
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140021361
cmp byte [rcx], 0xd
jne 0x140021347
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140021356
cmp byte [rcx + 1], 0xa
jne 0x140021356
inc rcx
jmp 0x140021356
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x3f4b0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140021329
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140021373
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14000cff0
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 0x140021594
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x1400215aa
mov al, 1
jmp 0x14002160a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400215bb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140021608
mov ecx, dword [rcx + 0x18]
nop
call fcn.140024b5c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140021608
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140021608
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140021608
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14002160a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400216dc
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, [0x140041600]
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 0x140021733
cmp word [rdx], r13w
jne 0x140021733
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140021738
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14002185d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14002187e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140021771
mov rdx, r9
mov word [rbx], cx
jmp 0x140021798
cmp r9, r8
jae 0x1400217a8
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 0x140021752
jmp 0x14002185d
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 0x140021852
cmp dword [rsp + 0x80], esi
je 0x140021852
lea r8, [0x140041600]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14002182a
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400217fa
mov word [rbx], r13w
jmp 0x14002185a
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 0x140021807
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14002185a
cmp word [rsp + 0x70], r13w
jne 0x140021837
cmp rbx, r14
je 0x1400217f4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140022344
cmp word [rsp + 0x70], r13w
je 0x14002185d
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, [0x140041600]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140021857
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14002185d
Function at 0x1400242f4
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 0x140024324
xor eax, eax
jmp 0x1400243e7
mov rbp, rbx
cmp word [rax], si
je 0x140024349
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140024330
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14002432c
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.1400228f4
movsxd r14, eax
test eax, eax
jne 0x140024387
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14002431d
mov rcx, r14
call fcn.14001c99c
mov rdi, rax
test rax, rax
jne 0x1400243a0
xor ecx, ecx
call fcn.14001be8c
jmp 0x14002437c
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.1400228f4
test eax, eax
jne 0x1400243d1
mov rcx, rdi
call fcn.14001be8c
jmp 0x1400243db
xor ecx, ecx
call fcn.14001be8c
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 0x1400270b0
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.14001bab4
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 0x140027151
cmp ebx, dword [rsp + 0x30]
je 0x14002714a
test esi, esi
je 0x14002714a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140027125
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140027132
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14002710f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140027136
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140027153
mov eax, 1
jmp 0x140027153
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret