joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000e170
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov rdx, qword [0x1400283d0]
xor eax, eax
cmp word [rdx], 0x5a4d
jne 0x14000e190
movsxd r8, dword [rdx + 0x3c]
add r8, rdx
cmp dword [r8], 0x4550
je 0x14000e198
ret
cmp word [r8 + 0x18], 0x20b
jne 0x14000e190
movzx eax, word [r8 + 0x14]
sub rcx, rdx
movzx edx, word [r8 + 6]
lea rax, [r8 + rax + 0x18]
test edx, edx
je 0x14000e1e5
sub edx, 1
lea rdx, [rdx + rdx*4]
lea r9, [rax + rdx*8 + 0x28]
nop dword [rax + rax]
mov r8d, dword [rax + 0xc]
mov rdx, r8
cmp rcx, r8
jb 0x14000e1dc
add edx, dword [rax + 8]
cmp rcx, rdx
jb 0x14000e190
add rax, 0x28
cmp rax, r9
jne 0x14000e1c8
xor eax, eax
ret

Function at 0x14000e1f0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400283d0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000e210
movsxd rdx, dword [rax + 0x3c]
add rax, rdx
cmp dword [rax], 0x4550
je 0x14000e218
mov eax, r8d
ret
cmp word [rax + 0x18], 0x20b
jne 0x14000e210
movzx r8d, word [rax + 6]
mov eax, r8d
ret

Function at 0x14000e2a0
Capabilities:
Parse pe header

Disassembly:
mov rax, qword [0x1400283d0]
xor r8d, r8d
cmp word [rax], 0x5a4d
jne 0x14000e2c0
movsxd rdx, dword [rax + 0x3c]
add rdx, rax
cmp dword [rdx], 0x4550
je 0x14000e2c8
mov rax, r8
ret
cmp word [rdx + 0x18], 0x20b
cmove r8, rax
mov rax, r8
ret

Function at 0x14000fa90
Capabilities:
Allocate thread local storage

Disassembly:
push rsi
push rbx
sub rsp, 0x28
mov rsi, qword [0x1400284a0]
mov rax, qword [rsi]
test rax, rax
je 0x14000fb20
cmp qword [rax + 0x30], 0
jne 0x14000fb40
lea rbx, [0x140021088]
mov qword [rax + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [rbx], eax
mov rax, qword [rsi]
test rax, rax
je 0x14000faf0
cmp qword [rax + 0x30], 0
jne 0x14000fb10
lea rdx, [0x140021088]
mov qword [rax + 0x30], rdx
mov rax, rdx
cmp dword [rax], 0xffffffff
je 0x140020790
add rsp, 0x28
pop rbx
pop rsi
ret
call fcn.140014990
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x14000fad2
test rax, rax
jne 0x14000fb10
call fcn.140014990
nop dword [rax]
mov rax, qword [rax + 0x30]
jmp 0x14000fae0
call fcn.140014990
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x14000fab0
test rax, rax
jne 0x14000fb40
call fcn.140014990
nop dword [rax]
mov rbx, qword [rax + 0x30]
jmp 0x14000fabb
call sub.msvcrt.dll_abort
nop
call sub.msvcrt.dll_abort
nop
mov rax, qword [pe_dos_header]
ud2
Function at 0x14000fb50
Capabilities:
Print debug messages

Disassembly:
sub rsp, 0x98
movabs rax, 0x6c6320726f727245
movabs rdx, 0x7520676e696e6165
mov qword [rsp + 0x20], rax
movabs rax, 0x6b5f6e6970732070
mov qword [rsp + 0x28], rdx
movabs rdx, 0x20726f6620737965
mov qword [rsp + 0x30], rax
movabs rax, 0x20646165726874
mov qword [rsp + 0x38], rdx
xor edx, edx
mov qword [rsp + 0x40], rax
xor eax, eax
mov qword [rsp + 0x48], rdx
mov qword [rsp + 0x50], 0
mov qword [rsp + 0x58], 0
mov qword [rsp + 0x60], 0
mov qword [rsp + 0x68], 0
mov qword [rsp + 0x70], 0
mov qword [rsp + 0x78], 0
mov qword [rsp + 0x80], 0
mov word [rsp + 0x88], ax
mov byte [rsp + 0x8a], 0
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea rdx, [rsp + 0x47]
mov r8d, 0xa
mov ecx, eax
call qword [sym.imp.msvcrt.dll__ultoa]
cmp byte [rsp + 0x47], 0
je 0x14000fc62
mov eax, 0x28
lea rcx, [rsp + 0x20]
jmp 0x14000fc3a
add rax, 1
cmp rax, 0x6b
je 0x14000fc57
cmp byte [rcx + rax], 0
movsxd rdx, eax
jne 0x14000fc30
cmp edx, 0x6a
je 0x14000fc57
lea eax, [rdx + 1]
cdqe
mov byte [rsp + rdx + 0x20], 0xa
mov byte [rsp + rax + 0x20], 0
call qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call sub.msvcrt.dll_abort
mov eax, 0x28
mov edx, 0x27
lea rcx, [rsp + 0x20]
jmp 0x14000fc4b
Function at 0x140010670
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push r12
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x40
mov rsi, qword [0x1400284a0]
mov rax, qword [rsi]
test rax, rax
je 0x140010860
cmp qword [rax + 0x28], 0
jne 0x140010848
lea rcx, [0x1400334b8]
cmp dword [rcx], 1
mov qword [rax + 0x28], rcx
je 0x140010855
call fcn.14000fc80
mov rax, qword [rsi]
test rax, rax
je 0x1400106f0
cmp qword [rax + 0x30], 0
jne 0x140010710
lea rdx, [0x140021088]
mov qword [rax + 0x30], rdx
mov rax, rdx
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
je 0x140010724
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
call fcn.140014990
cmp qword [rax + 0x30], 0
mov rax, qword [rsi]
je 0x1400106c0
test rax, rax
jne 0x140010710
call fcn.140014990
nop dword [rax]
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
call qword [sym.imp.KERNEL32.dll_TlsGetValue]
mov r12, rax
test rax, rax
jne 0x1400106de
call fcn.14000f7c0
cmp qword [0x140037050], 0
mov rbx, rax
je 0x1400106de
test rax, rax
je 0x1400106de
mov dword [rax + 0x44], 1
call qword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor ecx, ecx
xor r9d, r9d
xor r8d, r8d
mov dword [rbx + 0x70], eax
mov edx, 1
call qword [sym.imp.KERNEL32.dll_CreateEventA]
mov qword [rbx + 0x38], 0xffffffffffffffff
lea rcx, [rbx + 0x68]
mov qword [rbx + 0x30], rax
call fcn.140016830
cmp eax, 1
je 0x1400108cd
mov rbp, qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov qword [rbx + 0x68], 0xffffffffffffffff
mov dword [rbx + 0xb8], 0
mov qword [rbx + 0x28], 0
call rbp
mov rdi, rax
call qword [sym.imp.KERNEL32.dll_GetCurrentThread]
mov r12, rax
call rbp
mov dword [rsp + 0x30], 2
mov r8, rdi
mov rdx, r12
mov dword [rsp + 0x28], 0
mov rcx, rax
lea r9, [rbx + 0x28]
mov dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x140020796
mov rcx, qword [rbx + 0x28]
call qword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [rbx + 0xbc], 0
mov dword [rbx + 0xc0], eax
movzx eax, byte [rbx + 0x40]
and eax, 0xffffffcf
or eax, 0x10
mov byte [rbx + 0x40], al
mov rax, qword [rsi]
test rax, rax
je 0x1400108a8
cmp qword [rax + 0x30], 0
je 0x140010890
mov rax, qword [rax + 0x30]
mov ecx, dword [rax]
mov rdx, rbx
call qword [sym.imp.KERNEL32.dll_TlsSetValue]
test eax, eax
je 0x140020796
mov r12, rbx
mov rax, r12
add rsp, 0x40
pop rbx
pop rsi
pop rdi
pop rbp
pop r12
ret
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400106ac
mov rax, qword [rsi]
jmp 0x1400106b9
call fcn.140014990
cmp qword [rax + 0x28], 0
mov rax, qword [rsi]
je 0x140010698
test rax, rax
jne 0x140010848
call fcn.140014990
mov rcx, qword [rax + 0x28]
cmp dword [rcx], 1
jne 0x1400106ac
jmp 0x1400106b1
lea rdx, [0x140021088]
mov qword [rax + 0x30], rdx
mov rax, rdx
jmp 0x14001081e
call fcn.140014990
mov r8, rax
mov rax, qword [rsi]
cmp qword [r8 + 0x30], 0
je 0x140010890
test rax, rax
jne 0x14001081a
call fcn.140014990
jmp 0x14001081a
call fcn.14000fb50
nop word cs:[rax + rax]
nop dword [rax]
mov rax, qword [0x1400284a0]
mov rdx, qword [rax]
lea rax, [0x1400334c8]
mov qword [rdx + 0x10], rax
ret
Function at 0x140014810
Capabilities:
Print debug messages

Disassembly:
push r12
push rbx
sub rsp, 0x58
mov r12, rcx
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x140014830
add rsp, 0x58
pop rbx
pop r12
ret
lea rdx, [rsp + 0x48]
mov r9d, 0x400
mov r8d, eax
mov qword [rsp + 0x30], 0
mov qword [rsp + 0x20], rdx
mov ecx, 0x1100
xor edx, edx
mov dword [rsp + 0x28], 0
call qword [sym.imp.KERNEL32.dll_FormatMessageA]
test eax, eax
jne 0x140014878
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x140014824
int3
mov rcx, qword [rsp + 0x48]
mov rbx, qword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call rbx
mov rcx, r12
call rbx
mov rcx, qword [rsp + 0x48]
call qword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x140014865
Function at 0x140014990
Capabilities:
Check mutex on windows

Disassembly:
push r12
push rsi
push rbx
sub rsp, 0x30
call qword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
lea rdx, [0x1400335a0]
mov dword [rsp + 0x2c], eax
lea rcx, [rsp + 0x2c]
lea r9, [rsp + 0x30]
movzx eax, byte [rcx]
add rcx, 1
add rdx, 2
mov r8d, eax
and eax, 0xf
shr r8b, 4
add eax, 0x61
add r8d, 0x41
mov byte [rdx - 1], al
mov byte [rdx - 2], r8b
cmp rcx, r9
jne 0x1400149b3
lea rax, [0x1400335a8]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x1a]
jmp 0x1400149fb
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x1400149f8
lea rax, [0x1400335e0]
mov ecx, 0x5f
lea rdx, str.__shmem3_winpthreads_tdm_
lea r8, [rax + 0x19]
jmp 0x140014a2b
movzx ecx, byte [rdx]
add rax, 1
add rdx, 1
mov byte [rax - 1], cl
cmp rax, r8
jne 0x140014a28
xor ecx, ecx
mov byte [0x1400335f9], 0x2d
movabs rax, 0x6161616161616161
movabs rdx, 0x6161616161616161
mov qword [0x140033602], rdx
lea r8, [0x1400335a0]
lea rbx, [0x1400335fa]
mov qword [0x140033612], rdx
mov qword [0x140033622], rdx
mov qword [0x140033632], rdx
xor edx, edx
mov qword [0x1400335fa], rax
mov qword [0x14003360a], rax
mov qword [0x14003361a], rax
mov qword [0x14003362a], rax
mov byte [0x14003363a], 0
call qword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edx, 0xffffffff
mov r12, rax
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x140014c06
lea rcx, [0x1400335e0]
call qword [sym.imp.KERNEL32.dll_FindAtomA]
test ax, ax
jne 0x140014b51
lea rsi, [0x1400334e0]
lea r8, [0x14003363a]
mov rax, rbx
lea ecx, [rbx + 0x40]
nop dword [rax]
mov edx, ecx
sub edx, eax
bt rsi, rdx
jae 0x140014afd
mov byte [rax], 0x41
add rax, 1
cmp r8, rax
jne 0x140014af0
lea rcx, [0x1400335e0]
call qword [sym.imp.KERNEL32.dll_AddAtomA]
test ax, ax
je 0x140014bf3
lea rcx, [0x1400148a0]
mov qword [0x1400334e0], rsi
call sub.msvcrt.dll__onexit
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [0x1400334e0]
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
mov r8d, 0x5b
lea rdx, [0x1400335e0]
movzx ecx, ax
call qword [sym.imp.KERNEL32.dll_GetAtomNameA]
lea r8, [0x14003363a]
xor edx, edx
lea r10d, [rbx + 0x40]
mov r11d, eax
mov r9d, 1
mov rax, rbx
test r11d, r11d
je 0x140014c26
nop dword [rax]
cmp byte [rax], 0x41
jne 0x140014ba3
mov ecx, r10d
mov rbx, r9
sub ecx, eax
shl rbx, cl
or rdx, rbx
add rax, 1
cmp r8, rax
jne 0x140014b90
mov rax, rdx
mov qword [0x1400334e0], rax
lea rsi, [0x1400334e0]
jmp 0x140014bc9
cmp rdx, rsi
je 0x140014b2f
mov rdx, rax
mov rax, qword [rax + 8]
test rax, rax
jne 0x140014bc0
cmp rdx, rsi
je 0x140014b2f
mov qword [rdx + 8], rsi
lea rcx, [0x1400148a0]
call sub.msvcrt.dll__onexit
jmp 0x140014b2f
lea rcx, str.failed_to_add_string_to_atom_table_n
call fcn.140014810
xor eax, eax
jmp 0x140014b48
lea rcx, str.failed_to_to_lock_creation_mutex_n
call fcn.140014810
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
add rsp, 0x30
pop rbx
pop rsi
pop r12
ret
lea rcx, str.failed_to_get_string_from_atom_n
call fcn.140014810
xor eax, eax
jmp 0x140014baf
Function at 0x18066b058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.18066b1df
push r10
mov r10, rsp
push r10
mov rsi, qword [r10 + 0x10]
mov rdi, qword [r10 + 0x20]
cld
mov dl, 0x80
mov al, byte [rsi]
inc rsi
mov byte [rdi], al
inc rdi
mov ebx, 2
add dl, dl
jne 0x18066b089
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18066b06f
add dl, dl
jne 0x18066b096
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18066b0f6
xor eax, eax
add dl, dl
jne 0x18066b0a5
mov dl, byte [rsi]
inc rsi
adc dl, dl
jae 0x18066b1ad
add dl, dl
jne 0x18066b0b6
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066b0c3
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066b0d0
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066b0dd
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
je 0x18066b0ea
push rdi
mov eax, eax
sub rdi, rax
mov al, byte [rdi]
pop rdi
mov byte [rdi], al
inc rdi
mov ebx, 2
jmp 0x18066b07e
mov eax, 1
add dl, dl
jne 0x18066b106
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x18066b113
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18066b0fb
sub eax, ebx
mov ebx, 1
jne 0x18066b14c
mov ecx, 1
add dl, dl
jne 0x18066b12e
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18066b13b
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18066b123
push rsi
mov rsi, rdi
sub rsi, rbp
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066b07e
dec eax
shl eax, 8
mov al, byte [rsi]
inc rsi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x18066b168
mov dl, byte [rsi]
inc rsi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x18066b175
mov dl, byte [rsi]
inc rsi
adc dl, dl
jb 0x18066b15d
cmp eax, 0x7d00
jae 0x18066b19b
cmp eax, 0x500
jb 0x18066b196
inc ecx
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066b07e
cmp eax, 0x7f
ja 0x18066b19e
add ecx, 2
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
jmp 0x18066b07e
mov al, byte [rsi]
inc rsi
xor ecx, ecx
shr al, 1
je 0x18066b1d2
adc ecx, 2
mov ebp, eax
push rsi
mov rsi, rdi
sub rsi, rax
rep movsb byte [rdi], byte [rsi]
pop rsi
mov ebx, 1
jmp 0x18066b07e
pop r10
sub rdi, qword [r10 + 0x20]
mov eax, edi
pop r10
ret 0x20
Function at 0x14000a7f0
Capabilities:
Encode data using xor

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r14
movsxd r10, dword [rcx + 0xc]
mov r14, rdx
movsxd rbx, r8d
mov r9, rcx
test r8d, r8d
jle 0x14000a84d
mov rdi, qword [rcx]
mov r11, r10
movsxd rsi, dword [rcx + 8]
xor edx, edx
mov al, byte [r14 + rdx]
lea rcx, [r11 + 1]
xor byte [r11 + rdi], al
lea eax, [r10 + 1]
xor r10d, r10d
cmp rcx, rsi
cmovl r10d, eax
xor r11d, r11d
inc rdx
cmp rcx, rsi
cmovl r11, rcx
cmp rdx, rbx
jl 0x14000a821
add dword [r9 + 0x10], r8d
mov rbx, qword [rsp + 8]
mov rsi, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov r14, qword [rsp + 0x20]
mov dword [r9 + 0xc], r10d
ret
Function at 0x140038c2c
Capabilities:
Reference sql statements

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
push rdi
sub rsp, 0x30
mov ebx, r8d
lea r9, str.sqlite_master
mov dword [rax - 0x10], ebx
mov rdi, rdx
mov qword [rax - 0x18], rdx
mov r8, rdx
lea rdx, str.SELECT_1_FROM___w_._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name___d_NULL
mov rsi, rcx
call fcn.14003d768
test ebx, ebx
jne 0x140038c7f
mov r9, rdi
lea r8, str.sqlite_master
lea rdx, str.SELECT_1_FROM_temp._s_WHERE_name_NOT_LIKE_sqliteX____ESCAPE_X_AND_sql_NOT_LIKE_create_virtual___AND_sqlite_rename_test__Q__sql__type__name__1_NULL
mov rcx, rsi
call fcn.14003d768
mov rbx, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x30
pop rdi
ret
Function at 0x140077d90
Capabilities:
Create process on windows
Spoof parent pid

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rdi
push rbp
lea rbp, [rsp - 0x57]
sub rsp, 0x100
mov rax, qword [section..data]
xor rax, rsp
mov qword [rbp + 0x47], rax
mov rdi, rdx
mov qword [rbp - 0x51], rcx
xor edx, edx
mov qword [rbp - 0x59], 0x30
lea rcx, [rbp - 0x21]
mov ebx, 0xc0000001
lea r8d, [rdx + 0x68]
call sub.ntdll.dll_memset
xor eax, eax
mov dword [rbp - 0x29], 0x70
xorps xmm0, xmm0
mov qword [rbp - 0x39], rax
movups xmmword [rbp - 0x49], xmm0
lea ecx, [rax + 0x30]
call fcn.1400a04cc
mov qword [rbp + 0x3f], rax
test rax, rax
je 0x140077ed0
xor r8d, r8d
lea r9, [rbp - 0x59]
mov rcx, rax
lea edx, [r8 + 1]
call qword [sym.imp.KERNEL32.dll_InitializeProcThreadAttributeList]
test eax, eax
je 0x140077eb8
and qword [rsp + 0x30], 0
lea r9, [rbp - 0x51]
and qword [rsp + 0x28], 0
xor edx, edx
mov rcx, qword [rbp + 0x3f]
mov r8d, 0x20000
mov qword [rsp + 0x20], 8
call qword [sym.imp.KERNEL32.dll_UpdateProcThreadAttribute]
test eax, eax
je 0x140077eb8
mov eax, 5
mov dword [rbp + 0x13], 1
mov word [rbp + 0x17], ax
xor r9d, r9d
lea rax, [rbp - 0x49]
xor r8d, r8d
mov qword [rsp + 0x48], rax
mov rdx, rdi
lea rax, [rbp - 0x29]
xor ecx, ecx
mov qword [rsp + 0x40], rax
lea rax, [0x1400eaa30]
mov qword [rsp + 0x38], rax
and qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80400
and dword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x140077eb8
mov rcx, qword [rbp - 0x41]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbp - 0x49]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor ebx, ebx
mov rcx, qword [rbp + 0x3f]
test rcx, rcx
je 0x140077ecb
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov rcx, qword [rbp + 0x3f]
call fcn.1400a04b8
mov eax, ebx
mov rcx, qword [rbp + 0x47]
xor rcx, rsp
call fcn.1400783c0
lea r11, [rsp + 0x100]
mov rbx, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x140078188
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
mov r11, rsp
mov qword [r11 + 8], rbx
mov qword [r11 + 0x10], rbp
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push r15
sub rsp, 0x60
mov rax, qword [section..data]
xor rax, rsp
mov qword [rsp + 0x58], rax
and qword [r11 - 0x28], 0
mov ebx, 2
mov edx, ebx
xor ecx, ecx
call qword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jns 0x1400781d0
or eax, 0xffffffff
jmp 0x14007837a
call fcn.14007394c
test eax, eax
jne 0x140078375
lea r9, str.win32_none
mov r8d, ebx
lea rdx, [rsp + 0x40]
lea rcx, str.hell0.d
call fcn.1400764cc
test eax, eax
je 0x140078375
lea rbx, [0x1400eaa30]
mov r8d, 0x104
mov rdx, rbx
lea rcx, str.wIndiR
call qword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea r9, str.stem
mov r8, rbx
lea rdx, str._ws_sy_hs32
mov rcx, rbx
call qword [sym.imp.USER32.dll_wsprintfW]
lea rax, str.ault
mov qword [rsp + 0x38], rax
lea r9, str.nSta
lea rax, [0x1400e0408]
mov qword [rsp + 0x30], rax
lea r8, [0x1400e041c]
mov dword [rsp + 0x28], 0x5c
lea rdx, str._ws_ws_c_c_ws_hs
lea rcx, [0x1400ea820]
mov dword [rsp + 0x20], 0x30
call qword [sym.imp.USER32.dll_wsprintfW]
call qword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov rcx, rax
lea rdx, [rsp + 0x48]
call qword [sym.imp.SHELL32.dll_CommandLineToArgvW]
xor ecx, ecx
mov r15, rax
cmp dword [rsp + 0x48], 3
jl 0x1400783a2
and qword [rsp + 0x38], rcx
or r9d, 0xffffffff
and qword [rsp + 0x30], rcx
xor edx, edx
mov rsi, qword [rax + 8]
and dword [rsp + 0x28], ecx
mov r8, rsi
and qword [rsp + 0x20], rcx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea ecx, [rax + 1]
movsxd rbx, ecx
mov rcx, rbx
call fcn.1400a04cc
mov r8, rbx
xor edx, edx
mov rcx, rax
mov rbp, rax
call sub.ntdll.dll_memset
and qword [rsp + 0x38], 0
or r9d, 0xffffffff
and qword [rsp + 0x30], 0
mov r8, rsi
mov dword [rsp + 0x28], edi
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
and qword [rsp + 0x28], 0
lea rax, [rsp + 0x50]
lea r9, [rsp + 0x4c]
mov qword [rsp + 0x20], rax
xor r8d, r8d
lea rcx, str.__i_Hello_a_z_1
or rdx, 0xffffffffffffffff
call fcn.140083c00
xor edx, edx
mov rcx, rax
mov rbx, rax
call fcn.140096f30
and qword [rsp + 0x30], 0
xor r9d, r9d
mov qword [rsp + 0x28], rax
or r8, 0xffffffffffffffff
and dword [rsp + 0x20], 0
mov rdx, rbp
mov rcx, rbx
call fcn.140095c70
test eax, eax
jle 0x140078375
mov rcx, qword [r15 + 0x10]
call fcn.140077ef4
mov eax, 1
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400783c0
lea r11, [rsp + 0x60]
mov rbx, qword [r11 + 0x10]
mov rbp, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop r15
ret
call fcn.1400a07dc
int3
Function at 0x140078d90
Capabilities:
Parse pe header

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

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x30
xor edi, edi
mov esi, edx
mov rbp, rcx
test r8, r8
jne 0x1400a00b3
call fcn.1400a2bac
mov dword [rax], 0x16
call fcn.1400a2a70
xor eax, eax
jmp 0x1400a0141
mov rdx, r9
mov rcx, r8
call fcn.1400a0018
mov rbx, rax
test rax, rax
je 0x1400a013e
lea rax, [rsp + 0x50]
mov rdx, rsi
mov qword [rsp + 0x28], rax
lea r8, [0x14009ff44]
mov eax, dword [rsp + 0x60]
mov r9, rbx
mov rcx, rbp
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov rdx, rax
test rax, rax
jne 0x1400a012b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.1400a2b20
mov rcx, qword [rbx + 0x10]
test rcx, rcx
je 0x1400a0112
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rbx + 0x18]
test rcx, rcx
je 0x1400a0121
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov rcx, rbx
call fcn.1400a2c44
jmp 0x1400a013e
mov rcx, qword [rsp + 0x68]
test rcx, rcx
je 0x1400a013b
mov eax, dword [rsp + 0x50]
mov dword [rcx], eax
mov rdi, rdx
mov rax, rdi
mov rbx, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x58]
add rsp, 0x30
pop rdi
ret

Function at 0x1400a07dc
Capabilities:
Parse pe header

Disassembly:
mov dword [rsp + 0x18], r8d
mov dword [rsp + 0x10], edx
push rbp
mov rbp, rsp
sub rsp, 0x50
mov qword [rbp - 0x20], 0xfffffffffffffffe
mov qword [rsp + 0x60], rbx
mov ebx, ecx
test r8d, r8d
jne 0x1400a0647
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x1400a0647
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x1400a0647
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x1400a0647
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x1400a0647
cmp dword [rcx + 0x84], 0xe
jbe 0x1400a0647
cmp dword [rcx + 0xf8], 0
je 0x1400a0647
mov ecx, ebx
call fcn.1400a06f8
mov byte [rbp + 0x28], 0
lea rax, [rbp + 0x18]
mov qword [rbp - 0x18], rax
lea rax, [rbp + 0x20]
mov qword [rbp - 0x10], rax
lea rax, [rbp + 0x28]
mov qword [rbp - 8], rax
mov eax, 2
mov dword [rbp - 0x2c], eax
mov dword [rbp - 0x28], eax
lea r9, [rbp - 0x2c]
lea r8, [rbp - 0x18]
lea rdx, [rbp - 0x28]
lea rcx, [rbp - 0x30]
call fcn.1400a04d4
nop
cmp dword [rbp + 0x20], 0
je 0x1400a0695
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.1400a06a0
int3
xor r8d, r8d
xor edx, edx
jmp 0x1400a05d8
Function at 0x1400a6a98
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 0x1400a6b1f
mov rsi, rbx
cmp word [rax], bp
je 0x1400a6ade
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x1400a6ac8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x1400a6ac4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.1400a4aac
mov rdi, rax
test rax, rax
je 0x1400a6b0c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.1400ab880
mov rbp, rdi
xor ecx, ecx
call fcn.1400a2c44
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