joyce8/EMBER2024-capa huggingface dataset:
Function at 0x14000af94
Capabilities:
Set file attributes

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push rbp
lea rbp, [rax - 0x68]
sub rsp, 0x160
mov rax, qword [0x140005218]
xor rax, rsp
mov qword [rbp + 0x50], rax
mov rbx, rdx
xor r9d, r9d
lea rax, [0x1400151b0]
mov rdi, rcx
mov qword [rsp + 0x28], rax
lea r8, [0x1400151c0]
lea edx, [r9 + 0x40]
mov rcx, rbx
mov dword [rsp + 0x20], 5
call section.PAGE
xor esi, esi
test eax, eax
js 0x14000b0de
lea rcx, [rsp + 0x50]
xor edx, edx
mov r8d, pe_nt_image_headers64
call fcn.1400013e0
lea rax, [rsp + 0x64]
lea rdx, [0x1400151d0]
lea rcx, [rsp + 0x30]
mov qword [rsp + 0x38], rax
mov dword [rsp + 0x30], 0xe20000
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
lea rcx, [rsp + 0x30]
mov rdx, rbx
call qword [sym.imp.ntoskrnl.exe_RtlAppendUnicodeToString]
movzx r9d, word [rsp + 0x30]
mov rcx, qword [0x140005348]
xor eax, eax
mov dword [rsp + 0x60], r9d
lea r8, [rsp + 0x50]
lea rdx, [rsp + 0x40]
add r9d, 0x18
mov byte [rsp + 0x50], 1
mov qword [rsp + 0x58], rsi
mov qword [rsp + 0x40], rax
mov qword [rsp + 0x48], rax
mov dword [rsp + 0x20], 0xa
call qword [sym.imp.ntoskrnl.exe_ZwSetInformationFile]
test eax, eax
jns 0x14000b09b
lea r8, [rsp + 0x30]
lea rdx, [0x140005348]
mov rcx, rdi
call fcn.14000adb8
test eax, eax
js 0x14000b0de
lea rdx, [rsp + 0x30]
lea rcx, [0x140005330]
call qword [sym.imp.ntoskrnl.exe_RtlCopyUnicodeString]
movzx eax, word [rsp + 0x30]
mov rcx, qword [0x140005350]
mov r9d, 2
lea r8, [0x140014fe0]
xor edx, edx
add eax, r9d
mov dword [rsp + 0x28], eax
mov rax, qword [rsp + 0x38]
mov qword [rsp + 0x20], rax
call fcn.140008598
mov rcx, qword [rbp + 0x50]
xor rcx, rsp
call fcn.1400021b0
lea r11, [rsp + 0x160]
mov rbx, qword [r11 + 0x10]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret

Function at 0x14000b3ec
Capabilities:
Create device object

