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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
mov eax, dword [esi]
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [eax + 0x190]
test al, al
jns 0x492cf3
or eax, 0xffffffff
jmp 0x492cf8
mov eax, dword [0x5799ac]
mov edx, dword [esi]
lea ecx, [ebp - 4]
push ecx
push eax
mov ecx, esi
call dword [edx + 0x290]
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 0x57a758
call fcn.00417d80
mov edi, eax
pop ecx
pop ecx
cmp edi, esi
je 0x492d95
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
test ax, ax
jl 0x492d95
cmp edi, ebx
je 0x492d4a
mov eax, dword [edi]
push ebx
mov ecx, edi
call dword [eax + 0x200]
push eax
push 0x57ae8c
call fcn.00417d80
pop ecx
pop ecx
mov ebx, eax
cmp dword [ebp - 8], 2
jne 0x492d9e
test ebx, ebx
je 0x492d81
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x198]
test al, 0x40
je 0x492d95
cmp dword [ebp - 4], 0
je 0x492d81
mov eax, dword [ebx]
push esi
mov ecx, ebx
call dword [eax + 0x224]
mov ecx, dword [ebp + 8]
neg eax
sbb eax, eax
inc eax
mov dword [ecx], eax
mov eax, esi
jmp 0x492d97
mov eax, dword [esi]
push 5
push 0
push edi
mov ecx, esi
call dword [eax + 0x1d0]
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
cmp dword [ebp - 8], 3
jne 0x492d95
test edi, edi
je 0x492d95
mov eax, dword [edi]
push esi
mov ecx, edi
call dword [eax + 0x15c]
test eax, eax
je 0x492d95
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x164]
test eax, eax
je 0x492d95
mov eax, dword [esi]
push 0
mov ecx, esi
call dword [eax + 0x218]
mov eax, dword [esi]
push 0
push 1
push 5
push edi
mov ecx, esi
call dword [eax + 0x328]
mov edx, dword [ebp + 8]
xor ecx, ecx
test eax, eax
setne cl
mov dword [edx], ecx
jmp 0x492d97
Function at 0x4966b9
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
test byte [0x58323c], 1
push ebx
push esi
push edi
mov ebx, ecx
jne 0x4966e8
or dword [0x58323c], 1
mov ecx, 0x583238
call fcn.00404360
push 0x532158
call fcn.005091f5
pop ecx
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x4966f4
call fcn.004157f2
mov eax, dword [ebx + 0x318]
test eax, eax
je 0x49676d
cmp dword [eax + 0x20], 0
je 0x49676d
test eax, eax
je 0x49670b
mov eax, dword [eax + 0x20]
cmp dword [edi], eax
jne 0x49676d
mov eax, dword [edi + 4]
dec eax
je 0x49674c
dec eax
je 0x496722
dec eax
jne 0x49676d
mov esi, 0x428e
jmp 0x496751
push 0x11
mov esi, 0x3ea1
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
je 0x496751
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x31c]
test eax, eax
je 0x496751
add esi, 3
jmp 0x496751
mov esi, 0x3ea0
push esi
mov ecx, 0x583238
call fcn.00403e50
test eax, eax
je 0x4966ef
mov eax, dword [0x583238]
mov dword [edi + 0xc], eax
xor eax, eax
inc eax
jmp 0x49676f
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x49714e
Capabilities:
Check for unmoving mouse cursor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetCursorPos]
xor ecx, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_ScreenToClient]
mov dword [ebx + 0x9c], ecx
cmp dword [ebx + 0x90], ecx
je 0x4971ce
cmp dword [ebp + 0xc], ecx
jne 0x4971ce
cmp dword [ebx + 0x94], ecx
jne 0x4971ce
mov eax, dword [ebx + 0x20]
cmp eax, ecx
je 0x4971c4
cmp eax, 0xffffffff
je 0x4971c4
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xc8]
push dword [ebp - 8]
call fcn.0040a57e
mov dword [ebx + 0x9c], eax
test eax, eax
jne 0x4971ce
xor eax, eax
jmp 0x49730e
mov dword [ebx + 0x9c], 1
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xec]
test eax, eax
je 0x497209
cmp dword [ebp + 0xc], 0
jne 0x497209
lea eax, [ebp - 8]
push eax
call esi
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp + 8]
push dword [eax + 0x20]
call edi
push dword [ebp - 4]
lea ecx, [ebx + 0xd8]
push dword [ebp - 8]
call fcn.0040a57e
test eax, eax
jne 0x4971bd
xor ecx, ecx
cmp dword [ebx + 0x9c], ecx
jne 0x49722f
mov eax, dword [ebx + 0x20]
cmp eax, ecx
jbe 0x49722f
cmp eax, 0xffffffff
je 0x49722f
cmp dword [ebx + 0x90], ecx
jne 0x49722f
cmp dword [ebx + 0xa8], ecx
je 0x4971bd
push dword [ebx + 0x6c]
push 0x57a5ec
call fcn.00417d80
lea esi, [ebx + 0x8c]
mov dword [ebp - 4], eax
mov eax, dword [esi]
xor edi, edi
pop ecx
pop ecx
cmp eax, edi
je 0x497268
mov dword [eax + 0xf8], edi
mov ecx, dword [esi]
mov eax, dword [ecx]
call dword [eax + 0x60]
mov ecx, dword [ebp - 4]
mov dword [esi], edi
cmp ecx, edi
je 0x4972ce
push edi
jmp 0x4972c9
push dword [ebx + 0x6c]
push 0x57a22c
call fcn.00417d80
pop ecx
pop ecx
cmp dword [ebp + 0xc], edi
je 0x497294
cmp eax, edi
je 0x497294
cmp dword [0x581ad4], edi
jne 0x497294
push 1
push ebx
mov ecx, eax
call fcn.0047f848
jmp 0x4972c1
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4972ac
push edi
call fcn.0043b935
cmp eax, edi
je 0x4972ac
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x58]
push dword [ebp + 8]
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0xc8]
test eax, eax
je 0x4971bd
mov ecx, dword [ebp - 4]
cmp ecx, edi
je 0x4972ce
push ebx
call fcn.0043e46b
cmp dword [ebx + 0x6c], edi
je 0x49730b
lea esi, [ebx + 0x54]
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0042ee5c
mov eax, dword [eax + 0x94]
push eax
push eax
lea eax, [ebp - 0x10]
push eax
call dword [sym.imp.USER32.dll_InflateRect]
push 0x401
push 0
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebx + 0x6c]
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_RedrawWindow]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4a945d
Capabilities:
Create thread

