joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ca10
Capabilities:
Check os version
Create pipe
Create process on windows

Disassembly:
mov r11, rsp
sub rsp, 0x1d8
mov rax, qword [0x00472618]
xor rax, rsp
mov qword [rsp + 0x1a0], rax
mov qword [r11 - 8], rbx
mov qword [r11 - 0x10], rbp
mov qword [r11 - 0x18], rsi
mov qword [r11 - 0x20], rdi
lea rcx, [r11 - 0xd8]
mov rbp, r9
mov rdi, rdx
mov rsi, r8
mov dword [rsp + 0x100], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [rsp + 0x104], 6
jb 0x40cb01
xor edx, edx
lea rcx, [rsp + 0x90]
lea r8d, [rdx + 0x70]
call fcn.00435390
lea rax, str.open
lea rcx, [rsp + 0x90]
xor ebx, ebx
mov qword [rsp + 0xa0], rax
mov dword [rsp + 0x90], 0x70
mov dword [rsp + 0x94], 0x40
mov qword [rsp + 0xa8], rdi
mov qword [rsp + 0xb0], rbp
mov qword [rsp + 0xb8], rsi
mov dword [rsp + 0xc0], ebx
call qword [sym.imp.SHELL32.dll_ShellExecuteExA]
cmp dword [rsp + 0x200], ebx
je 0x40caee
mov rcx, qword [rsp + 0xf8]
mov edx, 0xffffffff
call qword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov rcx, qword [rsp + 0xf8]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x40cc1e
xor ebx, ebx
lea r8, [rsp + 0x78]
lea rdx, [rsp + 0x58]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov dword [rsp + 0x78], 0x18
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rbx
mov dword [rsp + 0x88], 1
mov qword [rsp + 0x80], rbx
call qword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x40cc1e
mov rcx, qword [rsp + 0x50]
lea edx, [rbx + 1]
xor r8d, r8d
call qword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x40cc1e
lea r8d, [rbx + 0x68]
lea rcx, [rsp + 0x90]
xor edx, edx
call fcn.00435390
mov rax, qword [rsp + 0x58]
bts dword [rsp + 0xcc], 8
mov qword [rsp + 0xe8], rax
mov qword [rsp + 0xf0], rax
xor eax, eax
mov qword [rsp + 0x60], rax
mov qword [rsp + 0x68], rax
mov qword [rsp + 0x70], rax
lea rax, [rsp + 0x60]
xor r9d, r9d
xor r8d, r8d
mov qword [rsp + 0x48], rax
lea rax, [rsp + 0x90]
mov rdx, rbp
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], rsi
mov qword [rsp + 0x30], rbx
mov rcx, rdi
mov dword [rsp + 0x28], ebx
mov dword [rsp + 0x90], 0x68
mov dword [rsp + 0x20], 1
call qword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40cc07
mov rcx, qword [rsp + 0x60]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, qword [rsp + 0x68]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r8d, dword [rsp + 0x200]
mov rdx, qword [rsp + 0x50]
mov rcx, qword [rsp + 0x58]
call fcn.0040be30
mov rdi, qword [rsp + 0x1b8]
mov rsi, qword [rsp + 0x1c0]
mov rbp, qword [rsp + 0x1c8]
mov rbx, qword [rsp + 0x1d0]
mov rcx, qword [rsp + 0x1a0]
xor rcx, rsp
call fcn.00434a90
add rsp, 0x1d8
ret
Function at 0x40fae0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x38], rbp
mov qword [rsp + 0x40], rsi
mov qword [rsp + 0x48], rdi
mov edi, r8d
mov rsi, rdx
mov rbp, rcx
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
jne 0x40fb1b
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
mov rcx, rax
mov qword [rsp + 0x30], rbx
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rbx, rax
je 0x40fb5f
mov rdx, rsi
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rbx
and edi, 0xf
jbe 0x40fb5a
cmp rbx, r11
jae 0x40fb5f
add edi, 0xffffffff
movzx eax, word [rbx]
lea rbx, [rbx + rax*2 + 2]
jne 0x40fb48
cmp rbx, r11
jb 0x40fb63
xor eax, eax
jmp 0x40fb6f
xor eax, eax
cmp word [rbx], ax
cmove rbx, rax
mov rax, rbx
mov rbx, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x40]
mov rbp, qword [rsp + 0x38]
add rsp, 0x28
ret
Function at 0x410820
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub rsp, 0x58
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x68], rbp
mov eax, r8d
mov qword [rsp + 0x70], rsi
mov rsi, rdx
shr eax, 4
add ax, 1
mov ebx, r8d
mov rbp, rcx
movzx edx, ax
mov r8d, 6
mov rcx, rsi
mov qword [rsp + 0x78], rdi
mov qword [rsp + 0x50], r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
mov r12, rax
je 0x410995
mov rdx, rax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
je 0x410995
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
test rax, rax
mov rdi, rax
je 0x410995
mov rdx, r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_SizeofResource]
mov r11d, eax
add r11, rdi
and ebx, 0xf
jbe 0x4108c6
nop
cmp rdi, r11
jae 0x410995
add ebx, 0xffffffff
movzx eax, word [rdi]
lea rdi, [rdi + rax*2 + 2]
jne 0x4108b0
cmp rdi, r11
jae 0x410995
movzx eax, word [rdi]
test ax, ax
je 0x410995
mov qword [rsp + 0x48], r13
movzx ebx, ax
call qword [0x00474150]
xor r13d, r13d
lea r12, [rdi + 2]
mov r9d, ebx
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], r13d
mov qword [rsp + 0x20], r13
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov rcx, qword [rbp]
mov edx, 1
movsxd rsi, eax
sub edx, dword [rcx - 8]
mov ecx, dword [rcx - 0xc]
sub ecx, esi
or edx, ecx
jge 0x410936
mov edx, esi
mov rcx, rbp
call fcn.00406540
mov rbx, qword [rbp]
movzx edi, word [rdi]
call qword [0x00474150]
mov qword [rsp + 0x38], r13
mov qword [rsp + 0x30], r13
mov ecx, eax
mov r9d, edi
mov r8, r12
xor edx, edx
mov dword [rsp + 0x28], esi
mov qword [rsp + 0x20], rbx
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test esi, esi
mov r13, qword [rsp + 0x48]
js 0x41098a
mov rcx, qword [rbp]
cmp esi, dword [rcx - 0xc]
jg 0x41098a
mov dword [rcx - 0x10], esi
mov rcx, qword [rbp]
mov eax, 1
mov byte [rsi + rcx], 0
jmp 0x410997
mov ecx, 0x80070057
call fcn.00404000
int3
xor eax, eax
mov r12, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x78]
mov rsi, qword [rsp + 0x70]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x60]
add rsp, 0x58
ret
Function at 0x410ce0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x1078
call fcn.004573e0
sub rsp, rax
mov rax, qword [0x00472618]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov qword [rsp + 0x1090], rbx
mov qword [rsp + 0x1070], rsi
test rdx, rdx
mov qword [rsp + 0x1068], rdi
lea rsi, str.Default_message_from_client
mov qword [rsp + 0x1060], r12
cmovne rsi, rdx
xor r12d, r12d
xor r9d, r9d
mov qword [rsp + 0x30], r12
xor r8d, r8d
mov edx, 0xc0000000
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
mov rdi, rcx
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x410dae
nop
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xe7
jne 0x410de1
mov edx, 0x4e20
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_WaitNamedPipeA]
test eax, eax
je 0x410de1
mov qword [rsp + 0x30], r12
xor r9d, r9d
xor r8d, r8d
mov edx, 0xc0000000
mov rcx, rdi
mov dword [rsp + 0x28], r12d
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
je 0x410d60
lea rdx, [rsp + 0x40]
xor r9d, r9d
xor r8d, r8d
mov rcx, rbx
mov dword [rsp + 0x40], 2
call qword [sym.imp.KERNEL32.dll_SetNamedPipeHandleState]
test eax, eax
jne 0x410df4
lea rcx, str.SetNamedPipeHandleState_failed
call fcn.0043ac90
xor eax, eax
jmp 0x410ea4
lea rcx, str.Could_not_open_pipe
call fcn.0043ac90
xor eax, eax
jmp 0x410ea4
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x44]
mov rdx, rsi
lea r8d, [rax + 1]
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x410e2b
lea rcx, str.WriteFile_failed
call fcn.0043ac90
xor eax, eax
jmp 0x410ea4
mov qword [rsp + 0x1098], rbp
nop
nop
nop
nop
lea r9, [rsp + 0x48]
lea rdx, [rsp + 0x50]
mov r8d, 0x1000
mov rcx, rbx
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov ebp, eax
jne 0x410e71
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x410e8a
lea rsi, [0x0045a988]
lea rdi, [rsp + 0x50]
mov ecx, 3
repe cmpsb byte [rsi], byte [rdi]
jne 0x410e97
test ebp, ebp
je 0x410e40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x410e9c
mov eax, 1
mov rbp, qword [rsp + 0x1098]
mov r12, qword [rsp + 0x1060]
mov rdi, qword [rsp + 0x1068]
mov rsi, qword [rsp + 0x1070]
mov rbx, qword [rsp + 0x1090]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.00434a90
add rsp, 0x1078
ret
Function at 0x4110c0
Capabilities:
Connect pipe
Create pipe
Read file on windows
Write file on windows
Write pipe

Disassembly:
mov eax, 0x1078
call fcn.004573e0
sub rsp, rax
mov rax, qword [0x00472618]
xor rax, rsp
mov qword [rsp + 0x1050], rax
mov rax, qword [str.NO_REPLY]
mov qword [rsp + 0x1090], rbx
mov rbx, rcx
lea rcx, [rsp + 0x50]
mov qword [rsp + 0x1098], rbp
mov qword [rsp + 0x1070], rsi
mov qword [rcx], rax
movzx eax, byte [0x0045aa38]
mov rsi, rdx
mov byte [rcx + 8], al
lea rcx, [rsp + 0x59]
xor edx, edx
mov r8d, 0xff7
call fcn.00435390
xor ebp, ebp
mov r9d, 0xff
mov qword [rsp + 0x38], rbp
mov dword [rsp + 0x30], ebp
lea edx, [rbp + 3]
lea r8d, [rbp + 6]
mov rcx, rbx
mov dword [rsp + 0x28], 0x1000
mov dword [rsp + 0x20], 0x1000
call qword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
cmp rax, 0xffffffffffffffff
mov rbx, rax
jne 0x411173
lea rcx, str.CreatePipe_failed
call fcn.0043ac90
jmp 0x41123e
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ConnectNamedPipe]
test eax, eax
je 0x411235
lea r9, [rsp + 0x40]
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x411223
mov qword [rsp + 0x1068], rdi
nop
cmp dword [rsp + 0x40], ebp
je 0x41121b
lea rdx, [0x0045a988]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrcpyA]
lea rcx, [rsp + 0x50]
call qword [sym.imp.KERNEL32.dll_lstrlenA]
lea r9, [rsp + 0x44]
lea rdx, [rsp + 0x50]
lea edi, [rax + 1]
mov rcx, rbx
mov qword [rsp + 0x20], rbp
mov r8d, edi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x41121b
cmp edi, dword [rsp + 0x44]
jne 0x41121b
lea r9, [rsp + 0x40]
mov r8d, 0x1000
mov rdx, rsi
mov rcx, rbx
mov qword [rsp + 0x20], rbp
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4111b0
mov rdi, qword [rsp + 0x1068]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_DisconnectNamedPipe]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x1070]
mov rbp, qword [rsp + 0x1098]
mov rbx, qword [rsp + 0x1090]
mov rcx, qword [rsp + 0x1050]
xor rcx, rsp
call fcn.00434a90
add rsp, 0x1078
ret

Function at 0x411f20
Capabilities:
Set registry value

Disassembly:
sub rsp, 0x58
mov rax, r9
mov qword [rsp + 0x50], rbx
lea rcx, [rsp + 0x30]
mov ebx, r8d
mov qword [rsp + 0x20], rcx
mov qword [rsp + 0x48], rdi
mov rdi, rdx
mov rdx, qword [rsp + 0x80]
mov rcx, rax
mov r9d, 0x20006
xor r8d, r8d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x411f73
mov eax, 1
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x50]
add rsp, 0x58
ret
mov rdx, qword [rsp + 0x88]
mov rcx, qword [rsp + 0x30]
mov r9d, 1
xor r8d, r8d
mov dword [rsp + 0x28], ebx
mov qword [rsp + 0x20], rdi
call qword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov rcx, qword [rsp + 0x30]
mov ebx, eax
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rdi, qword [rsp + 0x48]
xor eax, eax
test ebx, ebx
mov rbx, qword [rsp + 0x50]
setne al
add rsp, 0x58
ret
Function at 0x411fc0
Capabilities:
Delete registry value

Disassembly:
push rbx
sub rsp, 0x40
mov rax, r8
mov r10, rdx
lea rcx, [rsp + 0x30]
mov rbx, r9
mov qword [rsp + 0x20], rcx
xor r8d, r8d
mov rcx, r10
mov r9d, 0x20006
mov rdx, rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x411ffd
mov eax, 1
add rsp, 0x40
pop rbx
ret
mov rcx, qword [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
xor ecx, ecx
test eax, eax
sete cl
mov eax, ecx
add rsp, 0x40
pop rbx
ret

Function at 0x425310
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push rbx
push rbp
push rsi
push rdi
push r12
sub rsp, 0x20
xor edi, edi
xor ebx, ebx
test rdx, rdx
mov rsi, rdx
mov rbp, rcx
je 0x42536a
call fcn.00428230
mov r8d, pe_nt_image_headers64
mov rdx, rsi
mov r12, qword [rax + 0x18]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_FindResourceA]
test rax, rax
je 0x42536a
mov rdx, rax
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_LoadResource]
test rax, rax
mov rbx, rax
je 0x42538c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_LockResource]
mov rdi, rax
mov rdx, rdi
mov rcx, rbp
call fcn.00424d90
test rdi, rdi
mov esi, eax
je 0x42538a
test rbx, rbx
je 0x42538a
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
add rsp, 0x20
pop r12
pop rdi
pop rsi
pop rbp
pop rbx
ret

Function at 0x43d307
Capabilities:
Terminate process

Disassembly:
cmp rcx, qword [0x00472618]
jne 0x434aaa
rol rcx, 0x10
test cx, 0xffff
jne 0x434aa6
repz ret
ror rcx, 0x10
jmp 0x43d260
mov qword [rsp + 8], rcx
sub rsp, 0x88
lea rcx, [0x00478ad0]
call qword [sym.imp.KERNEL32.dll_RtlCaptureContext]
mov rax, qword [0x00478bc8]
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 0x43d2e5
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, [0x00478ad0]
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 0x43d307
mov rax, qword [rsp + 0x88]
mov qword [0x00478bc8], rax
lea rax, [rsp + 0x88]
add rax, 8
mov qword [0x00478b68], rax
mov rax, qword [0x00478bc8]
mov qword [0x00478a40], rax
mov rax, qword [rsp + 0x90]
mov qword [0x00478b50], rax
mov dword [0x00478a30], 0xc0000409
mov dword [0x00478a34], 1
mov rax, qword [0x00472618]
mov qword [rsp + 0x68], rax
mov rax, qword [0x00472620]
mov qword [rsp + 0x70], rax
call qword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x00478ac8], eax
mov ecx, 1
call fcn.0044e3d0
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea rcx, [0x00461de8]
call qword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x00478ac8], 0
jne 0x43d38e
mov ecx, 1
call fcn.0044e3d0
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 0x44e130
Capabilities:
Link many functions at runtime

Disassembly:
mov rax, rsp
sub rsp, 0x68
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
mov qword [rax - 8], r12
mov qword [rax - 0x10], r13
mov r13, rcx
mov edi, r8d
mov r12, rdx
call fcn.0043ed00
xor ebx, ebx
cmp qword [0x004794e0], rbx
mov rsi, rax
mov dword [rsp + 0x30], ebx
mov dword [rsp + 0x34], ebx
jne 0x44e261
lea rcx, str.USER32.DLL
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rbp, rax
jne 0x44e193
xor eax, eax
jmp 0x44e341
lea rdx, [0x00462a10]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x44e18c
mov rcx, rax
call fcn.0043ec90
lea rdx, [0x00462a00]
mov rcx, rbp
mov qword [0x004794e0], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0043ec90
lea rdx, [0x004629e8]
mov rcx, rbp
mov qword [0x004794e8], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0043ec90
lea rcx, [rsp + 0x30]
mov qword [0x004794f0], rax
call fcn.00439a00
test eax, eax
je 0x44e217
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0043d0a0
cmp dword [rsp + 0x30], 2
jne 0x44e261
lea rdx, str.GetUserObjectInformationA
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0043ec90
test rax, rax
mov qword [0x00479500], rax
je 0x44e261
lea rdx, str.GetProcessWindowStation
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, rax
call fcn.0043ec90
mov qword [0x004794f8], rax
mov rcx, qword [0x004794f8]
cmp rcx, rsi
je 0x44e2f3
cmp qword [0x00479500], rsi
je 0x44e2f3
call fcn.0043ed60
call rax
test rax, rax
mov rbp, rax
je 0x44e2be
mov rcx, qword [0x00479500]
call fcn.0043ed60
lea rcx, [rsp + 0x38]
mov r9d, 0xc
mov qword [rsp + 0x20], rcx
lea edx, [r9 - 0xb]
lea r8, [rsp + 0x40]
mov rcx, rbp
call rax
test eax, eax
je 0x44e2be
test byte [rsp + 0x48], 1
jne 0x44e2f3
lea rcx, [rsp + 0x34]
call fcn.00439a50
test eax, eax
je 0x44e2e0
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
mov qword [rsp + 0x20], rbx
call fcn.0043d0a0
cmp dword [rsp + 0x34], 4
jb 0x44e2ed
bts edi, 0x15
jmp 0x44e327
bts edi, 0x12
jmp 0x44e327
mov rcx, qword [0x004794e8]
cmp rcx, rsi
je 0x44e327
call fcn.0043ed60
call rax
test rax, rax
mov rbx, rax
je 0x44e327
mov rcx, qword [0x004794f0]
cmp rcx, rsi
je 0x44e327
call fcn.0043ed60
mov rcx, rbx
call rax
mov rbx, rax
mov rcx, qword [0x004794e0]
call fcn.0043ed60
mov r9d, edi
mov r8, r12
mov rdx, r13
mov rcx, rbx
call rax
mov r13, qword [rsp + 0x58]
mov r12, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x88]
mov rsi, qword [rsp + 0x80]
mov rbp, qword [rsp + 0x78]
mov rbx, qword [rsp + 0x70]
add rsp, 0x68
ret
Function at 0x180005b40
Capabilities:
Get disk information
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x40
mov rbx, qword [0x18010c3d8]
mov edx, 0x28
mov rcx, rbx
mov rdi, r8
call fcn.1800062e0
mov edx, 0x44a8
mov qword [rdi], rax
mov rcx, rbx
call fcn.1800062e0
cmp dword [0x18010c3d4], 0xbfa48cf0
mov rcx, qword [rdi]
mov qword [rcx + 0x18], rax
jne 0x180005c7a
xor ebx, ebx
lea rcx, [0x180124e08]
xor r9d, r9d
mov qword [rsp + 0x20], rbx
xor r8d, r8d
xor edx, edx
call qword [sym.imp.KERNEL32.dll_FindFirstFileNameTransactedW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetEvent]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetLongPathNameTransactedW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetDriveTypeW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SleepConditionVariableCS]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_EnumTimeFormatsW]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_DeleteProcThreadAttributeList]
mov qword [rsp + 0x30], rbx
xor r9d, r9d
mov dword [rsp + 0x28], ebx
xor r8d, r8d
xor edx, edx
mov dword [rsp + 0x20], ebx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateFileW]
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_FindFirstVolumeW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_PeekConsoleInputW]
call qword [sym.imp.KERNEL32.dll_SetFileApisToOEM]
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_InitializeSRWLock]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateEventExW]
xor r9d, r9d
xor r8d, r8d
xor edx, edx
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetUserPreferredUILanguages]
mov rbx, qword [rsp + 0x50]
add rsp, 0x40
pop rdi
ret
Function at 0x180008120
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
mov r8d, 0x2635
nop word [rax + rax]
inc r8d
mov eax, 0x55555556
imul r8d
mov eax, edx
shr eax, 0x1f
add edx, eax
lea ecx, [rdx + rdx*2]
cmp r8d, ecx
jne 0x180008130
add r8d, 0xfffff28d
mov ecx, 0x1c58
sub ecx, r8d
cmp r8d, 0x18c4
jne 0x18000817c
lea eax, [r8 - 0x2ab3]
lea eax, [r8 + rax*2]
cmp eax, 0xfffff4e6
jne 0x18000817c
cmp ecx, 0x394
je 0x180008188
mov ecx, 1
call qword [sym.imp.KERNEL32.dll_ExitProcess]
add rsp, 0x28
ret
Function at 0x18008e0bc
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 0x18008e12b
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x18008e12b
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x18008e12b
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x18008e12b
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x18008e12b
cmp dword [rcx + 0x84], 0xe
jbe 0x18008e12b
cmp dword [rcx + 0xf8], 0
je 0x18008e12b
mov ecx, ebx
call fcn.18008e1dc
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.18008dfb8
nop
cmp dword [rbp + 0x20], 0
je 0x18008e179
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.18008e184
int3
xor edx, edx
xor ecx, ecx
lea r8d, [rdx + 1]
jmp 0x18008e0bc

Function at 0x18008f94c
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x18008f962
mov al, 1
jmp 0x18008f9c2
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x18008f973
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x18008f9c0
mov ecx, dword [rcx + 0x18]
nop
call fcn.18009a864
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x18008f9c0
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x18008f9c0
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x18008f9c0
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x18008f9c2
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x18009536c
Capabilities:
Read file on windows

Disassembly:
mov qword [rsp + 8], rbx
push rbp
push rsi
push rdi
push r12
push r13
push r14
push r15
mov eax, 0x1050
call fcn.18007f760
sub rsp, rax
mov rax, qword [0x1800a60c0]
xor rax, rsp
mov qword [rsp + 0x1040], rax
mov r15, r8
mov rbp, rdx
mov rbx, rcx
call fcn.18008f82c
xor edi, edi
movsxd r14, eax
cmp dword [rbx + 0x10], edi
jne 0x1800953bb
mov rax, rbp
jmp 0x1800954c3
mov rax, qword [rbx]
mov rcx, r14
sub rax, qword [rbx + 8]
and ecx, 0x3f
cqo
mov rbx, r14
sub rax, rdx
sar rbx, 6
sar rax, 1
mov r9, r15
lea r12, [rcx + rcx*8]
mov rsi, rax
lea rax, [0x180000000]
xor r8d, r8d
mov rdx, qword [rax + rbx*8 + 0x10bc60]
mov ecx, r14d
mov rdx, qword [rdx + r12*8 + 0x30]
call fcn.180096d8c
mov r13, rax
lea rax, [0x180000000]
mov rcx, qword [rax + rbx*8 + 0x10bc60]
cmp r13, qword [rcx + r12*8 + 0x30]
jne 0x1800954bf
mov rcx, qword [rcx + r12*8 + 0x28]
lea r9, [rsp + 0x30]
mov r8d, 0x1000
mov qword [rsp + 0x20], rdi
lea rdx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1800954bf
mov r9, r15
xor r8d, r8d
mov rdx, rbp
mov ecx, r14d
call fcn.180096d8c
test rax, rax
js 0x1800954bf
mov eax, dword [rsp + 0x30]
cmp rsi, rax
jg 0x1800954bf
lea rdx, [rsp + 0x40]
add rdx, rax
lea rcx, [rsp + 0x40]
test rsi, rsi
je 0x1800954b1
lea r8, [0x180000000]
cmp rcx, rdx
jae 0x1800954b1
cmp byte [rcx], 0xd
jne 0x180095497
lea rax, [rdx - 1]
cmp rcx, rax
jae 0x1800954a6
cmp byte [rcx + 1], 0xa
jne 0x1800954a6
inc rcx
jmp 0x1800954a6
movzx eax, byte [rcx]
movsx rax, byte [rax + r8 + 0xa64d0]
add rcx, rax
inc rdi
inc rcx
cmp rdi, rsi
jne 0x180095479
lea rax, [rsp + 0x40]
sub rcx, rax
lea rax, [rcx + r13]
jmp 0x1800954c3
or rax, 0xffffffffffffffff
mov rcx, qword [rsp + 0x1040]
xor rcx, rsp
call fcn.18007f460
mov rbx, qword [rsp + 0x1090]
add rsp, 0x1050
pop r15
pop r14
pop r13
pop r12
pop rdi
pop rsi
pop rbp
ret