joyce8/EMBER2024-capa huggingface dataset:
Function at 0x3bd3b6cc0
Capabilities:
Get thread local storage value

Disassembly:
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
lea rcx, [0x3bd3cdde0]
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x3bd3cddc0]
test rbx, rbx
je 0x3bd3b6d14
mov rdi, qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [rbx]
call rdi
mov r12, rax
call rsi
test eax, eax
jne 0x3bd3b6d0b
test r12, r12
je 0x3bd3b6d0b
mov rax, qword [rbx + 8]
mov rcx, r12
call rax
mov rbx, qword [rbx + 0x10]
test rbx, rbx
jne 0x3bd3b6cf0
lea rcx, [0x3bd3cdde0]
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x3bd3b7050
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r10, qword [0x3bd3c4070]
xor r8d, r8d
cmp word [r10], 0x5a4d
mov r9, rcx
jne 0x3bd3b70c9
mov rcx, r10
call fcn.3bd3b6f20
test eax, eax
je 0x3bd3b70c9
movsxd rax, dword [r10 + 0x3c]
mov rcx, r9
sub rcx, r10
add r10, rax
movzx eax, word [r10 + 0x14]
lea r8, [r10 + rax + 0x18]
movzx eax, word [r10 + 6]
test eax, eax
je 0x3bd3b70c6
sub eax, 1
lea rax, [rax + rax*4]
lea r9, [r8 + rax*8 + 0x28]
nop dword [rax]
mov edx, dword [r8 + 0xc]
mov rax, rdx
cmp rcx, rdx
jb 0x3bd3b70bd
add eax, dword [r8 + 8]
cmp rcx, rax
jb 0x3bd3b70c9
add r8, 0x28
cmp r8, r9
jne 0x3bd3b70a8
xor r8d, r8d
mov rax, r8
add rsp, 0x28
ret

Function at 0x3bd3b7440
Capabilities:
Allocate thread local storage

Disassembly:
sub rsp, 0x28
xor ecx, ecx
xor r9d, r9d
mov r8d, 0xffff
mov dword [0x3bd3cde60], 0xffffffff
xor edx, edx
call qword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov qword [0x3bd3cde68], rax
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov ecx, eax
cmp eax, 0xffffffff
je 0x3bd3b7490
lea rdx, [0x3bd3b7350]
mov dword [0x3bd3cde58], eax
call fcn.3bd3bcd60
test eax, eax
jne 0x3bd3b7498
add rsp, 0x28
ret
call qword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x3bd3b7487
call sub.msvcrt.dll_abort
nop
nop
Function at 0x3bd3b74a0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r14
push r13
push r12
push rdi
push rsi
push rbx
sub rsp, 0x28
mov r13, qword [0x3bd3c3fd0]
mov r11d, dword [r13]
mov r12, rcx
test r11d, r11d
jne 0x3bd3b74e0
mov rax, qword [rcx + 0x10]
test rax, rax
je 0x3bd3b7548
add rsp, 0x28
pop rbx
pop rsi
pop rdi
pop r12
pop r13
pop r14
ret
mov rsi, qword [rcx + 0x10]
test rsi, rsi
je 0x3bd3b7560
mov r13d, dword [0x3bd3cde58]
mov rdi, qword [sym.imp.KERNEL32.dll_GetLastError]
call rdi
mov r14d, eax
mov ecx, r13d
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, r14d
mov r13, rax
call qword [sym.imp.KERNEL32.dll_SetLastError]
test r13, r13
je 0x3bd3b75d8
mov rbx, qword [r13]
cmp rbx, rsi
jb 0x3bd3b7620
sub rsi, 1
mov rax, qword [r13 + rsi*8 + 8]
test rax, rax
jne 0x3bd3b74c9
mov rcx, r12
call fcn.3bd3b73a0
mov qword [r13 + rsi*8 + 8], rax
jmp 0x3bd3b74c9
call fcn.3bd3b73a0
mov qword [r12 + 0x10], rax
jmp 0x3bd3b74c9
mov r10d, dword [r13]
test r10d, r10d
je 0x3bd3b7682
mov r9d, dword [0x3bd3bf2d0]
test r9d, r9d
je 0x3bd3b76b0
lock add dword [0x3bd3cde60], 1
jne 0x3bd3b76e4
mov rsi, qword [r12 + 0x10]
test rsi, rsi
je 0x3bd3b7690
mov eax, dword [r13]
test eax, eax
je 0x3bd3b74e9
mov eax, 0xffffffff
lock xadd dword [0x3bd3cde60], eax
sub eax, 1
js 0x3bd3b74e9
mov rcx, qword [0x3bd3cde68]
xor r8d, r8d
mov edx, 1
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x3bd3b74e9
lea rcx, [rsi + 0x21]
mov edx, 8
lea rbx, [rsi + 0x20]
call sub.msvcrt.dll_calloc
mov r13, rax
test rax, rax
je 0x3bd3b770b
mov qword [rax], rbx
mov ecx, dword [0x3bd3cde58]
mov rdx, r13
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
jne 0x3bd3b7527
call rdi
jmp 0x3bd3b7527
lea r14, [rbx + rbx]
lea rax, [rsi + 0x20]
mov rcx, r13
cmp rsi, r14
cmova r14, rax
lea rdx, [r14*8 + 8]
call sub.msvcrt.dll_realloc
mov r13, rax
test rax, rax
je 0x3bd3b770b
mov qword [rax], r14
sub r14, rbx
lea rcx, [rax + rbx*8 + 8]
xor edx, edx
lea r8, [r14*8]
call sub.msvcrt.dll_memset
jmp 0x3bd3b75f9
call fcn.3bd3b7440
mov dword [0x3bd3bf2d0], 1
mov edx, dword [r13]
test edx, edx
jne 0x3bd3b757d
mov rsi, qword [r12 + 0x10]
test rsi, rsi
jne 0x3bd3b74e9
mov rax, qword [0x3bd3cde50]
lea rsi, [rax + 1]
mov qword [0x3bd3cde50], rsi
mov qword [r12 + 0x10], rsi
jmp 0x3bd3b7599
lock add dword [0x3bd3bf2d4], 1
je 0x3bd3b7667
mov r8d, dword [0x3bd3bf2d0]
mov rsi, qword [sym.imp.KERNEL32.dll_Sleep]
lea rbx, [0x3bd3bf2d0]
test r8d, r8d
jne 0x3bd3b7676
nop dword [rax]
xor ecx, ecx
call rsi
mov ecx, dword [rbx]
test ecx, ecx
je 0x3bd3b76d8
jmp 0x3bd3b7676
mov rcx, qword [0x3bd3cde68]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x3bd3b758b
lock sub dword [0x3bd3cde60], 1
jmp 0x3bd3b758b
call sub.msvcrt.dll_abort
nop
nop word cs:[rax + rax]
nop dword [rax]
cmp qword [rcx], rdx
jae 0x3bd3b7730
mov qword [rcx], rdx
mov qword [rcx + 0x18], 0
cmp qword [rcx + 8], r8
jae 0x3bd3b773a
mov qword [rcx + 8], r8
test r9, r9
je 0x3bd3b7744
cmp qword [rcx], rdx
je 0x3bd3b7748
ret
mov qword [rcx + 0x18], r9
ret
Function at 0x1400c2f0a
Capabilities:
Hash data using fnv

Disassembly:
jmp 0x14012a4f0
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x18
mov qword [rsp], 0
jmp 0x14012a518
mov rax, qword [rsp]
inc rax
mov qword [rsp], rax
mov rax, qword [rsp + 0x30]
cmp qword [rsp], rax
jae 0x14012a562
mov rax, qword [rsp]
mov rcx, qword [rsp + 0x28]
add rcx, rax
mov rax, rcx
movzx eax, byte [rax]
mov rcx, qword [rsp + 0x20]
xor rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
movabs rax, 0x100000001b3
mov rcx, qword [rsp + 0x20]
imul rcx, rax
mov rax, rcx
mov qword [rsp + 0x20], rax
jmp 0x14012a50d
mov rax, qword [rsp + 0x20]
add rsp, 0x18
ret
Function at 0x1400c46a2
Capabilities:
Encode data using xor

Disassembly:
jmp 0x1401cf050
mov rax, rcx
neg rcx
test rax, 7
je 0x1401cf06d
nop
mov dl, byte [rax]
inc rax
test dl, dl
je 0x1401cf0c8
test al, 7
jne 0x1401cf060
movabs r8, 0x7efefefefefefeff
movabs r11, 0x8101010101010100
mov rdx, qword [rax]
mov r9, r8
add rax, 8
add r9, rdx
not rdx
xor rdx, r9
and rdx, r11
je 0x1401cf081
mov rdx, qword [rax - 8]
test dl, dl
je 0x1401cf0f2
test dh, dh
je 0x1401cf0ec
shr rdx, 0x10
test dl, dl
je 0x1401cf0e6
test dh, dh
je 0x1401cf0e0
shr rdx, 0x10
test dl, dl
je 0x1401cf0da
test dh, dh
je 0x1401cf0d4
shr edx, 0x10
test dl, dl
je 0x1401cf0ce
test dh, dh
jne 0x1401cf081
lea rax, [rax + rcx - 1]
ret
lea rax, [rax + rcx - 2]
ret
lea rax, [rax + rcx - 3]
ret
lea rax, [rax + rcx - 4]
ret
lea rax, [rax + rcx - 5]
ret
lea rax, [rax + rcx - 6]
ret
lea rax, [rax + rcx - 7]
ret
lea rax, [rax + rcx - 8]
ret

Function at 0x1400c46d9
Capabilities:
Query environment variable

Disassembly:
jmp 0x14022aa10
sub rsp, 0x78
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x20]
call fcn.14022a590
lea rcx, [rsp + 0x20]
call fcn.14022a5e0
movzx eax, al
test eax, eax
jne 0x14022aa55
mov qword [rsp + 0x40], 0
lea rcx, [rsp + 0x20]
call fcn.14022a5c0
mov rax, qword [rsp + 0x40]
jmp 0x14022ab4f
lea rcx, [rsp + 0x20]
call fcn.14022a6e0
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x30]
call fcn.14022a680
mov qword [rsp + 0x48], rax
mov rax, qword [rsp + 0x30]
mov rcx, qword [rsp + 0x48]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r9d, 0x40
lea r8, [0x14028aae0]
mov edx, 2
mov rcx, rax
call fcn.1400c4a9e
mov rdx, rax
lea rcx, [rsp + 0x28]
call fcn.1400c4017
lea rcx, [rsp + 0x28]
call fcn.1400c4fe4
movzx eax, al
test eax, eax
jne 0x14022aaef
mov qword [rsp + 0x50], 0
lea rcx, [rsp + 0x28]
call fcn.1400c65b5
lea rcx, [rsp + 0x20]
call fcn.14022a5c0
mov rax, qword [rsp + 0x50]
jmp 0x14022ab4f
lea rcx, [rsp + 0x20]
call fcn.14022a6e0
mov qword [rsp + 0x58], rax
lea rcx, [rsp + 0x28]
call fcn.1400c762c
mov qword [rsp + 0x60], rax
mov rax, qword [rsp + 0x38]
shl rax, 1
mov r8, rax
mov rdx, qword [rsp + 0x58]
mov rcx, qword [rsp + 0x60]
call fcn.1400c49c2
lea rcx, [rsp + 0x28]
call fcn.1400c801d
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x28]
call fcn.1400c65b5
lea rcx, [rsp + 0x20]
call fcn.14022a5c0
mov rax, qword [rsp + 0x68]
add rsp, 0x78
ret
Function at 0x1400c4c60
Capabilities:
Get thread local storage value

Disassembly:
jmp 0x14017a610
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140179f90
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14017a64f
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402cf020]
jmp 0x14017a659
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
add rsp, 0x48
ret

Function at 0x1400c4ebd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp 0x1400f0d70
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x168
lea rbp, [rsp + 0x20]
lea rcx, [0x1402ce7ce]
call fcn.1400c7735
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rbp + 8], rax
mov r8, qword [rbp + 0x170]
mov rdx, qword [rbp + 0x168]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_FindResourceA]
mov qword [rbp + 0x28], rax
cmp qword [rbp + 0x28], 0
jne 0x1400f0ddc
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.FindResourceA_failed
call fcn.1400c4d50
mov rdx, qword [rbp + 0x28]
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_LoadResource]
mov qword [rbp + 0x48], rax
cmp qword [rbp + 0x48], 0
jne 0x1400f0e09
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LoadResource_failed
call fcn.1400c4d50
mov rcx, qword [rbp + 0x48]
call qword [sym.imp.KERNEL32.dll_LockResource]
mov qword [rbp + 0x68], rax
cmp qword [rbp + 0x68], 0
jne 0x1400f0e32
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str.LockResource_failed
call fcn.1400c4d50
mov rdx, qword [rbp + 0x28]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov rcx, qword [rbp + 0x160]
mov dword [rcx], eax
mov rax, qword [rbp + 0x68]
lea rsp, [rbp + 0x148]
pop rdi
pop rbp
ret
Function at 0x1400c4f03
Capabilities:
Query environment variable

Disassembly:
jmp 0x14022a760
sub rsp, 0xb8
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov rdx, rax
lea rcx, [rsp + 0x40]
call fcn.14022a590
lea rcx, [rsp + 0x40]
call fcn.14022a710
movzx eax, al
test eax, eax
jne 0x14022a7a8
mov qword [rsp + 0x70], 0
lea rcx, [rsp + 0x40]
call fcn.14022a5c0
mov rax, qword [rsp + 0x70]
jmp 0x14022a979
lea rcx, [rsp + 0x40]
call fcn.14022a6e0
mov qword [rsp + 0x60], rax
mov rcx, qword [rsp + 0x60]
call fcn.14022a680
mov qword [rsp + 0x78], rax
mov rax, qword [rsp + 0x60]
mov rcx, qword [rsp + 0x78]
sub rcx, rax
mov rax, rcx
sar rax, 1
mov qword [rsp + 0x68], rax
lea rcx, [rsp + 0x40]
call fcn.14022a6e0
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
mov r9d, dword [rsp + 0x68]
mov r8, rax
xor edx, edx
xor ecx, ecx
call fcn.1400c61a5
cdqe
mov qword [rsp + 0x58], rax
cmp qword [rsp + 0x58], 0
jne 0x14022a84e
mov qword [rsp + 0x80], 0
lea rcx, [rsp + 0x40]
call fcn.14022a5c0
mov rax, qword [rsp + 0x80]
jmp 0x14022a979
mov r9d, 0x66
lea r8, [0x14028aae0]
mov edx, 2
mov rcx, qword [rsp + 0x58]
call fcn.1400c4a9e
mov rdx, rax
lea rcx, [rsp + 0x48]
call fcn.1400c484b
lea rcx, [rsp + 0x48]
call fcn.1400c4242
movzx eax, al
test eax, eax
jne 0x14022a8b5
mov qword [rsp + 0x88], 0
lea rcx, [rsp + 0x48]
call fcn.1400c2d75
lea rcx, [rsp + 0x40]
call fcn.14022a5c0
mov rax, qword [rsp + 0x88]
jmp 0x14022a979
lea rcx, [rsp + 0x48]
call fcn.1400c541c
mov qword [rsp + 0x90], rax
lea rcx, [rsp + 0x40]
call fcn.14022a6e0
mov qword [rsp + 0x98], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov eax, dword [rsp + 0x58]
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x90]
mov qword [rsp + 0x20], rax
mov r9d, dword [rsp + 0x68]
mov r8, qword [rsp + 0x98]
xor edx, edx
xor ecx, ecx
call fcn.1400c61a5
mov dword [rsp + 0x50], eax
cmp dword [rsp + 0x50], 0
jne 0x14022a94b
mov qword [rsp + 0xa0], 0
lea rcx, [rsp + 0x48]
call fcn.1400c2d75
lea rcx, [rsp + 0x40]
call fcn.14022a5c0
mov rax, qword [rsp + 0xa0]
jmp 0x14022a979
lea rcx, [rsp + 0x48]
call fcn.1400c4800
mov qword [rsp + 0xa8], rax
lea rcx, [rsp + 0x48]
call fcn.1400c2d75
lea rcx, [rsp + 0x40]
call fcn.14022a5c0
mov rax, qword [rsp + 0xa8]
add rsp, 0xb8
ret

Function at 0x1400c4f1c
Capabilities:
Allocate thread local storage

Disassembly:
jmp 0x14017a540
mov qword [rsp + 8], rcx
sub rsp, 0x48
call fcn.140179f10
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14017a581
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rcx, qword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402cf020]
jmp 0x14017a587
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
add rsp, 0x48
ret
Function at 0x1400c4ff3
Capabilities:
Get geographical location

Disassembly:
jmp 0x14020c620
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov dword [rsp + 0x10], edx
mov qword [rsp + 8], rcx
sub rsp, 0x58
call fcn.14020b550
mov qword [rsp + 0x30], rax
cmp qword [rsp + 0x30], 0
je 0x14020c687
mov rax, qword [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x40], rax
movabs r10, 0xe375262d7cd44270
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov rcx, qword [rsp + 0x60]
mov rax, qword [rsp + 0x40]
call qword [0x1402cf030]
jmp 0x14020c6a9
xor edx, edx
mov rcx, qword [rsp + 0x60]
call fcn.1400c41b6
mov r9d, dword [rsp + 0x78]
mov r8, qword [rsp + 0x70]
mov edx, dword [rsp + 0x68]
mov ecx, eax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
add rsp, 0x58
ret

Function at 0x1400c5007
Capabilities:
Terminate process

Disassembly:
jmp 0x140157410
mov qword [rsp + 8], rcx
sub rsp, 0x28
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
mov rcx, qword [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400c53b3
Capabilities:
Print debug messages

Disassembly:
jmp 0x140238cd0
mov qword [rsp + 8], rcx
push rbp
sub rsp, 0x50
lea rbp, [rsp + 0x30]
mov rax, qword [0x1402b1058]
xor rax, rbp
mov qword [rbp + 0x18], rax
cmp qword [rbp + 0x30], 0
jne 0x140238cf6
jmp 0x140238d73
mov rcx, qword [rbp + 0x30]
call fcn.1400c46a2
inc rax
mov qword [rbp], rax
cmp qword [rbp], 0
jne 0x140238d0f
jmp 0x140238d73
mov rax, qword [rbp]
shl rax, 1
mov rcx, rax
add rcx, 0xf
cmp rcx, rax
ja 0x140238d2c
movabs rcx, 0xffffffffffffff0
and rcx, 0xfffffffffffffff0
mov rax, rcx
call fcn.1400c2faa
sub rsp, rax
lea rax, [rsp + 0x30]
mov qword [rbp + 8], rax
mov rax, qword [rbp]
dec rax
mov qword [rsp + 0x20], rax
mov r9, qword [rbp + 0x30]
mov r8, qword [rbp]
mov rdx, qword [rbp + 8]
lea rcx, [rbp + 0x10]
call fcn.1400c3603
test eax, eax
jne 0x140238d73
mov rcx, qword [rbp + 8]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rbp + 0x18]
xor rcx, rbp
call fcn.1400c499a
lea rsp, [rbp + 0x20]
pop rbp
ret

Function at 0x1400c56ba
Capabilities:
Enumerate process modules

Disassembly:
jmp 0x1400e1000
mov qword [rsp + 8], rcx
push rbp
push rdi
mov eax, 0x1938
call fcn.1400c2faa
sub rsp, rax
lea rbp, [rsp + 0x20]
lea rdi, [rsp + 0x20]
mov ecx, 0x4c6
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x1958]
mov rax, qword [0x1402b1058]
xor rax, rbp
mov qword [rbp + 0x1908], rax
lea rcx, [0x1402ce419]
call fcn.1400c7735
lea rax, [rbp + 0x10]
mov rdi, rax
xor eax, eax
mov ecx, 0x1000
rep stosb byte [rdi], al
mov dword [rbp + 0x1024], 0
lea r8, [rbp + 0x1024]
mov edx, 0x1000
lea rcx, [rbp + 0x10]
call fcn.1400c43a5
test eax, eax
jne 0x1400e1089
xor eax, eax
jmp 0x1400e1183
mov eax, dword [rbp + 0x1024]
xor edx, edx
mov ecx, 4
div rcx
mov dword [rbp + 0x1044], eax
mov dword [rbp + 0x1064], 0
jmp 0x1400e10b9
mov eax, dword [rbp + 0x1064]
inc eax
mov dword [rbp + 0x1064], eax
mov eax, dword [rbp + 0x1044]
cmp dword [rbp + 0x1064], eax
jae 0x1400e1181
movsxd rax, dword [rbp + 0x1064]
mov r8d, dword [rbp + rax*4 + 0x10]
xor edx, edx
mov ecx, 0x1000
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov qword [rbp + 0x1088], rax
cmp qword [rbp + 0x1088], 0
je 0x1400e117c
mov dword [rbp + 0x10a4], 0x104
lea rax, [rbp + 0x10d0]
mov rdi, rax
xor eax, eax
mov ecx, 0x208
rep stosb byte [rdi], al
lea r9, [rbp + 0x10a4]
lea r8, [rbp + 0x10d0]
xor edx, edx
mov rcx, qword [rbp + 0x1088]
call qword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x1400e1163
mov rcx, qword [rbp + 0x1930]
call fcn.1400c3da6
lea rdx, [rbp + 0x10d0]
mov rcx, rax
call fcn.1400c7541
test eax, eax
jne 0x1400e1163
movsxd rax, dword [rbp + 0x1064]
mov eax, dword [rbp + rax*4 + 0x10]
jmp 0x1400e1183
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x12f4], eax
mov rcx, qword [rbp + 0x1088]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1400e10ab
xor eax, eax
mov rdi, rax
lea rcx, [rbp - 0x20]
lea rdx, [0x14025f2a0]
call fcn.1400c6808
mov rax, rdi
mov rcx, qword [rbp + 0x1908]
xor rcx, rbp
call fcn.1400c499a
lea rsp, [rbp + 0x1918]
pop rdi
pop rbp
ret
Function at 0x1400c583b
Capabilities:
Set environment variable

Disassembly:
jmp 0x14022c8c0
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x38]
mov rdx, qword [rax]
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
add rsp, 0x28
ret
Function at 0x1400c5bb5
Capabilities:
Parse pe header

Disassembly:
jmp 0x140158b20
sub rsp, 0x38
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
jne 0x140158b40
xor al, al
jmp 0x140158bc1
mov rax, qword [rsp + 0x20]
movzx eax, word [rax]
cmp eax, 0x5a4d
je 0x140158b53
xor al, al
jmp 0x140158bc1
mov rax, qword [rsp + 0x20]
movsxd rax, dword [rax + 0x3c]
mov rcx, qword [rsp + 0x20]
add rcx, rax
mov rax, rcx
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
cmp dword [rax], 0x4550
je 0x140158b7d
xor al, al
jmp 0x140158bc1
mov rax, qword [rsp + 0x28]
movzx eax, word [rax + 0x18]
cmp eax, 0x20b
je 0x140158b91
xor al, al
jmp 0x140158bc1
mov rax, qword [rsp + 0x28]
cmp dword [rax + 0x84], 0xe
ja 0x140158ba3
xor al, al
jmp 0x140158bc1
mov eax, 8
imul rax, rax, 0xe
mov rcx, qword [rsp + 0x28]
cmp dword [rcx + rax + 0x88], 0
jne 0x140158bbf
xor al, al
jmp 0x140158bc1
mov al, 1
add rsp, 0x38
ret
Function at 0x1400c647f
Capabilities:
Terminate process

Disassembly:
jmp 0x14017b5e0
mov dword [rsp + 0x20], r9d
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov ecx, 0x17
call qword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x14017b60e
mov ecx, 5
int 0x29
mov r8d, 1
mov edx, 0xc0000417
mov ecx, 2
call fcn.1400c70e6
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000417
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x28
ret
Function at 0x1400c6a6a
Capabilities:
Acquire debug privileges

Disassembly:
jmp 0x1400f0af0
push rbp
push rdi
sub rsp, 0xe8
lea rbp, [rsp + 0x20]
lea rcx, [0x1402ce7ce]
call fcn.1400c7735
lea rcx, [0x140264638]
call fcn.1400c44c2
lea rsp, [rbp + 0xc8]
pop rdi
pop rbp
ret
Function at 0x1400c7168
Capabilities:
Print debug messages

Disassembly:
jmp 0x140209c70
mov qword [rsp + 8], rcx
sub rsp, 0x28
mov rax, qword [rsp + 0x30]
mov rcx, qword [rax]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
add rsp, 0x28
ret
Function at 0x1400c72da
Capabilities:
Set thread local storage value

Disassembly:
jmp 0x14017a680
mov qword [rsp + 0x10], rdx
mov dword [rsp + 8], ecx
sub rsp, 0x48
call fcn.140179fd0
mov qword [rsp + 0x20], rax
cmp qword [rsp + 0x20], 0
je 0x14017a6c9
mov rax, qword [rsp + 0x20]
mov qword [rsp + 0x28], rax
mov rax, qword [rsp + 0x28]
mov qword [rsp + 0x30], rax
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
mov rax, qword [rsp + 0x30]
call qword [0x1402cf020]
jmp 0x14017a6d8
mov rdx, qword [rsp + 0x58]
mov ecx, dword [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
add rsp, 0x48
ret

Function at 0x1400c73ed
Capabilities:
Set environment variable

Disassembly:
jmp 0x140245560
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
sub rsp, 0xb8
lea rcx, [rsp + 0x78]
call fcn.1400c3fc7
lea rcx, [rsp + 0x48]
call fcn.1400c3fc7
call fcn.1400c4e68
mov r8d, eax
lea rdx, [rsp + 0x78]
mov rcx, qword [rsp + 0xc0]
call fcn.1400c3c89
mov dword [rsp + 0x20], eax
cmp dword [rsp + 0x20], 0
je 0x1402455cf
mov dword [rsp + 0x24], 0
lea rcx, [rsp + 0x48]
call fcn.1400c453a
lea rcx, [rsp + 0x78]
call fcn.1400c453a
mov eax, dword [rsp + 0x24]
jmp 0x140245660
call fcn.1400c4e68
mov r8d, eax
lea rdx, [rsp + 0x48]
mov rcx, qword [rsp + 0xc8]
call fcn.1400c3c89
mov dword [rsp + 0x28], eax
cmp dword [rsp + 0x28], 0
je 0x140245616
mov dword [rsp + 0x2c], 0
lea rcx, [rsp + 0x48]
call fcn.1400c453a
lea rcx, [rsp + 0x78]
call fcn.1400c453a
mov eax, dword [rsp + 0x2c]
jmp 0x140245660
lea rcx, [rsp + 0x48]
call fcn.1400c3edc
mov qword [rsp + 0x38], rax
lea rcx, [rsp + 0x78]
call fcn.1400c3edc
mov qword [rsp + 0x40], rax
mov rdx, qword [rsp + 0x38]
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov dword [rsp + 0x30], eax
lea rcx, [rsp + 0x48]
call fcn.1400c453a
lea rcx, [rsp + 0x78]
call fcn.1400c453a
mov eax, dword [rsp + 0x30]
add rsp, 0xb8
ret
Function at 0x1400c77e9
Capabilities:
Create directory
Write file on windows

Disassembly:
jmp 0x1400f08a0
mov qword [rsp + 0x20], r9
mov qword [rsp + 0x18], r8
mov qword [rsp + 0x10], rdx
mov qword [rsp + 8], rcx
push rbp
push rdi
sub rsp, 0x1e8
lea rbp, [rsp + 0x40]
lea rdi, [rsp + 0x40]
mov ecx, 0x3a
mov eax, 0xcccccccc
rep stosd dword [rdi], eax
mov rcx, qword [rsp + 0x208]
mov rax, qword [0x1402b1058]
xor rax, rbp
mov qword [rbp + 0x198], rax
lea rcx, [0x1402ce7ce]
call fcn.1400c7735
mov rcx, qword [rbp + 0x1c0]
call fcn.1400c3da6
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov dword [rbp + 4], eax
cmp dword [rbp + 4], 0
jne 0x1400f0939
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [rbp + 0x24], eax
cmp dword [rbp + 0x24], 0xb7
je 0x1400f0939
mov edx, dword [rbp + 0x24]
lea rcx, str._DropResource____CreateDirectoryW_failed
call fcn.1400c4d50
mov dword [rbp + 0x44], 0
mov r8, qword [rbp + 0x1d8]
mov rdx, qword [rbp + 0x1d0]
lea rcx, [rbp + 0x44]
call fcn.1400c4ebd
mov qword [rbp + 0x68], rax
mov rdx, qword [rbp + 0x1c0]
lea rcx, [rbp + 0x88]
call fcn.1400c216d
nop
lea rdx, [0x140261b34]
lea rcx, [rbp + 0x88]
call fcn.1400c73c0
mov rdx, qword [rbp + 0x1c8]
lea rcx, [rbp + 0x88]
call fcn.1400c3a2c
lea rcx, [rbp + 0x88]
call fcn.1400c3da6
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov qword [rbp + 0xc8], rax
cmp qword [rbp + 0xc8], 0xffffffffffffffff
jne 0x1400f09f3
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._DropResource____CreateFileW_failed
call fcn.1400c4d50
mov qword [rsp + 0x20], 0
xor r9d, r9d
mov r8d, dword [rbp + 0x44]
mov rdx, qword [rbp + 0x68]
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [rbp + 4], eax
mov rcx, qword [rbp + 0xc8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [rbp + 4], 0
jne 0x1400f0a3f
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea rcx, str._DropResource____WriteFile_failed
call fcn.1400c4d50
nop
lea rcx, [rbp + 0x88]
call fcn.1400c6a5b
lea rcx, [rbp - 0x40]
lea rdx, [0x140262c80]
call fcn.1400c6808
mov rcx, qword [rbp + 0x198]
xor rcx, rbp
call fcn.1400c499a
lea rsp, [rbp + 0x1a8]
pop rdi
pop rbp
ret