joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140011bbc
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
xor edx, edx
mov rcx, qword gs:[0x60]
mov r8, qword [rbx + 0x28]
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
mov r8, qword [rbx + 8]
and qword [rbx + 0x28], 0
cmp dword [r8], 2
jne 0x140011c13
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 8], 0
mov r8, qword [rbx + 0x18]
cmp dword [r8], 2
jne case.default.0x140011c54
mov rcx, qword gs:[0x60]
xor edx, edx
mov rcx, qword [rcx + 0x30]
call qword [sym.imp.ntdll.dll_RtlFreeHeap]
nop dword [rax + rax]
and qword [rbx + 0x18], 0
mov rcx, qword gs:[0x60]
mov r8, rbx
xor edx, edx
mov rcx, qword [rcx + 0x30]
add rsp, 0x20
pop rbx
jmp qword [sym.imp.ntdll.dll_RtlFreeHeap]
mov eax, 0x68962e43
sbb dword [rbx], esi
mov ch, 0x1e
xchg esi, eax
push 0x1eb53319
rep movsd dword [rdi], dword [rsi]
cmp dword [rbp + 0x3b5f3f7e], edi
retfq
mov bl, 0xe8
lahf
jge 0x14003f782
mov eax, 0xdb3cff5f
invalid
movabs al, byte [0x2b6449f6ea625f77]
adc ebp, dword [rsi + 0x601ca825]
ror byte [rdi - 0x33e9fd58], 0xf
movabs al, byte [0x41688ce1e5c3b580]
xlatb
push rdx
int1
outsd dx, dword [rsi]
push rsp
pop rcx
mov edx, dword [rbx + rdi*8 - 0x1f]
invalid
Function at 0x4048c8
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x68]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [rbp - 0x2c]
and eax, 1
cmp eax, 0
je 0x404901
movzx eax, word [rbp - 0x28]
mov dword [rbp - 0x7c], eax
jmp 0x404909
mov eax, 0xa
mov dword [rbp - 0x7c], eax
movabs rax, 0
mov qword [rbp - 0x70], rax
call sub.kernel32.dll_GetCommandLineA
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
cmp rax, 0
je 0x40494b
mov rax, qword [rbp + 0x10]
mov r11, rax
mov rax, qword [rbp - 0x78]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_strstr
mov qword [rbp - 0x70], rax
movabs rax, 0
mov rcx, qword [rbp - 0x70]
cmp rax, rcx
jne 0x40497d
lea rax, [0x00405108]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll__strdup
mov qword [rbp - 0x70], rax
jmp 0x4049ae
mov rax, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rax, rcx
jbe 0x4049ae
mov rax, qword [rbp - 0x70]
add rax, 0xffffffffffffffff
movsx ecx, byte [rax]
cmp ecx, 0x22
jne 0x4049ae
mov rax, qword [rbp - 0x70]
add rax, 0xffffffffffffffff
mov qword [rbp - 0x70], rax
mov eax, 0x30000
mov r11, rax
mov eax, 0x10000
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__controlfp
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [rbp - 0x7c]
mov r9, rcx
mov rcx, qword [rbp - 0x70]
mov r8, rcx
movabs rcx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00403ff8
leave
ret

