joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14001f170
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rbp
push rsi
push rdi
push r12
sub rsp, 0x30
mov eax, dword [0x1400408bc]
xor r12d, r12d
test eax, eax
mov ebp, r12d
jne 0x14001f1cc
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001f1ac
mov dword [0x1400408bc], 1
jmp 0x14001f1df
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x14001f1c6
mov dword [0x1400408bc], 2
jmp 0x14001f249
mov eax, dword [0x1400408bc]
cmp eax, 1
jne 0x14001f240
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x14001f21a
cmp word [rdi], bp
mov rax, rdi
je 0x14001f1f9
add rax, 2
cmp word [rax], bp
jne 0x14001f1e7
add rax, 2
cmp word [rax], bp
jne 0x14001f1e7
sub eax, edi
add eax, 2
movsxd rsi, eax
mov rcx, rsi
call fcn.14001e700
test rax, rax
mov rbx, rax
jne 0x14001f221
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x14001f33b
mov r8, rsi
mov rdx, rdi
mov rcx, rax
call fcn.14001da30
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rbx
jmp 0x14001f33b
cmp eax, 2
je 0x14001f249
test eax, eax
jne 0x14001f21a
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rsi, rax
je 0x14001f21a
cmp byte [rax], bpl
mov rbx, rax
je 0x14001f298
nop
or r9d, 0xffffffff
mov r8, rbx
xor ecx, ecx
lea edx, [r9 + 2]
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001f21a
or rcx, 0xffffffffffffffff
add ebp, eax
mov rdi, rbx
xor eax, eax
repne scasb al, byte [rdi]
not rcx
add rbx, rcx
cmp byte [rbx], al
jne 0x14001f260
add ebp, 1
mov edx, 2
movsxd rcx, ebp
call fcn.14001e770
test rax, rax
mov r12, rax
jne 0x14001f2bd
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001f33b
cmp byte [rsi], 0
mov qword [rsp + 0x50], r13
mov rbx, rax
mov r13, rsi
je 0x14001f325
nop
or r9d, 0xffffffff
mov eax, ebp
mov rcx, rbx
sub rcx, r12
lea edx, [r9 + 2]
mov r8, r13
sar rcx, 1
sub eax, ecx
xor ecx, ecx
mov dword [rsp + 0x28], eax
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x14001f34e
or rcx, 0xffffffffffffffff
xor eax, eax
mov rdi, r13
repne scasb al, byte [rdi]
mov rdi, rbx
not rcx
add r13, rcx
or rcx, 0xffffffffffffffff
repne scasw ax, word [rdi]
cmp byte [r13], al
not rcx
lea rbx, [rbx + rcx*2]
jne 0x14001f2d0
mov rcx, rsi
mov word [rbx], 0
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, r12
mov r13, qword [rsp + 0x50]
mov rbx, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x60]
add rsp, 0x30
pop r12
pop rdi
pop rsi
ret
mov rcx, r12
call fcn.14001be90
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x14001f336
Function at 0x14001fb27
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x14003e090]
jne 0x14001cdea
rol rcx, 0x10
test cx, 0xffff
jne 0x14001cde6
repz ret
ror rcx, 0x10
jmp 0x14001fa80
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x140040970]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x140040a68]
mov qword [rsp + 0x58], rax
xor r8d, r8d
lea rdx, [rsp + 0x60]
mov rcx, qword [rsp + 0x58]
call sub.KERNEL32.dll_RtlLookupFunctionEntry
mov qword [rsp + 0x50], rax
cmp qword [rsp + 0x50], 0
je 0x14001fb05
mov qword [rsp + 0x38], 0
lea rax, [rsp + 0x48]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x40]
mov qword [rsp + 0x28], rax
lea rax, [0x140040970]
mov qword [rsp + 0x20], rax
mov r9, qword [rsp + 0x50]
mov r8, qword [rsp + 0x58]
mov rdx, qword [rsp + 0x60]
xor ecx, ecx
call sub.KERNEL32.dll_RtlVirtualUnwind
jmp 0x14001fb27
mov rax, qword [rsp + 0x88]
mov qword [0x140040a68], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x140040a08], rax
mov rax, qword [0x140040a68]
mov qword [0x1400408e0], rax
mov rax, qword [rsp + 0x90]
mov qword [0x1400409f0], rax
mov dword [0x1400408d0], 0xc0000409
mov dword [0x1400408d4], 1
mov rax, qword [0x14003e090]
mov qword [rsp + 0x68], rax
mov rax, qword [0x14003e098]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x140040968], eax
mov ecx, 1
call fcn.14001df10
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x1400340b0]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x140040968], 0
jne 0x14001fbae
mov ecx, 1
call fcn.14001df10
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, 0xc0000409
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
add rsp, 0x88
ret
Function at 0x14001feb0
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
push rbp
push rsi
push rdi
push r13
push r14
sub rsp, 0x50
mov edi, r8d
mov r13, rdx
mov r14, rcx
call fcn.14001d300
xor ebx, ebx
cmp qword [0x140040e70], rbx
mov rbp, rax
mov dword [rsp + 0x98], ebx
mov dword [rsp + 0x30], ebx
jne 0x14001ffdc
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x1400200ef
lea rdx, str.MessageBoxA
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x1400200ef
mov rcx, rax
call fcn.14001d230
lea rdx, str.GetActiveWindow
mov rcx, rsi
mov qword [0x140040e70], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14001d230
lea rdx, str.GetLastActivePopup
mov rcx, rsi
mov qword [0x140040e78], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14001d230
lea rcx, [rsp + 0x98]
mov qword [0x140040e80], rax
call fcn.14001e3a0
test eax, eax
je 0x14001ff8f
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14001bef0
cmp dword [rsp + 0x98], 2
jne 0x14001ffdc
lea rdx, str.GetUserObjectInformationA
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14001d230
test rax, rax
mov qword [0x140040e90], rax
je 0x14001ffdc
lea rdx, str.GetProcessWindowStation
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.14001d230
mov qword [0x140040e88], rax
mov rcx, qword [0x140040e88]
mov qword [rsp + 0x80], r12
cmp rcx, rbp
je 0x140020088
cmp qword [0x140040e90], rbp
je 0x140020088
call fcn.14001d3f0
mov rcx, qword [0x140040e90]
mov rsi, rax
call fcn.14001d3f0
test rsi, rsi
mov r12, rax
je 0x140020088
test rax, rax
je 0x140020088
call rsi
test rax, rax
je 0x140020053
lea rcx, [rsp + 0x34]
mov r9d, 0xc
lea r8, [rsp + 0x38]
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
mov rcx, rax
call r12
test eax, eax
je 0x140020053
test byte [rsp + 0x40], 1
jne 0x140020088
lea rcx, [rsp + 0x30]
call fcn.14001e3f0
test eax, eax
je 0x140020075
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14001bef0
cmp dword [rsp + 0x30], 4
jb 0x140020082
bts edi, 0x15
jmp 0x1400200c6
bts edi, 0x12
jmp 0x1400200c6
mov rcx, qword [0x140040e78]
cmp rcx, rbp
je 0x1400200c6
call fcn.14001d3f0
test rax, rax
je 0x1400200c6
call rax
test rax, rax
mov rbx, rax
je 0x1400200c6
mov rcx, qword [0x140040e80]
cmp rcx, rbp
je 0x1400200c6
call fcn.14001d3f0
test rax, rax
je 0x1400200c6
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x140040e70]
call fcn.14001d3f0
mov r12, qword [rsp + 0x80]
test rax, rax
je 0x1400200ef
mov r9d, edi
mov r8, r13
mov rdx, r14
mov rcx, rbx
call rax
jmp 0x1400200f1
xor eax, eax
mov rbx, qword [rsp + 0x88]
add rsp, 0x50
pop r14
pop r13
pop rdi
pop rsi
pop rbp
ret
Function at 0x140022f30
Capabilities:
Get geographical location

Disassembly:
sub rsp, 0x38
mov rax, qword [0x14003e090]
xor rax, rsp
mov qword [rsp + 0x28], rax
lea r8, [rsp + 0x20]
mov r9d, 6
mov edx, 0x1004
mov byte [rsp + 0x26], 0
call qword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
jne 0x140022f77
or eax, 0xffffffff
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001cdd0
add rsp, 0x38
ret
lea rcx, [rsp + 0x20]
call fcn.140022f20
mov rcx, qword [rsp + 0x28]
xor rcx, rsp
call fcn.14001cdd0
add rsp, 0x38
ret

Function at 0x140025590
Capabilities:
Get system information on windows

Disassembly:
push rbp
push r12
push r13
push r14
push r15
sub rsp, 0xb0
lea rbp, [rsp + 0x30]
mov qword [rbp + 0xb0], rbx
mov qword [rbp + 0xb8], rsi
mov qword [rbp + 0xc0], rdi
mov rax, qword [0x14003e090]
xor rax, rbp
mov qword [rbp + 0x70], rax
mov eax, dword [rsp]
xor ebx, ebx
mov dword [rbp], ebx
sub rsp, 0x10
lea r13, [rsp + 0x30]
mov eax, dword [r13]
lea r8d, [rbx + 0x30]
lea rdx, [rbp + 0x10]
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400256fc
mov r14, qword [rbp + 0x18]
lea rcx, [rbp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [rbp + 0x44]
lea rcx, [rbp]
call fcn.14001e3a0
test eax, eax
je 0x14002562a
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.14001bef0
mov ecx, dword [rbp]
cmp ecx, 2
jne 0x140025672
lea rcx, [0x1400341f0]
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test rax, rax
je 0x14002566f
lea rdx, str.SetThreadStackGuarantee
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x14002566f
lea rcx, [rbp + 4]
mov dword [rbp + 4], ebx
call rax
cmp eax, 1
jne 0x14002566f
mov eax, dword [rbp + 4]
test eax, eax
cmovne ebx, eax
mov ecx, dword [rbp]
mov r15d, 1
lea r8d, [rdi - 1]
lea edx, [rbx + rdi - 1]
cmp ecx, r15d
mov eax, r8d
mov esi, 0x104
not eax
cmove esi, r15d
and edx, eax
je 0x140025697
add edx, edi
lea eax, [rdi + rdi]
mov ebx, r8d
cmp edx, eax
not rbx
cmovb edx, eax
and rbx, r13
mov eax, 0x11
mov r12d, edx
sub rbx, r12
cmp ecx, r15d
cmove edi, eax
mov eax, edi
add rax, r14
cmp rbx, rax
jb 0x1400256fc
mov r9d, 4
mov r8d, 0x1000
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
test rax, rax
je 0x1400256fc
lea r9, [rbp + 8]
mov r8d, esi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x1400256fc
mov eax, r15d
jmp 0x1400256fe
xor eax, eax
mov rcx, qword [rbp + 0x70]
xor rcx, rbp
call fcn.14001cdd0
mov rbx, qword [rbp + 0xb0]
mov rsi, qword [rbp + 0xb8]
mov rdi, qword [rbp + 0xc0]
lea rsp, [rbp + 0x80]
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x140005610
Capabilities:
Create process on windows

Disassembly:
mov qword [rsp + 0x18], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
sub rsp, 0x60
mov rax, qword [0x1400d51c0]
xor rax, rsp
mov qword [rsp + 0x58], rax
cmp qword [rdx + 0x18], 7
mov r12, rdx
mov r13, rcx
mov qword [rsp + 0x30], rdx
jbe 0x14000564d
mov rax, qword [rdx]
mov qword [rsp + 0x30], rax
cmp qword [rcx + 0x18], 7
mov qword [rsp + 0x38], r13
jbe 0x140005661
mov rax, qword [rcx]
mov qword [rsp + 0x38], rax
mov ecx, WSACleanup
xor edx, edx
call fcn.140004420
mov ecx, 0x75
mov edx, 1
movzx r15d, ax
call fcn.140004420
mov ecx, WSAGetLastError
mov edx, 2
movzx r14d, ax
call fcn.140004420
mov ecx, 0x61
mov edx, 3
movzx ebp, ax
call fcn.140004420
mov ecx, reloc.WS2_32.dll_WSAStartup
mov edx, 4
movzx esi, ax
call fcn.140004420
xor ecx, ecx
mov edx, 5
movzx edi, ax
call fcn.140004420
movzx ecx, word [0x1400bfcec]
mov edx, 6
movzx ebx, ax
call fcn.140004420
movzx ecx, word [0x1400bfcee]
mov edx, 7
movzx r9d, ax
call fcn.140004420
movzx ecx, word [reloc.WLDAP32.dll_Ordinal_46]
mov edx, 8
movzx r8d, ax
call fcn.140004420
movzx ecx, word [reloc.WS2_32.dll_WSAStartup]
mov edx, 9
movzx r11d, ax
call fcn.140004420
movzx ecx, word [0x1400bfcf4]
mov edx, 0xa
movzx r10d, ax
call fcn.140004420
mov ecx, 0x133
xor r15w, cx
mov ecx, 0x134
xor r14w, cx
mov word [rsp + 0x40], r15w
mov ecx, 0x135
mov word [rsp + 0x42], r14w
xor bp, cx
mov ecx, 0x136
xor si, cx
mov word [rsp + 0x44], bp
mov ecx, 0x137
mov word [rsp + 0x46], si
xor di, cx
mov ecx, 0x138
xor bx, cx
mov word [rsp + 0x48], di
mov ecx, 0x139
mov word [rsp + 0x4a], bx
xor r9w, cx
mov ecx, 0x13a
xor r8w, cx
mov word [rsp + 0x4c], r9w
mov r9, qword [rsp + 0x30]
mov ecx, 0x13b
xor r11w, cx
mov word [rsp + 0x4e], r8w
mov ecx, 0x13c
mov word [rsp + 0x50], r11w
xor r10w, cx
mov ecx, 0x13d
xor ax, cx
mov word [rsp + 0x52], r10w
xor ebx, ebx
mov word [rsp + 0x54], ax
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rbx
mov word [rsp + 0x56], bx
mov r8, qword [rsp + 0x38]
lea rdx, [rsp + 0x40]
xor ecx, ecx
call qword [sym.imp.SHELL32.dll_ShellExecuteW]
mov rdx, qword [r13 + 0x18]
cmp rdx, 7
jbe 0x140005830
mov rcx, qword [r13]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x14000582b
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400058b6
mov rcx, r8
call fcn.1400a73e4
mov qword [r13 + 0x10], rbx
mov qword [r13 + 0x18], 7
mov word [r13], bx
mov rdx, qword [r12 + 0x18]
cmp rdx, 7
jbe 0x14000587e
mov rcx, qword [r12]
lea rdx, [rdx*2 + 2]
cmp rdx, 0x1000
jb 0x140005879
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x1400058b6
mov rcx, r8
call fcn.1400a73e4
mov qword [r12 + 0x10], rbx
mov qword [r12 + 0x18], 7
mov word [r12], bx
mov rcx, qword [rsp + 0x58]
xor rcx, rsp
call fcn.1400a7070
mov rbx, qword [rsp + 0xb0]
add rsp, 0x60
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x1400058c0
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x40], ebp
jbe 0x1400058e2
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140005976
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140005955
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140005950
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005a1f
mov rcx, r8
call fcn.1400a73e4
mov al, 1
mov rsi, qword [rsp + 0x78]
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x1400059bb
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x1400059b7
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x1400059b2
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005a1f
mov rcx, r8
call fcn.1400a73e4
xor al, al
jmp 0x140005957
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x41200
mov qword [rsp + 0x20], rbp
lea rdx, [0x1400d7660]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140005a08
cmp rax, 7
jbe 0x1400059b7
lea rdx, [rax*2 + 2]
jmp 0x14000598e
cmp rax, 7
jbe 0x140005955
lea rdx, [rax*2 + 2]
jmp 0x140005928
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x140005a30
Capabilities:
Write file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push rdi
sub rsp, 0x50
xor ebp, ebp
mov rdi, rcx
cmp qword [rcx + 0x18], 7
mov dword [rsp + 0x40], ebp
jbe 0x140005a52
mov rcx, qword [rcx]
mov qword [rsp + 0x30], rbp
xor r9d, r9d
mov dword [rsp + 0x28], 0x80
xor r8d, r8d
mov edx, 0x10000000
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateFileW]
mov rsi, rax
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x50
jne 0x140005ae6
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140005ac5
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140005ac0
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005b8f
mov rcx, r8
call fcn.1400a73e4
mov al, 1
mov rsi, qword [rsp + 0x78]
mov word [rdi], bp
mov qword [rdi + 0x18], 7
mov qword [rdi + 0x10], rbp
mov rbp, qword [rsp + 0x70]
add rsp, 0x50
pop rdi
ret
cmp rsi, 0xffffffffffffffff
jne 0x140005b2b
mov rdx, qword [rdi + 0x18]
cmp rdx, 7
jbe 0x140005b27
lea rdx, [rdx*2 + 2]
mov rcx, qword [rdi]
cmp rdx, 0x1000
jb 0x140005b22
mov r8, qword [rcx - 8]
add rdx, 0x27
sub rcx, r8
lea rax, [rcx - 8]
cmp rax, 0x1f
ja 0x140005b8f
mov rcx, r8
call fcn.1400a73e4
xor al, al
jmp 0x140005ac7
lea r9, [rsp + 0x40]
mov qword [rsp + 0x68], rbx
mov r8d, 0x2400
mov qword [rsp + 0x20], rbp
lea rdx, [0x1400d5260]
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rcx, rsi
mov ebx, eax
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rax, qword [rdi + 0x18]
test bl, bl
mov rbx, qword [rsp + 0x68]
jne 0x140005b78
cmp rax, 7
jbe 0x140005b27
lea rdx, [rax*2 + 2]
jmp 0x140005afe
cmp rax, 7
jbe 0x140005ac5
lea rdx, [rax*2 + 2]
jmp 0x140005a98
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
Function at 0x14000a6b0
Capabilities:
Access peb ldr_data
Hash data using fnv
Resolve function by parsing pe exports

Disassembly:
sub rsp, 0x58
mov rax, qword gs:[0x60]
mov rax, qword [rax + 0x18]
mov rax, qword [rax + 0x10]
nop word [rax + rax]
mov r9, qword [rax + 0x30]
mov qword [rsp + 0x30], r9
movsxd rcx, dword [r9 + 0x3c]
mov rdx, qword [rcx + r9 + 0x88]
mov qword [rsp + 0x60], rdx
mov r11d, edx
add r11, r9
mov qword [rsp + 0x38], r11
shr rdx, 0x20
mov dword [rsp + 0x40], edx
cmp r11, r9
je 0x14000a789
mov r10d, dword [r11 + 0x18]
mov dword [rsp + 0x20], r10d
nop
mov ecx, r10d
dec r10d
mov dword [rsp + 0x20], r10d
test ecx, ecx
je 0x14000a789
mov ecx, dword [r11 + 0x20]
add rcx, r9
mov ecx, dword [rcx + r10*4]
add rcx, r9
mov qword [rsp + 0x28], rcx
mov r8d, 0x811c9dc5
nop dword [rax + rax]
movsx edx, byte [rcx]
inc rcx
mov qword [rsp + 0x28], rcx
test dl, dl
jne 0x14000a77d
cmp r8d, 0x65832a57
jne 0x14000a77b
mov edx, dword [r11 + 0x1c]
add rdx, r9
mov ecx, dword [r11 + 0x24]
add rcx, r9
movzx ecx, word [rcx + r10*2]
mov eax, dword [rdx + rcx*4]
add rax, r9
call rax
nop
mov al, 1
add rsp, 0x58
ret
jmp 0x14000a710
xor edx, r8d
imul r8d, edx, 0x1000193
jmp 0x14000a740
mov rax, qword [rax]
jmp 0x14000a6d0
Function at 0x1400101d0
Capabilities:
Enumerate processes

Disassembly:
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x290
mov rax, qword [0x1400d51c0]
xor rax, rsp
mov qword [rsp + 0x280], rax
mov rdi, rcx
xor edx, edx
mov ecx, 2
call qword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov rsi, rax
cmp rax, 0xffffffffffffffff
jne 0x14001020f
xor al, al
jmp 0x140010336
mov qword [rsp + 0x2a0], rbx
lea rdx, [rsp + 0x40]
mov rcx, rsi
mov qword [rsp + 0x2a8], rbp
mov dword [rsp + 0x40], 0x238
call qword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x14001031b
xor ebp, ebp
nop
xorps xmm0, xmm0
mov qword [rsp + 0x30], rbp
movups xmmword [rsp + 0x20], xmm0
mov qword [rsp + 0x38], rbp
lea rax, [rsp + 0x6c]
mov r8, 0xffffffffffffffff
nop
inc r8
cmp word [rax + r8*2], bp
jne 0x140010260
lea rdx, [rsp + 0x6c]
lea rcx, [rsp + 0x20]
call fcn.140016ec0
cmp qword [rdi + 0x18], 7
mov rax, rdi
jbe 0x140010286
mov rax, qword [rdi]
mov r10, qword [rsp + 0x38]
lea r8, [rsp + 0x20]
mov r9, qword [rsp + 0x20]
cmp r10, 7
mov rdx, qword [rsp + 0x30]
cmova r8, r9
cmp rdx, qword [rdi + 0x10]
jne 0x1400102c8
test rdx, rdx
je 0x1400102c4
sub r8, rax
movzx ecx, word [r8 + rax]
cmp cx, word [rax]
jne 0x1400102c8
add rax, 2
sub rdx, 1
jne 0x1400102b0
mov bl, 1
jmp 0x1400102ca
xor bl, bl
cmp r10, 7
jbe 0x140010301
lea rdx, [r10*2 + 2]
mov rax, r9
cmp rdx, 0x1000
jb 0x1400102f9
mov r9, qword [r9 - 8]
add rdx, 0x27
sub rax, r9
add rax, 0xfffffffffffffff8
cmp rax, 0x1f
ja 0x140010357
mov rcx, r9
call fcn.1400a73e4
mov rcx, rsi
test bl, bl
jne 0x14001035e
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x140010240
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov rbx, qword [rsp + 0x2a0]
mov rbp, qword [rsp + 0x2a8]
mov rcx, qword [rsp + 0x280]
xor rcx, rsp
call fcn.1400a7070
mov rsi, qword [rsp + 0x2b0]
add rsp, 0x290
pop rdi
ret
call qword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
int3
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
jmp 0x140010326
Function at 0x140014770
Capabilities:
Write file on windows

Disassembly:
push rbx
push rdi
push r15
sub rsp, 0x20
cmp qword [rcx + 0x68], 0
mov rbx, r8
mov r15, rdx
mov rdi, rcx
je 0x140014798
add rsp, 0x20
pop r15
pop rdi
pop rbx
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsputn_char_const____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x40]
mov qword [rsp + 0x40], rbp
mov qword [rsp + 0x48], rsi
mov rsi, rbx
mov qword [rsp + 0x58], r14
mov r9, qword [rax]
test r9, r9
je 0x1400147be
mov rax, qword [rcx + 0x58]
mov ecx, dword [rax]
jmp 0x1400147c0
xor ecx, ecx
movsxd rbp, ecx
test rbx, rbx
jle 0x140014819
test ecx, ecx
jle 0x1400147f9
cmp rbx, rbp
mov rcx, r9
cmovl rbp, rbx
mov r8, rbp
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rdi + 0x58]
add r15, rbp
sub rbx, rbp
sub dword [rax], ebp
mov rcx, qword [rdi + 0x40]
movsxd rax, ebp
add qword [rcx], rax
test rbx, rbx
jle 0x140014819
mov r9, qword [rdi + 0x80]
test r9, r9
je 0x140014819
mov r8, rbx
mov edx, 1
mov rcx, r15
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
sub rbx, rax
mov r14, qword [rsp + 0x58]
sub rsi, rbx
mov rbp, qword [rsp + 0x40]
mov rax, rsi
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r15
pop rdi
pop rbx
ret
Function at 0x140014840
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 0x18], rbp
mov qword [rsp + 0x20], rsi
push r14
sub rsp, 0x20
mov rbp, r8
mov r14, rdx
mov rsi, rcx
test r8, r8
jg 0x140014871
xor eax, eax
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
ret
cmp qword [rcx + 0x68], 0
je 0x14001488f
mov rbp, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x48]
add rsp, 0x20
pop r14
jmp qword [sym.imp.MSVCP140.dll_protected_virtual:_long_long___int64____cdecl_std::basic_streambuf_char__struct_std::char_traits_char__::xsgetn_char____ptr64__long_long___int64_____ptr64]
mov rax, qword [rcx + 0x38]
mov qword [rsp + 0x30], rbx
mov rbx, rbp
mov rdx, qword [rax]
test rdx, rdx
je 0x1400148ab
mov rax, qword [rcx + 0x50]
mov ecx, dword [rax]
jmp 0x1400148ad
xor ecx, ecx
movsxd rax, ecx
test ecx, ecx
je 0x1400148e9
mov qword [rsp + 0x38], rdi
cmp rax, rbp
mov rdi, rbp
mov rcx, r14
cmovb rdi, rax
mov r8, rdi
call sub.VCRUNTIME140.dll_memcpy
mov rax, qword [rsi + 0x50]
add r14, rdi
sub rbx, rdi
sub dword [rax], edi
mov rcx, qword [rsi + 0x38]
movsxd rax, edi
mov rdi, qword [rsp + 0x38]
add qword [rcx], rax
cmp qword [rsi + 0x80], 0
je 0x14001497e
mov r8, qword [rsi + 0x18]
lea rax, [rsi + 0x70]
cmp qword [r8], rax
jne 0x140014924
mov rcx, qword [rsi + 0x88]
mov rdx, qword [rsi + 0x90]
mov qword [r8], rcx
sub edx, ecx
mov rax, qword [rsi + 0x38]
mov qword [rax], rcx
mov rax, qword [rsi + 0x50]
mov dword [rax], edx
cmp rbx, 0xfff
jbe 0x14001495e
nop dword [rax]
mov r9, qword [rsi + 0x80]
mov edx, 1
mov r8d, 0xfff
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
add r14, rax
sub rbx, rax
cmp rax, 0xfff
jne 0x14001497e
cmp rbx, rax
ja 0x140014930
test rbx, rbx
je 0x14001497e
mov r9, qword [rsi + 0x80]
mov r8, rbx
mov edx, 1
mov rcx, r14
call qword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fread]
sub rbx, rax
mov rsi, qword [rsp + 0x48]
sub rbp, rbx
mov rbx, qword [rsp + 0x30]
mov rax, rbp
mov rbp, qword [rsp + 0x40]
add rsp, 0x20
pop r14
ret