joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4dd750
Capabilities:
Get geographical location

Disassembly:
sub esp, 0x20
fld dword [esp + 0x30]
fmul dword [0x539e5c]
mov ax, word [0x5579f4]
xor ecx, ecx
push ebx
push ebp
fadd qword [0x530050]
mov dword [esp + 0xa], ecx
push esi
push edi
mov word [esp + 0x10], ax
mov dword [esp + 0x16], ecx
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x34]
and edx, 0xffff
mov esi, eax
push edx
push ebx
call dword [sym.imp.USER32.dll_GetDlgItem]
fld dword [esp + 0x44]
fmul dword [0x539e58]
mov edi, eax
call sub.MSVCRT.dll__ftol
fld dword [esp + 0x48]
fmul dword [0x539e58]
mov bp, ax
and ebp, 0xffff
shl ebp, 0x10
call sub.MSVCRT.dll__ftol
and eax, 0xffff
or ebp, eax
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push 0x465
push edi
call ebp
mov eax, 0x66666667
imul esi
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
and edx, 0xffff
push edx
push 0
push 0x467
push edi
call ebp
lea ecx, [esp + 0x10]
push 0xa
push ecx
push 0xe
push 0x400
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov eax, esi
mov ecx, 0x64
cdq
idiv ecx
mov eax, 0x51eb851f
lea ecx, [esp + 0x1c]
push edx
lea edx, [esp + 0x14]
push edx
imul esi
sar edx, 5
mov eax, edx
shr eax, 0x1f
add edx, eax
push edx
push str._0d_s_02d
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [esp + 0x50]
add esp, 0x14
lea edx, [esp + 0x1c]
and eax, 0xffff
push edx
push eax
push ebx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 0x18
Function at 0x4e9730
Capabilities:
Create thread
Resume thread

Disassembly:
push ecx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x13968]
test eax, eax
jne 0x4e97e6
mov eax, dword [esi + 0x30]
test eax, eax
je 0x4e97e6
mov eax, dword [esi + 0x13964]
mov dword [esi + 0x13968], 1
push eax
mov dword [esi + 0x1396c], 0
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov ecx, dword [esi + 0x13960]
push ecx
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov edi, dword [esp + 0x10]
mov edx, dword [esp + 0x14]
test edi, edi
mov dword [esi + 0x1392c], edx
jne 0x4e97b1
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x4e97f0
push edi
push edi
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x1395c], eax
pop edi
pop esi
pop ecx
ret 8
lea ecx, [esp + 8]
push ecx
push 4
push esi
push 0x4e97f0
push 0
push 0
call dword [sym.imp.MSVCRT.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 0x1395c], eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov edx, dword [esi + 0x1395c]
push edx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
pop edi
pop esi
pop ecx
ret 8
Function at 0x4ece70
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x52d3be
push eax
mov dword fs:[0], esp
sub esp, 0x108
push ebx
push ebp
mov ebp, dword [esp + 0x124]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
mov esi, ecx
jne 0x4ecea8
mov eax, 0xfffffff9
jmp 0x4ed020
cmp dword [esi + 0xc], ebx
je 0x4eceb7
mov eax, 0xfffffffa
jmp 0x4ed020
lea edi, [esi + 4]
push ebp
mov dword [esi + 8], ebx
mov dword [esi + 0x24], ebx
mov dword [edi], 0xffffffff
mov dword [esi + 0x28], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
sete cl
push edi
mov edi, dword [esp + 0x12c]
mov dword [esi + 0x2c], ecx
push edi
mov ecx, 0x566788
call fcn.004c1650
cmp eax, ebx
mov dword [esi], eax
jne 0x4ecefc
or eax, 0xffffffff
jmp 0x4ed020
lea ebx, [esi + 0x30]
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x4ecf4d
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], ebx
lea edi, [esi + 0xc]
lea ecx, [esi + 0x1c]
push edi
lea edx, [esi + 0x10]
push ecx
mov ecx, dword [esi]
push edx
push 1
call fcn.004c4fe0
test eax, eax
je 0x4ed01e
cmp eax, 0xfffffffc
je 0x4ed01e
mov dword [esi + 8], eax
mov dword [edi], 0
mov eax, 0xfffffffb
jmp 0x4ed020
mov dl, byte [0x5688a4]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], dl
push ebp
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea ecx, [esp + 0x14]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbsrchr]
add esp, 8
test eax, eax
je 0x4ecf8c
mov byte [eax], 0
jmp 0x4ecf9c
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea edi, [esi + 0x134]
lea eax, [esp + 0x14]
push edi
push 0
push 0x553e94
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
mov ecx, dword [esp + 0x128]
push 0x78
mov dword [esi + 0x14], ecx
mov dword [esi + 0x18], edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x120], 0
je 0x4ecfe9
push ebx
mov ecx, eax
call fcn.004ded00
jmp 0x4ecfeb
xor eax, eax
mov ecx, eax
mov dword [esp + 0x120], 0xffffffff
mov dword [esi + 0x238], eax
call fcn.004e1360
test eax, eax
je 0x4ecf14
mov edx, dword [esi + 0x238]
mov eax, dword [edx + 0x54]
mov dword [esi + 8], eax
mov eax, 0xfffffffc
jmp 0x4ed020
xor eax, eax
mov ecx, dword [esp + 0x118]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x114
ret 8
Function at 0x4ed6a0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0xc
push esi
mov esi, ecx
mov al, byte [esi + 0x30]
test al, al
jne 0x4ed6b9
mov eax, 0xfffffffa
pop esi
add esp, 0xc
ret 0xc
mov eax, dword [esi + 0x2c]
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x20]
push edi
test eax, eax
mov dword [esp + 0x10], 0
jne 0x4ed728
mov ecx, dword [esi + 0x238]
test ecx, ecx
je 0x4ed728
call fcn.004e1400
cmp dword [esi + 0x24], eax
jge 0x4ed704
push ebp
push ebx
mov ecx, esi
call fcn.004ed3a0
test eax, eax
jne 0x4ed704
mov ecx, dword [esi + 0x238]
call fcn.004e1400
cmp dword [esi + 0x24], eax
jl 0x4ed6e7
mov edi, dword [esi + 0x238]
test edi, edi
je 0x4ed71e
mov ecx, edi
call fcn.004df1c0
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esi + 0x238], 0
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4ed75a
lea ecx, [esp + 0x14]
mov dword [esp + 0x14], ebx
push ecx
mov ecx, dword [esi]
push eax
mov dword [esp + 0x20], ebp
call fcn.004c51d0
test eax, eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], 0
je 0x4ed75a
mov dword [esp + 0x10], 0xfffffffb
mov eax, dword [esi + 0x2c]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x4ed78e
mov eax, dword [esp + 0x10]
test eax, eax
jne 0x4ed785
lea ebx, [esi + 0x30]
push ebx
call edi
lea edx, [esi + 0x134]
push ebx
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileA]
jmp 0x4ed78e
lea eax, [esi + 0x134]
push eax
call edi
mov eax, dword [esp + 0x28]
test eax, eax
je 0x4ed79c
lea eax, [esi + 0x30]
push eax
call edi
mov eax, dword [esp + 0x10]
pop edi
pop ebp
mov byte [esi + 0x30], 0
mov byte [esi + 0x134], 0
pop ebx
pop esi
add esp, 0xc
ret 0xc
Function at 0x4ed7e0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x110
push ebx
mov ebx, dword [esp + 0x120]
push esi
xor esi, esi
test eax, eax
push edi
je 0x4ed8f3
mov edi, dword [esp + 0x124]
test edi, edi
je 0x4ed8f3
mov edx, dword [esp + 0x12c]
lea ecx, [esp + 0x10]
push ecx
push 0x20019
push esi
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4ed8f3
push ebx
push edi
lea eax, [esp + 0x24]
push str._s__08x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0xc]
lea edx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push esi
push edx
lea eax, [esp + 0x28]
push esi
push eax
push ecx
call edi
test eax, eax
jne 0x4ed8a7
mov edx, dword [esp + 0xc]
push edx
call sub.MFC42.DLL_operatornew
add esp, 4
mov esi, eax
lea eax, [esp + 0xc]
lea ecx, [esp + 0x18]
push eax
mov eax, dword [esp + 0x14]
push esi
push ecx
lea edx, [esp + 0x28]
push 0
push edx
push eax
call edi
test eax, eax
jne 0x4ed89c
mov ecx, dword [esi]
mov eax, dword [esp + 0xc]
cmp ecx, eax
je 0x4ed8a7
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor esi, esi
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x4ed8f3
push 0
push ebx
mov ecx, 0x566788
call fcn.004c1650
test eax, eax
je 0x4ed906
lea ecx, [esp + 0x14]
push 0
push ecx
push ebx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.004c4c10
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4ed906
cmp eax, dword [esi]
je 0x4ed906
push esi
call sub.MFC42.DLL_operatordelete
add esp, 4
push ebx
call fcn.004ed920
add esp, 4
pop edi
pop esi
pop ebx
add esp, 0x110
ret
mov eax, esi
pop edi
pop esi
pop ebx
add esp, 0x110
ret

Function at 0x4ed9a0
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
test eax, eax
push ebx
push edi
je 0x4eda53
mov ebx, dword [esp + 0x118]
test ebx, ebx
je 0x4eda53
mov edi, dword [esp + 0x120]
test edi, edi
je 0x4eda53
lea ecx, [esp + 0xc]
push esi
lea edx, [esp + 0xc]
push ecx
push edx
push 0
push 0x20006
push 0
push 0x5688a4
push 0
push eax
mov eax, dword [esp + 0x148]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov esi, eax
test esi, esi
jne 0x4eda42
mov ecx, dword [esp + 0x120]
lea edx, [esp + 0x14]
push ecx
push ebx
push str._s__08x
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
mov eax, dword [edi]
mov edx, dword [esp + 0x1c]
add esp, 0x10
lea ecx, [esp + 0x14]
push eax
push edi
push 3
push esi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop esi
pop edi
sete al
pop ebx
add esp, 0x108
ret
pop edi
xor eax, eax
pop ebx
add esp, 0x108
ret
Function at 0x4ef030
Capabilities:
Check os version

Disassembly:
sub esp, 0x94
lea eax, [esp]
mov dword [esp], 0x94
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov eax, dword [esp + 4]
cmp eax, 3
jne 0x4ef062
cmp dword [esp + 8], 0x33
je 0x4ef086
xor eax, eax
add esp, 0x94
ret
cmp eax, 4
jne 0x4ef078
mov eax, dword [esp + 8]
test eax, eax
je 0x4ef086
xor eax, eax
add esp, 0x94
ret
cmp eax, 5
je 0x4ef086
xor eax, eax
add esp, 0x94
ret
mov eax, 1
add esp, 0x94
ret
Function at 0x4f0180
Capabilities:
Get graphical window text
Set registry value

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x118
test eax, eax
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push esi
push edi
mov edi, dword [esp + 0x12c]
je 0x4f0229
push 0
push 0
push 0x147
push edi
call ebp
push 0
push 0
push 0x146
push edi
mov esi, eax
call ebp
mov ebx, eax
dec ebx
test esi, esi
jle 0x4f01d4
lea eax, [esp + 0x24]
push eax
push esi
push 0x148
push edi
call ebp
jmp 0x4f01e5
lea ecx, [esp + 0x24]
push 0x104
push ecx
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov al, byte [esp + 0x24]
test al, al
je 0x4f0229
cmp esi, ebx
je 0x4f0229
lea edx, [esp + 0x24]
push edx
push 0xffffffffffffffff
push 0x158
push edi
call ebp
test eax, eax
jl 0x4f020f
push 0
push eax
push 0x144
push edi
call ebp
lea eax, [esp + 0x24]
push eax
push 0
push 0x14a
push edi
call ebp
push 0
push eax
push 0x14e
push edi
call ebp
push 0
push 0
push 0x146
push edi
call ebp
mov ecx, dword [esp + 0x134]
mov dword [esp + 0x10], eax
test ecx, ecx
je 0x4f024e
cmp eax, ecx
jle 0x4f024e
mov dword [esp + 0x10], ecx
mov eax, ecx
mov ebx, 1
xor esi, esi
test eax, eax
mov dword [esp + 0x14], ebx
jle 0x4f0294
push 0
push esi
push 0x149
push edi
call ebp
mov ecx, dword [esp + 0x138]
inc eax
test ecx, ecx
je 0x4f027b
lea edx, [eax + ebx]
cmp edx, ecx
jg 0x4f028c
add ebx, eax
mov eax, dword [esp + 0x10]
inc esi
cmp esi, eax
jl 0x4f025d
mov dword [esp + 0x14], ebx
jmp 0x4f0294
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
push ebx
call sub.MFC42.DLL_operatornew
mov dword [esp + 0x20], eax
mov esi, eax
mov eax, dword [esp + 0x14]
add esp, 4
xor ebx, ebx
test eax, eax
jle 0x4f02cb
push esi
push ebx
push 0x148
push edi
call ebp
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esi + eax + 1]
mov eax, dword [esp + 0x10]
inc ebx
cmp ebx, eax
jl 0x4f02ad
mov edx, dword [esp + 0x13c]
lea eax, [esp + 0x20]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0x20006
push 0
push 0x5688a4
push 0
push edx
push SysReAllocString
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x4f030e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x118
ret 0x18
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x140]
mov edx, dword [esp + 0x18]
push eax
push edi
push 3
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov esi, eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
call sub.MFC42.DLL_operatordelete
add esp, 4
xor eax, eax
test esi, esi
pop edi
pop esi
pop ebp
pop ebx
sete al
add esp, 0x118
ret 0x18
Function at 0x4f0360
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x52d530
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebp
push esi
push edi
lea ecx, [esp + 0x10]
call fcn.004fdecc
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call fcn.004fdecc
mov edi, dword [esp + 0x2c]
push 0x78
mov ecx, edi
mov byte [esp + 0x20], 1
call sub.MFC42.DLL_CString::Find_2
mov ebp, eax
mov eax, dword [edi]
lea edx, [esp + 0x2c]
mov esi, dword [eax - 8]
lea ecx, [ebp - 1]
push ecx
push edx
mov ecx, edi
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x20], 2
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
sub esi, ebp
lea eax, [esp + 0x2c]
sub esi, 2
mov ecx, edi
push esi
push eax
call sub.MFC42.DLL_CString::Right
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x20], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x2c]
mov byte [esp + 0x1c], 1
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.MSVCRT.dll_atoi]
push ecx
call esi
mov edx, dword [esp + 0x28]
mov dword [edx], eax
mov eax, dword [esp + 0x10]
push eax
call esi
mov ecx, dword [esp + 0x30]
add esp, 8
mov byte [esp + 0x1c], 0
mov dword [ecx], eax
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x14
ret 0xc
Function at 0x4f0d30
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebp, ebp
cmp edi, ebp
jne 0x4f0d4d
pop edi
pop esi
pop ebp
mov ax, 7
pop ebx
add esp, 0x10
ret
mov eax, dword [esp + 0x28]
push ebp
push 0x8000080
push 2
push ebp
push ebp
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4f0d7a
pop edi
pop esi
pop ebp
mov ax, 3
pop ebx
add esp, 0x10
ret
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebp
jne 0x4f0d9a
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov ax, 2
pop ebx
add esp, 0x10
ret
cmp dword [esi], 0x28
je 0x4f0db8
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor ax, ax
pop ebx
add esp, 0x10
ret
push esi
mov word [esp + 0x14], 0x4d42
call fcn.00471d00
mov edx, dword [esi]
mov di, ax
mov eax, dword [esi + 0x10]
and edi, 0xffff
add esp, 4
add edi, edx
cmp eax, 1
je 0x4f0e00
cmp eax, 2
je 0x4f0e00
xor eax, eax
mov ax, word [esi + 0xe]
imul eax, dword [esi + 4]
add eax, 0x1f
shr eax, 5
imul eax, dword [esi + 8]
shl eax, 2
add edi, eax
mov dword [esi + 0x14], eax
jmp 0x4f0e03
add edi, dword [esi + 0x14]
lea ecx, [edi + 0xe]
push esi
mov dword [esp + 0x16], ecx
mov word [esp + 0x1a], bp
mov word [esp + 0x1c], bp
call fcn.00471d00
mov edx, dword [esi]
add esp, 4
and eax, 0xffff
lea ecx, [esp + 0x28]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [eax + edx + 0xe]
push ecx
lea edx, [esp + 0x18]
push 0xe
push edx
push ebx
mov dword [esp + 0x2e], eax
call ebp
lea eax, [esp + 0x28]
push 0
push eax
push edi
push esi
push ebx
call ebp
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp + 0x28]
pop edi
neg eax
sbb eax, eax
pop esi
and al, 0xfd
pop ebp
add eax, 3
pop ebx
add esp, 0x10
ret

Function at 0x4f2fa0
Capabilities:
Get file version info

Disassembly:
sub esp, 8
lea eax, [esp]
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov esi, ecx
push eax
push ebx
mov dword [esi], 0
mov dword [esi + 4], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov edi, eax
test edi, edi
jne 0x4f2fd9
mov dword [esi], 3
pop edi
pop esi
pop ebx
add esp, 8
ret 4
push edi
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esi + 4], eax
push eax
push edi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
jne 0x4f3002
mov dword [esi], 4
pop edi
pop esi
pop ebx
add esp, 8
ret 4
mov eax, dword [esi + 4]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x18]
push ecx
push edx
push 0x550aa4
push eax
call sub.VERSION.dll_VerQueryValueA
test eax, eax
jne 0x4f302d
mov dword [esi], 5
pop edi
pop esi
pop ebx
add esp, 8
ret 4
lea edi, [esi + 8]
mov esi, dword [esp + 0x18]
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
add esp, 8
ret 4
Function at 0x4fb030
Capabilities:
Encode data using xor

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
mov eax, dword [esp + 0x18]
test ebx, ebx
jne 0x4fb045
mov eax, dword [esp + 0x1c]
xor edi, eax
mov ebp, 4
mov ecx, edi
shr ecx, 0x18
mov byte [esp + 0x10], cl
mov al, cl
mov edx, dword [esp + 0x10]
and al, 0x80
and edx, 0xff
neg al
sbb eax, eax
mov esi, edx
and eax, 0x14d
and esi, 0x7f
and eax, 0xff
and cl, 1
shl esi, 1
xor esi, eax
mov eax, edx
neg cl
sbb ecx, ecx
and ecx, 0xa6
shr eax, 1
xor ecx, eax
xor ecx, esi
mov eax, ecx
shl eax, 8
xor eax, esi
shl eax, 8
xor eax, ecx
xor eax, edi
shl eax, 8
xor eax, edx
dec ebp
mov edi, eax
jne 0x4fb04c
inc ebx
cmp ebx, 2
jl 0x4fb039
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret

Function at 0x4fb0c0
Capabilities:
Encode data using xor
Encrypt data using twofish

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
xor edi, edi
mov esi, 0x5696a0
mov dl, byte [edi + 0x55d2dc]
mov al, dl
mov cl, dl
and al, 2
mov bl, dl
neg al
sbb al, al
and cl, 1
and eax, 0xb4
mov byte [esp + 0xd], cl
neg cl
sbb cl, cl
and ecx, 0x5a
shr bl, 2
xor bl, cl
mov byte [esp + 0xe], cl
xor bl, al
mov cl, dl
xor bl, dl
shr cl, 1
mov byte [esp + 0x10], bl
mov bl, byte [esp + 0xd]
xor cl, dl
shr cl, 1
neg bl
sbb bl, bl
and ebx, 0xb4
xor cl, bl
mov bl, byte [esp + 0xe]
xor cl, bl
mov bl, byte [edi + 0x55d3dc]
xor cl, al
mov al, bl
and al, 2
xor cl, dl
neg al
sbb al, al
and eax, 0xb4
mov byte [esp + 0xd], al
mov al, bl
and al, 1
mov byte [esp + 0xe], al
neg al
sbb al, al
and eax, 0x5a
shr bl, 2
mov byte [esp + 0xf], al
xor bl, al
mov al, byte [esp + 0xd]
xor bl, al
mov al, byte [edi + 0x55d3dc]
xor bl, al
mov byte [esp + 0x13], al
mov byte [esp + 0x11], bl
mov bl, byte [esp + 0x13]
shr al, 1
xor al, bl
mov bl, byte [esp + 0xe]
shr al, 1
neg bl
sbb bl, bl
and ebx, 0xb4
xor al, bl
mov bl, byte [esp + 0xf]
xor al, bl
mov bl, byte [esp + 0xd]
xor al, bl
mov bl, byte [edi + 0x55d3dc]
xor al, bl
mov byte [esp + 0x14], bl
mov bl, byte [esp + 0x11]
mov byte [esp + 0x16], al
mov byte [esp + 0x15], bl
mov byte [esp + 0x17], al
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x14], cl
mov dword [esi - 0x400], ebx
mov bl, byte [esp + 0x10]
mov byte [esp + 0x15], cl
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], dl
mov ebx, dword [esp + 0x14]
mov byte [esp + 0x15], al
mov dword [esi], ebx
mov bl, byte [esp + 0x11]
mov byte [esp + 0x14], bl
mov bl, byte [edi + 0x55d3dc]
mov byte [esp + 0x16], bl
mov byte [esp + 0x17], al
mov eax, dword [esp + 0x14]
mov byte [esp + 0x15], dl
mov dword [esi + 0x400], eax
mov al, byte [esp + 0x10]
mov byte [esp + 0x14], al
mov byte [esp + 0x16], cl
mov byte [esp + 0x17], al
add esi, 4
mov ecx, dword [esp + 0x14]
inc edi
mov dword [esi + 0x7fc], ecx
cmp esi, 0x569aa0
jl 0x4fb0cd
pop edi
pop esi
mov dword [0x55d4dc], 0
pop ebx
add esp, 0xc
ret
Function at 0x4058f0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4481b0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x47a008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp + 0xc]
xor esi, esi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x48], esi
add eax, 1
je 0x405abf
sub esp, 0x18
mov dword [ebp - 0x14], 0
mov ecx, esp
mov dword [ebp - 0x50], esp
xorps xmm0, xmm0
xor eax, eax
movups xmmword [ebp - 0x2c], xmm0
push 0x24
movq qword [ebp - 0x1c], xmm0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
push str.364EEC90_8BB3_4834_BE8D_26E3E1C8C1AA
mov word [ecx], ax
call fcn.00404970
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408560
mov dword [ebp - 4], 1
cmp esi, dword [ebp + 0xc]
jne 0x4059cf
cmp dword [edi + 0x10], 0
je 0x4059cf
lea ecx, [ebp - 0x2c]
call fcn.00408770
test eax, eax
je 0x4059cf
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x44], 0
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x40], ecx
mov ecx, edi
jb 0x4059bd
mov ecx, dword [edi]
mov dword [ebp - 0x3c], ecx
lea ecx, [ebp - 0x44]
push ecx
push 1
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
lea ecx, [ebp - 0x2c]
call fcn.00408770
mov esi, eax
test esi, esi
je 0x405a34
push esi
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x405a34
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
test eax, eax
je 0x405a29
test eax, 0x20000000
je 0x405a29
push 1
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
lea eax, [ebp - 0x38]
mov dword [ebp - 0x38], 0
push eax
push 2
push 0x4a
push esi
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 0
call dword [sym.imp.USER32.dll_SendMessageW]
push esi
call dword [sym.imp.USER32.dll_SetForegroundWindow]
test eax, eax
jne 0x405a70
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax + 4]
test eax, eax
je 0x405a4c
push dword [ebp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x405ab0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408650
mov esi, dword [ebp - 0x48]
mov eax, dword [ebp + 0xc]
inc esi
inc eax
mov dword [ebp - 0x48], esi
cmp esi, eax
jb 0x405931
jmp 0x405abf
cmp dword [edi + 0x10], 0
je 0x405ab0
lea ecx, [ebp - 0x2c]
call fcn.00408770
test eax, eax
je 0x405ab0
cmp dword [edi + 0x14], 8
mov ecx, dword [edi + 0x10]
mov dword [ebp - 0x38], 0
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x34], ecx
jb 0x405a9e
mov edi, dword [edi]
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x30], edi
push ecx
push 1
push 0x4a
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00408650
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00430aa4
mov esp, ebp
pop ebp
ret 0xc