joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400023f0
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 sym.__acrt_iob_func
mov r9, rax
mov r8d, 0x1b
mov edx, 1
lea rax, str.Mingw_w64_runtime_failure:_n
mov rcx, rax
call sym.fwrite
mov rbx, qword [rbp - 8]
mov ecx, 2
call sym.__acrt_iob_func
mov rcx, rax
mov rax, qword [rbp + 0x20]
mov r8, rbx
mov rdx, rax
call sym.vfprintf
call sym.abort
nop

Function at 0x1400030c2
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x140009168]
test eax, eax
je 0x14000315a
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x140009170]
mov qword [rbp - 8], rax
jmp 0x14000313e
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 0x140003132
cmp qword [rbp - 0x10], 0
je 0x140003132
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 0x1400030f8
lea rax, [0x140009140]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x14000315b
nop
add rsp, 0x30
pop rbp
ret

Function at 0x140003260
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 0x140003288
mov eax, 0
jmp 0x1400032d6
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 0x1400032b1
mov eax, 0
jmp 0x1400032d6
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 0x1400032d1
mov eax, 0
jmp 0x1400032d6
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x1400032dc
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 0x14000335a
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x140003351
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 0x140003351
mov rax, qword [rbp - 8]
jmp 0x14000336f
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 0x140003324
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x1400025f0
Capabilities:
Create process on windows

Disassembly:
push rbx
sub rsp, 0x70
mov rdx, qword [rcx + 0x10]
movabs rax, 0x7ffffffffffffffe
sub rax, rdx
xor ebx, ebx
cmp rax, 3
jb 0x1400026c0
cmp qword [rcx + 0x18], 7
jbe 0x14000261d
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rdx
lea r9, [0x140065918]
mov qword [rsp + 0x28], rcx
lea rcx, [rsp + 0x48]
mov qword [rsp + 0x20], 3
call fcn.1400080d0
cmp qword [rsp + 0x60], 7
lea r9, [rsp + 0x48]
mov dword [rsp + 0x28], ebx
lea r8, str.cmd.exe
cmova r9, qword [rsp + 0x48]
lea rdx, [0x140065930]
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [rsp + 0x60]
mov rbx, rax
cmp rdx, 7
jbe 0x1400026b2
mov rcx, qword [rsp + 0x48]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400026ad
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x1400026ba
call fcn.140008400
mov eax, ebx
add rsp, 0x70
pop rbx
ret
call fcn.14003a174
int3
call fcn.140001310
int3

Function at 0x140002940
Capabilities:
Get file attributes
Set file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x40
mov rdi, rcx
mov rdx, rcx
lea rcx, [rsp + 0x20]
call fcn.1400026d0
cmp qword [rax + 0x18], 7
jbe 0x140002964
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov rdx, qword [rsp + 0x38]
mov ebx, eax
cmp rdx, 7
jbe 0x1400029b1
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x1400029ac
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002a3e
call fcn.140008400
cmp ebx, 0xffffffff
je 0x140002a2b
mov rdx, rdi
lea rcx, [rsp + 0x20]
call fcn.1400026d0
cmp qword [rax + 0x18], 7
jbe 0x1400029cd
mov rax, qword [rax]
or ebx, 6
mov rcx, rax
mov edx, ebx
call qword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov rdx, qword [rsp + 0x38]
mov ebx, eax
cmp rdx, 7
jbe 0x140002a1b
mov rcx, qword [rsp + 0x20]
lea rdx, [rdx*2 + 2]
mov rax, rcx
cmp rdx, 0x1000
jb 0x140002a16
mov rcx, qword [rcx - 8]
add rdx, 0x27
sub rax, rcx
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140002a38
call fcn.140008400
test ebx, ebx
setne al
mov rbx, qword [rsp + 0x58]
add rsp, 0x40
pop rdi
ret
mov rbx, qword [rsp + 0x58]
xor al, al
add rsp, 0x40
pop rdi
ret
call fcn.14003a174
int3
call fcn.14003a174
int3
Function at 0x140005960
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
mov qword [rsp + 0x18], r8
push rdi
push r12
push r13
push r14
push r15
mov r14, qword [rsp + 0x50]
xor ebp, ebp
mov rax, qword [rsp + 0x58]
mov r13, r9
mov rbx, qword [rsp + 0x68]
mov r12, rdx
mov qword [r14], r8
mov qword [rbx], rax
mov rax, qword [r14]
cmp rax, r9
je 0x140005af1
mov r15, qword [rsp + 0x60]
lea r8d, [rbp + 1]
mov rdi, qword [rbx]
mov r11d, 0x2800
mov r9d, 0x3ff
mov r10d, 0x2400
cmp rdi, r15
je 0x140005af1
movzx edx, word [r12]
xor sil, sil
movzx ecx, word [rax]
cmp r8w, dx
jae 0x1400059fb
lea eax, [r10 + rcx]
cmp ax, r9w
ja 0x140005b18
mov eax, edx
sub ecx, 0xdc00
shl eax, 0xa
or eax, ecx
jmp 0x140005a12
mov eax, ecx
add cx, r11w
cmp cx, r9w
ja 0x140005a12
shl eax, 0xa
mov sil, 1
sub eax, 0x35f0000
cmp eax, 0x80
jae 0x140005a25
movzx r9d, al
mov r10d, ebp
mov r11d, ebp
jmp 0x140005a72
mov r9d, eax
cmp eax, 0x800
jae 0x140005a3f
shr r9d, 6
mov r10d, r8d
or r9b, 0xc0
mov r11d, r8d
jmp 0x140005a72
cmp eax, 0x10000
jae 0x140005a59
shr r9d, 0xc
mov r10d, 2
or r9b, 0xe0
mov r11d, r10d
jmp 0x140005a72
shr r9d, 0x12
mov r10d, 3
movzx r11d, sil
or r9b, 0xf0
xor r11d, 1
add r11d, r11d
lea r8d, [r11 + 1]
mov rdx, r15
sub rdx, rdi
mov ecx, r8d
cmp rdx, rcx
jl 0x140005af1
add qword [r14], 2
test sil, sil
jne 0x140005a93
cmp r10d, 3
jae 0x140005a9f
mov rcx, qword [rbx]
mov r8d, r11d
mov byte [rcx], r9b
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jle 0x140005ace
lea ecx, [r10 + r10*2]
add ecx, ecx
nop dword [rax]
sub ecx, 6
mov edx, eax
shr edx, cl
dec r8d
and dl, 0x3f
or dl, 0x80
mov byte [r9], dl
inc qword [rbx]
mov r9, qword [rbx]
test r8d, r8d
jg 0x140005ab0
shr eax, 0xa
mov r8d, 1
test sil, sil
mov ecx, r8d
cmovne ecx, eax
mov word [r12], cx
mov rax, qword [r14]
cmp rax, r13
jne 0x1400059af
mov rax, qword [rsp + 0x40]
cmp rax, qword [r14]
sete bpl
mov eax, ebp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x48]
pop r15
pop r14
pop r13
pop r12
pop rdi
ret
mov eax, 2
jmp 0x140005aff

Function at 0x140008f20
Capabilities:
Parse pe header

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

Function at 0x140026638
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
lea r9, [rdx + rdx]
movabs r8, 0xcbf29ce484222325
xor edx, edx
test r9, r9
je 0x14001231a
movzx eax, byte [rdx + rcx]
movabs r10, 0x100000001b3
xor r8, rax
inc rdx
imul r8, r10
cmp rdx, r9
jb 0x1400122fd
mov rax, r8
ret
sub r8, rdx
mov rcx, rdx
sar r8, 1
mov rdx, r8
jmp 0x1400122e8

Function at 0x14003ae90
Capabilities:
Parse pe header

Disassembly:
xor r8d, r8d
xor edx, edx
jmp 0x14003ac8c
Function at 0x14004a834
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r14
sub rsp, 0x40
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor esi, esi
mov rbx, rax
test rax, rax
jne 0x14004a864
xor eax, eax
jmp 0x14004a927
mov rbp, rbx
cmp word [rax], si
je 0x14004a889
or rax, 0xffffffffffffffff
inc rax
cmp word [rbp + rax*2], si
jne 0x14004a870
lea rbp, [rbp + rax*2]
add rbp, 2
cmp word [rbp], si
jne 0x14004a86c
mov qword [rsp + 0x38], rsi
sub rbp, rbx
mov qword [rsp + 0x30], rsi
add rbp, 2
sar rbp, 1
mov r8, rbx
mov r9d, ebp
mov dword [rsp + 0x28], esi
xor edx, edx
mov qword [rsp + 0x20], rsi
xor ecx, ecx
call fcn.14004a754
movsxd r14, eax
test eax, eax
jne 0x14004a8c7
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x14004a85d
mov rcx, r14
call fcn.140046e84
mov rdi, rax
test rax, rax
jne 0x14004a8e0
xor ecx, ecx
call fcn.140045bd4
jmp 0x14004a8bc
mov qword [rsp + 0x38], rsi
mov r9d, ebp
mov qword [rsp + 0x30], rsi
mov r8, rbx
mov dword [rsp + 0x28], r14d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.14004a754
test eax, eax
jne 0x14004a911
mov rcx, rdi
call fcn.140045bd4
jmp 0x14004a91b
xor ecx, ecx
call fcn.140045bd4
mov rsi, rdi
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
mov rbx, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x68]
add rsp, 0x40
pop r14
ret

Function at 0x14004a944
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
xor ebp, ebp
mov rbx, rax
test rax, rax
je 0x14004a9cb
mov rsi, rbx
cmp word [rax], bp
je 0x14004a98a
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x14004a974
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x14004a970
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.140046e84
mov rdi, rax
test rax, rax
je 0x14004a9b8
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.140056dc0
mov rbp, rdi
xor ecx, ecx
call fcn.140045bd4
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbp
mov rbx, qword [rsp + 0x30]
mov rbp, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x14004e238
Capabilities:
Get geographical location

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
mov esi, edx
mov ebx, ecx
call fcn.140048604
mov ecx, ebx
lea r8, [rsp + 0x30]
and ecx, 0x3ff
mov r9d, 2
bts ecx, 0xa
mov edx, 0x20000001
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
xor edx, edx
test eax, eax
je 0x14004e2d9
cmp ebx, dword [rsp + 0x30]
je 0x14004e2d2
test esi, esi
je 0x14004e2d2
mov r10, qword [rdi + 0x98]
mov r9d, edx
movzx r8d, word [r10]
lea rcx, [r10 + 2]
lea eax, [r8 - 0x41]
cmp ax, 0x19
jbe 0x14004e2ad
sub r8w, 0x61
cmp r8w, 0x19
ja 0x14004e2ba
movzx r8d, word [rcx]
inc r9d
add rcx, 2
jmp 0x14004e297
or rax, 0xffffffffffffffff
inc rax
cmp word [r10 + rax*2], dx
jne 0x14004e2be
cmp r9d, eax
setne dl
mov eax, edx
jmp 0x14004e2db
mov eax, 1
jmp 0x14004e2db
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x140052a64
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x140052a7a
mov al, 1
jmp 0x140052ada
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x140052a8b
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x140052ad8
mov ecx, dword [rcx + 0x18]
nop
call fcn.14004bb54
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x140052ad8
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x140052ad8
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x140052ad8
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x140052ada
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x140053bb4
Capabilities:
Set environment variable

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x20], rdi
push rbp
push r14
push r15
lea rbp, [rax - 0x5f]
sub rsp, 0xa0
xor r15d, r15d
mov r14, rdx
mov rsi, rcx
mov qword [rbp + 0x17], r15
xor edx, edx
mov qword [rbp + 0x1f], r15
lea rcx, [rbp - 0x39]
mov qword [rbp + 0x27], r15
mov qword [rbp + 0x2f], r15
mov edi, r15d
mov qword [rbp + 0x37], r15
mov byte [rbp + 0x3f], r15b
mov qword [rbp - 0x19], r15
mov qword [rbp - 0x11], r15
mov qword [rbp - 9], r15
mov qword [rbp - 1], r15
mov qword [rbp + 7], r15
mov byte [rbp + 0xf], r15b
call fcn.14003f178
mov rax, qword [rbp - 0x31]
mov ebx, 0xfde9
cmp dword [rax + 0xc], ebx
jne 0x140053c3e
cmp byte [rbp - 0x21], r15b
je 0x140053c39
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, ebx
jmp 0x140053c74
call fcn.140045ed8
test eax, eax
jne 0x140053c60
cmp byte [rbp - 0x21], r15b
je 0x140053c58
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, 1
jmp 0x140053c74
cmp byte [rbp - 0x21], r15b
je 0x140053c71
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov r9d, r15d
lea r8, [rbp + 0x77]
mov rcx, rsi
lea rdx, [rbp + 0x17]
call fcn.14004245c
test eax, eax
jne 0x140053d14
xor edx, edx
lea rcx, [rbp - 0x39]
call fcn.14003f178
mov rax, qword [rbp - 0x31]
cmp dword [rax + 0xc], ebx
jne 0x140053cb3
cmp byte [rbp - 0x21], r15b
je 0x140053ce8
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
jmp 0x140053ce8
call fcn.140045ed8
test eax, eax
jne 0x140053cd4
cmp byte [rbp - 0x21], r15b
je 0x140053ccd
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, 1
jmp 0x140053ce8
cmp byte [rbp - 0x21], r15b
je 0x140053ce5
mov rax, qword [rbp - 0x39]
and dword [rax + 0x3a8], 0xfffffffd
mov ebx, r15d
mov r9d, ebx
lea r8, [rbp + 0x77]
lea rdx, [rbp - 0x19]
mov rcx, r14
call fcn.14004245c
mov rdi, qword [rbp - 9]
test eax, eax
jne 0x140053d14
mov rcx, qword [rbp + 0x27]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
mov ebx, eax
jmp 0x140053d17
mov ebx, r15d
cmp byte [rbp + 0xf], r15b
je 0x140053d25
mov rcx, rdi
call fcn.140045bd4
cmp byte [rbp + 0x3f], r15b
je 0x140053d34
mov rcx, qword [rbp + 0x27]
call fcn.140045bd4
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rdi, qword [r11 + 0x38]
mov rsp, r11
pop r15
pop r14
pop rbp
ret

Function at 0x1400565e0
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140056608
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x140056608
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140001fc4
Capabilities:
Accept command line arguments

Disassembly:
mov r11, rsp
push rdi
sub rsp, 0x160
mov qword [rsp + 0x68], 0xfffffffffffffffe
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rsi
mov rax, qword [0x1400f0088]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x20], 0x1c
lea r9, str.wWinMain
lea r8, [0x1400f4d60]
mov rdx, qword [0x1400f4d58]
lea rcx, [r11 - 0xb8]
call fcn.1400137e4
nop
mov ebx, 1
mov dword [rsp + 0x44], ebx
xor esi, esi
mov byte [rsp + 0x40], sil
lea rcx, [rsp + 0x78]
call fcn.140002a3c
nop
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rdi, rax
mov qword [rsp + 0xa0], rsi
mov qword [rsp + 0xa8], rsi
mov qword [rsp + 0xa8], 7
mov qword [rsp + 0xa0], rsi
mov word [rsp + 0x90], si
cmp word [rax], si
jne 0x140002075
mov eax, esi
jmp 0x14000207d
mov rcx, rdi
call fcn.140058be4
mov r8, rax
mov rdx, rdi
lea rcx, [rsp + 0x90]
call fcn.14000258c
nop
lea rax, [rsp + 0x48]
mov qword [rsp + 0x70], rax
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x60], 7
mov qword [rsp + 0x58], rsi
mov word [rsp + 0x48], si
or r9, 0xffffffffffffffff
xor r8d, r8d
lea rdx, [rsp + 0x90]
lea rcx, [rsp + 0x48]
call fcn.1400022b0
nop
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x48]
lea rcx, [rsp + 0x78]
call fcn.140002b7c
test eax, eax
js 0x1400020f6
cmp byte [rsp + 0x40], sil
cmovne ebx, esi
mov dword [rsp + 0x44], ebx
jmp 0x1400020fc
xor r8d, r8d
mov dl, 1
lea rcx, [rsp + 0x90]
call fcn.1400021f8
nop
lea rcx, [rsp + 0x78]
call fcn.140002af4
nop
lea rcx, [rsp + 0xb0]
call fcn.140013920
mov eax, ebx
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.14004be10
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rsp, r11
pop rdi
ret

Function at 0x140006d54
Capabilities:
Query environment variable

Disassembly:
mov rax, rsp
push rdi
sub rsp, 0x250
mov qword [rsp + 0x28], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rsi
mov rax, qword [0x1400f0088]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rbx, rdx
mov rdi, rcx
xor esi, esi
mov eax, esi
test rdx, rdx
je 0x140006e18
cmp word [rdx], si
je 0x140006e18
mov r8d, 0x104
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x140006dc4
mov r8, rbx
mov edx, 0x104
lea rcx, [rsp + 0x30]
call fcn.1400720c4
lea rcx, [rsp + 0x30]
call fcn.14001465c
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.140006cd0
test rax, rax
jne 0x140006e18
lea ecx, [rax + 0x50]
call fcn.14004be34
mov qword [rsp + 0x20], rax
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.140014a70
nop
mov qword [rsp + 0x20], rax
test rax, rax
je 0x140006e18
lea rcx, [rdi + 0x60]
lea rdx, [rsp + 0x20]
call fcn.14000af88
mov rax, qword [rsp + 0x20]
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.14004be10
lea r11, [rsp + 0x250]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret
Function at 0x1400088a8
Capabilities:
Write file on windows

Disassembly:
mov rax, rsp
push rbp
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x70
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov rax, qword [0x1400f0088]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov r14, rdx
mov rdi, rcx
xor r15d, r15d
mov esi, r15d
cmp dword [rcx + 0x358], r15d
jle 0x140008a29
cmp rdx, 0xffffffffffffffff
je 0x140008a29
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
mov word [rbp - 0x30], r15w
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], 7
test r8b, r8b
je 0x14000894a
lea rcx, str.____Queued_Lines_End__user_flush______r_n
call fcn.140058be4
mov r8, rax
lea rdx, str.____Queued_Lines_End__user_flush______r_n
lea rcx, [rbp - 0x30]
call fcn.140003918
nop
lea rbx, [rdi + 0x338]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14000c4d4
nop
jmp 0x14000897e
lea rcx, str.____Queued_Lines_End_____r_n
call fcn.140058be4
mov r8, rax
lea rdx, str.____Queued_Lines_End_____r_n
lea rcx, [rbp - 0x30]
call fcn.140003918
nop
lea rbx, [rdi + 0x338]
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14000c4d4
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140003860
jmp 0x140008a1c
lea rdx, [rbp - 0x30]
mov rcx, rbx
call fcn.14000e1a0
mov rdx, rax
mov rax, qword [rax]
test rax, rax
jne 0x1400089ad
mov rax, r15
jmp 0x1400089b0
mov rax, qword [rax]
mov rcx, qword [rax + 0x10]
dec rcx
and rcx, qword [rdx + 0x10]
mov rax, qword [rax + 8]
mov rdx, qword [rax + rcx*8]
mov rax, qword [rdx + 0x10]
cmp qword [rdx + 0x18], 8
jb 0x1400089d1
mov rdx, qword [rdx]
lea r8d, [rax + rax]
mov qword [rsp + 0x20], r15
lea r9, [rbp - 0x40]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x1400089ee
add esi, dword [rbp - 0x40]
mov rcx, qword [rbx + 0x10]
dec rcx
and rcx, qword [rbx + 0x18]
mov rax, qword [rbx + 8]
xor r8d, r8d
mov dl, 1
mov rcx, qword [rax + rcx*8]
call fcn.140003860
sub qword [rbx + 0x20], 1
jne 0x140008a18
mov qword [rbx + 0x18], r15
jmp 0x140008a1c
inc qword [rbx + 0x18]
cmp qword [rdi + 0x358], r15
ja 0x140008991
mov eax, esi
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14004be10
mov rbx, qword [rsp + 0xb0]
add rsp, 0x70
pop r15
pop r14
pop rdi
pop rsi
pop rbp
ret
Function at 0x140009868
Capabilities:
Print debug messages

Disassembly:
push rbp
push rbx
push rsi
push rdi
push r14
push r15
mov rbp, rsp
sub rsp, 0x68
mov qword [rbp - 0x38], 0xfffffffffffffffe
mov rax, qword [0x1400f0088]
xor rax, rsp
mov qword [rbp - 0x10], rax
mov ebx, r8d
mov rdi, rdx
mov rsi, rcx
mov r14, qword [rbp + 0x58]
xor r15d, r15d
mov qword [rbp - 0x20], r15
mov qword [rbp - 0x18], r15
mov qword [rbp - 0x18], 7
mov qword [rbp - 0x20], r15
mov word [rbp - 0x30], r15w
lea rax, [rbp - 0x30]
mov qword [rsp + 0x20], rax
mov edx, dword [rdx + 0x10]
call fcn.140009550
bt ebx, 0x1b
jb 0x1400098d7
test dword [rdi + 0x10], 0x80000
je 0x14000991c
lea rcx, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae rcx, qword [rbp - 0x30]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, rsi
call fcn.140008294
cmp qword [rax + 0x18], 8
jb 0x1400098fd
mov rax, qword [rax]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, r14
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
lea rcx, [0x1400cf398]
call qword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov rcx, qword [rdi + 0x18]
test rcx, rcx
je 0x140009935
add rcx, 8
cmp qword [rcx + 0x18], 8
jb 0x14000993c
mov rcx, qword [rcx]
jmp 0x14000993c
lea rcx, [0x1400ce728]
call fcn.140058be4
test rax, rax
jne 0x14000994f
cmp qword [rsi + 0x360], r15
je 0x14000996b
lea r8, [rbp - 0x30]
cmp qword [rbp - 0x18], 8
cmovae r8, qword [rbp - 0x30]
mov r9, r14
mov rdx, rdi
mov rcx, rsi
call fcn.140008adc
test dword [rdi + 0x10], 0x10000000
je 0x140009982
lea rcx, [rsi + 0xb8]
call qword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
nop
xor r8d, r8d
mov dl, 1
lea rcx, [rbp - 0x30]
call fcn.140003860
mov rcx, qword [rbp - 0x10]
xor rcx, rsp
call fcn.14004be10
add rsp, 0x68
pop r15
pop r14
pop rdi
pop rsi
pop rbx
pop rbp
ret

Function at 0x1400099ac
Capabilities:
Enumerate process modules

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x840
mov rax, qword [0x1400f0088]
xor rax, rsp
mov qword [rsp + 0x830], rax
mov rsi, rcx
mov r8d, edx
xor edx, edx
mov ecx, 0x410
call qword [sym.imp.KERNEL32.dll_OpenProcess]
xor ebx, ebx
mov rdi, rax
test rax, rax
je 0x140009a44
lea r9, [rsp + 0x20]
mov r8d, 0x800
lea rdx, [rsp + 0x30]
mov rcx, rax
call qword [sym.imp.PSAPI.DLL_EnumProcessModules]
test eax, eax
je 0x140009a3b
test dword [rsp + 0x20], 0xfffffff8
jbe 0x140009a3b
mov ecx, ebx
lea rdx, [rsi + 0x110]
mov r8d, 0x104
mov rcx, qword [rsp + rcx*8 + 0x30]
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [rsp + 0x20]
inc ebx
shr eax, 3
cmp ebx, eax
jb 0x140009a14
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x830]
xor rcx, rsp
call fcn.14004be10
lea r11, [rsp + 0x840]
mov rbx, qword [r11 + 0x20]
mov rsi, qword [r11 + 0x28]
mov rsp, r11
pop rdi
ret