joyce8/EMBER2024-capa huggingface dataset:
Function at 0x140001001
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x28
mov rax, qword [0x140006160]
mov rcx, qword [0x140006110]
xor edx, edx
mov dword [rax], 1
mov rax, qword [0x140006170]
cmp word [rcx], 0x5a4d
mov dword [rax], 1
mov rax, qword [0x140006180]
mov dword [rax], 1
jne 0x140001083
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001083
mov ecx, dword [rax + 0x18]
cmp cx, 0x10b
je 0x14000105e
cmp cx, 0x20b
je 0x14000106d
jmp 0x140001083
cmp dword [rax + 0x74], 0xe
jbe 0x140001083
cmp dword [rax + 0xe8], 0
jmp 0x14000107d
cmp dword [rax + 0x84], 0xe
jbe 0x140001083
cmp dword [rax + 0xf8], 0
setne dl
movzx edx, dl
mov rax, qword [0x140006150]
mov dword [0x14000900c], edx
mov ecx, 2
cmp dword [rax], 0
jne 0x14000109f
mov ecx, 1
call sym.__set_app_type
call sym.__p__fmode
mov rdx, qword [0x140006220]
mov edx, dword [rdx]
mov dword [rax], edx
call sym.__p__commode
mov rdx, qword [0x140006200]
mov edx, dword [rdx]
mov dword [rax], edx
call sym._setargv
mov rax, qword [0x1400060c0]
cmp dword [rax], 1
jne 0x1400010e1
mov rcx, qword [sym._matherr]
call sym.__mingw_setusermatherr
xor eax, eax
add rsp, 0x28
ret

Function at 0x140001b60
Capabilities:
Get thread local storage value

Disassembly:
push rdi
push rsi
push rbx
sub rsp, 0x20
lea rdi, [0x140009100]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov rbx, qword [0x1400090e0]
test rbx, rbx
je 0x140001bac
mov ecx, dword [rbx]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
test rsi, rsi
je 0x140001ba6
test eax, eax
jne 0x140001ba6
mov rax, qword [rbx + 8]
mov rcx, rsi
call rax
mov rbx, qword [rbx + 0x10]
jmp 0x140001b7e
mov rcx, rdi
add rsp, 0x20
pop rbx
pop rsi
pop rdi
jmp qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]

Function at 0x140001d60
Capabilities:
Parse pe header

Disassembly:
xor eax, eax
cmp word [rcx], 0x5a4d
jne 0x140001d83
movsxd rdx, dword [rcx + 0x3c]
add rcx, rdx
cmp dword [rcx], 0x4550
jne 0x140001d83
xor eax, eax
cmp word [rcx + 0x18], 0x20b
sete al
ret

Function at 0x140001d84
Capabilities:
Enumerate pe sections

Disassembly:
xor r8d, r8d
movsxd rax, dword [rcx + 0x3c]
add rcx, rax
movzx eax, word [rcx + 0x14]
movzx r9d, word [rcx + 6]
lea rax, [rcx + rax + 0x18]
cmp r8d, r9d
jae 0x140001dbe
mov r10d, dword [rax + 0xc]
mov rcx, r10
cmp rdx, r10
jb 0x140001db5
add ecx, dword [rax + 8]
cmp rdx, rcx
jb 0x140001dc0
inc r8d
add rax, 0x28
jmp 0x140001d9c
xor eax, eax
ret

Function at 0x140001e31
Capabilities:
Enumerate pe sections

Disassembly:
sub rsp, 0x28
mov r9, qword [0x140006110]
mov r8, rcx
mov rcx, r9
call sym._ValidateImageBase
test eax, eax
je 0x140001e5d
mov rdx, r8
mov rcx, r9
sub rdx, r9
add rsp, 0x28
jmp sym._FindPESection
xor eax, eax
add rsp, 0x28
ret
Function at 0x1400014f0
Capabilities:
Get common file path

Disassembly:
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x160
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov rdi, rcx
mov qword [rsp + 0x38], rcx
lea rax, [rsp + 0x40]
xor ecx, ecx
xor r9d, r9d
mov qword [rsp + 0x20], rax
xor r8d, r8d
mov edx, 0x1c
xor esi, esi
call qword [sym.imp.SHELL32.dll_SHGetFolderPathA]
xorps xmm0, xmm0
movups xmmword [rdi], xmm0
mov qword [rdi + 0x10], rsi
test eax, eax
js 0x14000167a
mov qword [rsp + 0x178], rbx
lea rax, [rsp + 0x40]
mov qword [rsp + 0x180], rbp
mov rbx, 0xffffffffffffffff
mov qword [rdi + 0x18], rsi
nop dword [rax + rax]
inc rbx
cmp byte [rax + rbx], sil
jne 0x140001570
movabs rbp, 0x7fffffffffffffff
cmp rbx, rbp
ja 0x14000168a
cmp rbx, 0xf
ja 0x1400015b7
mov r8, rbx
mov qword [rdi + 0x10], rbx
lea rdx, [rsp + 0x40]
mov qword [rdi + 0x18], 0xf
mov rcx, rdi
call sub.VCRUNTIME140.dll_memcpy
mov byte [rdi + rbx], sil
jmp 0x140001646
mov rax, rbx
or rax, 0xf
cmp rax, rbp
jbe 0x1400015ec
movabs rax, 0x8000000000000000
add rax, 0x27
mov rcx, rax
call fcn.140003620
test rax, rax
je 0x140001618
lea rsi, [rax + 0x27]
and rsi, 0xffffffffffffffe0
mov qword [rsi - 8], rax
jmp 0x140001627
mov ecx, 0x16
mov rbp, rax
cmp rax, rcx
cmovb rbp, rcx
lea rcx, [rbp + 1]
test rcx, rcx
je 0x140001627
cmp rcx, 0x1000
jb 0x14000161f
lea rax, [rcx + 0x27]
cmp rax, rcx
jbe 0x140001690
jmp 0x1400015d1
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call fcn.140003620
mov rsi, rax
mov r8, rbx
mov qword [rdi], rsi
lea rdx, [rsp + 0x40]
mov qword [rdi + 0x10], rbx
mov rcx, rsi
mov qword [rdi + 0x18], rbp
call sub.VCRUNTIME140.dll_memcpy
mov byte [rsi + rbx], 0
mov rbx, qword [rsp + 0x178]
mov rax, rdi
mov rbp, qword [rsp + 0x180]
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140003600
mov rsi, qword [rsp + 0x188]
add rsp, 0x160
pop rdi
ret
mov qword [rdi + 0x18], 0xf
mov rax, rdi
mov byte [rdi], sil
jmp 0x140001659
call fcn.1400011a0
int3
call fcn.140001100
int3
Function at 0x140003f80
Capabilities:
Parse pe header

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

Disassembly:
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbp
push rbx
cmp dword [0x180020a94], 0xa
jl 0x180002e92
mov eax, dword [0x180020a98]
lea edx, [rax - 1]
imul edx, eax
and edx, 1
je 0x180002e92
nop word cs:[rax + rax]
jmp 0x180002e90
mov rax, qword gs:[0x60]
mov r10, qword [rax + 0x18]
add r10, 0x10
mov eax, dword [0x180020a80]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020a7c], 0xa
setl r8b
or r8b, al
mov eax, dword [0x180020a9c]
lea edx, [rax - 1]
imul edx, eax
test dl, 1
sete al
cmp dword [0x180020aa0], 0xa
setl r9b
or r9b, al
lea r11, [rcx - 1]
xor eax, eax
mov r14, r10
mov r14, qword [r14]
cmp r14, r10
je 0x180002f8b
mov rsi, r11
test r8b, r8b
je 0x180002f70
cmp byte [rsi + 1], 0
lea rsi, [rsi + 1]
jne 0x180002f00
sub rsi, rcx
je 0x180002f82
test r9b, r9b
je 0x180002f80
mov r15, qword [r14 + 0x60]
xor ebx, ebx
nop word [rax + rax]
movzx r13d, word [r15 + rbx*2]
lea edi, [r13 - 0x41]
lea ebp, [r13 + 0x20]
cmp di, 0x1a
cmovae ebp, r13d
movsx edi, byte [rcx + rbx]
lea r12d, [rdi - 0x41]
lea edx, [rdi + 0x20]
cmp r12b, 0x1a
cmovae edx, edi
sub ebp, edx
test r13d, r13d
je 0x180002f60
test ebp, ebp
jne 0x180002f60
add rbx, 1
cmp rsi, rbx
jne 0x180002f20
jmp 0x180002f87
test ebp, ebp
jne 0x180002eec
jmp 0x180002f87
jmp 0x180002f70
jmp 0x180002f80
test r9b, r9b
je 0x180002fa0
mov rax, qword [r14 + 0x30]
pop rbx
pop rbp
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
ret
jmp 0x180002fa0
Function at 0x140130000
Capabilities:
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
xchg r9, r15
invalid
mov dword [rbp - 0xc], 0x81796f78
mov dword [rbp - 0x4c], 0xf6f6f6f6
mov dword [rbp - 8], 0x71787378
mov word [rbp - 0x48], 0xf6f6
mov dword [rbp - 4], 0x7f7d38
mov byte [rbp - 0x46], 0xf6
jmp 0x1401311bc
mov byte [rsp + rax + 0x68], r13b
inc rax
cmp rax, 0xf
jb 0x140130e66
mov rax, qword gs:[0x60]
jmp 0x1401311e7
inc rax
cmp rax, 0x43
jb 0x140130faf
xchg r13, rbp
mov rax, rbp
xchg r13, rbp
jmp 0x140130e66
mov r11, qword [rcx + 0x30]
xchg r9, r11
movsxd rax, dword [r9 + 0x3c]
jmp 0x140130f49
add r15, rdi
xchg rbx, rcx
mov rbx, qword [rax + 0x18]
xchg rbx, rcx
xchg r12, rax
jmp 0x14013117b
mov ebx, dword [rax + r9 + 0x88]
mov r11d, dword [rbx + r9 + 0x20]
xchg r13, r10
nop word [rax + rax]
mov byte [rbp + rax - 0x44], r13b
jmp 0x140130ec5
call r10
xchg r10, r13
mov rax, r10
jmp 0x140130fa1
jno 0x14013108d
mov dword [rbp - 0x50], 0xf6f6f6f6
jmp 0x140130e26
jmp 0x107e497da
add cl, al
mov byte [rbp + rdx - 0x44], cl
mov byte [rsp + rdx + 0x78], r13b
inc rdx
cmp rdx, 0x43
jb 0x1401311c8
mov r9d, 0x40
jmp 0x1401311d7
je 0x14013122b
mov r12, qword [rcx + 0x10]
xchg r12, rax
xchg rsi, rcx
mov rsi, qword [rax]
xchg rcx, rsi
xchg r11, r9
je 0x1401311a4
jne 0x1401311a4
lea edx, [rbp - 0x1e94]
rol r11d, 0x55
or r11d, 0xd88988c6
movabs r9, 0xff07dfffffd37e9
ror r12d, 0xee
test r15d, 0x355fa516
call 0x140131385
jmp 0x140130ee0
invalid
nop dword [rax]
nop dword [rax + rax]
movzx eax, byte [rbp + rdx - 0x44]
movzx ecx, byte [rsp + rdx + 0x78]
jmp 0x140131124
lea r8, [rsp + 0x68]
lea rdx, [rbp - 0x44]
xor ecx, ecx
jmp 0x140130fe2
lea rdi, [0x140000000]
movsxd r15, dword [0x14000003c]
mov r8d, r13d
jmp 0x140130ef0
Function at 0x140133560
Capabilities:
Contain obfuscated stackstrings
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
xchg rcx, r9
mov qword [rsp + 0x20], rcx
xchg r9, rcx
xchg r9, r8
mov qword [rsp + 0x18], r9
xchg r9, r8
mov dword [rsp + 0x10], edx
jne 0x1401335bf
je 0x1401335bf
ror edx, 0xd8
test rbx, rbx
or edi, 0x6892d671
xchg edx, eax
push 0x41f93949
or edi, 0x8cbfca18
ror r15d, 0x30
cmp rsi, rbp
and r9d, 0x216bda87
rcr r14d, 0x1b
lea edx, [rbp - 0x6351]
rcr r10d, 0x43
test esi, 0x13195107
cmp r13d, 0xe96f669f
movabs r14, 0x898e82f231819eb
lea r13d, [rdx + 0x85c9]
call 0x140133bec
jmp 0x1401335da
xchg r8, rax
jmp 0x140133696
xchg rcx, r11
mov qword [rsp + 8], r11
xchg r11, rcx
sub rsp, 0x28
lea rax, [0x140133990]
xchg r14, rax
jne 0x140133617
je 0x140133617
div r9
cmp r9d, 0x1a40e8a4
lea esi, [rdi + 0x4e1a]
int3
jmp 0x140133636
mov qword [rsp + 0x18], r14
xchg r14, rax
mov dword [rsp + 8], 0
je 0x14013364d
jne 0x14013364d
call rcx
movabs r9, 0x24712faf0a881ceb
inc r11
lea ecx, [rdx - 0x4b46]
pushfq
rol r14d, 0xc1
pushfq
lea ebp, [rcx + 0xb5c7]
ret
jmp 0x14013366b
xchg r14, rax
mov r14, qword [rsp + 0x30]
xchg r14, rax
xchg r8, rax
mov qword [rsp + 0x10], r8
jmp 0x1401335d3
Function at 0x100d3cfa0
Capabilities:
Terminate process

Disassembly:
cld
pop r11
jmp 0x100d3cfad
inc rsi
mov byte [rdi], dl
inc rdi
mov dl, byte [rsi]
add ebx, ebx
jne 0x100d3cfbd
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jb 0x100d3cfa5
lea eax, [rcx + 1]
jmp 0x100d3cfcb
dec eax
call r11
adc eax, eax
call r11
adc eax, eax
add ebx, ebx
jne 0x100d3cfde
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
mov dl, byte [rsi]
jae 0x100d3cfc4
sub eax, 3
jb 0x100d3cffe
shl eax, 8
movzx edx, dl
or eax, edx
inc rsi
xor eax, 0xffffffff
je 0x100d3d04d
sar eax, 1
movsxd rbp, eax
jb 0x100d3d034
jmp 0x100d3d00c
add ebx, ebx
jne 0x100d3d00a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100d3d034
inc ecx
add ebx, ebx
jne 0x100d3d01a
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jb 0x100d3d034
call r11
adc ecx, ecx
add ebx, ebx
jne 0x100d3d02d
mov ebx, dword [rsi]
sub rsi, 0xfffffffffffffffc
adc ebx, ebx
jae 0x100d3d01c
add ecx, 2
jmp 0x100d3d039
call r11
adc ecx, ecx
cmp rbp, 0xfffffffffffffb00
adc ecx, 2
call fcn.100d3cf62
jmp 0x100d3cfad
pop rsi
mov rdi, rsi
push rsi
mov rdi, rsi
mov rsi, 0x4995b0
mov dl, 0x96
push rbx
push rdi
lea rcx, [rdi + rsi - 3]
pop rsi
push rsi
pop rbx
jmp 0x100d3d099
cmp rsi, rcx
jae 0x100d3d0a1
push rsi
pop rsi
lodsb al, byte [rsi]
cmp al, 0x80
jb 0x100d3d080
cmp al, 0x8f
ja 0x100d3d080
cmp byte [rsi - 2], 0xf
je 0x100d3d086
sub al, 0xe8
cmp al, 1
ja 0x100d3d06a
cmp rsi, rcx
jae 0x100d3d0a1
push rsi
lodsd eax, dword [rsi]
sub al, dl
jne 0x100d3d070
pop rdi
bswap eax
sub eax, edi
add eax, ebx
stosd dword [rdi], eax
cmp rsi, rcx
jae 0x100d3d0a1
lodsb al, byte [rsi]
jmp 0x100d3d080
pop rbx
pop rsi
sub rsp, 0x28
lea rdi, [rsi + 0xd38000]
mov eax, dword [rdi]
or eax, eax
je 0x100d3d0fe
mov ebx, dword [rdi + 4]
lea rcx, [rax + rsi + 0xd41758]
add rbx, rsi
add rdi, 8
call qword [sym.imp.KERNEL32.DLL_LoadLibraryA]
xchg rbp, rax
mov al, byte [rdi]
inc rdi
or al, al
je 0x100d3d0ae
mov rcx, rdi
mov rdx, rdi
dec eax
repne scasb al, byte [rdi]
mov rcx, rbp
call qword [sym.imp.KERNEL32.DLL_GetProcAddress]
or rax, rax
je 0x100d3d0f8
mov qword [rbx], rax
add rbx, 8
jmp 0x100d3d0ce
jmp qword [sym.imp.KERNEL32.DLL_ExitProcess]
add rsp, 0x28
mov rbp, qword [sym.imp.KERNEL32.DLL_VirtualProtect]
lea rdi, [rsi - 0x1000]
mov ebx, 0x1000
push rax
mov r9, rsp
mov r8d, 4
mov rdx, rbx
mov rcx, rdi
sub rsp, 0x20
call rbp
lea rax, [rdi + 0x1af]
and byte [rax], 0x7f
and byte [rax + 0x28], 0x7f
lea r9, [rsp + 0x20]
mov r8, qword [r9]
mov rdx, rbx
mov rcx, rdi
call rbp
add rsp, 0x28
mov byte [fcn.100d3d181], 0xfc
lea rcx, [rsi - 0x1000]
push 1
pop rdx
xor r8, r8
push rax
call fcn.100d3d181
pop rax
pop rbp
pop rdi
pop rsi
pop rbx
lea rax, [rsp - 0x80]
push 0
cmp rsp, rax
jne 0x100d3d171
sub rsp, 0xffffffffffffff80
jmp 0x1000032a0
Function at 0x14145d484
Capabilities:
Encode data using xor

Disassembly:
jmp 0x14145d48e
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 0x14145d4b7
pop rbp
sub rbp, 0x33
sub rbp, 0x145d484
sub rsp, 0x20
jmp 0x14145d4d6
mov rax, 0x145d484
add rax, rbp
add rax, 0x84
mov rcx, 0x60b
mov rdx, 0xffffffffb937f7b4
xor byte [rax], dl
inc rax
dec rcx
jne 0x14145d4f5
jmp 0x14145d50c
cld
cmp eax, 0x883d3f5d
mov ah, 0xb4
mov ah, 0xfc
xor eax, 0xb4b5bc75
mov ah, 0xfc
mov ch, 0x5d
cld
jae 0x14145d596
mov bl, 0xb4
mov ah, 0xb4
cld
jae 0x14145d59f
pushfq
mov ah, 0xb4
mov ah, 0xfc
push r14
cld
mov ch, 0x75
invalid
xor eax, 0xb4b4b4b8
cld
mov ch, 0x5c
in al, 0xe4
cld
or al, 0x5c
invalid
test dword [rbp - 0x4f8aca04], esp
mov ah, 0xb4
mov ah, 0xfc
jl 0x14145d534
jl 0x14145d534
xor dword [rdx + 0x4b], ebx
ja 0x14145d56c
out dx, al
out 0xe4, al
cld
or al, 0x5c
invalid
mov ah, 0xfc
mov ch, 0x5d
pop rsp
mov cl, 0xb4
mov ah, 0xb4
pop rbp
cmp dword [rsi + 0x5ce6b4b4], esi
leave
mov ah, 0xb4
mov ah, 0xee
jrcxz 0x14145d5a9
cmp eax, 0x7d85fc63
cld
test dword [rsi + 0x37], esp
pop rsp
mov cl, 0xfc
jl 0x14145d577
xor al, dl
mov ah, 0xb4
mov ah, 0xbb
cmp al, 0xea
mov ah, 0xb4
mov ah, 0xd2
invalid
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x140045c70]
mov dword [rax], 1
mov rax, qword [0x140045c80]
mov dword [rax], 1
mov rax, qword [0x140045c90]
mov dword [rax], 1
mov rax, qword [0x140045c20]
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 0x140021fa0
Capabilities:
Query environment variable

Disassembly:
push rsi
mov eax, 0x10078
push rbx
call fcn.140029620
sub rsp, rax
xor eax, eax
xor edx, edx
lea rbx, [rsp + 0x20]
lea rsi, [rsp + 0x70]
mov word [rsp + 0x70], ax
mov rcx, rbx
mov word [rsp + 0x20], dx
call fcn.140021ed0
mov rdx, rsi
mov r8d, 0x10000
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x140021ff6
mov rcx, rsi
call sub.msvcrt.dll__wcsdup
add rsp, 0x10078
pop rbx
pop rsi
ret
Function at 0x140028300
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 fcn.140039a80
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sub.msvcrt.dll_fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call fcn.140039a80
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sub.msvcrt.dll_vfprintf
call sub.msvcrt.dll_abort
nop

Function at 0x140028fd2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14004e028]
test eax, eax
je 0x14002906a
lea rax, [0x14004e000]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14004e030]
mov qword [rbp - 8], rax
jmp 0x14002904e
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 0x140029042
cmp qword [rbp - 0x10], 0
je 0x140029042
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 0x140029008
lea rax, [0x14004e000]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14002906b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140029170
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov rax, qword [rbp + 0x10]
mov qword [rbp - 8], rax
mov rax, qword [rbp - 8]
movzx eax, word [rax]
cmp ax, 0x5a4d
je 0x140029198
mov eax, 0
jmp 0x1400291e6
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 0x1400291c1
mov eax, 0
jmp 0x1400291e6
mov rax, qword [rbp - 0x10]
add rax, 0x18
mov qword [rbp - 0x18], rax
mov rax, qword [rbp - 0x18]
movzx eax, word [rax]
cmp ax, 0x20b
je 0x1400291e1
mov eax, 0
jmp 0x1400291e6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400291ec
Capabilities:
Enumerate pe sections

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov qword [rbp + 0x10], rcx
mov qword [rbp + 0x18], rdx
mov rax, qword [rbp + 0x10]
mov eax, dword [rax + 0x3c]
movsxd rdx, eax
mov rax, qword [rbp + 0x10]
add rax, rdx
mov qword [rbp - 0x18], rax
mov dword [rbp - 0xc], 0
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 0x14]
movzx edx, ax
mov rax, qword [rbp - 0x18]
add rax, rdx
add rax, 0x18
mov qword [rbp - 8], rax
jmp 0x14002926a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140029261
mov rax, qword [rbp - 8]
mov edx, dword [rax + 0xc]
mov rax, qword [rbp - 8]
mov eax, dword [rax + 8]
add eax, edx
mov eax, eax
cmp qword [rbp + 0x18], rax
jae 0x140029261
mov rax, qword [rbp - 8]
jmp 0x14002927f
add dword [rbp - 0xc], 1
add qword [rbp - 8], 0x28
mov rax, qword [rbp - 0x18]
movzx eax, word [rax + 6]
movzx eax, ax
cmp dword [rbp - 0xc], eax
jb 0x140029234
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140001084
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x18], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, dword [rcx]
call fcn.140001464
mov rdi, rax
test rax, rax
jne 0x1400010a7
mov eax, 0xc0000001
jmp 0x140001120
mov rax, qword [rbx + 0x10]
mov rcx, rdi
and qword [rsp + 0x40], 0
mov qword [rsp + 0x48], rax
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov eax, dword [rbx + 0x18]
lea r9, [rsp + 0x48]
mov dword [rsp + 0x28], eax
lea rdx, [rsp + 0x40]
xor r8d, r8d
mov dword [rsp + 0x20], 0x3000
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwAllocateVirtualMemory]
mov rdx, qword [rsp + 0x48]
mov r8d, 4
mov rcx, qword [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_MmSecureVirtualMemory]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rbx + 8]
lea rdx, [rsp + 0x40]
mov r8d, 8
call fcn.14000194c
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
mov rbx, qword [rsp + 0x50]
add rsp, 0x30
pop rdi
ret

Function at 0x140001464
Capabilities:
Find process by pid

Disassembly:
sub rsp, 0x28
lea rdx, [rsp + 0x38]
call qword [sym.imp.ntoskrnl.exe_PsLookupProcessByProcessId]
xor ecx, ecx
test eax, eax
cmovns rcx, qword [rsp + 0x38]
mov rax, rcx
add rsp, 0x28
ret

Function at 0x140001664
Capabilities:
Attach user process memory

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x60
mov rdi, rcx
mov rsi, rdx
mov ecx, dword [rcx]
call fcn.140001464
mov rbx, rax
test rax, rax
jne 0x140001692
mov eax, 0xc0000001
jmp 0x140001714
xor eax, eax
xor r9d, r9d
mov qword [rsp + 0x70], rax
xor r8d, r8d
lea rax, [rsp + 0x70]
xor edx, edx
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_KeWaitForSingleObject]
test eax, eax
jne 0x1400016bf
mov eax, 0xc000010a
jmp 0x140001714
xor edx, edx
lea rcx, [rsp + 0x30]
lea r8d, [rdx + 0x30]
call fcn.140001e80
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov rcx, rbx
call qword [sym.imp.ntoskrnl.exe_PsGetProcessWow64Process]
lea r8, [rdi + 4]
mov r9, rsi
test rax, rax
mov rcx, rbx
setne dl
call fcn.140001488
lea rcx, [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov eax, 0xc0000225
test ebx, ebx
cmovs ebx, eax
mov eax, ebx
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rsp, r11
pop rdi
ret
Function at 0x140001728
Capabilities:
Allocate or change rwx memory

Disassembly:
mov qword [rsp + 0x20], rbx
push rdi
sub rsp, 0x30
mov rbx, rcx
mov ecx, dword [rcx]
call fcn.140001464
mov rdi, rax
test rax, rax
jne 0x14000174e
mov eax, 0xc0000001
jmp 0x1400017d5
mov rdx, qword [rbx + 0x18]
lea rcx, [rsp + 0x40]
and dword [rsp + 0x40], 0
mov r8d, 4
call fcn.14000194c
test eax, eax
je 0x1400017d0
mov rax, qword [rbx + 0x10]
mov rcx, rdi
mov qword [rsp + 0x48], rax
mov rax, qword [rbx + 8]
mov qword [rsp + 0x50], rax
call qword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov r9d, dword [rsp + 0x40]
lea rax, [rsp + 0x40]
lea r8, [rsp + 0x48]
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x50]
or rcx, 0xffffffffffffffff
call qword [sym.imp.ntoskrnl.exe_ZwProtectVirtualMemory]
call qword [sym.imp.ntoskrnl.exe_KeDetachProcess]
mov rcx, qword [rbx + 0x18]
lea rdx, [rsp + 0x40]
mov r8d, 4
call fcn.14000194c
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ObfDereferenceObject]
xor eax, eax
jmp 0x1400017d5
mov eax, 0xc0000005
mov rbx, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x140001a30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x50
lea rdx, [rbp - 0x20]
mov dword [rbp - 0x20], 0x44005c
lea rcx, [rbp - 0x30]
mov dword [rbp - 0x1c], 0x690072
mov dword [rbp - 0x18], 0x650076
mov dword [rbp - 0x14], 0x5c0072
mov dword [rbp - 0x10], 0x490045
mov dword [rbp - 0xc], 0x440051
mov dword [rbp - 8], 0x56
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x1400017e0]
lea rcx, [rbp - 0x30]
call qword [sym.imp.ntoskrnl.exe_IoCreateDriver]
xor eax, eax
add rsp, 0x50
pop rbp
ret