joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f900
Capabilities:
Query or enumerate registry value

Disassembly:
push rbx
sub rsp, 0x160
mov rax, qword [0x004dfd00]
lea rdx, str.SoftwareMicrosoftWindowsCurrentVersionSetupUpdates
mov r9d, 0x20019
mov qword [rsp + 0x40], rax
lea rax, [rsp + 0x38]
xor r8d, r8d
mov rcx, 0xffffffff80000002
xor ebx, ebx
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x47f98a
mov rcx, qword [rsp + 0x38]
lea rax, [rsp + 0x30]
lea rdx, str.Windows_98_Second_Edition
mov qword [rsp + 0x28], rax
lea rax, [rsp + 0x50]
xor r9d, r9d
xor r8d, r8d
mov dword [rsp + 0x30], 0x104
mov qword [rsp + 0x20], rax
call qword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ecx, 1
test eax, eax
cmove ebx, ecx
mov rcx, qword [rsp + 0x38]
call qword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea rcx, [rsp + 0x40]
call fcn.0049b1dc
mov eax, ebx
add rsp, 0x160
pop rbx
ret

Function at 0x47fa50
Capabilities:
Check os version

Disassembly:
sub rsp, 0x118
mov qword [rsp + 0x110], rbx
mov qword [rsp + 0x108], rbp
lea rcx, [rsp + 0x20]
mov r8d, 0x9c
xor edx, edx
mov qword [rsp + 0x100], rsi
mov qword [rsp + 0xf8], rdi
xor ebx, ebx
call fcn.00499630
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
mov ebp, eax
jne 0x47fabf
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x47fbcb
mov eax, dword [rsp + 0x30]
dec eax
je 0x47fb9d
dec eax
jne 0x47fbc1
lea rcx, str.Kernel32.dll
mov edi, ebx
call qword [sym.imp.KERNEL32.dll_LoadLibraryA]
test rax, rax
mov rsi, rax
je 0x47fb23
lea rdx, str.GetNativeSystemInfo
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
test rax, rax
je 0x47fb1a
lea rcx, [rsp + 0xc0]
call rax
cmp word [rsp + 0xc0], 9
mov eax, 1
cmove edi, eax
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [rsp + 0x24]
mov rsi, qword [rsp + 0x100]
cmp eax, 4
ja 0x47fb3e
mov ebx, 5
jmp 0x47fbc1
cmp eax, 5
jne 0x47fb88
mov eax, dword [rsp + 0x28]
test eax, eax
jne 0x47fb52
mov ebx, 6
jmp 0x47fbc1
cmp eax, 1
jne 0x47fb5e
mov ebx, 7
jmp 0x47fbc1
cmp eax, 2
jne 0x47fbc1
test edi, edi
je 0x47fb81
test ebp, ebp
mov ebx, 0xa
je 0x47fbc1
cmp byte [rsp + 0xba], 1
jne 0x47fbc1
mov ebx, 8
jmp 0x47fbc1
mov ebx, 9
jmp 0x47fbc1
cmp eax, 6
jne 0x47fbc1
cmp dword [rsp + 0x28], ebx
jne 0x47fbc1
test edi, edi
setne bl
add ebx, 0xb
jmp 0x47fbc1
cmp dword [rsp + 0x24], 4
jne 0x47fbc1
call fcn.0047f760
test eax, eax
je 0x47fbb4
mov ebx, 4
jmp 0x47fbc1
call fcn.0047f900
test eax, eax
setne bl
add ebx, 2
mov rdi, qword [rsp + 0xf8]
mov eax, ebx
mov rbp, qword [rsp + 0x108]
mov rbx, qword [rsp + 0x110]
add rsp, 0x118
ret
Function at 0x47fbf0
Capabilities:
Check os version

