joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000bcd0
Capabilities:
Compress data via winapi

Disassembly:
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
sub rsp, 0x30
mov rsi, r9
mov ebp, r8d
mov r14, rdx
mov edi, 0xffffffff
cmp ecx, 1
jne 0x14000bd5d
lea rcx, str.ntdll.dll
mov qword [rsp + 0x40], rbx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbx, rax
test rax, rax
je 0x14000bd58
lea rdx, str.RtlDecompressBuffer
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov r10, rax
test rax, rax
je 0x14000bd4f
mov rax, qword [rsp + 0x68]
mov r9, rsi
mov qword [rsp + 0x28], rax
mov r8d, ebp
mov eax, dword [rsp + 0x60]
mov rdx, r14
mov ecx, 2
mov dword [rsp + 0x20], eax
call r10
mov edi, eax
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
test edi, edi
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
sete al
add rsp, 0x30
pop r14
ret
Function at 0x14000bd90
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0xa0
xor edi, edi
movzx ebp, r8b
mov qword [rcx], rdi
mov esi, edx
mov qword [rcx + 8], rdi
mov r14, rcx
add rcx, 0x10
xor edx, edx
mov r8d, 0x100
mov r15d, r9d
call fcn.140016dc0
mov qword [r14 + 0x110], rdi
mov qword [r14 + 0x118], rdi
call qword [sym.imp.KERNEL32.dll_GetTickCount64]
xorps xmm0, xmm0
lea rcx, [rsp + 0x60]
mov qword [r14 + 0x110], rax
movups xmmword [rsp + 0x60], xmm0
call qword [sym.imp.KERNEL32.dll_GetLocalTime]
lea rdx, [0x140089010]
mov eax, edi
mov rcx, rdx
nop dword [rax + rax]
cmp esi, dword [rcx]
je 0x14000be21
inc eax
add rcx, 0xc
cmp eax, 0xa
jb 0x14000be10
jmp 0x14000be2a
lea rcx, [rax + rax*2]
mov rdi, qword [rdx + rcx*4 + 4]
xorps xmm0, xmm0
lea rcx, [rsp + 0x70]
xor eax, eax
movups xmmword [rsp + 0x70], xmm0
mov qword [rsp + 0x90], rax
dec rcx
movups xmmword [rsp + 0x80], xmm0
nop dword [rax]
cmp byte [rcx + 1], al
lea rcx, [rcx + 1]
jne 0x14000be50
mov eax, dword [0x1400723a0]
lea rdx, [r14 + 0x10]
movsd xmm0, qword [str._SystemRoot_]
mov r8d, 0x100
movsd qword [rcx], xmm0
mov dword [rcx + 8], eax
movzx eax, byte [0x1400723a4]
mov byte [rcx + 0xc], al
lea rcx, [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea rcx, [r14 + 0xf]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14000be91
movups xmm0, xmmword [str.System32AMDReal_]
movups xmmword [rcx], xmm0
mov eax, dword [0x140072b78]
mov dword [rcx + 0x10], eax
test bpl, bpl
je 0x14000bed2
lea rcx, [r14 + 0xf]
nop word [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14000bec0
mov eax, dword [0x140072b7c]
mov dword [rcx], eax
lea rcx, [r14 + 0xf]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14000bed6
movzx eax, word [0x140072b80]
mov word [rcx], ax
movzx eax, byte [0x140072b82]
mov byte [rcx + 2], al
lea rcx, [r14 + 0xf]
nop dword [rax + rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14000bf00
xor edx, edx
nop dword [rax]
movzx eax, byte [rdi + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14000bf10
lea rcx, [r14 + 0xf]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14000bf23
movzx eax, word [0x140072b84]
movzx edx, word [rsp + 0x6e]
movzx r8d, word [rsp + 0x6c]
movzx r9d, word [rsp + 0x6a]
movzx r10d, word [rsp + 0x68]
movzx r11d, word [rsp + 0x66]
movzx edi, word [rsp + 0x62]
movzx esi, word [rsp + 0x60]
mov word [rcx], ax
mov rax, 0xffffffffffffffff
inc rax
cmp byte [r14 + rax + 0x10], 0
jne 0x14000bf65
mov dword [rsp + 0x50], edx
lea rcx, [r14 + 0x10]
mov dword [rsp + 0x48], r8d
lea rdx, str.grp__d_cat__d__d__d__d__d__d__d__d.log
mov dword [rsp + 0x40], r9d
mov r8d, r15d
mov r9d, dword [rsp + 0xe0]
mov dword [rsp + 0x38], r10d
mov dword [rsp + 0x30], r11d
mov eax, eax
mov dword [rsp + 0x28], edi
add rcx, rax
mov dword [rsp + 0x20], esi
call fcn.140008fc0
lea r11, [rsp + 0xa0]
mov rax, r14
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 0x14000c8a0
Capabilities:
Get session information

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
mov dil, 1
xor esi, esi
call qword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
mov ebx, eax
inc eax
test eax, 0xfffffffe
jne 0x14000c8d2
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000c8b4
lea rax, [rsp + 0x40]
mov qword [rsp + 0x48], rsi
lea r9, [rsp + 0x48]
mov qword [rsp + 0x20], rax
mov r8d, 8
mov edx, ebx
xor ecx, ecx
call sub.WTSAPI32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x14000c919
mov rdx, qword [rsp + 0x48]
mov ecx, dword [rdx]
test ecx, ecx
je 0x14000c90e
cmp ecx, 1
je 0x14000c90e
mov dil, 1
jmp 0x14000c911
xor dil, dil
mov rcx, rdx
call sub.WTSAPI32.dll_WTSFreeMemory
test dil, dil
je 0x14000c92b
mov ecx, 0xbb8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000c8b4
mov rsi, qword [rsp + 0x58]
mov eax, ebx
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x14000cb50
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp dword [0x140089e34], 0
je case.default.0x14000cb84
xor eax, eax
movsxd r9, ecx
mov qword [rsp + 0x28], rax
lea r8, [0x14000c2c0]
xor ecx, ecx
mov dword [rsp + 0x20], eax
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]
add rsp, 0x38
ret

Function at 0x14000cf20
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
xor eax, eax
lea r8, [0x14000cf60]
mov qword [rsp + 0x28], rax
xor ecx, ecx
mov dword [rsp + 0x20], eax
lea r9d, [rax + 1]
lea edx, [rax + 8]
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rcx, rax
add rsp, 0x38
jmp qword [sym.imp.KERNEL32.dll_CloseHandle]

Function at 0x14000d4e0
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rcx
mov qword [rax + 0x10], rdx
mov qword [rax + 0x18], r8
mov qword [rax + 0x20], r9
push rbx
sub rsp, 0x250
cmp byte [0x14008a089], 0
mov rbx, rcx
je 0x14000d57b
mov qword [rax - 0x10], rdi
lea rcx, [rsp + 0x40]
xor edx, edx
lea rdi, [rax + 0x10]
mov r8d, 0x200
call fcn.140016dc0
call fcn.140008e90
mov qword [rsp + 0x30], rdi
lea rdx, [rsp + 0x40]
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], rbx
mov ebx, 0x1ff
mov rcx, qword [rax]
mov r9d, ebx
lea r8d, [rbx + 1]
call fcn.140048cc0
test eax, eax
mov ecx, 0xffffffff
cmovs eax, ecx
cmp eax, ecx
lea rcx, [rsp + 0x40]
cmove eax, ebx
cdqe
mov byte [rsp + rax + 0x40], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rdi, qword [rsp + 0x248]
add rsp, 0x250
pop rbx
ret
Function at 0x14000d910
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rsp - 0x350]
sub rsp, 0x450
mov rbx, r8
mov qword [rsp + 0x68], 0
mov r15, rdx
mov dword [rsp + 0x70], 0
mov rsi, rcx
xorps xmm0, xmm0
xor edx, edx
lea rcx, [rbp + 0x10]
mov r8d, 0x338
mov r14d, r9d
movdqu xmmword [rsp + 0x58], xmm0
xor dil, dil
call fcn.140016dc0
cmp rsi, 0xffffffffffffffff
je 0x14000dad4
xor eax, eax
mov qword [rsp + 0x38], 0
test rbx, rbx
mov qword [rsp + 0x44], r15
mov r9d, 0x34
mov qword [rsp + 0x4c], rbx
setne al
mov dword [rsp + 0x54], r14d
add eax, 5
lea r8, [rsp + 0x40]
mov dword [rsp + 0x40], eax
mov edx, 0xdc7fe404
lea rax, [rbp + 0x370]
mov rcx, rsi
mov qword [rsp + 0x30], rax
lea rax, [rbp + 0x10]
mov dword [rsp + 0x28], 0x338
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_DeviceIoControl]
cmp eax, 1
sete dil
jne 0x14000dad4
cmp dword [rbp + 0x10], 0
jne 0x14000dad4
mov rbx, qword [rbp + 0x390]
lea rdx, str.System32AMD
movups xmm0, xmmword [rbp + 0x14]
mov rcx, rbx
movups xmm1, xmmword [rbp + 0x24]
movups xmmword [rbx], xmm0
movups xmm0, xmmword [rbp + 0x34]
movups xmmword [rbx + 0x10], xmm1
movups xmm1, xmmword [rbp + 0x44]
movups xmmword [rbx + 0x20], xmm0
movups xmm0, xmmword [rbp + 0x54]
movups xmmword [rbx + 0x30], xmm1
movups xmm1, xmmword [rbp + 0x64]
movups xmmword [rbx + 0x40], xmm0
movups xmm0, xmmword [rbp + 0x74]
movups xmmword [rbx + 0x50], xmm1
movups xmm1, xmmword [rbp + 0x84]
movups xmmword [rbx + 0x60], xmm0
movups xmmword [rbx + 0x70], xmm1
mov eax, dword [0x1400723a0]
movsd xmm0, qword [str._SystemRoot_]
mov dword [rbp - 0x78], eax
movzx eax, byte [0x1400723a4]
mov byte [rbp - 0x74], al
xor eax, eax
movsd qword [rbp - 0x80], xmm0
xorps xmm0, xmm0
mov dword [rbp - 3], eax
movups xmmword [rbp - 0x73], xmm0
movups xmmword [rbp - 0x63], xmm0
movups xmmword [rbp - 0x53], xmm0
movups xmmword [rbp - 0x43], xmm0
movups xmmword [rbp - 0x33], xmm0
movups xmmword [rbp - 0x23], xmm0
movups xmmword [rbp - 0x13], xmm0
call fcn.140017148
mov r9, rax
test rax, rax
je 0x14000dad4
lea rcx, [rbp - 0x80]
dec rcx
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14000da96
xor r8d, r8d
nop dword [rax]
nop word [rax + rax]
movzx eax, byte [r9 + r8]
mov byte [rcx + r8], al
lea r8, [r8 + 1]
test al, al
jne 0x14000dab0
mov r8d, 0x80
lea rcx, [rbp - 0x80]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea r11, [rsp + 0x450]
test dil, dil
mov rbx, qword [r11 + 0x28]
mov eax, 8
cmovne eax, dword [rbp + 0x10]
mov rsi, qword [r11 + 0x30]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret
Function at 0x14000db70
Capabilities:
Query environment variable

Disassembly:
push rbx
sub rsp, 0xb0
mov eax, dword [0x1400723a0]
lea rdx, str.System32AMD
movsd xmm0, qword [str._SystemRoot_]
mov rbx, rcx
mov dword [rsp + 0x28], eax
movzx eax, byte [0x1400723a4]
mov byte [rsp + 0x2c], al
xor eax, eax
movsd qword [rsp + 0x20], xmm0
xorps xmm0, xmm0
mov dword [rsp + 0x9d], eax
movups xmmword [rsp + 0x2d], xmm0
movups xmmword [rsp + 0x3d], xmm0
movups xmmword [rsp + 0x4d], xmm0
movups xmmword [rsp + 0x5d], xmm0
movups xmmword [rsp + 0x6d], xmm0
movups xmmword [rsp + 0x7d], xmm0
movups xmmword [rsp + 0x8d], xmm0
call fcn.140017148
mov r8, rax
test rax, rax
je 0x14000dc24
lea rcx, [rsp + 0x20]
dec rcx
nop dword [rax]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x14000dbf0
xor edx, edx
nop dword [rax]
movzx eax, byte [r8 + rdx]
mov byte [rcx + rdx], al
lea rdx, [rdx + 1]
test al, al
jne 0x14000dc00
mov r8d, 0x80
lea rcx, [rsp + 0x20]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
add rsp, 0xb0
pop rbx
ret
Function at 0x140010ec0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rbp
push rdi
push r12
push r13
push r15
lea rbp, [rsp - 0x300]
sub rsp, 0x400
mov r12, r8
mov rsi, rdx
mov rdi, rcx
xor edx, edx
mov r8d, 0x334
lea rcx, [rbp - 0x40]
mov r15, r9
call fcn.140016dc0
xor r13d, r13d
mov ebx, r13d
cmp dword [rdi + 0x160], ebx
jbe 0x1400110cc
mov qword [rsp + 0x430], r14
nop dword [rax + rax]
mov rcx, qword [rdi]
lea r8, [rbp - 0x40]
mov eax, ebx
mov rdx, qword [rdi + rax*8 + 0x60]
lea r14, [rdi + rax*8]
call sym.amdfendrsr.exe_amdlogumlib_get_driver_info
mov rdx, qword [rsi]
movsxd rax, dword [rbp - 0x40]
movzx ecx, dl
cmp rax, rcx
jne 0x140010f55
shr rdx, 8
movzx eax, dl
cmp dword [rbp + 0x1cc], eax
je 0x140010f63
inc ebx
cmp ebx, dword [rdi + 0x160]
jb 0x140010f20
xor al, al
jmp 0x140010f79
mov rax, qword [r14 + 0x60]
mov qword [r12], rax
mov eax, dword [rsi]
bt rax, 0x18
jae 0x140010f9d
mov qword [r15], r13
mov al, 1
mov r14, qword [rsp + 0x430]
lea r11, [rsp + 0x400]
mov rbx, qword [r11 + 0x38]
mov rsi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r13
pop r12
pop rdi
pop rbp
ret
mov ebx, r13d
cmp dword [rbp + 0x200], ebx
jbe 0x140010f5f
nop dword [rax + rax]
mov rdx, qword [r12]
lea r14, [rbp + 0x204]
mov rcx, qword [rdi]
lea r9, [rsp + 0x20]
xorps xmm0, xmm0
xor eax, eax
mov qword [rbp - 0x50], rax
mov eax, ebx
mov r8, qword [r14 + rax*8]
lea r14, [r14 + rax*8]
movups xmmword [rsp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm0
movups xmmword [rsp + 0x40], xmm0
movups xmmword [rsp + 0x50], xmm0
movups xmmword [rsp + 0x60], xmm0
movups xmmword [rsp + 0x70], xmm0
movups xmmword [rbp - 0x80], xmm0
movups xmmword [rbp - 0x70], xmm0
movups xmmword [rbp - 0x60], xmm0
call sym.amdfendrsr.exe_amdlogumlib_get_device_info2
test eax, eax
je 0x14001101d
mov r8, qword [r14]
lea r9, [rsp + 0x20]
mov rdx, qword [r12]
mov rcx, qword [rdi]
call sym.amdfendrsr.exe_amdlogumlib_get_device_info
mov eax, dword [rsp + 0x3c]
mov qword [r15], r13
movzx ecx, byte [rsi + 2]
cmp eax, 0xff
ja 0x140011033
cmp eax, ecx
jmp 0x140011046
movzx eax, al
cmp eax, ecx
jne 0x140011048
mov eax, dword [rsi]
shr rax, 0x19
xor al, byte [rsp + 0x44]
test al, 0x7f
je 0x14001105d
inc ebx
cmp ebx, dword [rbp + 0x200]
jb 0x140010fb0
xor al, al
jmp 0x140010f79
mov rax, qword [rbp + 0x350]
movaps xmm0, xmmword [rsp + 0x20]
movaps xmm1, xmmword [rsp + 0x30]
movups xmmword [rax], xmm0
movaps xmm0, xmmword [rsp + 0x40]
movups xmmword [rax + 0x10], xmm1
movaps xmm1, xmmword [rsp + 0x50]
movups xmmword [rax + 0x20], xmm0
movaps xmm0, xmmword [rsp + 0x60]
movups xmmword [rax + 0x30], xmm1
movaps xmm1, xmmword [rsp + 0x70]
movups xmmword [rax + 0x40], xmm0
movaps xmm0, xmmword [rbp - 0x80]
movups xmmword [rax + 0x50], xmm1
movaps xmm1, xmmword [rbp - 0x70]
movups xmmword [rax + 0x60], xmm0
movaps xmm0, xmmword [rbp - 0x60]
movups xmmword [rax + 0x70], xmm1
movsd xmm1, qword [rbp - 0x50]
movups xmmword [rax + 0x80], xmm0
movsd qword [rax + 0x90], xmm1
mov rax, qword [r14]
mov qword [r15], rax
jmp 0x140010f77
xor al, al
jmp 0x140010f81
Function at 0x1400114e0
Capabilities:
Enumerate files on windows
Get file attributes

Disassembly:
add rcx, 0x178
jmp 0x1400114e0
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], r14
push rbp
lea rbp, [rsp - 0x1f0]
sub rsp, 0x2f0
xorps xmm0, xmm0
xorps xmm1, xmm1
xor esi, esi
mov rax, r8
mov r14d, edx
mov rbx, rcx
movups xmmword [rbp - 0x50], xmm0
movups xmmword [rbp - 0x40], xmm0
movups xmmword [rbp - 0x30], xmm0
movups xmmword [rbp - 0x20], xmm0
movups xmmword [rbp - 0x10], xmm0
movups xmmword [rbp], xmm0
movups xmmword [rbp + 0x10], xmm0
movups xmmword [rbp + 0x20], xmm0
movups xmmword [rsp + 0x30], xmm1
movups xmmword [rsp + 0x40], xmm1
movups xmmword [rsp + 0x50], xmm1
movups xmmword [rsp + 0x60], xmm1
movups xmmword [rsp + 0x70], xmm1
movups xmmword [rbp - 0x80], xmm1
movups xmmword [rbp - 0x70], xmm1
movups xmmword [rbp - 0x60], xmm1
test r8, r8
je 0x140011586
test r9d, r9d
je 0x140011586
mov r8d, r9d
lea rcx, [rsp + 0x30]
mov rdx, rax
call fcn.1400175f0
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 0x10
jne 0x1400115ab
lea eax, [rsi + 0xa]
jmp 0x14001165f
movups xmm0, xmmword [str.SystemRootSystem32AMD]
movzx eax, byte [0x140073460]
movsd xmm1, qword [0x140073458]
movaps xmmword [rsp + 0x30], xmm0
movsd qword [rsp + 0x40], xmm1
mov byte [rsp + 0x48], al
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x300], rdi
call fcn.14000db70
lea r9, [rsp + 0x30]
mov edx, 0x80
lea r8, str._s.log
lea rcx, [rbp - 0x50]
call fcn.140011ed0
lea rdx, [rbp + 0xb0]
lea rcx, [rbp - 0x50]
call qword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x140011655
lea rax, [rbp + 0xdc]
mov edx, 0x80
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
lea r8, str._s_s
lea rcx, [rbp + 0x30]
call fcn.140011ed0
mov r8d, r14d
lea rdx, [rbp + 0x30]
mov rcx, rbx
call fcn.140011690
mov esi, eax
test eax, eax
je 0x140011638
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbx + 0xf8], eax
lea rdx, [rbp + 0xb0]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x1400115f1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindClose]
mov rdi, qword [rsp + 0x300]
mov eax, esi
lea r11, [rsp + 0x2f0]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140013810
Capabilities:
Get file size
Read file on windows

