joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140008350
Capabilities:
Encode data using xor

Disassembly:
sub rsp, 0x38
cmp dword [0x14001cf40], 0
jne 0x1400084ff
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x28], r14
mov qword [rsp + 0x20], r15
call fcn.1400071f0
mov edx, 1
mov rcx, qword [rax + 0x30]
call fcn.140004000
xor edi, edi
lea r15, [0x14001cf40]
mov rsi, rax
mov r14d, edi
mov ebp, edi
cmp dword [rax + 0x50], edi
jbe 0x140008485
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x30], r12
mov r12d, 0x775a
nop word [rax + rax]
mov rax, qword [rsi + 0x48]
mov rbx, qword [rsi + 0x18]
mov ecx, ebp
mov r9d, dword [rax + rcx*4]
cmp dword [rsi], edi
je 0x1400083d8
lea rdx, [rbx + r9]
jmp 0x140008413
mov rax, qword [rsi + 0x20]
mov r8d, edi
mov r11, qword [rsi + 0x38]
movzx r10d, word [rax + 6]
test r10d, r10d
je 0x140008410
lea rax, [r11 + 8]
mov edx, dword [rax + 4]
cmp edx, r9d
ja 0x140008404
add edx, dword [rax]
cmp r9d, edx
jb 0x140008509
inc r8d
add rax, 0x28
cmp r8d, r10d
jb 0x1400083f1
mov rdx, rdi
cmp word [rdx], r12w
jne 0x140008470
mov r9d, edi
mov r8d, 0xe14b0d06
mov rax, rdx
nop word [rax + rax]
movzx eax, word [rax]
mov ecx, r8d
ror ecx, 8
inc r9d
add ecx, eax
mov eax, r9d
add rax, rdx
xor r8d, ecx
cmp byte [rax], dil
jne 0x140008430
mov eax, r14d
lea rcx, [rax + rax*2]
lea rbx, [rcx*4]
mov rcx, rsi
mov dword [rbx + r15 + 4], r8d
call fcn.140004140
mov dword [rbx + r15 + 8], eax
inc r14d
inc ebp
cmp ebp, dword [rsi + 0x50]
jb 0x1400083c0
mov r12, qword [rsp + 0x30]
mov rbx, qword [rsp + 0x40]
mov edx, r14d
lea r9, [0x140008310]
mov r8d, 0xc
mov dword [0x14001cf40], r14d
lea rcx, [0x14001cf44]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov eax, dword [0x14001cf40]
mov r14, qword [rsp + 0x28]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
test eax, eax
je 0x1400084d9
mov eax, edi
lea rdx, [rax + rax*2]
mov dword [r15 + rdx*4 + 0xc], edi
inc edi
mov eax, dword [0x14001cf40]
cmp edi, eax
jb 0x1400084c2
mov edx, eax
lea r9, [0x140008330]
mov r8d, 0xc
lea rcx, [0x14001cf44]
call qword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_qsort]
mov r15, qword [rsp + 0x20]
mov rdi, qword [rsp + 0x58]
mov eax, 1
add rsp, 0x38
ret
mov eax, r8d
lea rcx, [rax + rax*4]
lea rdx, [r11 + rcx*8]
test rdx, rdx
je 0x140008410
sub r9d, dword [rdx + 0xc]
mov edx, dword [rdx + 0x14]
mov eax, r9d
add rax, rbx
add rdx, rax
jmp 0x140008413

Function at 0x140008ea4
Capabilities:
Parse pe header

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

Disassembly:
pop rax
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x28
mov ecx, dword [0x14001c030]
call fcn.140008540
add rsp, 0x28
mov rcx, qword [rsp + 8]
mov rdx, qword [rsp + 0x10]
mov r8, qword [rsp + 0x18]
mov r9, qword [rsp + 0x20]
mov r10, rcx
syscall
ret
Function at 0x140001d30
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x138
mov rax, qword [0x14001d068]
xor rax, rsp
mov qword [rsp + 0x120], rax
call fcn.140002440
test eax, eax
je 0x140001d5f
cmp dword [0x14001fd80], 1
je 0x140001e44
xor eax, eax
mov qword [rsp + 0x130], rbx
lea rcx, [rsp + 0x80]
xor ebx, ebx
xor edx, edx
mov r8d, 0x9c
mov qword [rsp + 0x42], rax
mov qword [rsp + 0x4a], rax
mov qword [rsp + 0x52], rax
mov word [rsp + 0x40], bx
mov qword [rsp + 0x5a], rax
mov qword [rsp + 0x62], rax
mov qword [rsp + 0x6a], rax
mov qword [rsp + 0x72], rax
mov dword [rsp + 0x7a], eax
mov word [rsp + 0x7e], ax
call fcn.140008bd0
lea r8, [rsp + 0x40]
or edx, 0xffffffff
xor ecx, ecx
call qword [sym.imp.USER32.dll_EnumDisplaySettingsW]
cmp eax, 1
jne 0x140001dd5
mov ebx, dword [rsp + 0x94]
mov r8d, ebx
call fcn.140001100
lea rax, [rsp + 0x38]
lea rdx, str.SoftwareElantechOtherSetting
mov r9d, 0x20006
xor r8d, r8d
mov rcx, 0xffffffff80000001
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x140001e3c
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.ScreenOrientationValueToKernel
mov r9d, 4
xor r8d, r8d
mov dword [rsp + 0x28], 4
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], ebx
call qword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rbx, qword [rsp + 0x130]
mov rcx, qword [rsp + 0x120]
xor rcx, rsp
call fcn.1400036e0
add rsp, 0x138
ret
Function at 0x140001e60
Capabilities:
Create process on windows
Get common file path

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r14
push r15
lea rbp, [rsp - 0x220]
sub rsp, 0x320
mov rax, qword [0x14001d068]
xor rax, rsp
mov qword [rbp + 0x210], rax
mov rsi, qword [rbp + 0x270]
xor r15d, r15d
mov ebx, ecx
mov r14, rdx
lea rcx, [rbp - 0x68]
lea r8d, [r15 + 0x60]
xor edx, edx
mov edi, r15d
mov qword [rsp + 0x60], r15
mov qword [rsp + 0x68], r15
mov dword [rsp + 0x70], 0x104
mov dword [rbp - 0x70], 0x68
call fcn.140008bd0
xor eax, eax
lea rdx, [rsp + 0x60]
mov ecx, ebx
mov qword [rsp + 0x78], r15
mov qword [rbp - 0x80], rax
mov qword [rbp - 0x78], rax
call qword [sym.imp.WTSAPI32.dll_WTSQueryUserToken]
test eax, eax
jne 0x140001ef3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140001fa6
mov rdx, qword [rsp + 0x60]
lea rcx, [rsp + 0x68]
mov r8d, 1
call qword [sym.imp.USERENV.dll_CreateEnvironmentBlock]
test eax, eax
jne 0x140001f1a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140001fa6
mov rcx, qword [rsp + 0x60]
lea r8, [rsp + 0x70]
lea rdx, [rbp]
call qword [sym.imp.USERENV.dll_GetUserProfileDirectoryW]
test eax, eax
jne 0x140001f3c
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140001fa6
mov rcx, qword [rsp + 0x60]
lea rax, str.winsta0default
xor r9d, r9d
mov qword [rbp - 0x60], rax
lea rax, [rsp + 0x78]
mov r8, r14
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x70]
xor edx, edx
mov qword [rsp + 0x48], rax
lea rax, [rbp]
mov qword [rsp + 0x40], rax
mov rax, qword [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0x8400
mov dword [rsp + 0x28], r15d
mov qword [rsp + 0x20], r15
call qword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x140001fa0
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, eax
jmp 0x140001fa6
mov dword [rsi], 0x7d01
mov rcx, qword [rsp + 0x60]
test rcx, rcx
je 0x140001fbb
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x60], r15
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x140001fd0
call qword [sym.imp.USERENV.dll_DestroyEnvironmentBlock]
mov qword [rsp + 0x68], r15
mov rcx, qword [rsp + 0x78]
test rcx, rcx
je 0x140001fe5
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rsp + 0x78], r15
mov rcx, qword [rbp - 0x80]
test rcx, rcx
je 0x140001ff8
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov qword [rbp - 0x80], r15
test edi, edi
je 0x140002008
mov ecx, edi
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x14000200d
mov eax, 1
mov rcx, qword [rbp + 0x210]
xor rcx, rsp
call fcn.1400036e0
mov rbx, qword [rsp + 0x360]
add rsp, 0x320
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140002c40
Capabilities:
Create service
Persist via windows service

Disassembly:
sub rsp, 0x4b8
mov rax, qword [0x14001d068]
xor rax, rsp
mov qword [rsp + 0x4a0], rax
lea rcx, [rsp + 0x80]
xor edx, edx
mov r8d, 0x208
mov dword [rsp + 0x70], 0x22
call fcn.140008bd0
lea rdx, [rsp + 0x290]
mov r8d, 0x104
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x140002cbc
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.GetModuleFileName_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000391c
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400036e0
add rsp, 0x4b8
ret
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x4c0], rbx
lea r8d, [rdx + 3]
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rbx, rax
test rax, rax
jne 0x140002cf3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000391c
jmp 0x140002df5
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov edx, 0x104
mov qword [rsp + 0x4b0], rdi
call fcn.140004728
lea r8, [rsp + 0x290]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call fcn.140004728
lea r8, [rsp + 0x70]
lea rcx, [rsp + 0x80]
mov edx, 0x104
call fcn.140004728
xor ecx, ecx
lea rax, [0x1400192b0]
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x50], rax
mov qword [rsp + 0x48], rcx
mov qword [rsp + 0x40], rcx
lea rax, [rsp + 0x80]
mov qword [rsp + 0x38], rax
lea r9d, [rcx + 4]
mov dword [rsp + 0x30], 1
lea r8, [0x1400192b8]
lea rdx, str.ETDService
mov rcx, rbx
mov dword [rsp + 0x28], 2
mov dword [rsp + 0x20], 0x10
call qword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov rdi, rax
test rax, rax
jne 0x140002dc3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.CreateService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000391c
jmp 0x140002dd6
lea rdx, str.ETDService
lea rcx, str._s_is_installed._n
call fcn.14000391c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rdi, rdi
je 0x140002ded
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rdi, qword [rsp + 0x4b0]
mov rbx, qword [rsp + 0x4c0]
mov rcx, qword [rsp + 0x4a0]
xor rcx, rsp
call fcn.1400036e0
add rsp, 0x4b8
ret
Function at 0x140002e20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push rdi
sub rsp, 0x50
mov rax, qword [0x14001d068]
xor rax, rsp
mov qword [rsp + 0x40], rax
xor eax, eax
xor edx, edx
xor ecx, ecx
lea r8d, [rax + 1]
mov qword [rsp + 0x20], rax
mov qword [rsp + 0x28], rax
mov qword [rsp + 0x30], rax
mov dword [rsp + 0x38], eax
call qword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov rdi, rax
test rax, rax
jne 0x140002e87
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenSCManager_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000391c
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400036e0
add rsp, 0x50
pop rdi
ret
lea rdx, str.ETDService
mov r8d, 0x10024
mov rcx, rax
mov qword [rsp + 0x60], rbx
call qword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov rbx, rax
test rax, rax
jne 0x140002ec3
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.OpenService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000391c
jmp 0x140002f9b
lea r8, [rsp + 0x20]
mov edx, 1
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
je 0x140002f65
lea rdx, str.ETDService
lea rcx, str.Stopping__s.
call fcn.14000391c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x140002f42
nop
mov eax, dword [rsp + 0x24]
cmp eax, 3
jne 0x140002f46
lea rcx, [0x140019b74]
call fcn.14000391c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x140002f10
mov eax, dword [rsp + 0x24]
lea rdx, str.ETDService
lea rcx, [0x140019b78]
cmp eax, 1
je 0x140002f60
lea rcx, str._n_s_failed_to_stop._n
call fcn.14000391c
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_DeleteService]
test eax, eax
jne 0x140002f88
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.DeleteService_failed_w_err_0x_08lx_n
mov edx, eax
call fcn.14000391c
jmp 0x140002f9b
lea rdx, str.ETDService
lea rcx, str._s_is_removed._n
call fcn.14000391c
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test rbx, rbx
je 0x140002fb2
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.1400036e0
add rsp, 0x50
pop rdi
ret
Function at 0x140003230
Capabilities:
Connect to wmi namespace via wbemlocator

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x50
lea rdi, [rcx + 0x428]
lea rsi, [rcx + 0x420]
mov rbx, rcx
xor ebp, ebp
xor edx, edx
xor ecx, ecx
mov qword [rdi], rbp
mov qword [rsi], rbp
call qword [sym.imp.ole32.dll_CoInitializeEx]
mov qword [rsp + 0x40], rbp
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
xor r9d, r9d
xor r8d, r8d
or edx, 0xffffffff
xor ecx, ecx
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], ebp
call qword [sym.imp.ole32.dll_CoInitializeSecurity]
mov dword [rbx + 0x438], eax
test eax, eax
js 0x140003332
lea r9, [0x140019280]
lea r8d, [rbp + 1]
lea rcx, [0x140019260]
xor edx, edx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ole32.dll_CoCreateInstance]
mov dword [rbx + 0x438], eax
test eax, eax
js 0x140003332
mov rcx, qword [rdi]
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x38], rbp
mov rax, qword [rcx]
mov qword [rsp + 0x30], rbp
lea rdx, str.rootwmi
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rbp
call qword [rax + 0x18]
mov dword [rbx + 0x438], eax
test eax, eax
js 0x140003332
mov rcx, qword [rsi]
mov dword [rsp + 0x38], ebp
mov qword [rsp + 0x30], rbp
lea edx, [rbp + 0xa]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x28], 3
mov dword [rsp + 0x20], 3
call qword [sym.imp.ole32.dll_CoSetProxyBlanket]
mov dword [rbx + 0x438], eax
mov rbp, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x70]
mov rax, rbx
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rdi
ret

Function at 0x140007364
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.1400071cc
Function at 0x140037920
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x14003792d
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x14003793d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x140037925
lea eax, [rcx + 1]
call r11
adc eax, eax
add ebx, ebx
jne 0x140037955
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x140037942
sub eax, 3
jb 0x14003796f
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x1400379a6
movsxd rbp, eax
lea eax, [rcx + 1]
call r11
adc ecx, ecx
call r11
adc ecx, ecx
jne 0x140037996
mov ecx, eax
add eax, 2
call r11
adc ecx, ecx
add ebx, ebx
jne 0x140037994
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x140037983
cmp rbp, 0xfffffffffffff300
adc ecx, eax
call fcn.1400378e2
jmp 0x14003792d
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x1b400
mov dl, 9
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x1400379f2
cmp rsi, rcx
jae 0x1400379fa
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x1400379d9
cmp al, 0x8f
ja 0x1400379d9
cmp byte [rsi - 2], 0xf
je 0x1400379df
sub al, 0xe8
cmp al, 1
ja 0x1400379c3
cmp rsi, rcx
jae 0x1400379fa
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x1400379c9
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x1400379fa
lodsb al, byte [rsi]
jmp 0x1400379d9
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0x35000]
mov eax, dword [rdi]
or eax, eax
je 0x140037a63
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0x441f0]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x140037a07
jns 0x140037a3c
movzx rdx, word [rdi]
add rdi, 2
jmp 0x140037a46
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x140037a5d
mov qword [rbx], rax
add rbx, 8
jmp 0x140037a27
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x18f]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x140037abb
sub rsp, 0xffffffffffffff80
jmp 0x14001bce0
Function at 0x140003c00
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x80
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov edi, edx
mov rbx, rcx
cmp edx, 0xffffffff
jne 0x140003c2d
xor eax, eax
jmp 0x140003d99
mov rax, qword [rcx + 0x40]
mov rdx, qword [rax]
test rdx, rdx
je 0x140003c67
mov rax, qword [rcx + 0x58]
movsxd r8, dword [rax]
lea rcx, [rdx + r8]
cmp rdx, rcx
jae 0x140003c67
lea ecx, [r8 - 1]
mov dword [rax], ecx
mov eax, edi
mov rdx, qword [rbx + 0x40]
mov r8, qword [rdx]
lea rcx, [r8 + 1]
mov qword [rdx], rcx
mov byte [r8], dil
jmp 0x140003d99
cmp qword [rbx + 0x80], 0
mov qword [rsp + 0xa0], rsi
je 0x140003d8c
mov r8, qword [rbx + 0x18]
lea rax, [rbx + 0x70]
cmp qword [r8], rax
jne 0x140003caa
mov rcx, qword [rbx + 0x88]
mov rdx, qword [rbx + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rbx + 0x38]
mov qword [rax], rcx
mov rax, qword [rbx + 0x50]
mov dword [rax], edx
mov rcx, qword [rbx + 0x68]
test rcx, rcx
jne 0x140003cd5
mov rdx, qword [rbx + 0x80]
movsx ecx, dil
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003d91
lea rax, [rsp + 0x40]
mov byte [rsp + 0x50], dil
mov qword [rsp + 0x38], rax
lea rdx, [rbx + 0x74]
lea rax, [rsp + 0x78]
mov qword [rsp + 0x30], rax
lea r9, [rsp + 0x51]
lea rax, [rsp + 0x58]
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x50]
lea rax, [rsp + 0x48]
mov qword [rsp + 0x20], rax
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet____ptr64__char_const____ptr64__char_const____ptr64__char_const____ptr64____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x140003d44
sub eax, 1
je 0x140003d44
cmp eax, 2
jne 0x140003d8c
movsx ecx, byte [rsp + 0x50]
mov rdx, qword [rbx + 0x80]
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
mov ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, edi
mov eax, ecx
jmp 0x140003d91
mov rsi, qword [rsp + 0x40]
lea rax, [rsp + 0x58]
sub rsi, rax
je 0x140003d72
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x58]
mov r8, rsi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rsi, rax
jne 0x140003d8c
lea rax, [rsp + 0x50]
mov byte [rbx + 0x71], 1
cmp qword [rsp + 0x48], rax
mov ecx, 0xffffffff
cmovne ecx, edi
mov eax, ecx
jmp 0x140003d91
mov eax, 0xffffffff
mov rsi, qword [rsp + 0xa0]
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.1400067d0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x80
pop rdi
ret
Function at 0x140004140
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x60
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rcx + 0x68], 0
mov rbx, rcx
je 0x140004213
cmp byte [rcx + 0x71], 0
je 0x140004213
mov rax, qword [rcx]
mov edx, 0xffffffff
mov qword [rsp + 0x78], rdi
call qword [rax + 0x18]
cmp eax, 0xffffffff
je 0x14000420f
mov rcx, qword [rbx + 0x68]
lea rax, [rsp + 0x30]
lea rdx, [rbx + 0x74]
mov qword [rsp + 0x20], rax
lea r9, [rsp + 0x58]
lea r8, [rsp + 0x38]
call qword [sym.imp.MSVCP140.dll_public:_int___cdecl_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet____ptr64__char____ptr64__char____ptr64__char____ptr64____ptr64_const___ptr64]
test eax, eax
je 0x1400041d4
sub eax, 1
je 0x1400041d8
cmp eax, 2
jne 0x14000420f
mov byte [rbx + 0x71], 0
mov al, 1
mov rdi, qword [rsp + 0x78]
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400067d0
add rsp, 0x60
pop rbx
ret
mov byte [rbx + 0x71], 0
mov rdi, qword [rsp + 0x30]
lea rax, [rsp + 0x38]
sub rdi, rax
je 0x140004206
mov r9, qword [rbx + 0x80]
lea rcx, [rsp + 0x38]
mov r8, rdi
mov edx, 1
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
cmp rdi, rax
jne 0x14000420f
cmp byte [rbx + 0x71], 0
sete al
jmp 0x1400041bc
xor al, al
jmp 0x1400041bc
mov al, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400067d0
add rsp, 0x60
pop rbx
ret
Function at 0x140005940
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x190
mov rax, qword [0x14000d040]
xor rax, rsp
mov qword [rsp + 0x180], rax
mov rdi, rcx
mov dword [rsp + 0x50], 0x130
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rbx, rax
mov qword [rsp + 0x40], rax
cmp rax, 0xffffffffffffffff
jne 0x140005a1a
xorps xmm0, xmm0
movups xmmword [rsp + 0x20], xmm0
xor edi, edi
mov qword [rsp + 0x30], rdi
mov qword [rsp + 0x38], rdi
mov r8d, 0x26
lea rdx, str.Error_while_creating_process_snapshot_n
lea rcx, [rsp + 0x20]
call fcn.140004d80
nop
lea rdx, [rsp + 0x20]
cmp qword [rsp + 0x38], 0xf
cmova rdx, qword [rsp + 0x20]
mov r8, qword [rsp + 0x30]
mov rcx, qword [sym.imp.MSVCP140.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cout]
call fcn.140005580
nop
mov rdx, qword [rsp + 0x38]
cmp rdx, 0xf
jbe 0x140005a56
inc rdx
mov rcx, qword [rsp + 0x20]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140005a13
add rdx, 0x27
mov rcx, qword [rcx - 8]
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
jbe 0x140005a13
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140006a6c
jmp 0x140005a56
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32First]
test eax, eax
je 0x140005a54
nop dword [rax]
mov rdx, rdi
lea rcx, [rsp + 0x7c]
call qword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__stricmp]
test eax, eax
je 0x140005a8c
lea rdx, [rsp + 0x50]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_Process32Next]
test eax, eax
jne 0x140005a30
xor edi, edi
lea rcx, [rbx - 1]
cmp rcx, 0xfffffffffffffffd
ja 0x140005a69
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov rcx, qword [rsp + 0x180]
xor rcx, rsp
call fcn.1400067d0
mov rbx, qword [rsp + 0x1a8]
add rsp, 0x190
pop rdi
ret
mov edi, dword [rsp + 0x58]
jmp 0x140005a56

Function at 0x140006210
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, rdx
lea r8, [rsp + 0x60]
mov edi, ecx
mov edx, 0x20000001
lea rcx, str._x_sys_default_locale
mov r9d, 2
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
test eax, eax
jne 0x14000624a
xor r9d, r9d
mov dword [rsp + 0x60], r9d
jmp 0x14000624f
mov r9d, dword [rsp + 0x60]
and qword [rsp + 0x30], 0
mov r8d, edi
and dword [rsp + 0x28], 0
xor edx, edx
mov ecx, 0x1300
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
mov edx, eax
test eax, eax
je 0x140006298
mov r8, qword [rbx]
dec r8
add r8, rdx
movzx ecx, byte [r8]
lea rax, [0x140008680]
cmp byte [rcx + rax], 0
je 0x140006298
dec r8
sub rdx, 1
jne 0x14000627e
mov rbx, qword [rsp + 0x50]
mov rax, rdx
add rsp, 0x40
pop rdi
ret
Function at 0x1400073c0
Capabilities:
Parse pe header

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