Disassembly:
push rbx
sub rsp, 0xc0
lea rcx, [rsp + 0x20]
mov r8d, 0x9c
xor edx, edx
xor ebx, ebx
call fcn.00499630
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x9c
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x47fc43
lea rcx, [rsp + 0x20]
mov dword [rsp + 0x20], 0x94
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x47fc43
add rsp, 0xc0
pop rbx
ret
cmp dword [rsp + 0x30], 2
jne 0x47fc5d
cmp dword [rsp + 0x24], 6
jne 0x47fc5d
cmp dword [rsp + 0x28], ebx
mov eax, 1
cmove ebx, eax
mov eax, ebx
add rsp, 0xc0
pop rbx
ret

Function at 0x47fd20
Capabilities:
Create directory
Get common file path

Disassembly:
sub rsp, 0x38
mov qword [rsp + 0x30], rbx
mov qword [rsp + 0x28], rsi
mov rsi, rdx
mov edx, ecx
mov qword [rsp + 0x20], rdi
mov rcx, rsi
mov ebx, r8d
call qword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
xor eax, eax
mov rdi, rsi
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
mov eax, dword [str.TEMP]
test ebx, ebx
mov rbx, qword [rsp + 0x30]
mov dword [rdi - 1], eax
movzx eax, word [0x004b8bc4]
mov word [rdi + 3], ax
je 0x47fd7a
xor edx, edx
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov rdi, rsi
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x004a9dfc]
mov word [rdi - 1], ax
mov rdi, qword [rsp + 0x20]
mov rsi, qword [rsp + 0x28]
add rsp, 0x38
ret
Function at 0x47fdb0
Capabilities:
Terminate process

Disassembly:
mov qword [rsp + 8], rcx
sub rsp, 0x378
mov qword [rsp + 0x370], rbx
mov qword [rsp + 0x368], rsi
mov qword [rsp + 0x360], rdi
mov rbx, rcx
mov qword [rsp + 0x28], 0xfffffffffffffffe
call fcn.004545a0
test eax, eax
je 0x47fe5e
mov r8, qword [rbx]
lea rdx, str.KillThisGuyAlt_:_csAppName___s_n
lea rcx, [rsp + 0x260]
call fcn.00486850
movabs rdx, 0x203a5952544e45
mov qword [rsp + 0x30], rdx
lea rdi, [rsp + 0x30]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x260]
xor ecx, ecx
nop
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x47fe30
call fcn.004546e0
mov rcx, rax
call fcn.004545b0
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.004548a0
xor esi, esi
mov dword [rsp + 0x130], esi
mov r8d, 0x12c
xor edx, edx
lea rcx, [rsp + 0x134]
call fcn.00499630
mov rdx, qword [0x004dfd00]
mov qword [rsp + 0x20], rdx
call fcn.00413910
mov rcx, rax
xor r8d, r8d
mov edx, 2
call fcn.00413700
mov rdi, rax
cmp rax, 0xffffffffffffffff
je 0x47ff56
mov dword [rsp + 0x130], 0x130
call fcn.00413910
mov rcx, rax
lea r8, [rsp + 0x130]
mov rdx, rdi
call fcn.00413780
test eax, eax
je 0x47ff4d
lea rdx, [rsp + 0x15c]
lea rcx, [rsp + 0x20]
call fcn.0049b398
lea rcx, [rsp + 0x20]
call fcn.0049b664
mov rdx, qword [rbx]
cmp dword [rdx - 8], 0
je 0x47ff1f
lea rcx, [rsp + 0x20]
call fcn.0049a400
cmp eax, 0xffffffff
je 0x47ff1f
mov r8d, dword [rsp + 0x138]
xor edx, edx
mov ecx, 0x1f0fff
call qword [sym.imp.KERNEL32.dll_OpenProcess]
test rax, rax
jne 0x47ff3d
call fcn.00413910
mov rcx, rax
lea r8, [rsp + 0x130]
mov rdx, rdi
call fcn.00413800
test eax, eax
je 0x47ff4d
jmp 0x47fed1
xor edx, edx
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_TerminateProcess]
mov esi, 1
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_CloseHandle]
call fcn.004545a0
test eax, eax
je 0x47ffcf
mov r8d, esi
lea rdx, str.KillThisGuyAlt_:_bRetVal___d_n
lea rcx, [rsp + 0x260]
call fcn.00486850
movabs rdx, 0x20203a54495845
mov qword [rsp + 0x30], rdx
lea rdi, [rsp + 0x30]
xor eax, eax
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
lea rdx, [rsp + 0x260]
xor ecx, ecx
nop
movzx eax, byte [rdx + rcx]
mov byte [rdi + rcx - 1], al
inc rcx
test al, al
jne 0x47ffa0
call fcn.004546e0
mov rcx, rax
lea rdx, [rsp + 0x30]
call fcn.004548a0
call fcn.004546e0
mov rcx, rax
call fcn.004545c0
nop
lea rcx, [rsp + 0x20]
call fcn.0049b1dc
nop
mov rcx, rbx
call fcn.0049b1dc
mov eax, esi
mov rbx, qword [rsp + 0x370]
mov rsi, qword [rsp + 0x368]
mov rdi, qword [rsp + 0x360]
add rsp, 0x378
ret
Function at 0x4808b0
Capabilities:
Enumerate gui resources

Disassembly:
sub rsp, 0x248
mov qword [rsp + 0x240], rbx
mov qword [rsp + 0x238], rsi
mov qword [rsp + 0x230], rdi
mov rsi, rcx
mov ebx, edx
call fcn.004545a0
test eax, eax
je 0x48094e
lea rdx, str.SendExitMsgToApp_n
lea rcx, [rsp + 0x130]
xor r8d, r8d
call fcn.00486850
movabs rdx, 0x203a5952544e45
xor eax, eax
mov qword [rsp + 0x30], rdx
lea rdi, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x130]
nop
movzx eax, byte [rdx + rcx]
inc rcx
test al, al
mov byte [rdi + rcx - 2], al
jne 0x480920
call fcn.004546e0
mov rcx, rax
call fcn.004545b0
call fcn.004546e0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.004548a0
call fcn.004545a0
test eax, eax
je 0x480986
mov r8, qword [rsi]
lea rdx, str.csAppName___s__uExitMsg___d_n
lea rcx, [rsp + 0x130]
mov r9d, ebx
call fcn.00486850
call fcn.004546e0
lea rdx, [rsp + 0x130]
mov rcx, rax
call fcn.004548a0
lea rdx, [rsp + 0x20]
mov rcx, rsi
call fcn.004805d0
mov rsi, qword [rsp + 0x238]
test eax, eax
je 0x4809c8
mov eax, dword [rsp + 0x20]
lea rdx, [rsp + 0x28]
lea rcx, [0x00480840]
mov dword [rsp + 0x28], eax
mov dword [rsp + 0x2c], ebx
call qword [sym.imp.USER32.dll_EnumWindows]
mov ecx, 0x7d0
call qword [sym.imp.KERNEL32.dll_Sleep]
call fcn.004545a0
mov rbx, qword [rsp + 0x240]
test eax, eax
je 0x480a4e
lea rdx, str.SendExitMsgToApp_n
lea rcx, [rsp + 0x130]
xor r8d, r8d
call fcn.00486850
movabs rdx, 0x20203a54495845
xor eax, eax
mov qword [rsp + 0x30], rdx
lea rdi, [rsp + 0x30]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
xor ecx, ecx
lea rdx, [rsp + 0x130]
nop
nop
movzx eax, byte [rdx + rcx]
inc rcx
test al, al
mov byte [rdi + rcx - 2], al
jne 0x480a20
call fcn.004546e0
lea rdx, [rsp + 0x30]
mov rcx, rax
call fcn.004548a0
call fcn.004546e0
mov rcx, rax
call fcn.004545c0
mov rdi, qword [rsp + 0x230]
add rsp, 0x248
ret
Function at 0x4850e8
Capabilities:
Link many functions at runtime

Disassembly:
push rbx
push rdi
sub rsp, 0x28
xor ebx, ebx
cmp dword [0x004e4b28], ebx
je 0x485109
cmp qword [0x004e4b10], rbx
setne bl
mov eax, ebx
jmp 0x48523d
call fcn.0048508c
lea rcx, str.USER32
mov dword [0x004e4b2c], eax
call qword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp rax, rbx
mov rdi, rax
je 0x485200
lea rdx, [0x004ba060]
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004e4af0], rax
je 0x485200
lea rdx, str.MonitorFromWindow
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004e4af8], rax
je 0x485200
lea rdx, str.MonitorFromRect
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004e4b00], rax
je 0x485200
lea rdx, str.MonitorFromPoint
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004e4b08], rax
je 0x485200
lea rdx, str.EnumDisplayMonitors
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004e4b18], rax
je 0x485200
lea rdx, str.GetMonitorInfoA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004e4b10], rax
je 0x485200
lea rdx, str.EnumDisplayDevicesA
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp rax, rbx
mov qword [0x004e4b20], rax
je 0x485200
mov eax, 1
jmp 0x485233
mov qword [0x004e4af0], rbx
mov qword [0x004e4af8], rbx
mov qword [0x004e4b00], rbx
mov qword [0x004e4b08], rbx
mov qword [0x004e4b10], rbx
mov qword [0x004e4b18], rbx
mov qword [0x004e4b20], rbx
xor eax, eax
mov dword [0x004e4b28], 1
add rsp, 0x28
pop rdi
pop rbx
ret

Function at 0x487c10
Capabilities:
Move file

Disassembly:
sub rsp, 0x28
call qword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x487c39
call qword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x487c39
mov ecx, eax
call fcn.004894a0
mov eax, 0xffffffff
add rsp, 0x28
ret
xor eax, eax
add rsp, 0x28
ret
Function at 0x4883c0
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
sub rsp, 0xc8
mov qword [rsp + 0xc0], rbx
mov qword [rsp + 0xb8], rdi
lea rcx, [rsp + 0x40]
call qword [sym.imp.KERNEL32.dll_GetStartupInfoA]
nop
call qword [sym.imp.KERNEL32.dll_GetProcessHeap]
mov rcx, rax
mov r8d, 0x94
xor edx, edx
call qword [sym.imp.KERNEL32.dll_HeapAlloc]
mov rbx, rax
test rax, rax
jne 0x48842e
cmp dword [0x004e5440], 1
jne 0x488410
call fcn.0048f440
mov ecx, 0x12
call fcn.0048f210
mov ecx, 0xff
call fcn.0048aa50
mov eax, 0xff
jmp 0x48865a
mov dword [rax], 0x94
mov rcx, rax
call qword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x48845f
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 0x48865a
mov eax, dword [rbx + 0x10]
mov dword [0x004e544c], eax
mov eax, dword [rbx + 4]
mov dword [0x004e5458], eax
mov eax, dword [rbx + 8]
mov dword [0x004e545c], eax
mov eax, dword [rbx + 0xc]
and eax, 0x7fff
mov dword [0x004e5450], 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 [0x004e544c], 2
je 0x4884ad
bts dword [0x004e5450], 0xf
mov eax, dword [0x004e5458]
shl eax, 8
add eax, dword [0x004e545c]
mov dword [0x004e5454], eax
cmp word [0x00400000], 0x5a4d
jne 0x488520
movsxd rax, dword [0x0040003c]
lea rdi, [0x00400000]
add rax, rdi
cmp dword [rax], 0x4550
je 0x4884ee
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x48852d
cmp word [rax + 0x18], 0x20b
je 0x4884fe
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x48852d
cmp dword [rax + 0x84], 0xe
ja 0x48850f
xor ebx, ebx
mov dword [rsp + 0x20], ebx
jmp 0x48852d
xor ebx, ebx
cmp dword [rax + 0xf8], ebx
setne bl
mov dword [rsp + 0x20], ebx
jmp 0x48852d
xor ebx, ebx
mov dword [rsp + 0x20], ebx
lea rdi, [0x00400000]
mov ecx, 1
call fcn.0048f1c0
test eax, eax
jne 0x48855d
cmp dword [0x004e5440], 1
jne 0x488549
call fcn.0048f440
mov ecx, 0x1c
call fcn.0048f210
mov ecx, 0xff
call fcn.0048aa50
call fcn.0048c110
test eax, eax
jne 0x488589
cmp dword [0x004e5440], 1
jne 0x488574
call fcn.0048f440
mov ecx, InitCommonControls
call fcn.0048f210
mov ecx, 0xff
call fcn.0048aa50
nop
call fcn.00492170
test eax, eax
jns 0x48859c
mov ecx, 0x1b
call fcn.0048aa20
call qword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov qword [0x004e71c0], rax
call fcn.00491f90
mov qword [0x004e5430], rax
call fcn.00491cd0
test eax, eax
jns 0x4885c8
mov ecx, 8
call fcn.0048aa20
call fcn.00491980
test eax, eax
jns 0x4885db
mov ecx, 9
call fcn.0048aa20
mov ecx, 1
call fcn.0048aab0
mov dword [rsp + 0x28], eax
test eax, eax
je 0x4885f4
mov ecx, eax
call fcn.0048aa20
call fcn.004918f0
mov qword [rsp + 0x30], rax
test byte [rsp + 0x7c], 1
je 0x488610
movzx r9d, word [rsp + 0x80]
jmp 0x488616
mov r9d, 0xa
mov r8, rax
xor edx, edx
mov rcx, rdi
call fcn.00499608
mov edi, eax
mov dword [rsp + 0x24], eax
test ebx, ebx
jne 0x488634
mov ecx, eax
call fcn.0048ac90
call fcn.0048acb0
jmp 0x488651
mov eax, edi
jmp 0x48865a
mov rbx, qword [rsp + 0xc0]
mov rdi, qword [rsp + 0xb8]
add rsp, 0xc8
ret
Function at 0x489070
Capabilities:
Create thread

Disassembly:
sub rsp, 0x78
mov qword [rsp + 0x70], rbx
mov qword [rsp + 0x68], rbp
mov qword [rsp + 0x60], rsi
mov qword [rsp + 0x58], rdi
mov qword [rsp + 0x50], r12
xor ebx, ebx
test r8, r8
mov qword [rsp + 0x48], r13
mov rbp, r9
mov rsi, r8
mov r12d, edx
mov r13, rcx
jne 0x4890b7
call fcn.00489440
mov dword [rax], 0x16
xor eax, eax
jmp 0x48914d
mov edx, 0x2a0
mov ecx, 1
call fcn.00492d10
test rax, rax
mov rdi, rax
je 0x489133
mov rcx, rax
call fcn.0048bd90
mov rcx, qword [rsp + 0xa8]
mov eax, dword [rsp + 0xa0]
test rcx, rcx
lea r8, [rsp + 0x30]
mov edx, r12d
cmovne r8, rcx
mov r9, rdi
mov rcx, r13
mov qword [rsp + 0x28], r8
lea r8, [0x00488f90]
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 0x489148
call qword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
mov rcx, rdi
call fcn.00487200
test ebx, ebx
je 0x489146
mov ecx, ebx
call fcn.004894a0
xor eax, eax
mov rdi, qword [rsp + 0x58]
mov r13, qword [rsp + 0x48]
mov r12, qword [rsp + 0x50]
mov rsi, qword [rsp + 0x60]
mov rbp, qword [rsp + 0x68]
mov rbx, qword [rsp + 0x70]
add rsp, 0x78
ret
Function at 0x48f210
Capabilities:
Write file on windows

Disassembly:
sub rsp, 0x68
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
lea r12, [0x004e08e0]
mov rdx, r12
xor eax, eax
nop
nop
cmp ecx, dword [rdx]
je 0x48f24f
inc eax
add rdx, 0x10
cmp eax, 0x13
jb 0x48f240
movsxd rbx, eax
shl rbx, 4
cmp ecx, dword [rbx + r12]
jne 0x48f425
mov eax, dword [0x004e5440]
cmp eax, 1
je 0x48f3de
test eax, eax
jne 0x48f280
cmp dword [0x004e0430], 1
je 0x48f3de
cmp ecx, 0xfc
je 0x48f425
lea rsi, [0x00400000]
lea rbp, [0x004e54f0]
lea rdx, [0x004e550a]
mov rax, qword [rsi + 0xbc668]
mov r8d, 0x104
xor ecx, ecx
mov qword [rbp], rax
mov rax, qword [rsi + 0xbc670]
mov qword [rbp + 8], rax
mov rax, qword [rsi + 0xbc678]
mov qword [rbp + 0x10], rax
movzx eax, word [rsi + 0xbc680]
mov word [rbp + 0x18], ax
mov byte [0x004e560e], 0
call qword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x48f329
mov rax, qword [rsi + 0xbc650]
mov qword [rsi + 0xe550a], rax
mov rax, qword [rsi + 0xbc658]
mov qword [rsi + 0xe5512], rax
mov eax, dword [rsi + 0xbc660]
mov dword [rsi + 0xe551a], eax
movzx eax, word [rsi + 0xbc664]
mov word [rsi + 0xe551e], ax
movzx eax, byte [rsi + 0xbc666]
mov byte [rsi + 0xe5520], al
mov rsi, qword [rsp + 0x50]
xor eax, eax
lea rdi, [0x004e550a]
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
not rcx
lea rax, [rcx]
cmp rax, 0x3c
jbe 0x48f363
lea rcx, [rcx + rbp - 0x22]
lea rdx, [0x004bc648]
mov r8d, 3
call fcn.00487090
mov r8, qword [rbx + r12 + 8]
xor eax, eax
mov rdi, rbp
mov rcx, 0xffffffffffffffff
repne scasb al, byte [rdi]
movzx eax, word [0x004b6758]
mov rcx, 0xffffffffffffffff
mov word [rdi - 1], ax
movzx eax, byte [0x004b675a]
mov byte [rdi + 1], al
xor eax, eax
mov rdi, rbp
repne scasb al, byte [rdi]
xor edx, edx
nop
nop
movzx eax, byte [r8 + rdx]
inc rdx
test al, al
mov byte [rdi + rdx - 2], al
jne 0x48f3a0
lea rdx, str.Microsoft_Visual_C_Runtime_Library
mov r8d, 0x12010
mov rcx, rbp
call fcn.00495900
mov rbp, qword [rsp + 0x58]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
mov ecx, 0xfffffff4
call qword [sym.imp.KERNEL32.dll_GetStdHandle]
test rax, rax
mov r11, rax
je 0x48f425
mov rdx, qword [rbx + r12 + 8]
xor eax, eax
mov rcx, 0xffffffffffffffff
mov rdi, rdx
lea r9, [rsp + 0x30]
mov qword [rsp + 0x20], rax
repne scasb al, byte [rdi]
not rcx
dec rcx
mov r8, rcx
mov rcx, r11
call qword [sym.imp.KERNEL32.dll_WriteFile]
mov rdi, qword [rsp + 0x48]
mov r12, qword [rsp + 0x40]
mov rbx, qword [rsp + 0x60]
add rsp, 0x68
ret
Function at 0x48fdf0
Capabilities:
Get system information on windows

Disassembly:
push rbp
mov qword [rsp - 8], rbx
mov qword [rsp - 0x10], rsi
sub rsp, 0xb0
lea rbp, [rsp + 0x20]
sub rsp, 0x10
lea rdx, [rbp + 8]
mov r8d, 0x30
lea rsi, [rsp + 0x20]
mov qword [rbp + 0x78], rdi
mov qword [rbp + 0x70], r12
mov rcx, rsi
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x48febb
mov rbx, qword [rbp + 0x10]
lea rcx, [rbp + 0x38]
call qword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov r11d, dword [rbp + 0x3c]
mov ecx, dword [0x004e544c]
lea eax, [r11 - 1]
mov r12d, r11d
mov edx, reloc.COMCTL32.dll_InitCommonControls
mov edi, eax
mov eax, 2
not rdi
and rdi, rsi
sub rdi, r12
cmp ecx, 1
cmove eax, edx
imul eax, r11d
mov esi, eax
add rsi, rbx
cmp rdi, rsi
jb 0x48febb
cmp ecx, 1
je 0x48fee6
lea rdx, [rbp + 8]
mov r8d, 0x30
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualQuery]
test rax, rax
je 0x48febb
add rbx, qword [rbp + 0x20]
bt dword [rbp + 0x28], 0xc
jae 0x48fe81
bt dword [rbp + 0x2c], 8
mov rbx, qword [rbp + 8]
jae 0x48feb6
mov eax, 1
jmp 0x48ff0a
cmp rdi, rbx
jae 0x48febf
xor eax, eax
jmp 0x48ff0a
cmp rbx, rsi
mov r9d, 4
mov r8d, 0x1000
cmovb rbx, rsi
mov rdx, r12
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov ecx, dword [0x004e544c]
jmp 0x48fee9
mov rbx, rdi
mov eax, 1
mov r8d, 0x104
lea r9, [rbp]
cmp ecx, eax
mov rdx, r12
mov rcx, rbx
cmove r8d, eax
call qword [sym.imp.KERNEL32.dll_VirtualProtect]
mov rbx, qword [rbp + 0x88]
mov rsi, qword [rbp + 0x80]
mov rdi, qword [rbp + 0x78]
mov r12, qword [rbp + 0x70]
lea rsp, [rbp + 0x90]
pop rbp
ret
Function at 0x491f90
Capabilities:
Query environment variable

Disassembly:
sub rsp, 0x68
mov eax, dword [0x004e5968]
mov qword [rsp + 0x60], rbx
mov qword [rsp + 0x58], rbp
test eax, eax
mov qword [rsp + 0x50], rsi
mov qword [rsp + 0x48], rdi
mov qword [rsp + 0x40], r12
jne 0x492045
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x491fd8
mov dword [0x004e5968], 1
jmp 0x492060
call qword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x49203f
mov dword [0x004e5968], 2
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
test rax, rax
mov rbx, rax
je 0x492112
cmp byte [rax], 0
je 0x492014
inc rax
cmp byte [rax], 0
jne 0x492004
inc rax
cmp byte [rax], 0
jne 0x492004
sub eax, ebx
inc eax
movsxd rsi, eax
mov rcx, rsi
call fcn.00487350
test rax, rax
mov rdi, rax
jne 0x492133
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
jmp 0x49214d
mov eax, dword [0x004e5968]
cmp eax, 1
jne 0x492116
call qword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
test rax, rax
mov rdi, rax
je 0x492127
cmp word [rdi], 0
mov rbx, rdi
je 0x492084
nop
nop
add rbx, 2
cmp word [rbx], 0
jne 0x492070
add rbx, 2
cmp word [rbx], 0
jne 0x492070
xor r12d, r12d
sub rbx, rdi
mov r8, rdi
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
sar rbx, 1
inc ebx
xor edx, edx
xor ecx, ecx
mov r9d, ebx
mov dword [rsp + 0x28], r12d
mov qword [rsp + 0x20], r12
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
mov ebp, eax
je 0x492109
movsxd rcx, eax
call fcn.00487350
test rax, rax
mov rsi, rax
je 0x492109
mov qword [rsp + 0x38], r12
mov qword [rsp + 0x30], r12
mov r9d, ebx
mov r8, rdi
xor edx, edx
xor ecx, ecx
mov dword [rsp + 0x28], ebp
mov qword [rsp + 0x20], rax
call qword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4920fb
mov rcx, rsi
call fcn.00487200
mov rsi, r12
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov rax, rsi
jmp 0x49214d
mov rcx, rdi
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x49214d
cmp eax, 2
je 0x491fed
test eax, eax
je 0x491fed
xor eax, eax
mov rdi, qword [rsp + 0x48]
add rsp, 0x68
ret
mov r8, rsi
mov rdx, rbx
mov rcx, rax
call fcn.00486d40
mov rcx, rbx
call qword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov rax, rdi
mov r12, qword [rsp + 0x40]
mov rsi, qword [rsp + 0x50]
mov rbp, qword [rsp + 0x58]
mov rbx, qword [rsp + 0x60]
mov rdi, qword [rsp + 0x48]
add rsp, 0x68
ret

Function at 0x4924a0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
xor edx, edx
mov ecx, 1
call fcn.00496e00
jmp 0x4924b2
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x4924a0

Function at 0x4924d0
Capabilities:
Terminate process

Disassembly:
sub rsp, 0x28
xor edx, edx
mov ecx, 1
call fcn.00496e00
jmp 0x4924b2
mov ecx, 3
call qword [sym.imp.KERNEL32.dll_ExitProcess]
jmp 0x4924a0
Function at 0x492d70
Capabilities:
Get common file path
Get disk information

Disassembly:
sub rsp, 0x168
test ecx, ecx
mov rax, qword [0x004e0438]
mov qword [rsp + 0x160], rbx
mov qword [rsp + 0x158], rsi
mov qword [rsp + 0x150], rdi
mov rbx, rdx
mov qword [rsp + 0x140], rax
mov edi, r8d
mov esi, ecx
je 0x492e4f
lea rcx, [rsp + 0x24]
add sil, 0x40
mov byte [rsp + 0x25], 0x3a
mov byte [rsp + 0x26], 0x5c
mov byte [rsp + 0x27], 0
mov byte [rsp + 0x24], sil
call qword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x492dda
cmp eax, 1
jne 0x492e1f
call fcn.00489470
mov dword [rax], InitCommonControls
call fcn.00489440
mov dword [rax], InitCommonControls
xor eax, eax
mov rdi, qword [rsp + 0x150]
mov rsi, qword [rsp + 0x158]
mov rbx, qword [rsp + 0x160]
mov rcx, qword [rsp + 0x140]
call fcn.004997b0
add rsp, 0x168
ret
lea r9, [rsp + 0x28]
lea r8, [rsp + 0x30]
lea rcx, [rsp + 0x20]
mov edx, 0x104
mov byte [rsp + 0x20], sil
mov byte [rsp + 0x21], 0x3a
mov byte [rsp + 0x22], 0x2e
mov byte [rsp + 0x23], 0
call qword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x492e5f
lea rdx, [rsp + 0x30]
mov ecx, 0x104
call qword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x492df0
inc eax
cmp eax, 0x104
ja 0x492df0
test rbx, rbx
jne 0x492e96
cmp eax, edi
cmovg edi, eax
movsxd rcx, edi
call fcn.00487350
test rax, rax
mov rbx, rax
jne 0x492eaa
call fcn.00489440
mov dword [rax], InitCommonControls
jmp 0x492df0
cmp eax, edi
jle 0x492eaa
call fcn.00489440
mov dword [rax], 0x22
jmp 0x492df0
lea rax, [rsp + 0x30]
mov rdx, rbx
lea rcx, [rsp + 0x30]
sub rdx, rax
nop
nop
movzx eax, byte [rcx]
inc rcx
test al, al
mov byte [rdx + rcx - 1], al
jne 0x492ec0
mov rax, rbx
jmp 0x492df2