joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42faa0
Capabilities:
Get disk information

Disassembly:
push rbx
sub rsp, 0x100
mov qword [rsp + 0x40], 0xfffffffffffffffe
mov rdx, rcx
lea rcx, [rsp + 0x50]
call fcn.0042c060
nop
lea rdx, [rsp + 0x20]
lea rcx, [rsp + 0x50]
call fcn.0042f6d0
mov rbx, rax
mov r8, qword [rax]
mov edx, dword [rax + 0x10]
mov rcx, rax
call qword [r8 + 8]
mov rcx, qword [rbx + 8]
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 2
sete bl
lea rax, [0x00463658]
mov qword [rsp + 0x20], rax
mov rcx, qword [rsp + 0x28]
xor eax, eax
mov qword [rsp + 0x28], rax
mov dword [rsp + 0x30], eax
mov dword [rsp + 0x38], eax
test rcx, rcx
je 0x42fb19
call fcn.00448f10
lea rax, [0x00463630]
mov qword [rsp + 0x20], rax
lea rcx, [rsp + 0x50]
call fcn.004362a0
mov al, bl
add rsp, 0x100
pop rbx
ret

Function at 0x42fd10
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rdi, rcx
movzx ebx, dl
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x42fd4f
test bl, bl
je 0x42fd3e
lea ecx, [rax + 0x71]
mov rdx, rdi
call fcn.00428820
int3
xor al, al
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x28
ret

Function at 0x42fd60
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rdi
mov rdi, rcx
movzx ebx, r8b
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x42fda0
test bl, bl
je 0x42fd8f
lea ecx, [rax + 0x72]
mov rdx, rdi
call fcn.00428820
int3
xor al, al
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x28
ret
mov rdi, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
mov al, 1
add rsp, 0x28
ret
Function at 0x434f30
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 [0x0047e2e8]
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.00432b00
mov qword [rsi + 0xb8], rax
mov ebp, dword [rsi + 0x78]
cmp byte [rsi + 0x88], 0
jne 0x4350cd
xor edi, edi
test ebp, ebp
jle 0x4350fe
mov r12, rdi
lea r13, [0x00465968]
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.00428f80
nop
lea rdx, [rbx + 0x58]
lea rcx, [rsp + 0x88]
call fcn.00428f80
nop
lea rdx, [rbx + 0x78]
lea rcx, [rsp + 0xa8]
call fcn.00428f80
nop
cmp byte [rsi + 0x88], 0
jne 0x4350a1
movzx r8d, byte [rsi + 0x89]
mov dl, 1
lea rcx, [rsp + 0x30]
call fcn.0042f490
movzx r8d, di
lea rdx, [rsp + 0x30]
mov rcx, rsi
call fcn.00434170
nop
lea rcx, [rsp + 0x30]
call fcn.00429190
inc edi
add r12, 8
cmp edi, ebp
jl 0x434fc0
jmp 0x4350fe
xor edi, edi
test ebp, ebp
jle 0x4350fe
mov rbx, rdi
nop
nop
nop
mov rdx, qword [rsi + 0x70]
movzx r8d, di
mov rdx, qword [rbx + rdx]
mov rcx, rsi
call fcn.00434170
inc edi
add rbx, 8
cmp edi, ebp
jl 0x4350e0
mov rcx, qword [rsp + 0xd0]
call fcn.00462020
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 0x439680
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 0x43974c
mov rcx, qword [rbp + 0x50]
mov r8, rdi
lea rdx, [rcx + rdi]
call fcn.00448f40
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 0x439710
sub eax, edi
jmp 0x439712
xor eax, eax
add r8d, 0xffffffff
mov word [rdx], ax
jne 0x439700
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 0x439740
sub eax, edi
jmp 0x439742
xor eax, eax
add edx, 0xffffffff
mov word [rcx], ax
jne 0x439730
add ebx, edi
mov rsi, qword [rbp]
cmp dword [rsi + 8], 0
je 0x43982a
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 0x4397d2
sub eax, r12d
mov dword [rsi + 8], eax
mov rax, qword [rsi + 0x28]
mov ecx, dword [rax + 0x2c]
cmp ecx, 1
jne 0x4397a4
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.0043b2d0
mov dword [rsi + 0x4c], eax
jmp 0x4397ba
cmp ecx, 2
jne 0x4397ba
mov rdx, qword [rsi]
mov ecx, dword [rsi + 0x4c]
mov r8d, r12d
call fcn.00432e50
mov dword [rsi + 0x4c], eax
mov rdx, qword [rsi]
mov r8d, r12d
mov rcx, r13
mov ebx, r12d
call fcn.00448f40
add qword [rsi], rbx
add dword [rsi + 0xc], r12d
add dword [rbp + 0x9c], r12d
mov r9d, dword [rbp + 0x9c]
cmp r9d, 3
jb 0x439813
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 0x43982a
mov rax, qword [rbp]
cmp dword [rax + 8], 0
jne 0x4396b0
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 0x43d3c0
Capabilities:
Get file size
Read file via mapping

Disassembly:
mov r11, rsp
sub rsp, 0x2a8
mov rax, qword [0x0047e2e8]
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 0x43d5b9
mov edx, dword [rsp + 0x40]
nop
movsxd rax, ecx
cmp dword [rax + rdi], edx
je 0x43d4e1
dec ecx
jns 0x43d4d0
jmp 0x43d5b9
sub r8d, ecx
lea edi, [r8 - 0x16]
cmp edi, 0x10000
mov dword [rbx], edi
jl 0x43d5b9
mov rax, qword [str._JAR2EXE_ROOT_JAR_LENGTH_]
lea rcx, [rsp + 0x70]
xor edx, edx
mov qword [rcx], rax
mov rax, qword [0x00469b78]
mov r8d, 0xe6
mov qword [rcx + 8], rax
mov rax, qword [0x00469b80]
mov qword [rcx + 0x10], rax
movzx eax, word [0x00469b88]
mov word [rcx + 0x18], ax
lea rcx, [rsp + 0x8a]
call fcn.00448e10
xor eax, eax
sub esi, edi
lea rdx, [0x00464a0c]
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.0044a2f0
xor eax, eax
lea rdi, [rsp + 0x70]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x00469b68]
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 0x43d5a0
lea rcx, [rsp + 0x70]
call fcn.00460f70
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.00462020
add rsp, 0x2a8
ret
Function at 0x443b00
Capabilities:
Check os version

Disassembly:
sub rsp, 0xf8
mov rax, qword [0x0047e2e8]
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 0x443b46
cmp dword [rsp + 0x50], 2
jne 0x443b46
cmp dword [rsp + 0x44], 6
jae 0x443b58
test rbx, rbx
je 0x443b51
mov dword [rbx], 1
xor eax, eax
jmp 0x443bf2
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 0x443be0
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 0x443bd5
mov ecx, dword [rsp + 0x30]
mov edi, esi
test ecx, ecx
sete dil
test rbx, rbx
je 0x443bd5
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.00462020
add rsp, 0xf8
ret

Function at 0x443e90
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x48
mov eax, dword [0x004808c8]
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 0x443eda
or eax, 1
mov dword [0x004808c8], eax
mov rax, qword [rcx]
call qword [rax + pe_nt_image_headers64]
mov rdx, rax
mov qword [0x004808c0], rax
mov eax, dword [0x004808c8]
jmp 0x443ee1
mov rdx, qword [0x004808c0]
test al, 2
jne 0x443f14
or eax, 2
lea r9, [0x004643b4]
lea r8, [0x00463620]
mov dword [0x004808c8], eax
mov rax, qword [rbx]
mov rcx, rbx
call qword [rax + 0x2f0]
mov r8, rax
mov qword [0x004808b8], rax
jmp 0x443f1b
mov r8, qword [0x004808b8]
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 0x44acc0
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 0x44ad02
call fcn.0044adc0
mov dword [rax], 0x16
xor eax, eax
jmp 0x44ada0
mov edx, 0x130
mov ecx, 1
mov qword [rsp + 0x48], rdi
call fcn.00454be0
test rax, rax
mov rdi, rax
je 0x44ad86
mov rcx, rax
call fcn.004503e0
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, [0x0044abe0]
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 0x44ad9b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.00448f10
test ebx, ebx
je 0x44ad99
mov ecx, ebx
call fcn.0044ae20
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 0x44afa0
Capabilities:
Delete file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x44afc9
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x44afc9
mov ecx, eax
call fcn.0044ae20
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x44cc50
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 0x44cc87
mov eax, 0xff
jmp 0x44ceb9
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x44ccb8
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 0x44ceb9
mov eax, dword [rbx + 0x10]
mov dword [0x00480914], eax
mov eax, dword [rbx + 4]
mov dword [0x00480920], eax
mov eax, dword [rbx + 8]
mov dword [0x00480924], eax
mov eax, dword [rbx + 0xc]
and eax, 0x7fff
mov dword [0x00480918], 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 [0x00480914], 2
je 0x44cd06
bts dword [0x00480918], 0xf
mov eax, dword [0x00480920]
shl eax, 8
add eax, dword [0x00480924]
mov dword [0x0048091c], eax
cmp word [0x00400000], 0x5a4d
je 0x44cd2e
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x44cdaa
movsxd rax, dword [0x0040003c]
lea rcx, [0x00400000]
add rax, rcx
cmp dword [rax], 0x4550
je 0x44cd4f
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x44cdaa
movzx ecx, word [rax + 0x18]
cmp ecx, 0x10b
je 0x44cd8d
cmp ecx, 0x20b
je 0x44cd6b
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x44cdaa
cmp dword [rax + 0x84], 0xe
ja 0x44cd7c
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x44cdaa
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x40], ebx
jmp 0x44cdaa
cmp dword [rax + 0x74], 0xe
ja 0x44cd9b
xor ebx, ebx
mov dword [rsp + 0x40], ebx
jmp 0x44cdaa
xor ebx, ebx
cmp dword [rax + 0xe8], ebx
setne bl
mov dword [rsp + 0x40], ebx
mov ecx, 1
call fcn.004500c0
test eax, eax
jne 0x44cdda
cmp dword [0x00480998], 2
je 0x44cdc6
call fcn.00458a50
mov ecx, 0x1c
call fcn.00458820
mov ecx, 0xff
call fcn.0044ba10
call fcn.00450710
test eax, eax
jne 0x44ce06
cmp dword [0x00480998], 2
je 0x44cdf1
call fcn.00458a50
mov ecx, 0x10
call fcn.00458820
mov ecx, 0xff
call fcn.0044ba10
nop
call fcn.00454e50
test eax, eax
jns 0x44ce19
mov ecx, 0x1b
call fcn.0044cc20
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x004816a8], rax
call fcn.00458f00
mov qword [0x00480988], rax
call fcn.00458e00
test eax, eax
jns 0x44ce45
mov ecx, 8
call fcn.0044cc20
call fcn.00458aa0
test eax, eax
jns 0x44ce58
mov ecx, 9
call fcn.0044cc20
call fcn.0044bac0
test eax, eax
je 0x44ce68
mov ecx, eax
call fcn.0044cc20
mov r8, qword [0x00480940]
mov qword [0x00480948], r8
mov rdx, qword [0x00480930]
mov ecx, dword [0x00480928]
call fcn.004143f0
mov edi, eax
mov dword [rsp + 0x20], eax
test ebx, ebx
jne 0x44ce99
mov ecx, eax
call fcn.0044bc60
call fcn.0044bc80
jmp 0x44ceb7
mov eax, edi
mov rbx, qword [rsp + 0x50]
mov rdi, qword [rsp + 0x58]
add rsp, 0x38
ret
Function at 0x44d3c0
Capabilities:
Create thread
Resume thread

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x40], rbx
mov qword [rsp + 0x48], rbp
mov qword [rsp + 0x50], rsi
xor ebx, ebx
test rcx, rcx
mov qword [rsp + 0x30], r12
mov rbp, r8
mov rsi, rcx
mov r12d, edx
jne 0x44d3fc
call fcn.0044adc0
mov dword [rax], 0x16
lea rax, [rsi - 1]
jmp 0x44d4a0
mov edx, 0x130
mov ecx, 1
mov qword [rsp + 0x58], rdi
call fcn.00454be0
test rax, rax
mov rdi, rax
je 0x44d47c
mov rcx, rax
call fcn.004503e0
lea r8, [0x0044d2f0]
mov rdx, r12
mov r9, rdi
xor ecx, ecx
mov qword [rsp + 0x28], rdi
mov qword [rdi + 0x88], rsi
mov qword [rdi + 0x90], rbp
mov dword [rsp + 0x20], 4
call qword [sym.imp.KERNEL32.dll_CreateThread]
test rax, rax
mov rbx, rax
mov qword [rdi + 8], rax
jne 0x44d466
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
jmp 0x44d47c
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
jne 0x44d498
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.00448f10
test ebx, ebx
je 0x44d48f
mov ecx, ebx
call fcn.0044ae20
mov rax, 0xffffffffffffffff
jmp 0x44d49b
mov rax, rbx
mov rdi, qword [rsp + 0x58]
mov r12, qword [rsp + 0x30]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x48]
mov rbx, qword [rsp + 0x40]
add rsp, 0x38
ret
Function at 0x44e680
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 [0x0047e2e8]
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 0x44e7a6
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 0x44e763
inc eax
cdqe
add rax, 0xf
and rax, 0xfffffffffffffff0
call fcn.00462050
sub rsp, rax
lea rdi, [rsp + 0x20]
mov qword [rbp + 0x10], rdi
jmp 0x44e751
test ebx, ebx
je 0x44e763
lea ecx, [rbx + 1]
mov rdx, rdi
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov ebx, eax
test ebx, ebx
je 0x44e7a6
movzx eax, byte [rdi]
cmp al, 0x5c
je 0x44e772
cmp al, 0x2f
jne 0x44e77c
cmp al, byte [rdi + 1]
jne 0x44e77c
mov r13d, r12d
jmp 0x44e7a6
mov byte [rbp], 0x3d
movzx ecx, byte [rdi]
call fcn.0045a920
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.0044ae20
test esi, esi
je 0x44e7bf
mov rcx, rdi
call fcn.00448f10
mov eax, r13d
mov rcx, qword [rbp + 0x130]
call fcn.00462020
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 0x44e800
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 0x44e82b
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
call fcn.0044ae20
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
test al, 1
je 0x44e855
test bl, 2
je 0x44e855
call fcn.0044adc0
mov dword [rax], 0xd
call fcn.0044adf0
mov dword [rax], 5
mov eax, 0xffffffff
add rsp, 0x20
pop rbx
ret
xor eax, eax
add rsp, 0x20
pop rbx
ret
Function at 0x455e00
Capabilities:
Write file on windows

Disassembly:
mov r11, rsp
sub rsp, 0x498
mov rax, qword [0x0047e2e8]
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 0x455e40
xor eax, eax
jmp 0x456042
movsxd rax, ecx
mov qword [rsp + 0x460], r15
lea r9, [0x004814a0]
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 0x455e8c
xor edx, edx
lea r8d, [rdx + 2]
call fcn.0045d360
mov rdx, qword [rsp + 0x38]
lea r9, [0x004814a0]
mov rcx, qword [r9 + rdx*8]
mov qword [rsp + 0x480], rdi
mov qword [rsp + 0x468], r14
test byte [r15 + rcx + 8], 0x80
je 0x455fa3
xor r14d, r14d
test r12d, r12d
mov rdi, rbp
je 0x455ff1
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 0x455f06
movzx eax, byte [rdi]
inc rdi
cmp al, 0xa
jne 0x455ef5
mov byte [rbx], 0xd
inc rbx
inc esi
inc rcx
inc rcx
mov byte [rbx], al
inc rbx
cmp rcx, 0x400
jl 0x455ed7
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 0x455f98
movsxd rax, dword [rsp + 0x30]
lea rcx, [rsp + 0x40]
sub rbx, rcx
add r13d, eax
cmp rax, rbx
jl 0x455f60
mov rdx, qword [rsp + 0x38]
mov eax, edi
lea r9, [0x004814a0]
sub eax, ebp
cmp eax, r12d
jb 0x455ed0
mov rbx, qword [rsp + 0x4b8]
test r13d, r13d
jne 0x456024
test r14d, r14d
je 0x455fe5
cmp r14d, 5
jne 0x455fd6
call fcn.0044adc0
mov dword [rax], 9
call fcn.0044adf0
mov dword [rax], r14d
lea eax, [r14 - 6]
jmp 0x45602a
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x455f60
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 0x455fcb
mov r13d, dword [rsp + 0x30]
xor r14d, r14d
jmp 0x455f68
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov r14d, eax
jmp 0x455f71
mov ecx, r14d
call fcn.0044ae20
mov eax, 0xffffffff
jmp 0x45602a
mov rdx, qword [rsp + 0x38]
lea r9, [0x004814a0]
mov rax, qword [r9 + rdx*8]
test byte [r15 + rax + 8], 0x40
je 0x456007
cmp byte [rbp], 0x1a
jne 0x456007
xor eax, eax
jmp 0x45602a
call fcn.0044adc0
mov dword [rax], 0x1c
call fcn.0044adf0
mov dword [rax], 0
mov eax, 0xffffffff
jmp 0x45602a
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.00462020
add rsp, 0x498
ret