Function at 0x4048d3
Capabilities:
Accept command line arguments

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0xa0
mov qword [rbp + 0x10], rcx
lea rax, [rbp - 0x68]
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetStartupInfoA
mov eax, dword [rbp - 0x2c]
and eax, 1
cmp eax, 0
je 0x404901
movzx eax, word [rbp - 0x28]
mov dword [rbp - 0x7c], eax
jmp 0x404909
mov eax, 0xa
mov dword [rbp - 0x7c], eax
movabs rax, 0
mov qword [rbp - 0x70], rax
call sub.kernel32.dll_GetCommandLineA
mov qword [rbp - 0x78], rax
mov rax, qword [rbp + 0x10]
cmp rax, 0
je 0x40494b
mov rax, qword [rbp + 0x10]
mov r11, rax
mov rax, qword [rbp - 0x78]
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll_strstr
mov qword [rbp - 0x70], rax
movabs rax, 0
mov rcx, qword [rbp - 0x70]
cmp rax, rcx
jne 0x40497d
lea rax, [0x00405108]
mov r10, rax
mov rcx, r10
call sub.msvcrt.dll__strdup
mov qword [rbp - 0x70], rax
jmp 0x4049ae
mov rax, qword [rbp - 0x70]
mov rcx, qword [rbp - 0x78]
cmp rax, rcx
jbe 0x4049ae
mov rax, qword [rbp - 0x70]
add rax, 0xffffffffffffffff
movsx ecx, byte [rax]
cmp ecx, 0x22
jne 0x4049ae
mov rax, qword [rbp - 0x70]
add rax, 0xffffffffffffffff
mov qword [rbp - 0x70], rax
mov eax, 0x30000
mov r11, rax
mov eax, 0x10000
mov r10, rax
mov rcx, r10
mov rdx, r11
call sub.msvcrt.dll__controlfp
movabs rax, 0
mov r10, rax
mov rcx, r10
call sub.kernel32.dll_GetModuleHandleA
mov ecx, dword [rbp - 0x7c]
mov r9, rcx
mov rcx, qword [rbp - 0x70]
mov r8, rcx
movabs rcx, 0
mov r11, rcx
mov r10, rax
mov rcx, r10
mov rdx, r11
call fcn.00403ff8
leave
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400a9900]
mov dword [rax], 1
mov rax, qword [0x1400a9910]
mov dword [rax], 1
mov rax, qword [0x1400a9920]
mov dword [rax], 1
mov rax, qword [0x1400a9880]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140024ce0
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140087280
sub rsp, rax
xor eax, eax
xor edx, edx
xor esi, esi
mov r14d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x80], ax
mov r12, rcx
lea rbp, [rsp + 0x30]
lea r13, [rsp + 0x2e]
mov word [rsp + 0x30], dx
test dil, dil
je 0x140024d89
nop dword [rax]
mov rax, r14
lea rbx, [rbp + rsi*2]
sub rax, rsi
cmp word [rbp + rsi*2], 0
je 0x140024d4e
nop dword [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140024d40
test rax, rax
je 0x14009818e
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r13
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [r12 + rsi]
test dil, dil
jne 0x140024d28
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, rbp
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140024db8
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret

Function at 0x140024dd0
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x88
xor eax, eax
xor esi, esi
mov r13d, 0x28
movzx edi, byte [rcx]
mov word [rsp + 0x30], ax
mov rbp, rcx
mov r14, rdx
lea r15, [rsp + 0x30]
lea r12, [rsp + 0x2e]
test dil, dil
je 0x140024e71
nop word [rax + rax]
mov rax, r13
lea rbx, [r15 + rsi*2]
sub rax, rsi
cmp word [r15 + rsi*2], 0
je 0x140024e36
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x140024e28
test rax, rax
je 0x140098194
mov rcx, rbx
add rsi, 1
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], dil
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx edi, byte [rbp + rsi]
test dil, dil
jne 0x140024e10
mov rdx, r14
mov rcx, r15
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
nop
add rsp, 0x88
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
Function at 0x14003c250
Capabilities:
Set environment variable

Disassembly:
push r15
push r14
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x98
lea rsi, str.NUITKA_ONEFILE_BINARY
mov ebx, ecx
mov rcx, rsi
call fcn.140024ce0
test rax, rax
je 0x14003c390
mov rdx, 0xffffffffffffffff
mov rcx, rax
lea r14, [rsp + 0x40]
mov r15d, 0x4e
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov rdi, r14
lea r12, [rsi + 0x28]
lea rbp, [rsp + 0x3e]
mov r13, rax
xor eax, eax
mov word [rsp + 0x40], ax
nop
mov rax, r12
mov rbx, rdi
sub rax, rsi
cmp word [rdi], 0
je 0x14003c2ce
nop
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14003c2c0
test rax, rax
je 0x140098236
mov rcx, rbx
add rsi, 1
add rdi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, rbp
mov byte [rsp + 0x3e], r15b
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x3f], 0
call sub.msvcrt.dll_mbstowcs
movzx r15d, byte [rsi]
test r15b, r15b
jne 0x14003c2b0
xor edx, edx
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rdx, qword [0x1400bb818]
mov rsi, qword [rax + 0x1f0]
mov rax, qword [0x1400a9a30]
mov rbx, qword [rax + 0x1c0]
test rdx, rdx
je 0x14003c3e8
mov r8, rbx
mov rcx, rsi
call fcn.140028550
mov r8, r13
mov rcx, rsi
mov rbx, rax
mov rdx, rax
call fcn.140037f10
sub qword [rbx], 1
jne 0x14003c379
mov rdx, qword [rbx + 8]
mov qword [rsp + 0x28], rax
mov rcx, rbx
call qword [rdx + 0x30]
mov rax, qword [rsp + 0x28]
add rsp, 0x98
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
pop r15
ret
mov rax, qword [0x1400bb0e0]
lea rsi, [0x1400bb0e0]
test bl, bl
je 0x14003c3b0
mov rax, qword [0x1400bb0e8]
lea rsi, [0x1400bb0e8]
test rax, rax
jne 0x14003c379
cmp byte [0x1400bb302], 0
jne 0x14003c3c6
movzx ecx, bl
call fcn.140007110
mov rdx, 0xffffffffffffffff
lea rcx, [0x1400bb100]
call qword [sym.imp.python39.dll_PyUnicode_FromWideChar]
mov qword [rsi], rax
test rax, rax
je 0x14003c415
add qword [rax], 1
jmp 0x14003c379
mov rdx, qword [0x1400bb790]
mov rdi, qword [rax + 0x1b0]
test rdx, rdx
je 0x14003c420
mov r8, rdi
mov rcx, rsi
call fcn.140028550
mov qword [0x1400bb818], rax
mov rdx, rax
jmp 0x14003c343
call qword [sym.imp.python39.dll_PyErr_Print]
call sub.msvcrt.dll_abort
lea rcx, [0x1400a22a6]
call qword [sym.imp.python39.dll_PyImport_ImportModule]
mov qword [0x1400bb790], rax
mov rdx, rax
test rax, rax
je 0x140098236
jmp 0x14003c3fb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
call qword [sym.imp.python39.dll_PyErr_NoMemory]
call sub.msvcrt.dll_abort
nop
Function at 0x14007c3c0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
cmp byte [0x1400bb0c9], 0
mov rbp, rcx
mov r12, rdx
mov rdi, r8
je 0x14007c448
lea rdx, [0x1400a58a2]
mov rcx, rdi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x14007c4b0
mov rbx, qword [0x1400baf88]
jmp 0x14007c405
lea rbx, [rdx + rax + 4]
mov rdx, rbx
mov rcx, rdi
call sub.msvcrt.dll_strcmp
mov rcx, rbx
mov esi, eax
call sub.msvcrt.dll_strlen
lea rdx, [rbx + rax + 1]
mov eax, dword [rdx]
test esi, esi
jne 0x14007c400
movzx r9d, word [rdx + 4]
lea r8, [rdx + 6]
mov rcx, rbp
mov rdx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp fcn.14006b6b0
mov r8d, 0xa
xor ecx, ecx
mov edx, 3
call qword [sym.imp.KERNEL32.dll_FindResourceA]
xor ecx, ecx
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
xor ecx, ecx
lea rdx, [rax + 4]
mov qword [0x1400baf88], rax
mov ebx, dword [rax]
mov qword [0x1400baf88], rdx
mov r8d, dword [rax + 4]
lea rdx, [rax + 8]
mov qword [0x1400baf88], rdx
call fcn.14007b4f0
cmp eax, ebx
jne 0x14007c537
mov byte [0x1400bb0c9], 1
jmp 0x14007c3dc
cmp byte [0x1400bb0c8], 0
jne 0x14007c3f3
mov rbx, qword [sym.imp.python39.dll_PyDict_New]
call rbx
mov qword [0x1400bba08], rax
call rbx
mov qword [0x1400bba00], rax
call rbx
mov qword [0x1400bb9f8], rax
call rbx
mov qword [0x1400bb9f0], rax
call rbx
mov qword [0x1400bb9e8], rax
call rbx
mov qword [0x1400bb9e0], rax
call rbx
mov qword [0x1400bb9d8], rax
call rbx
mov byte [0x1400bb0c8], 1
mov qword [0x1400bb9d0], rax
mov rax, qword [sym.imp.python39.dll__PyRuntime]
mov rax, qword [rax + 0x1f0]
mov rax, qword [rax + 0x10]
add rax, 0xdc0
mov qword [0x1400baf80], rax
jmp 0x14007c3f3
lea rcx, str.Error__corrupted_constants_object
call sub.msvcrt.dll_puts
call sub.msvcrt.dll_abort
nop
nop dword [rax]

Function at 0x140085f60
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call fcn.1400976f0
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.1400976f0
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
Function at 0x140086c32
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400bbe68]
test eax, eax
je 0x140086cca
lea rax, [0x1400bbe40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400bbe70]
mov qword [rbp - 8], rax
jmp 0x140086cae
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x140086ca2
cmp qword [rbp - 0x10], 0
je 0x140086ca2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x140086c68
lea rax, [0x1400bbe40]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x140086ccb
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140086dd0
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140086df8
mov eax, 0
jmp 0x140086e46
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x140086e21
mov eax, 0
jmp 0x140086e46
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x140086e41
mov eax, 0
jmp 0x140086e46
mov eax, 1
add rsp, 0x20
pop rbp
ret

Function at 0x140086e4c
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x140086eca
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140086ec1
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140086ec1
mov rax, qword [rbp - 8]
jmp 0x140086edf
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140086e94
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x14000abe0
Capabilities:
Read file on windows

Disassembly:
push rbx
push rsi
push r14
sub rsp, 0x30
mov r14, r8
mov rsi, rdx
mov rbx, rcx
test r8, r8
jg 0x14000ac02
xor eax, eax
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
cmp qword [rcx + 0x68], 0
mov qword [rsp + 0x28], rbp
mov qword [rsp + 0x20], rdi
je 0x14000ac7c
mov rdi, r14
mov rcx, rbx
call fcn.14000ed10
test rax, rax
jle 0x14000ac54
cmp rdi, rax
mov rbp, rdi
mov rcx, rsi
cmovge rbp, rax
mov rax, qword [rbx + 0x38]
mov r8, rbp
mov rdx, qword [rax]
call fcn.140043af0
mov rax, qword [rbx + 0x50]
sub rdi, rbp
sub dword [rax], ebp
mov rcx, qword [rbx + 0x38]
movsxd rax, ebp
add qword [rcx], rax
jmp 0x14000ac6c
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x38]
cmp eax, 0xffffffff
je 0x14000ac74
mov byte [rsi], al
dec rdi
mov ebp, 1
add rsi, rbp
test rdi, rdi
jg 0x14000ac16
sub r14, rdi
jmp 0x14000ad5f
mov rax, qword [rcx + 0x38]
mov rbp, r14
mov rdx, qword [rax]
test rdx, rdx
je 0x14000ac93
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x14000ac95
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x14000acc7
cmp rax, r14
mov rdi, r14
mov rcx, rsi
cmovb rdi, rax
mov r8, rdi
call fcn.140043af0
mov rax, qword [rbx + 0x50]
add rsi, rdi
sub rbp, rdi
sub dword [rax], edi
mov rcx, qword [rbx + 0x38]
movsxd rax, edi
add qword [rcx], rax
cmp qword [rbx + 0x80], 0
je 0x14000ad5c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x14000ad02
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
cmp rbp, 0xfff
jbe 0x14000ad3d
nop dword [rax + rax]
mov r9, qword [rbx + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, rsi
call fcn.14002a49c
add rsi, rax
sub rbp, rax
cmp rax, 0xfff
jne 0x14000ad5c
cmp rbp, rax
ja 0x14000ad10
test rbp, rbp
je 0x14000ad5c
mov r9, qword [rbx + 0x80]
mov r8, rbp
mov edx, 1
mov rcx, rsi
call fcn.14002a49c
sub rbp, rax
sub r14, rbp
mov rbp, qword [rsp + 0x28]
mov rax, r14
mov rdi, qword [rsp + 0x20]
add rsp, 0x30
pop r14
pop rsi
pop rbx
ret
Function at 0x140019700
Capabilities:
Get session user name
Get user security identifier

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x14005c080]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rbx, rdx
mov qword [rsp + 0x48], rdx
mov dword [rsp + 0x40], 1
xorps xmm0, xmm0
movups xmmword [rdx], xmm0
xor edi, edi
mov qword [rdx + 0x10], rdi
mov qword [rdx + 0x18], rdi
lea r8d, [rdi + 0xe]
lea rdx, str.RegistryUser
mov rcx, rbx
call fcn.140017180
nop
mov dword [rsp + 0x40], 1
mov dword [rsp + 0x60], 0x104
mov dword [rsp + 0x54], edi
mov dword [rsp + 0x50], edi
lea rdx, [rsp + 0x60]
lea rcx, [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x14001989c
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rdi
lea r9, [rsp + 0x54]
xor r8d, r8d
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1400197c9
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x14001989c
mov edx, dword [rsp + 0x54]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rdi, rax
test rax, rax
je 0x14001989c
mov edx, dword [rsp + 0x50]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_LocalAlloc]
mov rsi, rax
test rax, rax
jne 0x1400197fd
mov rcx, rdi
jmp 0x140019895
lea rax, [rsp + 0x64]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x50]
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x20], rsi
lea r9, [rsp + 0x54]
mov r8, rdi
lea rdx, [rsp + 0x70]
xor ecx, ecx
call qword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
je 0x140019889
lea rdx, [rsp + 0x58]
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_ConvertSidToStringSidW]
test eax, eax
je 0x140019889
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov r8d, 1
lea rdx, [0x140053eac]
mov rcx, rbx
call fcn.140013940
mov rdx, qword [rsp + 0x58]
mov r8, 0xffffffffffffffff
inc r8
cmp word [rdx + r8*2], 0
jne 0x140019874
mov rcx, rbx
call fcn.140013940
jmp 0x14001989c
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_LocalFree]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LocalFree]
nop
mov rax, rbx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.14001ebd0
lea r11, [rsp + 0x290]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x14001f928
Capabilities:
Parse pe header

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

Function at 0x140030850
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003064c
Function at 0x140035880
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140035896
mov al, 1
jmp 0x1400358f6
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x1400358a7
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x1400358f4
mov ecx, dword [rcx + 0x18]
nop
call fcn.14003c41c
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x1400358f4
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x1400358f4
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x1400358f4
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x1400358f6
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400371c0
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.14001f3e0
sub rsp, rax
mov rax, qword [0x14005c080]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.140033d4c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x14003720f
mov rax, rbp
jmp 0x140037317
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 + 0x5eb80]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.140036dfc
mov r13, rax
lea rax, [0x140000000]
mov rcx, qword [rax + rbx*8 + 0x5eb80]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x140037313
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 0x140037313
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.140036dfc
test rax, rax
js 0x140037313
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x140037313
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x140037305
lea r8, [0x140000000]
cmp rcx, rdx
jae 0x140037305
cmp byte [rcx], 0xd
jne 0x1400372eb
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1400372fa
cmp byte [rcx + 1], 0xa
jne 0x1400372fa
inc rcx
jmp 0x1400372fa
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0x5c4c0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x1400372cd
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x140037317
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.14001ebd0
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret