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

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
sub rsp, 0x30
movsxd rbp, ecx
mov r9, r8
mov rax, rbp
lea rcx, [0x1800377e0]
and eax, 0x3f
mov r10, rbp
sar r10, 6
xor edi, edi
mov rsi, rdx
mov r14, rbp
lea r8, [rax + rax*8]
mov rax, qword [rcx + r10*8]
mov ecx, 4
mov qword [rsp + 0x78], rcx
mov r11, qword [rax + r8*8 + 0x28]
lea r12d, [rcx + 6]
test r9, r9
je 0x180019d9e
cmp word [rdx], r12w
jne 0x180019d9e
or byte [rax + r8*8 + 0x38], cl
jmp 0x180019da4
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x180019eff
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x180019eda
lea r9, [rcx + 2]
cmp ax, r13w
je 0x180019ddd
mov rcx, r9
jmp 0x180019e00
cmp r9, rdx
jae 0x180019e17
cmp word [r9], r12w
mov eax, 2
cmove rax, qword [rsp + 0x78]
add rcx, rax
mov eax, r12d
cmp word [r9], r12w
cmovne ax, r13w
mov word [rbx], ax
mov r9d, 0x1a
add rbx, 2
cmp rcx, rdx
jb 0x180019dc1
jmp 0x180019eff
lea r9, [rsp + 0x80]
mov qword [rsp + 0x20], rdi
mov r8d, 2
lea rdx, [rsp + 0x70]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x180019ed4
cmp dword [rsp + 0x80], edi
je 0x180019ed4
mov rdx, r14
lea r11, [0x1800377e0]
sar rdx, 6
and r14d, 0x3f
mov rax, qword [r11 + rdx*8]
lea r8, [r14 + r14*8]
test byte [rax + r8*8 + 0x38], 0x48
je 0x180019ead
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x180019e80
mov word [rbx], r12w
jmp 0x180019efb
mov word [rbx], r13w
mov word [rsp + 0x78], ax
mov rax, qword [r11 + rdx*8]
lea rcx, [rax + r8*8]
mov al, byte [rsp + rdi + 0x78]
mov byte [rcx + rdi + 0x3a], al
inc rdi
cmp rdi, 2
jl 0x180019e89
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x180019efb
cmp word [rsp + 0x70], r12w
jne 0x180019eba
cmp rbx, rsi
je 0x180019e7a
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.18001a9cc
cmp word [rsp + 0x70], r12w
je 0x180019eff
mov word [rbx], r13w
jmp 0x180019efb
lea r11, [0x1800377e0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x180019ef7
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x180019eff
mov word [rbx], r9w
add rbx, 2
sub rbx, rsi
sar rbx, 1
lea eax, [rbx + rbx]
add rsp, 0x30
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x180021c0c
Capabilities:
Enumerate pe sections

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
movsxd r8, dword [0x18000003c]
lea rsi, [0x180000000]
add r8, rsi
mov rbx, rdx
mov rdi, rcx
cmp dword [r8 + 0x84], 0xd
jbe 0x180021c84
mov r10d, dword [r8 + 0xf0]
xor r9d, r9d
test r10d, r10d
je 0x180021c84
movzx ecx, word [r8 + 0x14]
movzx r11d, word [r8 + 6]
add rcx, 0x18
mov r10d, dword [r10 + rsi + 0xc]
add rcx, r8
test r11d, r11d
je 0x180021c84
mov eax, dword [rcx + 0xc]
cmp r10d, eax
jb 0x180021c78
mov edx, dword [rcx + 8]
add eax, edx
cmp r10d, eax
jb 0x180021c96
inc r9d
add rcx, 0x28
cmp r9d, r11d
jb 0x180021c66
xor eax, eax
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret
mov dword [rdi], edx
mov eax, dword [rcx + 0x24]
mov dword [rbx], eax
mov eax, dword [rcx + 0xc]
add rax, rsi
jmp 0x180021c86

Function at 0x180022330
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x180022358
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x180022358
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001820
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x68
mov byte [rsp + 0x50], 0x5b
mov byte [rsp + 0x51], 0xb8
mov byte [rsp + 0x52], 0xff
mov byte [rsp + 0x53], 0x5e
mov byte [rsp + 0x54], 0xb5
mov byte [rsp + 0x55], 0xce
mov byte [rsp + 0x56], 0x5b
mov byte [rsp + 0x57], ILCreateFromPathW
mov byte [rsp + 0x58], ILCloneFirst
mov byte [rsp + 0x59], 0xfc
mov dword [rsp + 0x24], 0x644cb7ed
mov dword [rsp + 0x20], 0
lea rax, [rsp + 0x50]
mov qword [rsp + 0x38], rax
movsxd rax, dword [rsp + 0x20]
cmp rax, 0xa
jae 0x1400018b8
movsxd rax, dword [rsp + 0x20]
mov rcx, qword [rsp + 0x38]
movzx eax, byte [rcx + rax]
sub eax, dword [rsp + 0x24]
movsxd rcx, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov byte [rdx + rcx], al
mov eax, dword [rsp + 0x24]
sub eax, 0xfda9
mov dword [rsp + 0x24], eax
mov eax, dword [rsp + 0x20]
inc eax
mov dword [rsp + 0x20], eax
jmp 0x140001875
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov qword [rsp + 0x28], rax
cmp qword [rsp + 0x28], 0
jne 0x1400018d7
xor eax, eax
jmp 0x140001a0e
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1400018f7
xor eax, eax
jmp 0x140001a0e
mov rax, qword [rsp + 0x40]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x48]
cmp dword [rax], 0x4550
je 0x140001924
xor eax, eax
jmp 0x140001a0e
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x48]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
jne 0x140001958
xor eax, eax
jmp 0x140001a0e
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 0x20], rcx
mov rax, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x30]
mov ecx, dword [rcx + 0x18]
mov dword [rax + 0x18], ecx
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 8], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov qword [rcx], rax
mov rax, qword [rsp + 0x30]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
mov rcx, qword [rsp + 0x70]
mov qword [rcx + 0x10], rax
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x20], 0
je 0x140001a03
mov rax, qword [rsp + 0x70]
cmp dword [rax + 0x18], 0
je 0x140001a03
mov rax, qword [rsp + 0x70]
cmp qword [rax + 8], 0
je 0x140001a03
mov rax, qword [rsp + 0x70]
cmp qword [rax], 0
je 0x140001a03
mov rax, qword [rsp + 0x70]
cmp qword [rax + 0x10], 0
jne 0x140001a09
xor eax, eax
jmp 0x140001a0e
mov eax, 1
add rsp, 0x68
ret
Function at 0x140168cb0
Capabilities:
Parse pe header

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

Function at 0x14016c110
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 0x14016c17f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14016c17f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14016c17f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14016c17f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14016c17f
cmp dword [rcx + 0x84], 0xe
jbe 0x14016c17f
cmp dword [rcx + 0xf8], 0
je 0x14016c17f
mov ecx, ebx
call fcn.14016c230
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.14016c00c
nop
cmp dword [rbp + 0x20], 0
je 0x14016c1cd
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14016c1d8
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x14016c110

Function at 0x14016c314
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14016c110
Function at 0x14016ed70
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14016edf7
mov rsi, rbx
cmp word [rax], bp
je 0x14016edb6
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14016eda0
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14016ed9c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14016f790
mov rdi, rax
test rax, rax
je 0x14016ede4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401746e0
mov rbp, rdi
xor ecx, ecx
call fcn.14016da38
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140173f40
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140173f68
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140173f68
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1800111b3
Capabilities:
Terminate process

Disassembly:
jmp 0x180012ec0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
nop
add rsp, 0x28
ret
Function at 0x14006c290
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1498
call fcn.1401001c0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x1410], 0xfffffffffffffffe
mov esi, edx
mov qword [rbp + 0x1408], rcx
movabs rcx, 0x9f640314f87cda78
mov rax, qword [0x1401c7c30]
add rax, rcx
lea rdx, str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789
lea rcx, [rbp + 0x1398]
call rax
movabs rax, 0xc7f4e5cdeb32e23a
add rax, qword [0x1401c7be8]
call rax
movabs r10, 0xbcabb35e69114c72
add r10, qword [0x1401c7bf0]
lea rdi, [rbp - 0x58]
mov rcx, rdi
mov edx, eax
mov r8d, 0xffffffff
mov r9d, 0x6c078965
call r10
mov rax, qword [0x1401c7c38]
movabs r13, 0x9f640314f87cda78
add rax, r13
lea rbx, [rbp + 0x1398]
mov rcx, rbx
call rax
lea r8d, [rax - 1]
mov rax, qword [0x1401c7c40]
add rax, r13
lea r14, [rbp + 0x1390]
mov rcx, r14
xor edx, edx
call rax
movsxd r15, esi
movabs rcx, 0x4a2e4b794352cfa2
mov rax, qword [0x1401c7c88]
add rax, rcx
lea r12, [rbp + 0x13d8]
mov rcx, r12
call rax
mov rcx, r12
xor edx, edx
mov r8, r15
call fcn.140022350
mov qword [rbp + 0x13c0], rbx
mov qword [rbp + 0x13c8], r14
mov qword [rbp + 0x13d0], rdi
mov rax, qword [0x1401c7c48]
add rax, r13
lea rcx, [rbp + 0x13d8]
lea rdx, [rbp + 0x13f8]
call rax
mov rdx, qword [rbp + 0x13f8]
lea rcx, [rbp + 0x1350]
lea r9, [rbp + 0x13c0]
mov r8d, esi
call fcn.14006c8b0
lea rcx, [0x140254070]
lea rdx, str.chromium_collect
call fcn.1400089a0
mov rsi, rax
mov rax, qword [rax]
movsxd rcx, dword [rax + 4]
add rcx, rsi
movabs rdi, 0xd01fb5f4274a75fe
mov rax, qword [0x1401c7d20]
add rax, rdi
mov dl, 0xa
call rax
mov r8, qword [0x1401c7d28]
add r8, rdi
mov rcx, rsi
mov edx, eax
call r8
add rdi, qword [0x1401c7d30]
mov rcx, rsi
call rdi
mov rax, qword [0x1401c7c50]
movabs r15, 0x9f640314f87cda78
add rax, r15
lea rdi, [0x14023e4d0]
lea rsi, [rbp + 0x13b8]
mov rcx, rdi
mov rdx, rsi
call rax
mov rax, qword [0x1401c7c58]
add rax, r15
lea rdx, [rbp + 0x1400]
mov rcx, rdi
call rax
movabs rdi, 0x2d0056e7d372c9c5
lea r14, [rbp + 0x1370]
lea r12, [rbp + 0x1350]
lea r13, [rbp + 0x1330]
jmp 0x14006c4da
mov rax, qword [0x1401c7c60]
add rax, r15
mov rcx, rsi
lea rdx, [rbp + 0x1400]
call rax
xor al, 1
movzx eax, al
shl eax, 4
lea rcx, [0x1401a12e0]
mov rax, qword [rax + rcx + 0x10]
add rax, rdi
jmp rax
Function at 0x1400e63a0
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
mov eax, 0x1428
call fcn.1401001c0
sub rsp, rax
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x13a0], 0xfffffffffffffffe
mov rsi, rcx
movabs rdi, 0x834b06aca8f0e0ae
mov rax, qword [0x14020f120]
add rax, rdi
xor ecx, ecx
call rax
mov rdx, qword [0x14020f128]
add rdx, rdi
mov ecx, eax
call rdx
mov rax, qword [0x14020f130]
add rax, rdi
lea rcx, [rbp + 0x1340]
mov rdx, rsi
call rax
movabs rax, 0xb5f99053cdfca5fc
add rax, qword [0x14020f1c0]
call rax
movabs r10, 0x4d43264202521378
add r10, qword [0x14020f1c8]
lea rcx, [rbp - 0x60]
mov edx, eax
mov r8d, 0xffffffff
mov r9d, 0x6c078965
call r10
mov rax, qword [0x14020f138]
add rax, rdi
lea rsi, [rbp + 0x1340]
lea rdx, [rbp + 0x1370]
mov rcx, rsi
call rax
mov rax, qword [0x14020f140]
add rax, rdi
lea rdx, [rbp + 0x1378]
mov rcx, rsi
call rax
mov rsi, qword [rbp + 0x1378]
mov rdi, qword [rbp + 0x1370]
movabs rbx, 0x1550a25cb2be2494
mov rax, qword [0x14020f1b0]
add rax, rbx
lea rcx, [rbp + 0x1358]
lea rdx, [rbp - 0x60]
call rax
add rbx, qword [0x14020f1b8]
lea r8, [rbp + 0x1358]
mov rcx, rsi
mov rdx, rdi
call rbx
movabs rax, 0x6926bd0bda56217f
add rax, qword [0x14020f1e0]
lea rcx, [rbp + 0x1358]
lea rdx, [rbp - 0x60]
call rax
mov rax, qword [0x14020f140]
movabs r15, 0x834b06aca8f0e0ae
add rax, r15
lea rdi, [rbp + 0x1340]
lea rsi, [rbp + 0x1380]
mov rcx, rdi
mov rdx, rsi
call rax
mov rax, qword [0x14020f138]
add rax, r15
lea rdx, [rbp + 0x1388]
mov rcx, rdi
call rax
lea r13, [0x14020b080]
movabs rbx, 0xc4392eb8c5a35c7b
movabs rdi, 0xf984209f091e611a
lea r14, [rbp + 0x1358]
lea r12, [rbp + 0x1394]
jmp 0x1400e6580
mov rax, qword [0x14020f148]
add rax, r15
mov rcx, rsi
lea rdx, [rbp + 0x1388]
call rax
test al, al
mov eax, reloc.SHLWAPI.dll_IStream_Read
mov ecx, 0x20
cmovne eax, ecx
mov rax, qword [rax + r13]
add rax, rbx
jmp rax

Function at 0x140100cac
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140100cf6
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140100cf6
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140100cf6
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140100cf6
cmp dword [rcx + 0x84], 0xe
jbe 0x140100cf6
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140100cf8
xor al, al
add rsp, 0x28
ret
Function at 0x140113f58
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 0x140113fc7
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140113fc7
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140113fc7
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140113fc7
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140113fc7
cmp dword [rcx + 0x84], 0xe
jbe 0x140113fc7
cmp dword [rcx + 0xf8], 0
je 0x140113fc7
mov ecx, ebx
call fcn.140114078
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.140113e54
nop
cmp dword [rbp + 0x20], 0
je 0x140114015
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140114020
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x140113f58

Function at 0x14011415c
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x140113f58
Function at 0x14011fab4
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14011faca
mov al, 1
jmp 0x14011fb2a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14011fadb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14011fb28
mov ecx, dword [rcx + 0x18]
nop
call fcn.1401237ac
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14011fb28
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14011fb28
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14011fb28
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14011fb2a
xor al, al
add rsp, 0x20
pop rbx
ret

Function at 0x14011fe9c
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, [0x140253890]
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 0x14011fef3
cmp word [rdx], r13w
jne 0x14011fef3
or byte [rax + rdi*8 + 0x38], cl
jmp 0x14011fef8
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x14012001d
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x14012003e
lea r9, [rdx + 2]
cmp cx, r11w
je 0x14011ff31
mov rdx, r9
mov word [rbx], cx
jmp 0x14011ff58
cmp r9, r8
jae 0x14011ff68
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 0x14011ff12
jmp 0x14012001d
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 0x140120012
cmp dword [rsp + 0x80], esi
je 0x140120012
lea r8, [0x140253890]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x14011ffea
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x14011ffba
mov word [rbx], r13w
jmp 0x14012001a
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 0x14011ffc7
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x14012001a
cmp word [rsp + 0x70], r13w
jne 0x14011fff7
cmp rbx, r14
je 0x14011ffb4
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140120b04
cmp word [rsp + 0x70], r13w
je 0x14012001d
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, [0x140253890]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x140120017
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x14012001d
Function at 0x140120ec0
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.1401001c0
sub rsp, rax
mov rax, qword [0x14023a080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.14011bac4
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x140120f0f
mov rax, rbp
jmp 0x140121017
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 + 0x253890]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140120afc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x253890]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140121013
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 0x140121013
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140120afc
test rax, rax
js 0x140121013
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140121013
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140121005
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140121005
cmp byte [rcx], 0xd
jne 0x140120feb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x140120ffa
cmp byte [rcx + 1], 0xa
jne 0x140120ffa
inc rcx
jmp 0x140120ffa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x23a680]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x140120fcd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140121017
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.1400ffed0
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 0x140122618
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 0x140122648
xor eax, eax
jmp 0x14012270b
mov rbp, rbx
cmp word [rax], si
je 0x14012266d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140122654
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140122650
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.14011c3dc
movsxd r14, eax
test eax, eax
jne 0x1401226ab
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140122641
mov rcx, r14
call fcn.140119d1c
mov rdi, rax
test rax, rax
jne 0x1401226c4
xor ecx, ecx
call fcn.140119ce0
jmp 0x1401226a0
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.14011c3dc
test eax, eax
jne 0x1401226f5
mov rcx, rdi
call fcn.140119ce0
jmp 0x1401226ff
xor ecx, ecx
call fcn.140119ce0
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 0x140122728
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1401227af
mov rsi, rbx
cmp word [rax], bp
je 0x14012276e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140122758
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140122754
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140119d1c
mov rdi, rax
test rax, rax
je 0x14012279c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1401527e0
mov rbp, rdi
xor ecx, ecx
call fcn.140119ce0
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1401264c0
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.1401172a4
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 0x140126561
cmp ebx, dword [rsp + 0x30]
je 0x14012655a
test esi, esi
je 0x14012655a
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x140126535
sub r8w, 0x61
cmp r8w, 0x19
ja 0x140126542
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14012651f
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x140126546
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x140126563
mov eax, 1
jmp 0x140126563
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret