joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140099490
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push rsi
sub rsp, 0xb0
movzx eax, byte [rcx]
mov ecx, dword [rdx + 0x34]
test cl, 0x10
jne 0x1400994ea
test cl, 0x20
jne 0x140099534
mov r8d, eax
sar r8b, 7
mov ecx, eax
xor cl, r8b
sub cl, r8b
cmp cl, 0x64
jb 0x1400995b5
add cl, cl
add cl, 0x38
movzx ecx, cl
lea r8, [0x140ec3006]
movzx ecx, word [rcx + r8]
mov word [rsp + 0x55], cx
mov r8d, 0x24
mov cl, 1
jmp 0x1400995c0
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov ecx, eax
nop word [rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x57]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x140099500
jmp 0x140099582
lea r9, [rsp + 0xb0]
xor r8d, r8d
mov ecx, eax
nop word cs:[rax + rax]
mov r10d, eax
and r10b, 0xf
shr cl, 4
lea r11d, [r10 + 0x30]
lea esi, [r10 + 0x37]
cmp r10b, 0xa
movzx r10d, r11b
movzx r11d, sil
cmovb r11d, r10d
mov byte [r9 - 1], r11b
dec r9
inc r8
cmp al, 0x10
mov eax, ecx
jae 0x140099550
mov ecx, pe_nt_image_headers64
sub rcx, r8
cmp rcx, 0x81
jae 0x140099622
mov qword [rsp + 0x28], r8
mov qword [rsp + 0x20], r9
lea r8, [0x140ec3002]
mov r9d, 2
mov rcx, rdx
mov dl, 1
jmp 0x140099613
mov r8d, 0x26
cmp cl, 0xa
jae 0x1400995ca
or cl, 0x30
mov byte [rsp + r8 + 0x30], cl
jmp 0x1400995e4
movzx ecx, cl
lea r8, [0x140ec3006]
movzx ecx, word [r8 + rcx*2]
mov word [rsp + 0x55], cx
mov r8d, 0x25
lea rcx, [rsp + r8]
add rcx, 0x30
mov r9d, 0x27
sub r9, r8
mov qword [rsp + 0x28], r9
mov qword [rsp + 0x20], rcx
not al
shr al, 7
lea r8, [0x140ec0468]
mov rcx, rdx
mov edx, eax
xor r9d, r9d
call dbg.pad_integral
nop
add rsp, 0xb0
pop rsi
ret
lea r8, [0x140ec2fe8]
mov edx, pe_nt_image_headers64
call dbg.slice_start_index_len_fail
int3
Function at 0x1400a0340
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call dbg.__acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, [0x140ece860]
mov r9, rax
call sym.fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call dbg.__acrt_iob_func
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sym.vfprintf
call sym.abort
nop
nop word [rax + rax]

Function at 0x1400a03b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rdi, dword [0x140edd1f4]
mov r12, rcx
mov rsi, rdx
mov rbx, r8
test edi, edi
jle 0x1400a0560
mov rax, qword [0x140edd1f8]
xor ecx, ecx
add rax, 0x18
nop
mov rdx, qword [rax]
cmp r12, rdx
jb 0x1400a03fc
mov r8, qword [rax + 8]
mov r8d, dword [r8 + 8]
add rdx, r8
cmp r12, rdx
jb 0x1400a0487
add ecx, 1
add rax, 0x28
cmp ecx, edi
jne 0x1400a03e0
mov rcx, r12
call dbg.__mingw_GetSectionForAddress
mov rbp, rax
test rax, rax
je 0x1400a05bd
mov rax, qword [0x140edd1f8]
lea rdi, [rdi + rdi*4]
shl rdi, 3
add rax, rdi
mov qword [rax + 0x20], rbp
mov dword [rax], 0
call dbg._GetPEImageBase
mov ecx, dword [rbp + 0xc]
lea rdx, [rsp + 0x20]
mov r8d, 0x30
add rcx, rax
mov rax, qword [0x140edd1f8]
mov qword [rax + rdi + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400a05a2
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x1400a0480
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x1400a0510
add dword [0x140edd1f4], 1
cmp ebx, 8
jae 0x1400a04b8
test bl, 4
jne 0x1400a0570
test ebx, ebx
je 0x1400a04a9
movzx eax, byte [rsi]
mov byte [r12], al
test bl, 2
jne 0x1400a0590
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rax, qword [rsi]
lea rcx, [r12 + 8]
and rcx, 0xfffffffffffffff8
mov qword [r12], rax
mov eax, ebx
mov rdx, qword [rsi + rax - 8]
mov qword [r12 + rax - 8], rdx
sub r12, rcx
add ebx, r12d
sub rsi, r12
and ebx, 0xfffffff8
cmp ebx, 8
jb 0x1400a04a9
and ebx, 0xfffffff8
xor eax, eax
mov edx, eax
add eax, 8
mov r8, qword [rsi + rdx]
mov qword [rcx + rdx], r8
cmp eax, ebx
jb 0x1400a04ea
add rsp, 0x50
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rdi, qword [0x140edd1f8]
mov qword [rdi + 8], rcx
mov r9, rdi
mov qword [rdi + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x1400a0480
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, [0x140ece8d8]
mov edx, eax
call dbg.__report_error
xor edi, edi
jmp 0x1400a0407
mov eax, dword [rsi]
mov ebx, ebx
mov dword [r12], eax
mov eax, dword [rsi + rbx - 4]
mov dword [r12 + rbx - 4], eax
jmp 0x1400a04a9
mov ebx, ebx
movzx eax, word [rsi + rbx - 2]
mov word [r12 + rbx - 2], ax
jmp 0x1400a04a9
mov rax, qword [0x140edd1f8]
mov edx, dword [rbp + 8]
lea rcx, [0x140ece8a0]
mov r8, qword [rax + rdi + 0x18]
call dbg.__report_error
mov rdx, r12
lea rcx, [0x140ece880]
call dbg.__report_error
nop
nop dword [rax]
Function at 0x1400a0ad0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x140edd260]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140edd240]
test rbx, rbx
je 0x1400a0b24
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400a0b1b
test r12, r12
je 0x1400a0b1b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400a0b00
lea rcx, [0x140edd260]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x1400a0d50
Capabilities:
Parse pe header

Disassembly:
cmp word [rcx], 0x5a4d
jne 0x1400a0d60
jmp sym._ValidateImageBase.part.0
xor eax, eax
ret

Function at 0x1400a0d70
Capabilities:
Enumerate pe sections

Disassembly:
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
lea rax, [rcx + rax + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400a0db5
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r9, [rax + rcx*8 + 0x28]
nop dword [rax]
mov r8d, dword [rax + 0xc]
mov rcx, r8
cmp r8, rdx
ja 0x1400a0dac
add ecx, dword [rax + 8]
cmp rcx, rdx
ja 0x1400a0db7
add rax, 0x28
cmp rax, r9
jne 0x1400a0d98
xor eax, eax
ret

Function at 0x1400a0e60
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x140ecea00]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x1400a0ed9
mov rcx, r10
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400a0ed9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x1400a0ed6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x1400a0ecd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x1400a0ed9
add r8, 0x28
cmp r8, r9
jne 0x1400a0eb8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x1400a0fc0
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140ecea00]
xor eax, eax
cmp word [r9], 0x5a4d
mov r8, rcx
jne 0x1400a102f
mov rcx, r9
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400a102f
movsxd rax, dword [r9 + 0x3c]
mov rcx, r8
sub rcx, r9
add r9, rax
movzx eax, word [r9 + 0x14]
movzx edx, word [r9 + 6]
lea rax, [r9 + rax + 0x18]
test edx, edx
je 0x1400a102d
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400a1024
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x1400a1038
add rax, 0x28
cmp rax, r9
jne 0x1400a1010
xor eax, eax
add rsp, 0x28
ret
mov eax, dword [rax + 0x24]
not eax
shr eax, 0x1f
add rsp, 0x28
ret
Function at 0x1400a1050
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r11, qword [0x140ecea00]
xor r9d, r9d
cmp word [r11], 0x5a4d
mov r8d, ecx
jne 0x1400a10c8
mov rcx, r11
call sym._ValidateImageBase.part.0
test eax, eax
je 0x1400a10c8
movsxd rcx, dword [r11 + 0x3c]
add rcx, r11
mov eax, dword [rcx + 0x90]
test eax, eax
je 0x1400a10c8
movzx edx, word [rcx + 0x14]
lea rdx, [rcx + rdx + 0x18]
movzx ecx, word [rcx + 6]
test ecx, ecx
je 0x1400a10c8
sub ecx, 1
lea rcx, [rcx + rcx*4]
lea r10, [rdx + rcx*8 + 0x28]
nop dword [rax + rax]
mov r9d, dword [rdx + 0xc]
mov rcx, r9
cmp rax, r9
jb 0x1400a10bc
add ecx, dword [rdx + 8]
cmp rax, rcx
jb 0x1400a10d0
add rdx, 0x28
cmp rdx, r10
jne 0x1400a10a8
xor r9d, r9d
mov rax, r9
add rsp, 0x28
ret
add rax, r11
jmp 0x1400a10e0
sub r8d, 1
add rax, 0x14
mov ecx, dword [rax + 4]
test ecx, ecx
jne 0x1400a10ee
mov edx, dword [rax + 0xc]
test edx, edx
je 0x1400a10c5
test r8d, r8d
jg 0x1400a10d8
mov r9d, dword [rax + 0xc]
add r9, r11
mov rax, r9
add rsp, 0x28
ret
Function at 0x1abe9b0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x1abe9bd
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x1abe9cd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x1abe9b5
lea eax, [rcx + 1]
jmp 0x1abe9db
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x1abe9ee
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x1abe9d4
sub eax, 3
jb 0x1abea0e
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1abea5d
sar eax, 1
movsxd rbp, eax
jb 0x1abea44
jmp 0x1abea1c
add ebx, ebx
jne 0x1abea1a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1abea44
inc ecx
add ebx, ebx
jne 0x1abea2a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x1abea44
call r11
adc ecx, ecx
add ebx, ebx
jne 0x1abea3d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x1abea2c
add ecx, 2
jmp 0x1abea49
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.01abe972
jmp 0x1abe9bd
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0xd2200
mov dl, 0x18
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1abeaa9
cmp rsi, rcx
jae 0x1abeab1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1abea90
cmp al, 0x8f
ja 0x1abea90
cmp byte [rsi - 2], 0xf
je 0x1abea96
sub al, 0xe8
cmp al, 1
ja 0x1abea7a
cmp rsi, rcx
jae 0x1abeab1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1abea80
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1abeab1
lodsb al, byte [rsi]
jmp 0x1abea90
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x16ba000]
mov eax, dword [rdi]
or eax, eax
je 0x1abeb0e
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x16d9f10]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x1abeabe
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x1abeb08
mov qword [rbx], rax
add rbx, 8
jmp 0x1abeade
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
add rdi, 4
lea rbx, [rsi - 4]
xor eax, eax
mov al, byte [rdi]
inc rdi
or eax, eax
je 0x1abeb52
cmp al, 0xef
ja 0x1abeb3a
add rbx, rax
mov rax, qword [rbx]
bswap rax
add rax, rsi
mov qword [rbx], rax
jmp 0x1abeb1a
and al, 0xf
shl eax, 0x10
mov ax, word [rdi]
add rdi, 2
or eax, eax
jne 0x1abeb29
mov eax, dword [rdi]
add rdi, 4
jmp 0x1abeb29
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x1abeba6
sub rsp, 0xffffffffffffff80
jmp 0x46a520
Function at 0x140003888
Capabilities:
Get common file path

Disassembly:
sub rsp, 0x2f8
mov dword [rsp + 0x38], 0
lea rax, [rsp + 0x1e0]
mov qword [rsp + 0x20], rax
xor r9d, r9d
xor r8d, r8d
mov edx, 0x1a
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jl 0x140003a03
lea rcx, [rsp + 0x33]
call fcn.140003a0c
mov qword [rsp + 0x40], rax
mov rcx, qword [rsp + 0x40]
call fcn.14000fec0
mov qword [rsp + 0x58], rax
lea rdx, [rsp + 0x1e0]
lea rcx, [rsp + 0xa8]
call fcn.14000d158
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
mov qword [rsp + 0x60], rax
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x88]
call fcn.140013fdc
nop
lea rcx, [rsp + 0xa8]
call fcn.140010cd4
mov dword [rsp + 0x20], 1
mov r9d, 0x40
mov r8d, 2
lea rdx, [rsp + 0x88]
lea rcx, [rsp + 0xd0]
call fcn.14000a3a4
nop
cmp qword [rsp + 0x158], 0
je 0x14000396c
mov byte [rsp + 0x30], 1
jmp 0x140003971
mov byte [rsp + 0x30], 0
mov al, byte [rsp + 0x30]
mov byte [rsp + 0x31], al
mov al, byte [rsp + 0x31]
mov byte [rsp + 0x32], al
movzx eax, byte [rsp + 0x32]
test eax, eax
je 0x1400039e8
lea rcx, [rsp + 0x34]
call fcn.140003ac8
mov qword [rsp + 0x68], rax
mov rcx, qword [rsp + 0x68]
call fcn.14000fcc8
mov qword [rsp + 0x70], rax
mov rdx, qword [rsp + 0x70]
lea rcx, [rsp + 0xd0]
call fcn.14001468c
mov qword [rsp + 0x78], rax
lea rax, [0x140014c38]
mov qword [rsp + 0x80], rax
mov rcx, qword [rsp + 0x78]
call qword [rsp + 0x80]
lea rcx, [rsp + 0xd0]
call fcn.14000a28c
nop
lea rcx, [rsp + 0xd0]
call fcn.140003b84
nop
lea rcx, [rsp + 0x88]
call fcn.140010cd4
add rsp, 0x2f8
ret
Function at 0x140005584
Capabilities:
Get hostname

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x58
mov dword [rsp + 0x24], 0
mov dword [rsp + 0x28], 0x10
lea rdx, [rsp + 0x28]
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetComputerNameA]
test eax, eax
je 0x1400055d2
lea rdx, [rsp + 0x40]
mov rcx, qword [rsp + 0x60]
call fcn.14000d158
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x60]
jmp 0x14000560f
lea rcx, [rsp + 0x20]
call fcn.140005614
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14000f708
mov qword [rsp + 0x38], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x60]
call fcn.14000d158
mov eax, dword [rsp + 0x24]
or eax, 1
mov dword [rsp + 0x24], eax
mov rax, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x14001df10
Capabilities:
Parse pe header

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

