joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400088f0
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140008910
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140008958
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140008904
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140008945

Function at 0x140008980
Capabilities:
Check mutex on windows

Disassembly:
push r12
sub rsp, 0x20
xor edx, edx
xor ecx, ecx
lea r8, [0x1400172c0]
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140008a38
mov rdx, qword [0x140017200]
lea rcx, [0x140017200]
mov rax, qword [rdx + 8]
test rax, rax
je 0x140008a08
cmp rdx, rcx
jne 0x1400089ea
mov qword [rdx], rax
cmp rax, rcx
je 0x1400089ef
nop dword [rax]
test rax, rax
je 0x140008a1a
mov rdx, qword [rdx]
mov qword [rax], rdx
mov rdx, rax
mov rax, qword [rdx + 8]
cmp rax, rcx
jne 0x1400089d8
mov rax, qword [rcx + 8]
mov qword [rdx + 8], rax
test rax, rax
je 0x140008a1a
mov rdx, rax
jmp 0x1400089e6
lea rcx, [0x140017300]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140008a56
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
lea rcx, str.failed_to_to_lock_cleanup_mutex_n
call sym.__shmem_get_error
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x20
pop r12
ret
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_DeleteAtom]
jmp 0x140008a1a
Function at 0x10000bae0
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r12
push r13
sub rsp, 0xb0
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rdi, qword [rax + 8]
mov r12d, ebx
xor eax, eax
lock cmpxchg qword [0x100011df8], rdi
je 0x10000bb40
cmp rax, rdi
jne 0x10000bb33
mov r12d, 1
jmp 0x10000bb40
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x10000bb19
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bb55
lea ecx, [rax + 0x1e]
call sub.msvcrt.dll__amsg_exit
jmp 0x10000bbbc
mov eax, dword [0x100011df0]
cmp eax, ebx
jne 0x10000bbb2
mov dword [0x100011df0], 1
lea r13, [0x100001448]
lea rdi, [0x100001430]
mov qword [rsp + 0x30], rdi
mov eax, ebx
mov dword [rsp + 0x24], ebx
cmp rdi, r13
jae 0x10000bba4
cmp eax, ebx
jne 0x10000bba4
mov rcx, qword [rdi]
cmp rcx, rbx
je 0x10000bb99
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x10000bb82
cmp eax, ebx
je 0x10000bbbc
mov eax, 0xff
jmp 0x10000bd04
mov dword [0x1000115d4], 1
mov eax, dword [0x100011df0]
cmp eax, 1
jne 0x10000bbe4
lea rdx, [0x100001428]
lea rcx, [0x1000013f0]
call sub.msvcrt.dll__initterm
mov dword [0x100011df0], 2
cmp r12d, ebx
jne 0x10000bbf3
mov rax, rbx
xchg qword [0x100011df8], rax
cmp qword [0x100011e10], rbx
je 0x10000bc1b
lea rcx, [0x100011e10]
call fcn.10000c0cc
cmp eax, ebx
je 0x10000bc1b
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
call qword [0x100011e10]
mov rcx, qword [sym.imp.msvcrt.dll__wcmdln]
cmp qword [rcx], rbx
jne 0x10000bc31
mov eax, 0xff
jmp 0x10000bd04
mov rcx, qword [rcx]
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
cmp word [rcx], 0x20
ja 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc4c
cmp edx, ebx
jne 0x10000bcb6
cmp word [rcx], bx
je 0x10000bc62
cmp word [rcx], 0x20
ja 0x10000bc62
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc4c
test byte [rsp + 0x7c], 1
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x100000000]
call fcn.100002d14
mov dword [0x1000115d0], eax
cmp dword [0x1000115b4], ebx
jne 0x10000bca0
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1000115d4], ebx
jne 0x10000bcb4
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1000115d0]
jmp 0x10000bd04
cmp word [rcx], 0x22
jne 0x10000bcc9
mov eax, ebx
cmp edx, ebx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x10000bc3d
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r12, qword [r11 + 0x20]
mov rsp, r11
pop r13
ret
sub rsp, 0x28
call fcn.100161000
add rsp, 0x28
jmp 0x10000bae0
Function at 0x140155880
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rdi
sub rsp, 0x110
mov dword [rsp + 0x60], 0
mov dword [rsp + 0x50], 0
lea rax, [rsp + 0xa0]
mov rdi, rax
xor eax, eax
mov ecx, 0x68
rep stosb byte [rdi], al
lea rax, [rsp + 0x68]
mov rdi, rax
xor eax, eax
mov ecx, 0x18
rep stosb byte [rdi], al
mov qword [rsp + 0x90], 0
mov qword [rsp + 0x88], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x80], 0
mov dword [rsp + 0x54], 0
mov edx, 0x68
lea rcx, [rsp + 0xa0]
call fcn.140155e00
mov edx, 0x18
lea rcx, [rsp + 0x68]
call fcn.140155e00
mov dword [rsp + 0xa0], 0x68
mov rcx, qword [rsp + 0x120]
call fcn.14015ad00
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14015594e
xor eax, eax
jmp 0x140155b53
mov dx, 0x5c
mov rcx, qword [rsp + 0x58]
call fcn.140155dd0
mov qword [rsp + 0x80], rax
cmp qword [rsp + 0x80], 0
je 0x14015597c
xor eax, eax
mov rcx, qword [rsp + 0x80]
mov word [rcx], ax
lea rax, [rsp + 0x68]
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0xa0]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x58]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x14
mov dword [rsp + 0x20], 1
xor r9d, r9d
xor r8d, r8d
mov rdx, qword [rsp + 0x120]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x1401559da
jmp 0x140155ac5
mov rdx, qword [0x140171b20]
mov ecx, dword [0x140171b10]
call fcn.1401566c0
mov dword [rsp + 0x48], 2
mov qword [rsp + 0x40], 0
mov dword [rsp + 0x38], 2
lea rax, [rsp + 0x90]
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
xor r9d, r9d
lea r8, [rsp + 0x88]
mov rdx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x128]
call fcn.1401566e2
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140155a50
jmp 0x140155ac5
mov rcx, qword [rsp + 0x130]
call fcn.140155120
mov dword [rsp + 0x54], eax
cmp dword [rsp + 0x54], 0
jne 0x140155a6c
jmp 0x140155ac5
mov r9d, dword [rsp + 0x54]
mov r8, qword [rsp + 0x88]
mov rdx, qword [rsp + 0x70]
mov rcx, qword [rsp + 0x68]
call fcn.140155480
test eax, eax
jne 0x140155a90
jmp 0x140155ac5
mov rdx, qword [0x140171b80]
mov ecx, dword [0x140171b70]
call fcn.1401566c0
xor edx, edx
mov rcx, qword [rsp + 0x70]
call fcn.1401566e2
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jge 0x140155abd
jmp 0x140155ac5
mov dword [rsp + 0x60], 1
cmp qword [rsp + 0x58], 0
je 0x140155ad7
mov rcx, qword [rsp + 0x58]
call fcn.14015aeb0
cmp qword [rsp + 0x68], 0
je 0x140155afb
cmp qword [rsp + 0x68], 0xffffffffffffffff
je 0x140155afb
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x68], 0
cmp qword [rsp + 0x70], 0
je 0x140155b1f
cmp qword [rsp + 0x70], 0xffffffffffffffff
je 0x140155b1f
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x70], 0
cmp qword [rsp + 0x128], 0
je 0x140155b4f
cmp qword [rsp + 0x128], 0xffffffffffffffff
je 0x140155b4f
mov rcx, qword [rsp + 0x128]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x128], 0
mov eax, dword [rsp + 0x60]
add rsp, 0x110
pop rdi
ret
Function at 0x140155b70
Capabilities:
Get common file path

Disassembly:
push rsi
push rdi
sub rsp, 0xca8
mov rax, qword [0x140171040]
xor rax, rsp
mov qword [rsp + 0xc90], rax
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
mov dword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
lea rax, [rsp + 0x260]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x50]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea rax, [rsp + 0x470]
mov rdi, rax
xor eax, eax
mov ecx, 0x410
rep stosb byte [rdi], al
lea rax, [rsp + 0x880]
lea rcx, str.C:Windows_system32cmd.exe
mov rdi, rax
mov rsi, rcx
mov ecx, 0x38
rep movsb byte [rdi], byte [rsi]
lea rax, [rsp + 0x8b8]
mov rdi, rax
xor eax, eax
mov ecx, 0x3d8
rep stosb byte [rdi], al
lea rdx, [0x140171ae0]
mov ecx, 0xaeb2560
call fcn.140155e90
test eax, eax
je 0x140155ce5
lea rdx, [0x140171af8]
mov ecx, 0x7d1aa4fe
call fcn.140155e90
test eax, eax
je 0x140155ce5
lea rdx, [0x140171b10]
mov ecx, 0xcb5ef918
call fcn.140155e90
test eax, eax
je 0x140155ce5
lea rdx, [0x140171b28]
mov ecx, 0xdcdd1c32
call fcn.140155e90
test eax, eax
je 0x140155ce5
lea rdx, [0x140171b40]
mov ecx, 0x4898763e
call fcn.140155e90
test eax, eax
je 0x140155ce5
lea rdx, [0x140171b58]
mov ecx, 0xc1189c40
call fcn.140155e90
test eax, eax
je 0x140155ce5
lea rdx, [0x140171b70]
mov ecx, 0x2f7cb09e
call fcn.140155e90
test eax, eax
je 0x140155ce5
lea rdx, [0x140171b88]
mov ecx, 0x3b042567
call fcn.140155e90
test eax, eax
je 0x140155ce5
lea rdx, [0x140171ba0]
mov ecx, 0x7f13a087
call fcn.140155e90
test eax, eax
jne 0x140155cef
mov eax, 1
jmp 0x140155dac
lea rdx, [rsp + 0x50]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x140155d0d
mov eax, 1
jmp 0x140155dac
lea r9, [rsp + 0x260]
xor r8d, r8d
lea rdx, [0x140167378]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_GetTempFileNameW]
test eax, eax
jne 0x140155d35
mov eax, 1
jmp 0x140155dac
lea r8, [rsp + 0x260]
lea rdx, str.___s
lea rcx, [rsp + 0x470]
call qword [sym.imp.USER32.dll_wsprintfW]
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x28]
call fcn.140001100
lea r9, [rsp + 0x30]
mov r8d, dword [rsp + 0x20]
mov rdx, qword [rsp + 0x28]
lea rcx, [rsp + 0x470]
call fcn.140155170
test eax, eax
jne 0x140155d88
mov eax, 1
jmp 0x140155dac
mov r8, qword [rsp + 0x28]
mov rdx, qword [rsp + 0x30]
lea rcx, [rsp + 0x880]
call fcn.140155880
test eax, eax
jne 0x140155daa
mov eax, 1
jmp 0x140155dac
xor eax, eax
mov rcx, qword [rsp + 0xc90]
xor rcx, rsp
call fcn.140156800
add rsp, 0xca8
pop rdi
pop rsi
ret
Function at 0x140156540
Capabilities:
Parse pe header
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x38
mov rax, qword gs:[0x60]
mov qword [rsp + 0x10], rax
cmp qword [rsp + 0x10], 0
jne 0x140156561
xor eax, eax
jmp 0x1401566b3
mov rax, qword [rsp + 0x10]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x20]
mov rax, qword [rax]
sub rax, 0x10
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 0x30]
mov qword [rsp], rax
cmp qword [rsp], 0
jne 0x140156595
xor eax, eax
jmp 0x1401566b3
mov rax, qword [rsp]
mov qword [rsp + 0x18], rax
mov rax, qword [rsp + 0x18]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x1401565b4
xor eax, eax
jmp 0x1401566b3
mov rax, qword [rsp + 0x18]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
mov rax, qword [rsp + 0x20]
cmp dword [rax], 0x4550
je 0x1401565e0
xor eax, eax
jmp 0x1401566b3
mov eax, 8
imul rax, rax, 0
mov rcx, qword [rsp + 0x20]
mov eax, dword [rcx + rax + 0x88]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [rsp + 8], rax
cmp qword [rsp + 8], 0
jne 0x140156613
xor eax, eax
jmp 0x1401566b3
mov rax, qword [rsp]
mov qword [0x140171bd8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x18]
mov dword [0x140171bd0], eax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x20]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140171bc0], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x1c]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140171bb8], rax
mov rax, qword [rsp + 8]
mov eax, dword [rax + 0x24]
mov rcx, qword [rsp]
add rcx, rax
mov rax, rcx
mov qword [0x140171bc8], rax
cmp qword [0x140171bd8], 0
je 0x1401566a8
cmp dword [0x140171bd0], 0
je 0x1401566a8
cmp qword [0x140171bc0], 0
je 0x1401566a8
cmp qword [0x140171bb8], 0
je 0x1401566a8
cmp qword [0x140171bc8], 0
jne 0x1401566ae
xor eax, eax
jmp 0x1401566b3
mov eax, 1
add rsp, 0x38
ret

Function at 0x1401571e8
Capabilities:
Parse pe header

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

Function at 0x14015bbe0
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14015b9dc
Function at 0x14015ecf4
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 0x14015ed24
xor eax, eax
jmp 0x14015ede7
mov rbp, rbx
cmp word [rax], si
je 0x14015ed49
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14015ed30
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14015ed2c
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.14015ec14
movsxd r14, eax
test eax, eax
jne 0x14015ed87
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14015ed1d
mov rcx, r14
call fcn.14015fbd0
mov rdi, rax
test rax, rax
jne 0x14015eda0
xor ecx, ecx
call fcn.14015ca30
jmp 0x14015ed7c
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.14015ec14
test eax, eax
jne 0x14015edd1
mov rcx, rdi
call fcn.14015ca30
jmp 0x14015eddb
xor ecx, ecx
call fcn.14015ca30
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 0x1401622e0
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.14015dce4
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14016236a
cmp byte [rbp - 0x21], r15b
je 0x140162365
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x1401623a0
call fcn.1401603e0
test eax, eax
jne 0x14016238c
cmp byte [rbp - 0x21], r15b
je 0x140162384
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x1401623a0
cmp byte [rbp - 0x21], r15b
je 0x14016239d
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.14015d2c4
test eax, eax
jne 0x140162440
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14015dce4
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x1401623df
cmp byte [rbp - 0x21], r15b
je 0x140162414
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140162414
call fcn.1401603e0
test eax, eax
jne 0x140162400
cmp byte [rbp - 0x21], r15b
je 0x1401623f9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140162414
cmp byte [rbp - 0x21], r15b
je 0x140162411
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.14015d2c4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140162440
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140162443
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140162451
mov rcx, rdi
call fcn.14015ca30
cmp byte [rbp + 0x3f], r15b
je 0x140162460
mov rcx, qword [rbp + 0x27]
call fcn.14015ca30
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 0x140165290
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1401652b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1401652b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x180011140
Capabilities:
Write file on windows

Disassembly:
jmp 0x18001e970
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x128
lea rbp, [rsp + 0x20]
lea rcx, [0x1800440fd]
call fcn.180011b45
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x68], 0
je 0x18001e9c7
mov r8, qword [rbp + 0x130]
mov rdx, qword [rbp + 0x128]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
jmp 0x18001ead3
mov rax, qword [rbp + 0x130]
mov qword [rbp + 8], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::_Pnavail_void_const___ptr64]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x130], 0
jle 0x18001ea6c
cmp qword [rbp + 0x28], 0
jle 0x18001ea6c
mov rax, qword [rbp + 0x28]
cmp qword [rbp + 0x130], rax
jge 0x18001ea0c
mov rax, qword [rbp + 0x130]
mov qword [rbp + 0x28], rax
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_char____ptr64___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pptr_void_const___ptr64]
mov r8, qword [rbp + 0x28]
mov rdx, qword [rbp + 0x128]
mov rcx, rax
call fcn.180011a9b
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x128]
add rcx, rax
mov rax, rcx
mov qword [rbp + 0x128], rax
mov rax, qword [rbp + 0x28]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov edx, dword [rbp + 0x28]
mov rcx, qword [rbp + 0x120]
call qword [sym.imp.MSVCP140D.dll_protected:_void___cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::pbump_int____ptr64]
cmp qword [rbp + 0x130], 0
jle 0x18001eac2
mov rax, qword [rbp + 0x120]
cmp qword [rax + 0x80], 0
je 0x18001eac2
mov rax, qword [rbp + 0x120]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x130]
mov edx, 1
mov rcx, qword [rbp + 0x128]
call qword [sym.imp.ucrtbased.dll_fwrite]
mov rcx, qword [rbp + 0x130]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x130], rax
mov rax, qword [rbp + 0x130]
mov rcx, qword [rbp + 8]
sub rcx, rax
mov rax, rcx
lea rsp, [rbp + 0x108]
pop rdi
pop rbp
ret

Function at 0x180011668
Capabilities:
Terminate process

Disassembly:
jmp 0x180027cb0
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x180011b22
Capabilities:
Write file on windows

Disassembly:
jmp 0x180019e20
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1b8
lea rbp, [rsp + 0x30]
lea rdi, [rsp + 0x30]
mov ecx, 0x32
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1d8]
mov rax, qword [0x18003a480]
xor rax, rbp
mov qword [rbp + 0x170], rax
lea rcx, [0x1800440fd]
call fcn.180011b45
mov rax, qword [rbp + 0x1a0]
cmp qword [rax + 0x68], 0
je 0x180019e86
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180019e8d
mov al, 1
jmp 0x180019ffd
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax]
mov rax, qword [rax + 0x18]
mov qword [rbp + 0x158], rax
call fcn.18001132f
mov dword [rbp + 0x160], eax
mov edx, dword [rbp + 0x160]
mov rcx, qword [rbp + 0x1a0]
call qword [rbp + 0x158]
mov dword [rbp + 0x164], eax
call fcn.18001132f
mov dword [rbp + 0x168], eax
mov edx, dword [rbp + 0x164]
mov ecx, dword [rbp + 0x168]
call fcn.1800118c5
movzx eax, al
test eax, eax
je 0x180019ef0
xor al, al
jmp 0x180019ffd
mov qword [rbp + 8], 0x20
mov rax, qword [rbp + 0x1a0]
mov rax, qword [rax + 0x68]
mov qword [rbp + 0x158], rax
lea rax, [rbp + 0x48]
mov rcx, qword [rbp + 0x1a0]
add rcx, 0x74
lea rdx, [rbp + 0x68]
mov qword [rsp + 0x20], rdx
mov r9, rax
lea r8, [rbp + 0x28]
mov rdx, rcx
mov rcx, qword [rbp + 0x158]
call qword [sym.imp.MSVCP140D.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
mov dword [rbp + 0x160], eax
cmp dword [rbp + 0x160], 0
je 0x180019f63
cmp dword [rbp + 0x160], 1
je 0x180019f6e
cmp dword [rbp + 0x160], 3
je 0x180019fec
jmp 0x180019ffb
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
lea rax, [rbp + 0x28]
mov rcx, qword [rbp + 0x68]
sub rcx, rax
mov rax, rcx
mov qword [rbp + 0x88], rax
cmp qword [rbp + 0x88], 0
jbe 0x180019fbe
mov rax, qword [rbp + 0x1a0]
mov r9, qword [rax + 0x80]
mov r8, qword [rbp + 0x88]
mov edx, 1
lea rcx, [rbp + 0x28]
call qword [sym.imp.ucrtbased.dll_fwrite]
cmp qword [rbp + 0x88], rax
je 0x180019fbe
xor al, al
jmp 0x180019ffd
mov rax, qword [rbp + 0x1a0]
movzx eax, byte [rax + 0x71]
test eax, eax
jne 0x180019fd9
mov dword [rbp + 0x154], 1
jmp 0x180019fe3
mov dword [rbp + 0x154], 0
movzx eax, byte [rbp + 0x154]
jmp 0x180019ffd
mov rax, qword [rbp + 0x1a0]
mov byte [rax + 0x71], 0
mov al, 1
jmp 0x180019ffd
xor al, al
mov rdi, rax
lea rcx, [rbp - 0x30]
lea rdx, [0x180032810]
call fcn.180011938
mov rax, rdi
mov rcx, qword [rbp + 0x170]
xor rcx, rbp
call fcn.18001156e
lea rsp, [rbp + 0x188]
pop rdi
pop rbp
ret