joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008460
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push str..Settings.ini
push 0
push str.AutoResize
push str.ScreenSettings
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
test eax, eax
je 0x100084b1
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
push eax
push ecx
mov dword [0x100d28c4], ecx
mov dword [0x100d28c8], eax
call fcn.10007980
add esp, 8
mov esp, ebp
pop ebp
ret
push 0x300
push 0x400
mov dword [0x100d28c4], 0x400
mov dword [0x100d28c8], 0x300
call fcn.10007980
add esp, 8
mov esp, ebp
pop ebp
ret
Function at 0x10008740
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x430
movups xmm0, xmmword [str.0123456789abcdef]
mov al, byte [0x10098d50]
push esi
push 0
push 0x8000000
push 3
push 0
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
movups xmmword [ebp - 0x20], xmm0
mov byte [ebp - 0x10], al
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10008858
push 0xf0000000
push 1
push 0
push 0
lea eax, [ebp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
test eax, eax
je 0x10008858
lea eax, [ebp - 4]
push eax
push 0
push 0
push 0x8003
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
jne 0x100087e1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
pop esi
mov esp, ebp
pop ebp
ret 8
push ebx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0xc]
push 0
push eax
push 0x400
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
je 0x1000883b
mov ebx, dword [sym.imp.ADVAPI32.dll_CryptHashData]
mov ecx, dword [ebp - 0xc]
test ecx, ecx
je 0x1000885f
push 0
push ecx
lea eax, [ebp - 0x430]
push eax
push dword [ebp - 4]
call ebx
push 0
test eax, eax
je 0x1000883d
lea eax, [ebp - 0xc]
push eax
push 0x400
lea eax, [ebp - 0x430]
push eax
push esi
call edi
test eax, eax
jne 0x10008808
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
test eax, eax
je 0x1000883b
push 0
lea eax, [ebp - 8]
mov dword [ebp - 8], 0x10
push eax
lea eax, [ebp - 0x30]
push eax
push 2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptGetHashParam]
test eax, eax
je 0x100088bc
mov ebx, dword [ebp - 8]
xor edi, edi
test ebx, ebx
je 0x100088b5
mov edx, dword [ebp + 0xc]
nop
movzx ecx, byte [ebp + edi - 0x30]
lea edx, [edx + 2]
mov eax, ecx
inc edi
shr eax, 4
and ecx, 0xf
movzx eax, byte [ebp + eax - 0x20]
mov byte [edx - 2], al
movzx eax, byte [ebp + ecx - 0x20]
mov byte [edx - 1], al
cmp edi, ebx
jb 0x10008890
mov eax, dword [ebp + 0xc]
mov byte [eax + 0x20], 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push 0
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x10008b40
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Read .ini file

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x100cf724], 0x10
lea eax, [ebp - 4]
push ebx
mov ebx, dword [0x100cf720]
push esi
push edi
mov edi, dword [0x100d29b8]
mov esi, 0x100cf710
cmovae esi, dword [0x100cf710]
push eax
push 0x40
push ebx
push edi
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualProtect]
push edi
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
push str..Settings.ini
push 0
push str.FramePerSecond
push str.ScreenSettings
call esi
mov ecx, eax
test ecx, ecx
je 0x10008c18
cmp ecx, 0x384
jle 0x10008bcc
mov ecx, 0x384
jmp 0x10008bd1
cmp ecx, 0x28
jle 0x10008c18
mov eax, 0x3e8
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
cdq
idiv ecx
mov ecx, 5
cmp eax, ecx
push 0
cmovl eax, ecx
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 1
push eax
push 0x5ab540
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push 0
push 1
lea eax, [ebp - 4]
push eax
push 0x5ab549
call edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
push str..Settings.ini
push 0
push str.HPBar
push str.Player
call esi
test ax, ax
jle 0x10008c49
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x67028d
call ebx
mov dword [0x67028d], 0x1e8480
movzx esi, word [0x100d28c4]
lea eax, [ebp - 4]
push eax
push 0x40
push 4
push 0x5d7eaa
call ebx
lea eax, [ebp - 4]
mov word [0x5d7eaa], si
movzx esi, word [0x100d28c8]
push eax
push 0x40
push 4
push 0x5d7eaf
call ebx
lea eax, [ebp - 4]
mov word [0x5d7eaf], si
movzx esi, word [0x100d28c4]
push eax
push 0x40
push 4
push 0x63a15e
call ebx
lea eax, [ebp - 4]
mov word [0x63a15e], si
movzx esi, word [0x100d28c8]
push eax
push 0x40
push 4
push 0x63a177
call ebx
pop edi
mov word [0x63a177], si
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10008cd0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x204
cmp dword [0x100d29b4], 0
jne 0x10008d98
push esi
push edi
push 0x10098df0
push str..Co9.dat
call fcn.1006730f
mov ecx, dword [ebp + 8]
mov esi, eax
push 0x10098e00
push dword [ecx]
call fcn.1006730f
push esi
push 0x200
mov edi, eax
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.100675a5
add esp, 0x20
test eax, eax
je 0x10008d50
push edi
push eax
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.10067974
push esi
push 0x200
lea eax, [ebp - 0x204]
push 1
push eax
call fcn.100675a5
add esp, 0x20
test eax, eax
jne 0x10008d25
push edi
mov dword [0x100d29b4], 1
call fcn.10066fbc
push esi
call fcn.10066fbc
lea eax, [ebp - 0x204]
push eax
call fcn.10027dd9
add esp, 0xc
mov word [ebp - 4], 0xeb
lea eax, [ebp - 4]
push 0
push 2
push eax
push dword [0x100d29bc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10009150
Capabilities:
Enumerate threads
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10092bf8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x44
mov eax, dword [ecx + 0x14]
mov dword [ebp - 0x34], eax
mov eax, dword [ecx + 0x18]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x1c]
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x2c], eax
mov eax, dword [ecx + 0x20]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
mov dword [ebp - 0x24], 0
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
call fcn.10008da0
mov esi, dword [ebp - 0x24]
xor edx, edx
mov ecx, dword [ebp - 0x20]
sub ecx, esi
mov dword [ebp - 4], 0
add ecx, 3
mov dword [ebp - 0x14], 0
shr ecx, 2
cmp esi, dword [ebp - 0x20]
cmova ecx, edx
mov edx, esi
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], edx
test ecx, ecx
je 0x10009259
push edi
nop dword [eax]
mov edi, dword [edx]
test edi, edi
je 0x10009231
push 0
push 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10009231
lea eax, [ebp - 0x50]
mov dword [ebp - 0x50], 0x1c
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x4c], xmm0
movq qword [ebp - 0x3c], xmm0
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0x1000922a
cmp dword [ebp - 0x48], edi
je 0x10009281
lea eax, [ebp - 0x50]
push eax
push esi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0x10009217
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x100983b0
push 0x10
call fcn.100088e0
add esp, 8
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x10]
inc ecx
add edx, 4
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], edx
cmp ecx, dword [ebp - 0x18]
jne 0x100091e0
mov esi, dword [ebp - 0x24]
pop edi
test esi, esi
je 0x100092bc
mov ecx, dword [ebp - 0x1c]
mov eax, esi
sub ecx, esi
and ecx, 0xfffffffc
cmp ecx, 0x1000
jb 0x100092b2
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x100092cb
jmp 0x100092b2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push 0
push 2
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov esi, eax
test esi, esi
je 0x10009240
push esi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x100092a9
test eax, eax
jne 0x1000922a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10009240
push ecx
push esi
call fcn.100278ad
add esp, 8
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
call fcn.100556e8
int3

Function at 0x100092e0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push edi
mov edi, ecx
lea eax, [edi + 0x14]
push eax
push 0
push 0
push 0x10002790
push 0
push 0
call esi
mov dword [edi], eax
lea eax, [edi + 0x18]
push eax
push 0
push 0
push 0x10002820
push 0
push 0
call esi
mov dword [edi + 4], eax
lea eax, [edi + 0x1c]
push eax
push 0
push 0
push 0x10004e00
push 0
push 0
call esi
mov dword [edi + 8], eax
lea eax, [edi + 0x20]
push eax
push 0
push 0
push 0x10002720
push 0
push 0
call esi
mov dword [edi + 0xc], eax
pop edi
pop esi
ret
Function at 0x1002b470
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret

Function at 0x1007c094
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1007bc99

Function at 0x10084a69
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10084243

Function at 0x10084a74
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1008447e

Function at 0x10090daa
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10090b31
Function at 0x431529
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push 0x40
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00431480
add esp, 0xc
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
cmp ecx, 0x5a4d
je 0x431558
mov eax, 0xea61
jmp 0x4315d6
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x3c], 0
jne 0x431568
mov eax, 0xea62
jmp 0x4315d6
push 0xf8
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + 0x3c]
add eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0x10]
push eax
call fcn.00431480
add esp, 0xc
mov eax, dword [ebp + 0x10]
cmp dword [eax], 0x4550
je 0x431595
mov eax, 0xea62
jmp 0x4315d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 4]
cmp ecx, 0x14c
je 0x4315ad
mov eax, 0xea65
jmp 0x4315d6
mov eax, dword [ebp + 0x10]
xor ecx, ecx
mov cx, word [eax + 0x16]
test ch, 0x10
je 0x4315c2
mov eax, 0xea66
jmp 0x4315d6
mov eax, dword [ebp + 0x10]
cmp dword [eax + 0x74], 0x10
jbe 0x4315d2
mov eax, 0xea67
jmp 0x4315d6
xor eax, eax
jmp 0x4315d6
pop edi
pop esi
pop ebx
leave
ret
Function at 0xd65a60
Capabilities:
Encode data using xor

Disassembly:
jmp 0xd65a6a
pushal
call 0xd65a70
pop ebp
sub ebp, 0x10
sub ebp, 0x965a60
jmp 0xd65a86
mov eax, 0x965a60
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c1
mov edx, 0x237362ea
xor byte [eax], dl
inc eax
dec ecx
jne 0xd65a9d
jmp 0xd65ab0
popal
daa
popal
arpl si, dx
ljmp 0xea12
Function at 0x405a9c
Capabilities:
Reference http user-agent string

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], esp
push 0
mov eax, 8
call fcn.0040806b
cmp dword [ebp - 4], esp
je 0x405ac9
push 6
call fcn.00408065
add esp, 4
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
push 0
push 0
push 0
push VariantClear
push 0
push str.WinHttp.WinhttpRequest.5.1
push 0x10030
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
push 3
mov ebx, 0x40b2c0
call fcn.00408071
add esp, 0x28
and eax, 1
xor eax, 1
test eax, eax
je 0x405b48
push VariantClear
push 0
push 0x4c2726
push 0x80000301
push 0
push 0
push VariantClear
push 0
push str.Http
push 3
mov ebx, 0x409fa0
call fcn.00408071
add esp, 0x28
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
push 0x80000301
push 0
push 0x4e20
push 0x80000301
push 0
push 0x4e20
push 0x80000301
push 0
push 0x4e20
push 0x80000301
push 0
push 0x4e20
push VariantClear
push 0
push str.SetTimeouts
push 0x10030
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
push 6
mov ebx, 0x40a300
call fcn.00408071
add esp, 0x4c
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 4], ebx
push VariantClear
push 0
push str.Mozilla_5.0__compatible__MSIE_9.0__Windows_NT_6.1__WOW64__Trident_5.0_
push VariantClear
push 0
push str.User_Agent
push VariantClear
push 0
push str.SetRequestHeader
push 0x10030
push 0
mov ebx, dword [ebp - 4]
push dword [ebx]
push 4
mov ebx, 0x40a300
call fcn.00408071
add esp, 0x34
mov esp, ebp
pop ebp
ret 4
Function at 0x414190
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bacbb
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.004af47f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x414212
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.004aca2a
mov eax, dword [eax]
push 0x5db210
push eax
call fcn.0049e584
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.004af70a
test bl, bl
je 0x414212
push 0x5db210
lea ecx, [esp + 0xc]
call fcn.004afa9a
push 0x5ded9c
lea ecx, [esp + 0xc]
call fcn.004afa9a
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 0x41424e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.004af70a
jmp 0x414319
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 0x4142d2
lea edx, [esp + 0x7c]
push 0x5ded98
push edx
call fcn.0049e584
add esp, 8
test eax, eax
je 0x4142d2
lea eax, [esp + 0x7c]
push 0x5ded94
push eax
call fcn.0049e584
add esp, 8
test eax, eax
je 0x4142d2
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 0x414262
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.004af70a
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 0x415570
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 0x4155d2
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 0x4155e0
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4bae1b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x5ea548]
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 0x415718
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x415646
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004af70a
xor eax, eax
jmp 0x41578f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.004af847
push esi
lea ecx, [esp + 0xc]
call fcn.004afad6
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 0x41576d
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push closesocket
call fcn.00415570
test eax, eax
jne 0x41576d
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.00415570
test eax, eax
jne 0x41576d
lea eax, [esp + 0x14]
push 0x5dedb0
push eax
call fcn.0049f750
mov esi, eax
add esp, 8
test esi, esi
jne 0x41574c
lea ecx, [esp + 0x14]
push 0x5dedac
push ecx
call fcn.0049f6d0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41574c
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x41574f
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.004af7f7
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x41565e
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.004af70a
xor eax, eax
jmp 0x41578f
mov byte [esi], 0
push 0x5deda8
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.004af70a
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 0x426f30
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 0x426f9e
cmp si, 0x69
ja 0x426f9e
add esi, 0xffd0
cmp si, 0x11
je 0x426f6e
push 0x11
call edi
test ax, ax
jge 0x426f6e
or esi, 0x2000
cmp si, 0x10
je 0x426f83
push 0x10
call edi
test ax, ax
jge 0x426f83
or esi, 0x4000
cmp si, 0x12
je 0x426f98
push 0x12
call edi
test ax, ax
jge 0x426f98
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x426fab
mov esi, 0xbd
jmp 0x426f5f
cmp si, 0x6e
jne 0x426fb8
mov esi, 0xbe
jmp 0x426f5f
cmp si, 0x6f
jne 0x426f59
mov esi, 0xbf
jmp 0x426f5f

Function at 0x428770
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x5fad08]
xor edx, edx
cmp eax, edx
jne 0x428796
xor eax, eax
mov byte [eax + 0x5fac08], al
inc eax
cmp eax, 0x100
jl 0x42877e
mov dword [0x5fad08], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x5fac08
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x428827
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 0x4287fa
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 0x4287c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4288a0
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 0x4288f3
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 0x4288da
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 0x42f330
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 0x42f4c8
cmp ebp, ebx
jle 0x42f4c8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x42f38e
dec eax
or eax, 0xfffffff8
inc eax
je 0x42f395
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x42f3a4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x42f3ab
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004af44b
add esp, 4
cmp eax, ebx
je 0x42f3cc
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.004af44b
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 0x42f4be
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 0x42f4a5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x42f491
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x42f486
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 0x42f494
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x42f494
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x42f430
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 0x42f421
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