joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001190
Capabilities:
Find process by pid
Print debug messages

Disassembly:
mov dword [rsp + 8], ecx
sub rsp, 0x58
mov qword [rsp + 0x30], 0
movsxd rax, dword [rsp + 0x60]
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x30]
add rax, 0x448
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x28]
mov rax, qword [rax + 8]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x40]
mov rcx, qword [rsp + 0x38]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
mov qword [rax], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov qword [rax + 8], rcx
mov rax, qword [rsp + 0x28]
mov rcx, qword [rsp + 0x28]
mov qword [rax], rcx
xor edx, edx
lea rcx, [0x1400042f8]
call qword [sym.imp.ntoskrnl.exe_ExReleasePushLockExclusiveEx]
mov rcx, qword [rsp + 0x30]
call sub.ntoskrnl.exe_PsGetProcessImageFileName
mov rdx, rax
lea rcx, [0x140002220]
call sub.ntoskrnl.exe_DbgPrint
jmp 0x140001256
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x58
ret
Function at 0x1400015b0
Capabilities:
Find process by pid
Print debug messages

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x30], 0
lea rdx, [rsp + 0x30]
mov ecx, 4
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x14000160e
cmp dword [rsp + 0x20], 0xc000000d
jne 0x1400015ee
lea rcx, [0x140002040]
call sub.ntoskrnl.exe_DbgPrint
cmp dword [rsp + 0x20], 0xc000000b
jne 0x140001604
lea rcx, [0x140002060]
call sub.ntoskrnl.exe_DbgPrint
mov eax, 0xffffffff
jmp 0x140001690
mov rax, qword [rsp + 0x30]
add rax, 0x448
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x30]
add rax, 0x448
mov rcx, qword [rsp + 0x28]
cmp qword [rcx], rax
je 0x14000167a
mov rax, qword [rsp + 0x28]
mov r8, qword [rax]
mov rax, qword [rsp + 0x28]
mov rdx, qword [rax + 8]
lea rcx, [0x140002090]
call sub.ntoskrnl.exe_DbgPrint
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
add rax, 0x432
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov byte [rax], 0
mov rax, qword [rsp + 0x28]
mov rax, qword [rax]
mov qword [rsp + 0x28], rax
jmp 0x14000161e
jmp 0x140001683
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
add rsp, 0x48
ret
Function at 0x1400047e4
Capabilities:
Identify system language via api

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r14
sub rsp, 0x60
mov rax, qword [0x1400128b8]
xor rax, rsp
mov qword [rsp + 0x58], rax
lea r14, str.en_US
mov rsi, rcx
mov qword [rcx], r14
call qword [sym.imp.KERNEL32.dll_GetSystemDefaultUILanguage]
mov word [rsp + 0x30], ax
mov ebx, 0x10
mov r9d, ebx
lea rdx, [0x140008110]
lea rax, [0x140004df0]
mov r8d, 0x1b3
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
call sub.api_ms_win_crt_private_l1_1_0.dll__o_bsearch
xor ebp, ebp
test rax, rax
jne 0x14000485f
mov ecx, 0x57
call qword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1400048e5
cmp dword [rax + 0xc], 0x7c
jne 0x14000486c
cmp word [rax + 8], 0x7f
jne 0x14000484f
mov r8, qword [rax]
or rcx, 0xffffffffffffffff
inc rcx
cmp word [r8 + rcx*2], bp
jne 0x140004873
inc rcx
cmp rcx, 0x7ffffffe
jbe 0x140004890
mov word [rsp + 0x38], bp
jmp 0x1400048d7
lea rax, [rsp + 0x38]
mov r9d, ebp
sub r8, rax
lea rdx, [rsp + 0x38]
lea rax, [rbx - 0x10]
add rax, rcx
je 0x1400048c0
movzx eax, word [r8 + rdx]
test ax, ax
je 0x1400048c0
mov word [rdx], ax
add rdx, 2
sub rbx, 1
jne 0x1400048a0
test rbx, rbx
jne 0x1400048cf
sub rdx, 2
mov r9d, 0x8007007a
mov word [rdx], bp
test r9d, r9d
jns 0x1400048e1
mov ecx, 0x7a
jmp 0x140004854
test ecx, ecx
jne 0x1400048f1
mov rcx, qword [rsp + 0x78]
call fcn.14000494c
jmp 0x14000492a
mov rbx, rbp
mov rdi, rbp
mov rdx, qword [rdi + r14]
lea rcx, [rsp + 0x38]
call qword [sym.imp.api_ms_win_crt_private_l1_1_0.dll__o__wcsicmp]
test eax, eax
je 0x14000491c
inc rbx
add rdi, 0x30
cmp rdi, 0x750
jb 0x1400048f7
jmp 0x14000492a
lea rax, [rbx + rbx*2]
shl rax, 4
add rax, r14
mov qword [rsi], rax
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400050e0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x28]
mov rbp, qword [r11 + 0x30]
mov rsp, r11
pop r14
pop rdi
pop rsi
ret

Function at 0x140005104
Capabilities:
Terminate process

Disassembly:
push rbx
sub rsp, 0x20
mov rbx, rcx
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov ecx, 1
mov dword [0x140012e60], eax
call fcn.1400056f0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140012e60], 0
jne case.default.0x14000515a
mov ecx, 1
call fcn.1400056f0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov rcx, rax
mov edx, 0xc0000409
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_TerminateProcess]
int1
movabs eax, dword [0xb6694397fec37c6d]
mov byte [rdx - 0x670e3dd3], al
std
int 0xca
or dl, byte [rdi - 0x37a7c185]
and byte [rsi], ch
xor r13, 0xffffffffc4762ba5
sbb al, 0x4f
mov dword [rdi - 0x6f9fe902], 0xc5f13b5
push rcx
leave
mov esi, 0x6c8bff25
mov eax, esp
invalid
Function at 0x140966268
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.1409663ef
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x140966299
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x14096627f
add dl, dl
jne 0x1409662a6
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x140966306
xor eax, eax
add dl, dl
jne 0x1409662b5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x1409663bd
add dl, dl
jne 0x1409662c6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409662d3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409662e0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x1409662ed
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x1409662fa
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x14096628e
mov eax, 1
add dl, dl
jne 0x140966316
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x140966323
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14096630b
sub eax, ebx
mov ebx, 1
jne 0x14096635c
mov ecx, 1
add dl, dl
jne 0x14096633e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x14096634b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x140966333
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096628e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x140966378
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x140966385
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x14096636d
cmp eax, 0x7d00
jae 0x1409663ab
cmp eax, 0x500
jb 0x1409663a6
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096628e
cmp eax, 0x7f
ja 0x1409663ae
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x14096628e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x1409663e2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x14096628e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x140022d28
Capabilities:
Parse pe header

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

Function at 0x140026ca0
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x140026b0b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x140026b0b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x140026b0b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x140026b0b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x140026b0b
cmp dword [rcx + 0x84], 0xe
jbe 0x140026b0b
cmp dword [rcx + 0xf8], 0
je 0x140026b0b
mov ecx, ebx
call fcn.140026bbc
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.140026998
nop
cmp dword [rbp + 0x20], 0
je 0x140026b59
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140026b64
int3
xor r8d, r8d
xor edx, edx
jmp 0x140026a9c
Function at 0x140037640
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x1400376c7
mov rsi, rbx
cmp word [rax], bp
je 0x140037686
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140037670
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14003766c
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140034c60
mov rdi, rax
test rax, rax
je 0x1400376b4
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14003d890
mov rbp, rdi
xor ecx, ecx
call fcn.14003311c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14003ade0
Capabilities:
Get file size

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

Function at 0x14003d1c0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003d1e8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14003d1e8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x1402cd410
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10038
call fcn.1402f8b50
sub rsp, rax
mov rax, qword [0x1403369b8]
xor rax, rsp
mov qword [rsp + 0x10020], rax
xor eax, eax
lea rdx, [rsp + 0x20]
mov r8d, 0x10000
mov word [rsp + 0x20], ax
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
dec eax
cmp eax, 0xffff
ja 0x1402cd472
lea rcx, [rsp + 0x20]
call fcn.1403040fc
mov rcx, qword [rsp + 0x10020]
xor rcx, rsp
call fcn.1402f8b20
add rsp, 0x10038
ret
xor eax, eax
mov rcx, qword [rsp + 0x10020]
xor rcx, rsp
call fcn.1402f8b20
add rsp, 0x10038
ret

Function at 0x1402cd550
Capabilities:
Set environment variable

Disassembly:
sub rsp, 0x28
lea rcx, [0x140314128]
call fcn.1402cd410
lea rdx, [0x140314134]
mov qword [0x140351358], rax
lea rcx, [0x140314128]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rcx, [0x140314138]
call fcn.1402cd410
mov qword [0x140351360], rax
call fcn.1402f4dc0
mov rdx, rax
lea rcx, [0x140314138]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call fcn.1402f4dc0
mov rcx, rax
add rsp, 0x28
jmp qword [sym.imp.KERNEL32.dll_SetDllDirectoryW]

Function at 0x1402cd930
Capabilities:
Set environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov rbp, rdx
mov rsi, rcx
call fcn.1402e0b60
lea rdx, str.environ
mov rcx, rax
call qword [sym.imp.python37.dll_PyObject_GetAttrString]
mov rdx, 0xffffffffffffffff
mov rcx, rsi
mov rbx, rax
call sub.python37.dll_PyUnicode_FromWideChar
mov rdi, rax
mov rcx, rsi
test rbp, rbp
je 0x1402cd9d2
mov rdx, rbp
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, 0xffffffffffffffff
mov rcx, rbp
call sub.python37.dll_PyUnicode_FromWideChar
mov r8, rax
mov rdx, rdi
mov rcx, rbx
mov rsi, rax
call qword [sym.imp.python37.dll_PyObject_SetItem]
test eax, eax
je 0x1402cd9c0
mov ecx, 1
call qword [sym.imp.python37.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python37.dll_Py_Exit]
sub qword [rsi], 1
jne 0x1402cda00
mov rax, qword [rsi + 8]
mov rcx, rsi
call qword [rax + 0x30]
jmp 0x1402cda00
xor edx, edx
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov rdx, rdi
mov rcx, rbx
call qword [sym.imp.python37.dll_PyObject_DelItem]
test eax, eax
je 0x1402cda00
mov ecx, 1
call qword [sym.imp.python37.dll_PyErr_PrintEx]
mov ecx, 1
call qword [sym.imp.python37.dll_Py_Exit]
sub qword [rdi], 1
jne 0x1402cda10
mov rax, qword [rdi + 8]
mov rcx, rdi
call qword [rax + 0x30]
sub qword [rbx], 1
jne 0x1402cda20
mov rax, qword [rbx + 8]
mov rcx, rbx
call qword [rax + 0x30]
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1402f3c60
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov r8, rcx
mov eax, 0xffffffff
test edx, edx
je 0x1402f3d24
mov r9d, edx
nop dword [rax]
nop word [rax + rax]
movzx edx, byte [r8]
lea r8, [r8 + 1]
xor eax, edx
mov edx, eax
and dl, 1
neg dl
sbb ecx, ecx
shr eax, 1
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb edx, edx
shr ecx, 1
and edx, 0xedb88320
xor edx, ecx
mov eax, edx
and al, 1
neg al
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov eax, ecx
and al, 1
neg al
sbb eax, eax
shr ecx, 1
and eax, 0xedb88320
xor eax, ecx
sub r9, 1
jne 0x1402f3c80
not eax
ret
Function at 0x1402f95a0
Capabilities:
Parse pe header

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

Function at 0x1403039ac
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14030379c
Function at 0x1403094d8
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 0x140309508
xor eax, eax
jmp 0x1403095cb
mov rbp, rbx
cmp word [rax], si
je 0x14030952d
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x140309514
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x140309510
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.140309428
movsxd r14, eax
test eax, eax
jne 0x14030956b
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x140309501
mov rcx, r14
call fcn.1403049b8
mov rdi, rax
test rax, rax
jne 0x140309584
xor ecx, ecx
call fcn.1403058cc
jmp 0x140309560
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.140309428
test eax, eax
jne 0x1403095b5
mov rcx, rdi
call fcn.1403058cc
jmp 0x1403095bf
xor ecx, ecx
call fcn.1403058cc
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 0x1403095e8
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14030966f
mov rsi, rbx
cmp word [rax], bp
je 0x14030962e
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140309618
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140309614
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1403049b8
mov rdi, rax
test rax, rax
je 0x14030965c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1402f98c0
mov rbp, rdi
xor ecx, ecx
call fcn.1403058cc
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14030e890
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.140304180
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x14030e91a
cmp byte [rbp - 0x21], r15b
je 0x14030e915
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x14030e950
call fcn.140306044
test eax, eax
jne 0x14030e93c
cmp byte [rbp - 0x21], r15b
je 0x14030e934
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x14030e950
cmp byte [rbp - 0x21], r15b
je 0x14030e94d
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.1403081f4
test eax, eax
jne 0x14030e9f0
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140304180
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x14030e98f
cmp byte [rbp - 0x21], r15b
je 0x14030e9c4
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x14030e9c4
call fcn.140306044
test eax, eax
jne 0x14030e9b0
cmp byte [rbp - 0x21], r15b
je 0x14030e9a9
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x14030e9c4
cmp byte [rbp - 0x21], r15b
je 0x14030e9c1
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.1403081f4
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x14030e9f0
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x14030e9f3
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x14030ea01
mov rcx, rdi
call fcn.1403058cc
cmp byte [rbp + 0x3f], r15b
je 0x14030ea10
mov rcx, qword [rbp + 0x27]
call fcn.1403058cc
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 0x140039da0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r15
sub rsp, 0x30
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
xor esi, esi
xor eax, eax
lock cmpxchg qword [0x140058300], rbx
je 0x140039dec
cmp rax, rbx
jne 0x140039ddf
mov ebx, 1
mov esi, ebx
jmp 0x140039df1
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x140039dc4
mov ebx, 1
mov eax, dword [0x140058308]
cmp eax, ebx
jne 0x140039e07
mov ecx, 0x1f
call sub.msvcrt.dll__amsg_exit
jmp 0x140039e6c
mov eax, dword [0x140058308]
test eax, eax
jne 0x140039e66
mov dword [0x140058308], ebx
lea r15, [0x1400402d8]
lea rdi, [0x1400402c0]
mov qword [rsp + 0x28], rdi
mov dword [rsp + 0x20], eax
cmp rdi, r15
jae 0x140039e58
test eax, eax
jne 0x140039e5c
cmp qword [rdi], 0
je 0x140039e4d
mov rax, qword [rdi]
mov rcx, qword [case.0x140036da7.0]
call rcx
mov dword [rsp + 0x20], eax
add rdi, 8
mov qword [rsp + 0x28], rdi
jmp 0x140039e2e
test eax, eax
je 0x140039e6c
mov eax, 0xff
jmp 0x140039f48
mov dword [0x140053c08], ebx
mov eax, dword [0x140058308]
cmp eax, ebx
jne 0x140039e93
lea rdx, [0x1400402b8]
lea rcx, [0x140040228]
call sub.msvcrt.dll__initterm
mov dword [0x140058308], 2
test esi, esi
jne 0x140039ea0
xor eax, eax
xchg qword [0x140058300], rax
cmp qword [0x140058320], 0
je 0x140039ed4
lea rcx, [0x140058320]
call fcn.14003a790
test eax, eax
je 0x140039ed4
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x140058320]
mov r9, qword [case.0x140036da7.0]
call r9
mov r8, qword [0x140053c20]
mov rdx, qword [0x140053c18]
mov ecx, dword [0x140053c10]
call fcn.140027958
mov dword [0x140053c04], eax
cmp dword [0x140053c28], 0
jne 0x140039f04
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x140053c08], 0
jne 0x140039f19
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x140053c04]
jmp 0x140039f48
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r15
ret
sub rsp, 0x28
call fcn.1400fb000
add rsp, 0x28
jmp 0x140039da0

Function at 0x14003a68c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14003a6d8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14003a6d0
cmp dword [rcx + 0x3c], edx
jl 0x14003a6d0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14003a6d0
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x14003a6d8
mov rax, rdx
add rsp, 0x18
ret