joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47be88
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x47beb6
mov eax, ebx
call fcn.0047c93c
cmp dword [ebx + 0x40], 0
je 0x47beaf
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x47bf27
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x47bf19
cmp dword [ebx + 8], 0
je 0x47bed8
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x47beea
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x47bf19
cmp dword [ebx + 8], 0
je 0x47becb
cmp eax, 3
je 0x47befd
dec eax
jne 0x47becb
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x47becb
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x47becb
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x47bf45
cmp dword [ebx + 0x14], 0xcc
je 0x47bf45
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047bf50
pop ebx
ret
Function at 0x4010bc
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x4010ce
mov eax, dword [0x40d08b]
shl eax, 2
mov dword [0x40d08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.004034c0
pop edx
call fcn.00402858
call fcn.004034c4
push 0
call fcn.0040482c
pop ecx
push 0x40d034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x40d093], eax
push 0
jmp fcn.00409b7c

Function at 0x401294
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push 0x15e
lea eax, [ebp - 0x168]
push eax
push dword [0x40d0a4]
call sub.KERNEL32.DLL_GetModuleFileNameA
lea edx, [ebp - 8]
lea ecx, [ebp - 4]
push edx
push ecx
push 0
push 2
push 0
push 0
push 0
push 0x40d0d2
push 0x80000001
call sub.ADVAPI32.DLL_RegCreateKeyExA
test eax, eax
je 0x4012de
xor eax, eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x401363
cmp byte [ebp + 8], 0
je 0x401313
lea edx, [ebp - 0x168]
push edx
call fcn.0040391c
pop ecx
inc eax
push eax
lea ecx, [ebp - 0x168]
push ecx
push 1
push 0
push 0x40d100
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegSetValueExA
jmp 0x401320
push 0x40d10e
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegDeleteValueA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
lea eax, [ebp - 4]
push eax
push 2
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
je 0x401348
xor edx, edx
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x401363
push str.ServUTrayIcon
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegDeleteValueA
push dword [ebp - 4]
call sub.ADVAPI32.DLL_RegCloseKey
mov esp, ebp
pop ebp
ret

Function at 0x4013c0
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov al, byte [0x40d0b8]
test al, al
jne 0x401431
mov byte [0x40d0b8], 2
mov dword [esp], 0x94
push esp
call sub.KERNEL32.DLL_GetVersionExA
test eax, eax
je 0x40142c
cmp dword [esp + 0x10], 2
jne 0x401425
mov eax, dword [esp + 4]
cmp eax, 3
jne 0x401400
mov byte [0x40d0b8], 3
jmp 0x40142c
cmp eax, 4
jne 0x40140e
mov byte [0x40d0b8], 4
jmp 0x40142c
cmp eax, 5
jb 0x40141c
mov byte [0x40d0b8], 5
jmp 0x40142c
mov byte [0x40d0b8], 2
jmp 0x40142c
mov byte [0x40d0b8], 2
mov al, byte [0x40d0b8]
add esp, 0x94
ret

Function at 0x4014a8
Capabilities:
Create process on windows

Disassembly:
add esp, 0xffffffac
cmp byte [0x40fb8c], 0
je 0x4014f7
push esp
call sub.KERNEL32.DLL_GetStartupInfoA
xor eax, eax
xor edx, edx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], 1
mov word [esp + 0x30], 0xa
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40fb8c
push 0
call sub.KERNEL32.DLL_CreateProcessA
add esp, 0x54
ret
Function at 0x40150c
Capabilities:
Stop service

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe4
push 0x40fede
push 0
push 0x1f0003
call sub.KERNEL32.DLL_OpenEventA
mov ebx, eax
test ebx, ebx
je 0x401581
call fcn.00401450
test al, al
je 0x401575
push 2
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov esi, eax
test esi, esi
je 0x401581
push 0x20
push 0x40d15f
push esi
call sub.ADVAPI32.DLL_OpenServiceA
mov edi, eax
test edi, edi
je 0x40155f
push esp
push 1
push edi
call sub.ADVAPI32.DLL_ControlService
test esi, esi
je 0x401569
push esi
call sub.ADVAPI32.DLL_CloseServiceHandle
test edi, edi
je 0x40157b
push edi
call sub.ADVAPI32.DLL_CloseServiceHandle
jmp 0x40157b
push ebx
call sub.KERNEL32.DLL_SetEvent
push ebx
call sub.KERNEL32.DLL_CloseHandle
add esp, 0x1c
pop edi
pop esi
pop ebx
ret

Function at 0x401588
Capabilities:
Create process on windows
Start service

Disassembly:
push ebx
push esi
add esp, 0xffffffac
push 0x40fede
push 0
push 0x1f0003
call sub.KERNEL32.DLL_OpenEventA
test eax, eax
push eax
setne bl
and ebx, 1
call sub.KERNEL32.DLL_CloseHandle
test bl, bl
jne 0x40164c
call fcn.00401450
test al, al
je 0x401600
push 2
push 0
push 0
call sub.ADVAPI32.DLL_OpenSCManagerA
mov ebx, eax
test ebx, ebx
je 0x40164c
push 0xf01ff
push str.Serv_U
push ebx
call sub.ADVAPI32.DLL_OpenServiceA
mov esi, eax
push 0
push 0
push esi
call sub.ADVAPI32.DLL_StartServiceA
test ebx, ebx
je 0x4015f4
push ebx
call sub.ADVAPI32.DLL_CloseServiceHandle
test esi, esi
je 0x40164c
push esi
call sub.ADVAPI32.DLL_CloseServiceHandle
jmp 0x40164c
cmp byte [0x40fcea], 0
je 0x40164c
push esp
call sub.KERNEL32.DLL_GetStartupInfoA
xor eax, eax
xor edx, edx
mov dword [esp + 4], eax
mov dword [esp + 0xc], edx
mov dword [esp + 0x2c], 1
mov word [esp + 0x30], 0xa
lea ecx, [esp + 0x44]
push ecx
lea eax, [esp + 4]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x40fcea
call sub.KERNEL32.DLL_CreateProcessA
add esp, 0x54
pop esi
pop ebx
ret

Function at 0x4031b0
Capabilities:
Get memory capacity

Disassembly:
add esp, 0xffffffe0
mov dword [esp], 0x20
push esp
call sub.KERNEL32.DLL_GlobalMemoryStatus
mov eax, dword [esp + 0xc]
add esp, 0x20
ret
Function at 0x404ea8
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x104
call fcn.00402768
pop ecx
mov ebx, eax
test eax, eax
jne 0x404ecc
xor eax, eax
jmp 0x404f75
lea edx, [ebp - 4]
push edx
push ebx
push 0x104
mov ecx, dword [ebp + 0xc]
push ecx
call sub.KERNEL32.DLL_GetFullPathNameA
mov esi, eax
test esi, esi
je 0x404eed
cmp esi, 0x104
jb 0x404ef8
push ebx
call fcn.00402778
pop ecx
xor eax, eax
jmp 0x404f75
cmp byte [ebx + 1], 0x3a
jne 0x404f28
mov dl, byte [ebx]
lea ecx, [ebp - 8]
mov byte [ebp - 8], dl
mov byte [ebp - 7], 0x3a
mov byte [ebp - 6], 0x5c
mov byte [ebp - 5], 0
push ecx
call sub.KERNEL32.DLL_GetDriveTypeA
cmp eax, 2
jae 0x404f28
push ebx
call fcn.00402778
pop ecx
xor eax, eax
jmp 0x404f75
inc esi
test edi, edi
je 0x404f6b
cmp esi, dword [ebp + 0x10]
jbe 0x404f3d
push ebx
call fcn.00402778
pop ecx
xor eax, eax
jmp 0x404f75
push edi
mov esi, edi
xor eax, eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
xchg edi, esi
shr ecx, 2
mov eax, edi
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
push ebx
call fcn.00402778
pop ecx
mov eax, edi
jmp 0x404f75
push esi
push ebx
call fcn.00402788
add esp, 8
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x408ba8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call sub.KERNEL32.DLL_CreateFileA
mov ebx, eax
test eax, eax
je 0x408c0a
call fcn.00408b58
mov esi, eax
lea eax, [ebp - 4]
push 0
push eax
push esi
call fcn.0040391c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push edi
call fcn.0040391c
pop ecx
push eax
push edi
push ebx
call sub.KERNEL32.DLL_WriteFile
push ebx
call sub.KERNEL32.DLL_CloseHandle
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x408c68
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x40ef2c], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x408d42
cmp dword [0x40ef28], 0
jne 0x408d42
cmp dword [0x40f11c], 0
je 0x408cfc
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.00408a38
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408ce2
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.00408a38
add esp, 8
mov ebx, eax
test eax, eax
jne 0x408ce2
lea ebx, [ebp - 0x84]
jmp 0x408ce3
inc ebx
call fcn.00408c24
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x408d7d
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x40ef30
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.0040391c
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x40ef33
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x408d7d
cmp dword [0x40ef28], 0
je 0x408d5c
cmp dword [0x40ef28], 0xffffffff
je 0x408d7d
push esi
call dword [0x40ef28]
pop ecx
mov eax, dword [0x40ef2c]
test eax, eax
je 0x408d7d
cmp dword [0x40ef2c], 0xffffffff
je 0x408d7d
cmp byte [eax], 0
je 0x408d7d
push esi
push eax
call fcn.00408ba8
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4095c0
Capabilities:
Query environment variable

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
cmp dword [0x41081c], 0
jne 0x409641
cmp dword [0x41083c], 0
jne 0x4095f0
call sub.KERNEL32.DLL_GetEnvironmentStrings
mov dword [0x41083c], eax
test eax, eax
jne 0x4095f0
push str.GetEnvironmentStrings_failed
call fcn.00408d94
pop ecx
xor ebp, ebp
xor esi, esi
mov ebx, dword [0x41083c]
jmp 0x409604
lea eax, [edi + 1]
inc esi
add ebp, eax
add ebx, eax
push ebx
call fcn.0040391c
pop ecx
mov edi, eax
test eax, eax
jne 0x4095fc
lea edi, [ebp + 1]
push edi
call fcn.00402768
pop ecx
mov ebx, eax
mov dword [0x410820], ebx
test ebx, ebx
jne 0x40962e
xor eax, eax
jmp 0x409704
push edi
mov edx, dword [0x41083c]
push edx
push ebx
call fcn.00403750
add esp, 0xc
jmp 0x409661
xor esi, esi
mov ebx, dword [0x41081c]
jmp 0x40965b
push eax
call fcn.0040391c
pop ecx
test eax, eax
jne 0x409657
dec esi
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x40964b
lea ebx, [esi + 4]
push 4
mov dword [0x410824], ebx
inc ebx
push ebx
call fcn.004022cc
add esp, 8
test eax, eax
mov dword [esp], eax
jne 0x409684
xor eax, eax
jmp 0x409704
cmp dword [0x41081c], 0
jne 0x4096b5
xor esi, esi
mov ebx, dword [0x410820]
mov eax, dword [esp]
mov ebp, eax
jmp 0x4096a6
mov dword [ebp], ebx
add ebp, 4
inc esi
inc edi
add ebx, edi
push ebx
call fcn.0040391c
pop ecx
mov edi, eax
test eax, eax
jne 0x40969c
jmp 0x4096e6
xor esi, esi
mov ebx, dword [0x41081c]
mov eax, dword [esp]
mov edi, eax
jmp 0x4096e0
push eax
call fcn.0040391c
pop ecx
test eax, eax
je 0x4096d5
mov eax, dword [ebx]
mov dword [edi], eax
jmp 0x4096d9
dec esi
add edi, 0xfffffffc
add edi, 4
inc esi
add ebx, 4
mov eax, dword [ebx]
test eax, eax
jne 0x4096c4
mov eax, dword [0x41081c]
test eax, eax
je 0x4096f6
push eax
call fcn.00402778
pop ecx
mov edx, dword [esp]
mov eax, 1
mov dword [0x41081c], edx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x411960
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47578b
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.0046a0c9
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x4119e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.00467fe0
mov eax, dword [eax]
push 0x4911f0
push eax
call fcn.0045a8c4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0046a354
test bl, bl
je 0x4119e2
push 0x4911f0
lea ecx, [esp + 0xc]
call fcn.0046a6e4
push 0x494d6c
lea ecx, [esp + 0xc]
call fcn.0046a6e4
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 0x411a1e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0046a354
jmp 0x411ae9
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 0x411aa2
lea edx, [esp + 0x7c]
push 0x494d68
push edx
call fcn.0045a8c4
add esp, 8
test eax, eax
je 0x411aa2
lea eax, [esp + 0x7c]
push 0x494d64
push eax
call fcn.0045a8c4
add esp, 8
test eax, eax
je 0x411aa2
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 0x411a32
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.0046a354
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 0x4122e0
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 0x412342
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 0x412350
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47580b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x49bb10]
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 0x412488
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x4123b6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a354
xor eax, eax
jmp 0x4124ff
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0046a491
push esi
lea ecx, [esp + 0xc]
call fcn.0046a720
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 0x4124dd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.004122e0
test eax, eax
jne 0x4124dd
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.004122e0
test eax, eax
jne 0x4124dd
lea eax, [esp + 0x14]
push 0x494d80
push eax
call fcn.0045b9d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x4124bc
lea ecx, [esp + 0x14]
push 0x494d7c
push ecx
call fcn.0045b950
mov esi, eax
add esp, 8
test esi, esi
jne 0x4124bc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x4124bf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0046a441
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x4123ce
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0046a354
xor eax, eax
jmp 0x4124ff
mov byte [esi], 0
push 0x494d78
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.0046a354
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 0x4240a0
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 0x42410e
cmp si, 0x69
ja 0x42410e
add esi, 0xffd0
cmp si, 0x11
je 0x4240de
push 0x11
call edi
test ax, ax
jge 0x4240de
or esi, 0x2000
cmp si, 0x10
je 0x4240f3
push 0x10
call edi
test ax, ax
jge 0x4240f3
or esi, 0x4000
cmp si, 0x12
je 0x424108
push 0x12
call edi
test ax, ax
jge 0x424108
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x42411b
mov esi, 0xbd
jmp 0x4240cf
cmp si, 0x6e
jne 0x424128
mov esi, 0xbe
jmp 0x4240cf
cmp si, 0x6f
jne 0x4240c9
mov esi, 0xbf
jmp 0x4240cf

Function at 0x425850
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4ac280]
xor edx, edx
cmp eax, edx
jne 0x425876
xor eax, eax
mov byte [eax + 0x4ac180], al
inc eax
cmp eax, 0x100
jl 0x42585e
mov dword [0x4ac280], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4ac180
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x425907
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 0x4258da
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 0x4258a8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x425980
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 0x4259d3
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 0x4259ba
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
Function at 0x42c410
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x42c5a8
cmp ebp, ebx
jle 0x42c5a8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, reloc.OLEAUT32.dll_VariantInit
mov dword [esp + 0x10], edi
jns 0x42c46e
dec eax
or eax, 0xfffffff8
inc eax
je 0x42c475
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x42c484
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42c48b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0046a095
add esp, 4
cmp eax, ebx
je 0x42c4ac
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.0046a095
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x42c59e
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x42c585
mov al, byte [edx]
cmp al, 0xc0
jbe 0x42c571
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x42c566
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x42c574
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x42c574
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x42c510
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x42c501
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret
Function at 0x42f7d0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x476e98
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x42f809
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.00471a6c
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.00471ab8
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.0042f890
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.00471af5
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24