Disassembly:
push rbp
sub rsp, 0x40
mov qword [rsp + 0x58], rbx
mov rbx, rcx
call fcn.140012620
xor ebp, ebp
mov dword [rax], ebp
mov rcx, qword [rbx + 0x78]
cmp rcx, 0xffffffffffffffff
je 0x140013837
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor r9d, r9d
mov qword [rsp + 0x30], rbp
mov qword [rsp + 0x60], rsi
lea rcx, [rbx + 0xac]
mov dword [rsp + 0x28], 0x8000080
mov edx, 0x80000000
mov qword [rsp + 0x68], rdi
lea r8d, [r9 + 1]
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov qword [rbx + 0x78], rax
cmp rax, 0xffffffffffffffff
jne 0x1400138a3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.140012620
lea rdi, [rbx + 0x868]
lea rsi, [rbx + 0x860]
mov dword [rax], 9
jmp 0x140013993
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea rsi, [rbx + 0x860]
mov dword [rsi], eax
cmp eax, 0xffffffff
jne 0x1400138df
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.140012620
lea rdi, [rbx + 0x868]
mov dword [rax], 9
jmp 0x140013975
lea rdi, [rbx + 0x868]
cmp dword [rbx + 0x864], eax
jae 0x14001390f
mov rcx, qword [rdi]
mov dword [rbx + 0x864], eax
test rcx, rcx
je 0x140013901
call fcn.140015bc4
mov ecx, dword [rbx + 0x864]
call fcn.140015bbc
mov qword [rdi], rax
mov rdx, qword [rdi]
test rdx, rdx
jne 0x140013936
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.140012620
mov dword [rax], 9
mov dword [rbx + 0x864], ebp
jmp 0x140013975
mov rcx, qword [rbx + 0x78]
lea r9, [rsp + 0x50]
mov r8d, 0x146
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x14001395e
cmp dword [rsp + 0x50], 0x146
jae 0x140013975
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.140012620
mov dword [rax], 8
mov rcx, rbx
call fcn.140012620
cmp dword [rax], ebp
je 0x140013993
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x78], 0xffffffffffffffff
mov rcx, rbx
call fcn.140012620
mov rbx, qword [rsp + 0x58]
cmp dword [rax], ebp
je 0x1400139ab
cmp qword [rdi], rbp
je 0x1400139ab
mov dword [rsi], ebp
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
add rsp, 0x40
pop rbp
ret

Function at 0x1400139c0
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x30
mov edi, dword [rcx + 0x860]
lea r9, [rsp + 0x40]
mov rdx, qword [rcx + 0x868]
mov rbx, rcx
mov rcx, qword [rcx + 0x78]
sub edi, 0x146
mov r8d, edi
mov qword [rsp + 0x20], 0
add rdx, 0x146
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x140013a0c
cmp dword [rsp + 0x40], edi
jae 0x140013a23
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov rcx, rbx
mov dword [rbx + 0x18], eax
call fcn.140012620
mov dword [rax], 8
mov rcx, qword [rbx + 0x78]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbx + 0x78], 0xffffffffffffffff
mov rbx, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x1400168d0
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14001691a
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14001691a
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14001691a
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14001691a
cmp dword [rcx + 0x84], 0xe
jbe 0x14001691a
cmp dword [rcx + 0xf8], 0
setne al
jmp 0x14001691c
xor al, al
add rsp, 0x28
ret
Function at 0x14005ca24
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 0x14005ca54
xor eax, eax
jmp 0x14005cb17
mov rbp, rbx
cmp word [rax], si
je 0x14005ca79
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14005ca60
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14005ca5c
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.14005c8a4
movsxd r14, eax
test eax, eax
jne 0x14005cab7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14005ca4d
mov rcx, r14
call fcn.140052708
mov rdi, rax
test rax, rax
jne 0x14005cad0
xor ecx, ecx
call fcn.1400526cc
jmp 0x14005caac
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.14005c8a4
test eax, eax
jne 0x14005cb01
mov rcx, rdi
call fcn.1400526cc
jmp 0x14005cb0b
xor ecx, ecx
call fcn.1400526cc
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 0x140066b54
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140066b6a
mov al, 1
jmp 0x140066bca
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140066b7b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140066bc8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14005ded4
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140066bc8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140066bc8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140066bc8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140066bca
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400691d4
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.140049cf8
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14006925e
cmp byte [rbp - 0x21], r15b
je 0x140069259
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140069294
call fcn.14005733c
test eax, eax
jne 0x140069280
cmp byte [rbp - 0x21], r15b
je 0x140069278
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140069294
cmp byte [rbp - 0x21], r15b
je 0x140069291
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.1400596b8
test eax, eax
jne 0x140069334
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140049cf8
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1400692d3
cmp byte [rbp - 0x21], r15b
je 0x140069308
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140069308
call fcn.14005733c
test eax, eax
jne 0x1400692f4
cmp byte [rbp - 0x21], r15b
je 0x1400692ed
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140069308
cmp byte [rbp - 0x21], r15b
je 0x140069305
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.1400596b8
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140069334
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140069337
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140069345
mov rcx, rdi
call fcn.1400526cc
cmp byte [rbp + 0x3f], r15b
je 0x140069354
mov rcx, qword [rbp + 0x27]
call fcn.1400526cc
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