joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ad40
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c640
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x210
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x10], esp
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
mov ecx, 0x81
xor eax, eax
lea edi, [ebp - 0x21a]
mov word [ebp - 0x21c], si
rep stosd dword es:[edi], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 4], esi
stosw word es:[edi], ax
lea eax, [ebp - 0x14]
push eax
push ecx
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
cmp eax, esi
jne 0x40adb1
mov eax, dword [ebp - 0x14]
lea edx, [ebp - 0x21c]
push edx
push eax
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
mov dword [ebp + 8], eax
jmp 0x40adb4
mov dword [ebp + 8], esi
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x21c]
push ecx
push 0x412858
push edx
call sub.MFC42u.DLL_CString::Format
add esp, 0xc
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40af30
Capabilities:
Get session user name

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
push 0x416de8
mov ecx, ebp
mov edi, 1
call fcn.0040a0ca
push 0x208
mov dword [esp + 0x18], 0x104
call sub.MFC42u.DLL_operatornew
mov ebx, dword [sym.imp.ADVAPI32.dll_GetUserNameW]
add esp, 4
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
call ebx
test eax, eax
jne 0x40af94
push esi
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [esp + 0x18]
lea edx, [ecx + ecx]
push edx
call sub.MFC42u.DLL_operatornew
add esp, 8
mov esi, eax
lea eax, [esp + 0x14]
push eax
push esi
call ebx
mov edi, eax
push esi
mov ecx, ebp
call fcn.0040a0ca
push esi
call sub.MFC42u.DLL_operatordelete
add esp, 4
xor eax, eax
test edi, edi
pop edi
pop esi
pop ebp
pop ebx
setne al
ret 4
Function at 0x40afc0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x40c69b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b0
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x1c]
lea edx, [esp + 0x60]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x2c8]
mov word [esp + 0x4c], ax
mov dword [esp + 0xc], eax
push ecx
mov dword [esp + 0x14], eax
push edx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x2c8], 1
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x50], 1
mov dword [esp + 0x20], eax
call dword [sym.imp.MSVCRT.dll_wcscpy]
mov ecx, dword [esp + 0x2d0]
add esp, 8
lea eax, [esp + 0x60]
push 0x12c
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
lea edx, [esp + 0xc]
mov ecx, dword [esp + 0x2cc]
lea eax, [esp + 0x1c]
push edx
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea edx, [esp + 0x80]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0xffffffffffffffff
lea ecx, [esp + 0x2d0]
mov esi, eax
call sub.MFC42u.DLL_CString::ReleaseBuffer
test esi, esi
jne 0x40b0d4
lea ecx, [esp + 8]
call fcn.00409f2c
mov byte [esp + 0x2c0], 2
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
lea eax, [esp + 0x64]
push eax
lea ecx, [esp + 0x10]
push 0x415f84
push ecx
call sub.MFC42u.DLL_CString::Format
mov edx, dword [esp + 0x18]
push edx
call fcn.0040b440
add esp, 0x14
lea ecx, [esp + 8]
mov byte [esp + 0x2c0], 1
call sub.MFC42u.DLL_CString::CString
jmp 0x40b0e8
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
lea ecx, [esp + 0x2c8]
mov byte [esp + 0x2c0], 0
call sub.MFC42u.DLL_CString::CString
lea ecx, [esp + 0x2cc]
mov dword [esp + 0x2c0], 0xffffffff
call sub.MFC42u.DLL_CString::CString
mov ecx, dword [esp + 0x2b8]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x2bc
ret
Function at 0x40b130
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40c6b0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x60
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], esp
push eax
push ecx
xor ebx, ebx
push edi
push str.CreateProcessAsSpecialRight_____Begin___szSpecialExe:__s____szExePath:__s____szPara:__s_
mov byte [ebp - 0x18], bl
mov dword [ebp - 4], ebx
call fcn.0040b440
add esp, 0x10
lea edx, [ebp + 8]
mov ecx, esi
mov dword [ebp + 8], ebx
push edi
push edx
mov dword [ebp - 0x14], ebx
call fcn.0040aaa0
cmp eax, ebx
je 0x40b28f
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x40b28f
lea ecx, [ebp - 0x14]
push ecx
push 1
push ebx
push ebx
push ebx
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateTokenEx]
mov edx, dword [ebp + 8]
cmp eax, ebx
push edx
je 0x40b260
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov ecx, 0x11
xor eax, eax
lea edi, [ebp - 0x6c]
lea edx, [ebp - 0x28]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x28], eax
mov cx, word [ebp + 0x14]
mov dword [ebp - 0x24], eax
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], eax
push edx
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x6c]
mov edx, dword [ebp - 0x14]
push eax
push ebx
push ebx
push 0x20
mov word [ebp - 0x3c], cx
mov ecx, dword [ebp + 0x10]
push ebx
push ebx
push ebx
push ecx
push edi
push edx
mov dword [ebp - 0x6c], 0x44
mov dword [ebp - 0x64], str.winsta0default
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
test eax, eax
jne 0x40b227
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsSpecialRight____CreateProcessAsUserW
call fcn.0040b440
add esp, 0xc
jmp 0x40b23f
mov eax, dword [ebp - 0x28]
mov byte [ebp - 0x18], 1
push eax
call esi
push edi
push str.CreateProcessAsSpecialRight____szExePath:__s____success
call fcn.0040b440
add esp, 8
mov ecx, dword [ebp - 0x14]
push ecx
call esi
mov eax, dword [ebp - 0x18]
and eax, 0xff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsSpecialRight____DuplicateTokenEx_error:_d
call fcn.0040b440
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.CreateProcessAsSpecialRight____FindToken_error:_d
call fcn.0040b440
mov ecx, dword [ebp - 0xc]
add esp, 8
xor eax, eax
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x40313c
Capabilities:
Get common file path
Set current directory

Disassembly:
push ebx
push esi
add esp, 0xfffffdf0
mov esi, edx
mov ebx, eax
test bl, bl
je 0x403178
movzx eax, bl
add eax, 0x41
dec eax
mov byte [esp], al
mov byte [esp + 1], 0x3a
mov byte [esp + 2], 0
lea eax, [esp + 0x109]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
push esp
call sub.kernel32.dll_SetCurrentDirectoryA
lea eax, [esp + 4]
push eax
push 0x105
call sub.kernel32.dll_GetCurrentDirectoryA
test bl, bl
je 0x403198
lea eax, [esp + 0x109]
push eax
call sub.kernel32.dll_SetCurrentDirectoryA
mov eax, esi
lea edx, [esp + 4]
mov ecx, 0x105
call fcn.004055c4
add esp, 0x210
pop esi
pop ebx
ret

Function at 0x40346c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405354
test esi, esi
jne 0x4034a2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405444
jmp 0x4034c0
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403370
mov edi, eax
test esi, esi
je 0x4034c0
cmp dword [ebx], 0
je 0x4034c0
dec esi
jmp 0x4034a9
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x4034f4
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x49f008], 0x8088405
inc edx
mov dword [ebx + 0x49f008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x404300
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x49f024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404398
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404378
xor eax, eax
push ebp
push 0x404371
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x4043b4
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x404378
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x49f024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x49f024], ax
mov esp, ebp
pop ebp
ret

Function at 0x4051b4
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4a504c], 0
je 0x405215
cmp word [0x4a5220], 0xd7b2
jne 0x4051dd
cmp dword [0x4a5228], 0
jbe 0x4051dd
mov eax, 0x4a521c
call dword [0x4a5238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
add ch, byte [eax + 0x3c]
push edx
inc eax
add byte [edx - 0xb], ch
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x49f030], 0
jne 0x405231
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x406b8c
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406dbc
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c0f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406dbc
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406c0f
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406dd8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406c98
xor eax, eax
push ebp
push 0x406c91
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004069c8
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406c76
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406df8
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406c76
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c98
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406db2
cmp byte [ebp - 0xd], 0
jne 0x406cdf
cmp byte [ebp - 0x12], 0
je 0x406db2
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406cf8
dec ebx
cmp byte [ebx], 0x2e
je 0x406d07
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406cf7
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406db2
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406d44
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406db2
cmp byte [ebp - 0xd], 0
je 0x406db2
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406db2
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409994
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x4099e6
test eax, edx
je 0x4099e9
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x4099a9
movzx eax, byte [eax]
sub eax, ecx
ret
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x4099cf
add ecx, 4
js 0x4099bf
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x4099cc
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4099f5
test edx, edx
jne 0x40999c
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004057e4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a631
test al, 0x10
je 0x40a635
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004057e4
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a655
test al, 0x10
jne 0x40a659
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40a800
Capabilities:
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004057e4
push eax
call sub.kernel32.dll_GetFileAttributesA
pop ebx
ret

Function at 0x40a814
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004057e4
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x40a836
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40d788
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d7c1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405444
jmp 0x40d7ca
mov eax, ebx
mov edx, esi
call fcn.004053a8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40d7d4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40d7f6
movzx eax, byte [esp]
jmp 0x40d7f8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40dfd4
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40de4c
mov eax, dword [0x4a471c]
cmp byte [eax], 0
je 0x40e050
mov eax, dword [0x4a4494]
call fcn.00403908
call fcn.00403090
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040adc8
push eax
lea eax, [esp + 0x50]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40e098
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e086
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4a4428]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4a77f8]
call fcn.00406970
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret

Function at 0x40e950
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40ea26
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004053ec
lea eax, [ebp - 4]
call fcn.0040583c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004057e4
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40ea10
mov eax, ebx
call fcn.00402f34
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40ea09
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004057e4
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e9f3
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40ea38
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e9f3
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea10
mov eax, dword [ebp - 0x10]
call fcn.00402f50
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40ea2d
lea eax, [ebp - 4]
call fcn.00405354
ret
Function at 0x422d38
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4a99ec
cmp dword [edi], 0
jne 0x422db4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4a99e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x49fb88
mov ecx, 2
call fcn.00403270
mov edx, 0x422d10
lea eax, [esi + 5]
call fcn.00422d30
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00422d30
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x422d89
mov dword [0x4a99e8], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x425518
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.004057e4
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x425570
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4a48c4]
mov dl, 1
mov eax, dword [0x425024]
call fcn.0040e1a0
call fcn.00404d7c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0042512c
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x4267a0
Capabilities:
Encode data using xor

Disassembly:
mov ecx, edx
mov edx, eax
xor eax, eax
rol ax, 5
xor al, byte [edx]
inc edx
dec ecx
jne 0x4267a6
ret
Function at 0x43c090
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x30], ecx
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea esi, [ebp - 4]
xor eax, eax
push ebp
push 0x43c264
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 8]
mov eax, dword [esi]
call fcn.0045c550
mov eax, dword [esi]
cmp byte [eax + 0x258], 0
je 0x43c249
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
sub eax, dword [edx + 0x268]
mov edx, dword [esi]
cmp eax, dword [edx + 0x2c0]
jb 0x43c0f6
mov eax, dword [esi]
add eax, 0x264
call fcn.00405354
call sub.kernel32.dll_GetTickCount_1
mov edx, dword [esi]
mov dword [edx + 0x268], eax
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
cmp al, 8
je 0x43c1d0
mov eax, dword [ebp - 8]
movzx eax, byte [eax]
mov edx, dword [0x4a4890]
movzx eax, al
bt dword [edx], eax
jae 0x43c18d
push 1
push 0x102
push 0x102
mov eax, dword [esi]
call fcn.0045d6b4
push eax
lea eax, [ebp - 0x24]
push eax
call sub.user32.dll_PeekMessageA
test eax, eax
je 0x43c214
mov eax, dword [esi]
push dword [eax + 0x264]
lea eax, [ebp - 0x28]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.0040553c
push dword [ebp - 0x28]
lea eax, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
call fcn.0040553c
push dword [ebp - 0x2c]
mov eax, dword [esi]
add eax, 0x264
mov edx, 3
call fcn.004056e8
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x43c214
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
movzx edx, byte [edx]
call fcn.0040553c
mov edx, dword [ebp - 0x30]
mov eax, dword [esi]
add eax, 0x264
call fcn.00405620
jmp 0x43c214
mov eax, dword [esi]
mov ebx, dword [eax + 0x264]
test ebx, ebx
je 0x43c1bd
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [esi]
add eax, 0x264
mov ecx, 1
mov edx, ebx
call fcn.0040588c
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.00405614
mov edx, eax
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
call fcn.0040eab8
cmp al, 2
je 0x43c1ac
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x43c201
sub eax, 4
mov eax, dword [eax]
mov edx, dword [esi]
add edx, 0x264
mov ecx, 1
xchg edx, eax
call fcn.0040588c
mov eax, dword [esi]
mov eax, dword [eax + 0x264]
test eax, eax
je 0x43c225
sub eax, 4
mov eax, dword [eax]
test eax, eax
jle 0x43c232
push ebp
call fcn.0043bfa8
pop ecx
jmp 0x43c249
xor edx, edx
mov eax, dword [esi]
mov ecx, dword [eax]
call dword [ecx + 0xe0]
mov eax, dword [esi]
mov si, 0xffeb
call fcn.00404704
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43c26b
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00405378
ret
Function at 0x445ab8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004057d4
xor eax, eax
push ebp
push 0x445bed
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x445bc0
xor edx, edx
push ebp
push 0x445bb9
push dword fs:[edx]
mov dword fs:[edx], esp
mov ebx, dword [ebp - 4]
mov eax, ebx
test eax, eax
je 0x445b05
sub eax, 4
mov eax, dword [eax]
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x445b8e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov esi, eax
xor eax, eax
push ebp
push 0x445b7d
push dword fs:[eax]
mov dword fs:[eax], esp
test ebx, ebx
je 0x445b44
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.004057e4
lea ecx, [ebx + 1]
mov edx, esi
call fcn.00403270
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445b84
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x4a4384]
mov dl, 1
mov eax, dword [0x408a74]
call fcn.0040e164
call fcn.00404d7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445bf4
lea eax, [ebp - 4]
call fcn.00405354
ret