Disassembly:
push 0
mov eax, 0x52b31a
call fcn.0050a140
xor edi, edi
cmp dword [0x57a144], edi
je 0x4a9526
cmp dword [0x57ad38], 0xfffffffe
jne 0x4a9513
cmp dword [ebp + 8], 0xffffffff
je 0x4a9526
test byte [0x583608], 1
mov esi, 0x5835e8
jne 0x4a94bc
or dword [0x583608], 1
mov ecx, esi
mov dword [ebp - 4], edi
call fcn.0041e9d0
push 0x5321d8
call fcn.005091f5
or dword [ebp - 4], 0xffffffff
pop ecx
mov ecx, esi
call fcn.0041ea27
cmp dword [0x5835e4], edi
je 0x4a94d0
call fcn.004157f2
push edi
push edi
push 0x4a9405
call fcn.0050ff8b
add esp, 0xc
mov dword [0x5835e4], eax
cmp eax, edi
jbe 0x4a9500
cmp eax, 0xffffffff
je 0x4a9500
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
mov eax, dword [ebp + 8]
mov dword [0x57ad38], eax
jmp 0x4a9506
mov dword [0x5835e4], edi
push 0x5835f0
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4a9526
mov eax, dword [ebp + 8]
mov dword [0x57ad38], eax
cmp eax, 0xffffffff
jne 0x4a9526
mov dword [0x5835e4], edi
call fcn.0050a218
ret
Function at 0x4e26ad
Capabilities:
Get common file path

Disassembly:
push 0x120
mov eax, 0x52d833
call fcn.0050a1a9
mov esi, ecx
mov dword [ebp - 0x128], esi
call fcn.004e801f
push 0x15c
call fcn.00408f02
pop ecx
mov ecx, eax
mov dword [ebp - 0x124], ecx
xor ebx, ebx
mov dword [ebp - 4], ebx
cmp ecx, ebx
je 0x4e26f1
mov eax, dword [esi + 4]
push ebx
push eax
call fcn.004e990e
jmp 0x4e26f3
xor eax, eax
or dword [ebp - 4], 0xffffffff
push eax
mov ecx, esi
call fcn.004e7ff1
call fcn.00411923
mov eax, dword [eax + 4]
mov edi, dword [eax + 0x88]
lea eax, [ebp - 0x114]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
lea eax, [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov byte [ebp + esi - 0x114], 0x5c
inc esi
mov dword [ebp - 0x124], esi
mov byte [ebp + esi - 0x114], bl
mov dword [ebp - 0x120], ebx
cmp edi, ebx
je 0x4e288d
cmp dword [edi + 4], ebx
jle 0x4e288d
lea ecx, [ebp - 0x118]
call fcn.00404360
mov edx, dword [edi]
xor eax, eax
inc eax
push eax
mov dword [ebp - 4], eax
push esi
lea eax, [ebp - 0x114]
push eax
push ebx
lea eax, [ebp - 0x118]
push eax
mov ecx, edi
call dword [edx + 8]
test eax, eax
je 0x4e2871
lea ecx, [ebp - 0x11c]
call fcn.00404360
mov eax, dword [ebp - 0x120]
mov byte [ebp - 4], 2
cmp eax, 9
jne 0x4e27c2
push dword [ebp - 0x118]
lea eax, [ebp - 0x11c]
push 0x54d218
push eax
call fcn.00403b30
add esp, 0xc
jmp 0x4e27f4
jge 0x4e27e2
push dword [ebp - 0x118]
inc eax
push eax
lea eax, [ebp - 0x11c]
push str._d__s
push eax
call fcn.00403b30
add esp, 0x10
jmp 0x4e27f4
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.00403740
push 0x15c
call fcn.00408f02
pop ecx
mov dword [ebp - 0x12c], eax
mov byte [ebp - 4], 3
test eax, eax
je 0x4e2818
mov ecx, eax
call fcn.004bb4b5
mov esi, eax
jmp 0x4e281a
xor esi, esi
push dword [ebp - 0x11c]
mov eax, dword [esi]
mov ecx, esi
mov byte [ebp - 4], 2
call dword [eax + 0x10]
mov eax, dword [esi]
lea ecx, [ebx + 0xe110]
push ecx
mov ecx, esi
call dword [eax + 0xc]
push ebx
mov ecx, edi
call fcn.0041e3fd
mov eax, dword [eax]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 0x24]
mov ecx, dword [ebp - 0x128]
push esi
call fcn.004e7ff1
mov ecx, dword [ebp - 0x11c]
inc dword [ebp - 0x120]
add ecx, 0xfffffff0
call fcn.00404340
mov esi, dword [ebp - 0x124]
mov ecx, dword [ebp - 0x118]
or dword [ebp - 4], 0xffffffff
add ecx, 0xfffffff0
call fcn.00404340
inc ebx
cmp ebx, dword [edi + 4]
jl 0x4e275b
call fcn.0050a22c
ret
Function at 0x4e7182
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x4e719a
mov edi, dword [esi + 0xc]
jmp 0x4e71da
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4e71b3
call fcn.00411d46
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4e71c8
call fcn.00411d46
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4e71da
call fcn.00411d46
call fcn.00411923
cmp dword [eax + 0x3c], 0
je 0x4e71ef
push edi
mov ecx, ebx
call fcn.004e6067
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004e70a8
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x4e720d
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x4e7219
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x4ee6be
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
cmp dword [ebx + 4], 0x20a
push esi
mov esi, ecx
jne 0x4ee708
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ee708
call fcn.004edf79
test eax, eax
je 0x4ee708
push dword [ebx + 0xc]
mov eax, dword [esi + 0x54]
push dword [ebx + 8]
mov ecx, dword [eax + 0xb4]
push dword [ebx + 4]
call fcn.00403720
xor eax, eax
inc eax
jmp 0x4ee920
cmp dword [ebx + 4], 0x100
push edi
jne 0x4ee917
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call edi
test ax, ax
jl 0x4ee805
push 0x11
call edi
test ax, ax
jl 0x4ee805
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ee805
mov eax, dword [ebx + 8]
cmp eax, 0xd
je 0x4ee778
cmp eax, 0x20
jbe 0x4ee805
cmp eax, 0x24
jbe 0x4ee76b
cmp eax, 0x26
je 0x4ee76b
cmp eax, 0x28
jne 0x4ee805
call fcn.004edf79
test eax, eax
je 0x4ee805
mov ecx, esi
call fcn.00410649
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
call fcn.004edf79
test eax, eax
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
je 0x4ee7ad
push dword [ebx + 0xc]
push dword [ebx + 8]
push dword [ebx + 4]
call fcn.00403720
jmp 0x4ee912
call fcn.0040dbc7
test eax, eax
je 0x4ee912
mov eax, dword [esi + 0x54]
add eax, 0xb8
push eax
mov ecx, esi
call fcn.0040dc51
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
test eax, eax
jne 0x4ee7db
xor edi, edi
jmp 0x4ee7de
mov edi, dword [eax + 0x20]
mov esi, dword [esi + 0x54]
mov ecx, dword [esi + 0xb4]
movzx esi, word [esi + 0x20]
call fcn.0040dbc7
push edi
push esi
push 0x111
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x4ee912
mov eax, dword [ebx + 8]
sub eax, 9
je 0x4ee8e1
sub eax, 0x12
je 0x4ee8b9
sub eax, 0xb
je 0x4ee827
dec eax
dec eax
jne 0x4ee917
push 0x12
call edi
test ax, ax
jl 0x4ee917
push 0x11
call edi
test ax, ax
jl 0x4ee917
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ee917
call fcn.004edf79
test eax, eax
jne 0x4ee912
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
push 1
call fcn.004edef3
mov eax, dword [esi + 0x54]
mov eax, dword [eax + 0xb4]
push dword [eax + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0040c804
test eax, eax
je 0x4ee912
mov esi, dword [esi + 0x54]
lea ebx, [esi + 0x90]
mov esi, dword [esi + 0xb4]
push dword [esi + 0x20]
call edi
push eax
call fcn.0040c804
push 1
push ebx
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x4ee912
mov eax, dword [esi + 0x54]
mov ecx, dword [eax + 0xb4]
test ecx, ecx
je 0x4ee8cd
push 0
call fcn.004edef3
mov ecx, esi
call fcn.0040d34a
test eax, eax
je 0x4ee917
mov ecx, esi
call fcn.0040d34a
jmp 0x4ee90b
push dword [esi + 0x20]
mov edi, dword [sym.imp.USER32.dll_GetParent]
call edi
push eax
call fcn.0040c804
test eax, eax
je 0x4ee917
push dword [esi + 0x20]
call edi
push eax
call fcn.0040c804
push 0
push esi
mov ecx, eax
call fcn.004090e4
mov ecx, eax
call fcn.00410649
xor eax, eax
inc eax
jmp 0x4ee91f
push ebx
mov ecx, esi
call fcn.0040a5e1
pop edi
pop esi
pop ebx
pop ebp
ret 4
Function at 0x4fb6f8
Capabilities:
Log keystrokes via polling
Open clipboard
Write clipboard data

Disassembly:
push 4
mov eax, 0x529c07
call fcn.0050a140
mov edi, ecx
mov esi, dword [ebp + 8]
cmp dword [esi + 4], 0x100
jne 0x4fb7ce
mov ebx, dword [esi + 8]
push 0x11
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
and eax, 0x8000
je 0x4fb7ce
cmp ebx, 0x43
je 0x4fb73a
cmp ebx, 0x2d
jne 0x4fb7ce
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x4fb7ce
call dword [sym.imp.USER32.dll_EmptyClipboard]
lea ecx, [ebp - 0x10]
call fcn.00404360
movzx ecx, byte [edi + 0xae]
and dword [ebp - 4], 0
push ecx
lea eax, [edi + 0xac]
movzx ecx, byte [eax + 1]
movzx eax, byte [eax]
push ecx
push eax
lea eax, [ebp - 0x10]
push str.RGB__d___d___d_
push eax
call fcn.00403b30
mov esi, dword [ebp - 0x10]
mov eax, dword [esi - 0xc]
add esp, 0x14
inc eax
push eax
push 0x2000
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
or dword [ebp - 4], 0xffffffff
lea ecx, [esi - 0x10]
call fcn.00404340
mov esi, dword [ebp + 8]
push esi
mov ecx, edi
call fcn.0047e4f1
call fcn.0050a218
ret 4

Function at 0x503856
Capabilities:
Log keystrokes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
push edi
call dword [eax + 0x150]
mov edi, eax
movzx eax, word [ebp + 8]
push 2
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
cmp byte [ebp + 0xc], 0
jne 0x503896
test edi, edi
jl 0x503896
cmp al, 0x20
je 0x50388b
cmp word [ebp + 8], 0x71
jne 0x503896
mov eax, dword [esi]
push edi
mov ecx, esi
call dword [eax + 0x168]
pop edi
pop esi
pop ebp
ret 8

Function at 0x508869
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x57c6c0]
jne 0x508873
repz ret
jmp fcn.00510694
Function at 0x51df6b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00510c26
and dword [ebp - 4], 0
cmp dword [0x5852b4], 0
mov ebx, eax
jne 0x51e01c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x51e0cd
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x558d80
push edi
call esi
test eax, eax
je 0x51e0cd
push eax
call fcn.00510bb4
mov dword [esp], 0x558d70
push edi
mov dword [0x5852b4], eax
call esi
push eax
call fcn.00510bb4
mov dword [esp], 0x558d5c
push edi
mov dword [0x5852b8], eax
call esi
push eax
call fcn.00510bb4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x5852bc], eax
call esi
push eax
call fcn.00510bb4
pop ecx
mov dword [0x5852c4], eax
test eax, eax
je 0x51e01c
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00510bb4
pop ecx
mov dword [0x5852c0], eax
mov eax, dword [0x5852c0]
cmp eax, ebx
je 0x51e074
cmp dword [0x5852c4], ebx
je 0x51e074
push eax
call fcn.00510c2f
push dword [0x5852c4]
mov esi, eax
call fcn.00510c2f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x51e074
test edi, edi
je 0x51e074
call esi
test eax, eax
je 0x51e06b
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x51e06b
test byte [ebp - 0xc], 1
jne 0x51e074
or dword [ebp + 0x10], 0x200000
jmp 0x51e0ad
mov eax, dword [0x5852b8]
cmp eax, ebx
je 0x51e0ad
push eax
call fcn.00510c2f
pop ecx
test eax, eax
je 0x51e0ad
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x51e0ad
mov eax, dword [0x5852bc]
cmp eax, ebx
je 0x51e0ad
push eax
call fcn.00510c2f
pop ecx
test eax, eax
je 0x51e0ad
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x5852b4]
call fcn.00510c2f
pop ecx
test eax, eax
je 0x51e0cd
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x51e0cf
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a08
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x401a5e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401a5e
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x401a50
cmp esi, ecx
jae 0x401a5e
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x401a3e
cmp esi, ecx
jae 0x401a5e
cmp word [esi], 0
je 0x401a5e
mov eax, esi
jmp 0x401a60
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x40c20f
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
mov eax, edx
push edi
mov dword [ebp - 4], eax
mov dword [ebp - 8], ecx
mov edi, dword [esi + 0x9c]
cmp edi, 0xffffffff
je 0x40c29b
cmp edi, 0x40
jbe 0x40c244
lea edx, [esi + 0x40]
mov ecx, esi
call fcn.0040c597
push 0x14
pop edi
mov dword [esi + 0x9c], edi
push ebx
push 0x40
pop eax
sub eax, edi
xor ebx, ebx
push eax
lea eax, [edi + esi]
push ebx
push eax
call fcn.0041fa80
add esp, 0xc
movups xmm0, xmmword [esi + ebx*4]
movaps xmm1, xmmword [str.6666666666666666]
pxor xmm1, xmm0
movups xmmword [esi + ebx*4], xmm1
add ebx, 4
cmp ebx, 0x10
jb 0x40c25a
lea edi, [esi + 0x40]
mov ecx, edi
call fcn.0040c4fb
push edi
push 0x40
pop edx
mov ecx, esi
call fcn.0040c526
or dword [esi + 0x9c], 0xffffffff
mov eax, dword [ebp - 4]
pop ecx
mov ecx, dword [ebp - 8]
pop ebx
jmp 0x40c29e
lea edi, [esi + 0x40]
test eax, eax
je 0x40c2ab
push edi
mov edx, eax
call fcn.0040c526
pop ecx
pop edi
pop esi
leave
ret

Function at 0x40c2af
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x44200c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, edx
mov dword [ebp - 0x1c], ecx
cmp dword [esi + 0x9c], 0xffffffff
je 0x40c2dd
push esi
xor edx, edx
xor ecx, ecx
call fcn.0040c20f
pop ecx
push edi
lea edi, [esi + 0x40]
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.0040c597
xor eax, eax
movups xmm0, xmmword [esi + eax*4]
pxor xmm0, xmmword [0x43dc00]
movups xmmword [esi + eax*4], xmm0
add eax, 4
cmp eax, 0x10
jb 0x40c2ed
mov ecx, edi
call fcn.0040c4fb
push edi
push 0x40
pop edx
mov ecx, esi
call fcn.0040c526
push edi
push 0x14
pop edx
lea ecx, [ebp - 0x18]
call fcn.0040c526
pop ecx
pop ecx
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.0040c597
pop edi
test ebx, ebx
je 0x40c344
push ebx
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x1c]
call fcn.00421130
add esp, 0xc
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041d487
leave
ret
Function at 0x40c352
Capabilities:
Encode data using xor
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x158
push ebx
push esi
push edi
mov edi, ecx
xor edx, edx
mov dword [ebp - 0x10], edi
lea esi, [edi + 0x1c]
mov ecx, dword [esi]
mov eax, ecx
ror eax, 8
lea esi, [esi + 4]
rol ecx, 8
and eax, 0xff00ff00
and ecx, 0xff00ff
or eax, ecx
mov dword [ebp + edx*4 - 0x158], eax
inc edx
cmp edx, 0x10
jb 0x40c368
push 0x40
lea ecx, [ebp - 0x150]
pop edx
mov eax, dword [ecx + 0x2c]
xor eax, dword [ecx + 0x18]
xor eax, dword [ecx - 8]
xor eax, dword [ecx]
lea ecx, [ecx + 4]
rol eax, 1
mov dword [ecx + 0x34], eax
sub edx, 1
jne 0x40c398
mov ecx, dword [edi + 0xc]
mov eax, dword [edi + 0x14]
mov edx, dword [edi + 0x18]
mov esi, dword [edi + 8]
mov ebx, dword [edi + 0x10]
xor edi, edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], eax
mov dword [ebp - 8], edx
mov dword [ebp - 0x14], 0x14
jmp 0x40c3d6
mov ecx, dword [ebp - 0xc]
not ecx
mov edx, esi
and ecx, eax
rol esi, 5
mov eax, ebx
and eax, dword [ebp - 0xc]
xor ecx, eax
mov eax, dword [ebp - 8]
add esi, ecx
add eax, 0x5a827999
add esi, dword [ebp + edi*4 - 0x158]
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, dword [ebp - 0xc]
ror ebx, 2
inc edi
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], edx
cmp edi, 0x14
jb 0x40c3d3
mov dword [ebp - 0x18], 0x28
xor eax, ebx
mov ecx, esi
xor eax, edx
rol esi, 5
add esi, eax
mov eax, dword [ebp - 0x14]
add esi, dword [ebp + eax*4 - 0x158]
mov eax, dword [ebp - 8]
add eax, 0x6ed9eba1
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov edx, ecx
ror ebx, 2
mov ecx, dword [ebp - 0x14]
inc ecx
mov dword [ebp - 0x14], ecx
cmp ecx, 0x28
jb 0x40c41a
mov dword [ebp - 0xc], edx
mov edi, edx
mov ecx, ebx
mov edx, esi
xor ecx, edi
rol esi, 5
add esi, dword [ebp - 8]
and ecx, eax
mov eax, ebx
and eax, edi
xor ecx, eax
mov eax, dword [ebp - 0x18]
add ecx, 0x8f1bbcdc
push 0x3c
add ecx, dword [ebp + eax*4 - 0x158]
mov eax, dword [ebp - 4]
add esi, ecx
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, edi
mov dword [ebp - 4], eax
ror ebx, 2
mov edi, edx
inc ecx
pop edx
mov dword [ebp - 0x18], ecx
cmp ecx, edx
jb 0x40c45c
mov dword [ebp - 0xc], edi
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0xc]
xor eax, ebx
mov dword [ebp - 0x10], esi
xor eax, ecx
rol esi, 5
add esi, dword [ebp - 8]
add eax, 0xca62c1d6
add eax, dword [ebp + edx*4 - 0x158]
add esi, eax
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
mov eax, ebx
mov ebx, ecx
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0x10]
ror ebx, 2
inc edx
cmp edx, 0x50
jb 0x40c4ab
add dword [edi + 8], esi
mov eax, ecx
add dword [edi + 0xc], eax
mov eax, dword [ebp - 4]
add dword [edi + 0x14], eax
add dword [edi + 0x10], ebx
mov eax, dword [ebp - 8]
add dword [edi + 0x18], eax
pop edi
pop esi
pop ebx
leave
ret