joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46bb64
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x46bd0f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x46bcf0
mov dl, 1
mov eax, dword [0x417068]
call fcn.004036c0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404540
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x46bcdf
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00459304
test al, al
je 0x46bcd2
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x46bd20
lea eax, [ebp - 0x254]
call fcn.00409900
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x46bcd2
xor eax, eax
push ebp
push 0x46bccb
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x46bd58
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x46bcb4
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047b0
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x46bcb4
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.004047b0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bcd2
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x46bbd5
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b6f0
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46bd16
lea eax, [ebp - 0x260]
call fcn.00404540
ret

Function at 0x46c6a0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x486bf4]
cmp byte [eax + 0xa5], 0
jne 0x46c711
cmp dword [0x486c0c], 0
jne 0x46c6d2
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x46c65c
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x486c0c], eax
cmp dword [0x486c08], 0
jne 0x46c6ed
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x486c08], eax
cmp dword [0x486c10], 0
jne 0x46c711
push esp
push 0
push 0
push 0x46c600
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x486c10], eax
pop edx
ret
Function at 0x46cda4
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x486bf4]
cmp dword [eax + 0x30], 0
je 0x46ce4e
cmp dword [ebx + 0x94], 0
jne 0x46ce48
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x46cd34
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x46ce48
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x46ce0e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x46ce48
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.00419300
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x46ce1d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x46d9ac
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x46d9e1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404630
jmp 0x46d9ee
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404594
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x46eb78
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x46ebb9
mov eax, esi
call fcn.004548cc
test al, al
je 0x46ebb9
mov eax, dword [ebx + 0x84]
call fcn.004545c8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x46ebb9
push 0
mov eax, dword [ebx + 0x84]
call fcn.004545c8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x474f50
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x474f88]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x474f66
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x474f75
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x474f84
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4784cc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebp, ecx
mov esi, edx
mov dword [esp], eax
mov eax, dword [esp]
call fcn.00404800
mov edx, eax
mov eax, ebp
call fcn.00404b8c
mov eax, dword [esp]
call fcn.00404800
mov edi, eax
test edi, edi
jle 0x478530
mov ebx, 1
mov eax, ebp
call fcn.00404a58
mov edx, dword [esp]
mov dl, byte [edx + ebx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
mov eax, dword [ebp]
movzx eax, byte [eax + ebx - 1]
add esi, eax
imul eax, esi, 0xce6d
add eax, 0x58bf
mov esi, eax
inc ebx
dec edi
jne 0x4784fc
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x478538
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov dword [esp], ecx
mov esi, edx
mov edi, eax
mov eax, edi
call fcn.00404800
mov edx, eax
mov eax, dword [esp]
call fcn.00404b8c
mov eax, edi
call fcn.00404800
mov ebp, eax
test ebp, ebp
jle 0x478597
mov ebx, 1
mov eax, dword [esp]
call fcn.00404a58
mov dl, byte [edi + ebx - 1]
mov ecx, esi
shr ecx, 8
xor dl, cl
mov byte [eax + ebx - 1], dl
xor eax, eax
mov al, byte [edi + ebx - 1]
add esi, eax
imul eax, esi, 0xce6d
add eax, 0x58bf
mov esi, eax
inc ebx
dec ebp
jne 0x478567
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x4834c4
Capabilities:
Create a process with modified i/o handles and window
Create process on windows
Get common file path
Switch active desktop

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe84
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x178], edx
mov dword [ebp - 0x17c], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 4], edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4836bd
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jne 0x48351f
lea eax, [ebp - 4]
mov edx, 0x4836d4
call fcn.004045d8
jmp 0x48353f
lea edx, [ebp - 0x168]
mov eax, ebx
call fcn.00408b4c
mov ecx, dword [ebp - 0x168]
lea eax, [ebp - 4]
mov edx, 0x4836e4
call fcn.0040484c
lea eax, [ebp - 0x154]
mov edx, 0x44
call fcn.0040739c
mov dword [ebp - 0x154], 0x44
mov dword [ebp - 0x128], 0x101
mov word [ebp - 0x124], 5
mov eax, dword [ebp - 4]
call fcn.00404a00
mov esi, eax
mov dword [ebp - 0x14c], esi
push 0x1ff
push 0xffffffffffffffff
push 1
push esi
call sub.user32.dll_OpenDesktopA
mov ebx, eax
test ebx, ebx
jne 0x483689
push 0
push 0x1ff
push 1
push 0
push 0
push esi
call sub.user32.dll_CreateDesktopA
mov ebx, eax
test ebx, ebx
jne 0x4835e4
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x170]
call fcn.0040ba84
mov ecx, dword [ebp - 0x170]
lea eax, [ebp - 0x16c]
mov edx, 0x4836f8
call fcn.0040484c
mov eax, dword [ebp - 0x16c]
call fcn.0043092c
jmp 0x48368f
lea eax, [ebp - 0x110]
mov dword [ebp - 8], eax
push 0x104
lea eax, [ebp - 0x110]
push eax
call sub.kernel32.dll_GetWindowsDirectoryA
lea edx, [ebp - 0xc]
mov ecx, eax
mov eax, dword [ebp - 8]
xchg edx, eax
call fcn.00404630
lea eax, [ebp - 0x164]
push eax
lea eax, [ebp - 0x154]
push eax
push 0
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
push 0
lea eax, [ebp - 0x174]
mov ecx, 0x483710
mov edx, dword [ebp - 0xc]
call fcn.0040484c
mov eax, dword [ebp - 0x174]
call fcn.00404a00
push eax
call sub.kernel32.dll_CreateProcessA
test eax, eax
jne 0x483689
call sub.kernel32.dll_GetLastError
lea edx, [ebp - 0x17c]
call fcn.0040ba84
mov ecx, dword [ebp - 0x17c]
lea eax, [ebp - 0x178]
mov edx, 0x483728
call fcn.0040484c
mov eax, dword [ebp - 0x178]
call fcn.0043092c
push ebx
call sub.user32.dll_CloseDesktop
jmp 0x48368f
push ebx
call sub.user32.dll_SwitchDesktop
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4836c4
lea eax, [ebp - 0x17c]
mov edx, 6
call fcn.00404564
lea eax, [ebp - 0xc]
call fcn.00404540
lea eax, [ebp - 4]
call fcn.00404540
ret
Function at 0x9e7d51
Capabilities:
Resolve function by parsing pe exports

Disassembly:
jmp 0x9ffd2b
sub esp, 0x24
mov eax, dword [0xa62154]
xor eax, esp
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x2c]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
xor ebx, ebx
mov dword [esp + 0xc], eax
push edi
mov eax, dword [esi + 0x3c]
mov ebp, dword [eax + esi + 0x78]
add ebp, esi
mov edi, dword [ebp + 0x20]
mov eax, dword [ebp + 0x18]
add edi, esi
mov dword [esp + 0x14], eax
test eax, eax
je 0x9ffd99
mov eax, dword [edi]
lea ecx, [esp + 0x18]
add eax, esi
push eax
call fcn.009e84d6
push dword [esp + 0x10]
lea eax, [esp + 0x1c]
push eax
call fcn.009ea5fb
pop ecx
pop ecx
test al, al
jne 0x9ffdb0
lea ecx, [esp + 0x18]
add edi, 4
call fcn.009ea57e
inc ebx
cmp ebx, dword [esp + 0x14]
jb 0x9ffd64
xor esi, esi
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.009e99ad
add esp, 0x24
ret
mov eax, dword [ebp + 0x24]
lea eax, [eax + ebx*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebp + 0x1c]
lea eax, [eax + ecx*4]
mov esi, dword [eax + esi]
lea ecx, [esp + 0x18]
call fcn.009ea57e
jmp 0x9ffd9b

Function at 0x9ea7b3
Capabilities:
Encode data using xor

Disassembly:
jmp 0xa007aa
push esi
xor esi, esi
cmp dword [esp + 0xc], esi
jbe 0xa0089e
push ebx
push ebp
push edi
mov edi, dword [esp + 0x14]
mov ebp, 0xa654f8
mov bl, byte [esi + edi]
push 0xa475c8
push ebp
call fcn.009e9660
xor edx, edx
mov eax, esi
div dword [esp + 0x24]
pop ecx
pop ecx
push 0x9a1f3c
push 0xa475d4
mov bh, byte [edx + section..euro]
push 0xa655e0
xor bh, bl
call fcn.009e9660
pop ecx
pop ecx
mov ecx, eax
call fcn.009ec70c
mov bl, byte [esi + edi]
push 0x9a1f3c
push 0xa475e4
push ebp
call fcn.009e9660
pop ecx
pop ecx
mov ecx, eax
call fcn.009ec70c
add byte [esi + edi], bh
push 0x9a1f3c
push 0xa475f8
push ebp
call fcn.009e9660
pop ecx
pop ecx
mov ecx, eax
call fcn.009ec70c
dec byte [esi + edi]
push 0xa47618
push ebp
call fcn.009e9660
add byte [esi + edi], 0xfe
push 0xa47624
push ebp
call fcn.009e9660
sub byte [esi + edi], bl
push 0xa47638
push ebp
call fcn.009e9660
inc byte [esi + edi]
push 0xa47648
push ebp
call fcn.009e9660
inc byte [esi + edi]
push 0xa47654
push ebp
call fcn.009e9660
inc byte [esi + edi]
push 0xa47660
push ebp
call fcn.009e9660
add esp, 0x30
inc esi
cmp esi, dword [esp + 0x18]
jb 0xa007c3
pop edi
pop ebp
pop ebx
pop esi
ret

Function at 0x9ecb1c
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
jmp 0x9ffdf6
push esi
push edi
mov edi, dword fs:[0x30]
mov edi, dword [edi + 0xc]
mov esi, dword [edi + 0xc]
mov eax, dword [esi]
mov eax, dword [eax]
mov eax, dword [eax + 0x18]
mov dword [0xa96198], eax
pop edi
pop esi
ret
Function at 0x40153f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp - 0x134]
sub esp, 0x154
mov dword [ebp - 0x134], 0
mov dword [esp], eax
mov dword [ebp - 0x130], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x118], 6
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x120], 0
call dword [sym.imp.USER32.dll_RegisterClassA]
push ecx
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push ebx
lea ebx, [ebp - 0x10c]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
push eax
push eax
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push eax
push eax
mov dword [esp], ebx
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x80000000
call dword [sym.imp.KERNEL32.dll_CreateFileA]
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, dword [ebp - 4]
leave
sub eax, 3
ret

Function at 0x40162d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0xa4
mov dword [ebp - 0x88], 0
call fcn.0040153f
test eax, eax
jne 0x4016c7
lea eax, [ebp - 0x8c]
mov dword [esp + 8], 0x40
mov dword [esp + 0xc], eax
mov eax, 0x40215e
sub eax, 0x4016fc
mov dword [esp], 0x4016fc
mov dword [esp + 4], eax
mov dword [ebp - 0x8c], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
cmp dword [ebp - 0x8c], 0
je 0x4016c7
lea ebx, [ebp - 0x88]
mov dword [esp], 0
call fcn.00401442
mov dword [esp + 4], ebx
mov dword [esp], 0
call fcn.004014c9
mov dword [esp + 8], ebx
mov dword [esp + 4], 0x1b600
mov dword [esp], 0x40300c
call fcn.00401e61
xor eax, eax
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40189d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov edx, dword [0x403050]
mov ebx, eax
add edx, eax
mov eax, 0x403054
call fcn.004017e0
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x40277c
push edx
sub edi, fcn.00401f26
push edi
xor eax, eax
push fcn.00401f26
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401907
mov eax, fcn.00401f26
mov ebx, esi
mov edx, edi
call fcn.004017e0
mov edx, 0x1c000
mov eax, 0x403054
mov ebx, esi
call fcn.004010f2
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401dfd
Capabilities:
Check if file exists
Check mutex on windows
Get common file path

Disassembly:
push ebx
push ecx
push edx
push esi
enter 0x460, 0
lea ebx, [ebp - 0x258]
push ebx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHFOLDER.DLL_SHGetFolderPathW]
push 0x104
lea ebx, [ebp - 0x460]
push ebx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
push 0
push 0
push 0
lea ebx, [ebp - 0x460]
mov byte [ebp - 0x10], 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexA]
push ebx
mov byte [ebp - 8], 0
call dword [sym.imp.SHLWAPI.DLL_PathFileExistsW]
push 0
push 0
push 3
push 0
push 0
push 0x80000000
lea ebx, [ebp - 0x258]
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push 0
push 0
push 0
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetFileTime]
push ebx
lea ebx, [ebp - 8]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
push ebx
lea ebx, [ebp - 0x10]
push ebx
lea ebx, [ebp - 0x50]
call dword [sym.imp.KERNEL32.DLL_lstrcpyA]
push ebx
push ebx
push ebx
sub esi, 5
mov byte [ebp - 0x50], 0
call dword [sym.imp.SHLWAPI.DLL_PathCombineA]
mov eax, esi
jmp 0x401666

Function at 0x401ae0
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x40406c], eax
push str.Riched32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.mifedount
push str.Deltapo
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x401b33
xor eax, eax
jmp 0x401b4e
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x401f59
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x4060fe], ebp
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4061c5], eax
xor eax, eax
push eax
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x406159], eax
mov dword [0x4060f6], eax
mov dword [0x406145], 0x30
mov dword [0x406149], 2
xor eax, eax
mov dword [0x40614d], 0x4040b4
mov dword [0x406151], eax
mov dword [0x406155], eax
mov eax, str.clater
mov dword [0x406165], 0xe
mov dword [0x40616d], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x406161], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x40615d], eax
mov dword [0x406171], eax
push 0x406145
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4060f6]
push 0
push 0
push 0x1ea
push 0x208
push 0xfffff60a
push 0xfffff6d2
push 0xcf0000
push str.listing
push str.clater
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x4061b9], eax
push 5
push eax
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x4061b9]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x406175]
jmp 0x40205b
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x40204d
mov eax, dword [0x40617d]
call fcn.0040362d
ret
Function at 0x40397a
Capabilities:
Encrypt data using rc4 prga

Disassembly:
lea edx, [0x4061dd]
mov ecx, edx
mov eax, dword [edx]
inc ecx
inc ecx
inc ecx
inc ecx
mov edi, dword [ecx]
mov ecx, eax
mov eax, dword [edi]
add edi, 4
mov esi, edi
mov ebx, esi
add edi, eax
mov edx, edi
dec edx
sub ecx, eax
dec ecx
dec ecx
dec ecx
dec ecx
lea eax, [0x4061dd]
mov dword [eax], ecx
inc eax
inc eax
inc eax
inc eax
mov dword [eax], edi
push ecx
mov ch, byte [edi]
mov al, byte [0x40612b]
add al, byte [esi]
xor al, ch
mov byte [edi], al
mov eax, edx
cmp esi, eax
je 0x4039ca
inc esi
pop ecx
inc edi
dec ecx
jne 0x4039ae
jmp 0x4039ce
mov esi, ebx
jmp 0x4039c3
mov edi, esi
push 0x39
push 0x4061dd
push 0x111
push dword [0x4061b9]
call dword [sym.imp.user32.dll_SendMessageA]
mov ecx, dword [0x4061dd]
mov edi, dword [0x4061e1]
mov esi, dword [0x4061d1]
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x4039fa
mov esi, dword [0x406126]
mov ecx, dword [0x406122]
push ecx
add ecx, esi
mov dword [0x40619d], ecx
pop ecx
mov eax, dword [esi]
inc esi
inc esi
nop
inc esi
inc esi
mov edi, dword [0x4061d1]
mov ebx, esi
add ebx, eax
mov dword [0x406199], ebx
mov edx, esi
add esi, eax
mov ecx, 0
movzx eax, byte [edx]
inc eax
cmp edx, ebx
jae 0x403aa1
cmp eax, ecx
jae 0x403a46
ret
sub eax, ecx
mov ecx, eax
test ecx, ecx
je 0x403a57
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x403a4e
inc edx
mov al, byte [edx]
inc edx
movzx ecx, byte [edx]
test ecx, ecx
je 0x403a6a
push ecx
mov byte [edi], al
inc edi
dec ecx
jne 0x403a63
pop ecx
inc edx
movzx eax, byte [edx]
inc cl
cmp cl, 0
jne 0x403a8b
inc al
cmp al, 0
jne 0x403a83
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x403a87
mov al, 0
dec al
dec cl
jmp 0x403a9d
dec cl
inc al
cmp al, 0
jne 0x403a9b
inc edx
movzx eax, word [edx]
inc edx
inc edx
jmp 0x403a9d
dec al
jmp 0x403a3d
mov ecx, dword [0x40619d]
sub ecx, esi
test ecx, ecx
je 0x403ab6
mov al, byte [esi]
mov byte [edi], al
inc esi
inc edi
dec ecx
jne 0x403aad
mov edi, dword [0x4061d1]
mov dword [0x4061d1], edi
ret
Function at 0x407ba0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x46c30b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.00460b6b
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x407c22
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0045e8ed
mov eax, dword [eax]
push 0x4841d0
push eax
call fcn.00450ce4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00460df6
test bl, bl
je 0x407c22
push 0x4841d0
lea ecx, [esp + 0xc]
call fcn.00461186
push 0x487d2c
lea ecx, [esp + 0xc]
call fcn.00461186
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x407c5e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00460df6
jmp 0x407d29
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x407ce2
lea edx, [esp + 0x7c]
push 0x487d28
push edx
call fcn.00450ce4
add esp, 8
test eax, eax
je 0x407ce2
lea eax, [esp + 0x7c]
push 0x487d24
push eax
call fcn.00450ce4
add esp, 8
test eax, eax
je 0x407ce2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x407c72
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.00460df6
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x408520
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x408582
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc