joyce8/EMBER2024-capa huggingface dataset:
Function at 0x492300
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push 0xffffffffffffffff
push 0x4d1230
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
push edi
mov eax, dword [0x5071dc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x48]
mov eax, dword [ebp]
mov eax, dword [eax - 0xc]
test eax, eax
je 0x4924dd
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x4924dd
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4924dd
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
je 0x4924d0
test edi, edi
jbe 0x4924d0
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.004928b0
push esi
mov dword [esp + 0x44], 0
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea eax, [esp + 0x1c]
call fcn.00447eeb
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x48]
push eax
lea esi, [esp + 0x20]
call fcn.00490a6f
cmp dword [esp + 0x24], 0
je 0x492485
mov eax, dword [ebp]
push eax
mov eax, esi
call fcn.0048f9e1
test eax, eax
je 0x4923fc
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00490cad
mov byte [esp + 0x40], 2
call fcn.0048f9cd
mov edx, dword [esp + 0x4c]
push eax
push edx
call fcn.00432853
mov byte [esp + 0x40], 1
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x20]
call fcn.0048f9e1
test eax, eax
je 0x49243a
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x24]
call fcn.00490cad
mov byte [esp + 0x40], 3
call fcn.0048f9cd
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.00432853
mov dword [esp + 0x10], vtable.cf::BkJson::Handle.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call fcn.00490a2c
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x492470
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call fcn.00490a2c
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x48]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4924dd
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
xor al, al
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x34
ret
Function at 0x492981
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xcc
xor eax, eax
push esi
mov esi, dword [ebp + 8]
mov dword [esi], eax
push edi
mov dword [ebx], eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
call fcn.00492de4
xor edi, edi
inc edi
test eax, eax
je 0x4929ad
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
lea ecx, [ebp + 0xb]
call fcn.00492e3d
test eax, eax
jne 0x4929d1
lea ecx, [ebp + 0xb]
call fcn.00492e6b
test eax, eax
jne 0x4929d1
lea ecx, [ebp + 0xb]
call fcn.00492e99
test eax, eax
je 0x4929d5
or dword [ebp - 4], 2
call fcn.00492f13
test eax, eax
je 0x4929e5
or dword [ebp - 4], 4
mov dword [ebp - 8], edi
cmp dword [ebp - 8], 0
je 0x4929fc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
mov dword [ebx], edi
mov dword [eax], ecx
jmp 0x492b07
lea esi, [ebp - 4]
call fcn.00492fe4
test eax, eax
je 0x492a20
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 2
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x492b07
lea esi, [ebp - 4]
call fcn.00493026
test eax, eax
je 0x492a39
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 3
jmp 0x492a13
call fcn.0049348a
test al, al
jne 0x492a54
call fcn.0049344f
test al, al
jne 0x492a54
call fcn.004933b7
test al, al
je 0x492a61
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 4
jmp 0x492a13
lea esi, [ebp - 0xcc]
mov dword [ebp - 8], 3
call fcn.004935f7
lea ecx, [ebp - 8]
push ecx
push eax
call fcn.00493681
test eax, eax
je 0x492abb
mov eax, dword [ebp - 8]
test eax, eax
je 0x492a91
cmp eax, edi
je 0x492a91
cmp eax, 2
jne 0x492abb
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 5
jne 0x492aab
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3001
jmp 0x492b07
cmp eax, 2
jne 0x492b07
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3002
jmp 0x492b07
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x492ad7
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 6
jmp 0x492b01
call fcn.00492b0d
test eax, eax
je 0x492aed
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 7
jmp 0x492b01
call fcn.00492bb0
test eax, eax
je 0x492b07
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 8
mov eax, dword [ebp + 0xc]
and dword [eax], 0
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x49306f
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5071dc]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0x228
lea eax, [ebp - 0x22c]
push 0
push eax
xor bl, bl
call fcn.004954a0
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x4930f1
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x4930e9
lea eax, [ebp - 0x20c]
push eax
push str.vmusrvc.exe
call fcn.00497c14
test eax, eax
pop ecx
pop ecx
je 0x4930ef
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x4930c5
jmp 0x4930f1
mov bl, 1
test esi, esi
je 0x4930fc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0049e19e
leave
ret

Function at 0x49310c
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x5071dc]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
push edi
mov edi, 0x208
xor ebx, ebx
push edi
lea eax, [ebp + 0x192]
push ebx
push eax
mov word [ebp + 0x190], bx
call fcn.004954a0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x190]
push eax
mov byte [ebp - 0x7d], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x4931c5
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
and word [ebp - 0x7c], 0
push edi
lea eax, [ebp - 0x7a]
push 0
push eax
call fcn.004954a0
push 0xffffffffffffffff
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00499d46
push 0xffffffffffffffff
push dword [ebx + 0x50e800]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004cc03d
add esp, 0x2c
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4931c1
add ebx, 4
cmp ebx, 0x14
jb 0x493170
jmp 0x4931c5
mov byte [ebp - 0x7d], 1
mov ecx, dword [ebp + 0x39c]
mov al, byte [ebp - 0x7d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049e19e
add ebp, 0x3a0
leave
ret
Function at 0x4932b7
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1ac]
sub esp, 0x22c
mov eax, dword [0x5071dc]
xor eax, ebp
mov dword [ebp + 0x1a8], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [ebp - 0x5e]
push ebx
push eax
mov byte [ebp - 0x61], bl
mov dword [ebp - 0x6c], ebx
mov word [ebp - 0x60], bx
call fcn.004954a0
mov esi, str.DiskVirtual_HD
push esi
mov dword [ebp - 0x70], 0x104
call fcn.004953a9
add esp, 0x10
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x74]
push eax
push 0x20019
push ebx
push str.SYSTEMCurrentControlSetEnumIDE
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x74], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x49339d
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x68], eax
lea eax, [ebp - 0x80]
push eax
push ebx
push ebx
push ebx
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp - 0x60]
push eax
push dword [ebp - 0x6c]
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x6c]
test eax, eax
jne 0x49338f
cmp word [ebp - 0x60], bx
je 0x493370
mov eax, dword [ebp - 0x78]
cmp dword [ebp - 0x70], eax
jb 0x493370
push eax
lea eax, [ebp - 0x60]
push esi
push eax
call fcn.0049aadc
add esp, 0xc
test eax, eax
je 0x49338b
push 0x208
lea eax, [ebp - 0x60]
push ebx
push eax
call fcn.004954a0
add esp, 0xc
mov dword [ebp - 0x70], 0x104
jmp 0x49332e
mov byte [ebp - 0x61], 1
cmp dword [ebp - 0x68], ebx
je 0x49339d
push dword [ebp - 0x68]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1a8]
mov al, byte [ebp - 0x61]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049e19e
add ebp, 0x1ac
leave
ret

Function at 0x49348a
Capabilities:
Check if file exists
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x5071dc]
xor eax, ebp
mov dword [ebp + 0x39c], eax
push ebx
push esi
push edi
mov edi, 0x208
xor ebx, ebx
push edi
lea eax, [ebp + 0x192]
push ebx
push eax
mov word [ebp + 0x190], bx
call fcn.004954a0
add esp, 0xc
mov esi, 0x104
push esi
lea eax, [ebp + 0x190]
push eax
mov byte [ebp - 0x7d], bl
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x493543
lea eax, [ebp + 0x190]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
and word [ebp - 0x7c], 0
push edi
lea eax, [ebp - 0x7a]
push 0
push eax
call fcn.004954a0
push 0xffffffffffffffff
lea eax, [ebp + 0x190]
push eax
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.00499d46
push 0xffffffffffffffff
push dword [ebx + 0x50e824]
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.004cc03d
add esp, 0x2c
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x49353f
add ebx, 4
cmp ebx, 4
jb 0x4934ee
jmp 0x493543
mov byte [ebp - 0x7d], 1
mov ecx, dword [ebp + 0x39c]
mov al, byte [ebp - 0x7d]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0049e19e
add ebp, 0x3a0
leave
ret
Function at 0x49355e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 8]
mov dword [ebp - 8], ebx
push reloc.OLEAUT32.dll_SysReAllocString
mov byte [ebp - 1], bl
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x49358e
mov byte [ebp - 1], bl
jmp 0x4935f1
push esi
push 0x80
call fcn.00497a42
pop ecx
mov esi, eax
lea eax, [ebp - 0xc]
push eax
push esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
mov dword [ebp - 0x10], 1
push dword [ebp - 8]
mov dword [ebp - 0xc], 0x50
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4935c9
mov byte [ebp - 1], bl
jmp 0x4935dc
push dword [ebp + 0x10]
push esi
call fcn.00494fc6
test eax, eax
pop ecx
pop ecx
je 0x4935dc
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x4935e7
push esi
call fcn.00496058
pop ecx
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov al, byte [ebp - 1]
pop ebx
leave
ret

Function at 0x493681
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x5071dc]
xor eax, ebp
mov dword [ebp + 0x1ac], eax
mov eax, dword [ebp + 0x1b8]
push edi
mov dword [ebp - 0x6c], eax
mov eax, dword [ebp + 0x1bc]
xor edi, edi
push 0x206
mov dword [ebp - 0x78], eax
lea eax, [ebp - 0x5a]
push edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x68], edi
mov word [ebp - 0x5c], di
call fcn.004954a0
add esp, 0xc
lea eax, [ebp - 0x70]
push eax
push 0x20019
push edi
push str.SYSTEMCurrentControlSetEnumPCI
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 0x60], 0x104
mov dword [ebp - 0x70], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
jne 0x4937a4
mov eax, dword [ebp - 0x70]
push ebx
mov dword [ebp - 0x64], eax
push esi
lea eax, [ebp - 0x80]
push eax
push edi
push edi
push edi
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x5c]
push eax
push dword [ebp - 0x68]
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
inc dword [ebp - 0x68]
test eax, eax
jne 0x493794
mov ebx, dword [ebp - 0x6c]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x5c], di
je 0x49375a
cmp word [ebx], di
je 0x49375a
push ebx
call fcn.004953a9
cmp eax, 1
pop ecx
jb 0x49375a
cmp dword [ebp - 0x60], eax
jbe 0x49375a
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.0049aadc
add esp, 0xc
test eax, eax
je 0x49377e
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x49372c
push 0x208
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.004954a0
add esp, 0xc
mov dword [ebp - 0x60], 0x104
jmp 0x493701
mov eax, dword [ebp - 0x6c]
mov ecx, dword [ebp - 0x78]
shl esi, 6
mov eax, dword [esi + eax + 4]
mov dword [ecx], eax
mov dword [ebp - 0x74], 1
cmp dword [ebp - 0x64], edi
pop esi
pop ebx
je 0x4937a4
push dword [ebp - 0x64]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x1ac]
mov eax, dword [ebp - 0x74]
xor ecx, ebp
pop edi
call fcn.0049e19e
add ebp, 0x1b0
leave
ret 8
Function at 0x4937bf
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x5071dc]
xor eax, ebp
mov dword [ebp + 0x18c], eax
push esi
mov esi, ecx
mov ecx, dword [esi]
xor eax, eax
cmp dword [ecx - 0xc], eax
je 0x493935
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.004954a0
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.00401336
or ebx, 0xffffffff
cmp eax, ebx
jne 0x493900
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x493900
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x493900
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x493888
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x493914
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call fcn.00479ef4
mov eax, esi
call fcn.00432791
mov edi, 0x4ed838
jmp 0x493924
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x4938aa
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x493864
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x4938eb
push 0x20a
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.004954a0
add esp, 0xc
push 0x105
lea eax, [ebp - 0x80]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
jmp 0x49386c
mov edi, 0x4ef884
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
je 0x493877
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.0049394b
test eax, eax
pop ecx
pop ecx
jne 0x49386c
xor eax, eax
jmp 0x493933
push 0x4e3c70
push edi
push esi
call fcn.00479ef4
push edi
xor ecx, ecx
call fcn.00401336
cmp eax, ebx
jne 0x493918
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.0049e19e
add ebp, 0x190
leave
ret
Function at 0x49394b
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x4f9358
call fcn.004a0ecc
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x4939fc
cmp dword [ebp + 0xc], eax
je 0x4939fc
push eax
push eax
push dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call edi
mov esi, eax
cmp esi, 1
jb 0x4939fc
mov ebx, 0x103
cmp esi, ebx
ja 0x4939fc
and dword [ebp - 4], 0
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00493c3c
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x4939f5
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.004954a0
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x4939f5
cmp eax, ebx
ja 0x4939f5
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.00499d46
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x4939f5
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x493a0b
push dword [ebp - 0x1c]
call fcn.0049551a
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a0f11
ret

Function at 0x493a14
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x493ab8
push edi
push 1
push esi
call fcn.004975f1
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x493ab5
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x493aae
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x4eb3d0
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x493aae
cmp dword [ebp - 4], 0
je 0x493aae
push 0x10
call fcn.00462151
mov esi, eax
test esi, esi
pop ecx
je 0x493ab5
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
mov dword [esi + 8], ecx
lea ecx, [ebp - 0x10]
push ecx
mov dword [esi + 4], eax
lea eax, [esi + 0xc]
and dword [eax], 0
push eax
push 0x4e3c70
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x493ab7
push edi
call fcn.00496058
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x493ad2
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x5071dc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x224], eax
mov ax, word [edi + 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
mov word [ebp - 0x14], ax
mov ax, word [edi + 8]
push esi
mov word [ebp - 0x12], ax
call ebx
mov word [ebp - 0x10], ax
mov ax, word [edi + 8]
mov word [ebp - 0xe], ax
mov ax, word [edi + 4]
mov word [ebp - 0xc], ax
mov word [ebp - 0xa], 0x4e4
call ebx
mov word [ebp - 8], ax
mov word [ebp - 6], 0x4e4
xor ebx, ebx
mov esi, 0x104
movzx eax, word [ebp + ebx*2 - 0x14]
movzx ecx, word [ebp + ebx*2 - 0x12]
inc ebx
push 0x4eb4e8
movzx ecx, cx
push ecx
movzx eax, ax
push eax
push str.StringFileInfo_04x_04x_ls
push esi
lea eax, [ebp - 0x21c]
push esi
push eax
inc ebx
call fcn.004953db
and dword [ebp - 0x220], 0
add esp, 0x1c
lea eax, [ebp - 0x228]
push eax
lea eax, [ebp - 0x220]
push eax
lea eax, [ebp - 0x21c]
push eax
push dword [edi]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x493b94
cmp dword [ebp - 0x220], 0
jne 0x493bab
cmp ebx, 8
jb 0x493b35
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0049e19e
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.004953a9
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x224]
call fcn.0041e3ac
mov al, 1
jmp 0x493b9b

Function at 0x4949cb
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x5071dc]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049490a
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call fcn.004954a0
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x494a1a
cmp dword [ebp - 0x1c], 5
jb 0x494a32
jmp 0x494a2e
cmp dword [ebp - 0x10], 1
jne 0x494a32
cmp dword [ebp - 0x1c], 4
ja 0x494a2e
jne 0x494a32
cmp dword [ebp - 0x18], 0
jbe 0x494a32
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x4d4ab4
call fcn.00440076
test eax, eax
jge 0x494a53
mov byte [0x50f9c8], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0049e19e
add ebp, 0x78
leave
ret
Function at 0x494c05
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x50eca8], 0
push esi
jne 0x494b78
call fcn.00494aa3
test eax, eax
je 0x494bbb
mov eax, dword [0x50eca8]
cmp eax, 1
jne 0x494b99
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x494bbb
pop esi
ret
push eax
call dword [0x50ecb0]
test eax, eax
jne 0x494c03
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x494bbf
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x50eca8]
call dword [0x50ecb0]
mov edi, eax
test edi, edi
je 0x494be6
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x494c02
lea edi, [esi + 0xff0]
push esi
push dword [0x50eca8]
call dword [0x50ecac]
add esi, 0x10
cmp esi, edi
jb 0x494bec
mov eax, esi
pop edi
pop esi
ret
jmp 0x494b65

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x499e3c
call fcn.0049fe49
mov dword [eax], esi
call fcn.0049fe36
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004965c5
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x499e18
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x499e6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0049fe5c
pop ecx
call fcn.0049fe36
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x499e92
test al, 1
je 0x499e92
test byte [esp + 0xc], 2
je 0x499e92
call fcn.0049fe49
mov dword [eax], 5
call fcn.0049fe36
mov dword [eax], 0xd
jmp 0x499e62
xor eax, eax
pop esi
ret