joyce8/EMBER2024-capa huggingface dataset:
Function at 0x18004b940
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 0x18004b97a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x18004b97f
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 0x18004b9c8
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x180061500]
cmp byte [rcx + rax], 0
je 0x18004b9c8
dec r8
sub rdx, 1
jne 0x18004b9ae
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret

Function at 0x180713058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1807131df
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 0x180713089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18071306f
add dl, dl
jne 0x180713096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807130f6
xor eax, eax
add dl, dl
jne 0x1807130a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1807131ad
add dl, dl
jne 0x1807130b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807130c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807130d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1807130dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1807130ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18071307e
mov eax, 1
add dl, dl
jne 0x180713106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x180713113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1807130fb
sub eax, ebx
mov ebx, 1
jne 0x18071314c
mov ecx, 1
add dl, dl
jne 0x18071312e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18071313b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x180713123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18071307e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x180713168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x180713175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18071315d
cmp eax, 0x7d00
jae 0x18071319b
cmp eax, 0x500
jb 0x180713196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18071307e
cmp eax, 0x7f
ja 0x18071319e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18071307e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1807131d2
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 0x18071307e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140867058
Capabilities:
Decompress data using aplib

Disassembly:
call 0x1408671df
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 0x140867089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14086706f
add dl, dl
jne 0x140867096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408670f6
xor eax, eax
add dl, dl
jne 0x1408670a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1408671ad
add dl, dl
jne 0x1408670b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408670c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408670d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1408670dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1408670ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14086707e
mov eax, 1
add dl, dl
jne 0x140867106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140867113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x1408670fb
sub eax, ebx
mov ebx, 1
jne 0x14086714c
mov ecx, 1
add dl, dl
jne 0x14086712e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14086713b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140867123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086707e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140867168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140867175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14086715d
cmp eax, 0x7d00
jae 0x14086719b
cmp eax, 0x500
jb 0x140867196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086707e
cmp eax, 0x7f
ja 0x14086719e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14086707e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1408671d2
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 0x14086707e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20

Function at 0x100403a20
Capabilities:
Encode data using xor

Disassembly:
xor al, 0x6c
xor al, 0x64
xor al, 0x67
xor al, 0x41
xor al, 0x3e
xor al, 0x7d
xor al, 0xa2
xor al, 0x9a
xor al, 0xa3
xor al, 0x88
xor al, 0x9d
xor al, 0xa4
xor al, 0x71
xor al, 0x74
xor al, 0x59
xor al, 0x87
xchg dword [rbp*4 - 0x57cb58cc], esi
xor al, 0x99
xor al, 0xa1
xor al, 0x86
xor al, 0xa3
xor al, 0xa3
movabs dword [0xa73490345934a834], eax
xor al, 0xad
xor al, 0xa7
xor al, 0xa8
xor al, 0x99
cdq
xor al, 0xa1
xor al, 0x67
xor al, 0x66
xor al, 0x90
xor al, 0xa7
xor al, 0x9c
xor al, 0x99
xor al, 0xa0
xor al, 0xa0
xor al, 0x67
xor al, 0x66
xor al, 0x62
Function at 0x180001000
Capabilities:
Delete file

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x70
mov rax, qword [0x180016008]
xor rax, rsp
mov qword [rsp + 0x60], rax
mov rcx, r8
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edi, 1
nop word [rax + rax]
xor bl, bl
nop dword [rax]
nop word [rax + rax]
xor r9d, r9d
mov dword [rsp + 0x20], edi
xor r8d, r8d
lea rcx, [rsp + 0x30]
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x180001040
nop dword [rax + rax]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_TranslateMessage]
lea rcx, [rsp + 0x30]
call qword [sym.imp.USER32.dll_DispatchMessageW]
cmp dword [rsp + 0x38], 0x12
lea rcx, [rsp + 0x30]
movzx ebx, bl
cmove ebx, edi
mov dword [rsp + 0x20], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
call qword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
jne 0x180001060
test bl, bl
je 0x180001040
mov ecx, 0x1f4
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x180001030
Function at 0x1400013d0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x100
movdqa xmm2, xmmword [0x140018350]
mov r14, rdx
movdqa xmm3, xmmword [0x140018360]
lea rdx, [rsp + 4]
mov r11, rcx
movsxd r15, r8d
mov ecx, 8
mov rbp, r9
mov esi, pe_nt_image_headers64
nop word [rax + rax]
lea eax, [rcx - 8]
movd xmm0, eax
lea rdx, [rdx + 0x10]
pshufd xmm0, xmm0, 0
lea eax, [rcx - 4]
paddd xmm0, xmm2
movd xmm1, eax
pshufd xmm1, xmm1, 0
lea eax, [rcx + 4]
paddd xmm1, xmm2
andps xmm0, xmm3
andps xmm1, xmm3
packuswb xmm0, xmm0
packuswb xmm1, xmm1
packuswb xmm0, xmm0
movd dword [rdx - 0x14], xmm0
packuswb xmm1, xmm1
movd dword [rdx - 0x10], xmm1
movd xmm0, ecx
add ecx, 0x10
pshufd xmm0, xmm0, 0
paddd xmm0, xmm2
movd xmm1, eax
pshufd xmm1, xmm1, 0
andps xmm0, xmm3
paddd xmm1, xmm2
packuswb xmm0, xmm0
andps xmm1, xmm3
packuswb xmm0, xmm0
movd dword [rdx - 0xc], xmm0
lea eax, [rcx - 8]
packuswb xmm1, xmm1
packuswb xmm1, xmm1
movd dword [rdx - 8], xmm1
cmp eax, esi
jl 0x140001420
xor r10d, r10d
lea r9, [rsp]
mov r8d, r10d
mov ebx, r10d
nop dword [rax]
movzx edi, byte [r9]
xor edx, edx
mov rax, rbx
div rbp
movzx eax, byte [rdx + r14]
add r8d, eax
add r8d, edi
and r8d, 0x800000ff
jge 0x1400014ed
dec r8d
or r8d, 0xffffff00
inc r8d
movsxd rax, r8d
lea rcx, [rsp]
add rcx, rax
inc rbx
movzx eax, byte [rcx]
mov byte [r9], al
inc r9
mov byte [rcx], dil
sub rsi, 1
jne 0x1400014c0
mov edx, r10d
mov rbx, r15
test r15d, r15d
jle 0x140001583
nop word [rax + rax]
inc edx
and edx, 0x800000ff
jge 0x140001534
dec edx
or edx, 0xffffff00
inc edx
movsxd rax, edx
lea r8, [rsp]
add r8, rax
movzx r9d, byte [r8]
lea eax, [r10 + r9]
and eax, 0x800000ff
jge 0x140001556
dec eax
or eax, 0xffffff00
inc eax
movsxd r10, eax
lea rcx, [rsp]
movzx eax, byte [rcx + r10]
mov byte [r8], al
mov byte [rcx + r10], r9b
movzx ecx, byte [r8]
add rcx, r9
movzx eax, cl
movzx ecx, byte [rsp + rax]
xor byte [r11], cl
inc r11
sub rbx, 1
jne 0x140001520
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret

Function at 0x1400024c8
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140002512
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140002512
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140002512
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140002512
cmp dword [rcx + 0x84], 0xe
jbe 0x140002512
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x140002514
xor al, al
add rsp, 0x28
ret
Function at 0x140005364
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 0x1400053d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400053d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400053d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400053d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400053d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400053d3
cmp dword [rcx + 0xf8], 0
je 0x1400053d3
mov ecx, ebx
call fcn.140005484
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.140005260
nop
cmp dword [rbp + 0x20], 0
je 0x140005421
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000542c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005364

Function at 0x140005568
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 0x1400053d3
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400053d3
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400053d3
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400053d3
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400053d3
cmp dword [rcx + 0x84], 0xe
jbe 0x1400053d3
cmp dword [rcx + 0xf8], 0
je 0x1400053d3
mov ecx, ebx
call fcn.140005484
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.140005260
nop
cmp dword [rbp + 0x20], 0
je 0x140005421
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000542c
int3
xor r8d, r8d
xor edx, edx
jmp 0x140005364
Function at 0x14000da1c
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 0x14000da4c
xor eax, eax
jmp 0x14000db0f
mov rbp, rbx
cmp word [rax], si
je 0x14000da71
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000da58
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000da54
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.14000d93c
movsxd r14, eax
test eax, eax
jne 0x14000daaf
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000da45
mov rcx, r14
call fcn.14000a8d0
mov rdi, rax
test rax, rax
jne 0x14000dac8
xor ecx, ecx
call fcn.140009ac8
jmp 0x14000daa4
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.14000d93c
test eax, eax
jne 0x14000daf9
mov rcx, rdi
call fcn.140009ac8
jmp 0x14000db03
xor ecx, ecx
call fcn.140009ac8
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 0x14000ffe4
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, [0x140024670]
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 0x14001003b
cmp word [rdx], r13w
jne 0x14001003b
or byte [rax + rdi*8 + 0x38], cl
jmp 0x140010040
and byte [rax + rdi*8 + 0x38], 0xfb
lea r8, [rdx + r8*2]
mov rbx, r14
cmp r14, r8
jae 0x140010165
mov r11d, 0xd
lea r12d, [r11 - 0xb]
movzx ecx, word [rdx]
cmp cx, 0x1a
je 0x140010186
lea r9, [rdx + 2]
cmp cx, r11w
je 0x140010079
mov rdx, r9
mov word [rbx], cx
jmp 0x1400100a0
cmp r9, r8
jae 0x1400100b0
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 0x14001005a
jmp 0x140010165
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 0x14001015a
cmp dword [rsp + 0x80], esi
je 0x14001015a
lea r8, [0x140024670]
mov rax, qword [r8 + rbp*8]
test byte [rax + rdi*8 + 0x38], 0x48
je 0x140010132
movzx eax, word [rsp + 0x70]
cmp ax, r13w
jne 0x140010102
mov word [rbx], r13w
jmp 0x140010162
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 0x14001010f
mov rax, qword [r8 + rbp*8]
mov byte [rax + rdi*8 + 0x3c], r13b
jmp 0x140010162
cmp word [rsp + 0x70], r13w
jne 0x14001013f
cmp rbx, r14
je 0x1400100fc
mov rdx, 0xfffffffffffffffe
mov ecx, r15d
lea r8d, [rdx + 3]
call fcn.140013f64
cmp word [rsp + 0x70], r13w
je 0x140010165
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, [0x140024670]
mov rdx, qword [r8 + rbp*8]
mov al, byte [rdx + rdi*8 + 0x38]
test al, 0x40
jne 0x14001015f
or al, r12b
mov byte [rdx + rdi*8 + 0x38], al
jmp 0x140010165
Function at 0x14001277c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012792
mov al, 1
jmp 0x1400127f2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400127a3
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400127f0
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e220
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400127f0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400127f0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400127f0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400127f2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013830
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14000ca0c
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x1400138ba
cmp byte [rbp - 0x21], r15b
je 0x1400138b5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1400138f0
call fcn.140009d18
test eax, eax
jne 0x1400138dc
cmp byte [rbp - 0x21], r15b
je 0x1400138d4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1400138f0
cmp byte [rbp - 0x21], r15b
je 0x1400138ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14000bfec
test eax, eax
jne 0x140013990
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000ca0c
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14001392f
cmp byte [rbp - 0x21], r15b
je 0x140013964
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140013964
call fcn.140009d18
test eax, eax
jne 0x140013950
cmp byte [rbp - 0x21], r15b
je 0x140013949
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140013964
cmp byte [rbp - 0x21], r15b
je 0x140013961
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14000bfec
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140013990
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140013993
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x1400139a1
mov rcx, rdi
call fcn.140009ac8
cmp byte [rbp + 0x3f], r15b
je 0x1400139b0
mov rcx, qword [rbp + 0x27]
call fcn.140009ac8
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x140015f60
Capabilities:
Parse pe header

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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
movaps xmmword [rax - 0x18], xmm6
mov rax, qword [0x1802a8070]
xor rax, rsp
mov qword [rsp + 0x90], rax
movss xmm6, dword [0x180288ac0]
movss dword [rsp + 0x24], xmm6
mov rdx, qword [rcx]
cmp rdx, 2
jb 0x180038496
mov ecx, 0x68
mov dword [rsp + 0x20], ecx
mov eax, dword [0x1802da954]
cmp eax, 0x9f3
jl 0x18003831e
mov ecx, 0x70
jmp 0x180038330
add eax, 0xfffff766
mov r8d, 0x40
cmp eax, 0x45
cmovbe ecx, r8d
mov dword [rsp + 0x20], ecx
movsxd rax, ecx
mov rcx, qword [rax + rdx]
test rcx, rcx
jne 0x180038348
movaps xmm0, xmm6
jmp 0x180038499
mov r14d, dword [rcx + 0x18]
mov rsi, qword [rcx + 0x10]
test rsi, rsi
jne 0x18003835d
movaps xmm0, xmm6
jmp 0x180038499
xor ebx, ebx
movabs r15, 0x603a6d2b4bf9b8b2
mov dword [rsp + 0x28], ebx
cmp ebx, r14d
jge 0x18003848e
lea eax, [rbx*8]
movsxd rcx, eax
mov rdi, qword [rcx + rsi + 0x20]
and qword [rsp + 0x30], 0
mov qword [rsp + 0x30], rdi
test rdi, rdi
jne 0x18003839a
jmp 0x180038487
lea rcx, [rsp + 0x30]
call fcn.180038084
movsd xmm0, qword [rax]
movsd qword [rsp + 0x38], xmm0
mov eax, dword [rax + 8]
mov dword [rsp + 0x40], eax
mov rax, qword [rdi]
cmp byte [rsp + 0x38], 0
je 0x180038487
movabs rcx, 0xcc5c03a18eab27b7
mov qword [rsp + 0x50], rcx
movabs rcx, 0xd827e4f849dbb2b4
mov qword [rsp + 0x58], rcx
movabs rcx, 0xb4f098fed4e15b8c
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x68], r15
movabs rcx, 0xa52860c4e4c455e7
mov qword [rsp + 0x70], rcx
movabs rcx, 0xb64894992c8cd7d8
mov qword [rsp + 0x78], rcx
movabs rcx, 0xb4f098fed48534c1
mov qword [rsp + 0x80], rcx
mov qword [rsp + 0x88], r15
movdqa xmm0, xmmword [rsp + 0x50]
pxor xmm0, xmmword [rsp + 0x70]
movdqa xmmword [rsp + 0x50], xmm0
movdqa xmm1, xmmword [rsp + 0x60]
pxor xmm1, xmmword [rsp + 0x80]
movdqa xmmword [rsp + 0x60], xmm1
lea rdx, [rsp + 0x50]
mov rcx, qword [rax + 0x10]
call fcn.180193f60
test rax, rax
je 0x180038487
movss xmm0, dword [rsp + 0x3c]
comiss xmm0, dword [0x180288a84]
jb 0x18003848e
comiss xmm6, xmm0
jb 0x18003848e
mulss xmm6, xmm0
movss dword [rsp + 0x24], xmm6
jmp 0x18003848e
inc ebx
jmp 0x180038369
jmp 0x180038496
movaps xmm0, xmm6
mov rcx, qword [rsp + 0x90]
xor rcx, rsp
call fcn.180191ae0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
movaps xmm6, xmmword [r11 - 0x10]
mov rsp, r11
pop r15
ret
Function at 0x18005f848
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x50
mov rax, qword [0x1802a8070]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov eax, 0x5a4d
mov r14, r9
mov rbp, r8
cmp word [rdx], ax
jne 0x18005f8ed
movsxd rcx, dword [rdx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x18005f8ed
movzx esi, word [rcx + 0x14]
xor r11d, r11d
movzx ebx, word [rcx + 6]
add rsi, rcx
test rbx, rbx
je 0x18005f8ed
xor r8d, r8d
lea rcx, [rsi + 0x18]
test dword [rcx + 0x24], 0x20000
jne 0x18005f8de
mov rax, qword [rcx]
mov rdi, rbp
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x30]
sub rdi, rax
mov byte [rsp + 0x38], 0
movzx r9d, byte [rax]
movzx r10d, byte [rax + rdi]
sub r9d, r10d
jne 0x18005f8d9
inc rax
test r10d, r10d
jne 0x18005f8c3
test r9d, r9d
je 0x18005f911
inc r11d
inc r8
add rcx, 0x28
cmp r8, rbx
jl 0x18005f8a2
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.180191ae0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret
movsxd rax, r11d
mov r9, r14
lea rcx, [rax + rax*4]
mov ebx, dword [rsi + rcx*8 + 0x24]
mov r8d, dword [rsi + rcx*8 + 0x20]
add rbx, rdx
mov rdx, rbx
call fcn.18005f750
cmp rax, 0xffffffffffffffff
je 0x18005f8ed
add rax, rbx
jmp 0x18005f8ef