joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000d9e8
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 0x14000da57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000da57
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000da57
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000da57
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000da57
cmp dword [rcx + 0x84], 0xe
jbe 0x14000da57
cmp dword [rcx + 0xf8], 0
je 0x14000da57
mov ecx, ebx
call fcn.14000db08
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.14000d8e4
nop
cmp dword [rbp + 0x20], 0
je 0x14000daa5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000dab0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d9e8

Function at 0x14000dbec
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 0x14000da57
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test rax, rax
je 0x14000da57
mov ecx, 0x5a4d
cmp word [rax], cx
jne 0x14000da57
movsxd rcx, dword [rax + 0x3c]
add rcx, rax
cmp dword [rcx], 0x4550
jne 0x14000da57
mov eax, 0x20b
cmp word [rcx + 0x18], ax
jne 0x14000da57
cmp dword [rcx + 0x84], 0xe
jbe 0x14000da57
cmp dword [rcx + 0xf8], 0
je 0x14000da57
mov ecx, ebx
call fcn.14000db08
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.14000d8e4
nop
cmp dword [rbp + 0x20], 0
je 0x14000daa5
mov rbx, qword [rsp + 0x60]
add rsp, 0x50
pop rbp
ret
mov ecx, ebx
call fcn.14000dab0
int3
xor r8d, r8d
xor edx, edx
jmp 0x14000d9e8
Function at 0x140017e98
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 0x140017f1f
mov rsi, rbx
cmp word [rax], bp
je 0x140017ede
or rax, 0xffffffffffffffff
inc rax
cmp word [rsi + rax*2], bp
jne 0x140017ec8
lea rsi, [rsi + rax*2]
add rsi, 2
cmp word [rsi], bp
jne 0x140017ec4
sub rsi, rbx
add rsi, 2
sar rsi, 1
add rsi, rsi
mov rcx, rsi
call fcn.14001344c
mov rdi, rax
test rax, rax
je 0x140017f0c
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.14000c9e0
mov rbp, rdi
xor ecx, ecx
call fcn.140013410
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
Function at 0x14001a094
Capabilities:
Get file size

Disassembly:
push rbx
sub rsp, 0x20
mov edx, dword [rcx + 0x14]
nop
shr edx, 3
test dl, 1
je 0x14001a0aa
mov al, 1
jmp 0x14001a10a
mov eax, dword [rcx + 0x14]
nop
test al, 0xc0
je 0x14001a0bb
mov rax, qword [rcx + 8]
cmp qword [rcx], rax
je 0x14001a108
mov ecx, dword [rcx + 0x18]
nop
call fcn.1400181e0
mov rbx, rax
cmp rax, 0xffffffffffffffff
je 0x14001a108
mov r9d, 1
lea r8, [rsp + 0x38]
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetFilePointerEx]
test eax, eax
je 0x14001a108
lea rdx, [rsp + 0x30]
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x14001a108
mov rax, qword [rsp + 0x30]
cmp qword [rsp + 0x38], rax
sete al
jmp 0x14001a10a
xor al, al
add rsp, 0x20
pop rbx
ret
Function at 0x1400013f0
Capabilities:
Query or enumerate registry key

Disassembly:
push rbp
push rdi
push r12
push r14
push r15
lea rbp, [rsp - 0x1c0]
sub rsp, 0x2c0
mov rax, qword [0x14001d3e0]
xor rax, rsp
mov qword [rbp + 0x1b0], rax
lea rax, [rsp + 0x70]
xor r12d, r12d
mov r9d, 0x20019
xor r8d, r8d
mov r15, rdx
mov r14, rcx
mov qword [rsp + 0x20], rax
mov edi, r12d
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1400015af
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x78]
lea r8, [rsp + 0x64]
mov qword [rsp + 0x58], rax
lea rax, [rbp - 0x7c]
lea rdx, [rbp + 0xa0]
mov qword [rsp + 0x50], rax
lea rax, [rbp - 0x80]
xor r9d, r9d
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x70]
mov dword [rsp + 0x64], 0x104
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x78]
mov dword [rsp + 0x60], r12d
mov qword [rsp + 0x38], rax
lea rax, [rbp - 0x6c]
mov qword [rsp + 0x30], rax
lea rax, [rsp + 0x7c]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x60]
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [rsp + 0x60]
test eax, eax
je 0x1400015a4
mov qword [rsp + 0x308], rsi
mov esi, r12d
mov qword [rsp + 0x300], rbx
nop word [rax + rax]
mov rcx, qword [rsp + 0x70]
lea rax, [rbp - 0x78]
lea r9, [rsp + 0x68]
mov qword [rsp + 0x38], rax
mov qword [rsp + 0x30], r12
lea r8, [rbp - 0x60]
mov edx, esi
mov qword [rsp + 0x28], r12
mov dword [rsp + 0x68], 0xff
mov qword [rsp + 0x20], r12
call qword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x140001588
lea rcx, [rbp - 0x60]
call fcn.1400022d0
lea r8, [rbp - 0x60]
mov rdx, r15
mov r9, rax
mov rcx, r14
mov rbx, rax
call fcn.140001e00
test al, al
je 0x140001588
test rdi, rdi
je 0x140001585
test rbx, rbx
je 0x140001588
mov eax, dword [rbx]
mov ecx, dword [rdi]
cmp eax, ecx
jg 0x140001578
jne 0x140001569
mov eax, dword [rbx + 4]
mov ecx, dword [rdi + 4]
cmp eax, ecx
jg 0x140001578
jne 0x140001569
mov eax, dword [rdi + 8]
cmp dword [rbx + 8], eax
setg al
test al, al
jne 0x140001578
mov edx, 1
mov rcx, rbx
call fcn.140001340
jmp 0x140001588
mov edx, 1
mov rcx, rdi
call fcn.140001340
mov rdi, rbx
inc esi
cmp esi, dword [rsp + 0x60]
jb 0x1400014e0
mov rbx, qword [rsp + 0x300]
mov rsi, qword [rsp + 0x308]
mov rcx, qword [rsp + 0x70]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov rax, rdi
mov rcx, qword [rbp + 0x1b0]
xor rcx, rsp
call fcn.140004c30
add rsp, 0x2c0
pop r15
pop r14
pop r12
pop rdi
pop rbp
ret
Function at 0x140001e00
Capabilities:
Check if file exists
Get file attributes
Query or enumerate registry value

Disassembly:
push rbp
push rbx
push rsi
push rdi
lea rbp, [rsp - 0x168]
sub rsp, 0x268
mov rax, qword [0x14001d3e0]
xor rax, rsp
mov qword [rbp + 0x150], rax
mov rbx, rcx
mov rsi, r8
mov r8, rdx
lea rcx, [rbp + 0x50]
mov edx, 0xff
mov rdi, r9
call fcn.140003d6c
lea rcx, [rbp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140001e47
mov edx, 0xff
lea r8, [0x140013538]
lea rcx, [rbp + 0x50]
sub rdx, rax
call fcn.140003dd0
lea rcx, [rbp + 0x50]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], 0
jne 0x140001e70
mov edx, 0xff
lea rcx, [rbp + 0x50]
mov r8, rsi
sub rdx, rax
call fcn.140003dd0
lea rax, [rsp + 0x38]
lea rdx, [rbp + 0x50]
mov r9d, 0x20019
xor r8d, r8d
mov rcx, rbx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x140001fcb
lea rcx, [rsp + 0x41]
xor edx, edx
mov r8d, 0x103
mov dword [rsp + 0x34], 1
mov dword [rsp + 0x30], 0xff
mov byte [rsp + 0x40], al
call fcn.140004d40
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x40]
lea r9, [rsp + 0x34]
lea rdx, str.JavaHome
xor r8d, r8d
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x140001fb2
xor ebx, ebx
cmp byte [rsp + 0x40], bl
jne 0x140001f1e
mov r8d, ebx
jmp 0x140001f30
lea rax, [rsp + 0x40]
or r8, 0xffffffffffffffff
inc r8
cmp byte [rax + r8], bl
jne 0x140001f27
lea rcx, [rdi + 0x10]
lea rdx, [rsp + 0x40]
call fcn.140001cc0
lea rcx, [rsp + 0x40]
or rax, 0xffffffffffffffff
inc rax
cmp byte [rcx + rax], bl
jne 0x140001f47
mov edx, 0x104
lea r8, str._binjava.exe
lea rcx, [rsp + 0x40]
sub rdx, rax
call fcn.140003dd0
cmp byte [rsp + 0x40], bl
je 0x140001f80
lea rax, [rsp + 0x40]
or rbx, 0xffffffffffffffff
inc rbx
cmp byte [rax + rbx], 0
jne 0x140001f77
lea rcx, [rdi + 0x30]
lea rdx, [rsp + 0x40]
mov r8, rbx
call fcn.140001cc0
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov rcx, qword [rsp + 0x38]
cmp eax, 0xffffffff
setne bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x140001fcd
mov ecx, eax
call fcn.1400015e0
mov rcx, qword [rsp + 0x38]
xor bl, bl
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
movzx eax, bl
jmp 0x140001fcd
xor al, al
mov rcx, qword [rbp + 0x150]
xor rcx, rsp
call fcn.140004c30
add rsp, 0x268
pop rdi
pop rsi
pop rbx
pop rbp
ret
Function at 0x140005a08
Capabilities:
Terminate process

Disassembly:
xor r8d, r8d
xor edx, edx
jmp fcn.140005870
Function at 0x401360
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
sub rsp, 0x28
xor rcx, rcx
call sub.KERNEL32_GetModuleHandleA
mov qword [0x004550a0], rax
call fcn.00439970
call fcn.00435530
call fcn.00439980
lea rax, [section..data]
lea rcx, [0x004021f0]
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, [0x0044ab40]
mov qword [rax + 0x68], rcx
lea rcx, [0x0044af40]
mov qword [rax + 0x70], rcx
lea rcx, [0x0044af70]
mov qword [rax + 0x78], rcx
lea rcx, [0x0044b520]
mov qword [rax + 0x80], rcx
lea rcx, [0x00462380]
mov qword [rax + 0x50], rcx
mov rcx, rax
push 0
jmp 0x44c040
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.0044bfe0
test edi, edi
je 0x44a6d5
test ebx, ebx
jne 0x44a6ec
test edi, edi
jne 0x44a6c6
call qword [0x00462f88]
call qword [0x00462f90]
call fcn.0044c000
mov ecx, r14d
call fcn.0044bd90
jmp 0x44a6ec
mov rcx, rsi
call fcn.0044a480
call fcn.0044beb0
call qword [0x00462f80]
test ebx, ebx
je 0x44a6b6
add rsp, 0x20
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
jmp fcn.0044c000
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 [0x00462fe0], eax
mov rcx, qword [rsi + 0x50]
call fcn.0043bd10
mov rcx, qword [rsi + 0x88]
call fcn.0043bd20
mov dword [0x004768e0], 1
lea rdi, [0x004768e0]
mov qword [0x004768e8], rsi
call sub.KERNEL32_GetEnvironmentStrings
mov qword [0x00476880], rax
call sub.KERNEL32_GetCommandLineA
mov qword [0x00476890], rax
mov rcx, qword [rsi + 0x68]
mov rdx, qword [rsi + 0x70]
mov r8, qword [rsi + 0x78]
mov r9, qword [rsi + 0x80]
call fcn.0044a900
xor edx, edx
mov rcx, rdi
call fcn.0044bdb0
test byte [rsi + 0x20], 1
jne 0x44c104
mov ecx, dword [0x004768ac]
mov rdx, qword [0x004768b0]
mov r8, qword [0x004768b8]
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 0x44a690
mov rax, qword [0x00476890]
nop dword [rax + rax]
inc rax
mov cl, byte [rax - 1]
cmp cl, 9
je 0x44c110
cmp cl, 0x20
je 0x44c110
cmp cl, 0x22
jne 0x44c12e
mov cl, byte [rax]
mov edx, 0x22
jmp 0x44c136
dec rax
mov edx, 0x20
movsx edi, cl
cmp edx, edi
je 0x44c154
nop dword [rax]
test cl, cl
je 0x44c154
cmp cl, 9
je 0x44c154
movsx ecx, byte [rax + 1]
inc rax
cmp edx, ecx
jne 0x44c140
lea rdi, [rax + 1]
cmp cl, 0x22
cmovne rdi, rax
jmp 0x44c173
inc rdi
movzx eax, byte [rdi]
cmp al, 0x20
je 0x44c170
cmp al, 9
je 0x44c170
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 0x44a690
nop
add rsp, 0x88
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x401830
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
push rdi
push rbx
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
mov rsi, rdx
mov rax, rcx
lea rdx, [0x004512b0]
lea rdi, [rbp - 0x48]
mov rcx, rdi
mov r8, rax
call fcn.00403510
lea rdx, [0x004512de]
mov r8d, 0x14
mov rcx, rdi
call fcn.004059d0
mov rdi, rax
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], 0
mov word [rbp + 0x38], 0
mov rcx, qword [rdi + 0x20]
cmp rcx, 7
ja 0x4018b9
mov r8, qword [rdi + 0x18]
mov rbx, rdi
add rbx, 8
inc r8
je 0x4018d0
lea rcx, [rbp + 0x38]
mov rdx, rbx
call fcn.0043a340
mov rcx, qword [rdi + 0x20]
jmp 0x4018d0
mov rbx, rdi
add rbx, 8
mov rax, qword [rdi + 8]
mov qword [rbp + 0x38], rax
mov qword [rdi + 8], 0
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x48], rax
mov qword [rbp + 0x50], rcx
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], 0
mov word [rbx], 0
lea rcx, [rbp - 0x20]
lea rdx, [rbp + 0x30]
mov r8, rsi
call fcn.004033f0
lea rdx, [0x00451308]
lea rcx, [rbp - 0x20]
mov r8d, 1
call fcn.004059d0
mov rdi, rax
mov qword [rbp + 0x28], 7
lea rsi, [rbp + 0x10]
mov qword [rbp + 0x20], 0
mov word [rbp + 0x10], 0
mov rcx, qword [rdi + 0x20]
cmp rcx, 7
ja 0x40195f
mov r8, qword [rdi + 0x18]
mov rbx, rdi
add rbx, 8
inc r8
je 0x401976
mov rcx, rsi
mov rdx, rbx
call fcn.0043a340
mov rcx, qword [rdi + 0x20]
jmp 0x401976
mov rbx, rdi
add rbx, 8
mov rax, qword [rdi + 8]
mov qword [rbp + 0x10], rax
mov qword [rdi + 8], 0
mov rax, qword [rdi + 0x18]
mov qword [rbp + 0x20], rax
mov qword [rbp + 0x28], rcx
mov qword [rdi + 0x20], 7
mov qword [rdi + 0x18], 0
mov word [rbx], 0
mov rax, qword [rbp]
cmp rax, 8
jb 0x4019bb
mov rcx, qword [rbp - 0x18]
lea rax, [rax + rax + 2]
cmp rax, 0x1000
jb 0x4019b6
mov rcx, qword [rcx - 8]
call fcn.004062c0
mov qword [rbp], 7
mov qword [rbp - 8], 0
mov word [rbp - 0x18], 0
mov rax, qword [rbp + 0x50]
cmp rax, 8
jb 0x4019f5
mov rcx, qword [rbp + 0x38]
lea rax, [rax + rax + 2]
cmp rax, 0x1000
jb 0x4019f0
mov rcx, qword [rcx - 8]
call fcn.004062c0
mov qword [rbp + 0x50], 7
mov qword [rbp + 0x48], 0
mov word [rbp + 0x38], 0
mov rax, qword [rbp - 0x28]
cmp rax, 8
jb 0x401a2f
mov rcx, qword [rbp - 0x40]
lea rax, [rax + rax + 2]
cmp rax, 0x1000
jb 0x401a2a
mov rcx, qword [rcx - 8]
call fcn.004062c0
cmp qword [rbp + 0x28], 7
cmova rsi, qword [rbp + 0x10]
mov dword [rsp + 0x28], 0
mov qword [rsp + 0x20], 0
lea rdx, [0x0045130c]
lea r8, [0x00451316]
xor ecx, ecx
mov r9, rsi
call sub.SHELL32.DLL_ShellExecuteW
cmp eax, 0x20
jg 0x401aa4
lea rcx, [0x004645c8]
lea rdx, [0x004510a6]
call fcn.00403130
mov rsi, rax
mov rax, qword [rsi]
mov rcx, qword [rax - 0x18]
add rcx, rsi
mov edx, 0xa
call fcn.004051b0
movzx edx, al
mov rcx, rsi
call fcn.00405040
mov rcx, rsi
call fcn.004042b0
mov rax, qword [rbp + 0x28]
cmp rax, 8
jb 0x401ac8
mov rcx, qword [rbp + 0x10]
lea rax, [rax + rax + 2]
cmp rax, 0x1000
jb 0x401ac3
mov rcx, qword [rcx - 8]
call fcn.004062c0
nop
add rsp, 0xd8
pop rbx
pop rdi
pop rsi
pop rbp
ret
Function at 0x4020f0
Capabilities:
Create process on windows

Disassembly:
push rbp
push rsi
sub rsp, 0xd8
lea rbp, [rsp + 0x80]
xorps xmm0, xmm0
movaps xmmword [rbp - 0x30], xmm0
movaps xmmword [rbp + 0x20], xmm0
movaps xmmword [rbp + 0x10], xmm0
movaps xmmword [rbp], xmm0
movaps xmmword [rbp - 0x10], xmm0
movaps xmmword [rbp - 0x20], xmm0
mov qword [rbp + 0x30], 0
mov dword [rbp - 0x30], 0x68
movaps xmmword [rbp + 0x40], xmm0
mov qword [rbp + 0x50], 0
lea rdx, [rcx + 8]
cmp qword [rcx + 0x20], 7
cmova rdx, qword [rcx + 8]
lea rax, [rbp + 0x40]
mov qword [rsp + 0x48], rax
lea rax, [rbp - 0x30]
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x38], 0
mov qword [rsp + 0x30], 0
mov dword [rsp + 0x28], 0
mov dword [rsp + 0x20], 0
xor ecx, ecx
xor r8d, r8d
xor r9d, r9d
call sub.KERNEL32_CreateProcessW
test eax, eax
jne 0x4021d2
lea rcx, [0x004645c8]
lea rdx, [0x004510c3]
call fcn.00403130
mov rsi, rax
mov rax, qword [rsi]
mov rcx, qword [rax - 0x18]
add rcx, rsi
mov edx, 0xa
call fcn.004051b0
movzx edx, al
mov rcx, rsi
call fcn.00405040
mov rcx, rsi
call fcn.004042b0
nop
add rsp, 0xd8
pop rsi
pop rbp
ret
xor ecx, ecx
call sub.KERNEL32_ExitProcess
ud2

Function at 0x434df0
Capabilities:
Link many functions at runtime

Disassembly:
push rbp
push r15
push r14
push r13
push r12
push rsi
push rdi
push rbx
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov r14, r9
mov r15, r8
mov rbx, rdx
mov rsi, rcx
test rsi, rsi
je 0x434f32
test rbx, rbx
je 0x434f32
test r15, r15
je 0x434f32
lea rcx, [0x00453260]
call sub.KERNEL32_GetModuleHandleA
mov rdi, rax
test rdi, rdi
je 0x434f32
mov r13, qword [rbp + 0x78]
mov r12, qword [rbp + 0x70]
lea rdx, [0x00453269]
mov rcx, rdi
call sub.KERNEL32_GetProcAddress
mov qword [rsi], rax
lea rdx, [0x00453282]
mov rcx, rdi
call sub.KERNEL32_GetProcAddress
mov qword [rbx], rax
lea rdx, [0x0045329d]
mov rcx, rdi
call sub.KERNEL32_GetProcAddress
mov qword [r15], rax
lea rdx, [0x004532bc]
mov rcx, rdi
call sub.KERNEL32_GetProcAddress
mov qword [r14], rax
lea rdx, [0x004532d7]
mov rcx, rdi
call sub.KERNEL32_GetProcAddress
mov qword [r12], rax
lea rdx, [0x00453305]
mov rcx, rdi
call sub.KERNEL32_GetProcAddress
mov qword [r13], rax
mov rax, qword [rsi]
mov qword [0x00465010], rax
cmp qword [r14], 0
je 0x434f0e
cmp qword [r12], 0
jne 0x434edc
lea rax, [0x00434da0]
mov qword [r12], rax
mov rcx, qword [r13]
test rcx, rcx
je 0x434f21
cmp qword [rsi], 0
je 0x434f32
cmp qword [rbx], 0
je 0x434f32
cmp qword [r15], 0
je 0x434f32
cmp qword [r14], 0
je 0x434f32
cmp qword [r12], 0
je 0x434f32
xor eax, eax
test rcx, rcx
setne al
jmp 0x434f34
lea rax, [0x00434db0]
mov qword [r14], rax
cmp qword [r12], 0
jne 0x434edc
jmp 0x434ed1
lea rcx, [0x00434da0]
mov qword [r13], rcx
cmp qword [rsi], 0
jne 0x434eeb
xor eax, eax
add rsp, 0x28
pop rbx
pop rdi
pop rsi
pop r12
pop r13
pop r14
pop r15
pop rbp
ret
Function at 0x436cd0
Capabilities:
Get system information on windows

Disassembly:
push rbp
push rsi
sub rsp, 0x58
lea rbp, [rsp + 0x50]
cmp dword [0x00465460], 0
jg 0x436d3c
mov eax, dword [0x00465460]
test eax, eax
jg 0x436d3c
mov esi, 0xffffffff
nop word cs:[rax + rax]
test eax, eax
jne 0x436d10
xor eax, eax
lock cmpxchg dword [0x00465460], esi
je 0x436d25
xor ecx, ecx
xor edx, edx
call sub.KERNEL32_SleepEx
mov eax, dword [0x00465460]
test eax, eax
jle 0x436d00
jmp 0x436d3c
lea rcx, [0x00465468]
call fcn.00450ca0
mov eax, 1
xchg dword [0x00465460], eax
lea rcx, [0x00465468]
call fcn.00450b78
cmp qword [0x00465060], 0
jne 0x436dca
lea rcx, [rbp - 0x28]
call sub.KERNEL32_GetSystemInfo
mov eax, dword [rbp]
lea ecx, [rax - 1]
test rcx, rax
jne 0x436dde
mov edx, 0xffffffff
mov ecx, dword [rbp - 0x24]
add edx, ecx
test rdx, rcx
jne 0x436dde
mov qword [0x00465070], rax
mov qword [0x00465068], rcx
movaps xmm0, xmmword [0x00453430]
movups xmmword [0x00465078], xmm0
mov dword [0x00465088], 7
mov dword [0x00465400], 7
lea rcx, [0x00465408]
mov edx, 0x80000fa0
call sub.KERNEL32_InitializeCriticalSectionAndSpinCount
call sub.KERNEL32_GetTickCount
and eax, 0xfffffff0
xor eax, 0x55555558
mov qword [0x00465060], rax
lea rcx, [0x00465468]
call fcn.00450cd0
nop
add rsp, 0x58
pop rsi
pop rbp
ret
call fcn.0044a380
ud2

Function at 0x43a980
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, edx
call sub.KERNEL32_GetFileAttributesA
mov ecx, eax
cmp ecx, 0xffffffff
je 0x43a9bd
xor eax, eax
test sil, 2
je 0x43a9b6
and ecx, 1
je 0x43a9b6
call fcn.00449b60
mov dword [rax], 5
mov eax, 0xffffffff
add rsp, 0x28
pop rsi
pop rbp
ret
add rsp, 0x28
pop rsi
pop rbp
jmp fcn.0043d2d0
jmp 0x43a980
Function at 0x43adb0
Capabilities:
Check if file exists

Disassembly:
push rbp
push r14
push rsi
push rdi
push rbx
sub rsp, 0x50
lea rbp, [rsp + 0x50]
mov ebx, edx
mov r14, rcx
mov qword [rbp + 0x48], r9
mov qword [rbp + 0x40], r8
call fcn.0043c770
test bh, 0xc0
jne 0x43ade6
mov rax, qword [0x00462390]
mov ecx, 0xc000
and ecx, dword [rax]
or ebx, ecx
mov eax, ebx
and eax, 0x700
add eax, 0xffffff00
shr eax, 8
mov edi, 3
cmp eax, 6
ja 0x43ae11
shl rax, 0x28
sar rax, 0x28
lea rcx, [0x00453490]
mov edi, dword [rcx + rax*4]
test bh, 1
je 0x43ae36
lea rax, [rbp + 0x48]
mov qword [rbp - 0x18], rax
mov al, byte [0x0045db60]
and al, byte [rbp + 0x40]
mov eax, 0x80
mov ecx, 1
cmovs ecx, eax
jmp 0x43ae46
mov rcx, r14
call sub.KERNEL32_GetFileAttributesA
xor ecx, ecx
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ebx
and al, 3
je 0x43ae5f
cmp al, 2
je 0x43ae66
cmp al, 1
jne 0x43af46
mov edx, 0x40000000
jmp 0x43ae6b
mov edx, 0x80000000
jmp 0x43ae6b
mov edx, 0xc0000000
mov eax, ebx
and eax, 0x70
add eax, 0xfffffff0
shr eax, 4
cmp eax, 3
mov esi, 3
cmovb esi, eax
xor r8d, r8d
cmp edx, 0x80000000
sete r8b
test bl, 4
cmove r8d, esi
mov dword [rbp - 0x18], 0x18
mov qword [rbp - 0x10], 0
mov eax, ebx
shr eax, 7
not eax
and eax, 1
mov dword [rbp - 8], eax
mov dword [rsp + 0x28], ecx
mov dword [rsp + 0x20], edi
mov qword [rsp + 0x30], 0
lea r9, [rbp - 0x18]
mov rcx, r14
call sub.KERNEL32_CreateFileA
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x43af26
mov edi, ebx
shr edi, 1
not edi
and edi, 0x4000
or edi, ebx
mov ecx, esi
call fcn.0043acf0
mov edx, edi
or edx, 0x2000
test eax, eax
cmove edx, edi
and edx, 0xfffff8ff
mov ecx, esi
call fcn.0043c960
mov edi, eax
cmp edi, 0xffffffff
jne 0x43af52
mov ecx, 4
call fcn.0043d210
mov rcx, rsi
call sub.KERNEL32_CloseHandle
mov edi, 0xffffffff
jmp 0x43af52
call sub.KERNEL32_GetLastError
movzx eax, ax
test bh, 1
mov edx, 0x50
mov ecx, 2
cmovne ecx, edx
cmp eax, 0x6e
cmovne ecx, eax
jmp 0x43af4b
mov ecx, 1
call fcn.0043d210
mov edi, eax
call fcn.0043c7d0
mov eax, edi
add rsp, 0x50
pop rbx
pop rdi
pop rsi
pop r14
pop rbp
ret

Function at 0x43b810
Capabilities:
Read file on windows

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
cmp dword [0x00461b70], ecx
jbe 0x43b84c
movsxd rax, ecx
lea rcx, [0x00465cb0]
movsxd rcx, dword [rcx + rax*4]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 4]
call sub.KERNEL32_ReadFile
cmp eax, 1
jne 0x43b85d
mov eax, dword [rbp - 4]
jmp 0x43b856
mov ecx, 6
call fcn.0043d210
nop
add rsp, 0x30
pop rbp
ret
call sub.KERNEL32_GetLastError
mov ecx, eax
xor eax, eax
cmp ecx, 0x6d
je 0x43b856
jmp 0x43b851

Function at 0x43b8a0
Capabilities:
Write file on windows

Disassembly:
push rbp
sub rsp, 0x30
lea rbp, [rsp + 0x30]
cmp dword [0x00461b70], ecx
jbe 0x43b8dc
movsxd rax, ecx
lea rcx, [0x00465cb0]
movsxd rcx, dword [rcx + rax*4]
mov qword [rsp + 0x20], 0
lea r9, [rbp - 4]
call sub.KERNEL32_WriteFile
cmp eax, 1
jne 0x43b8e8
mov eax, dword [rbp - 4]
jmp 0x43b8ed
mov ecx, 6
call fcn.0043d210
jmp 0x43b8ed
call fcn.0043d2d0
nop
add rsp, 0x30
pop rbp
ret
Function at 0x43f1f0
Capabilities:
Delete file

Disassembly:
push rbp
sub rsp, 0x20
lea rbp, [rsp + 0x20]
call sub.KERNEL32_DeleteFileA
cmp eax, 1
jne 0x43f20c
xor eax, eax
add rsp, 0x20
pop rbp
ret
add rsp, 0x20
pop rbp
jmp fcn.0043d2d0

Function at 0x43f490
Capabilities:
Timestomp file

Disassembly:
push rbp
push rsi
push rdi
sub rsp, 0x40
lea rbp, [rsp + 0x40]
mov rdi, rdx
call fcn.0043dc20
mov rsi, rax
cmp rsi, 0xffffffffffffffff
je 0x43f4d7
test rdi, rdi
je 0x43f4de
mov rcx, qword [rdi]
lea rdx, [rbp - 8]
call fcn.0043f220
cmp eax, 1
jne 0x43f511
mov rcx, qword [rdi + 8]
lea rdx, [rbp - 0x10]
call fcn.0043f220
cmp eax, 1
je 0x43f4fe
jmp 0x43f511
mov ecx, 0xffffffff
jmp 0x43f51e
lea rdi, [rbp - 0x20]
mov rcx, rdi
call sub.KERNEL32_GetLocalTime
lea rdx, [rbp - 8]
mov rcx, rdi
call sub.KERNEL32_SystemTimeToFileTime
mov rax, qword [rbp - 8]
mov qword [rbp - 0x10], rax
lea r8, [rbp - 8]
lea rdx, [rbp - 0x10]
mov rcx, rsi
mov r9, rdx
call sub.KERNEL32_SetFileTime
xor ecx, ecx
test eax, eax
jne 0x43f51e
call fcn.0043d2d0
mov ecx, eax
mov eax, ecx
add rsp, 0x40
pop rdi
pop rsi
pop rbp
ret

Function at 0x440ac0
Capabilities:
Check if file exists

Disassembly:
push rbp
push rsi
sub rsp, 0x28
lea rbp, [rsp + 0x20]
mov esi, edx
call sub.KERNEL32_GetFileAttributesA
mov ecx, eax
cmp ecx, 0xffffffff
je 0x43a9bd
xor eax, eax
test sil, 2
je 0x43a9b6
and ecx, 1
je 0x43a9b6
call fcn.00449b60
mov dword [rax], 5
mov eax, 0xffffffff
add rsp, 0x28
pop rsi
pop rbp
ret
add rsp, 0x28
pop rsi
pop rbp
jmp fcn.0043d2d0
jmp 0x43a980