joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1400016a0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x160
mov rax, qword [0x14000f948]
xor rax, rsp
mov qword [rsp + 0x150], rax
mov dword [rsp + 0x30], 0x114
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1400016e0
mov eax, 0xff
jmp 0x140001883
mov r9d, dword [rsp + 0x3c]
and r9d, 0x7fff
mov edx, dword [rsp + 0x34]
mov ecx, edx
shl ecx, 8
mov eax, dword [rsp + 0x38]
add ecx, eax
mov r8d, dword [rsp + 0x40]
mov dword [0x140010048], r8d
mov dword [0x140010050], ecx
mov dword [0x140010054], edx
mov dword [0x140010058], eax
mov eax, r9d
bts eax, 0xf
cmp r8d, 2
cmove eax, r9d
mov dword [0x14001004c], eax
mov eax, 0x5a4d
cmp word [0x140000000], ax
jne 0x140001776
movsxd rax, dword [0x14000003c]
lea rcx, [0x140000000]
add rax, rcx
cmp dword [rax], 0x4550
jne 0x140001776
mov ecx, 0x20b
cmp word [rax + 0x18], cx
jne 0x140001776
xor ebx, ebx
cmp dword [rax + 0x84], 0xe
jbe 0x140001778
cmp dword [rax + 0xf8], ebx
setne bl
jmp 0x140001778
xor ebx, ebx
mov dword [rsp + 0x20], ebx
mov edi, 1
mov ecx, edi
call fcn.140003dc8
test eax, eax
jne 0x1400017ae
cmp dword [0x140010028], 2
je 0x14000179a
call fcn.140003bb0
mov ecx, 0x1c
call fcn.140003bfc
mov ecx, 0xff
call fcn.1400037e0
call fcn.1400036c0
test eax, eax
jne 0x1400017da
cmp dword [0x140010028], 2
je 0x1400017c5
call fcn.140003bb0
mov ecx, 0x10
call fcn.140003bfc
mov ecx, 0xff
call fcn.1400037e0
nop
call fcn.140003e3c
test eax, eax
jns 0x1400017ed
mov ecx, 0x1b
call fcn.1400037fc
call sub.KERNEL32.dll_GetCommandLineW
mov qword [0x140012138], rax
call fcn.14000463c
mov qword [0x140010020], rax
call fcn.1400040cc
test eax, eax
jns 0x140001818
mov ecx, 8
call fcn.1400037fc
call fcn.140004400
test eax, eax
jns 0x14000182b
mov ecx, 9
call fcn.1400037fc
mov ecx, edi
call fcn.140003860
test eax, eax
je 0x14000183d
mov ecx, eax
call fcn.1400037fc
mov r8, qword [0x140010038]
mov qword [0x140010068], r8
mov rdx, qword [0x140010030]
mov ecx, dword [0x14001002c]
call fcn.140001200
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
je 0x1400018a4
call fcn.14000384c
jmp 0x140001881
mov eax, edi
mov rcx, qword [rsp + 0x150]
xor rcx, rsp
call fcn.140001af0
mov rbx, qword [rsp + 0x170]
add rsp, 0x160
pop rdi
ret
mov ecx, eax
call fcn.140003ba0
nop
mov ecx, eax
call fcn.140003770
nop
int3
sub rsp, 0x28
call fcn.14012e000
add rsp, 0x28
jmp 0x1400016a0
Function at 0x140001378
Capabilities:
Parse pe header

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x20
mov rax, qword [0x1400637c0]
mov dword [rax], 1
mov rax, qword [0x1400637d0]
mov dword [rax], 1
mov rax, qword [0x1400637e0]
mov dword [rax], 1
mov rax, qword [0x140063740]
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 0x14003f400
Capabilities:
Query environment variable

Disassembly:
push r14
mov eax, 0x10080
push r13
push r12
push rbp
push rdi
push rsi
push rbx
call fcn.140046990
sub rsp, rax
xor eax, eax
xor edx, edx
lea rdi, str.PYTHON_FROZEN_MODULES
mov ebp, 0x50
lea r13, [rdi + 0x28]
mov word [rsp + 0x30], dx
lea r14, [rsp + 0x30]
lea r12, [rsp + 0x2e]
mov word [rsp + 0x80], ax
mov rsi, r14
nop dword [rax]
mov rax, r13
mov rbx, rsi
sub rax, rdi
cmp word [rsi], 0
je 0x14003f46e
nop word [rax + rax]
add rbx, 2
sub rax, 1
cmp word [rbx], 0
jne 0x14003f460
test rax, rax
je 0x1400578b6
mov rcx, rbx
add rdi, 1
add rsi, 2
call sub.msvcrt.dll_wcslen
mov r8d, 2
mov rdx, r12
mov byte [rsp + 0x2e], bpl
lea rcx, [rbx + rax*2]
mov byte [rsp + 0x2f], 0
call sub.msvcrt.dll_mbstowcs
movzx ebp, byte [rdi]
test bpl, bpl
jne 0x14003f448
lea rbx, [rsp + 0x80]
mov r8d, 0x10000
mov rcx, r14
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea edx, [rax - 1]
xor eax, eax
cmp edx, 0xffff
ja 0x14003f4da
mov rcx, rbx
call sub.msvcrt.dll__wcsdup
add rsp, 0x10080
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
pop r13
pop r14
ret
Function at 0x140045670
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.140056e00
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.140056e00
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 0x140046342
Capabilities:
Get thread local storage value

Disassembly:
push rbp
mov rbp, rsp
sub rsp, 0x30
mov eax, dword [0x14006d7c8]
test eax, eax
je 0x1400463da
lea rax, [0x14006d7a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_EnterCriticalSection]
call rax
mov rax, qword [0x14006d7d0]
mov qword [rbp - 8], rax
jmp 0x1400463be
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 0x1400463b2
cmp qword [rbp - 0x10], 0
je 0x1400463b2
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 0x140046378
lea rax, [0x14006d7a0]
mov rcx, rax
mov rax, qword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
call rax
jmp 0x1400463db
nop
add rsp, 0x30
pop rbp
ret

Function at 0x1400464e0
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 0x140046508
mov eax, 0
jmp 0x140046556
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 0x140046531
mov eax, 0
jmp 0x140046556
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 0x140046551
mov eax, 0
jmp 0x140046556
mov eax, 1
add rsp, 0x20
pop rbp
ret
Function at 0x14004655c
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 0x1400465da
mov rax, qword [rbp - 8]
mov eax, dword [rax + 0xc]
mov eax, eax
cmp qword [rbp + 0x18], rax
jb 0x1400465d1
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 0x1400465d1
mov rax, qword [rbp - 8]
jmp 0x1400465ef
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 0x1400465a4
mov eax, 0
add rsp, 0x20
pop rbp
ret
Function at 0x140006820
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x68
mov rbx, r8
mov r15d, edx
mov rsi, rcx
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0x60], rax
lea rdi, [rcx + 0x28]
mov rcx, rdi
call fcn.140006700
xor ebp, ebp
cmp rbx, 0x7fffffff
ja 0x140006868
test al, al
je 0x140006868
cmp qword [rsi + 0x58], 0
je 0x140006884
xor ebp, ebp
mov rcx, qword [rsp + 0x60]
xor rcx, rsp
call fcn.1400365a0
mov eax, ebp
add rsp, 0x68
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
cmp byte [rsi], 0
je 0x14000690d
mov rcx, rdi
call fcn.140006710
mov r14, rax
mov rbp, qword [0x14003f2b0]
test rbp, rbp
jne 0x1400068cb
lea rcx, str.ntdll.dll
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
lea rdx, str.NtQuerySection
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rbp, rax
mov qword [0x14003f2b0], rax
xorps xmm0, xmm0
movaps xmmword [rsp + 0x30], xmm0
mov qword [rsp + 0x40], 0
mov qword [rsp + 0x20], 0
lea r8, [rsp + 0x30]
mov rcx, r14
xor edx, edx
mov r9d, 0x18
call rbp
test eax, eax
jne 0x140006866
test dword [rsp + 0x38], 0x1000000
jne 0x140006866
mov r14d, r15d
sar r14d, 0x1f
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140006710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
jne 0x140006984
xor eax, eax
cmp byte [rsi + 0x60], 0
sete al
lea ebp, [rax + rax]
add ebp, 4
mov rcx, rdi
call fcn.140006710
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov edx, ebp
mov r8d, r14d
mov r9d, r15d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsi + 0x58], rax
test rax, rax
je 0x140006866
mov rbp, rax
lea rdx, [rsp + 0x30]
mov r8d, 0x30
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
jne 0x1400069a4
xor eax, eax
jmp 0x1400069b1
mov rax, qword [rsp + 0x48]
sub rax, rbp
add rax, qword [rsp + 0x38]
mov qword [rsi + 0x50], rax
lea rdx, [rsp + 0x30]
mov rcx, rdi
call fcn.1400066a0
movups xmm0, xmmword [rsp + 0x30]
movups xmmword [rsi + 0x70], xmm0
call fcn.1400069e0
mov bpl, 1
jmp 0x140006868

Function at 0x140006a40
Capabilities:
Check if file exists

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0x28
cmp qword [rcx], rdx
je 0x140006ab4
mov rdi, rdx
mov rsi, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
mov rcx, rsi
call fcn.140006ad0
lea rax, [rdi + 1]
cmp rax, 2
jb case.default.0x140006aad
mov qword [rsi], rdi
call fcn.140006670
mov rbx, rax
mov r15, qword [rsp + 0x58]
call sym.plugin_container.exe_GetHandleVerifier
mov rbp, qword [rax]
mov qword [rsp + 0x20], rbx
mov rcx, rax
mov rdx, rdi
mov r8, rsi
mov r9, r15
call qword [rbp + 8]
mov ecx, r14d
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
jmp qword [sym.imp.KERNEL32.dll_SetLastError]
nop
add rsp, 0x28
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
sti
or byte [rcx], bl
outsd dx, dword [rsi]
retf 0xb43f
hlt
xchg rdx, rax
xchg edx, eax
iretd
Function at 0x14001ff50
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0xb8], rax
mov ebx, 0xc000000d
test r9d, r9d
jne 0x14001ff98
mov rdi, r8
mov rsi, rdx
call fcn.14002e0a0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ebx, 0xc0000022
cmp dword [rax], 2
jge 0x14001ffb9
mov rcx, qword [rsp + 0xb8]
xor rcx, rsp
call fcn.1400365a0
mov eax, ebx
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140028190
test al, al
je 0x14001ff98
mov r15, qword [0x140040e98]
test r15, r15
je 0x14001ff98
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1000
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rcx, [rsp + 0x50]
mov rdx, rax
call int.140006a40
mov r14, qword [rsp + 0x50]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x140020042
mov qword [rsp + 0x20], 0x1000
mov rcx, r14
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0x50]
mov ebx, 0xc000000d
lea rax, [r14 + 1]
cmp rax, 2
jae 0x140020070
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140020061
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsp + 0x50]
call fcn.140006ad0
jmp 0x14001ff98
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x140020051
mov r8d, 0x1000
mov rdx, rdi
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x40], r15
add r15, qword [r15 + 0x10]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rsi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov edx, 0x1e
call fcn.140020110
mov ebx, 0xc0000022
test eax, eax
jne 0x140020051
mov ebx, dword [rsp + 0x68]
jmp 0x140020051
Function at 0x1400201d0
Capabilities:
Read file via mapping

Disassembly:
push r15
push r14
push rsi
push rdi
push rbp
push rbx
sub rsp, 0xc8
mov rsi, r9
mov rbx, r8
mov rdi, rdx
mov rax, qword [0x14003f010]
xor rax, rsp
mov qword [rsp + 0xc0], rax
call fcn.14002e0a0
mov rdx, qword [rax]
mov rcx, rax
call qword [rdx + 0x10]
mov ebp, 0xc0000022
cmp dword [rax], 2
jge 0x140020234
mov rcx, qword [rsp + 0xc0]
xor rcx, rsp
call fcn.1400365a0
mov eax, ebp
add rsp, 0xc8
pop rbx
pop rbp
pop rdi
pop rsi
pop r14
pop r15
ret
call fcn.140028190
test al, al
je 0x140020212
mov r15, qword [0x140040e98]
test r15, r15
je 0x140020212
xorps xmm0, xmm0
movaps xmmword [rsp + 0x50], xmm0
mov qword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0x1010
mov rcx, 0xffffffffffffffff
xor edx, edx
mov r8d, 0x8000004
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_CreateFileMappingW]
lea rcx, [rsp + 0x50]
mov rdx, rax
call int.140006a40
mov r14, qword [rsp + 0x50]
lea rax, [r14 + 1]
cmp rax, 2
jb 0x1400202bd
mov qword [rsp + 0x20], 0x1010
mov rcx, r14
mov edx, 6
xor r8d, r8d
xor r9d, r9d
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov qword [rsp + 0x58], rax
mov r14, qword [rsp + 0x50]
mov ebp, 0xc000000d
lea rax, [r14 + 1]
cmp rax, 2
jae 0x1400202eb
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400202dc
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
lea rcx, [rsp + 0x50]
call fcn.140006ad0
jmp 0x140020212
mov rcx, qword [rsp + 0x58]
test rcx, rcx
je 0x1400202cc
mov r8d, 0x1010
mov rdx, rbx
call sub.VCRUNTIME140.dll_memcpy
xorps xmm0, xmm0
movaps xmmword [rsp + 0xa0], xmm0
movaps xmmword [rsp + 0x90], xmm0
movaps xmmword [rsp + 0x80], xmm0
movaps xmmword [rsp + 0x70], xmm0
movaps xmmword [rsp + 0x60], xmm0
mov qword [rsp + 0xb0], 0
mov qword [rsp + 0x40], r15
add r15, qword [r15 + 0x10]
mov qword [rsp + 0x48], r15
mov qword [rsp + 0x38], r14
mov qword [rsp + 0x30], rdi
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x40]
lea r8, [rsp + 0x30]
lea r9, [rsp + 0x38]
mov edx, 0x1f
call fcn.140020110
mov ebp, 0xc0000022
test eax, eax
jne 0x1400202cc
mov ebp, dword [rsp + 0x68]
test ebp, ebp
jne 0x1400202cc
mov rdx, qword [rsp + 0x58]
mov r8d, 0x1000
mov rcx, rsi
call sub.VCRUNTIME140.dll_memcpy
xor ebp, ebp
jmp 0x1400202cc
Function at 0x140001850
Capabilities:
Terminate process

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
push r15
sub rsp, 0xb0
xor r14d, r14d
mov dword [rsp + 0x20], r14d
lea rcx, [rax - 0x78]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoW]
nop
mov rax, qword gs:[0x30]
mov rbx, qword [rax + 8]
mov esi, r14d
xor eax, eax
lock cmpxchg qword [0x1400a7c10], rbx
je 0x1400018b7
cmp rax, rbx
jne 0x1400018aa
mov edi, 1
mov esi, edi
jmp 0x1400018bc
mov ecx, 0x3e8
call qword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x14000188f
mov edi, 1
mov eax, dword [0x1400a7c18]
cmp eax, edi
jne 0x1400018d4
mov ebx, 0x1f
mov ecx, ebx
call sub.msvcrt.dll__amsg_exit
jmp 0x14000194a
mov eax, dword [0x1400a7c18]
test eax, eax
jne 0x14000193f
mov dword [0x1400a7c18], edi
lea r15, [0x140091498]
lea rbx, [0x140091480]
mov qword [rsp + 0x30], rbx
mov eax, r14d
mov dword [rsp + 0x24], eax
cmp rbx, r15
jae 0x140001931
test eax, eax
jne 0x140001935
cmp qword [rbx], r14
je 0x140001926
movabs r10, 0xd30527475e523070
mov rax, qword [rbx]
mov rcx, qword [0x1400913f0]
call rcx
mov dword [rsp + 0x24], eax
add rbx, 8
mov qword [rsp + 0x30], rbx
jmp 0x1400018fe
test eax, eax
je 0x140001945
mov eax, 0xff
jmp 0x140001aab
mov dword [0x1400a6cd4], edi
mov ebx, 0x1f
mov eax, dword [0x1400a7c18]
cmp eax, edi
jne 0x140001971
lea rdx, [0x140091478]
lea rcx, [0x140091408]
call sub.msvcrt.dll__initterm
mov dword [0x1400a7c18], 2
test esi, esi
jne 0x14000197f
mov rax, r14
xchg qword [0x1400a7c10], rax
cmp qword [0x1400a7c30], r14
je 0x1400019bc
lea rcx, [0x1400a7c30]
call fcn.140002330
test eax, eax
je 0x1400019bc
movabs r10, 0x99012e4578d92870
xor r8d, r8d
lea edx, [r8 + 2]
xor ecx, ecx
mov rax, qword [0x1400a7c30]
mov r9, qword [0x1400913f0]
call r9
mov rax, qword [sym.imp.msvcrt.dll__wcmdln]
mov rcx, qword [rax]
test rcx, rcx
jne 0x1400019d5
mov eax, 0xff
jmp 0x140001aab
mov qword [rsp + 0x28], rcx
mov edx, dword [rsp + 0x20]
movzx eax, word [rcx]
cmp ax, 0x20
ja 0x140001a5c
test ax, ax
je 0x1400019f0
test edx, edx
jne 0x140001a5c
sub ax, di
cmp ax, bx
ja 0x140001a06
add rcx, 2
mov qword [rsp + 0x28], rcx
movzx eax, word [rcx]
jmp 0x1400019f0
test byte [rsp + 0x7c], dil
movzx eax, word [rsp + 0x80]
mov r9d, 0xa
cmovne r9d, eax
mov r8, rcx
xor edx, edx
lea rcx, [0x140000000]
call fcn.140028e28
mov dword [0x1400a6cd0], eax
cmp dword [0x1400a6cf0], r14d
jne 0x140001a45
mov ecx, eax
call qword [sym.imp.msvcrt.dll_exit]
cmp dword [0x1400a6cd4], r14d
jne 0x140001a5a
call qword [sym.imp.msvcrt.dll__cexit]
mov eax, dword [0x1400a6cd0]
jmp 0x140001aab
cmp ax, 0x22
jne 0x140001a70
mov eax, r14d
test edx, edx
sete al
mov edx, eax
mov dword [rsp + 0x20], eax
add rcx, 2
mov qword [rsp + 0x28], rcx
jmp 0x1400019de
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x18]
mov rdi, qword [r11 + 0x20]
mov r14, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
sub rsp, 0x28
call fcn.14013c000
add rsp, 0x28
jmp 0x140001850
Function at 0x14000221c
Capabilities:
Parse pe header

Disassembly:
sub rsp, 0x18
xor edx, edx
lea rax, [rcx - 1]
cmp rax, 0xfffffffffffffffd
ja 0x140002268
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x140002260
cmp dword [rcx + 0x3c], edx
jl 0x140002260
cmp dword [rcx + 0x3c], 0x10000000
jae 0x140002260
movsxd rax, dword [rcx + 0x3c]
add rax, rcx
mov qword [rsp], rax
cmp dword [rax], 0x4550
cmovne rax, rdx
mov rdx, rax
mov qword [rsp], rax
jmp 0x140002268
mov rax, rdx
add rsp, 0x18
ret

Function at 0x140002390
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x1400023b8
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x1400023b8
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret
Function at 0x140006314
Capabilities:
Create directory

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r15
sub rsp, 0x250
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x240], rax
mov rdi, qword [rsp + 0x2a0]
mov rsi, r9
mov ebx, r8d
mov rbp, rdx
mov rcx, qword [str._0_n_]
lea r15, str._0_n_
lea r12, [0x140092c30]
cmp rcx, r15
je 0x140006381
test byte [rcx + 0x1c], 4
je 0x140006381
cmp byte [rcx + 0x19], 5
jb 0x140006381
mov rcx, qword [rcx + 0x10]
mov edx, 0xed
mov r8, r12
call fcn.14000459c
lea rcx, str.Inbox
test ebx, ebx
lea rax, str.SentItems
mov r9, rbp
cmove rax, rcx
lea r8, [0x140092720]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x20], rax
mov edx, 0x104
call fcn.140004520
mov ebx, eax
test eax, eax
jns 0x1400063ff
mov rcx, qword [str._0_n_]
cmp rcx, r15
je 0x1400063e5
test byte [rcx + 0x1c], 4
je 0x1400063e5
cmp byte [rcx + 0x19], 2
jb 0x1400063e5
mov rcx, qword [rcx + 0x10]
mov edx, 0xee
mov r9d, eax
mov r8, r12
call fcn.1400045c8
mov eax, ebx
and eax, 0x1fff0000
cmp eax, 0x70000
jne 0x1400064eb
movzx ebx, bx
jmp 0x1400064eb
mov rdx, rsi
lea rcx, [rsp + 0x30]
call qword [sym.imp.KERNEL32.dll_CreateDirectoryW]
nop dword [rax + rax]
test eax, eax
jne 0x1400064de
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0xb7
jne 0x1400064aa
mov rcx, qword [str._0_n_]
cmp rcx, r15
je 0x14000645c
test byte [rcx + 0x1c], 4
je 0x14000645c
cmp byte [rcx + 0x19], 5
jb 0x14000645c
mov rcx, qword [rcx + 0x10]
lea edx, [rax + 0x38]
lea r9, [rsp + 0x30]
mov r8, r12
call fcn.140004764
lea rdx, [rsp + 0x30]
call fcn.14000ba50
test eax, eax
jne 0x1400064a6
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, r15
je 0x1400064eb
test byte [rcx + 0x1c], 4
je 0x1400064eb
cmp byte [rcx + 0x19], 2
jb 0x1400064eb
mov rcx, qword [rcx + 0x10]
mov edx, 0xf0
mov r9d, eax
mov r8, r12
call fcn.140004900
jmp 0x1400064eb
xor eax, eax
jmp 0x1400064e3
mov rcx, qword [str._0_n_]
cmp rcx, r15
je 0x1400064eb
test byte [rcx + 0x1c], 4
je 0x1400064eb
cmp byte [rcx + 0x19], 2
jb 0x1400064eb
mov rcx, qword [rcx + 0x10]
lea r9, [rsp + 0x30]
mov edx, 0xf1
mov dword [rsp + 0x20], eax
mov r8, r12
call fcn.14000c804
jmp 0x1400064eb
mov eax, 1
xor ebx, ebx
cmp dword [rdi], ebx
je 0x1400064eb
mov dword [rdi], eax
mov eax, ebx
mov rcx, qword [rsp + 0x240]
xor rcx, rsp
call fcn.140001b10
mov rbx, qword [rsp + 0x280]
add rsp, 0x250
pop r15
pop r12
pop rdi
pop rsi
pop rbp
ret
Function at 0x140008aac
Capabilities:
Enumerate files on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r14
sub rsp, 0x290
mov rax, qword [0x1400a3ac8]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov r14, r8
mov rdi, rdx
xor ebp, ebp
mov rcx, qword [str._0_n_]
lea r12, str._0_n_
cmp rcx, r12
je 0x140008b0d
test byte [rcx + 0x1c], 4
je 0x140008b0d
cmp byte [rcx + 0x19], 5
jb 0x140008b0d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, 0xfa
call fcn.14000459c
lea rdx, [rsp + 0x30]
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FindFirstFileW]
nop dword [rax + rax]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x140008b97
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x140008b6d
test byte [rcx + 0x1c], 4
je 0x140008b6d
cmp byte [rcx + 0x19], 3
jb 0x140008b6d
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, 0xfb
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.14000c964
mov eax, ebx
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.140001b10
mov rbx, qword [rsp + 0x2c0]
add rsp, 0x290
pop r14
pop r12
pop rdi
pop rsi
pop rbp
ret
mov ecx, dword [rsp + 0x4c]
lea rdx, [rsp + 0x30]
mov eax, dword [rsp + 0x50]
shl rcx, 0x20
or rcx, rax
add rbp, rcx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindNextFileW]
nop dword [rax + rax]
test eax, eax
jne 0x140008b97
call qword [sym.imp.KERNEL32.dll_GetLastError]
nop dword [rax + rax]
mov ebx, eax
cmp eax, 0x12
je 0x140008c09
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x140008c09
test byte [rcx + 0x1c], 4
je 0x140008c09
cmp byte [rcx + 0x19], 2
jb 0x140008c09
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, 0xfc
mov qword [rsp + 0x20], rdi
mov r9d, eax
call fcn.14000c964
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FindClose]
nop dword [rax + rax]
test eax, eax
jne 0x140008c51
mov rcx, qword [str._0_n_]
cmp rcx, r12
je 0x140008c51
test byte [rcx + 0x1c], 4
je 0x140008c51
cmp byte [rcx + 0x19], 2
jb 0x140008c51
mov rcx, qword [rcx + 0x10]
lea r8, [0x140092c30]
mov edx, 0xfd
mov qword [rsp + 0x20], rdi
mov r9d, ebx
call fcn.14000c964
cmp ebx, 0x12
jne 0x140008b6d
mov qword [r14], rbp
xor eax, eax
jmp 0x140008b6f