joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435200
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov rax, rsp
sub rsp, 0x108
mov qword [rsp + 0x20], 0xfffffffffffffffe
mov qword [rax + 0x18], rbx
mov qword [rax + 0x20], rbp
mov qword [rax - 8], rsi
mov qword [rax - 0x10], rdi
mov qword [rax - 0x18], r12
mov qword [rax - 0x20], r13
mov rax, qword [0x004792e8]
mov qword [rsp + 0xd0], rax
movzx ebx, dl
mov rsi, rcx
add rcx, 0x90
mov rax, qword [rcx]
xor edx, edx
call qword [rax + 8]
mov byte [rsi + 0xc0], bl
mov dl, 1
movzx ecx, bl
call fcn.00432dd0
mov qword [rsi + 0xb8], rax
mov ebp, dword [rsi + 0x78]
cmp byte [rsi + 0x88], 0
jne 0x43539d
xor edi, edi
test ebp, ebp
jle 0x4353ce
mov r12, rdi
lea r13, [0x004607a0]
nop
nop
mov rax, qword [rsi + 0x70]
mov rbx, qword [r12 + rax]
mov qword [rsp + 0x30], r13
mov eax, dword [rbx + 8]
mov dword [rsp + 0x38], eax
movzx eax, word [rbx + 0xc]
mov word [rsp + 0x3c], ax
movzx eax, word [rbx + 0xe]
mov word [rsp + 0x3e], ax
movzx eax, word [rbx + 0x10]
mov word [rsp + 0x40], ax
movzx eax, word [rbx + 0x12]
mov word [rsp + 0x42], ax
movzx eax, word [rbx + 0x14]
mov word [rsp + 0x44], ax
movzx eax, word [rbx + 0x16]
mov word [rsp + 0x46], ax
mov eax, dword [rbx + 0x18]
mov dword [rsp + 0x48], eax
mov eax, dword [rbx + 0x1c]
mov dword [rsp + 0x4c], eax
mov eax, dword [rbx + 0x20]
mov dword [rsp + 0x50], eax
movzx eax, word [rbx + 0x24]
mov word [rsp + 0x54], ax
movzx eax, word [rbx + 0x26]
mov word [rsp + 0x56], ax
mov eax, dword [rbx + 0x28]
mov dword [rsp + 0x58], eax
movzx eax, word [rbx + 0x2c]
mov word [rsp + 0x5c], ax
movzx eax, word [rbx + 0x2e]
mov word [rsp + 0x5e], ax
mov eax, dword [rbx + 0x30]
mov dword [rsp + 0x60], eax
lea rdx, [rbx + 0x38]
lea rcx, [rsp + 0x68]
call fcn.00429250
nop
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x88]
call fcn.00429250
nop
lea rdx, [rbx + 0x78]
lea rcx, [rsp + 0xa8]
call fcn.00429250
nop
cmp byte [rsi + 0x88], 0
jne 0x435371
movzx r8d, byte [rsi + 0x89]
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.0042f760
movzx r8d, di
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.00434440
nop
lea rcx, [rsp + 0x30]
call fcn.00429460
inc edi
add r12, 8
cmp edi, ebp
jl 0x435290
jmp 0x4353ce
xor edi, edi
test ebp, ebp
jle 0x4353ce
mov rbx, rdi
nop
nop
nop
mov rdx, qword [rsi + 0x70]
movzx r8d, di
mov rdx, qword [rbx + rdx]
mov rcx, rsi
call fcn.00434440
inc edi
add rbx, 8
cmp edi, ebp
jl 0x4353b0
mov rcx, qword [rsp + 0xd0]
call fcn.0045d640
mov rbx, qword [rsp + 0x120]
mov rbp, qword [rsp + 0x128]
mov rsi, qword [rsp + 0x100]
mov rdi, qword [rsp + 0xf8]
mov r12, qword [rsp + 0xf0]
mov r13, qword [rsp + 0xe8]
add rsp, 0x108
ret
Function at 0x439950
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x58], rdi
mov edi, dword [rcx + 0x44]
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x30], r12
mov qword [rsp + 0x28], r13
mov rbp, rcx
nop
nop
mov edx, dword [rbp + 0x94]
mov ebx, dword [rbp + 0x58]
mov eax, dword [rbp + 0x44]
sub ebx, dword [rbp + 0x9c]
lea ecx, [rdi + rax - 0x106]
sub ebx, edx
cmp edx, ecx
jb 0x439a1c
mov rcx, qword [rbp + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call fcn.00446c20
mov r8d, dword [rbp + 0x74]
mov rax, qword [rbp + 0x68]
sub dword [rbp + 0x98], edi
sub dword [rbp + 0x94], edi
sub dword [rbp + 0x84], edi
lea rdx, [rax + r8*2]
nop
movzx eax, word [rdx - 2]
sub rdx, 2
cmp eax, edi
jb 0x4399e0
sub eax, edi
jmp 0x4399e2
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x4399d0
mov rax, qword [rbp + 0x60]
mov edx, edi
lea rcx, [rax + rdi*2]
nop
nop
nop
movzx eax, word [rcx - 2]
sub rcx, 2
cmp eax, edi
jb 0x439a10
sub eax, edi
jmp 0x439a12
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x439a00
add ebx, edi
mov rsi, qword [rbp]
cmp dword [rsi + 8], 0
je 0x439afa
mov eax, dword [rbp + 0x94]
mov r13d, dword [rbp + 0x9c]
add r13, rax
mov eax, dword [rsi + 8]
add r13, qword [rbp + 0x50]
cmp eax, ebx
mov r12d, eax
cmova r12d, ebx
test r12d, r12d
je 0x439aa2
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x439a74
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.0043b5a0
mov dword [rsi + 0x4c], eax
jmp 0x439a8a
cmp ecx, 2
jne 0x439a8a
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.00433120
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call fcn.00446c20
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rbp + 0x9c], r12d
mov r9d, dword [rbp + 0x9c]
cmp r9d, 3
jb 0x439ae3
mov eax, dword [rbp + 0x94]
mov rdx, qword [rbp + 0x50]
mov ecx, dword [rbp + 0x80]
movzx r8d, byte [rax + rdx]
mov dword [rbp + 0x70], r8d
shl r8d, cl
inc eax
movzx eax, byte [rax + rdx]
xor r8d, eax
and r8d, dword [rbp + 0x7c]
mov dword [rbp + 0x70], r8d
cmp r9d, 0x106
jae 0x439afa
mov rax, qword [rbp]
cmp dword [rax + 8], 0
jne 0x439980
mov r13, qword [rsp + 0x28]
mov r12, qword [rsp + 0x30]
mov rdi, qword [rsp + 0x58]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x43d690
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
sub rsp, 0x2a8
mov rax, qword [0x004792e8]
mov qword [rsp + 0x280], rax
mov qword [r11 + 0x10], rbx
mov qword [r11 + 0x18], rbp
mov qword [r11 + 0x20], rsi
mov qword [r11 - 8], rdi
xor eax, eax
mov rbx, rcx
mov qword [r11 - 0x10], r12
mov byte [rsp + 0x44], al
lea rdx, [r11 - 0x138]
mov r8d, 0x104
xor ecx, ecx
mov qword [r11 - 0x18], r13
mov byte [rsp + 0x40], 0x50
mov dword [rsp + 0x41], 0x6054b
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor edi, edi
lea rcx, [rsp + 0x170]
xor r9d, r9d
mov qword [rsp + 0x30], rdi
lea r8d, [rdi + 3]
mov edx, 0x80000000
mov dword [rsp + 0x28], 0x80
mov dword [rsp + 0x20], 3
call qword [sym.imp.KERNEL32.dll_CreateFileA]
mov rcx, rax
xor edx, edx
mov rbp, rax
call qword [sym.imp.KERNEL32.dll_GetFileSize]
lea r8d, [rdi + 2]
xor r9d, r9d
xor edx, edx
mov rcx, rbp
mov qword [rsp + 0x28], rdi
mov esi, eax
mov dword [rsp + 0x20], edi
call qword [sym.imp.KERNEL32.dll_CreateFileMappingA]
lea edx, [rdi + 4]
xor r9d, r9d
xor r8d, r8d
mov rcx, rax
mov r12, rax
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov r8d, esi
mov r13, rax
mov eax, 0xcccccccd
mul esi
mov eax, 0x500000
shr edx, 3
cmp edx, eax
cmovb edx, eax
mov eax, esi
sub eax, edx
sub eax, 0x16
cmovs eax, edi
sub r8d, eax
movsxd rdi, eax
lea ecx, [r8 - 0x16]
add rdi, r13
test ecx, ecx
js 0x43d889
mov edx, dword [rsp + 0x40]
nop
movsxd rax, ecx
cmp dword [rax + rdi], edx
je 0x43d7b1
dec ecx
jns 0x43d7a0
jmp 0x43d889
sub r8d, ecx
lea edi, [r8 - 0x16]
cmp edi, 0x10000
mov dword [rbx], edi
jl 0x43d889
mov rax, qword [str._JAR2EXE_ROOT_JAR_LENGTH_]
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [rcx], rax
mov rax, qword [0x004649a8]
mov r8d, 0xe6
mov qword [rcx + 8], rax
mov rax, qword [0x004649b0]
mov qword [rcx + 0x10], rax
movzx eax, word [0x004649b8]
mov word [rcx + 0x18], ax
lea rcx, [rsp + 0x8a]
call fcn.00446af0
xor eax, eax
sub esi, edi
lea rdx, [0x0045fb9c]
lea rcx, [rsp + 0x48]
mov r8d, esi
mov qword [rsp + 0x4a], rax
mov qword [rsp + 0x52], rax
mov qword [rsp + 0x5a], rax
mov word [rsp + 0x48], 0x30
mov dword [rsp + 0x62], eax
call fcn.00447fd0
xor eax, eax
lea rdi, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x00464998]
mov rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
xor eax, eax
lea rdi, [rsp + 0x70]
repne scasb al, byte [rdi]
lea rax, [rsp + 0x48]
xor edx, edx
nop
movzx ecx, byte [rax + rdx]
inc rdx
test cl, cl
mov byte [rdi + rdx - 2], cl
jne 0x43d870
lea rcx, [rsp + 0x70]
call fcn.0045c370
mov rcx, r13
call qword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov rcx, r12
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rcx, rbp
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov r13, qword [rsp + 0x290]
mov r12, qword [rsp + 0x298]
mov rdi, qword [rsp + 0x2a0]
mov rsi, qword [rsp + 0x2c8]
mov rbp, qword [rsp + 0x2c0]
mov rax, rbx
mov rbx, qword [rsp + 0x2b8]
mov rcx, qword [rsp + 0x280]
call fcn.0045d640
add rsp, 0x2a8
ret
Function at 0x441550
Capabilities:
Check os version

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x004792e8]
mov qword [rsp + 0xe0], rax
mov qword [rsp + 0x108], rbx
mov rbx, rcx
lea rcx, [rsp + 0x40]
mov dword [rsp + 0x40], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x441596
cmp dword [rsp + 0x50], 2
jne 0x441596
cmp dword [rsp + 0x44], 6
jae 0x4415a8
test rbx, rbx
je 0x4415a1
mov dword [rbx], 1
xor eax, eax
jmp 0x441642
mov qword [rsp + 0x110], rsi
xor esi, esi
mov qword [rsp + 0x118], rdi
mov qword [rsp + 0x38], rsi
mov edi, 0x80004005
call qword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea r8, [rsp + 0x38]
lea edx, [rsi + 8]
mov rcx, rax
call qword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x441630
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x34]
lea r9d, [rsi + 4]
lea r8, [rsp + 0x30]
lea edx, [rsi + 0x14]
mov qword [rsp + 0x20], rax
mov dword [rsp + 0x30], esi
mov dword [rsp + 0x34], esi
call qword [sym.imp.ADVAPI32.dll_GetTokenInformation]
test eax, eax
je 0x441625
mov ecx, dword [rsp + 0x30]
mov edi, esi
test ecx, ecx
sete dil
test rbx, rbx
je 0x441625
test ecx, ecx
setne sil
mov dword [rbx], esi
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.KERNEL32.dll_CloseHandle]
mov rsi, qword [rsp + 0x110]
mov eax, edi
mov rdi, qword [rsp + 0x118]
mov rbx, qword [rsp + 0x108]
mov rcx, qword [rsp + 0xe0]
call fcn.0045d640
add rsp, 0xf8
ret

Function at 0x441b70
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov eax, dword [0x0047b548]
mov qword [rsp + 0x58], rbx
mov qword [rsp + 0x60], rsi
test al, 1
mov qword [rsp + 0x68], rdi
mov esi, r8d
mov rdi, rdx
mov rbx, rcx
jne 0x441bba
or eax, 1
mov dword [0x0047b548], eax
mov rax, qword [rcx]
call qword [rax + 0xf8]
mov rdx, rax
mov qword [0x0047b540], rax
mov eax, dword [0x0047b548]
jmp 0x441bc1
mov rdx, qword [0x0047b540]
test al, 2
jne 0x441bf4
or eax, 2
lea r9, [0x0045f384]
lea r8, [0x0045e5f0]
mov dword [0x0047b548], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x2f0]
mov r8, rax
mov qword [0x0047b538], rax
jmp 0x441bfb
mov r8, qword [0x0047b538]
mov rax, qword [rbx]
mov rdx, rdi
mov rcx, rbx
call qword [rax + 0x328]
lea r9, [rsp + 0x34]
lea rdx, [rsp + 0x30]
mov r8d, 1
mov rcx, rax
mov byte [rsp + 0x30], sil
mov qword [rsp + 0x20], 0
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov rsi, qword [rsp + 0x60]
mov rbx, qword [rsp + 0x58]
add rsp, 0x48
ret
Function at 0x4489a0
Capabilities:
Create thread

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x40], r12
xor ebx, ebx
test r8, r8
mov qword [rsp + 0x38], r13
mov rbp, r9
mov rsi, r8
mov r13, rcx
mov r12d, edx
jne 0x4489e2
call fcn.00448aa0
mov dword [rax], 0x16
xor eax, eax
jmp 0x448a80
mov edx, 0x130
mov ecx, 1
mov qword [rsp + 0x48], rdi
call fcn.00452290
test rax, rax
mov rdi, rax
je 0x448a66
mov rcx, rax
call fcn.0044da90
mov rcx, qword [rsp + 0x98]
mov eax, dword [rsp + 0x90]
test rcx, rcx
lea r8, [rsp + 0x80]
mov rdx, r12
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x004488c0]
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], rbp
mov qword [rdi + 8], 0xffffffffffffffff
mov dword [rsp + 0x20], eax
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
jne 0x448a7b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.00446bf0
test ebx, ebx
je 0x448a79
mov ecx, ebx
call fcn.00448b00
xor eax, eax
mov rdi, qword [rsp + 0x48]
mov r13, qword [rsp + 0x38]
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret

Function at 0x448c80
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x448ca9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x448ca9
mov ecx, eax
call fcn.00448b00
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x44ac40
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x58], rdi
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
xor edx, edx
mov r8d, 0x94
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x44ac77
mov eax, 0xff
jmp 0x44aea9
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x44aca8
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
mov eax, 0xff
jmp 0x44aea9
mov eax, dword [rbx + 0x10]
mov dword [0x0047b594], eax
mov eax, dword [rbx + 4]
mov dword [0x0047b5a0], eax
mov eax, dword [rbx + 8]
mov dword [0x0047b5a4], eax
mov eax, dword [rbx + 0xc]
and eax, 0x7fff
mov dword [0x0047b598], eax
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8, rbx
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [0x0047b594], 2
je 0x44acf6
bts dword [0x0047b598], 0xf
mov eax, dword [0x0047b5a0]
shl eax, 8
add eax, dword [0x0047b5a4]
mov dword [0x0047b59c], eax
cmp word [0x00400000], 0x5a4d
je 0x44ad1e
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x44ad9a
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x44ad3f
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x44ad9a
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x44ad7d
cmp ecx, 0x20b
je 0x44ad5b
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x44ad9a
cmp dword [rax + 0x84], 0xe
ja 0x44ad6c
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x44ad9a
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x40], ebx
jmp 0x44ad9a
cmp dword [rax + 0x74], 0xe
ja 0x44ad8b
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x44ad9a
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x40], ebx
mov ecx, 1
call fcn.0044d770
test eax, eax
jne 0x44adca
cmp dword [0x0047b618], 2
je 0x44adb6
call fcn.004560f0
mov ecx, 0x1c
call fcn.00455ec0
mov ecx, 0xff
call fcn.00449a00
call fcn.0044ddc0
test eax, eax
jne 0x44adf6
cmp dword [0x0047b618], 2
je 0x44ade1
call fcn.004560f0
mov ecx, 0x10
call fcn.00455ec0
mov ecx, 0xff
call fcn.00449a00
nop
call fcn.00452500
test eax, eax
jns 0x44ae09
mov ecx, 0x1b
call fcn.0044ac10
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x0047c328], rax
call fcn.004565a0
mov qword [0x0047b608], rax
call fcn.004564a0
test eax, eax
jns 0x44ae35
mov ecx, 8
call fcn.0044ac10
call fcn.00456140
test eax, eax
jns 0x44ae48
mov ecx, 9
call fcn.0044ac10
call fcn.00449ab0
test eax, eax
je 0x44ae58
mov ecx, eax
call fcn.0044ac10
mov r8, qword [0x0047b5c0]
mov qword [0x0047b5c8], r8
mov rdx, qword [0x0047b5b0]
mov ecx, dword [0x0047b5a8]
call fcn.00416ac0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x44ae89
mov ecx, eax
call fcn.00449c50
call fcn.00449c70
jmp 0x44aea7
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x44c3f0
Capabilities:
Get common file path
Set current directory
Set environment variable

Disassembly:
push rbp
sub rsp, 0x170
lea rbp, [rsp + 0x20]
mov qword [rbp + 0x168], rbx
mov qword [rbp + 0x170], rsi
mov qword [rbp + 0x178], rdi
mov qword [rbp + 0x148], r12
mov qword [rbp + 0x140], r13
mov rax, qword [0x004792e8]
mov qword [rbp + 0x130], rax
lea rdi, [rbp + 0x20]
xor r12d, r12d
mov esi, r12d
mov r13d, 0xffffffff
mov dword [rbp + 8], r13d
call qword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
je 0x44c516
lea rdx, [rbp + 0x20]
mov ecx, 0x105
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
mov dword [rbp + 0xc], eax
cmp eax, 0x104
jle 0x44c4d3
inc eax
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.0045d670
sub rsp, rax
lea rdi, [rsp + 0x20]
mov qword [rbp + 0x10], rdi
jmp 0x44c4c1
test ebx, ebx
je 0x44c4d3
lea ecx, [rbx + 1]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
test ebx, ebx
je 0x44c516
movzx eax, byte [rdi]
cmp al, 0x5c
je 0x44c4e2
cmp al, 0x2f
jne 0x44c4ec
cmp al, byte [rdi + 1]
jne 0x44c4ec
mov r13d, r12d
jmp 0x44c516
mov byte [rbp], 0x3d
movzx ecx, byte [rdi]
call fcn.00457850
mov byte [rbp + 1], al
mov byte [rbp + 2], 0x3a
mov byte [rbp + 3], 0
mov rdx, rdi
lea rcx, [rbp]
call qword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
cmovne r13d, r12d
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00448b00
test esi, esi
je 0x44c52f
mov rcx, rdi
call fcn.00446bf0
mov eax, r13d
mov rcx, qword [rbp + 0x130]
call fcn.0045d640
mov rbx, qword [rbp + 0x168]
mov rsi, qword [rbp + 0x170]
mov rdi, qword [rbp + 0x178]
mov r12, qword [rbp + 0x148]
mov r13, qword [rbp + 0x140]
lea rsp, [rbp + 0x150]
pop rbp
ret

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

Disassembly:
push rbx
sub rsp, 0x20
mov ebx, edx
call qword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x44c59b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.00448b00
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
test al, 1
je 0x44c5c5
test bl, 2
je 0x44c5c5
call fcn.00448aa0
mov dword [rax], 0xd
call fcn.00448ad0
mov dword [rax], 5
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x4534b0
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x498
mov rax, qword [0x004792e8]
mov qword [rsp + 0x450], rax
mov qword [r11 - 8], rbp
mov qword [r11 - 0x10], rsi
mov qword [r11 - 0x20], r12
mov qword [r11 - 0x28], r13
xor esi, esi
xor r13d, r13d
test r8d, r8d
mov r12d, r8d
mov rbp, rdx
jne 0x4534f0
xor eax, eax
jmp 0x4536f2
movsxd rax, ecx
mov qword [rsp + 0x460], r15
lea r9, [0x0047c120]
mov r15b, al
mov rdx, rax
sar rdx, 5
and r15d, 0x1f
mov rax, qword [r9 + rdx*8]
mov qword [rsp + 0x38], rdx
imul r15, r15, 0x38
test byte [r15 + rax + 8], 0x20
je 0x45353c
xor edx, edx
lea r8d, [rdx + 2]
call fcn.0045a0c0
mov rdx, qword [rsp + 0x38]
lea r9, [0x0047c120]
mov rcx, qword [r9 + rdx*8]
mov qword [rsp + 0x480], rdi
mov qword [rsp + 0x468], r14
test byte [r15 + rcx + 8], 0x80
je 0x453653
xor r14d, r14d
test r12d, r12d
mov rdi, rbp
je 0x4536a1
mov qword [rsp + 0x4b8], rbx
nop
nop
nop
nop
lea rbx, [rsp + 0x40]
xor ecx, ecx
mov eax, edi
sub eax, ebp
cmp eax, r12d
jae 0x4535b6
movzx eax, byte [rdi]
inc rdi
cmp al, 0xa
jne 0x4535a5
mov byte [rbx], 0xd
inc rbx
inc esi
inc rcx
inc rcx
mov byte [rbx], al
inc rbx
cmp rcx, 0x400
jl 0x453587
mov rcx, qword [r9 + rdx*8]
lea rax, [rsp + 0x40]
mov r8d, ebx
mov rcx, qword [r15 + rcx]
lea r9, [rsp + 0x30]
lea rdx, [rsp + 0x40]
sub r8d, eax
mov qword [rsp + 0x20], r14
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x453648
movsxd rax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub rbx, rcx
add r13d, eax
cmp rax, rbx
jl 0x453610
mov rdx, qword [rsp + 0x38]
mov eax, edi
lea r9, [0x0047c120]
sub eax, ebp
cmp eax, r12d
jb 0x453580
mov rbx, qword [rsp + 0x4b8]
test r13d, r13d
jne 0x4536d4
test r14d, r14d
je 0x453695
cmp r14d, 5
jne 0x453686
call fcn.00448aa0
mov dword [rax], 9
call fcn.00448ad0
mov dword [rax], r14d
lea eax, [r14 - 6]
jmp 0x4536da
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x453610
mov rcx, qword [r15 + rcx]
lea r9, [rsp + 0x30]
mov r8d, r12d
mov rdx, rbp
mov qword [rsp + 0x20], rsi
call qword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x45367b
mov r13d, dword [rsp + 0x30]
xor r14d, r14d
jmp 0x453618
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x453621
mov ecx, r14d
call fcn.00448b00
mov eax, 0xffffffff
jmp 0x4536da
mov rdx, qword [rsp + 0x38]
lea r9, [0x0047c120]
mov rax, qword [r9 + rdx*8]
test byte [r15 + rax + 8], 0x40
je 0x4536b7
cmp byte [rbp], 0x1a
jne 0x4536b7
xor eax, eax
jmp 0x4536da
call fcn.00448aa0
mov dword [rax], 0x1c
call fcn.00448ad0
mov dword [rax], 0
mov eax, 0xffffffff
jmp 0x4536da
sub r13d, esi
mov eax, r13d
mov rdi, qword [rsp + 0x480]
mov r14, qword [rsp + 0x468]
mov r15, qword [rsp + 0x460]
mov r13, qword [rsp + 0x470]
mov r12, qword [rsp + 0x478]
mov rsi, qword [rsp + 0x488]
mov rbp, qword [rsp + 0x490]
mov rcx, qword [rsp + 0x450]
call fcn.0045d640
add rsp, 0x498
ret
Function at 0x455ec0
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov qword [rsp + 0x50], rbx
mov qword [rsp + 0x40], r12
lea r12, [0x0047a2d0]
mov rax, r12
xor ebx, ebx
nop
nop
cmp ecx, dword [rax]
je 0x455eef
inc ebx
add rax, 0x10
cmp ebx, 0x13
jb 0x455ee0
cmp ebx, 0x13
je 0x4560d9
mov eax, dword [0x0047b618]
mov qword [rsp + 0x68], rdi
cmp eax, 1
je 0x45608e
test eax, eax
jne 0x455f1d
cmp dword [0x00479d28], 1
je 0x45608e
cmp ecx, 0xfc
je 0x4560d4
mov qword [rsp + 0x58], rbp
lea rbp, [0x0047b950]
mov qword [rsp + 0x60], rsi
lea rsi, [0x00400000]
lea rdx, [0x0047b96a]
mov r8d, 0x104
mov rax, qword [rsi + 0x67578]
xor ecx, ecx
mov qword [rbp], rax
mov rax, qword [rsi + 0x67580]
mov qword [rbp + 8], rax
mov rax, qword [rsi + 0x67588]
mov qword [rbp + 0x10], rax
movzx eax, word [rsi + 0x67590]
mov word [rbp + 0x18], ax
mov byte [0x0047ba6e], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x455fd0
mov rax, qword [rsi + 0x67560]
mov qword [rsi + 0x7b96a], rax
mov rax, qword [rsi + 0x67568]
mov qword [rsi + 0x7b972], rax
mov eax, dword [rsi + 0x67570]
mov dword [rsi + 0x7b97a], eax
movzx eax, word [rsi + 0x67574]
mov word [rsi + 0x7b97e], ax
movzx eax, byte [rsi + 0x67576]
mov byte [rsi + 0x7b980], al
mov rsi, qword [rsp + 0x60]
xor eax, eax
lea rdi, [0x0047b96a]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
cmp rcx, 0x3c
jbe 0x456005
lea rcx, [rcx + rbp - 0x22]
lea r8d, [rax + 3]
lea rdx, [0x0046755c]
call fcn.00448060
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x00467558]
movsxd rdx, ebx
mov word [rdi - 1], ax
movzx eax, byte [0x0046755a]
add rdx, rdx
mov r8, qword [r12 + rdx*8 + 8]
mov byte [rdi + 1], al
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor edx, edx
nop
nop
nop
nop
movzx eax, byte [r8 + rdx]
inc rdx
test al, al
mov byte [rdi + rdx - 2], al
jne 0x456050
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.0045a620
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x4560d4
xor eax, eax
movsxd rcx, ebx
lea r9, [rsp + 0x30]
add rcx, rcx
mov qword [rsp + 0x20], rax
mov rdx, qword [r12 + rcx*8 + 8]
mov rcx, 0xffffffffffffffff
mov rdi, rdx
repne scasb al, byte [rdi]
not rcx
lea r8, [rcx - 1]
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x68]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x50]
add rsp, 0x48
ret