joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14006f14c
Capabilities:
Check for time delay via gettickcount
Query service status

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x50
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x40], rax
mov esi, r8d
mov rbx, rcx
mov rcx, qword [0x14009b028]
lea r14, [0x14009b028]
lea r15, [0x14008b5b0]
cmp rcx, r14
je 0x14006f1ab
test byte [rcx + 0x1c], 2
je 0x14006f1ab
cmp byte [rcx + 0x19], 5
jb 0x14006f1ab
mov rcx, qword [rcx + 0x10]
mov edx, 0x4c
mov r8, r15
call fcn.140001024
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x14006f204
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14006f1fd
test byte [rcx + 0x1c], 2
je 0x14006f1fd
cmp byte [rcx + 0x19], 2
jb 0x14006f1fd
mov edx, 0x4d
mov rcx, qword [rcx + 0x10]
mov r9d, ebx
mov r8, r15
call fcn.140001050
mov eax, ebx
jmp 0x14006f31c
cmp dword [rsp + 0x24], 1
je 0x14006f31a
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
mov edi, eax
jmp 0x14006f266
mov r9d, dword [rsp + 0x24]
cmp r9d, 1
je 0x14006f31a
cmp r9d, 3
jne 0x14006f2ea
call qword [sym.imp.KERNEL32.dll_GetTickCount]
nop dword [rax + rax]
sub eax, edi
cmp eax, esi
ja 0x14006f2ba
mov eax, dword [rsp + 0x38]
mov ecx, 0x1388
shr eax, 1
cmp eax, ecx
cmovb ecx, eax
call qword [sym.imp.KERNEL32.dll_Sleep]
nop dword [rax + rax]
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
nop dword [rax + rax]
test eax, eax
jne 0x14006f21f
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14006f1fd
test byte [rcx + 0x1c], 2
je 0x14006f1fd
cmp byte [rcx + 0x19], 2
jb 0x14006f1fd
mov edx, 0x4e
jmp 0x14006f1ee
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14006f2e3
test byte [rcx + 0x1c], 2
je 0x14006f2e3
cmp byte [rcx + 0x19], 2
jb 0x14006f2e3
mov rcx, qword [rcx + 0x10]
mov edx, 0x50
mov r8, r15
call fcn.140001024
mov eax, 0x5b4
jmp 0x14006f31c
mov rcx, qword [0x14009b028]
cmp rcx, r14
je 0x14006f313
test byte [rcx + 0x1c], 2
je 0x14006f313
cmp byte [rcx + 0x19], 2
jb 0x14006f313
mov rcx, qword [rcx + 0x10]
mov edx, 0x4f
mov r8, r15
call fcn.140001050
mov eax, 0x426
jmp 0x14006f31c
xor eax, eax
mov rcx, qword [rsp + 0x40]
xor rcx, rsp
call fcn.14007e3c0
lea r11, [rsp + 0x50]
mov rbx, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret
Function at 0x14006f348
Capabilities:
Get common file path

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov ebp, r8d
mov rsi, rdx
mov edi, ecx
xor edx, edx
mov r8d, 0x208
lea rcx, [rsp + 0x30]
xor ebx, ebx
call sub.msvcrt.dll_memset
mov rcx, qword [0x14009b028]
lea r12, [0x14009b028]
cmp rcx, r12
je 0x14006f3b6
test byte [rcx + 0x1c], 2
je 0x14006f3b6
cmp byte [rcx + 0x19], 5
jb 0x14006f3b6
mov rcx, qword [rcx + 0x10]
lea edx, [rbx + 0xa]
lea r8, [0x14008b768]
call fcn.140001024
lea rax, [rsp + 0x30]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x20], rax
mov edx, edi
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetFolderPathW]
nop dword [rax + rax]
mov edi, eax
test eax, eax
jns 0x14006f41d
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14006f40c
test byte [rcx + 0x1c], 2
je 0x14006f40c
cmp byte [rcx + 0x19], 2
jb 0x14006f40c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b768]
mov edx, VariantTimeToDosDateTime
mov r9d, eax
call fcn.140001050
movzx ecx, di
call qword [sym.imp.KERNEL32.dll_SetLastError]
nop dword [rax + rax]
jmp 0x14006f46b
mov rdx, rbp
lea r8, [rsp + 0x30]
mov rcx, rsi
call fcn.140002b44
mov edi, eax
test eax, eax
jns 0x14006f466
mov rcx, qword [0x14009b028]
cmp rcx, r12
je 0x14006f40c
test byte [rcx + 0x1c], 2
je 0x14006f40c
cmp byte [rcx + 0x19], 2
jb 0x14006f40c
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008b768]
movzx r9d, di
mov edx, reloc.OLEAUT32.dll_VariantTimeToDosDateTime
call fcn.140001050
jmp 0x14006f40c
mov ebx, 1
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007e3c0
add rsp, 0x250
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret
Function at 0x14007ad64
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rbp
push rdi
sub rsp, 0x250
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov edi, edx
mov ebx, ecx
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
cmp rcx, rbp
je 0x14007adc0
test byte [rcx + 0x1c], 2
je 0x14007adc0
cmp byte [rcx + 0x19], 5
jb 0x14007adc0
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c4c8]
mov edx, 0x65
call fcn.140001024
mov r9d, ebx
mov dword [rsp + 0x20], edi
lea r8, str._ld:_ld
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.140002ac0
mov ebx, eax
test eax, eax
jns 0x14007ae2c
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007ae13
test byte [rcx + 0x1c], 2
je 0x14007ae13
cmp byte [rcx + 0x19], 2
jb 0x14007ae13
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c4c8]
mov edx, 0x66
mov r9d, eax
call fcn.140001050
mov ecx, ebx
movzx eax, bx
and ecx, 0x1fff0000
cmp ecx, 0x70000
cmove ebx, eax
jmp 0x14007aef1
mov r9d, 0x10000
lea rdx, str.SoftwareMicrosoftFaxOutbound_RoutingRules
xor r8d, r8d
mov rcx, 0xffffffff80000002
call fcn.14006aa3c
mov rdi, rax
test rax, rax
jne 0x14007ae92
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007aef1
test byte [rcx + 0x1c], 2
je 0x14007aef1
cmp byte [rcx + 0x19], 2
jb 0x14007aef1
mov rcx, qword [rcx + 0x10]
lea edx, [rdi + 0x67]
mov r9d, eax
lea r8, [0x14008c4c8]
call fcn.140001050
jmp 0x14007aef1
xor r9d, r9d
lea rdx, [rsp + 0x30]
xor r8d, r8d
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14007aee2
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007aee2
test byte [rcx + 0x1c], 2
je 0x14007aee2
cmp byte [rcx + 0x19], 2
jb 0x14007aee2
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c4c8]
mov edx, 0x68
mov r9d, eax
call fcn.140001050
mov rcx, rdi
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14007e3c0
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x14007b3a8
Capabilities:
Delete registry key

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rbp
push rdi
sub rsp, 0x30
and qword [rsp + 0x48], 0
mov rdi, rcx
mov rcx, qword [0x14009b028]
lea rbp, [0x14009b028]
cmp rcx, rbp
je 0x14007b3f4
test byte [rcx + 0x1c], 2
je 0x14007b3f4
cmp byte [rcx + 0x19], 5
jb 0x14007b3f4
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c4c8]
mov edx, 0x75
call fcn.140001024
lea rax, [rsp + 0x48]
mov r9d, 0x10000
xor r8d, r8d
mov qword [rsp + 0x20], rax
lea rdx, str.SoftwareMicrosoftFaxDevice_Providers
mov rcx, 0xffffffff80000002
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14007b458
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007b4f1
test byte [rcx + 0x1c], 2
je 0x14007b4f1
cmp byte [rcx + 0x19], 2
jb 0x14007b4f1
mov edx, 0x76
mov r9d, eax
jmp 0x14007b4e1
mov rcx, qword [rsp + 0x48]
xor r9d, r9d
xor r8d, r8d
mov rdx, rdi
call qword [sym.imp.ADVAPI32.dll_RegDeleteKeyExW]
nop dword [rax + rax]
mov ebx, eax
test eax, eax
je 0x14007b4ac
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007b4ac
test byte [rcx + 0x1c], 2
je 0x14007b4ac
cmp byte [rcx + 0x19], 2
jb 0x14007b4ac
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c4c8]
mov edx, 0x77
mov dword [rsp + 0x20], eax
mov r9, rdi
call fcn.140001328
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
nop dword [rax + rax]
test eax, eax
je 0x14007b4f1
mov rcx, qword [0x14009b028]
cmp rcx, rbp
je 0x14007b4f1
test byte [rcx + 0x1c], 2
je 0x14007b4f1
cmp byte [rcx + 0x19], 2
jb 0x14007b4f1
mov edx, 0x78
mov r9d, eax
mov rcx, qword [rcx + 0x10]
lea r8, [0x14008c4c8]
call fcn.140001050
mov rbp, qword [rsp + 0x50]
mov eax, ebx
mov rbx, qword [rsp + 0x40]
add rsp, 0x30
pop rdi
ret
Function at 0x14007d804
Capabilities:
Get token membership

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x90
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rbp + 0x47], rax
xor edi, edi
lea rdx, [rbp + 0x27]
mov bl, dil
call qword [sym.imp.RPCRT4.dll_I_RpcBindingIsClientLocal]
nop dword [rax + rax]
test eax, eax
jne 0x14007d908
cmp dword [rbp + 0x27], edi
je 0x14007d908
lea ebx, [rdi + 1]
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
nop dword [rax + rax]
lea r9, [rbp + 0x37]
mov r8d, ebx
mov rcx, rax
lea edx, [rdi + 8]
call qword [sym.imp.ADVAPI32.dll_OpenThreadToken]
nop dword [rax + rax]
test eax, eax
je 0x14007d908
lea rax, [rbp + 0x2f]
mov dword [rbp + 0x3f], edi
mov qword [rsp + 0x50], rax
lea r8d, [rdi + 2]
mov dword [rsp + 0x48], edi
lea rcx, [rbp + 0x3f]
mov dword [rsp + 0x40], edi
xor r9d, r9d
mov dword [rsp + 0x38], edi
mov dl, bl
mov dword [rsp + 0x30], edi
mov dword [rsp + 0x28], edi
mov dword [rsp + 0x20], edi
mov word [rbp + 0x43], 0x500
call qword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
nop dword [rax + rax]
test eax, eax
je 0x14007d8f8
mov rdx, qword [rbp + 0x2f]
lea r8, [rbp + 0x2b]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
nop dword [rax + rax]
test eax, eax
je 0x14007d8e8
cmp dword [rbp + 0x2b], edi
cmovne ebx, edi
mov rcx, qword [rbp + 0x2f]
call qword [sym.imp.ADVAPI32.dll_FreeSid]
nop dword [rax + rax]
mov rcx, qword [rbp + 0x37]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
nop dword [rax + rax]
mov al, bl
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.14007e3c0
lea r11, [rsp + 0x90]
mov rbx, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x14007e120
Capabilities:
Terminate process

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, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x14009f780], rbx
je 0x14007e187
cmp rax, rbx
jne 0x14007e17a
mov ebx, 1
mov esi, ebx
jmp 0x14007e18c
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14007e15f
mov ebx, 1
mov eax, dword [0x14009f788]
cmp eax, ebx
jne 0x14007e1a4
mov edi, 0x1f
mov ecx, edi
call fcn.140133000
jmp 0x14007e210
mov eax, dword [0x14009f788]
test eax, eax
jne 0x14007e205
mov dword [0x14009f788], ebx
lea r15, [0x1400878c0]
lea rdi, [0x1400878a8]
mov qword [rsp + 0x30], rdi
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rdi, r15
jae 0x14007e1f7
test eax, eax
jne 0x14007e1fb
cmp qword [rdi], r14
je 0x14007e1ec
mov rax, qword [rdi]
mov rcx, qword [0x140087880]
call rcx
mov dword [rsp + 0x24], eax
add rdi, 8
mov qword [rsp + 0x30], rdi
jmp 0x14007e1ce
test eax, eax
je 0x14007e20b
mov eax, 0xff
jmp 0x14007e366
mov dword [0x14009ea14], ebx
mov edi, 0x1f
mov eax, dword [0x14009f788]
cmp eax, ebx
jne 0x14007e237
lea rdx, [0x1400878a0]
lea rcx, [0x140087888]
call sub.msvcrt.dll__initterm
mov dword [0x14009f788], 2
test esi, esi
jne 0x14007e245
mov rax, r14
xchg qword [0x14009f780], rax
cmp qword [0x14009f790], r14
je 0x14007e278
lea rcx, [0x14009f790]
call fcn.14007ec70
test eax, eax
je 0x14007e278
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x14009f790]
mov r9, qword [0x140087880]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x14007e291
mov eax, 0xff
jmp 0x14007e366
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x14007e317
test ax, ax
je 0x14007e2ac
test edx, edx
jne 0x14007e317
sub ax, bx
cmp ax, di
ja 0x14007e2c2
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x14007e2ac
test byte [rsp + 0x7c], bl
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140022cac
mov dword [0x14009ea10], eax
cmp dword [0x14009ea30], r14d
jne 0x14007e300
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x14009ea14], r14d
jne 0x14007e315
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x14009ea10]
jmp 0x14007e366
cmp ax, 0x22
jne 0x14007e32b
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x14007e29a
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14007ed04
add rsp, 0x28
jmp 0x14007e120
Function at 0x14007e758
Capabilities:
Print debug messages

Disassembly:
jmp 0x14007e764
push rbx
sub rsp, 0x540
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14007e7e1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14007e801
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14007e3c0
add rsp, 0x540
pop rbx
ret

Function at 0x14007e764
Capabilities:
Print debug messages

Disassembly:
jmp 0x14007e764
push rbx
sub rsp, 0x540
mov rax, qword [0x14009b940]
xor rax, rsp
mov qword [rsp + 0x530], rax
lea rcx, [rsp + 0x60]
call qword [sym.imp.ntdll.dll_RtlCaptureContext]
mov rbx, qword [rsp + 0x158]
lea rdx, [rsp + 0x40]
mov rcx, rbx
xor r8d, r8d
call qword [sym.imp.ntdll.dll_RtlLookupFunctionEntry]
test rax, rax
je 0x14007e7e1
and qword [rsp + 0x38], 0
lea rcx, [rsp + 0x48]
mov rdx, qword [rsp + 0x40]
mov r9, rax
mov qword [rsp + 0x30], rcx
mov r8, rbx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x60]
mov qword [rsp + 0x20], rcx
xor ecx, ecx
call qword [sym.imp.ntdll.dll_RtlVirtualUnwind]
jmp 0x14007e801
mov rax, qword [rsp + 0x548]
mov qword [rsp + 0x158], rax
lea rax, [rsp + 0x548]
mov qword [rsp + 0xf8], rax
lea rcx, str.Invalid_parameter_passed_to_C_runtime_function._n
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov rcx, qword [rsp + 0x530]
xor rcx, rsp
call fcn.14007e3c0
add rsp, 0x540
pop rbx
ret

Function at 0x14007eb5c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x14007eba8
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14007eba0
cmp dword [rcx + 0x3c], edx
jl 0x14007eba0
cmp dword [rcx + 0x3c], 0x10000000
jae 0x14007eba0
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 0x14007eba8
mov rax, rdx
add rsp, 0x18
ret
Function at 0x140001620
Capabilities:
Enumerate process modules

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x170
mov edx, 0x3e
movabs rax, 0x6e776f6e6b6e753c
mov r8d, ecx
mov qword [rsp + 0x60], rax
lea rdi, [rsp + 0x70]
xor eax, eax
mov ecx, 0x1e
mov qword [rsp + 0x68], rdx
xor edx, edx
rep stosq qword [rdi], rax
mov ecx, 0x400
mov dword [rdi], 0
call qword [sym.imp.KERNEL32.dll_OpenProcess]
lea rdx, [rsp + 0x28]
lea r9, [rsp + 0x24]
mov r8d, 8
mov rcx, rax
mov rsi, rax
call sub.KERNEL32.dll_K32EnumProcessModules
test eax, eax
jne 0x140001700
test rsi, rsi
je 0x1400016f0
mov rdi, qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
xor ebx, ebx
lea rbp, [rsp + 0x30]
mov r12d, 0x80000000
jmp 0x1400016bf
mov rax, qword [rsp + 0x48]
add rax, qword [rsp + 0x30]
cmp rax, rbx
je 0x1400016f0
cmp rax, r12
jae 0x1400016f0
mov rbx, rax
mov r9d, 0x30
mov r8, rbp
mov rdx, rbx
mov rcx, rsi
call rdi
cmp dword [rsp + 0x40], 0x40
jne 0x1400016a8
mov rax, qword [rsp + 0x30]
add rsp, 0x170
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
xor eax, eax
add rsp, 0x170
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [rsp + 0x28]
mov r9d, 0x104
lea r8, [rsp + 0x60]
mov rcx, rsi
call sub.KERNEL32.dll_K32GetModuleBaseNameA
jmp 0x14000168a

Function at 0x140001720
Capabilities:
Create thread

Disassembly:
push r13
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x5e8
lea rsi, [0x140004050]
xor ebx, ebx
lea rbp, [rsp + 0x40]
mov r12, rcx
mov r13d, edx
mov ecx, 0x59
mov rdi, rbp
rep movsq qword [rdi], qword [rsi]
lea rsi, [rsp + 0x310]
nop word cs:[rax + rax]
movzx ecx, byte [rbp + rbx]
mov edx, 3
call fcn.140001800
mov byte [rsi + rbx], al
add rbx, 1
cmp rbx, 0x2c8
jne 0x140001760
mov r8d, r13d
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r8, rsi
mov rdx, r12
mov qword [rsp + 0x20], 0
mov rbx, rax
mov r9d, 0x2c8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov r9, r12
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x30], 0
mov rcx, rbx
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateRemoteThread]
nop
add rsp, 0x5e8
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
ret

Function at 0x140001b50
Capabilities:
Write file on windows

Disassembly:
push r12
push rbx
sub rsp, 0x38
mov r12, rcx
lea rax, [rsp + 0x58]
mov ecx, 2
mov qword [rsp + 0x58], rdx
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x68], r9
mov qword [rsp + 0x28], rax
call fcn.140002990
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rsp + 0x28]
mov ecx, 2
call fcn.140002990
mov rdx, r12
mov rcx, rax
mov r8, rbx
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop
nop word [rax + rax]
Function at 0x140001bc0
Capabilities:
Allocate or change rwx memory

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x50
movsxd rbx, dword [0x140008104]
mov r12, rcx
test ebx, ebx
jle 0x140001cf0
mov rax, qword [0x140008108]
xor r9d, r9d
add rax, 0x18
nop dword [rax + rax]
mov r8, qword [rax]
cmp r8, r12
ja 0x140001c0b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp r12, r8
jb 0x140001c95
add r9d, 1
add rax, 0x28
cmp r9d, ebx
jne 0x140001bf0
mov rcx, r12
call fcn.140002640
mov rsi, rax
test rax, rax
je 0x140001d12
mov rax, qword [0x140008108]
lea rbx, [rbx + rbx*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rsi
mov dword [rax], 0
call fcn.140002770
mov edx, dword [rsi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140008108]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001cf7
mov eax, dword [rsp + 0x44]
lea edx, [rax - 0x40]
and edx, 0xffffffbf
je 0x140001c8e
lea edx, [rax - 4]
and edx, 0xfffffffb
jne 0x140001ca0
add dword [0x140008104], 1
add rsp, 0x50
pop rbx
pop rsi
pop r12
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 4
mov eax, 0x40
cmovne r8d, eax
add rbx, qword [0x140008108]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001c8e
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b50
nop dword [rax]
xor ebx, ebx
jmp 0x140001c18
mov rax, qword [0x140008108]
mov edx, dword [rsi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001b50
mov rdx, r12
lea rcx, str.Address__p_has_no_image_section
call fcn.140001b50
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x140002290
Capabilities:
Get thread local storage value

Disassembly:
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r13, [0x140008160]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x140008140]
test rbx, rbx
je 0x1400022ec
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x1400022e3
test r12, r12
je 0x1400022e3
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x1400022c8
mov rcx, r13
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop r12
pop r13
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002640
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400046b0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002660
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002668
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002660
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x1400026b5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400026ac
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002660
add rax, 0x28
cmp rax, r9
jne 0x140002698
xor eax, eax
ret

Function at 0x1400026c0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400046b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x1400026e0
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x1400026e8
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400026e0
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x140002770
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400046b0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x140002790
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x140002798
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x140002a90
Capabilities:
Enumerate process modules

Disassembly:
push rbp
mov eax, 0x1038
push rdi
push rsi
push rbx
call fcn.140002900
sub rsp, rax
call fcn.140001940
lea rbp, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea r8, [rsp + 0x2c]
mov edx, 0x1000
mov rcx, rbp
mov edi, eax
call sub.KERNEL32.dll_K32EnumProcesses
mov esi, dword [rsp + 0x2c]
shr esi, 2
je 0x140002b05
mov esi, esi
xor ebx, ebx
jmp 0x140002ae1
add rbx, 1
cmp rsi, rbx
je 0x140002b05
mov ecx, dword [rbp + rbx*4]
cmp ecx, edi
je 0x140002ad8
test ecx, ecx
je 0x140002ad8
call fcn.140001620
test rax, rax
je 0x140002ad8
mov ebx, ebx
mov rcx, rax
mov edx, dword [rsp + rbx*4 + 0x30]
call fcn.140001720
mov ecx, 0x2710
call qword [sym.imp.KERNEL32.dll_Sleep]
xor eax, eax
add rsp, 0x1038
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x140add000
Capabilities:
Decompress data using aplib

Disassembly:
jmp 0x140add00a
jmp 0x140adf00f
jmp fcn.140774058