joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140057ff0
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x128
lea rcx, [rsp + 0xe8]
call fcn.14002c540
lea rcx, [rsp + 0xb8]
call fcn.14002c540
lea rcx, [rsp + 0x88]
call fcn.14002c540
call fcn.140035c10
mov r8d, eax
lea rdx, [rsp + 0xe8]
mov rcx, qword [rsp + 0x130]
call fcn.14002c430
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
je 0x140058092
mov dword [rsp + 0x54], 0
lea rcx, [rsp + 0x88]
call fcn.14002c5d0
lea rcx, [rsp + 0xb8]
call fcn.14002c5d0
lea rcx, [rsp + 0xe8]
call fcn.14002c5d0
mov eax, dword [rsp + 0x54]
jmp 0x140058238
call fcn.140035c10
mov r8d, eax
lea rdx, [rsp + 0xb8]
mov rcx, qword [rsp + 0x138]
call fcn.14002c430
mov dword [rsp + 0x58], eax
cmp dword [rsp + 0x58], 0
je 0x1400580f2
mov dword [rsp + 0x5c], 0
lea rcx, [rsp + 0x88]
call fcn.14002c5d0
lea rcx, [rsp + 0xb8]
call fcn.14002c5d0
lea rcx, [rsp + 0xe8]
call fcn.14002c5d0
mov eax, dword [rsp + 0x5c]
jmp 0x140058238
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x168], 0
je 0x140058178
call fcn.140035c10
mov r8d, eax
lea rdx, [rsp + 0x88]
mov rcx, qword [rsp + 0x168]
call fcn.14002c430
mov dword [rsp + 0x60], eax
cmp dword [rsp + 0x60], 0
je 0x140058166
mov dword [rsp + 0x64], 0
lea rcx, [rsp + 0x88]
call fcn.14002c5d0
lea rcx, [rsp + 0xb8]
call fcn.14002c5d0
lea rcx, [rsp + 0xe8]
call fcn.14002c5d0
mov eax, dword [rsp + 0x64]
jmp 0x140058238
lea rcx, [rsp + 0x88]
call fcn.14002c900
mov qword [rsp + 0x70], rax
lea rcx, [rsp + 0xb8]
call fcn.14002c900
mov qword [rsp + 0x78], rax
lea rcx, [rsp + 0xe8]
call fcn.14002c900
mov qword [rsp + 0x80], rax
mov rax, qword [rsp + 0x178]
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x170]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x70]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x160]
mov qword [rsp + 0x30], rax
mov eax, dword [rsp + 0x158]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x150]
mov dword [rsp + 0x20], eax
mov r9, qword [rsp + 0x148]
mov r8, qword [rsp + 0x140]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x80]
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [rsp + 0x68], eax
lea rcx, [rsp + 0x88]
call fcn.14002c5d0
lea rcx, [rsp + 0xb8]
call fcn.14002c5d0
lea rcx, [rsp + 0xe8]
call fcn.14002c5d0
mov eax, dword [rsp + 0x68]
add rsp, 0x128
ret
Function at 0x14005f1e0
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.14002c540
lea rcx, [rsp + 0x48]
call fcn.14002c540
call fcn.140035c10
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.14002c430
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14005f24f
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.14002c5d0
lea rcx, [rsp + 0x78]
call fcn.14002c5d0
mov eax, dword [rsp + 0x24]
jmp 0x14005f2e0
call fcn.140035c10
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.14002c430
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x14005f296
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.14002c5d0
lea rcx, [rsp + 0x78]
call fcn.14002c5d0
mov eax, dword [rsp + 0x2c]
jmp 0x14005f2e0
lea rcx, [rsp + 0x48]
call fcn.14002c900
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.14002c900
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.14002c5d0
lea rcx, [rsp + 0x78]
call fcn.14002c5d0
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x180021000
Capabilities:
Query environment variable
Set environment variable

Disassembly:
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0xd0
mov qword [rsp + 0xa8], 0xfffffffffffffffe
mov rax, qword [0x1800e3db0]
xor rax, rsp
mov qword [rsp + 0xc0], rax
cmp dword [rsp + 0xe8], 1
jne 0x180021171
mov r8d, 0x40
xor edx, edx
lea rcx, [0x18010fc70]
call fcn.18007e5b0
mov rax, qword [rsp + 0xe0]
mov qword [0x18010fca0], rax
mov rax, qword [0x18010fca0]
mov qword [0x18010fbe0], rax
mov dword [0x18010fc70], 2
mov edx, 2
mov rcx, qword [rsp + 0xe0]
call fcn.180032e00
mov rax, qword [0x18010fbf0]
mov rcx, qword [0x18010fbf0]
mov ecx, dword [rcx + 8]
mov eax, dword [rax + 0xc]
xor eax, ecx
mov rcx, qword [0x18010fbf0]
xor eax, dword [rcx + 0x4c]
and eax, 0x40000
test eax, eax
je 0x180021162
movzx eax, byte [0x1800e5d72]
mov byte [rsp + 0x30], al
lea rax, [rsp + 0x31]
mov rdi, rax
xor eax, eax
mov ecx, 0x3f
rep stosb byte [rdi], al
mov r8d, 0x40
lea rdx, [rsp + 0x30]
lea rcx, [0x1800e5d60]
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x180021105
lea rcx, [rsp + 0x30]
call fcn.1800212f0
mov qword [0x18010fdc8], rax
lea rdx, [fcn.18002e820]
lea rcx, [rsp + 0x78]
call fcn.180021390
mov qword [rsp + 0xb0], rax
mov rax, qword [rsp + 0xb0]
mov qword [rsp + 0xb8], rax
mov rcx, qword [rsp + 0xb8]
call fcn.1800283c0
mov rdx, rax
lea rcx, [0x1800e5d60]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
nop
lea rcx, [rsp + 0x78]
call fcn.180028370
mov eax, 1
jmp 0x180021245
call fcn.18002e820
jmp 0x180021245
cmp dword [rsp + 0xe8], 0
jne 0x18002120e
mov rax, qword [0x18010fbf0]
mov rcx, qword [0x18010fbf0]
mov ecx, dword [rcx + 8]
mov eax, dword [rax + 0xc]
xor eax, ecx
mov rcx, qword [0x18010fbf0]
xor eax, dword [rcx + 0x4c]
and eax, 0x40000
test eax, eax
je 0x1800211c3
xor edx, edx
lea rcx, [0x1800e5d60]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
mov eax, 1
jmp 0x180021245
mov dword [rsp + 0x70], 1
cmp qword [0x18010fca8], 0
je 0x1800211f6
mov r8, qword [rsp + 0xf0]
mov edx, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call qword [0x18010fca8]
mov dword [rsp + 0x70], eax
call fcn.18002e7f0
mov eax, dword [rsp + 0x70]
jmp 0x180021245
mov dword [rsp + 0x74], 1
cmp qword [0x18010fca8], 0
je 0x180021241
mov r8, qword [rsp + 0xf0]
mov edx, dword [rsp + 0xe8]
mov rcx, qword [rsp + 0xe0]
call qword [0x18010fca8]
mov dword [rsp + 0x74], eax
mov eax, dword [rsp + 0x74]
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.18007e6b0
add rsp, 0xd0
pop rdi
ret
Function at 0x18002db00
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x78
mov rax, qword [rsp + 0x80]
mov qword [rsp + 0x30], rax
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x50], rax
mov rax, qword [rsp + 0x50]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
add rax, 0x108
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x38]
mov eax, dword [rax + 0x88]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x58], rax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x60], 0
jmp 0x18002dbc6
mov eax, dword [rsp + 0x60]
add eax, 1
mov dword [rsp + 0x60], eax
mov rax, qword [rsp + 0x40]
mov eax, dword [rax + 0x18]
cmp dword [rsp + 0x60], eax
jae 0x18002dc2a
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x68], rax
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x68]
call fcn.180081660
test eax, eax
jne 0x18002dc28
mov eax, dword [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
movzx eax, word [rcx + rax*2]
mov rcx, qword [rsp + 0x28]
mov eax, dword [rcx + rax*4]
mov rcx, qword [rsp + 0x30]
add rcx, rax
mov rax, rcx
jmp 0x18002dc2c
jmp 0x18002dbbb
xor eax, eax
add rsp, 0x78
ret
Function at 0x18002e820
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x158
mov rax, qword [0x1800e3db0]
xor rax, rsp
mov qword [rsp + 0x140], rax
xor edx, edx
lea rcx, [0x1800e5d60]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
cmp qword [0x18010fdc8], 0
je 0x18002e878
mov rax, qword [0x18010fdc8]
mov qword [rsp + 0x28], rax
mov qword [0x18010fdc8], 0
call qword [rsp + 0x28]
test eax, eax
jne 0x18002e878
xor eax, eax
jmp 0x18002e965
call fcn.18002e710
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 1
jne 0x18002e8df
cmp qword [0x18010fca8], 0
je 0x18002e8d0
lea r8, [0x18010fdf0]
mov edx, 1
mov rcx, qword [0x18010fbe0]
call qword [0x18010fca8]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
jne 0x18002e8c4
call fcn.18002e7f0
xor eax, eax
jmp 0x18002e965
mov eax, 1
jmp 0x18002e965
mov eax, 1
jmp 0x18002e965
cmp dword [rsp + 0x20], 0
jne 0x18002e958
call fcn.18002c2b0
mov r8, rax
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.1800818b0
call fcn.18002c2d0
mov rcx, rax
call fcn.18007e830
test rax, rax
je 0x18002e93c
lea r8, [0x1800e785c]
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.1800817f0
call fcn.18002c2d0
mov r8, rax
mov edx, 0x100
lea rcx, [rsp + 0x40]
call fcn.1800817f0
mov r9d, 0x40010
xor r8d, r8d
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
jmp 0x18002e965
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_SetErrorMode]
xor eax, eax
mov rcx, qword [rsp + 0x140]
xor rcx, rsp
call fcn.18007e6b0
add rsp, 0x158
ret
Function at 0x18007f450
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x5b0
mov rbp, rcx
mov rcx, qword [0x180110a80]
mov ebx, r9d
mov rdi, r8
mov rsi, rdx
call fcn.18008c080
test rax, rax
je 0x18007f4a4
mov r10, qword [rsp + 0x5e0]
mov r9d, ebx
mov r8, rdi
mov rdx, rsi
mov rcx, rbp
mov qword [rsp + 0x20], r10
call rax
jmp 0x18007f539
mov ecx, 2
call fcn.18008d4e0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.18007e5b0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18007f525
test ebx, ebx
jne 0x18007f525
lea ecx, [rax + 2]
call fcn.18008d4e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
lea r11, [rsp + 0x5b0]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret

Function at 0x18007f560
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x5b8
mov rcx, qword [0x180110a80]
call fcn.18008c080
test rax, rax
je 0x18007f595
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], 0
call rax
add rsp, 0x5b8
ret
mov ecx, 2
mov qword [rsp + 0x5b0], rbx
call fcn.18008d4e0
lea rcx, [rsp + 0xe0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
lea rcx, [rsp + 0x40]
xor edx, edx
mov r8d, 0x98
call fcn.18007e5b0
mov rax, qword [rsp + 0x5b8]
mov dword [rsp + 0x40], 0xc000000d
mov qword [rsp + 0x50], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0xe0]
mov qword [rsp + 0x38], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
xor ecx, ecx
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
test eax, eax
jne 0x18007f61e
test ebx, ebx
jne 0x18007f61e
lea ecx, [rax + 2]
call fcn.18008d4e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc000000d
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov rbx, qword [rsp + 0x5b0]
add rsp, 0x5b8
ret
Function at 0x18007ff70
Capabilities:
Accept command line arguments

Disassembly:
push rbx
sub rsp, 0x20
cmp edx, 1
mov rbx, r8
jne 0x1800800d7
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
xor edx, edx
mov r8d, 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
test rax, rax
mov rbx, rax
je 0x18007ffc8
mov rcx, rax
mov dword [rax], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x18007ffd0
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
add rsp, 0x20
pop rbx
ret
mov qword [rsp + 0x30], rbp
mov ebp, dword [rbx + 8]
mov qword [rsp + 0x38], rsi
mov esi, dword [rbx + 4]
mov qword [rsp + 0x40], rdi
mov edi, dword [rbx + 0xc]
mov qword [rsp + 0x48], r12
mov r12d, dword [rbx + 0x10]
and edi, 0x7fff
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov r8, rbx
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp r12d, 2
je 0x180080015
bts edi, 0xf
mov eax, esi
mov ecx, 1
mov dword [0x180110ab4], r12d
shl eax, 8
mov dword [0x180110ac0], esi
mov dword [0x180110ac4], ebp
add eax, ebp
mov dword [0x180110ab8], edi
mov dword [0x180110abc], eax
call fcn.18008f770
mov r12, qword [rsp + 0x48]
test eax, eax
mov rdi, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x38]
mov rbp, qword [rsp + 0x30]
je 0x18007ffc8
call fcn.18008c6a0
test eax, eax
je 0x1800800ca
call fcn.180090260
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x180112bd0], rax
call fcn.180090090
mov qword [0x180110a98], rax
call fcn.18008f810
test eax, eax
js 0x1800800c5
call fcn.18008ff80
test eax, eax
js 0x1800800c0
call fcn.18008fbe0
test eax, eax
js 0x1800800c0
xor ecx, ecx
call fcn.1800806b0
test eax, eax
jne 0x1800800c0
add dword [0x180110a90], 1
mov eax, 1
add rsp, 0x20
pop rbx
ret
call fcn.18008fb50
call fcn.18008c1a0
call fcn.18008f7d0
xor eax, eax
add rsp, 0x20
pop rbx
ret
test edx, edx
jne 0x180080120
mov eax, dword [0x180110a90]
test eax, eax
jle 0x18007ffc8
sub eax, 1
cmp dword [0x180110b10], edx
mov dword [0x180110a90], eax
jne 0x1800800ff
call fcn.1800808e0
test rbx, rbx
jne 0x180080199
call fcn.18008fb50
call fcn.18008c1a0
call fcn.18008f7d0
lea eax, [rbx + 1]
add rsp, 0x20
pop rbx
ret
cmp edx, 2
jne 0x18008018d
call fcn.18008c180
mov edx, 0x2d8
mov ecx, 1
call fcn.180089020
test rax, rax
mov rbx, rax
je 0x18007ffc8
mov ecx, dword [0x1800e4214]
mov rdx, rax
call qword [sym.imp.KERNEL32.dll_FlsSetValue]
test eax, eax
je 0x18008017d
xor edx, edx
mov rcx, rbx
call fcn.18008c1f0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov qword [rbx + 8], 0xffffffffffffffff
mov dword [rbx], eax
mov eax, 1
add rsp, 0x20
pop rbx
ret
mov rcx, rbx
call fcn.18007fd70
xor eax, eax
add rsp, 0x20
pop rbx
ret
cmp edx, 3
jne 0x180080199
xor ecx, ecx
call fcn.18008c620
mov eax, 1
add rsp, 0x20
pop rbx
ret
Function at 0x18008c907
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x1800e3db0]
jne 0x18007e6ca
rol rcx, 0x10
test cx, 0xffff
jne 0x18007e6c6
repz ret
ror rcx, 0x10
jmp 0x18008c860
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x180110be0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x180110cd8]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x18008c8e5
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x180110be0]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x18008c907
mov rax, qword [rsp + 0x88]
mov qword [0x180110cd8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x180110c78], rax
mov rax, qword [0x180110cd8]
mov qword [0x180110b50], rax
mov rax, qword [rsp + 0x90]
mov qword [0x180110c60], rax
mov dword [0x180110b40], 0xc0000409
mov dword [0x180110b44], 1
mov rax, qword [0x1800e3db0]
mov qword [rsp + 0x68], rax
mov rax, qword [0x1800e3db8]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x180110bd8], eax
mov ecx, 1
call fcn.18008d4e0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1800eea68]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x180110bd8], 0
jne 0x18008c98e
mov ecx, 1
call fcn.18008d4e0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x18008cf90
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rsi
push rdi
push r12
sub rsp, 0x30
lea r12, [0x1800e4230]
xor esi, esi
mov edi, ecx
mov rax, r12
mov ebx, esi
nop
cmp ecx, dword [rax]
je 0x18008cfce
add ebx, 1
add rax, 0x10
cmp ebx, 0x17
jb 0x18008cfb0
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
cmp ebx, 0x17
jae 0x18008d1b5
mov ecx, 3
call fcn.1800aac40
cmp eax, 1
je 0x18008d16c
mov ecx, 3
call fcn.1800aac40
test eax, eax
jne 0x18008d005
cmp dword [0x180110aa8], 1
je 0x18008d16c
cmp edi, 0xfc
je 0x18008d1b5
mov qword [rsp + 0x50], rbp
lea rbp, [0x1801110c0]
lea r8, [0x1800ef040]
mov rcx, rbp
mov edx, 0x314
call fcn.1800818b0
test eax, eax
je 0x18008d049
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.18007f2c0
lea rdx, [0x1801110d9]
mov r8d, 0x104
xor ecx, ecx
mov byte [0x1801111dd], sil
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x18008d099
lea r8, [0x1800ef028]
lea rcx, [0x1801110d9]
mov edx, 0x2fb
call fcn.1800818b0
test eax, eax
je 0x18008d099
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.18007f2c0
or rcx, 0xffffffffffffffff
xor eax, eax
lea rdi, [0x1801110d9]
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x18008d0e8
lea rcx, [rcx + rbp - 0x23]
lea rdx, [0x1801113d4]
lea r9d, [rax + 3]
lea r8, [0x1800ef020]
sub rdx, rcx
call fcn.180096600
test eax, eax
je 0x18008d0e8
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.18007f2c0
lea r8, [0x1800eca40]
mov edx, 0x314
mov rcx, rbp
call fcn.1800817f0
test eax, eax
je 0x18008d114
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.18007f2c0
movsxd r8, ebx
mov edx, 0x314
mov rcx, rbp
add r8, r8
mov r8, qword [r12 + r8*8 + 8]
call fcn.1800817f0
test eax, eax
je 0x18008d144
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rsi
call fcn.18007f2c0
lea rdx, [0x1800eeff8]
mov r8d, 0x12010
mov rcx, rbp
call fcn.1800aa9e0
mov rbp, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x18008d1b5
cmp rax, 0xffffffffffffffff
je 0x18008d1b5
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x58]
add rcx, rcx
mov qword [rsp + 0x20], rsi
mov rdx, qword [r12 + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rbx, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
Function at 0x18008d200
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x38
mov ecx, 3
call fcn.1800aac40
cmp eax, 1
je 0x18008d232
mov ecx, 3
call fcn.1800aac40
test eax, eax
jne 0x18008d2e6
cmp dword [0x180110aa8], 1
jne 0x18008d2e6
mov qword [rsp + 0x48], rbx
lea rbx, [0x1800e4230]
mov qword [rsp + 0x30], rdi
mov rax, rbx
xor edi, edi
cmp dword [rax], 0xfc
je 0x18008d25e
add edi, 1
add rax, 0x10
cmp edi, 0x17
jb 0x18008d248
jmp 0x18008d2d2
cmp edi, 0x17
jae 0x18008d2d2
mov ecx, 3
call fcn.1800aac40
cmp eax, 1
je 0x18008d289
mov ecx, 3
call fcn.1800aac40
test eax, eax
jne 0x18008d2d2
cmp dword [0x180110aa8], 1
jne 0x18008d2d2
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x18008d2d2
cmp rax, 0xffffffffffffffff
je 0x18008d2d2
movsxd rcx, edi
xor eax, eax
lea r9, [rsp + 0x40]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [rbx + rcx*8 + 8]
or rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, 0xff
call fcn.18008cf90
mov rdi, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x48]
add rsp, 0x38
ret
Function at 0x180090090
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x40
mov eax, dword [0x180111538]
test eax, eax
jne 0x1800900e3
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x1800900c3
mov dword [0x180111538], 1
jmp 0x1800900fe
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1800900dd
mov dword [0x180111538], 2
jmp 0x1800901d9
mov eax, dword [0x180111538]
cmp eax, 1
jne 0x1800901d0
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x180090223
cmp word [rdi], 0
mov qword [rsp + 0x50], rbp
mov rbx, rdi
mov qword [rsp + 0x58], r12
je 0x180090125
add rbx, 2
cmp word [rbx], 0
jne 0x180090111
add rbx, 2
cmp word [rbx], 0
jne 0x180090111
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
lea r9d, [rbx + 1]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
movsxd rbp, eax
je 0x1800901c3
mov rcx, rbp
call fcn.180088fb0
test rax, rax
mov rsi, rax
je 0x1800901c3
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
lea r9d, [rbx + 1]
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x18009019d
mov rcx, rsi
call fcn.18007fd70
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbp, qword [rsp + 0x50]
mov r12, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x1800901a9
cmp eax, 2
je 0x1800901d9
test eax, eax
jne 0x180090223
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x180090223
cmp byte [rax], 0
je 0x180090202
nop
add rax, 1
cmp byte [rax], 0
jne 0x1800901f0
add rax, 1
cmp byte [rax], 0
jne 0x1800901f0
sub eax, ebx
add eax, 1
movsxd rsi, eax
mov rcx, rsi
call fcn.180088fb0
test rax, rax
mov rdi, rax
jne 0x180090235
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
add rsp, 0x40
pop rdi
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.180080e60
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rax, rdi
add rsp, 0x40
pop rdi
ret