joyce8/EMBER2024-capa huggingface dataset:
Function at 0x449870
Capabilities:
Write file on windows

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x58
lea rbp, [rsp + 0x50]
mov r15, rdx
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 2
mov edx, 0xc0000000
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32_CreateFileA
mov rdi, rax
test rdi, rdi
je 0x44995a
lea rcx, [rbp - 8]
call sub.KERNEL32_GetLocalTime
movzx r8d, word [rbp - 6]
movzx r9d, word [rbp - 2]
movzx eax, word [rbp - 8]
movzx ecx, word [rbp]
movzx edx, word [rbp + 2]
movzx ebx, word [rbp + 4]
movzx esi, word [rbp + 6]
mov dword [rsp + 0x40], esi
mov dword [rsp + 0x38], ebx
mov dword [rsp + 0x30], edx
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], eax
lea rbx, [0x004676c0]
lea rdx, [0x004551a0]
mov rcx, rbx
call sub.USER32_wsprintfA
mov rcx, rbx
call fcn.0043a260
mov qword [rsp + 0x20], 0
lea r14, [rbp - 8]
mov rcx, rdi
mov rdx, rbx
mov r8d, eax
mov r9, r14
call sub.KERNEL32_WriteFile
mov rcx, r15
call fcn.0043a260
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, r15
mov r8d, eax
mov r9, r14
call sub.KERNEL32_WriteFile
mov rcx, rdi
call sub.KERNEL32_CloseHandle
nop
add rsp, 0x58
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret

Function at 0x4499b0
Capabilities:
Write file on windows

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0xc0
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov rcx, qword [0x004676e8]
test rcx, rcx
mov rax, qword [0x004676e0]
jne 0x449a85
test rax, rax
jne 0x449a85
cmp dword [0x00463f60], 0
je 0x449acf
lea rdi, [rbp - 0x50]
xor ecx, ecx
mov r8d, 0x80
mov rdx, rdi
call sub.KERNEL32_GetModuleFileNameA
mov edx, 0x5c
mov rcx, rdi
call fcn.004496b0
test rax, rax
jne 0x449a2d
mov edx, 0x3a
mov rcx, rdi
call fcn.004496b0
test rax, rax
je 0x449a33
inc rax
mov rdi, rax
mov dword [rbp + 0x3c], 0
call sub.KERNEL32_GetVersion
mov r9d, 0x12010
test eax, eax
jns 0x449a73
call sub.KERNEL32_GetCurrentThreadId
lea rdx, [0x00449b90]
lea r8, [rbp + 0x3c]
mov ecx, eax
call sub.USER32_EnumThreadWindows
cmp dword [rbp + 0x3c], 0
mov eax, 0x11010
mov r9d, 0x12010
cmove r9d, eax
xor ecx, ecx
mov rdx, rsi
mov r8, rdi
call sub.USER32_MessageBoxA
jmp 0x449b43
test rax, rax
je 0x449a9f
cmp eax, 0xffffffff
je 0x449b43
mov rcx, rsi
call rax
mov rcx, qword [0x004676e8]
test rcx, rcx
je 0x449b43
cmp ecx, 0xffffffff
je 0x449b43
cmp byte [rcx], 0
je 0x449b43
mov rdx, rsi
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.00449870
mov ecx, 0xfffffff4
call sub.KERNEL32_GetStdHandle
mov rdi, rax
mov qword [rsp + 0x20], 0
lea r14, [0x004551d0]
lea rbx, [rbp - 0x50]
mov r8d, 2
mov rcx, rdi
mov rdx, r14
mov r9, rbx
call sub.KERNEL32_WriteFile
mov rcx, rsi
call fcn.0043a260
mov qword [rsp + 0x20], 0
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
mov r9, rbx
call sub.KERNEL32_WriteFile
mov qword [rsp + 0x20], 0
mov r8d, 2
mov rcx, rdi
mov rdx, r14
mov r9, rbx
call sub.KERNEL32_WriteFile
nop
add rsp, 0xc0
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret
Function at 0x44be00
Capabilities:
Query environment variable

Disassembly:
push rbp
push r15
push r14
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov rax, qword [0x00477788]
test rax, rax
je 0x44be49
mov rcx, qword [rax]
test rcx, rcx
je 0x44bec0
add rax, 8
xor esi, esi
nop
cmp byte [rcx], 1
sbb esi, 0
inc esi
mov rcx, qword [rax]
add rax, 8
test rcx, rcx
jne 0x44be30
jmp 0x44bef1
mov r14, qword [0x00477800]
test r14, r14
jne 0x44be7c
call sub.KERNEL32_GetEnvironmentStrings
mov r14, rax
mov qword [0x00477800], r14
test r14, r14
jne 0x44be7c
lea rcx, [0x00455310]
call fcn.00449b70
mov r14, qword [0x00477800]
mov rcx, r14
call fcn.0043a260
xor r15d, r15d
test eax, eax
je 0x44bec4
xor edi, edi
xor esi, esi
mov rbx, r14
nop word cs:[rax + rax]
lea edi, [rax + rdi + 1]
inc esi
cdqe
lea rbx, [rbx + rax + 1]
mov rcx, rbx
call fcn.0043a260
test eax, eax
jne 0x44bea0
inc edi
movsxd rbx, edi
jmp 0x44becb
xor esi, esi
jmp 0x44bef1
mov ebx, 1
xor esi, esi
mov rcx, rbx
call fcn.00434cf0
mov qword [0x00477780], rax
test rax, rax
je 0x44bfcb
mov rcx, rax
mov rdx, r14
mov r8, rbx
call fcn.00439850
lea eax, [rsi + 4]
mov dword [0x00477790], eax
add esi, 5
movsxd rcx, esi
mov edx, 8
call fcn.00434ce0
mov rdi, rax
test rdi, rdi
je 0x44bf62
mov r14, qword [0x00477788]
test r14, r14
je 0x44bf67
mov rdx, qword [r14]
test rdx, rdx
je 0x44bfb6
lea rax, [r14 + 8]
xor ecx, ecx
cmp byte [rdx], 0
je 0x44bf50
mov rdx, qword [rax - 8]
movsxd rbx, ecx
mov qword [rdi + rbx*8], rdx
jmp 0x44bf52
dec ecx
inc ecx
mov rdx, qword [rax]
add rax, 8
test rdx, rdx
jne 0x44bf30
jmp 0x44bfb1
xor r15d, r15d
jmp 0x44bfcb
mov rbx, qword [0x00477780]
mov rcx, rbx
call fcn.0043a260
test eax, eax
je 0x44bfbe
movabs r15, 0x100000000
mov rsi, rdi
nop word [rax + rax]
mov qword [rsi], rbx
shl rax, 0x20
add rax, r15
sar rax, 0x20
add rbx, rax
mov rcx, rbx
call fcn.0043a260
add rsi, 8
test eax, eax
jne 0x44bf90
test r14, r14
je 0x44bfbe
mov rcx, r14
call fcn.00434d00
mov qword [0x00477788], rdi
mov r15d, 1
mov eax, r15d
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r14
pop r15
pop rbp
ret
Function at 0x44c8e0
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
sub rsp, 0x28
xor rcx, rcx
call sub.KERNEL32_GetModuleHandleA
mov qword [0x004560a0], rax
call fcn.00439460
call fcn.00435020
call fcn.00439470
lea rax, [section..data]
lea rcx, [0x004020f0]
mov qword [rax + 0x30], rcx
lea rcx, section..text
mov qword [rax], rcx
lea rcx, [0x004012f4]
mov qword [rax + 8], rcx
lea rcx, [0x004012f4]
mov qword [rax + 0x10], rcx
lea rcx, [0x00401354]
mov qword [rax + 0x18], rcx
lea rcx, [0x0044a950]
mov qword [rax + 0x68], rcx
lea rcx, [0x0044ad50]
mov qword [rax + 0x70], rcx
lea rcx, [0x0044ad80]
mov qword [rax + 0x78], rcx
lea rcx, [0x0044b330]
mov qword [rax + 0x80], rcx
lea rcx, [0x004632f0]
mov qword [rax + 0x50], rcx
mov rcx, rax
push 0
jmp 0x44c8e0
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov rsi, r9
mov r14d, r8d
mov ebx, edx
mov edi, ecx
call fcn.0044c880
test edi, edi
je 0x44a4e5
test ebx, ebx
jne 0x44a4fc
test edi, edi
jne 0x44a4d6
call qword [0x00463ef8]
call qword [0x00463f00]
call fcn.0044c8a0
mov ecx, r14d
call fcn.0044c630
jmp 0x44a4fc
mov rcx, rsi
call fcn.0044a290
call fcn.0044c750
call qword [0x00463ef0]
test ebx, ebx
je 0x44a4c6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.0044c8a0
push rbp
push rsi
push rdi
push rbx
sub rsp, 0x88
lea rbp, [rsp + 0x80]
mov rsi, rcx
mov eax, dword [rsi + 0x20]
and eax, 1
mov dword [0x00463f60], eax
mov rcx, qword [rsi + 0x50]
call fcn.0043b800
mov rcx, qword [rsi + 0x88]
call fcn.0043b810
mov dword [0x00477860], 1
lea rdi, [0x00477860]
mov qword [0x00477868], rsi
call sub.KERNEL32_GetEnvironmentStrings
mov qword [0x00477800], rax
call sub.KERNEL32_GetCommandLineA
mov qword [0x00477810], rax
mov rcx, qword [rsi + 0x68]
mov rdx, qword [rsi + 0x70]
mov r8, qword [rsi + 0x78]
mov r9, qword [rsi + 0x80]
call fcn.0044a710
xor edx, edx
mov rcx, rdi
call fcn.0044c650
test byte [rsi + 0x20], 1
jne 0x44c9a4
mov ecx, dword [0x0047782c]
mov rdx, qword [0x00477830]
mov r8, qword [0x00477838]
call qword [rsi + 0x30]
xor ecx, ecx
xor edx, edx
mov r9, 0xffffffffffffffff
mov r8d, eax
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
jmp 0x44a4a0
mov rax, qword [0x00477810]
nop dword [rax + rax]
inc rax
mov cl, byte [rax - 1]
cmp cl, 9
je 0x44c9b0
cmp cl, 0x20
je 0x44c9b0
cmp cl, 0x22
jne 0x44c9ce
mov cl, byte [rax]
mov edx, 0x22
jmp 0x44c9d6
dec rax
mov edx, 0x20
movsx edi, cl
cmp edx, edi
je 0x44c9f4
nop dword [rax]
test cl, cl
je 0x44c9f4
cmp cl, 9
je 0x44c9f4
movsx ecx, byte [rax + 1]
inc rax
cmp edx, ecx
jne 0x44c9e0
lea rdi, [rax + 1]
cmp cl, 0x22
cmovne rdi, rax
jmp 0x44ca13
inc rdi
movzx eax, byte [rdi]
cmp al, 0x20
je 0x44ca10
cmp al, 9
je 0x44ca10
mov rbx, qword [rsi + 0x30]
xor ecx, ecx
call sub.KERNEL32_GetModuleHandleA
mov rsi, rax
lea rcx, [rbp - 0x60]
call sub.KERNEL32_GetStartupInfoA
mov eax, dword [rbp - 0x24]
test al, 1
movzx eax, word [rbp - 0x20]
mov r9d, 0xa
cmovne r9d, eax
xor edx, edx
mov rcx, rsi
mov r8, rdi
call rbx
xor ecx, ecx
xor edx, edx
mov r9, 0xffffffffffffffff
mov r8d, eax
call 0x44a4a0
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x44ccd0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x20
lea rbp, [rsp + 0x20]
mov esi, ecx
cmp byte [0x004560b4], 0
je 0x44cd32
mov ecx, dword [0x00477890]
call sub.KERNEL32_TlsGetValue
test rax, rax
jne 0x44cd3e
call fcn.0044cb20
mov edi, eax
test edi, edi
je 0x44cd25
call sub.KERNEL32_GetProcessHeap
movsxd r8, edi
mov edx, 8
mov rcx, rax
call sub.KERNEL32_HeapAlloc
mov ecx, dword [0x00477890]
mov rdx, rax
call sub.KERNEL32_TlsSetValue
mov ecx, dword [0x00477890]
call sub.KERNEL32_TlsGetValue
jmp 0x44cd3e
mov rax, qword gs:[0x58]
mov rax, qword [rax]
movsxd rcx, esi
add rcx, rax
mov rax, rcx
add rsp, 0x20
pop rdi
pop rsi
pop rbp
ret
Function at 0x1400012f4
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rdi
mov qword [rax + 0x18], r15
push rbp
lea rbp, [rax - 0xb8]
sub rsp, 0x1b0
mov rdi, rcx
mov r15d, 0x30
lea rcx, [rsp + 0x30]
mov r8d, r15d
xor edx, edx
call fcn.1400050a0
mov ebx, 0x10000
lea r8, [rsp + 0x30]
mov r9, r15
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test rax, rax
je 0x140001402
cmp dword [rsp + 0x50], 0x1000
jne 0x1400013ee
test dword [rsp + 0x54], 0x100
jne 0x1400013ee
xor edx, edx
lea rcx, [rsp + 0x60]
lea r8d, [rdx + 0x40]
call fcn.1400050a0
and qword [rsp + 0x20], 0
lea r8, [rsp + 0x60]
mov r9d, 0x40
mov rdx, rbx
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400013ee
mov eax, 0x5a4d
cmp word [rsp + 0x60], ax
jne 0x1400013ee
lea rcx, [rbp - 0x60]
xor edx, edx
mov r8d, 0x108
call fcn.1400050a0
movsxd rdx, dword [rbp - 0x64]
and qword [rsp + 0x20], 0
lea r8, [rbp - 0x60]
add rdx, rbx
mov r9d, 0x108
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_ReadProcessMemory]
test eax, eax
je 0x1400013ee
cmp dword [rbp - 0x60], 0x4550
jne 0x1400013ee
mov eax, 0x2000
test word [rbp - 0x4a], ax
je 0x1400013fd
mov rbx, qword [rsp + 0x48]
add rbx, qword [rsp + 0x30]
jmp 0x14000132f
mov rax, rbx
jmp 0x14000140a
call qword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
lea r11, [rsp + 0x1b0]
mov rbx, qword [r11 + 0x10]
mov rdi, qword [r11 + 0x18]
mov r15, qword [r11 + 0x20]
mov rsp, r11
pop rbp
ret
Function at 0x140001654
Capabilities:
Parse pe header

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
push rbp
push r12
push r13
push r14
push r15
lea rbp, [rax - 0x138]
sub rsp, 0x210
mov r14d, r9d
mov r15, r8
mov r12, rdx
lea r8d, [r14 + 0x1c8]
xor edx, edx
mov r9d, 0x1000
mov rdi, rcx
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov rsi, rax
test rax, rax
je 0x1400018a9
and qword [rsp + 0x30], 0
mov r13d, 0x40
lea rcx, [rbp - 0x40]
mov r8d, r13d
xor edx, edx
call fcn.1400050a0
mov eax, 0x5a4d
lea r8, [rbp - 0x40]
mov word [rbp - 0x40], ax
lea rax, [rsp + 0x30]
mov r9d, r13d
mov rdx, rsi
mov rcx, rdi
mov dword [rbp - 4], r13d
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400018a9
cmp qword [rsp + 0x30], r13
jne 0x1400018a9
lea rcx, [rbp]
xor edx, edx
mov r8d, 0x108
lea rbx, [rsi + 0x40]
call fcn.1400050a0
lea eax, [r13 - 0x3f]
mov word [rbp + 6], ax
lea rax, [rsp + 0x30]
lea r8, [rbp]
mov r9d, 0x108
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rbp], 0x4550
mov dword [rbp + 0x14], 0x200000f0
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400018a9
mov eax, 0x108
cmp qword [rsp + 0x30], rax
jne 0x1400018a9
lea r8d, [r13 - 0x18]
lea rcx, [rsp + 0x50]
xor edx, edx
add rbx, rax
call fcn.1400050a0
movabs rax, 0x72756f7465642e
mov qword [rsp + 0x50], rax
mov eax, ebx
lea r9d, [r13 - 0x18]
sub eax, esi
lea esi, [r14 + 0x58]
lea r8, [rsp + 0x50]
add eax, 0x28
mov rdx, rbx
mov rcx, rdi
mov dword [rsp + 0x5c], eax
lea rax, [rsp + 0x30]
mov dword [rsp + 0x60], esi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400018a9
cmp qword [rsp + 0x30], 0x28
jne 0x1400018a9
lea rcx, [rbp - 0x80]
mov r8d, r13d
xor edx, edx
add rbx, 0x28
call fcn.1400050a0
lea rax, [rsp + 0x30]
lea r8, [rbp - 0x80]
mov r9d, r13d
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
mov dword [rbp - 0x80], r13d
mov dword [rbp - 0x7c], 0x727444
mov dword [rbp - 0x78], r13d
mov dword [rbp - 0x74], esi
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400018a9
cmp qword [rsp + 0x30], r13
jne 0x1400018a9
lea esi, [r13 - 0x28]
lea rcx, [rsp + 0x38]
xor edx, edx
mov r8d, esi
add rbx, r13
call fcn.1400050a0
and dword [rsp + 0x3c], 0
lea eax, [r14 + 0x18]
movups xmm0, xmmword [r12]
mov dword [rsp + 0x38], eax
lea rax, [rsp + 0x30]
lea r8, [rsp + 0x38]
movdqu xmmword [rsp + 0x40], xmm0
mov r9d, esi
mov rdx, rbx
mov rcx, rdi
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400018a9
cmp qword [rsp + 0x30], rsi
jne 0x1400018a9
lea rcx, [rsp + 0x30]
lea rdx, [rbx + 0x18]
mov r9d, r14d
mov qword [rsp + 0x20], rcx
mov rcx, rdi
mov r8, r15
call qword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1400018a9
cmp qword [rsp + 0x30], r14
jne 0x1400018a9
lea eax, [rsi - 0x17]
jmp 0x1400018ab
xor eax, eax
lea r11, [rsp + 0x210]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rdi, qword [r11 + 0x40]
mov rsp, r11
pop r15
pop r14
pop r13
pop r12
pop rbp
ret
Function at 0x1400022cc
Capabilities:
Link many functions at runtime

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rsi
push rdi
sub rsp, 0x20
xor ebx, ebx
cmp dword [0x1400784b0], ebx
jne 0x1400024d3
mov rax, qword [0x1400784a8]
test rax, rax
jne 0x1400024d5
lea rdi, [0x140078460]
lea r8d, [rbx + 0x48]
xor edx, edx
mov rcx, rdi
call fcn.1400050a0
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea rcx, str.dbghelp.dll
mov qword [0x140078460], rax
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov qword [0x140078468], rax
test rax, rax
je 0x14000248a
lea rdx, str.ImagehlpApiVersionEx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140078468]
lea rdx, str.SymInitialize
mov qword [0x140078470], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140078468]
lea rdx, str.SymSetOptions
mov qword [0x140078478], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140078468]
lea rdx, str.SymGetOptions
mov qword [0x140078480], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140078468]
lea rdx, str.SymLoadModule64
mov qword [0x140078488], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140078468]
lea rdx, str.SymGetModuleInfo64
mov qword [0x140078490], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rcx, qword [0x140078468]
lea rdx, str.SymFromName
mov qword [0x140078498], rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
mov rdx, qword [0x140078470]
xor ecx, ecx
lea esi, [rbx + 0xc]
mov qword [rsp + 0x30], rcx
mov qword [0x1400784a0], rax
mov word [rsp + 0x30], si
test rdx, rdx
je 0x140002483
cmp qword [0x140078478], rbx
je 0x140002483
cmp qword [0x140078490], rbx
je 0x140002483
cmp qword [0x140078498], rbx
je 0x140002483
test rax, rax
je 0x140002483
lea rcx, [rsp + 0x30]
call rdx
cmp word [rsp + 0x30], si
jb 0x140002483
mov rcx, qword [0x140078460]
xor r8d, r8d
xor edx, edx
call qword [0x140078478]
test eax, eax
je 0x140002483
mov rcx, qword [0x140078488]
test rcx, rcx
je 0x140002477
cmp qword [0x140078480], rbx
je 0x140002477
call rcx
and eax, 0xfffffffc
or eax, 0x2704
mov ecx, eax
call qword [0x140078480]
mov qword [0x1400784a8], rdi
mov rax, rdi
jmp 0x1400024d5
mov rax, qword [0x140078468]
mov dword [0x1400784b0], 1
test rax, rax
je 0x1400024a2
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov qword [0x140078470], rbx
mov qword [0x140078478], rbx
mov qword [0x140078480], rbx
mov qword [0x140078488], rbx
mov qword [0x140078490], rbx
mov qword [0x140078498], rbx
mov qword [0x1400784a0], rbx
xor eax, eax
mov rbx, qword [rsp + 0x38]
mov rsi, qword [rsp + 0x40]
add rsp, 0x20
pop rdi
ret
Function at 0x1400024e8
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rsi
mov qword [rsp + 0x18], rdi
push r12
push r14
push r15
sub rsp, 0x30
mov rdi, rcx
xor r12d, r12d
test rcx, rcx
jne 0x140002515
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov rdi, rax
mov eax, 0x5a4d
cmp word [rdi], ax
je 0x140002531
mov ecx, 0xc1
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140002600
movsxd rbx, dword [rdi + 0x3c]
add rbx, rdi
cmp dword [rbx], 0x4550
je 0x140002552
mov ecx, 0xbf
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140002600
cmp word [rbx + 0x14], r12w
jne 0x14000256b
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140002600
movzx eax, word [rbx + 0x14]
lea r15, [rbx + 0x18]
add r15, rax
mov esi, r12d
mov dword [rsp + 0x20], r12d
movzx eax, word [rbx + 6]
cmp esi, eax
jae 0x1400025e4
mov eax, esi
lea rcx, [rax + rax*4]
lea r14, [r15 + rcx*8]
lea rdx, str..detour
mov rcx, r14
call fcn.1400615d0
test eax, eax
jne 0x1400025dc
cmp dword [r14 + 0xc], r12d
je 0x1400025e4
cmp dword [r14 + 0x10], r12d
je 0x1400025e4
mov ebx, dword [r14 + 0xc]
add rbx, rdi
mov eax, dword [rbx]
cmp eax, 0x40
jb 0x1400025e4
cmp dword [rbx + 4], 0x727444
jne 0x1400025e4
cmp dword [rbx + 8], r12d
jne 0x1400025cf
mov dword [rbx + 8], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_SetLastError]
mov rax, rbx
jmp 0x140002600
inc esi
mov dword [rsp + 0x20], esi
jmp 0x14000257e
mov ecx, 0xc0
call qword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x140002600
mov rbx, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x60]
add rsp, 0x30
pop r15
pop r14
pop r12
ret

Function at 0x140002980
Capabilities:
Parse pe header

Disassembly:
push rbx
sub rsp, 0x50
test rcx, rcx
mov ebx, 0x10000
je 0x140002997
lea rbx, [rcx + 0x10000]
xor edx, edx
lea r8d, [rdx + 0x30]
lea rcx, [rsp + 0x20]
call fcn.1400050a0
mov r8d, 0x30
lea rdx, [rsp + 0x20]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x1400029f2
cmp dword [rsp + 0x40], 0x1000
jne 0x1400029f4
test dword [rsp + 0x44], 0x100
jne 0x1400029f4
mov eax, 0x5a4d
cmp word [rbx], ax
jne 0x1400029f4
movsxd rax, dword [rbx + 0x3c]
cmp dword [rax + rbx], 0x4550
jne 0x1400029f4
mov rax, rbx
jmp 0x1400029f2
jmp 0x140002a00
mov rbx, qword [rsp + 0x38]
add rbx, qword [rsp + 0x20]
jmp 0x1400029a7
add rsp, 0x50
pop rbx
ret
Function at 0x140003140
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
push r14
sub rsp, 0x30
xor edi, edi
mov ebx, r8d
mov r14, rcx
test edx, edx
je 0x14000323d
mov r8d, edx
mov qword [rsp + 0x40], rsi
xor edx, edx
mov ecx, 0x1fffff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
mov rsi, rax
test rax, rax
je 0x140003225
test ebx, ebx
je 0x14000321c
sub ebx, 1
je 0x14000319e
cmp ebx, 1
jne 0x14000321c
mov eax, 0x828
jmp 0x1400031d9
mov r9d, 7
lea r8, str.inventor.exe
mov rdx, rsi
mov rcx, r14
call fcn.140003250
test eax, eax
jne 0x1400031d4
lea r9d, [rax + 7]
mov rdx, rsi
lea r8, str.Perforation.exe
mov rcx, r14
call fcn.140003250
test eax, eax
je 0x14000321c
mov eax, 0x724
lea rbx, [r14 + rax]
lea rcx, [r14 + 0x210]
mov qword [rsp + 0x28], rbx
mov qword [rsp + 0x20], rcx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000321c
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x14000321c
mov r8d, 2
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.140001acc
mov edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x40]
mov eax, edi
mov rbx, qword [rsp + 0x48]
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
mov rbx, qword [rsp + 0x48]
mov eax, edi
mov rdi, qword [rsp + 0x50]
add rsp, 0x30
pop r14
ret
Function at 0x140003610
Capabilities:
Query environment variable

Disassembly:
mov qword [rsp + 8], rbx
mov qword [rsp + 0x10], rbp
mov qword [rsp + 0x18], rsi
push rdi
push r14
push r15
sub rsp, 0x130
mov rsi, rcx
xor edx, edx
lea rcx, [rsp + 0x20]
mov r8d, 0x104
call fcn.1400050a0
xor edx, edx
lea rcx, [rsi + 8]
mov r8d, 0x104
call fcn.1400050a0
xor edx, edx
lea rcx, [rsi + 0x10c]
mov r8d, 0x104
call fcn.1400050a0
xor edx, edx
lea rcx, [rsi + 0x210]
mov r8d, 0x104
call fcn.1400050a0
lea rbx, [rsi + 0x620]
mov edi, 3
nop word [rax + rax]
lea rcx, [rbx - 0x30c]
xor edx, edx
mov r8d, 0x104
call fcn.1400050a0
xor edx, edx
mov r8d, 0x104
mov rcx, rbx
call fcn.1400050a0
lea rcx, [rbx + 0x30c]
xor edx, edx
mov r8d, 0x104
call fcn.1400050a0
add rbx, 0x104
sub rdi, 1
jne 0x140003690
mov r8d, 0x104
lea rdx, [rsp + 0x20]
lea rcx, str._SYSTEMROOT_
call qword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
lea r8, str.kernel32.dll
mov edx, 0x104
lea rcx, [rsi + 8]
call fcn.140014d6c
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsi + 0x10c]
call fcn.140014d6c
lea r8, str.SysWOW64detoured.dll
mov edx, 0x104
lea rcx, [rsi + 0x10c]
call fcn.140014e40
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsi + 0x210]
call fcn.140014d6c
lea r8, str.System32detoured.dll
mov edx, 0x104
lea rcx, [rsi + 0x210]
call fcn.140014e40
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsi + 0x418]
call fcn.140014d6c
lea r8, str.System32_amdgfxinfo32.dll
mov edx, 0x104
lea rcx, [rsi + 0x418]
call fcn.140014e40
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsi + 0x724]
call fcn.140014d6c
lea r8, str.System32_amdgfxinfo64.dll
mov edx, 0x104
lea rcx, [rsi + 0x724]
call fcn.140014e40
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsi + 0xa30]
call fcn.140014d6c
lea r8, str.SysWOW64_amdgfxinfo32.dll
mov edx, 0x104
lea rcx, [rsi + 0xa30]
call fcn.140014e40
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsi + 0x51c]
call fcn.140014d6c
lea r8, str.System32GameManager32.dll
mov edx, 0x104
lea rcx, [rsi + 0x51c]
call fcn.140014e40
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsi + 0x828]
call fcn.140014d6c
lea r8, str.System32GameManager64.dll
mov edx, 0x104
lea rcx, [rsi + 0x828]
call fcn.140014e40
lea r8, [rsp + 0x20]
mov edx, 0x104
lea rcx, [rsi + 0xb34]
call fcn.140014d6c
lea r8, str.SysWOW64GameManager32.dll
mov edx, 0x104
lea rcx, [rsi + 0xb34]
call fcn.140014e40
lea r11, [rsp + 0x130]
mov rbx, qword [r11 + 0x20]
mov rbp, qword [r11 + 0x28]
mov rsi, qword [r11 + 0x30]
mov rsp, r11
pop r15
pop r14
pop rdi
ret