Disassembly:
sub rsp, 0x68
cmp qword [0x140005310], 0
jne 0x14000b442
lea rdx, [0x1400152b0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
mov rcx, qword [0x140005308]
lea rax, [0x140005310]
mov qword [rsp + 0x30], rax
lea r8, [rsp + 0x40]
mov r9d, 0x22
xor edx, edx
mov byte [rsp + 0x28], 0
and dword [rsp + 0x20], 0
call qword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov ecx, eax
test eax, eax
js 0x14000b493
lea rdx, [0x1400152b0]
lea rcx, [rsp + 0x40]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [0x1400152d0]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea rdx, [rsp + 0x40]
lea rcx, [rsp + 0x50]
call qword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov ecx, eax
test eax, eax
js 0x14000b493
mov rax, qword [0x140005310]
or dword [rax + 0x30], 4
mov rax, qword [0x140005310]
btr dword [rax + 0x30], 7
mov eax, ecx
add rsp, 0x68
ret

Function at 0x14000ca10
Capabilities:
Get system information on windows

Disassembly:
sub rsp, 0x68
lea r9, [rsp + 0x70]
lea rdx, [rsp + 0x20]
mov r8d, 0x40
xor ecx, ecx
call sub.ntoskrnl.exe_ZwQuerySystemInformation
mov ecx, dword [0x1400053a8]
test eax, eax
cmove ecx, dword [rsp + 0x28]
mov dword [0x1400053a8], ecx
add rsp, 0x68
ret
Function at 0x14000cf38
Capabilities:
Attach user process memory

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rsi
mov qword [rax + 0x18], rdi
mov qword [rax + 0x20], r12
push r13
push r14
push r15
sub rsp, 0x40
mov r13d, r9d
mov r15, r8
mov r14, rdx
mov r12, rcx
mov rsi, qword [rsp + 0x80]
and qword [rsi], 0
and qword [rax - 0x30], 0
mov ebx, 0xc0000001
mov edx, 0x30
xor ecx, ecx
mov r8d, 0x47554452
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
mov qword [rsp + 0x30], rax
test rax, rax
je 0x14000d02e
mov rdx, rax
mov rcx, r12
call qword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
nop
lea rdx, [rsp + 0x24]
mov rcx, r15
call fcn.140008c0c
mov ebx, eax
mov dword [rsp + 0x20], eax
test eax, eax
js 0x14000d02e
mov edx, dword [rsp + 0x24]
mov r8d, 0x1000
mov rcx, r14
call qword [sym.imp.ntoskrnl.exe_ProbeForWrite]
mov r9d, r13d
mov r8, r15
mov edx, dword [rsp + 0x24]
mov rcx, r14
call fcn.140008c4c
mov ebx, eax
mov dword [rsp + 0x20], eax
test eax, eax
js 0x14000d02e
lea r8, [rsp + 0x28]
lea rdx, [0x140015360]
mov rcx, r14
call fcn.1400089a0
mov ebx, eax
mov dword [rsp + 0x20], eax
test eax, eax
js 0x14000d02e
jmp 0x14000d022
test ebx, ebx
js 0x14000d02e
mov rax, qword [rsp + 0x28]
mov qword [rsi], rax
test rdi, rdi
je 0x14000d04a
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_KeUnstackDetachProcess]
mov edx, 0x47554452
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rbx, qword [rsp + 0x60]
mov rsi, qword [rsp + 0x68]
mov rdi, qword [rsp + 0x70]
mov r12, qword [rsp + 0x78]
add rsp, 0x40
pop r15
pop r14
pop r13
ret

Function at 0x14000d140
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rsi
mov qword [r11 + 0x20], rdi
push rbp
lea rbp, [r11 - 0x5f]
sub rsp, 0xa0
and dword [rbp + 0x17], 0
xor eax, eax
mov edi, r8d
and dword [rsp + 0x50], eax
and qword [r11 - 0x60], rax
and qword [rbp + 0x67], rax
xorps xmm0, xmm0
movdqu xmmword [rbp + 0x47], xmm0
and qword [rbp + 0x2f], rax
mov dword [rsp + 0x40], 0x60
mov dword [rsp + 0x38], 3
and dword [rsp + 0x30], eax
mov qword [rbp + 0x37], rcx
mov rsi, rdx
lea r9, [rbp + 0x17]
lea r8, [rbp + 0x27]
lea rcx, [rbp + 0x67]
mov edx, 0x40000000
mov dword [rsp + 0x28], 0x80
and qword [rsp + 0x20], rax
mov dword [rbp + 0x1b], eax
mov qword [rbp + 0x1f], rax
mov dword [rbp + 0x27], 0x30
mov dword [rbp + 0x3f], 0x240
call qword [sym.imp.ntoskrnl.exe_ZwCreateFile]
mov ebx, eax
test eax, eax
js 0x14000d208
and qword [rsp + 0x40], 0
and qword [rsp + 0x38], 0
mov rcx, qword [rbp + 0x67]
lea rax, [rbp + 0x17]
mov dword [rsp + 0x30], edi
xor r9d, r9d
xor r8d, r8d
xor edx, edx
mov qword [rsp + 0x28], rsi
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ZwWriteFile]
mov ebx, eax
mov rcx, qword [rbp + 0x67]
test rcx, rcx
je 0x14000d217
call qword [sym.imp.ntoskrnl.exe_ZwClose]
lea r11, [rsp + 0xa0]
mov eax, ebx
mov rbx, qword [r11 + 0x18]
mov rsi, qword [r11 + 0x20]
mov rdi, qword [r11 + 0x28]
mov rsp, r11
pop rbp
ret
Function at 0x14000d7b8
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
mov qword [rsp + 0x18], rdi
xor r9d, r9d
cmp dword [rcx], 0x77999977
lea rbx, [rcx + 4]
mov r11d, dword [rbx]
mov dil, r8b
mov dword [rsp + 8], r9d
mov r10d, 0xc0000001
jne 0x14000d856
mov eax, dword [rcx + 0x168]
and dword [rbx], r9d
add eax, 0x170
cmp eax, edx
ja 0x14000d856
mov r8d, eax
and r8d, 3
and eax, 0xfffffffc
jbe 0x14000d819
lea edx, [rax - 1]
shr edx, 2
inc edx
xor r9d, dword [rcx]
add rcx, 4
dec rdx
jne 0x14000d808
mov dword [rsp + 8], r9d
test r8d, r8d
je 0x14000d840
lea rax, [rsp + 8]
lea rdx, [rsp + 8]
mov r9d, r8d
sub rcx, rax
mov al, byte [rcx + rdx]
xor byte [rdx], al
inc rdx
dec r9
jne 0x14000d82e
mov r9d, dword [rsp + 8]
mov eax, r11d
test dil, dil
cmovne eax, r9d
mov dword [rbx], eax
jne 0x14000d853
cmp r11d, r9d
jne 0x14000d856
xor r10d, r10d
mov rbx, qword [rsp + 0x10]
mov rdi, qword [rsp + 0x18]
mov eax, r10d
ret