Function at 0x140024058
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 0x140023ec3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140023ec3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140023ec3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140023ec3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140023ec3
cmp dword [rcx + 0x84], 0xe
jbe 0x140023ec3
cmp dword [rcx + 0xf8], 0
je 0x140023ec3
mov ecx, ebx
call fcn.140023f74
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.140023d50
nop
cmp dword [rbp + 0x20], 0
je 0x140023f11
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140023f1c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140023e54

Function at 0x140030e7c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140030e92
mov al, 1
jmp 0x140030ef2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140030ea3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140030ef0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003ab9c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140030ef0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140030ef0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140030ef0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140030ef2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140035200
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.14001da50
sub rsp, rax
mov rax, qword [0x14005a0c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140030c60
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003524f
mov rax, rbp
jmp 0x140035357
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 + 0x5c590]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140036c20
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5c590]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140035353
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 0x140035353
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140036c20
test rax, rax
js 0x140035353
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140035353
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140035345
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140035345
cmp byte [rcx], 0xd
jne 0x14003532b
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x14003533a
cmp byte [rcx + 1], 0xa
jne 0x14003533a
inc rcx
jmp 0x14003533a
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5a4f0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x14003530d
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140035357
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001da20
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 0x140035fc0
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, [0x14005c590]
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 0x140036017
cmp word [rdx], r13w
jne 0x140036017
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14003601c
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140036141
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140036162
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140036055
mov rdx, r9
mov word [rbx], cx
jmp 0x14003607c
cmp r9, r8
jae 0x14003608c
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 0x140036036
jmp 0x140036141
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 0x140036136
cmp dword [rsp + 0x80], esi
je 0x140036136
lea r8, [0x14005c590]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14003610e
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x1400360de
mov word [rbx], r13w
jmp 0x14003613e
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 0x1400360eb
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14003613e
cmp word [rsp + 0x70], r13w
jne 0x14003611b
cmp rbx, r14
je 0x1400360d8
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140036c28
cmp word [rsp + 0x70], r13w
je 0x140036141
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, [0x14005c590]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14003613b
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140036141
Function at 0x14003a5e0
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 0x14003a610
xor eax, eax
jmp 0x14003a6d3
mov rbp, rbx
cmp word [rax], si
je 0x14003a635
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14003a61c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14003a618
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.140038bb8
movsxd r14, eax
test eax, eax
jne 0x14003a673
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14003a609
mov rcx, r14
call fcn.140031a90
mov rdi, rax
test rax, rax
jne 0x14003a68c
xor ecx, ecx
call fcn.140031a54
jmp 0x14003a668
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.140038bb8
test eax, eax
jne 0x14003a6bd
mov rcx, rdi
call fcn.140031a54
jmp 0x14003a6c7
xor ecx, ecx
call fcn.140031a54
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 0x14003d0f0
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.140031408
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 0x14003d191
cmp ebx, dword [rsp + 0x30]
je 0x14003d18a
test esi, esi
je 0x14003d18a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14003d165
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14003d172
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14003d14f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14003d176
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14003d193
mov eax, 1
jmp 0x14003d193
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret