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

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402830d8]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14027c3dc]
test eax, eax
je 0x1400ce1a3
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14027c3dc]
test eax, eax
jne 0x1400ce1ac
call fcn.1400085d4
test eax, eax
je 0x1400ce1c8
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402753c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400ce1d0
xor eax, eax
jmp 0x1400ce235
test rbx, rbx
jne 0x1400ce1f0
lea rcx, str.GetOpenFileNameW
call fcn.140035f24
mov rbx, rax
test rax, rax
je 0x1400ce203
mov qword [0x1402830d8], rax
mov rcx, rbx
call fcn.1401ac27c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1400ce218
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400ce21a
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400ce233
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1400ce24c
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x1402830e0]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14027c3dc]
test eax, eax
je 0x1400ce297
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14027c3dc]
test eax, eax
jne 0x1400ce2a0
call fcn.1400085d4
test eax, eax
je 0x1400ce2bc
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402753c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1400ce2c4
xor eax, eax
jmp 0x1400ce329
test rbx, rbx
jne 0x1400ce2e4
lea rcx, str.GetSaveFileNameW
call fcn.140035f24
mov rbx, rax
test rax, rax
je 0x1400ce2f7
mov qword [0x1402830e0], rax
mov rcx, rbx
call fcn.1401ac27c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1400ce30c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1400ce30e
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400ce327
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1400f05a4
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x50
mov r14d, r9d
mov r15d, r8d
mov r12, rdx
mov r13, rcx
xor esi, esi
mov qword [rax - 0x20], rsi
mov rbx, qword [0x140283548]
and qword [rax - 0x28], rsi
xor edi, edi
mov eax, dword [0x14027c3dc]
test eax, eax
je 0x1400f0601
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14027c3dc]
test eax, eax
jne 0x1400f060a
call fcn.1400085d4
test eax, eax
je 0x1400f0626
lea rdx, [rsp + 0x40]
mov rcx, qword [0x1402753c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne edi, ecx
test edi, edi
jne 0x1400f0631
xor eax, eax
jmp 0x1400f06c4
test rbx, rbx
jne 0x1400f0651
lea rcx, str.ImageList_LoadImageW
call fcn.140019490
mov rbx, rax
test rax, rax
je 0x1400f0690
mov qword [0x140283548], rax
mov rcx, rbx
call fcn.1401ac27c
mov eax, dword [rsp + 0xa0]
mov dword [rsp + 0x30], eax
mov eax, dword [rsp + 0x98]
mov dword [rsp + 0x28], eax
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov r9d, r14d
mov r8d, r15d
mov rdx, r12
mov rcx, r13
call rbx
mov rsi, rax
mov qword [rsp + 0x48], rax
xor ebx, ebx
test rsi, rsi
sete bl
test ebx, ebx
je 0x1400f06a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x1400f06a8
xor edi, edi
mov rdx, qword [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1400f06c1
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rsi
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x30]
mov r12, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop r13
ret

Function at 0x140108044
Capabilities:
Delete registry value

Disassembly:
sub rsp, 0x28
mov rcx, qword [rcx + 8]
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x28
ret

Function at 0x140108214
Capabilities:
Query or enumerate registry value

Disassembly:
mov r11, rsp
sub rsp, 0x38
mov rcx, qword [rcx + 8]
lea rax, [r11 + 8]
mov qword [r11 - 0x10], rax
lea r9, [r11 + 0x20]
mov qword [r11 - 0x18], r8
xor r8d, r8d
mov dword [rsp + 0x40], 4
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
xor edx, edx
test eax, eax
jne 0x140108256
mov ecx, dword [rsp + 0x58]
sub ecx, 4
neg ecx
sbb eax, eax
and eax, 0xd
test eax, eax
sete dl
mov eax, edx
add rsp, 0x38
ret
Function at 0x1401086e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rbp
mov qword [rax + 0x20], rsi
push rdi
sub rsp, 0x30
mov rdi, r9
mov rbx, r8
mov rsi, rdx
mov rbp, rcx
test rdx, rdx
je 0x1401087b2
test rbx, rbx
je 0x1401087b8
test r9, r9
je 0x1401087be
and qword [r8], 0
xor r8d, r8d
and dword [r9], 0
mov rcx, qword [rcx + 8]
mov qword [rax - 0x10], r9
lea r9, [rax + 0x10]
and qword [rax - 0x18], 0
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14010879b
cmp dword [rsp + 0x48], 3
jne 0x14010879b
test eax, eax
jne 0x14010879b
cmp dword [rdi], eax
je 0x14010879b
mov ecx, dword [rdi]
call fcn.140004cb4
mov qword [rbx], rax
lea r9, [rsp + 0x48]
mov rcx, qword [rbp + 8]
xor r8d, r8d
mov qword [rsp + 0x28], rdi
mov rdx, rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x14010878f
cmp dword [rsp + 0x48], 3
jne 0x14010878f
test eax, eax
jne 0x14010878f
mov eax, 1
jmp 0x14010879d
mov rcx, qword [rbx]
call fcn.140004cbc
and qword [rbx], 0
xor eax, eax
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret
call fcn.140004d20
int3
call fcn.140004d20
int3
call fcn.140004d20
int3

Function at 0x140108ae8
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140108af9
xor eax, eax
jmp 0x140108b27
mov rcx, qword [rcx + 8]
lea rax, [rsp + 0x40]
mov r9d, 4
mov dword [rsp + 0x40], r8d
mov dword [rsp + 0x28], r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret

Function at 0x140108b30
Capabilities:
Set registry value

Disassembly:
push rbx
sub rsp, 0x30
xor ebx, ebx
cmp dword [rcx + 0x28], ebx
je 0x140108b41
xor eax, eax
jmp 0x140108b65
mov rcx, qword [rcx + 8]
mov dword [rsp + 0x28], r9d
mov r9d, 3
mov qword [rsp + 0x20], r8
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov eax, ebx
add rsp, 0x30
pop rbx
ret
Function at 0x140158280
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140284c30]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14027c3dc]
test eax, eax
je 0x1401582cb
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14027c3dc]
test eax, eax
jne 0x1401582d4
call fcn.1400085d4
test eax, eax
je 0x1401582f0
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402753c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401582f8
xor eax, eax
jmp 0x14015835d
test rbx, rbx
jne 0x140158318
lea rcx, str.ChooseColorW
call fcn.140035f24
mov rbx, rax
test rax, rax
je 0x14015832b
mov qword [0x140284c30], rax
mov rcx, rbx
call fcn.1401ac27c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x140158340
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x140158342
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x14015835b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret

Function at 0x1401ab470
Capabilities:
Print debug messages

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x30
mov r14, rcx
xor edi, edi
mov dword [rax - 0x18], edi
mov rbx, qword [0x140286108]
and qword [rax + 0x10], rdi
xor esi, esi
mov eax, dword [0x14027c3dc]
test eax, eax
je 0x1401ab4bb
lea rcx, str.IsolationAware_function_called_after_IsolationAwareCleanup_n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov eax, dword [0x14027c3dc]
test eax, eax
jne 0x1401ab4c4
call fcn.1400085d4
test eax, eax
je 0x1401ab4e0
lea rdx, [rsp + 0x48]
mov rcx, qword [0x1402753c8]
call qword [sym.imp.KERNEL32.dll_ActivateActCtx]
mov ecx, 1
test eax, eax
cmovne esi, ecx
test esi, esi
jne 0x1401ab4e8
xor eax, eax
jmp 0x1401ab54d
test rbx, rbx
jne 0x1401ab508
lea rcx, str.PrintDlgW
call fcn.140035f24
mov rbx, rax
test rax, rax
je 0x1401ab51b
mov qword [0x140286108], rax
mov rcx, rbx
call fcn.1401ac27c
mov rcx, r14
call rbx
mov edi, eax
mov dword [rsp + 0x20], eax
xor ebx, ebx
test edi, edi
sete bl
test ebx, ebx
je 0x1401ab530
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x1401ab532
xor esi, esi
mov rdx, qword [rsp + 0x48]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeactivateActCtx]
test ebx, ebx
je 0x1401ab54b
mov ecx, esi
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x30
pop r14
ret
Function at 0x1401b211c
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0x20
mov esi, r8d
mov ebx, edx
mov r14d, ecx
test r8d, r8d
jne 0x1401b1ef0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1401b1ef0
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1401b1ef0
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1401b1ef0
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1401b1ef0
cmp dword [rcx + 0x84], 0xe
jbe 0x1401b1ef0
cmp dword [rcx + 0xf8], esi
je 0x1401b1ef0
mov ecx, r14d
call fcn.1401b2038
mov ecx, 2
call fcn.1401c0dd4
nop
cmp byte [0x140286988], 0
jne 0x1401b1fba
mov r15d, 1
mov eax, r15d
xchg dword [0x140286978], eax
test ebx, ebx
jne 0x1401b1f63
mov rdi, qword [0x140276910]
mov edx, edi
and edx, 0x3f
lea ecx, [rbx + 0x40]
sub ecx, edx
xor eax, eax
ror rax, cl
xor rax, rdi
mov rcx, qword [0x140286980]
cmp rcx, rax
je 0x1401b1f5a
xor rdi, rcx
mov ecx, edx
ror rdi, cl
mov rcx, rdi
call qword [fcn.1400131e8]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call rdi
lea rcx, [0x140286c20]
jmp 0x1401b1f6f
cmp ebx, r15d
jne 0x1401b1f75
lea rcx, [0x140286c38]
call fcn.1401bf014
nop
test ebx, ebx
jne 0x1401b1f8c
lea rdx, [0x1401d7e28]
lea rcx, [0x1401d7e08]
call fcn.1401bea4c
lea rdx, [0x1401d7e38]
lea rcx, [0x1401d7e30]
call fcn.1401bea4c
movzx eax, byte [0x140286988]
test esi, esi
cmove eax, r15d
mov byte [0x140286988], al
jmp 0x1401b1fba
mov ecx, 2
call fcn.1401c0e28
test esi, esi
jne 0x1401b1fd1
mov ecx, r14d
call fcn.1401b1fec
int3
mov rbx, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x38]
mov rdi, qword [rsp + 0x40]
mov r14, qword [rsp + 0x48]
add rsp, 0x20
pop r15
ret
xor r8d, r8d
xor edx, edx
jmp 0x1401b1e80
Function at 0x140001000
Capabilities:
Check mutex on windows

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x38
lea rdx, section..data
mov rcx, qword [rsp + 0x40]
call fcn.140001d10
test rax, rax
ja 0x14000102a
mov ecx, 1
call fcn.1400049a4
nop
lea r8, str.myMutex
mov edx, 1
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov qword [rsp + 0x28], rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x14000106a
lea rcx, str.implant.exe
call fcn.1400049b0
mov ecx, 0x64
call qword [sym.imp.KERNEL32.dll_Sleep]
nop
jmp 0x140001075
mov ecx, 1
call fcn.1400049a4
nop
mov qword [rsp + 0x20], 0
mov ecx, 0xbebc200
call fcn.140004694
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x1400010b4
mov r8d, 0xbebc200
xor edx, edx
mov rcx, qword [rsp + 0x20]
call fcn.1400163b0
mov rcx, qword [rsp + 0x20]
call fcn.140004680
nop
jmp 0x1400010bf
mov ecx, 1
call fcn.1400049a4
nop
lea rcx, str.___sandbox_bypassed_using_delaying_execution__environmental_checks_and_non_emulated_APIs_n
call fcn.140001180
nop
add rsp, 0x38
ret

Function at 0x1400018fc
Capabilities:
Parse pe header

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

Function at 0x1400047a0
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 0x14000480f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000480f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000480f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000480f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000480f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000480f
cmp dword [rcx + 0xf8], 0
je 0x14000480f
mov ecx, ebx
call fcn.1400048c0
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.14000469c
nop
cmp dword [rbp + 0x20], 0
je 0x14000485d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004868
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400047a0
Function at 0x1400049a4
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 0x14000480f
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000480f
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000480f
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000480f
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000480f
cmp dword [rcx + 0x84], 0xe
jbe 0x14000480f
cmp dword [rcx + 0xf8], 0
je 0x14000480f
mov ecx, ebx
call fcn.1400048c0
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.14000469c
nop
cmp dword [rbp + 0x20], 0
je 0x14000485d
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.140004868
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400047a0
Function at 0x14000d9ac
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 0x14000d9dc
xor eax, eax
jmp 0x14000da9f
mov rbp, rbx
cmp word [rax], si
je 0x14000da01
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14000d9e8
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14000d9e4
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.14000d8cc
movsxd r14, eax
test eax, eax
jne 0x14000da3f
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14000d9d5
mov rcx, r14
call fcn.1400080c8
mov rdi, rax
test rax, rax
jne 0x14000da58
xor ecx, ecx
call fcn.14000808c
jmp 0x14000da34
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.14000d8cc
test eax, eax
jne 0x14000da89
mov rcx, rdi
call fcn.14000808c
jmp 0x14000da93
xor ecx, ecx
call fcn.14000808c
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 0x1400125fc
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140012612
mov al, 1
jmp 0x140012672
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140012623
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140012670
mov ecx, dword [rcx + 0x18]
nop
call fcn.14000e1b0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140012670
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140012670
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140012670
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140012672
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140013598
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.140009598
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140013622
cmp byte [rbp - 0x21], r15b
je 0x14001361d
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140013658
call fcn.1400099b0
test eax, eax
jne 0x140013644
cmp byte [rbp - 0x21], r15b
je 0x14001363c
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140013658
cmp byte [rbp - 0x21], r15b
je 0x140013655
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.14000941c
test eax, eax
jne 0x1400136f8
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.140009598
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140013697
cmp byte [rbp - 0x21], r15b
je 0x1400136cc
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x1400136cc
call fcn.1400099b0
test eax, eax
jne 0x1400136b8
cmp byte [rbp - 0x21], r15b
je 0x1400136b1
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x1400136cc
cmp byte [rbp - 0x21], r15b
je 0x1400136c9
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.14000941c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x1400136f8
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x1400136fb
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140013709
mov rcx, rdi
call fcn.14000808c
cmp byte [rbp + 0x3f], r15b
je 0x140013718
mov rcx, qword [rbp + 0x27]
call fcn.14000808c
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 0x140015c90
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140015cb8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140015cb8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
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]
movabs dword [0xfa602f0b18beab14], eax
adc esp, dword [rdx - 0x64137fb8]
xor rax, 0x1f7698e4
movabs byte [0xb1216643b46f1f1], al
jnp 0x14001ad18
out dx, eax
invalid