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

Disassembly:
push 0xffffffffffffffff
push 0x599f00
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebp
push esi
push edi
mov eax, dword [0x60b1e0]
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 0x498ebd
mov ecx, dword [ebx]
cmp dword [ecx - 0xc], 0
je 0x498ebd
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x498ebd
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 0x498eb0
test edi, edi
jbe 0x498eb0
push eax
lea edx, [esp + 0x4c]
push edx
call fcn.00499290
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.00449260
mov byte [esp + 0x40], 1
mov eax, dword [esp + 0x48]
push eax
lea esi, [esp + 0x20]
call fcn.00494829
cmp dword [esp + 0x24], 0
je 0x498e65
mov eax, dword [ebp]
push eax
mov eax, esi
call fcn.0049379b
test eax, eax
je 0x498ddc
mov eax, dword [ebp]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00494a67
mov byte [esp + 0x40], 2
call fcn.00493787
mov edx, dword [esp + 0x4c]
push eax
push edx
call fcn.00432a50
mov byte [esp + 0x40], 1
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x20]
call fcn.0049379b
test eax, eax
je 0x498e1a
mov eax, dword [ebx]
push eax
lea eax, [esp + 0x14]
push eax
lea esi, [esp + 0x24]
call fcn.00494a67
mov byte [esp + 0x40], 3
call fcn.00493787
mov ecx, dword [esp + 0x50]
push eax
push ecx
call fcn.00432a50
mov dword [esp + 0x10], vtable.cf::BkJson::Handle.0
lea ecx, [esp + 0x1c]
mov byte [esp + 0x40], 0
call fcn.004947e6
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 0x498e50
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.004947e6
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 0x498ebd
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 0x499361
Capabilities:
Check for sandbox and av modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc8
mov eax, dword [ebp + 8]
push esi
xor esi, esi
mov dword [eax], esi
push edi
mov dword [ebx], esi
mov dword [ebp - 4], esi
call fcn.004997d9
xor edi, edi
inc edi
test eax, eax
je 0x499389
mov esi, edi
mov dword [ebp - 4], edi
lea ecx, [ebp + 0xb]
call fcn.00499832
test eax, eax
jne 0x4993ad
lea ecx, [ebp + 0xb]
call fcn.00499860
test eax, eax
jne 0x4993ad
lea ecx, [ebp + 0xb]
call fcn.0049988e
test eax, eax
je 0x4993b0
or esi, 2
call fcn.00499908
test eax, eax
je 0x4993bf
or esi, 4
mov dword [ebp - 4], edi
cmp dword [ebp - 4], 0
je 0x4993d6
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov eax, dword [ebp + 0xc]
mov dword [ebx], edi
mov dword [eax], esi
jmp 0x4994fc
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.004999d9
test eax, eax
je 0x4993fe
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 0x4994fc
and dword [ebp - 4], 0
lea esi, [ebp - 4]
call fcn.00499a8c
test eax, eax
je 0x49941b
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 3
jmp 0x4993f1
call fcn.00499e59
test al, al
je 0x49942b
mov eax, 0x2001
jmp 0x499449
call fcn.00499e1e
test al, al
je 0x49943b
mov eax, 0x2002
jmp 0x499449
call fcn.00499d86
test al, al
je 0x499456
mov eax, 0x2003
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 4
jmp 0x4993f4
lea esi, [ebp - 0xc8]
mov dword [ebp - 4], 3
call fcn.0049a02c
lea ecx, [ebp - 4]
push ecx
push eax
call fcn.0049a0b6
test eax, eax
je 0x4994b0
mov eax, dword [ebp - 4]
test eax, eax
je 0x499486
cmp eax, edi
je 0x499486
cmp eax, 2
jne 0x4994b0
cmp eax, edi
mov ecx, dword [ebp + 8]
mov dword [ecx], edi
mov dword [ebx], 5
jne 0x4994a0
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3001
jmp 0x4994fc
cmp eax, 2
jne 0x4994fc
mov eax, dword [ebp + 0xc]
mov dword [eax], 0x3002
jmp 0x4994fc
push str.SbieDll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4994cc
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 6
jmp 0x4994f6
call fcn.00499502
test eax, eax
je 0x4994e2
mov eax, dword [ebp + 8]
mov dword [eax], edi
mov dword [ebx], 7
jmp 0x4994f6
call fcn.004995a5
test eax, eax
je 0x4994fc
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 0x499ad8
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x60b1e0]
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.0049bf00
add esp, 0xc
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x499b5a
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32FirstW
jmp 0x499b52
lea eax, [ebp - 0x20c]
push eax
push str.vmusrvc.exe
call fcn.0049e684
test eax, eax
pop ecx
pop ecx
je 0x499b58
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x499b2e
jmp 0x499b5a
mov bl, 1
test esi, esi
je 0x499b65
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.004a4e33
leave
ret

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

Disassembly:
push 0x434
mov eax, 0x595a59
call fcn.004a4eab
mov ebx, 0x208
xor esi, esi
push ebx
lea eax, [ebp - 0x42e]
push esi
push eax
mov word [ebp - 0x430], si
call fcn.0049bf00
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x430]
push eax
mov byte [ebp - 0x431], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x499ca3
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x438], esi
jmp 0x499bdc
xor esi, esi
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0049bf00
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004a07b6
mov eax, dword [ebp - 0x438]
push 0xffffffffffffffff
push dword [eax + 0x61b46c]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.0059252f
add esp, 0x2c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x499c7f
lea esi, [ebp - 0x440]
call fcn.004992f1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x499c88
cmp dword [ebp - 0x440], eax
je 0x499c69
push dword [ebp - 0x43c]
call fcn.0049979d
add dword [ebp - 0x438], 4
cmp dword [ebp - 0x438], 0x14
jb 0x499bda
jmp 0x499ca3
mov byte [ebp - 0x431], 1
jmp 0x499ca3
cmp dword [ebp - 0x440], 0
mov byte [ebp - 0x431], 1
je 0x499ca3
push dword [ebp - 0x43c]
call fcn.0049979d
mov al, byte [ebp - 0x431]
call fcn.004a4ef5
ret
Function at 0x499e59
Capabilities:
Check if file exists
Get common file path

Disassembly:
push 0x434
mov eax, 0x595a59
call fcn.004a4eab
mov ebx, 0x208
xor esi, esi
push ebx
lea eax, [ebp - 0x42e]
push esi
push eax
mov word [ebp - 0x430], si
call fcn.0049bf00
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x430]
push eax
mov byte [ebp - 0x431], 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
test eax, eax
jbe 0x499f87
lea eax, [ebp - 0x430]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashW]
mov dword [ebp - 0x438], esi
jmp 0x499ec0
xor esi, esi
push ebx
lea eax, [ebp - 0x21e]
push esi
push eax
mov word [ebp - 0x220], si
call fcn.0049bf00
push 0xffffffffffffffff
lea eax, [ebp - 0x430]
push eax
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.004a07b6
mov eax, dword [ebp - 0x438]
push 0xffffffffffffffff
push dword [eax + 0x61b490]
lea eax, [ebp - 0x220]
push edi
push eax
call fcn.0059252f
add esp, 0x2c
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x499f63
lea esi, [ebp - 0x440]
call fcn.004992f1
lea eax, [ebp - 0x220]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
or dword [ebp - 4], 0xffffffff
test eax, eax
jne 0x499f6c
cmp dword [ebp - 0x440], eax
je 0x499f4d
push dword [ebp - 0x43c]
call fcn.0049979d
add dword [ebp - 0x438], 4
cmp dword [ebp - 0x438], 4
jb 0x499ebe
jmp 0x499f87
mov byte [ebp - 0x431], 1
jmp 0x499f87
cmp dword [ebp - 0x440], 0
mov byte [ebp - 0x431], 1
je 0x499f87
push dword [ebp - 0x43c]
call fcn.0049979d
mov al, byte [ebp - 0x431]
call fcn.004a4ef5
ret

Function at 0x499f93
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 0x499fc3
mov byte [ebp - 1], bl
jmp 0x49a026
push esi
push 0x80
call fcn.0049e4b2
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 0x499ffe
mov byte [ebp - 1], bl
jmp 0x49a011
push dword [ebp + 0x10]
push esi
call fcn.0049ba20
test eax, eax
pop ecx
pop ecx
je 0x49a011
mov byte [ebp - 1], 1
cmp esi, ebx
je 0x49a01c
push esi
call fcn.0049cabd
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 0x49a0b6
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x1b0]
sub esp, 0x230
mov eax, dword [0x60b1e0]
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.0049bf00
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 0x49a1d9
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 0x49a1c9
mov ebx, dword [ebp - 0x6c]
xor esi, esi
inc esi
add ebx, 0x48
cmp word [ebp - 0x5c], di
je 0x49a18f
cmp word [ebx], di
je 0x49a18f
push ebx
call fcn.0049be03
cmp eax, 1
pop ecx
jb 0x49a18f
cmp dword [ebp - 0x60], eax
jbe 0x49a18f
push eax
lea eax, [ebp - 0x5c]
push ebx
push eax
call fcn.004a154c
add esp, 0xc
test eax, eax
je 0x49a1b3
inc esi
add ebx, 0x40
cmp esi, 3
jb 0x49a161
push 0x208
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.0049bf00
add esp, 0xc
mov dword [ebp - 0x60], 0x104
jmp 0x49a136
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 0x49a1d9
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.004a4e33
add ebp, 0x1b0
leave
ret 8
Function at 0x49a1f4
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x60b1e0]
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 0x49a371
push ebx
push edi
push 0x208
push eax
mov word [ebp - 0x80], ax
lea eax, [ebp - 0x7e]
push eax
call fcn.0049bf00
add esp, 0xc
mov edi, str._ALLUSERSPROFILE_
push edi
xor ecx, ecx
call fcn.0040132b
or ebx, 0xffffffff
cmp eax, ebx
jne 0x49a33c
mov edi, str._APPDATA_
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
jne 0x49a33c
mov edi, str._TEMP_
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
jne 0x49a33c
mov edi, str._SYSTEM_
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
je 0x49a2c1
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jbe 0x49a350
lea eax, [ebp - 0x80]
push eax
push edi
push esi
call fcn.0047dcc4
push 0x5c
push 0x2f
mov eax, esi
call fcn.0043297d
mov edi, 0x5f0b40
jmp 0x49a360
mov edi, str._WINDOWS_
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
je 0x49a2e3
push 0x104
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
jmp 0x49a299
mov edi, str._CUR_DIR_
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
je 0x49a327
push 0x20a
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.0049bf00
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 0x49a2a1
mov edi, 0x5f2e1c
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
je 0x49a2ac
lea eax, [ebp - 0x80]
push eax
push edi
call fcn.0049a387
test eax, eax
pop ecx
pop ecx
jne 0x49a2a1
xor eax, eax
jmp 0x49a36f
push 0x5e6df4
push edi
push esi
call fcn.0047dcc4
push edi
xor ecx, ecx
call fcn.0040132b
cmp eax, ebx
jne 0x49a354
xor eax, eax
inc eax
pop edi
pop ebx
mov ecx, dword [ebp + 0x18c]
xor ecx, ebp
pop esi
call fcn.004a4e33
add ebp, 0x190
leave
ret
Function at 0x49a387
Capabilities:
Query environment variable

Disassembly:
push 0x14
push 0x5fcb38
call fcn.004a7b64
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp + 8], eax
je 0x49a438
cmp dword [ebp + 0xc], eax
je 0x49a438
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 0x49a438
mov ebx, 0x103
cmp esi, ebx
ja 0x49a438
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.0049a678
pop ecx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x49a431
lea ecx, [esi + esi]
push ecx
push 0
push eax
call fcn.0049bf00
add esp, 0xc
push esi
push dword [ebp - 0x24]
push dword [ebp + 8]
call edi
test eax, eax
je 0x49a431
cmp eax, ebx
ja 0x49a431
push eax
push dword [ebp - 0x24]
push ebx
push dword [ebp + 0xc]
call fcn.004a07b6
add esp, 0x10
mov dword [ebp - 0x20], 1
jmp 0x49a431
mov dword [ebp - 4], 0xfffffffe
cmp dword [ebp - 0x1c], 0
je 0x49a447
push dword [ebp - 0x1c]
call fcn.0049bf7a
pop ecx
mov eax, dword [ebp - 0x20]
call fcn.004a7ba9
ret

Function at 0x49a450
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 0x49a4f4
push edi
push 1
push esi
call fcn.0049e061
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x49a4f1
push edi
push esi
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x49a4ea
and dword [ebp - 4], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
push 0x5ee500
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x49a4ea
cmp dword [ebp - 4], 0
je 0x49a4ea
push 0x10
call fcn.00465bfe
mov esi, eax
test esi, esi
pop ecx
je 0x49a4f1
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 0x5e6df4
push edi
mov dword [esi], edi
call sub.VERSION.dll_VerQueryValueW
mov eax, esi
jmp 0x49a4f3
push edi
call fcn.0049cabd
pop ecx
xor eax, eax
pop edi
pop esi
leave
ret
Function at 0x49a50e
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x60b1e0]
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 0x5ee618
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.0049be35
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 0x49a5d0
cmp dword [ebp - 0x220], 0
jne 0x49a5e7
cmp ebx, 8
jb 0x49a571
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004a4e33
leave
ret 4
mov esi, dword [ebp - 0x220]
push esi
call fcn.0049be03
pop ecx
mov ecx, esi
mov esi, dword [ebp - 0x224]
call fcn.0041e317
mov al, 1
jmp 0x49a5d7

Function at 0x49b425
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x60b1e0]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0049b364
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.0049bf00
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 0x49b474
cmp dword [ebp - 0x1c], 5
jb 0x49b48c
jmp 0x49b488
cmp dword [ebp - 0x10], 1
jne 0x49b48c
cmp dword [ebp - 0x1c], 4
ja 0x49b488
jne 0x49b48c
cmp dword [ebp - 0x18], 0
jbe 0x49b48c
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x59dae4
call fcn.004411fd
test eax, eax
jge 0x49b4ad
mov byte [0x61e5e0], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a4e33
add ebp, 0x78
leave
ret
Function at 0x49b65f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x61b908], 0
push esi
jne 0x49b5d2
call fcn.0049b4fd
test eax, eax
je 0x49b615
mov eax, dword [0x61b908]
cmp eax, 1
jne 0x49b5f3
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x49b615
pop esi
ret
push eax
call dword [0x61b910]
test eax, eax
jne 0x49b65d
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 0x49b619
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x61b908]
call dword [0x61b910]
mov edi, eax
test edi, edi
je 0x49b640
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x49b65c
lea edi, [esi + 0xff0]
push esi
push dword [0x61b908]
call dword [0x61b90c]
add esi, 0x10
cmp esi, edi
jb 0x49b646
mov eax, esi
pop edi
pop esi
ret
jmp 0x49b5bf

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x4a08ac
call fcn.004a6ade
mov dword [eax], esi
call fcn.004a6acb
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0049cfd5
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x4a0888
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4a08db
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a6af1
pop ecx
call fcn.004a6acb
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x4a0902
test al, 1
je 0x4a0902
test byte [esp + 0xc], 2
je 0x4a0902
call fcn.004a6ade
mov dword [eax], 5
call fcn.004a6acb
mov dword [eax], 0xd
jmp 0x4a08d2
xor eax, eax
pop esi
ret
Function at 0x4a0c58
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4a0c95
cmp dword [ebp + 0x14], edi
je 0x4a0c95
cmp ecx, edi
jne 0x4a0c9c
call fcn.004a6acb
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0049cfd5
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4a0cb0
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4a0cd1
cmp ebx, 0xffffffff
je 0x4a0cc0
push ebx
push edi
push ecx
call fcn.0049bf00
add esp, 0xc
cmp esi, edi
je 0x4a0c7d
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4a0c7d
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4a0ced
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4a0cf4
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4a0de5
test word [esi + 0xc], 0x10c
je 0x4a0d48
mov eax, dword [esi + 4]
test eax, eax
je 0x4a0d48
jl 0x4a0e46
cmp ebx, eax
mov edi, ebx
jb 0x4a0d19
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4a0ded
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0049bd43
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4a0ddd
cmp ebx, dword [ebp - 0xc]
jb 0x4a0db5
cmp dword [ebp - 0xc], 0
je 0x4a0d72
mov ecx, SysReAllocString
xor edx, edx
cmp ebx, ecx
jbe 0x4a0d67
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4a0d6e
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4a0d7d
mov eax, SysReAllocString
cmp ebx, eax
ja 0x4a0d7d
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4a0e19
push eax
push dword [ebp - 8]
push esi
call fcn.004a20c2
pop ecx
push eax
call fcn.004b267c
add esp, 0xc
test eax, eax
je 0x4a0e58
cmp eax, 0xffffffff
je 0x4a0e46
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4a0ddd
push esi
call fcn.004b1f9b
cmp eax, 0xffffffff
pop ecx
je 0x4a0e4a
cmp dword [ebp - 4], 0
je 0x4a0e19
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4a0cfc
mov eax, dword [ebp + 0x14]
jmp 0x4a0c97
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a0e04
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0049bf00
add esp, 0xc
call fcn.004a6acb
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4a0c8d
cmp dword [ebp + 0xc], 0xffffffff
je 0x4a0e2f
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0049bf00
add esp, 0xc
call fcn.004a6acb
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4a0c8d
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4a0c97
or dword [esi + 0xc], 0x10
jmp 0x4a0e4a