joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c6414
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4c64b6
cmp dword [ebx + 0x94], 0
jne 0x4c64b0
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4c6360
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4c64b0
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_GetWindowLongW
test al, 8
je 0x4c6476
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4c64b0
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.0043b06c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4c6485
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4c66d4
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4e7268]
cmp dword [eax + 0x170], 0
je 0x4c6839
test bl, bl
jne 0x4c6787
cmp dword [esi + 0x9c], 0
jne 0x4c677c
mov eax, esi
call fcn.004c9554
push eax
push 0x4c65e0
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4c674d
mov eax, dword [0x4e7268]
cmp byte [eax + 0xd3], 0
je 0x4c674d
mov eax, dword [esi + 0xd8]
call fcn.004081c4
mov edi, eax
cmp edi, 0
jl 0x4c674d
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c6736
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c677c
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043b06c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c675c
inc dword [esi + 0x9c]
jmp 0x4c6839
cmp dword [esi + 0x9c], 0
jle 0x4c6839
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4c6839
cmp dword [esi + 0x44], 0
je 0x4c67e4
mov eax, dword [0x4e7268]
cmp byte [eax + 0xd3], 0
je 0x4c67e4
mov eax, dword [esi + 0xd8]
call fcn.004081c4
mov edi, eax
cmp edi, 0
jl 0x4c67e4
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c67cd
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c6813
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.0043b06c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c67f3
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4b9a64]
call fcn.00408384
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4c747c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4c74e7
cmp byte [ebx + 0xd3], 0
jne 0x4c74e7
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00406a48
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4c74d4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c74f4
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406ca0
jmp 0x4c74f4
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406ca0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4c8cbc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c8d2a
mov eax, esi
call fcn.00478278
test al, al
je 0x4c8d2a
mov eax, dword [ebx + 0x84]
call fcn.00477ecc
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c8d2a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4c8d1e
push 0
mov eax, dword [ebx + 0x84]
call fcn.00477ecc
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0046ee48
jmp 0x4c8d2a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004c8af4
pop esi
pop ebx
ret
Function at 0x4cbe7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde8
push ebx
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4cbfba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
cmp dword [eax + 8], 0
jne 0x4cbf96
push 0
push 0
call sub.kernel32.dll_GetTempPathW
mov edx, eax
lea eax, [ebp - 4]
call fcn.004073bc
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4cbecb
sub ebx, 4
mov ebx, dword [ebx]
mov eax, dword [ebp - 4]
call fcn.00407258
push eax
push ebx
call sub.kernel32.dll_GetTempPathW
mov edx, eax
lea eax, [ebp - 4]
call fcn.004073bc
lea eax, [ebp - 4]
mov edx, 0x4cbfd4
call fcn.0040743c
mov dl, 1
mov eax, dword [ebp - 4]
call fcn.0041c324
test al, al
jne 0x4cbf07
mov eax, dword [ebp - 4]
call fcn.0041c6f0
lea eax, [ebp - 0x218]
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00407258
push eax
call sub.kernel32.dll_GetTempFileNameW
mov eax, dword [ebp - 8]
add eax, 8
lea edx, [ebp - 0x218]
mov ecx, 0x104
call fcn.004072e4
mov dl, 1
mov eax, dword [0x432170]
call fcn.0043ebec
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4cbf8f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov edx, dword [eax + 0xc]
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
call dword [ecx + 0x2c]
call fcn.00423d18
mov ecx, eax
mov eax, dword [ebp - 8]
mov edx, dword [eax + 8]
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax]
call dword [ebx + 0x80]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbf96
mov eax, dword [ebp - 0x10]
call fcn.00404e8c
ret
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 8]
mov edx, dword [edx + 8]
call fcn.00406ca0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cbfc1
lea eax, [ebp - 4]
call fcn.004068e0
ret

Function at 0x4cc01c
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4cc2b5
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 9], 0
xor ebx, ebx
jmp 0x4cc056
inc ebx
cmp ebx, 3
je 0x4cc29f
imul eax, ebx, 0x64
push eax
call sub.kernel32.dll_Sleep_2
mov eax, dword [0x4e1524]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x4cc043
xor eax, eax
push ebp
push 0x4cc0e7
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xd
call sub.user32.dll_GetClipboardData
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jne 0x4cc095
call fcn.004060d8
jmp 0x4cc29f
xor eax, eax
push ebp
push 0x4cc0cd
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalLock
mov edx, eax
lea eax, [ebp - 4]
call fcn.004072a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc0d4
mov eax, dword [ebp - 0x24]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc2bc
lea eax, [ebp - 4]
call fcn.004068e0
ret
Function at 0x4d715c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
mov esi, edx
mov ebx, eax
push 1
push 0
mov eax, esi
call fcn.00407258
push eax
mov eax, dword [0x4e13b0]
mov eax, dword [eax]
call fcn.00407258
push eax
push 0x4d7190
mov eax, ebx
call fcn.00477ecc
push eax
call sub.shell32.dll_ShellExecuteW
pop esi
pop ebx
ret
Function at 0x403140
Capabilities:
Get common file path

Disassembly:
mov eax, dword [0x412388]
sub esp, 0x100
test eax, eax
je 0x403174
mov cl, byte [esp + 0x104]
test cl, cl
jne 0x403183
push eax
call fcn.0040574f
add esp, 4
mov dword [0x412388], 0
add esp, 0x100
ret
mov al, byte [esp + 0x104]
test al, al
je 0x40321c
push ebx
push esi
push edi
lea eax, [esp + 0xc]
push 0xc8
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, 0x4101cc
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov al, byte [esp + 0x114]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
test al, al
mov edi, str.matrixcode_fs.log
jne 0x4031d9
mov edi, str.matrixcode.log
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0xc]
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0xc]
and ecx, 3
push 0x4101a4
rep movsb byte es:[edi], byte [esi]
push eax
call fcn.0040573c
add esp, 8
mov dword [0x412388], eax
pop edi
pop esi
pop ebx
add esp, 0x100
ret

Function at 0x403c10
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 0xc]
push 4
push eax
push 4
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
sete al
ret

Function at 0x403c40
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
lea eax, [esp]
mov dword [esp], 4
push eax
mov eax, dword [esp + 0xc]
push ecx
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
pop ecx
ret
Function at 0x404da9
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor esi, esi
cmp dword [0x4127e8], esi
push edi
mov edi, dword [sym.imp.USER32.dll_PostMessageA]
jne 0x404e01
cmp dword [0x4127ec], esi
jne 0x404e01
cmp ebx, 0x10
je 0x404f12
cmp ebx, 0x8000
je 0x404eef
cmp dword [0x4127f0], esi
jne 0x404e01
cmp ebx, 0x1c
ja 0x404e3f
je 0x404e3a
cmp ebx, 0x18
jne 0x404e01
cmp dword [ebp + 0x10], esi
je 0x404e01
push esi
call dword [sym.imp.USER32.dll_SetCursor]
cmp ebx, dword [0x412800]
jne 0x404e23
cmp ebx, esi
je 0x404e23
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
xor eax, eax
cmp dword [0x4127f8], esi
setne al
jmp 0x404e33
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_DefWindowProcA]
pop edi
pop esi
pop ebx
leave
ret 0x10
cmp dword [ebp + 0x10], esi
jmp 0x404e82
cmp ebx, 0x48
ja 0x404e5d
je 0x404e57
cmp ebx, 0x20
jne 0x404e01
push esi
call dword [sym.imp.USER32.dll_SetCursor]
push 1
pop eax
jmp 0x404e33
cmp dword [ebp + 0x10], 3
jmp 0x404e82
mov eax, ebx
sub eax, 0x100
je 0x404ee1
sub eax, 4
je 0x404ee1
sub eax, 0xfc
je 0x404e89
dec eax
je 0x404ee1
sub eax, 3
je 0x404ee1
sub eax, 3
je 0x404ee1
sub eax, 0x11
je 0x404ee1
jmp 0x404e01
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov ecx, dword [ebp - 8]
sub ecx, dword [0x412b98]
je 0x404ea4
cmp ecx, esi
jge 0x404ea4
neg ecx
mov eax, dword [ebp - 4]
sub eax, dword [0x412b9c]
je 0x404eb5
cmp eax, esi
jge 0x404eb5
neg eax
add ecx, eax
cmp ecx, dword [0x410fcc]
jbe 0x404e01
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
mov eax, dword [ebp - 8]
mov dword [0x412b98], eax
mov eax, dword [ebp - 4]
mov dword [0x412b9c], eax
jmp 0x404e01
push esi
push esi
push 0x10
push dword [ebp + 8]
call edi
jmp 0x404e01
cmp dword [0x412810], esi
je 0x404e01
mov eax, dword [0x4127f8]
cmp eax, esi
je 0x404e52
push dword [ebp + 8]
call eax
jmp 0x404e33
cmp dword [0x412810], esi
je 0x404e01
push dword [ebp + 8]
call fcn.0040538e
test eax, eax
jne 0x404e01
push 0x412b98
call dword [sym.imp.USER32.dll_GetCursorPos]
xor eax, eax
jmp 0x404e33
Function at 0x40538e
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 0x1c
push ebx
push ebp
xor ebp, ebp
push esi
cmp dword [0x4127f0], ebp
push edi
jne 0x40546a
cmp dword [0x4127ec], ebp
jne 0x40546a
cmp dword [0x4127f8], ebp
je 0x405459
call dword [sym.imp.KERNEL32.dll_GetTickCount]
cmp dword [0x412814], ebp
mov esi, eax
je 0x4053df
push esi
push dword [0x412818]
call fcn.00405476
cmp eax, dword [0x412814]
jb 0x405459
mov eax, dword [0x410fd0]
cmp eax, 0xffffffff
je 0x4053f7
push esi
push eax
call fcn.00405476
cmp eax, 0xc8
jb 0x405463
mov ebx, dword [esp + 0x30]
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov esi, 0x113
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
mov dword [0x4127f0], 1
call edi
push 3
push esi
push esi
lea eax, [esp + 0x1c]
push ebx
push eax
call edi
push ebp
push ebp
push 0x8000
push ebx
call dword [sym.imp.USER32.dll_SendMessageA]
cmp eax, ebp
mov dword [0x4127ec], eax
mov dword [0x4127f0], ebp
jne 0x40544c
push ebp
call dword [sym.imp.USER32.dll_SetCursor]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [0x410fd0], eax
jmp 0x405463
mov dword [0x4127ec], 1
mov eax, dword [0x4127ec]
jmp 0x40546c
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 4

Function at 0x405481
Capabilities:
Accept command line arguments
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov edi, dword [sym.imp.USER32.dll_CharNextA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x4054b4
push esi
call edi
mov esi, eax
mov al, byte [esi]
test al, al
je 0x4054ac
cmp al, 0x22
jne 0x40549d
cmp byte [esi], 0x22
jne 0x4054c2
inc esi
jmp 0x4054c2
cmp al, 0x20
jbe 0x4054c2
push esi
call edi
mov esi, eax
cmp byte [esi], 0x20
ja 0x4054b8
mov al, byte [esi]
test al, al
je 0x4054d3
cmp al, 0x20
ja 0x4054d3
push esi
call edi
mov esi, eax
jmp 0x4054c2
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
je 0x4054ed
movzx eax, word [ebp - 0x14]
jmp 0x4054f0
push 0xa
pop eax
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call fcn.00404bbc
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x40833b
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x411580
cmp edx, dword [eax]
je 0x40835d
add eax, 8
inc ecx
cmp eax, 0x411610
jl 0x40834e
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x411580]
jne 0x40848b
mov eax, dword [0x41282c]
cmp eax, 1
je 0x408465
test eax, eax
jne 0x40838e
cmp dword [0x410ff0], 1
je 0x408465
cmp edx, 0xfc
je 0x40848b
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4083c5
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00409bf0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00409120
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x408408
lea eax, [ebp - 0x1a4]
push eax
call fcn.00409120
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x40d640
push edi
call fcn.0040aeb0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00409bf0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00409c00
lea eax, [ebp - 0xa0]
push 0x40d620
push eax
call fcn.00409c00
push dword [esi + 0x411584]
lea eax, [ebp - 0xa0]
push eax
call fcn.00409c00
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040ae1b
add esp, 0x2c
pop edi
jmp 0x40848b
lea eax, [ebp + 8]
lea esi, [esi + 0x411584]
push 0
push eax
push dword [esi]
call fcn.00409120
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x40a2f0
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x49e58b
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.0049349c
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40a372
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049120d
mov eax, dword [eax]
push 0x685c90
push eax
call fcn.00482a04
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00493727
test bl, bl
je 0x40a372
push 0x685c90
lea ecx, [esp + 0xc]
call fcn.00493ab7
push 0x685c9c
lea ecx, [esp + 0xc]
call fcn.00493ab7
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 0x40a3ae
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00493727
jmp 0x40a479
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 0x40a432
lea edx, [esp + 0x7c]
push 0x685c98
push edx
call fcn.00482a04
add esp, 8
test eax, eax
je 0x40a432
lea eax, [esp + 0x7c]
push 0x685c94
push eax
call fcn.00482a04
add esp, 8
test eax, eax
je 0x40a432
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 0x40a3c2
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.00493727
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 0x40ac70
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 0x40acd2
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
Function at 0x40ace0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x49e60b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x69a3a8]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x40ae18
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40ad46
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00493727
xor eax, eax
jmp 0x40ae8f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00493864
push esi
lea ecx, [esp + 0xc]
call fcn.00493af3
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40ae6d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.0040ac70
test eax, eax
jne 0x40ae6d
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push closesocket
mov ecx, edi
call fcn.0040ac70
test eax, eax
jne 0x40ae6d
lea eax, [esp + 0x14]
push 0x685cac
push eax
call fcn.00483a80
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ae4c
lea ecx, [esp + 0x14]
push 0x685ca8
push ecx
call fcn.00483a00
mov esi, eax
add esp, 8
test esi, esi
jne 0x40ae4c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40ae4f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00493814
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40ad5e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00493727
xor eax, eax
jmp 0x40ae8f
mov byte [esi], 0
push 0x685ca4
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.00493727
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x41cce0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x41cd4e
cmp si, 0x69
ja 0x41cd4e
add esi, 0xffd0
cmp si, 0x11
je 0x41cd1e
push 0x11
call edi
test ax, ax
jge 0x41cd1e
or esi, 0x2000
cmp si, 0x10
je 0x41cd33
push 0x10
call edi
test ax, ax
jge 0x41cd33
or esi, 0x4000
cmp si, 0x12
je 0x41cd48
push 0x12
call edi
test ax, ax
jge 0x41cd48
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41cd5b
mov esi, 0xbd
jmp 0x41cd0f
cmp si, 0x6e
jne 0x41cd68
mov esi, 0xbe
jmp 0x41cd0f
cmp si, 0x6f
jne 0x41cd09
mov esi, 0xbf
jmp 0x41cd0f

Function at 0x41e750
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6aaba0]
xor edx, edx
cmp eax, edx
jne 0x41e776
xor eax, eax
mov byte [eax + 0x6aaaa0], al
inc eax
cmp eax, 0x100
jl 0x41e75e
mov dword [0x6aaba0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6aaaa0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41e807
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x41e7da
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x41e7a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41e810
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x41e863
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x41e84a
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret