joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45ac6c
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
mov bl, byte [0x45aca4]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45ac85
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x45ac94
or bl, 4
test esi, 0x20000000
je 0x45ac9f
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x4612a8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4612ba
add esp, 0xfffffff0
call fcn.00403e24
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042187c
mov eax, dword [0x513f64]
mov dword [eax + 4], ebx
mov dword [eax], 0x46164c
mov eax, dword [0x513f78]
mov dword [eax + 4], ebx
mov dword [eax], 0x461658
mov eax, ebx
call fcn.00461664
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x4169ec]
call fcn.00403a90
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x4169ec]
call fcn.00403a90
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4169ec]
call fcn.00403a90
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4169ec]
call fcn.00403a90
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4169ec]
call fcn.00403a90
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x45db2c
push eax
push 0
push 0
mov eax, dword [0x5141a0]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x4239f4]
call fcn.004250c8
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x4239f4]
call fcn.004250c8
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x4239f4]
call fcn.004250c8
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00461b14
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4619a8
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4619a8
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4619a8
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4613f7
call fcn.00403e7c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x46178c
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x461937
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x461918
mov dl, 1
mov eax, dword [0x417050]
call fcn.00403a90
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404974
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x461907
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.0044ece4
test al, al
je 0x4618fa
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x461948
lea eax, [ebp - 0x254]
call fcn.0040a3c0
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x4618fa
xor eax, eax
push ebp
push 0x4618f3
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x461980
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x4618dc
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bdc
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x4618dc
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404bdc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4618fa
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4617fd
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x1d], 0
mov dl, 1
call fcn.0041b868
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46193e
lea eax, [ebp - 0x260]
call fcn.00404974
ret

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

Disassembly:
push ecx
mov eax, dword [0x515c38]
cmp byte [eax + 0xa5], 0
jne 0x462325
cmp dword [0x515c50], 0
jne 0x4622e6
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x462270
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x515c50], eax
cmp dword [0x515c4c], 0
jne 0x462301
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x515c4c], eax
cmp dword [0x515c54], 0
jne 0x462325
push esp
push 0
push 0
push 0x462214
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x515c54], eax
pop edx
ret
Function at 0x46241c
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x462433
add esp, 0xfffffff0
call fcn.00403e24
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0042187c
mov eax, dword [0x514190]
cmp word [eax + 2], 0
jne 0x46245b
mov eax, dword [0x514190]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463af8
mov eax, dword [0x514290]
cmp word [eax + 2], 0
jne 0x462475
mov eax, dword [0x514290]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00463cf0
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x4169ec]
call fcn.00403a90
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4169ec]
call fcn.00403a90
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x424474]
call fcn.0042c320
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x4625fc
mov eax, dword [0x513ff8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042c6f0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x464270
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x513ff8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040e1d8
test eax, eax
je 0x46256a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00409ca4
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040e200
test eax, eax
je 0x46257e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404bdc
mov eax, dword [0x513e14]
cmp byte [eax], 0
jne 0x4625b2
mov eax, ebx
call fcn.00462724
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.0046444c
mov eax, ebx
call fcn.00464d8c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4625f2
call fcn.00403e7c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x462998
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x515c38]
cmp dword [eax + 0x30], 0
je 0x462a42
cmp dword [ebx + 0x94], 0
jne 0x462a3c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x462928
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x462a3c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x462a02
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x462a3c
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.004194a8
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x462a11
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx

Function at 0x463520
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x463555
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404a64
jmp 0x463562
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004049c8
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x464628
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x464669
mov eax, esi
call fcn.0044a3d8
test al, al
je 0x464669
mov eax, dword [ebx + 0x84]
call fcn.0044a0d4
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x464669
push 0
mov eax, dword [ebx + 0x84]
call fcn.0044a0d4
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x4662a4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x466504
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x466307
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.00465dbc
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040dc20
cmp al, 1
jne 0x466307
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.00466084
test al, al
je 0x466493
cmp dword [ebp - 8], 0
jge 0x466325
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.00465dbc
mov eax, dword [ebp - 0x210]
call fcn.00404c2c
cmp ebx, eax
jge 0x46636f
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.00465dbc
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x514484]
and eax, 0xff
bt dword [edx], eax
jae 0x46636f
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x466383
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.00466280
cmp ebx, dword [ebp - 8]
je 0x466485
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4663af
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403cbc
and eax, 0x7f
movzx eax, word [eax*2 + 0x50eeb4]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x466472
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403cbc
and eax, 0x7f
movzx eax, word [eax*2 + 0x50eeb4]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0044a0d4
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403cbc
and eax, 0x7f
movzx eax, word [eax*2 + 0x50eeb4]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0044a0d4
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x466479
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4664e6
cmp dword [ebp - 8], 0
jge 0x46649e
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.00465dbc
mov eax, dword [ebp - 0x218]
call fcn.00404c2c
cmp eax, dword [ebp - 8]
jg 0x4664d8
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.00465dbc
mov eax, dword [ebp - 0x21c]
call fcn.00404c2c
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.00466280
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x46650b
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.00404998
ret
Function at 0x46b50c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0046b054
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404e24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x46b56a
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5141ac]
mov dl, 1
mov eax, dword [0x46aee0]
call fcn.0040d44c
call fcn.00404350
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x46b574
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404e24
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x46b5cc
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x5144b8]
mov dl, 1
mov eax, dword [0x46aee0]
call fcn.0040d44c
call fcn.00404350
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0046b084
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x47d53c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0x2001f
push 0
push 0x47d5d0
push 0
mov eax, ebx
call fcn.00404e24
push eax
mov eax, dword [ebp + 8]
push eax
call sub.advapi32.dll_RegCreateKeyExA
mov ebx, eax
test ebx, ebx
jne 0x47d5ab
mov eax, esi
call fcn.00404c2c
inc eax
push eax
mov eax, esi
call fcn.00404e24
push eax
push 1
push 0
mov eax, edi
call fcn.00404e24
push eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegSetValueExA
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey_1
test ebx, ebx
je 0x47d5c6
mov ecx, dword [0x513ff0]
mov dl, 1
mov eax, dword [0x47d0d8]
call fcn.0040d410
call fcn.00404350
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x47d5ec
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
call fcn.00404974
lea eax, [ebp - 0xc]
push eax
mov eax, esi
call fcn.00404e24
push eax
push edi
call sub.advapi32.dll_RegOpenKeyA
test eax, eax
jne 0x47d693
xor eax, eax
push ebp
push 0x47d68c
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00404fb0
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx]
call fcn.00404e24
push eax
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.00404e24
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x47d66e
mov edx, dword [ebp - 8]
dec edx
mov eax, ebx
call fcn.00404fb0
jmp 0x47d675
mov eax, ebx
call fcn.00404974
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x47d693
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a37e8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x18], edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4a3969
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50f43c], 0
jne 0x4a3946
push 0x515d40
call sub.kernel32.dll_EnterCriticalSection_1
xor eax, eax
push ebp
push 0x4a393f
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x50f43c], 0
jne 0x4a3927
mov dword [ebp - 4], pe_nt_image_headers32
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404fb0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 8]
call fcn.00404e24
push eax
lea eax, [ebp - 0xc]
push eax
lea edx, [ebp - 0x18]
mov eax, ebx
call fcn.00408ea8
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0xb
lea edx, [ebp - 0x14]
xor ecx, ecx
mov eax, 0x4a3980
call fcn.0040a440
mov eax, dword [ebp - 0xc]
call fcn.00404e24
push eax
push 0x80000000
call sub.advapi32.dll_RegQueryValueA
test eax, eax
jne 0x4a38a8
lea eax, [ebp - 8]
mov edx, dword [ebp - 4]
call fcn.00404fb0
jmp 0x4a38df
lea eax, [ebp - 8]
mov edx, 0x4a39a0
call fcn.00404a0c
xor eax, eax
push ebp
push 0x4a38d5
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call fcn.0047d69c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4a38df
mov eax, dword [ebp - 8]
call fcn.00404e24
push eax
call sub.kernel32.dll_LoadLibraryA
mov dword [0x50f43c], eax
cmp dword [0x50f43c], 0
jne 0x4a3912
mov ecx, dword [0x514160]
mov dl, 1
mov eax, dword [0x408250]
call fcn.0040d410
call fcn.00404350
push 0x4a39ac
mov eax, dword [0x50f43c]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x515d58], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3946
push 0x515d40
call sub.kernel32.dll_LeaveCriticalSection_1
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4a3970
lea eax, [ebp - 0x18]
call fcn.00404974
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404998
ret
Function at 0x4b0494
Capabilities:
Access peb ldr_data
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, eax
cmp byte [ebx + 0x87], 0
je 0x4b04cf
cmp dword [ebx + 0x5c], 0
je 0x4b04cf
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb8]
mov edx, eax
mov eax, esi
call fcn.004a8878
xor eax, eax
mov dword [ebx + 0x5c], eax
mov byte [ebx + 0x87], 0
cmp dword [ebx + 0x5c], 0
jne 0x4b061a
cmp dword [ebx + 0x7c], 0
jne 0x4b04f5
mov dl, 1
mov eax, dword [0x416aa8]
call fcn.00403a90
mov dword [ebx + 0x7c], eax
cmp dword [ebx + 0xc], 0
je 0x4b05f3
mov eax, dword [ebx + 0xc]
push eax
mov al, byte [0x4b0620]
push eax
mov al, byte [0x4b0624]
push eax
push 0
mov eax, dword [ebx + 0x7c]
push eax
mov eax, dword [0x514184]
push eax
mov ecx, dword [ebx + 0x68]
mov dl, 1
mov eax, dword [0x49f86c]
call fcn.004a16d8
mov dword [ebp - 4], eax
xor edx, edx
push ebp
push 0x4b05ec
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebx + 0x5c]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x50]
push eax
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x58]
push eax
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004a8878
lea eax, [ebx + 0x10]
push eax
mov eax, dword [ebx + 0x5c]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xc0]
mov edx, eax
mov eax, esi
call fcn.004a8878
mov eax, dword [ebx + 0x40]
push eax
lea eax, [ebx + 0x70]
mov ecx, 1
mov edx, dword [0x4a62bc]
call fcn.00406084
add esp, 4
mov eax, dword [ebx + 0x30]
cmp eax, 0x1a
jge 0x4b05bf
mov edx, dword [0x51439c]
mov al, byte [edx + eax]
mov byte [ebx + 0x74], al
jmp 0x4b05d0
cmp eax, 0x1007
jne 0x4b05cc
mov byte [ebx + 0x74], 0x18
jmp 0x4b05d0
mov byte [ebx + 0x74], 0
mov eax, dword [ebx + 0x40]
mov dword [ebx + 0x78], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b061a
mov eax, dword [ebp - 4]
call fcn.00403ac0
ret
lea eax, [ebx + 0x5c]
push eax
push 0
push 0
mov eax, dword [ebx + 0x64]
push eax
mov esi, dword [ebx + 0x68]
mov eax, dword [esi + 0x1a8]
push eax
mov eax, dword [eax]
call dword [eax + 0xb4]
mov edx, eax
mov eax, esi
call fcn.004a8878
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4b2824
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov ebx, eax
mov edi, dword [ebx + 0x24]
mov esi, dword [ebx + 0x34]
sub esi, dword [ebx + 0x6c]
sub esi, dword [ebx + 0x64]
test esi, esi
jne 0x4b284e
cmp dword [ebx + 0x64], 0
jne 0x4b284e
cmp dword [ebx + 0x6c], 0
jne 0x4b284e
mov esi, edi
jmp 0x4b28dd
cmp esi, 0xffffffff
jne 0x4b2859
dec esi
jmp 0x4b28dd
mov eax, dword [ebx + 0x64]
mov edx, edi
sub edx, 0x106
add edx, edi
cmp eax, edx
jb 0x4b28dd
mov eax, dword [ebx + 0x30]
lea edx, [eax + edi]
mov ebp, edi
mov ecx, ebp
call fcn.004b0c3c
sub dword [ebx + 0x68], edi
sub dword [ebx + 0x64], edi
sub dword [ebx + 0x54], ebp
mov eax, dword [ebx + 0x44]
mov edx, dword [ebx + 0x3c]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x4b28a5
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x4b28aa
mov word [edx], 0
dec eax
test eax, eax
jne 0x4b288b
mov eax, edi
mov edx, dword [ebx + 0x38]
lea edx, [edx + eax*2]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp edi, dword [esp]
ja 0x4b28d1
mov cx, word [esp]
sub cx, di
mov word [edx], cx
jmp 0x4b28d6
mov word [edx], 0
dec eax
test eax, eax
jne 0x4b28b7
add esi, edi
mov eax, dword [ebx]
cmp dword [eax + 4], 0
je 0x4b293b
mov edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
mov ecx, dword [ebx + 0x30]
lea edx, [ecx + edx]
mov ecx, esi
call fcn.004b25a4
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x4b2926
mov eax, dword [ebx + 0x64]
mov edx, dword [ebx + 0x30]
movzx eax, byte [edx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x64]
mov ecx, dword [ebx + 0x30]
movzx edx, byte [ecx + edx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x4b293b
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x4b282e
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4b659c
Capabilities:
Write file on windows

Disassembly:
add esp, 0xffffffb8
mov dword [esp], eax
mov eax, dword [0x5142f8]
cmp byte [eax], 0
je 0x4b65f6
mov eax, dword [0x513fbc]
call fcn.00403008
push 0
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 8]
call fcn.00409c68
push eax
lea eax, [esp + 0xc]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 8]
push eax
push 2
push 0x4b6638
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4b662c
push 0x40
lea eax, [esp + 0xc]
push eax
mov eax, dword [0x513f5c]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x515718]
call fcn.0040628c
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 0xc]
push eax
mov eax, dword [esp + 8]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x48
ret