joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401478
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push ebx
push esi
push edi
push str.RC_BINARYTYPE
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
mov ebx, eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
xor esi, esi
mov dword [ebp + 8], eax
push esi
push 0x80
push 2
push esi
push esi
push 0x40000000
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
lea eax, [ebp + 0xc]
push esi
push eax
push dword [ebp + 8]
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4014eb
Capabilities:
Check if file exists
Create process on windows
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
push ebx
push esi
push edi
push str.SelfClear.dll
push 0xdd
push dword [ebp + 8]
call fcn.00401478
add esp, 0xc
mov ebx, 0x30c
lea eax, [ebp - 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
mov edi, str._rundll32.exe
lea eax, [ebp - 0x464]
push edi
push eax
call esi
lea eax, [ebp - 0x464]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40155e
lea eax, [ebp - 0x464]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea eax, [ebp - 0x464]
push edi
push eax
call esi
lea eax, [ebp - 0x464]
push str._SelfClear.dll__MagicDel_16
push eax
call esi
push 0x40
xor ebx, ebx
pop ecx
xor eax, eax
lea edi, [ebp - 0x157]
mov byte [ebp - 0x158], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x158]
push 0x104
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x464]
push eax
call esi
push 0x44
lea eax, [ebp - 0x54]
push ebx
push eax
call fcn.00409ae0
add esp, 0xc
lea eax, [ebp - 0x10]
mov dword [ebp - 0x28], 0x80
push eax
lea eax, [ebp - 0x54]
push eax
push ebx
push ebx
push 0x20
push ebx
push ebx
lea eax, [ebp - 0x464]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40194b
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov ecx, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0xa], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 6], eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
mov word [ebp - 0x10], 0x10
push eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
leave
ret
Function at 0x401fcc
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea eax, [ebp - 0x48]
push 0x40
push eax
xor edi, edi
push 1
push edi
call dword [sym.imp.USER32.dll_LoadStringA]
push 0xfffffffffffffff5
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebx, eax
lea eax, [ebp - 8]
push edi
push eax
lea eax, [ebp - 0x48]
push esi
mov dword [ebp - 8], esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
push ebx
call esi
push edi
lea eax, [ebp - 4]
push edi
push eax
push edi
mov dword [ebp - 4], edi
push dword [ebp + 0xc]
push edi
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
cmp dword [ebp - 4], edi
mov dword [ebp - 8], eax
je 0x402057
cmp eax, edi
je 0x402057
lea ecx, [ebp - 8]
push edi
push ecx
push eax
push dword [ebp - 4]
push ebx
call esi
push 0x40
push str.CCTV_Player_Installer_V1.0
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
jmp 0x402094
push dword [ebp + 0xc]
lea eax, [ebp - 0x48]
push str.RegDll_Error_0x_x
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x48]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x48]
push 0x10
push str.CCTV_Player_Installer_V1.0
push eax
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_MessageBoxA]
lea eax, [ebp - 8]
push edi
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push ebx
call esi
pop edi
pop esi
pop ebx
leave
ret