Function at 0x14000d864
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x18], rbx
mov qword [rsp + 0x20], rsi
push rbp
push rdi
push r14
lea rbp, [rsp - 0x47]
sub rsp, 0xb0
mov rax, qword [0x140005218]
xor rax, rsp
mov qword [rbp + 0x37], rax
mov rsi, rdx
mov edi, ecx
mov ebx, 0xc0000001
cmp ecx, 0x64
ja 0x14000d995
lea rdx, [0x140015090]
lea rcx, [rbp - 0x21]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [0x1400153b0]
lea rcx, [rbp - 9]
mov r9d, edi
mov edx, 0x20
call fcn.1400018f4
xor r14d, r14d
lea rax, [rbp - 0x29]
mov qword [rsp + 0x30], rax
lea r8, [rbp - 9]
lea rdx, [rbp - 0x21]
lea r9d, [r14 + 3]
xor ecx, ecx
mov dword [rsp + 0x28], r14d
mov qword [rsp + 0x20], r14
call fcn.140008160
cmp eax, 0xc0000023
mov ebx, eax
cmove ebx, r14d
test ebx, ebx
js 0x14000d995
mov edx, dword [rbp - 0x29]
lea ecx, [r14 + 1]
mov r8d, 0x47554452
mov ebx, 0xc0000001
call qword [sym.imp.ntoskrnl.exe_ExAllocatePoolWithTag]
mov rdi, rax
test rax, rax
je 0x14000d995
mov eax, dword [rbp - 0x29]
mov qword [rsp + 0x30], r14
lea r9d, [r14 + 3]
mov dword [rsp + 0x28], eax
lea r8, [rbp - 9]
lea rdx, [rbp - 0x21]
xor ecx, ecx
mov qword [rsp + 0x20], rdi
call fcn.140008160
mov ebx, eax
test eax, eax
js 0x14000d982
mov edx, dword [rbp - 0x29]
test edx, edx
je 0x14000d968
mov rax, rdi
mov ecx, edx
xor byte [rax], 0xa8
inc rax
dec rcx
jne 0x14000d95a
mov edx, dword [rbp - 0x29]
xor r8d, r8d
mov rcx, rdi
call fcn.14000d7b8
mov ebx, eax
test eax, eax
js 0x14000d982
mov ebx, dword [rbp - 0x29]
mov qword [rsi], rdi
mov rdi, r14
test rdi, rdi
je 0x14000d995
mov edx, 0x47554452
mov rcx, rdi
call qword [sym.imp.ntoskrnl.exe_ExFreePoolWithTag]
mov eax, ebx
mov rcx, qword [rbp + 0x37]
xor rcx, rsp
call fcn.1400021b0
lea r11, [rsp + 0xb0]
mov rbx, qword [r11 + 0x30]
mov rsi, qword [r11 + 0x38]
mov rsp, r11
pop r14
pop rdi
pop rbp
ret
Function at 0x14000d9bc
Capabilities:
Encode data using xor

Disassembly:
mov qword [rsp + 0x10], rbx
push rdi
sub rsp, 0x90
mov rax, qword [0x140005218]
xor rax, rsp
mov qword [rsp + 0x80], rax
mov edi, dword [rcx + 0x168]
xor r8d, r8d
mov rbx, rcx
add edi, 0x170
call fcn.14000d7b8
mov ecx, eax
test eax, eax
js 0x14000da6b
mov r9d, dword [rbx + 8]
lea r8, [0x1400153b0]
lea rcx, [rsp + 0x40]
mov edx, 0x80
call fcn.1400018f4
test edi, edi
je 0x14000da26
mov rax, rbx
mov ecx, edi
xor byte [rax], 0xa8
inc rax
dec rcx
jne 0x14000da1b
lea rdx, [0x140015090]
lea rcx, [rsp + 0x30]
call qword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
lea r8, [rsp + 0x40]
lea rdx, [rsp + 0x30]
mov r9d, 3
xor ecx, ecx
mov dword [rsp + 0x28], edi
mov qword [rsp + 0x20], rbx
call fcn.140008598
mov ecx, eax
test edi, edi
je 0x14000da6b
mov eax, edi
xor byte [rbx], 0xa8
inc rbx
dec rax
jne 0x14000da60
mov eax, ecx
mov rcx, qword [rsp + 0x80]
xor rcx, rsp
call fcn.1400021b0
mov rbx, qword [rsp + 0xa8]
add rsp, 0x90
pop rdi
ret

Function at 0x14000dd5c
Capabilities:
Create thread

Disassembly:
push rbx
sub rsp, 0x40
and qword [rsp + 0x50], 0
call fcn.14000da90
or qword [rsp + 0x30], 0xffffffffffffffff
lea rax, [0x14000dba4]
lea rcx, [rsp + 0x50]
xor r9d, r9d
mov qword [rsp + 0x28], rax
and qword [rsp + 0x20], 0
xor r8d, r8d
xor edx, edx
call qword [sym.imp.ntoskrnl.exe_PsCreateSystemThread]
mov ebx, eax
test eax, eax
js 0x14000ddcc
mov r8, qword [sym.imp.ntoskrnl.exe_PsThreadType]
and qword [rsp + 0x28], 0
mov rcx, qword [rsp + 0x50]
mov r8, qword [r8]
lea rax, [0x1400053b0]
xor r9d, r9d
xor edx, edx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ntoskrnl.exe_ObReferenceObjectByHandle]
mov ebx, eax
mov rcx, qword [rsp + 0x50]
test rcx, rcx
je 0x14000dddc
call qword [sym.imp.ntoskrnl.exe_ZwClose]
mov eax, ebx
add rsp, 0x40
pop rbx
ret

Function at 0x140016000
Capabilities:
Create device object
Create thread

Disassembly:
mov qword [rsp + 8], rbx
push rdi
sub rsp, 0x20
mov rbx, rdx
mov rdi, rcx
call fcn.14001602c
mov rdx, rbx
mov rcx, rdi
mov rbx, qword [rsp + 0x30]
add rsp, 0x20
pop rdi
jmp fcn.14000b860
Function at 0x14000fb70
Capabilities:
Set environment variable

Disassembly:
push rbx
sub rsp, 0x20
cmp qword [rcx + 0x18], 7
mov rbx, rcx
mov rdx, rcx
jbe 0x14000fb86
mov rdx, qword [rcx]
lea rcx, str.SteamAppId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
cmp qword [rbx + 0x18], 7
jbe 0x14000fb9d
mov rbx, qword [rbx]
mov rdx, rbx
lea rcx, str.SteamGameId
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, str.cold_player
lea rcx, str.SteamAppUser
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, str.cold_player
lea rcx, str.SteamUser
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x14003a078]
lea rcx, str.SteamClientLaunch
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
lea rdx, [0x14003a078]
lea rcx, str.SteamEnv
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
call fcn.140006250
cmp qword [rax + 0x18], 7
jbe case.default.0x14000fc1b
mov rax, qword [rax]
mov rdx, rax
lea rcx, str.SteamPath
add rsp, 0x20
pop rbx
jmp qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableW]
xor bh, bh
or byte [rdx + rsi], dl
inc dword [rdx + 0x1d02ff37]
inc qword [r10]
imul edi, edi, 0xff854407
or dl, byte [rax - 0x6e]
call qword [rax]
pop rbx
invalid
invalid
sbb ah, byte [rcx]
invalid
invalid
call ss:[0x15e078e53]
and esi, dword [rdi]
call [rbx]
and esi, dword [rdi]
call [rbx + riz]
cmp bh, bh
sbb al, 0x24
invalid
sbb eax, 0x1dff3923
and al, 0x39
call [0x15e07907d]
and edi, dword [rcx]
call [0x15e079084]
and al, 0x39
call [0x15e07918d]
and al, 0x3a
call [0x15f079195]
and eax, 0x241eff3a
cmp bh, bh
sbb eax, 0x1dff3b24
and al, 0x3b
call [rsi]
and eax, 0x251eff3b
cmp edi, edi
invalid
pop rcx
inc dword [rsi]
cmp dword [rax - 1], edi
or ecx, dword [rdx - 0x72]
call qword [rdx]
push rsp
xchg edi, eax
jmp qword [rbx]
Function at 0x140029bbc
Capabilities:
Clear file content

Disassembly:
mov rax, rsp
mov qword [rax + 8], rbx
mov qword [rax + 0x10], rbp
mov qword [rax + 0x18], rsi
mov qword [rax + 0x20], rdi
push r12
push r14
push r15
sub rsp, 0x20
mov rbx, rdx
mov rsi, r8
xor edx, edx
mov r14d, ecx
lea r8d, [rdx + 1]
call fcn.14001d294
xor edx, edx
mov ecx, r14d
mov r12, rax
lea r8d, [rdx + 2]
call fcn.14001d294
mov rbp, rbx
sub rbp, rax
cmp r12, 0xffffffffffffffff
je 0x140029d0c
cmp rax, 0xffffffffffffffff
je 0x140029d0c
xor edi, edi
test rbp, rbp
jle 0x140029cb7
lea edx, [rdi + 1]
mov ecx, 0x1000
call fcn.14001fbc0
mov rbx, rax
test rax, rax
jne 0x140029c44
lea edi, [rax + 0xc]
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], edi
jmp 0x140029cad
mov edx, 0x8000
mov ecx, r14d
call fcn.14001abfc
mov r15d, eax
mov eax, 0x1000
mov r8d, ebp
cmp rbp, rax
mov r9, rsi
mov rdx, rbx
mov ecx, r14d
cmovge r8d, eax
call fcn.14001df70
cmp eax, 0xffffffff
je 0x140029c8d
cdqe
sub rbp, rax
test rbp, rbp
jg 0x140029c54
mov edx, r15d
mov ecx, r14d
call fcn.14001abfc
jmp 0x140029cad
cmp byte [rsi + 0x38], dil
je 0x140029ca4
cmp dword [rsi + 0x34], 5
jne 0x140029ca4
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
cmp byte [rsi + 0x30], dil
je 0x140029cad
mov edi, dword [rsi + 0x2c]
mov rcx, rbx
call fcn.14001b960
jmp 0x140029d20
jns 0x140029d20
xor r8d, r8d
mov rdx, rbx
mov ecx, r14d
call fcn.14001d294
cmp rax, 0xffffffffffffffff
jne 0x140029cd8
cmp byte [rsi + 0x30], dil
je 0x140029d20
mov edi, dword [rsi + 0x2c]
jmp 0x140029d20
mov ecx, r14d
call fcn.1400190b8
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x140029d20
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov byte [rsi + 0x38], 1
mov edi, 0xd
mov dword [rsi + 0x34], eax
mov byte [rsi + 0x30], 1
mov dword [rsi + 0x2c], 0xd
jmp 0x140029d20
xor edi, edi
cmp byte [rsi + 0x30], dil
je 0x140029d19
mov eax, dword [rsi + 0x2c]
jmp 0x140029d1e
mov eax, 0x16
mov edi, eax
xor r8d, r8d
mov rdx, r12
mov ecx, r14d
call fcn.14001d294
mov rbx, qword [rsp + 0x40]
mov eax, edi
mov rdi, qword [rsp + 0x58]
mov rbp, qword [rsp + 0x48]
mov rsi, qword [rsp + 0x50]
add rsp, 0x20
pop r15
pop r14
pop r12
ret

Function at 0x14002ae10
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [rcx], ax
jne 0x14002ae38
movsxd rdx, dword [rcx + 0x3c]
add rdx, rcx
cmp dword [rdx], 0x4550
jne 0x14002ae38
xor eax, eax
mov ecx, 0x20b
cmp word [rdx + 0x18], cx
sete al
ret
xor eax, eax
ret

Function at 0x1800010e0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x38
cmp edx, 1
jne 0x180001108
xor eax, eax
lea r8, section..text
mov qword [rsp + 0x28], rax
xor r9d, r9d
xor edx, edx
mov dword [rsp + 0x20], eax
xor ecx, ecx
call qword [sym.imp.KERNEL32.dll_CreateThread]
mov eax, 1
add rsp, 0x38
ret
Function at 0x4081e0
Capabilities:
Write file on windows

Disassembly:
push rbp
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov rbx, rcx
mov rsi, rdx
cmp byte [0x005660a0], 0
je 0x408298
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rdi, rax
mov rcx, rsi
call fcn.00410770
mov rcx, rdi
mov rdx, rsi
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, qword [0x005440d8]
call fcn.00410770
mov rcx, rsi
mov rdx, qword [0x005440d8]
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff4
call sub.kernel32.dll_GetStdHandle
mov rsi, rax
mov rcx, rbx
call fcn.00410770
mov rcx, rsi
mov rdx, rbx
mov r8d, eax
lea r9, [rbp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x4082ab
xor ecx, ecx
mov rdx, rbx
mov r8, rsi
mov r9d, 0x2010
call sub.user32.dll_MessageBoxA
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop rbp
ret

Function at 0x409550
Capabilities:
Get common file path
Set current directory

Disassembly:
push rbp
push rsi
push rbx
sub rsp, 0x450
mov rbp, rsp
mov byte [rbp + 0x27], cl
mov qword [rbp + 0x28], rdx
mov qword [rbp + 0x30], 0
nop
xor esi, esi
movzx rax, byte [rbp + 0x27]
test al, al
je 0x4095e3
movzx rax, byte [rbp + 0x27]
movzx ax, al
add ax, 0x40
mov word [rbp + 0x448], ax
mov word [rbp + 0x44a], 0x3a
mov word [rbp + 0x44c], 0
mov ecx, 0x104
lea rdx, [rbp + 0x38]
call sub.kernel32.dll_GetCurrentDirectoryW
mov esi, eax
cmp esi, 0x104
jbe 0x4095d7
lea rcx, [rbp + 0x30]
mov edx, esi
sub edx, 1
call fcn.004114e0
mov rcx, qword [rbp + 0x30]
call fcn.00411290
mov ecx, esi
mov rdx, rax
call sub.kernel32.dll_GetCurrentDirectoryW
lea rcx, [rbp + 0x448]
call sub.kernel32.dll_SetCurrentDirectoryW
mov ecx, 0x104
lea rdx, [rbp + 0x240]
call sub.kernel32.dll_GetCurrentDirectoryW
mov ebx, eax
cmp ebx, 0x104
ja 0x409616
mov rcx, qword [rbp + 0x28]
lea rdx, [rbp + 0x240]
mov r8d, 0x104
call fcn.00411350
jmp 0x40963a
mov rcx, qword [rbp + 0x28]
mov edx, ebx
sub edx, 1
call fcn.004114e0
mov rax, qword [rbp + 0x28]
mov rcx, qword [rax]
call fcn.00411290
mov ecx, ebx
mov rdx, rax
call sub.kernel32.dll_GetCurrentDirectoryW
movzx rax, byte [rbp + 0x27]
test al, al
je 0x409667
cmp esi, 0x104
jbe 0x40965e
mov rcx, qword [rbp + 0x30]
call fcn.00411290
mov rcx, rax
call sub.kernel32.dll_SetCurrentDirectoryW
jmp 0x409667
lea rcx, [rbp + 0x38]
call sub.kernel32.dll_SetCurrentDirectoryW
nop
lea rcx, [rbp + 0x30]
call fcn.0040fee0
lea rsp, [rbp + 0x450]
pop rbx
pop rsi
pop rbp
ret

Function at 0x409cf0
Capabilities:
Accept command line arguments

Disassembly:
push rbp
sub rsp, 0x40
mov rbp, rsp
mov qword [rbp + 0x38], 0
nop
xor eax, eax
mov dword [rbp + 0x2c], eax
call sub.kernel32.dll_GetCommandLineW
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00409c00
mov rcx, rax
lea rdx, [rbp + 0x38]
call fcn.00409c00
cmp qword [rbp + 0x38], 0
je 0x409d35
mov ecx, dword [rbp + 0x2c]
add ecx, 1
mov dword [rbp + 0x2c], ecx
jmp 0x409d17
nop
nop
lea rcx, [rbp + 0x38]
call fcn.0040fee0
mov eax, dword [rbp + 0x2c]
lea rsp, [rbp + 0x40]
pop rbp
ret
Function at 0x40db50
Capabilities:
Check for time delay via gettickcount

Disassembly:
push rbp
push r14
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov rbp, rsp
mov qword [rbp + 0x28], rcx
mov ebx, edx
mov rax, qword [rbp + 0x28]
mov r13d, dword [rax + 0x18]
mov rcx, qword [rbp + 0x28]
call fcn.0040e1a0
mov esi, eax
test sil, sil
jne 0x40dd04
test ebx, ebx
je 0x40dd04
xor edi, edi
test r13d, r13d
jle 0x40dc31
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov dword [rbp + 0x3c], 0
test r13d, r13d
jle 0x40dc15
cmp ebx, 0xffffffff
je 0x40dbc3
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40dbc3
xor esi, esi
jmp 0x40dd04
mov rax, qword [rbp + 0x28]
cmp dword [rax], 1
jg 0x40dc15
mov rax, qword [rbp + 0x28]
cmp dword [rax], 0
jne 0x40dc03
xor eax, eax
mov ecx, 1
mov rdx, qword [rbp + 0x28]
lock cmpxchg dword [rdx], ecx
test eax, eax
jne 0x40dc03
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov sil, 1
jmp 0x40dd04
lea rcx, [rbp + 0x3c]
call fcn.0040d6d0
sub r13d, 1
test r13d, r13d
jg 0x40dbaa
nop
cmp ebx, 0xffffffff
je 0x40dc31
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jb 0x40dc2f
xor esi, esi
jmp 0x40dd04
sub ebx, eax
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
test ecx, ecx
je 0x40db6d
mov edx, ecx
add edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40dc31
nop
call sub.kernel32.dll_GetTickCount
mov r14d, eax
mov rcx, qword [rbp + 0x28]
call fcn.0040ddb0
xor ecx, ecx
mov rdx, rax
mov r8d, ebx
mov rax, qword [0x00566998]
call qword [rax + 0x20]
test eax, eax
sete sil
cmp ebx, 0xffffffff
je 0x40dc94
call sub.kernel32.dll_GetTickCount
sub eax, r14d
cmp eax, ebx
jae 0x40dc92
sub ebx, eax
jmp 0x40dc94
xor ebx, ebx
test sil, sil
je 0x40dcc5
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov eax, ecx
test eax, 1
jne 0x40dcc2
mov edx, ecx
sub edx, 2
or edx, 1
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40dc99
mov dil, 1
nop
jmp 0x40dce2
mov rax, qword [rbp + 0x28]
mov ecx, dword [rax]
mov edx, ecx
sub edx, 2
mov eax, ecx
mov r8, qword [rbp + 0x28]
lock cmpxchg dword [r8], edx
cmp eax, ecx
jne 0x40dcc5
mov dil, 1
test dil, dil
je 0x40dc54
nop
test sil, sil
je 0x40dd04
call sub.kernel32.dll_GetCurrentThreadId
mov rcx, qword [rbp + 0x28]
mov dword [rcx + 8], eax
mov dword [rcx + 4], 1
mov eax, esi
lea rsp, [rbp + 0x48]
pop rbx
pop rsi
pop rdi
pop r13
pop r14
pop rbp
ret
Function at 0x40f950
Capabilities:
Write file on windows

Disassembly:
push rbx
sub rsp, 0x40
cmp byte [0x005660a0], 0
je 0x40f9ea
cmp word [0x005663b0], 0xd7b2
jne 0x40f983
cmp dword [0x005663b8], 0
jbe 0x40f983
lea rcx, [0x005663a8]
call qword [0x005663d0]
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rcx, rax
lea rdx, [0x00545ff4]
mov r8d, 0x25
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
mov ecx, 0xfffffff5
call sub.kernel32.dll_GetStdHandle
mov rbx, rax
lea rcx, [0x0040fa20]
call fcn.00410d90
mov rcx, rbx
mov rdx, rax
mov r8d, 2
lea r9, [rsp + 0x3c]
mov qword [rsp + 0x20], 0
call sub.kernel32.dll_WriteFile
jmp 0x40fa0b
cmp byte [0x0054405a], 0
jne 0x40fa0b
xor ecx, ecx
lea rdx, [0x00545ff4]
lea r8, str.Error
xor r9, r9
call sub.user32.dll_MessageBoxA
add rsp, 0x40
pop rbx
ret

Function at 0x40fcd0
Capabilities:
Create thread

Disassembly:
push r13
push rdi
push rsi
push rbx
sub rsp, 0x48
mov qword [rsp + 0x38], rcx
mov ebx, edx
mov rsi, r8
mov rdi, r9
cmp qword [0x00544060], 0
je 0x40fd01
mov rcx, rsi
mov rdx, rdi
call qword [0x00544060]
mov r13, rax
jmp 0x40fd16
mov ecx, 0x10
call fcn.004091c0
mov r13, rax
mov qword [r13], rsi
mov qword [r13 + 8], rdi
mov byte [0x005660a1], 1
mov rcx, qword [rsp + 0x38]
mov edx, ebx
lea r8, [0x0040fc60]
mov r9, r13
mov eax, dword [rsp + 0x90]
mov dword [rsp + 0x20], eax
mov rax, qword [rsp + 0x98]
mov qword [rsp + 0x28], rax
call sub.kernel32.dll_CreateThread
mov rbx, rax
test rbx, rbx
jne 0x40fd5b
mov rcx, r13
call fcn.004091f0
mov rax, rbx
add rsp, 0x48
pop rbx
pop rsi
pop rdi
pop r13
ret

Function at 0x4151d0
Capabilities:
Check os version

Disassembly:
sub rsp, 0x28
lea rcx, [0x0056aef8]
call sub.kernel32.dll_InitializeCriticalSection
mov word [0x0056af20], 0x7f
call sub.kernel32.dll_GetVersion
and eax, 0xff
cmp eax, 6
setae al
mov byte [0x0056aef0], al
cmp byte [0x0056aef0], 0
je 0x41526e
lea rcx, [0x00415274]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x0041528e]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0056aed8], rax
lea rcx, [0x00415274]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004152ac]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0056aee0], rax
lea rcx, [0x00415274]
call sub.kernel32.dll_GetModuleHandleW
mov rcx, rax
lea rdx, [0x004152ca]
call sub.kernel32.dll_GetProcAddress
mov qword [0x0056aee8], rax
add rsp, 0x28
ret