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

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4722ce
cmp dword [ebx + 0x94], 0
jne 0x4722c8
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x472178
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4722c8
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 0x47228e
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4722c8
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.004322c4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x47229d
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x4cf764]
cmp dword [eax + 0x170], 0
je 0x472651
test bl, bl
jne 0x47259f
cmp dword [esi + 0x9c], 0
jne 0x472594
mov eax, esi
call fcn.004753dc
push eax
push 0x4723f8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x472565
mov eax, dword [0x4cf764]
cmp byte [eax + 0xd3], 0
je 0x472565
mov eax, dword [esi + 0xd8]
call fcn.00408bec
mov edi, eax
cmp edi, 0
jl 0x472565
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 0x47254e
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x472594
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004322c4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x472574
inc dword [esi + 0x9c]
jmp 0x472651
cmp dword [esi + 0x9c], 0
jle 0x472651
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x472651
cmp dword [esi + 0x44], 0
je 0x4725fc
mov eax, dword [0x4cf764]
cmp byte [eax + 0xd3], 0
je 0x4725fc
mov eax, dword [esi + 0xd8]
call fcn.00408bec
mov edi, eax
cmp edi, 0
jl 0x4725fc
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 0x4725e5
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x47262b
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004322c4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x47260b
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 [0x465774]
call fcn.00408dac
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4732a0
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 0x47330b
cmp byte [ebx + 0xd3], 0
jne 0x47330b
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.00407398
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4732f8
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x473318
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040725c
jmp 0x473318
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.0040725c
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x474b40
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x474bae
mov eax, esi
call fcn.00497238
test al, al
je 0x474bae
mov eax, dword [ebx + 0x84]
call fcn.00496eb8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x474bae
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x474ba2
push 0
mov eax, dword [ebx + 0x84]
call fcn.00496eb8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0048df44
jmp 0x474bae
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00474978
pop esi
pop ebx
ret

Function at 0x478374
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.0040725c
push 0
mov eax, esi
movzx eax, al
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x4783bb
push pe_nt_image_headers32
lea edx, [esp + 4]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
mov edx, esp
mov ecx, pe_nt_image_headers32
call fcn.00407444
add esp, 0x200
pop esi
pop ebx
ret
Function at 0x47dbb8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
xor eax, eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x47dcf1
push dword fs:[eax]
mov dword fs:[eax], esp
mov word [ebp - 0x20], 0
lea eax, [ebp - 0x20]
push eax
call sub.user32.dll_GetKeyboardLayoutNameW
mov dl, 1
mov eax, dword [0x44743c]
call fcn.00448640
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x47dcc7
push dword fs:[edx]
mov dword fs:[edx], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0xc]
call fcn.00448728
lea eax, [ebp - 0x28]
lea edx, [ebp - 0x20]
mov ecx, 0xa
call fcn.00407444
mov ecx, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
mov edx, 0x47dd0c
call fcn.00407718
mov edx, dword [ebp - 0x24]
mov eax, dword [ebp - 0xc]
call fcn.004489a4
test al, al
je 0x47dcb1
lea ecx, [ebp - 4]
mov edx, 0x47dd80
mov eax, dword [ebp - 0xc]
call fcn.004492a0
mov edx, 0x8000
mov eax, dword [ebp - 4]
call fcn.0041879c
mov dword [ebp - 8], eax
xor edx, edx
push ebp
push 0x47dcaa
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x47dd98
mov eax, dword [ebp - 8]
push eax
call fcn.0040bf4c
mov ebx, eax
call ebx
movzx eax, word [eax + 0x28]
and ax, 1
cmp ax, 1
sete byte [0x4c92fc]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dcb1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_FreeLibrary_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47dcce
mov eax, dword [ebp - 0xc]
call fcn.004055cc
ret

Function at 0x47ddfc
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov esi, eax
lea edi, [esp]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movzx ebx, byte [esp + 4]
test bx, bx
je 0x47de43
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47de26
add bx, 0x2000
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x47de37
add bx, 0x4000
test byte [esp + 0xb], 0x20
je 0x47de43
add bx, 0x8000
mov eax, ebx
add esp, 0x10
pop edi
pop esi
pop ebx
ret
Function at 0x48b59c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov esi, eax
lea edi, [ebp - 0xc]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 0x10], edx
xor eax, eax
mov dword [ebp - 0x18], eax
cmp dword [0x4cf7e8], 0
je 0x48b6dd
push 0x11
call sub.user32.dll_GetKeyState
test ax, 0x8000
setne al
mov edx, dword [0x4c9948]
mov edx, dword [edx]
xor al, byte [edx + 0xbc]
je 0x48b6dd
mov eax, dword [0x4cf7ec]
mov edx, dword [eax]
call dword [edx + 8]
mov eax, dword [0x4cf7e8]
mov ebx, dword [eax + 8]
dec ebx
test ebx, ebx
jl 0x48b6ac
inc ebx
xor edi, edi
mov edx, edi
mov eax, dword [0x4cf7e8]
call fcn.004322c4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x10]
je 0x48b6a4
mov eax, dword [ebp - 0x14]
cmp byte [eax + 0x1ea], 0
je 0x48b6a4
mov eax, dword [ebp - 0x14]
mov edx, dword [eax]
call dword [edx + 0x5c]
test al, al
je 0x48b6a4
mov eax, dword [ebp - 0x14]
call fcn.00496eb8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x48b6a4
push ebp
call fcn.0048b558
pop ecx
test al, al
jne 0x48b6a4
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbb
call fcn.00405858
test al, al
je 0x48b6a4
mov byte [ebp - 1], 1
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 1]
push eax
lea ecx, [ebp - 0x28]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x14]
mov si, 0xffbc
call fcn.00405858
cmp byte [ebp - 1], 0
je 0x48b6a4
lea edx, [ebp - 0xc]
lea eax, [ebp - 0x28]
call fcn.0040b134
test al, al
je 0x48b6a4
mov edx, dword [ebp - 0x14]
mov eax, dword [0x4cf7ec]
call fcn.0048acb4
inc edi
dec ebx
jne 0x48b601
mov eax, dword [0x4cf7ec]
cmp dword [eax + 8], 0
jle 0x48b6c4
mov eax, dword [0x4cf7ec]
call fcn.0048ad6c
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x48b6dd
push ebp
mov eax, dword [ebp - 0x18]
call fcn.0048b3bc
pop ecx
test al, al
jne 0x48b6dd
xor eax, eax
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x493a64
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.0040b11c
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0048db64
test ebx, ebx
jne 0x493ab7
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.004938e0
mov ebx, eax
test ebx, ebx
je 0x493bad
cmp esi, ebx
je 0x493ae0
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x493af5
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x493b2d
add eax, 0xffffff5f
sub eax, 2
jb 0x493b45
dec eax
sub eax, 2
jb 0x493b59
dec eax
sub eax, 2
jb 0x493b4f
jmp 0x493b63
add eax, 0xfffffdff
sub eax, 2
jb 0x493b45
dec eax
sub eax, 2
jb 0x493b59
dec eax
sub eax, 2
jb 0x493b4f
jmp 0x493b63
mov byte [esp + 0x120], 0
jmp 0x493b6b
mov byte [esp + 0x120], 2
jmp 0x493b6b
mov byte [esp + 0x120], 1
jmp 0x493b6b
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0046794c
mov esi, eax
call fcn.0048a468
or si, ax
mov word [esp + 0x121], si
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.0048f4e8
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x493baf
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret

Function at 0x4bf068
Capabilities:
Set console window title

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407244
xor eax, eax
push ebp
push 0x4bf0de
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x4c960c], 0
jne 0x4bf0b2
lea ecx, [ebp - 8]
xor edx, edx
mov eax, dword [ebp - 4]
call fcn.004be950
mov eax, dword [ebp - 8]
call fcn.00406ccc
push eax
call sub.kernel32.dll_SetConsoleTitleA
jmp 0x4bf0c0
mov eax, dword [ebp - 4]
call fcn.004072e8
push eax
call sub.kernel32.dll_SetConsoleTitleW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4bf0e5
lea eax, [ebp - 8]
call fcn.00406874
lea eax, [ebp - 4]
call fcn.0040724c
ret
Function at 0x4d9160
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x83000]
push edi
or ebp, 0xffffffff
jmp 0x4d9182
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4d9189
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4d9178
mov eax, 1
add ebx, ebx
jne 0x4d919b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4d9190
jne 0x4d91ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d9190
xor ecx, ecx
sub eax, 3
jb 0x4d91c0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4d9232
mov ebp, eax
add ebx, ebx
jne 0x4d91cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x4d91d8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x4d91fc
inc ecx
add ebx, ebx
jne 0x4d91e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4d91dd
jne 0x4d91f9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4d91dd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4d921c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4d920d
jmp 0x4d917e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4d921c
add edi, ecx
jmp 0x4d917e
pop esi
mov edi, esi
mov ecx, 0x30be
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4d923a
cmp byte [edi], 0x24
jne 0x4d923a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x4d923f
lea edi, [esi + 0xd6000]
mov eax, dword [edi]
or eax, eax
je 0x4d92b7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xe05ac]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xe06c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4d926c
mov ecx, edi
jns 0x4d929b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xe06c8]
or eax, eax
je 0x4d92b1
mov dword [ebx], eax
add ebx, 4
jmp 0x4d9289
call dword [esi + 0xe06d8]
mov ebp, dword [esi + 0xe06cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4d92eb
sub esp, 0xffffff80
jmp 0x45d006
Function at 0x40c160
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x47ee2b
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.00473a53
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x40c1e2
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0047192d
mov eax, dword [eax]
push 0x49cc8c
push eax
call fcn.004645a4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.00473cde
test bl, bl
je 0x40c1e2
push 0x49cc8c
lea ecx, [esp + 0xc]
call fcn.0047406e
push 0x49cc98
lea ecx, [esp + 0xc]
call fcn.0047406e
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 0x40c21e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.00473cde
jmp 0x40c2e9
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 0x40c2a2
lea edx, [esp + 0x7c]
push 0x49cc94
push edx
call fcn.004645a4
add esp, 8
test eax, eax
je 0x40c2a2
lea eax, [esp + 0x7c]
push 0x49cc90
push eax
call fcn.004645a4
add esp, 8
test eax, eax
je 0x40c2a2
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 0x40c232
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.00473cde
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 0x40caf0
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 0x40cb52
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 0x40cb60
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x47eeab
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4a6554]
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 0x40cc98
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x40cbc6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00473cde
xor eax, eax
jmp 0x40cd0f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.00473e1b
push esi
lea ecx, [esp + 0xc]
call fcn.004740aa
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 0x40cced
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push accept
call fcn.0040caf0
test eax, eax
jne 0x40cced
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 accept
mov ecx, edi
call fcn.0040caf0
test eax, eax
jne 0x40cced
lea eax, [esp + 0x14]
push 0x49cca8
push eax
call fcn.00465620
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cccc
lea ecx, [esp + 0x14]
push 0x49cca4
push ecx
call fcn.004655a0
mov esi, eax
add esp, 8
test esi, esi
jne 0x40cccc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x40cccf
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.00473dcb
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x40cbde
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.00473cde
xor eax, eax
jmp 0x40cd0f
mov byte [esi], 0
push 0x49cca0
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.00473cde
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 0x41d420
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 0x41d48e
cmp si, 0x69
ja 0x41d48e
add esi, 0xffd0
cmp si, 0x11
je 0x41d45e
push 0x11
call edi
test ax, ax
jge 0x41d45e
or esi, 0x2000
cmp si, 0x10
je 0x41d473
push 0x10
call edi
test ax, ax
jge 0x41d473
or esi, 0x4000
cmp si, 0x12
je 0x41d488
push 0x12
call edi
test ax, ax
jge 0x41d488
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x41d49b
mov esi, 0xbd
jmp 0x41d44f
cmp si, 0x6e
jne 0x41d4a8
mov esi, 0xbe
jmp 0x41d44f
cmp si, 0x6f
jne 0x41d449
mov esi, 0xbf
jmp 0x41d44f

Function at 0x41eda0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4b6d38]
xor edx, edx
cmp eax, edx
jne 0x41edc6
xor eax, eax
mov byte [eax + 0x4b6c38], al
inc eax
cmp eax, 0x100
jl 0x41edae
mov dword [0x4b6d38], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4b6c38
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41ee57
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 0x41ee2a
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 0x41edf8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41eed0
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 0x41ef23
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 0x41ef0a
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