Function at 0x402099
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
xor ebx, ebx
cmp byte [0x419458], bl
je 0x402108
cmp dword [0x41944c], ebx
jne 0x402108
push edi
push 0xe
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
mov byte [0x419660], bl
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x3c], 0x3c
push eax
mov dword [ebp - 0x38], 0x40
mov dword [ebp - 0x34], ebx
mov dword [ebp - 0x30], str.open
mov dword [ebp - 0x2c], str.iexplore.exe
mov dword [ebp - 0x28], 0x419458
mov dword [ebp - 0x24], 0x419664
mov dword [ebp - 0x20], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
mov byte [0x419458], bl
pop edi
pop ebx
leave
ret
Function at 0x403cad
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4124d3
call fcn.0040a328
sub esp, 0x128
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x18], esi
mov al, byte [ebp + 0xb]
push esi
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 1
mov byte [ebp - 0x28], al
call fcn.00403c4f
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ieframe.dll
mov byte [ebp - 4], 2
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [ebp - 0x2c], eax
je 0x403d65
push str.IEGetWriteableFolderPath
push eax
call edi
cmp eax, esi
je 0x403d5c
lea ecx, [ebp - 0x14]
push ecx
push 0x413238
call eax
cmp eax, esi
jl 0x403d5c
cmp dword [ebp - 0x14], esi
je 0x403d5c
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
call fcn.00404034
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x403d3b
call fcn.004040e5
mov dword [ebp - 0x10], eax
jmp 0x403d3e
mov dword [ebp - 0x10], esi
push dword [ebp - 0x10]
call fcn.00409c50
pop ecx
push eax
lea ecx, [ebp - 0x28]
push dword [ebp - 0x10]
call fcn.004041fd
push dword [ebp - 0x14]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
cmp dword [ebp - 0x20], esi
jne 0x403e0a
call fcn.00403f64
test eax, eax
je 0x403dd7
push str.shell32.dll
call ebx
cmp eax, esi
mov dword [ebp - 0x10], esi
je 0x403d9e
push str.SHGetKnownFolderPath
push eax
call edi
cmp eax, esi
je 0x403d9e
lea ecx, [ebp - 0x10]
push ecx
push esi
push esi
push 0x413248
call eax
push 0x104
call fcn.00409ad0
pop ecx
mov edi, eax
push esi
push esi
push 0x3c
push edi
push 0xffffffffffffffff
push dword [ebp - 0x10]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push edi
call fcn.00409c50
pop ecx
push eax
push edi
lea ecx, [ebp - 0x28]
call fcn.004041fd
push edi
call fcn.00409671
pop ecx
jmp 0x403e0a
push 1
lea eax, [ebp - 0x134]
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
je 0x403e0a
lea eax, [ebp - 0x134]
push eax
call fcn.00409c50
pop ecx
push eax
lea eax, [ebp - 0x134]
push eax
lea ecx, [ebp - 0x28]
call fcn.004041fd
mov edi, dword [ebp + 8]
mov al, byte [ebp - 0x28]
push esi
mov ecx, edi
mov byte [edi], al
call fcn.00403c4f
push dword [0x413258]
lea eax, [ebp - 0x28]
mov ecx, edi
push esi
push eax
call fcn.0040412f
push 1
pop eax
mov dword [ebp - 0x30], eax
push eax
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], al
call fcn.00403c4f
mov ecx, dword [ebp - 0x18]
cmp ecx, esi
je 0x403e4a
call fcn.004040b8
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x403e5b
Capabilities:
Get common file path

Disassembly:
mov eax, 0x4124e8
call fcn.0040a328
sub esp, 0xc
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0x14], esi
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.ieframe.dll
mov dword [ebp - 4], esi
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, esi
mov dword [ebp - 0x18], eax
je 0x403ee8
push str.IEGetWriteableFolderPath
push eax
call ebx
cmp eax, esi
je 0x403edf
lea ecx, [ebp - 0x10]
push ecx
push 0x413238
call eax
test eax, eax
jl 0x403edf
cmp dword [ebp - 0x10], esi
je 0x403edf
push dword [ebp - 0x10]
lea ecx, [ebp - 0x14]
call fcn.00404034
mov ecx, dword [ebp - 0x14]
cmp ecx, esi
je 0x403ec9
call fcn.004040e5
jmp 0x403ecb
xor eax, eax
push eax
push dword [ebp + 0xc]
call fcn.004099e0
pop ecx
pop ecx
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push dword [ebp + 0xc]
call fcn.00409c50
test eax, eax
pop ecx
jne 0x403f49
call fcn.00403f64
test eax, eax
je 0x403f3b
push str.shell32.dll
call edi
cmp eax, esi
mov dword [ebp - 0x18], esi
je 0x403f25
push str.SHGetKnownFolderPath
push eax
call ebx
cmp eax, esi
je 0x403f25
lea ecx, [ebp - 0x18]
push ecx
push esi
push esi
push 0x413248
call eax
push esi
push esi
push 0x3c
push dword [ebp + 0xc]
push 0xffffffffffffffff
push dword [ebp - 0x18]
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x403f49
push 1
push 0x1a
push dword [ebp + 0xc]
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov ecx, dword [ebp - 0x14]
pop edi
cmp ecx, esi
pop esi
pop ebx
je 0x403f58
call fcn.004040b8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret

Function at 0x403f64
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push 0x24
lea eax, [ebp - 0x24]
push 0
push eax
call fcn.00409ae0
push 0x9c
lea eax, [ebp - 0xc0]
push 0
push eax
call fcn.00409ae0
add esp, 0x18
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x403fad
leave
ret
cmp dword [ebp - 0xbc], 6
sbb eax, eax
inc eax
leave
ret

Function at 0x403fb9
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc0
push edi
xor edi, edi
push 0x24
lea eax, [ebp - 0x24]
push edi
push eax
call fcn.00409ae0
push 0x9c
lea eax, [ebp - 0xc0]
push edi
push eax
call fcn.00409ae0
add esp, 0x18
lea eax, [ebp - 0xc0]
mov dword [ebp - 0xc0], 0x9c
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x404016
cmp dword [ebp - 0xbc], 6
jb 0x404014
cmp word [ebp - 0x24], 9
jne 0x404014
push 1
pop edi
mov eax, edi
pop edi
leave
ret
Function at 0x40aac7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40aae7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040d204
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x40ab08
test byte [esp + 8], 2
je 0x40ab08
mov dword [0x41b008], 0xd
mov dword [0x41b00c], 5
jmp 0x40aae3
xor eax, eax
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x435004]
jne 0x40100a
repz ret
jmp fcn.00401221

Function at 0x404dbc
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00402623
and dword [ebp - 4], 0
cmp dword [0x436bf0], 0
mov ebx, eax
jne 0x404e6d
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x404f1e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x404f1e
push eax
call fcn.004025b1
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x436bf0], eax
call esi
push eax
call fcn.004025b1
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x436bf4], eax
call esi
push eax
call fcn.004025b1
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x436bf8], eax
call esi
push eax
call fcn.004025b1
pop ecx
mov dword [0x436c00], eax
test eax, eax
je 0x404e6d
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004025b1
pop ecx
mov dword [0x436bfc], eax
mov eax, dword [0x436bfc]
cmp eax, ebx
je 0x404ec5
cmp dword [0x436c00], ebx
je 0x404ec5
push eax
call fcn.0040262c
push dword [0x436c00]
mov esi, eax
call fcn.0040262c
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x404ec5
test edi, edi
je 0x404ec5
call esi
test eax, eax
je 0x404ebc
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x404ebc
test byte [ebp - 0xc], 1
jne 0x404ec5
or dword [ebp + 0x10], 0x200000
jmp 0x404efe
mov eax, dword [0x436bf4]
cmp eax, ebx
je 0x404efe
push eax
call fcn.0040262c
pop ecx
test eax, eax
je 0x404efe
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x404efe
mov eax, dword [0x436bf8]
cmp eax, ebx
je 0x404efe
push eax
call fcn.0040262c
pop ecx
test eax, eax
je 0x404efe
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x436bf0]
call fcn.0040262c
pop ecx
test eax, eax
je 0x404f1e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x404f20
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x4317b0
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x804
mov eax, dword [0x435004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x50f2e4]
push ebx
push esi
mov esi, dword [0x50f12c]
mov ebx, eax
cmp eax, 0x5dd
jne 0x4317ea
push 0
lea eax, [ebp - 0x804]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov eax, dword [0x435c70]
call fcn.00431670
cmp dword [0x50f2e4], 0x2f
jne 0x431805
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push esi
call fcn.004316b0
add esp, 4
cmp dword [0x50f2e4], 0x568
pop esi
pop ebx
jne 0x43182e
push 0
call dword [sym.imp.KERNEL32.dll_HeapDestroy]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetNumaProcessorNode]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401000
mov esp, ebp
pop ebp
ret
Function at 0x4059d4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405a3a
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004040bc
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402b38
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405a24
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405a41
lea eax, [ebp - 0x10]
call fcn.00403e4c
ret

Function at 0x40aa68
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 0x40aaa1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00403f3c
jmp 0x40aaaa
mov eax, ebx
mov edx, esi
call fcn.00403ea0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40aab4
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 0x40aad5
mov al, byte [esp]
jmp 0x40aad7
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ba74
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x40bb4a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 4], 0xffffffff
lea eax, [ebp - 8]
mov edx, ebx
call fcn.00403ee4
lea eax, [ebp - 8]
call fcn.0040435c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
call fcn.0040430c
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40bb34
mov eax, ebx
call fcn.004026bc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40bb2d
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 - 8]
call fcn.0040430c
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40bb17
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40bb5c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40bb17
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb34
mov eax, dword [ebp - 0x10]
call fcn.004026dc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40bb51
lea eax, [ebp - 8]
call fcn.00403e4c
ret
Function at 0x40c054
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40c0b8
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004040bc
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00407e24
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40c0bf
lea eax, [ebp - 0xc]
call fcn.00403e4c
ret

Function at 0x41a1e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x46a884
cmp dword [edi], 0
jne 0x41a25c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x46a880]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4683ec
mov ecx, 2
call fcn.004028b8
mov edx, 0x41a1b8
lea eax, [esi + 5]
call fcn.0041a1d8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.0041a1d8
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 0x41a231
mov dword [0x46a880], 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 0x41b7d8
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 0x41b7de
ret

Function at 0x41dcb0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
lea eax, [ebp - 0x2c]
push eax
call sub.kernel32.dll_GetSystemInfo
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
dec ecx
js 0x41dd01
lea eax, [ebp - 0x2c]
cmp word [eax + 0x20], 3
je 0x41dce8
mov eax, dword [edx + ecx*4]
bswap eax
shr eax, 8
mov dword [edx + ecx*4], eax
dec ecx
jns 0x41dcd8
jmp 0x41dd01
push ebx
xor ebx, ebx
mov eax, dword [edx + ecx*4]
mov bh, al
mov bl, ah
shr eax, 0x10
shl ebx, 8
mov bl, al
mov dword [edx + ecx*4], ebx
dec ecx
jns 0x41dce9
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42d864
Capabilities:
Enumerate gui resources

Disassembly:
mov byte [eax + 0xc], 0
mov byte [eax + 0xd], 0
xor edx, edx
mov dword [eax + 4], edx
push eax
push 0x42d7b0
call sub.user32.dll_EnumWindows
ret

Function at 0x42d984
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x42da01
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.0042d3e4
call sub.kernel32.dll_GetTickCount
mov ebx, eax
push 0
call sub.kernel32.dll_Sleep
call sub.kernel32.dll_GetTickCount
sub eax, ebx
cmp eax, 0x3e8
jbe 0x42d9a9
lea ecx, [ebp - 4]
xor edx, edx
mov eax, esi
call fcn.0042cfe4
cmp dword [ebp - 4], 0
je 0x42d9eb
push 0
push 9
mov eax, dword [ebp - 4]
call fcn.0040430c
push eax
mov eax, dword [esi + 0x1c]
mov edx, dword [eax]
call dword [edx + 0xc]
push eax
call sub.user32.dll_WinHelpA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x42da08
lea eax, [ebp - 4]
call fcn.00403e4c
ret

Function at 0x4309cc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 9]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x46ab54], 0
je 0x430b1b
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x469934]
mov edx, dword [edx]
xor al, byte [edx + 0xb4]
je 0x430b1b
mov eax, dword [0x46ab58]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x46ab54]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x430aea
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x46ab54]
call fcn.004137b0
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x430ae2
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1a6], 0
je 0x430ae2
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x50]
test al, al
je 0x430ae2
mov eax, dword [ebp - 0x14]
call fcn.00439658
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x430ae2
push ebp
call fcn.00430988
pop ecx
test al, al
jne 0x430ae2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0xa0]
cmp eax, dword [ebp - 0x14]
jne 0x430a9e
mov eax, dword [ebp - 0x14]
call fcn.00438188
dec eax
jle 0x430ae2
mov byte [ebp - 1], 1
lea eax, [ebp - 9]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbd
call fcn.004032f8
cmp byte [ebp - 1], 0
je 0x430ae2
push dword [ebp - 5]
push dword [ebp - 9]
lea eax, [ebp - 0x28]
push eax
call sub.user32.dll_PtInRect
test eax, eax
je 0x430ae2
mov edx, dword [ebp - 0x14]
mov eax, dword [0x46ab58]
call fcn.00430154
inc edi
dec ebx
jne 0x430a31
mov eax, dword [0x46ab58]
cmp dword [eax + 8], 0
jle 0x430b02
mov eax, dword [0x46ab58]
call fcn.004301e4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x430b1b
push ebp
mov eax, dword [ebp - 0x18]
call fcn.004307f0
pop ecx
test al, al
jne 0x430b1b
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret