joyce8/EMBER2024-capa huggingface dataset:
Function at 0x496560
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59be3f
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x238], 0
push 0x5b47c3
lea ecx, [ebp - 0x128]
call fcn.00408ff0
mov dword [ebp - 4], 0
mov dword [ebp - 0x124], 0
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x234]
push ecx
call fcn.00570920
add esp, 8
push 0x5b4820
lea edx, [ebp - 0x234]
push edx
call fcn.005781af
add esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x4966bf
cmp dword [ebp - 0x124], 0
jne 0x496616
mov eax, dword [ebp - 0x120]
push eax
push 0x5b4824
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00571578
add esp, 0xc
jmp 0x496638
mov edx, dword [ebp - 0x120]
push edx
lea eax, [ebp - 0x11c]
push eax
push 0x5b4828
lea ecx, [ebp - 0x11c]
push ecx
call fcn.00571578
add esp, 0x10
push 0x5b4830
push 0
call fcn.005781af
add esp, 8
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
jne 0x49665c
cmp dword [ebp + 0x10], 0
je 0x4966ab
push 0
lea edx, [ebp - 0x11c]
push edx
call fcn.0056f523
add esp, 8
cmp eax, 0xffffffff
jne 0x496699
push 0
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x496697
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x128]
call fcn.00409090
jmp 0x4966ab
lea edx, [ebp - 0x11c]
push edx
lea ecx, [ebp - 0x128]
call fcn.00409090
mov eax, dword [ebp - 0x124]
add eax, 1
mov dword [ebp - 0x124], eax
jmp 0x4965e3
lea ecx, [ebp - 0x128]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408fd0
mov edx, dword [ebp - 0x238]
or edx, 1
mov dword [ebp - 0x238], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x128]
call fcn.00408330
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret
Function at 0x496960
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xb0
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x14], eax
cmp dword [ebp + 8], 0
je 0x496993
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x496993
push 9
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
cmp eax, dword [ebp + 8]
jne 0x4969a8
jmp 0x496ad9
mov dword [ebp - 0xb0], 0x94
lea edx, [ebp - 0xb0]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xa0], 2
jne 0x4969d1
cmp dword [ebp - 0xac], 4
ja 0x496a01
cmp dword [ebp - 0xa0], 1
jne 0x496ac5
cmp dword [ebp - 0xac], 4
ja 0x496a01
cmp dword [ebp - 0xac], 4
jne 0x496ac5
cmp dword [ebp - 0xa8], 0
jbe 0x496ac5
mov dword [ebp - 0xc], 0
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 8], eax
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 4], eax
push 1
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_AttachThreadInput]
test eax, eax
je 0x496a72
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 0
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_AttachThreadInput]
call dword [sym.imp.USER32.dll_GetForegroundWindow]
xor ecx, ecx
cmp eax, dword [ebp + 8]
sete cl
mov dword [ebp - 0xc], ecx
cmp dword [ebp - 0xc], 0
jne 0x496ac3
push 0
lea edx, [ebp - 0x10]
push edx
push 0
push 0x2000
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
push 2
push 0
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
push 2
lea edx, [ebp - 0x10]
push edx
push 0
push 0x2001
call dword [sym.imp.USER32.dll_SystemParametersInfoA]
jmp 0x496ad9
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret
Function at 0x496af0
Capabilities:
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bec8
mov eax, dword fs:[0]
push eax
sub esp, 0x130
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
mov dword [ebp - 0x124], 0
lea ecx, [ebp - 0x120]
call fcn.004a2910
mov byte [ebp - 4], 1
push 1
lea ecx, [ebp + 0xc]
call fcn.004090f0
push eax
lea eax, [ebp - 0x12c]
push eax
call fcn.00496560
add esp, 0xc
mov dword [ebp - 0x13c], eax
mov ecx, dword [ebp - 0x13c]
call fcn.00408290
mov byte [ebp - 0x125], al
lea ecx, [ebp - 0x12c]
call fcn.00408330
movzx ecx, byte [ebp - 0x125]
test ecx, ecx
je 0x496bb7
mov edx, dword [ebp - 0x124]
mov dword [ebp - 0x130], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408330
mov eax, dword [ebp - 0x130]
jmp 0x496c6b
lea ecx, [ebp - 0x120]
call fcn.004186c0
lea eax, [ebp - 0x11c]
push eax
push 0
push 0x5b48ec
lea ecx, [ebp + 0xc]
call fcn.004090f0
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x496c15
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x134], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408330
mov eax, dword [ebp - 0x134]
jmp 0x496c6b
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp + 8]
call fcn.00409090
mov dword [ebp - 0x124], 1
mov ecx, dword [ebp - 0x124]
mov dword [ebp - 0x138], ecx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x120]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408330
mov eax, dword [ebp - 0x138]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret
Function at 0x497520
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x49753f
jmp 0x49759a
lea ecx, [ebp - 0x1c]
push ecx
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x497560
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x49759a
mov dword [ebp - 0x14], 1
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 2
push 0
push 0
push 0x10
lea edx, [ebp - 0x14]
push edx
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret

Function at 0x4975a0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bf3b
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x616738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0055dc87
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.004a2910
mov byte [ebp - 4], 2
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00409070
push str..
lea ecx, [ebp - 0x2c]
call fcn.00427160
push 0
lea ecx, [ebp - 0x2c]
call fcn.004090f0
push eax
lea ecx, [ebp - 0x24]
call fcn.0055dd1c
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x497687
lea ecx, [ebp - 0x24]
call fcn.0055da20
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x24]
call fcn.0055dc4c
test eax, eax
je 0x497632
jmp 0x497613
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0055deca
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x24]
call fcn.004300c0
test eax, eax
je 0x49766a
push ecx
mov ecx, esp
mov dword [ebp - 0x34], esp
lea edx, [ebp - 0x30]
push edx
call fcn.00408fd0
mov dword [ebp - 0x38], eax
call fcn.004975a0
add esp, 4
jmp 0x497679
lea ecx, [ebp - 0x30]
call fcn.004090f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x30]
call fcn.00408330
jmp 0x497613
lea ecx, [ebp - 0x24]
call fcn.0055d93a
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
call fcn.00408330
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x24]
call fcn.0055dcad
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.00408330
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x497700
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59bf5e
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x616738]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea ecx, [ebp - 0x20]
call fcn.004a3280
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x20]
push eax
push 0x4976d0
call dword [sym.imp.USER32.dll_EnumWindows]
mov dword [ebp - 0x28], 0
jmp 0x497763
mov ecx, dword [ebp - 0x28]
add ecx, 1
mov dword [ebp - 0x28], ecx
lea ecx, [ebp - 0x20]
call fcn.00459f60
cmp dword [ebp - 0x28], eax
jge 0x4977d3
mov edx, dword [ebp - 0x28]
push edx
lea ecx, [ebp - 0x20]
call fcn.004a32f0
mov eax, dword [eax]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
je 0x4977d1
lea ecx, [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x24]
cmp eax, dword [ebp + 8]
jne 0x4977d1
mov dword [ebp - 0x38], 0x4970
push 0
push 0
push 0x4970
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.USER32.dll_PostMessageA]
push 0
push 0
push 0x10
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.USER32.dll_PostMessageA]
mov dword [ebp - 0x30], 1
jmp 0x49775a
lea ecx, [ebp - 0x20]
call fcn.004a32d0
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x3c], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.004a3360
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x499350
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c31b
mov eax, dword fs:[0]
push eax
sub esp, 0x210
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], 0
lea ecx, [ebp - 0x218]
call fcn.004a2910
mov dword [ebp - 4], 0
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x214]
push eax
call fcn.0056f420
add esp, 0xc
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x114]
push ecx
call fcn.0056f420
add esp, 0xc
push 0xff
lea edx, [ebp - 0x214]
push edx
push 0x59
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0xff
lea eax, [ebp - 0x114]
push eax
push 0x5a
push 0x800
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea ecx, [ebp - 0x114]
push ecx
lea edx, [ebp - 0x214]
push edx
push 0x5b4da0
lea eax, [ebp - 0x218]
push eax
call fcn.004098b0
add esp, 0x10
lea ecx, [ebp - 0x218]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408fd0
mov edx, dword [ebp - 0x21c]
or edx, 1
mov dword [ebp - 0x21c], edx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x218]
call fcn.00408330
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret
Function at 0x499560
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
mov dword [eax], 0
mov ecx, dword [ebp + 8]
mov dword [ecx], 0
mov dword [ebp - 0x124], 0
push 0x114
push 0
lea edx, [ebp - 0x120]
push edx
call fcn.0056f420
add esp, 0xc
push str.NtDll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x499661
push str.RtlGetVersion
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x12c], eax
cmp dword [ebp - 0x12c], 0
je 0x499654
mov dword [ebp - 0x120], 0x114
lea ecx, [ebp - 0x120]
push ecx
call dword [ebp - 0x12c]
cmp dword [ebp - 0x11c], 0
je 0x499654
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x11c]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x118]
mov dword [ecx], edx
cmp dword [ebp - 0x11c], 0xa
jne 0x49964a
cmp dword [ebp - 0x118], 0
jne 0x49964a
cmp dword [ebp - 0x114], 0x55f0
jb 0x49964a
mov eax, dword [ebp + 8]
mov dword [eax], 0xb
mov ecx, dword [ebp + 0xc]
mov dword [ecx], 0
mov dword [ebp - 0x124], 1
mov edx, dword [ebp - 0x128]
push edx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x124], 0
je 0x499679
mov eax, 1
jmp 0x499749
push 0x11c
push 0
lea eax, [ebp - 0x250]
push eax
call fcn.0056f420
add esp, 0xc
mov dword [ebp - 0x250], 0x11c
lea ecx, [ebp - 0x250]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x4996c9
cmp dword [ebp - 0x240], 2
jne 0x4996c9
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0x24c]
mov dword [edx], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 0x248]
mov dword [ecx], edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
add ecx, 1
mov dword [ebp - 0x254], ecx
push 0
mov edx, dword [ebp - 0x254]
push edx
call fcn.00499470
add esp, 8
test eax, eax
je 0x499702
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x254]
mov dword [eax], ecx
mov edx, dword [ebp + 0xc]
mov dword [edx], 0
jmp 0x4996c9
jmp 0x499706
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax]
add ecx, 1
mov dword [ebp - 0x258], ecx
mov edx, dword [ebp - 0x258]
push edx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
push ecx
call fcn.00499470
add esp, 8
test eax, eax
je 0x49973a
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp - 0x258]
mov dword [edx], eax
jmp 0x499706
jmp 0x49973e
mov ecx, dword [ebp + 8]
xor edx, edx
cmp edx, dword [ecx]
sbb eax, eax
neg eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret
Function at 0x4997e0
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c34b
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x3c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xe8], 0
push 0x9c
push 0
lea eax, [ebp - 0xdc]
push eax
call fcn.0056f420
add esp, 0xc
mov dword [ebp - 0xdc], 0x9c
lea ecx, [ebp - 0xdc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x49985d
mov dword [ebp - 0xdc], 0x94
lea edx, [ebp - 0xdc]
push edx
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0xd8], 5
jb 0x4998b4
lea eax, [ebp - 0xe0]
push eax
lea ecx, [ebp - 0xe4]
push ecx
call fcn.00499560
add esp, 8
test eax, eax
je 0x4998b4
mov edx, dword [ebp - 0xd8]
cmp edx, dword [ebp - 0xe4]
je 0x49989a
mov eax, dword [ebp - 0xe4]
mov dword [ebp - 0xd8], eax
mov ecx, dword [ebp - 0xd4]
cmp ecx, dword [ebp - 0xe0]
je 0x4998b4
mov edx, dword [ebp - 0xe0]
mov dword [ebp - 0xd4], edx
push str.GetNativeSystemInfo
push 0x5b4dd8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x14], eax
push 0x24
push 0
lea eax, [ebp - 0x38]
push eax
call fcn.0056f420
add esp, 0xc
cmp dword [ebp - 0x14], 0
je 0x4998ed
lea ecx, [ebp - 0x38]
push ecx
call dword [ebp - 0x14]
jmp 0x4998f7
lea edx, [ebp - 0x38]
push edx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
lea ecx, [ebp - 0x10]
call fcn.004a2910
mov dword [ebp - 4], 0
movzx eax, word [ebp - 0x38]
push eax
movzx ecx, byte [ebp - 0x42]
push ecx
mov edx, dword [ebp - 0xcc]
push edx
mov eax, dword [ebp - 0xd4]
push eax
mov ecx, dword [ebp - 0xd8]
push ecx
push str._d__d__d__d__d
lea edx, [ebp - 0x10]
push edx
call fcn.004098b0
add esp, 0x1c
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00408fd0
mov ecx, dword [ebp - 0xe8]
or ecx, 1
mov dword [ebp - 0xe8], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00408330
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x3c]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret
Function at 0x499980
Capabilities:
Get file version info
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c38e
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 0x2c], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x23c], 0
mov dword [ebp - 4], 0
push 0x5b482f
lea ecx, [ebp - 0x10]
call fcn.00408ff0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp + 0xc]
call fcn.004090f0
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x499b10
mov ecx, dword [ebp - 0x18]
add ecx, 1
push ecx
call fcn.0055035a
add esp, 4
mov dword [ebp - 0x234], eax
mov edx, dword [ebp - 0x234]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp + 0xc]
call fcn.004090f0
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x499af8
lea eax, [ebp - 0x24]
push eax
lea ecx, [ebp - 0x28]
push ecx
push str.VarFileInfoTranslation
mov edx, dword [ebp - 0x1c]
push edx
call sub.VERSION.dll_VerQueryValueA
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x499af8
lea ecx, [ebp - 0x230]
call fcn.004a2910
mov byte [ebp - 4], 2
push pe_nt_image_headers32
push 0
lea eax, [ebp - 0x22c]
push eax
call fcn.0056f420
add esp, 0xc
push pe_nt_image_headers32
push 0
lea ecx, [ebp - 0x12c]
push ecx
call fcn.0056f420
add esp, 0xc
push 0xff
lea edx, [ebp - 0x22c]
push edx
push 0x59
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
and ecx, 0xffff
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push 0xff
lea edx, [ebp - 0x12c]
push edx
push 0x5a
mov eax, dword [ebp - 0x28]
mov ecx, dword [eax]
and ecx, 0xffff
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea edx, [ebp - 0x12c]
push edx
lea eax, [ebp - 0x22c]
push eax
push str._s__s
lea ecx, [ebp - 0x10]
push ecx
call fcn.004098b0
add esp, 0x10
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x230]
call fcn.00408330
mov edx, dword [ebp - 0x1c]
mov dword [ebp - 0x238], edx
mov eax, dword [ebp - 0x238]
push eax
call fcn.0055034f
add esp, 4
lea ecx, [ebp - 0x10]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00408fd0
mov edx, dword [ebp - 0x23c]
or edx, 1
mov dword [ebp - 0x23c], edx
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x10]
call fcn.00408330
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00408330
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x2c]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret
Function at 0x49a8c0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [ebp + 8]
push eax
call fcn.00488810
add esp, 4
test eax, eax
jne 0x49a8dd
xor eax, eax
jmp 0x49a9c4
push 0x3c
push 0
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0056f420
add esp, 0xc
mov dword [ebp - 0x3c], 0x3c
mov dword [ebp - 0x38], 0x40
cmp dword [ebp + 0x18], 0
je 0x49a913
call fcn.0049a9d0
test eax, eax
je 0x49a913
mov dword [ebp - 0x30], str.runas
jmp 0x49a91a
mov dword [ebp - 0x30], 0x5b4f20
mov edx, dword [ebp + 8]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x20], 1
lea ecx, [ebp - 0x3c]
push ecx
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
je 0x49a9c1
cmp dword [ebp + 0x1c], 0
je 0x49a972
call fcn.0049f740
mov dword [ebp - 0x40], eax
cmp dword [ebp - 0x40], 0
je 0x49a961
mov edx, dword [ebp - 4]
push edx
call dword [ebp - 0x40]
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
jmp 0x49a972
mov edx, dword [ebp - 4]
push edx
call fcn.0049f8f0
add esp, 4
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], eax
cmp dword [ebp + 0x14], 0
je 0x49a9b7
push 0xa
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x49a9b7
push 1
push 0
push 0
push 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x49a9b5
lea ecx, [ebp - 0x5c]
push ecx
call dword [sym.imp.USER32.dll_TranslateMessage]
lea edx, [ebp - 0x5c]
push edx
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x49a978
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret

Function at 0x49a9d0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x616738]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xa0], 0x94
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x49aa17
cmp dword [ebp - 0x90], 2
jne 0x49aa17
cmp dword [ebp - 0x9c], 6
jb 0x49aa17
mov eax, 1
jmp 0x49aa19
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0056edd3
mov esp, ebp
pop ebp
ret