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

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov eax, dword [esi]
call dword [eax + 0x74]
test eax, eax
je case.0x4f7c4d.10
cmp dword [esi + 0x1bc], 0xffffffff
jne 0x4f7c25
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x8c]
test eax, eax
je 0x4f7c25
mov eax, dword [ebp + 8]
cmp eax, 0xd
je 0x4f7c0b
cmp eax, 0x20
jne case.0x4f7c4d.10
mov ecx, dword [esi + 0xc0]
push 0
push dword [esi + 0x40]
call fcn.004b1d30
mov eax, 1
pop esi
pop ebp
ret 8
lea eax, [ebp + 8]
push eax
push dword [esi + 0xc0]
call fcn.00473140
mov eax, dword [ebp + 8]
add esp, 8
add eax, 0xfffffff7
cmp eax, 0x1f
ja case.0x4f7c4d.10
movzx eax, byte [eax + 0x4f7e24]
jmp dword [eax*4 + 0x4f7df8]
push 1
push 0xffffffffffffffff
mov ecx, esi
call fcn.004f6d00
push eax
mov ecx, esi
call fcn.004f8a80
mov eax, 1
pop esi
pop ebp
ret 8
push 0xffffffffffffffff
jmp 0x4f7c56
push 0xffffffffffffffff
push dword [esi + 0x1bc]
mov ecx, esi
call fcn.004f7070
push eax
mov ecx, esi
call fcn.004f8a80
mov eax, 1
pop esi
pop ebp
ret 8
push 1
push dword [esi + 0x1bc]
mov ecx, esi
call fcn.004f7070
push eax
mov ecx, esi
call fcn.004f8a80
mov eax, 1
pop esi
pop ebp
ret 8
push 0xffffffffffffffff
push dword [esi + 0x1bc]
mov ecx, esi
call fcn.004f6db0
cmp eax, 0xffffffff
jne 0x4f7c5f
mov ecx, dword [esi + 0xb8]
push 1
push 0
push 1
push eax
push dword [esi + 0x40]
call fcn.00495060
cmp eax, dword [esi + 0x40]
jne case.0x4f7c4d.10
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
call fcn.004f6d00
cmp eax, 0xffffffff
je case.0x4f7c4d.10
push eax
mov ecx, esi
call fcn.004f8a80
mov eax, 1
pop esi
pop ebp
ret 8
push 0xffffffffffffffff
push dword [esi + 0x1bc]
mov ecx, esi
call fcn.004f6ee0
push eax
mov ecx, esi
call fcn.004f8a80
mov eax, 1
pop esi
pop ebp
ret 8
push 1
push dword [esi + 0x1bc]
mov ecx, esi
call fcn.004f6ee0
push eax
mov ecx, esi
call fcn.004f8a80
mov eax, 1
pop esi
pop ebp
ret 8
push 1
push dword [esi + 0x1bc]
mov ecx, esi
call fcn.004f6db0
cmp eax, 0xffffffff
jne 0x4f7c5f
mov ecx, dword [esi + 0xb8]
push 1
push 0
push 1
push 1
push dword [esi + 0x40]
call fcn.00495060
cmp eax, dword [esi + 0x40]
jne case.0x4f7c4d.10
push 1
jmp 0x4f7ceb
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, dword [esi + 0x1bc]
test ax, ax
js 0x4f7dc2
push 1
push ecx
mov ecx, esi
call fcn.004f6d00
cmp eax, dword [esi + 0x1bc]
jle case.0x4f7c4d.10
push eax
mov ecx, esi
call fcn.004f8a80
mov eax, 1
pop esi
pop ebp
ret 8
push 0xffffffffffffffff
push ecx
mov ecx, esi
call fcn.004f6d00
cmp eax, dword [esi + 0x1bc]
jge case.0x4f7c4d.10
push eax
mov ecx, esi
call fcn.004f8a80
mov eax, 1
pop esi
pop ebp
ret 8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x98]
xor eax, eax
pop esi
pop ebp
ret 8
Function at 0x4fb000
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [esi + 0x60]
test edi, edi
je 0x4fb096
mov eax, dword [ebp + 8]
shr eax, 8
push ebx
mov ebx, dword [edi + 0x34]
cmp al, 2
jne 0x4fb095
test ebx, ebx
je 0x4fb095
push dword [ebp + 0x10]
lea eax, [edi + 4]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
test eax, eax
jne 0x4fb04a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x24]
cmp dword [eax + 0x14], 0
jne 0x4fb04a
mov ecx, dword [ebx + 0x2c]
jmp 0x4fb06e
mov eax, dword [edi + 0x34]
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebx + 0x40]
cmp dword [eax + 0x58], 0
cmovne edx, dword [ebp + 0x10]
add edx, dword [edi + 0x1c]
cmp edx, ecx
jl 0x4fb06e
mov eax, dword [ebx + 0x3c]
add eax, ecx
mov ecx, edx
cmp edx, eax
cmovge ecx, eax
push ecx
mov ecx, esi
call fcn.004fa950
cmp dword [ebp + 8], 0x202
je 0x4fb08c
push 1
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
js 0x4fb095
push 0
mov ecx, esi
call fcn.004fa800
pop ebx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x502470
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1b55
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x20], 0xaa0055
mov dword [ebp - 0x1c], 0xaa0055
mov dword [ebp - 0x18], 0xaa0055
mov dword [ebp - 0x14], 0xaa0055
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x34], vtable.CBitmap.0
lea eax, [ebp - 0x20]
mov dword [ebp - 4], 0
push eax
push 1
push 1
push 8
push 8
call dword [sym.imp.GDI32.dll_CreateBitmap]
push eax
lea ecx, [ebp - 0x34]
call fcn.005532aa
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], vtable.CBrush.0
push dword [ebp - 0x30]
mov byte [ebp - 4], 1
call dword [sym.imp.GDI32.dll_CreatePatternBrush]
push eax
lea ecx, [ebp - 0x2c]
call fcn.005532aa
lea eax, [ebp - 0x2c]
mov ecx, ebx
push eax
call fcn.00553974
mov esi, dword [ebx]
mov ecx, edi
push 0xf
mov dword [ebp - 0x3c], eax
call fcn.004a7900
push eax
mov ecx, ebx
call dword [esi + 0x2c]
mov esi, dword [ebp - 0x24]
mov ecx, edi
push 0x14
mov ebx, eax
mov esi, dword [esi]
call fcn.004a7900
mov ecx, dword [ebp - 0x24]
push eax
call dword [esi + 0x30]
mov edi, eax
mov eax, dword [ebp - 0x38]
push 0xf00021
mov edx, dword [eax + 4]
mov ecx, dword [eax + 0xc]
mov esi, dword [eax]
sub ecx, edx
push ecx
mov ecx, dword [eax + 8]
sub ecx, esi
push ecx
push edx
push esi
mov esi, dword [ebp - 0x24]
push dword [esi + 4]
call dword [sym.imp.GDI32.dll_PatBlt]
push dword [ebp - 0x3c]
mov ecx, esi
call fcn.00553974
mov eax, dword [esi]
mov ecx, esi
push ebx
call dword [eax + 0x2c]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x30]
lea ecx, [ebp - 0x2c]
call fcn.0055341a
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x2c], vtable.CBrush.0
call fcn.0040ba46
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x34], vtable.CBitmap.0
call fcn.0040ba46
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret 8
Function at 0x50c0c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c1125
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ecx + 0x1c]
mov ecx, edi
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
push 0x38
mov dword [ebp - 0x24], esi
call fcn.004a7900
push eax
lea eax, [ebp + 0x10]
mov ecx, esi
push eax
call fcn.00556ae4
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x18]
push 0xc5c5c5
sub eax, ecx
push 1
push eax
mov eax, dword [ebp + 0x1c]
dec eax
push eax
push ecx
mov ecx, esi
call fcn.00556a84
lea eax, [edi + 0x114]
push eax
push esi
lea ecx, [ebp - 0x34]
call fcn.004718c0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x1c]
push 0
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x20]
push 0xfffffffffffffff6
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.USER32.dll_InflateRect]
mov esi, dword [esi]
mov ecx, edi
push 0x2c
call fcn.004a7900
mov edi, dword [ebp - 0x24]
mov ecx, edi
push eax
call dword [esi + 0x30]
mov eax, dword [ebx + 0x2c]
sub eax, 0x10
push eax
call fcn.00405ecf
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x24], esi
mov eax, dword [edi]
lea ecx, [ebp - 0x20]
push 0x8024
push ecx
push dword [esi - 0xc]
mov ecx, edi
mov byte [ebp - 4], 1
push esi
call dword [eax + 0x68]
mov byte [ebp - 4], 0
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x50c1c3
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
lea ecx, [ebp - 0x34]
call fcn.00471c80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret 0x18
Function at 0x510ae0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
test esi, esi
je 0x510cd9
mov edi, dword [esi + 4]
test edi, edi
je 0x510cd9
push edi
mov dword [ebp + 8], 0
call fcn.00513010
test eax, eax
je 0x510b83
mov ecx, edi
call fcn.004c17b0
test eax, eax
je 0x510cd9
cvtsi2ss xmm0, dword [esi]
mov ebx, dword [eax + 0x14]
movss dword [ebp + 0xc], xmm0
call fcn.00512de0
mov edi, eax
mov edx, dword [edi + 0x38]
test edx, edx
jne 0x510b4e
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5f0a14
push dword [edi]
call eax
mov dword [edi + 0x38], eax
mov edx, eax
fld dword [ebp + 0xc]
lea eax, [ebp + 8]
push eax
push 0
push ecx
movzx ecx, bl
shl ecx, 8
movzx eax, bx
shr eax, 8
or ecx, eax
mov eax, ebx
shr eax, 0x10
and ebx, 0xff000000
shl ecx, 8
movzx eax, al
or ecx, eax
or ecx, ebx
fstp dword [esp]
push ecx
call edx
jmp 0x510bd8
push dword [ebp + 0xc]
mov ecx, ebx
push edi
call fcn.00510700
mov ebx, eax
test ebx, ebx
je 0x510bd8
cvtsi2ss xmm0, dword [esi]
movss dword [ebp + 0xc], xmm0
call fcn.00512de0
mov edi, eax
mov eax, dword [edi + 0x3c]
test eax, eax
jne 0x510bbc
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x5f0a24
push dword [edi]
call eax
mov dword [edi + 0x3c], eax
fld dword [ebp + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0
push ecx
fstp dword [esp]
push ebx
call eax
push ebx
call fcn.00512de0
push eax
call fcn.00512cf0
cmp dword [ebp + 8], 0
je 0x510cd9
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x510c2d
call fcn.00486e40
mov ecx, dword [esi + 8]
cmp eax, 1
jne 0x510c10
push 0
call fcn.00486db0
fstp dword [ebp + 0xc]
fld dword [ebp + 0xc]
lea eax, [ebp - 8]
fst dword [ebp - 8]
fstp dword [ebp - 4]
push 2
jmp 0x510c1e
call fcn.00486e40
mov ecx, dword [esi + 8]
push eax
call fcn.00486e50
push eax
push dword [ebp + 8]
call fcn.00512de0
push eax
call fcn.00512d50
mov edi, dword [esi + 0x14]
test edi, edi
je 0x510c64
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
call fcn.00512de0
mov ebx, eax
mov eax, dword [ebx + 0xb0]
test eax, eax
jne 0x510c5e
push 0x5f0b28
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0xb0], eax
push edi
push dword [ebp + 0xc]
call eax
mov edi, dword [esi + 0xc]
test edi, edi
je 0x510c9b
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], eax
call fcn.00512de0
mov ebx, eax
mov eax, dword [ebx + 0xb4]
test eax, eax
jne 0x510c95
push 0x5f0b3c
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0xb4], eax
push edi
push dword [ebp + 0xc]
call eax
mov esi, dword [esi + 0x10]
test esi, esi
je 0x510ccd
mov ebx, dword [ebp + 8]
call fcn.00512de0
mov edi, eax
mov eax, dword [edi + 0xb8]
test eax, eax
jne 0x510cc9
push 0x5f0b50
push dword [edi]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [edi + 0xb8], eax
push esi
push ebx
call eax
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x512df0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], 0
call fcn.00512de0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp dword [eax + 4], 0
je 0x512e63
mov esi, dword [ebx + 4]
mov ebx, dword [ebx + 8]
call fcn.00512de0
cmp esi, ebx
je 0x512e47
mov ecx, dword [eax + 0x24]
mov dword [ebp - 8], eax
test ecx, ecx
jne 0x512e3d
push 0x5f09b4
push dword [eax]
call edi
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x24], eax
mov ecx, eax
lea eax, [ebp - 4]
push eax
push ebx
push esi
call ecx
jmp 0x512e63
mov ebx, eax
mov eax, dword [ebx + 0x28]
test eax, eax
jne 0x512e5c
push 0x5f09c8
push dword [ebx]
call edi
mov dword [ebx + 0x28], eax
lea ecx, [ebp - 4]
push ecx
push esi
call eax
mov ebx, dword [ebp - 4]
test ebx, ebx
jne 0x512e73
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.00512de0
mov esi, eax
mov eax, dword [esi + 0x18]
test eax, eax
jne 0x512e8d
push 0x5f0974
push dword [esi]
call edi
mov dword [esi + 0x18], eax
push 2
push ebx
call eax
mov ebx, dword [ebp - 4]
call fcn.00512de0
mov esi, eax
mov eax, dword [esi + 0x1c]
test eax, eax
jne 0x512eaf
push 0x5f0984
push dword [esi]
call edi
mov dword [esi + 0x1c], eax
push 2
push ebx
call eax
mov ebx, dword [ebp - 4]
call fcn.00512de0
mov esi, eax
mov eax, dword [esi + 0x14]
test eax, eax
jne 0x512ed1
push 0x5f095c
push dword [esi]
call edi
mov dword [esi + 0x14], eax
push 4
push ebx
call eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5131b0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
push edi
mov eax, dword [esi]
call dword [eax + 0x54]
mov edi, eax
test edi, edi
jne 0x5131e0
push dword [ebp + 0x14]
mov ecx, esi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005130a0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
mov ebx, dword [ebx]
test ebx, ebx
cmovle ebx, eax
call fcn.00512de0
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x1c]
test ecx, ecx
jne 0x513211
push 0x5f0984
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x1c], eax
mov ecx, eax
push 2
push edi
call ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x14]
mov ecx, esi
push dword [ebp + 8]
push eax
call fcn.00512ee0
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x5132cd
lea ecx, [ebp - 0x14]
push ecx
push eax
mov ecx, esi
call fcn.00510700
mov dword [ebp + 0x14], eax
test eax, eax
je 0x5132cd
call fcn.00512de0
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x51326d
push 0x5f095c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x14], eax
mov ecx, eax
push 4
push edi
call ecx
call fcn.00512de0
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x68]
test ecx, ecx
jne 0x513296
push 0x5f0adc
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x68], eax
mov ecx, eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x14]
push edi
call ecx
call fcn.00512de0
mov dword [ebp - 4], eax
mov ecx, dword [eax + 0x44]
test ecx, ecx
jne 0x5132c8
push 0x5f0a48
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x44], eax
mov ecx, eax
push dword [ebp + 0x14]
call ecx
test ebx, ebx
jle 0x513367
lea eax, [ebp - 0x14]
mov ecx, esi
push eax
push dword [ebp + 0x10]
call fcn.00510ae0
mov dword [ebp + 0x10], eax
test eax, eax
je 0x513367
call fcn.00512de0
mov dword [ebp + 0x14], eax
mov ecx, dword [eax + 0x14]
test ecx, ecx
jne 0x51330e
push 0x5f095c
push dword [eax]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [ebp + 0x14]
mov dword [ecx + 0x14], eax
mov ecx, eax
not ebx
and ebx, 1
shl ebx, 2
push ebx
push edi
call ecx
call fcn.00512de0
mov ebx, eax
mov eax, dword [ebx + 0x58]
test eax, eax
jne 0x513338
push 0x5f0a98
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x58], eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp + 0x10]
push edi
call eax
call fcn.00512de0
mov ebx, eax
mov eax, dword [ebx + 0x48]
test eax, eax
jne 0x513362
push 0x5f0a58
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebx + 0x48], eax
push dword [ebp + 0x10]
call eax
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0x58]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5141c0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5c2407
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x634b28]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.005467aa
mov dword [ebp - 4], 0
mov dword [esi], vtable.CXTPResourceImages.0
call fcn.0054671f
mov ecx, eax
test ecx, ecx
je 0x514333
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x20], eax
mov byte [ebp - 4], 1
call fcn.0054671f
mov ecx, eax
test ecx, ecx
je 0x514333
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi + 0x24], eax
lea ebx, [esi + 0x54]
mov byte [ebp - 4], 2
mov ecx, ebx
mov dword [ebp - 0x14], ebx
call fcn.0055295f
mov dword [ebx], vtable.CXTPResourceImages::CBitmapDC.0
mov dword [ebx + 0x10], 0
push 0xa
lea ecx, [esi + 0x74]
call fcn.00514110
push 0xa
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 4
call fcn.00568611
push 0
push 0xc7
lea ecx, [esi + 0x90]
mov byte [ebp - 4], 5
call fcn.0056646a
push 0
push 0x65
lea ecx, [esi + 0x74]
call fcn.00474c90
mov edi, esi
mov dword [edi + 0x34], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
mov dword [edi + 0x70], 0
mov dword [edi + 0x50], 0
call fcn.005527d5
push 0
push 0
mov ecx, edi
mov eax, dword [eax + 8]
push eax
call fcn.00516910
lea eax, [edi + 0x6c]
mov dword [eax], 0
push eax
push 0x200
push 0x200
push 0
call fcn.0047da20
add esp, 0x10
mov dword [edi + 0x68], eax
push 0
call dword [sym.imp.USER32.dll_GetDC]
mov esi, eax
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
push eax
mov ecx, ebx
call fcn.00553268
push esi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
lea eax, [edi + 0x38]
push eax
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.00404d7e
int3
Function at 0x5161d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call fcn.005165a0
mov ecx, dword [esi + 0x24]
mov eax, dword [esi + 0x28]
push 0x5f0dd4
cmp dword [ecx - 0xc], 0
je 0x516281
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x516212
mov eax, dword [esi + 0x24]
cmp dword [eax - 0xc], 0
jne 0x516212
push dword [esi + 0x28]
mov ecx, esi
call fcn.005156b0
mov edi, eax
xor ebx, ebx
test edi, edi
je 0x516247
push edi
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_LoadResource]
xor ebx, ebx
test eax, eax
je 0x516247
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [esi + 0x28]
mov dword [esi + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, dword [esi + 0x2c]
mov ebx, 1
mov dword [esi + 0x30], eax
mov ecx, esi
call fcn.00515d60
mov ecx, dword [esi + 0x70]
test ecx, ecx
je 0x516265
push 0
push 0
push 0
push 0x294f
call fcn.00524680
push 0
push 0x5f0e10
push 0x5f0e34
mov ecx, esi
call fcn.005157f0
pop edi
mov dword [esi + 0x50], eax
mov eax, ebx
pop esi
pop ebx
ret
push 0x5f0de8
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x5161fd
push 0x12
push 0x5f0de8
lea ecx, [esi + 0x24]
call fcn.004055f4
jmp 0x516218

Function at 0x51c340
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x51c378
cmp dword [ebp + 0xc], 0xf0
jae 0x51c368
push eax
call fcn.00525c60
push 2
call fcn.00525bb0
add esp, 8
mov dword [esi], eax
push 0xf0
push 0
push eax
call fcn.0057e5f0
add esp, 0xc
pop esi
pop ebp
ret
Function at 0x520bd0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x634b28]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
mov al, byte [edx + 8]
mov byte [ebp - 0x15], al
cmp al, 3
je 0x520db9
mov cl, byte [edx + 9]
test al, 2
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [edx]
push edi
movzx edi, cl
mov ecx, edi
je 0x520c33
movzx eax, byte [eax]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x14], ecx
mov ecx, edi
movzx eax, byte [eax + 1]
sub ecx, eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], ecx
mov ecx, edi
movzx eax, byte [eax + 2]
sub ecx, eax
mov dword [ebp - 0xc], ecx
mov ecx, 3
jmp 0x520c41
movzx eax, byte [eax + 3]
sub ecx, eax
mov dword [ebp - 0x14], ecx
mov ecx, 1
test byte [ebp - 0x15], 4
mov dword [ebp - 0x1c], ecx
je 0x520c5b
mov eax, dword [ebp + 0x10]
movzx eax, byte [eax + 4]
sub edi, eax
mov dword [ebp + ecx*4 - 0x14], edi
inc ecx
mov dword [ebp - 0x1c], ecx
xor eax, eax
test ecx, ecx
je case.0x520ca5.3
xor edx, edx
cmp dword [ebp + eax*4 - 0x14], 0
jg 0x520c78
mov dword [ebp + eax*4 - 0x14], 0
jmp 0x520c7d
mov edx, 1
inc eax
cmp eax, ecx
jl 0x520c67
test dx, dx
mov edx, dword [ebp + 8]
je case.0x520ca5.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x520ca5.3
movzx eax, byte [eax + 0x520ddc]
jmp dword [eax*4 + 0x520dc8]
mov ecx, dword [edx + 4]
test ecx, ecx
je case.0x520ca5.3
mov al, byte [esi]
lea esi, [esi + 1]
shr al, 1
and al, 0x55
mov byte [esi - 1], al
sub ecx, 1
jne 0x520cb7
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
mov ebx, 0xf0
mov edx, dword [edx + 4]
mov eax, 0xf
sar ebx, cl
and bl, 0xf0
sar eax, cl
or bl, al
test edx, edx
je case.0x520ca5.3
lea ebx, [ebx]
mov al, byte [esi]
lea esi, [esi + 1]
shr al, cl
mov ecx, dword [ebp - 0x14]
and al, bl
mov byte [esi - 1], al
sub edx, 1
jne 0x520d00
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor edi, edi
test ebx, ebx
je case.0x520ca5.3
mov eax, edi
lea esi, [esi + 1]
xor edx, edx
inc edi
div ecx
mov cl, byte [ebp + edx*4 - 0x14]
shr byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
cmp edi, ebx
jb 0x520d32
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret
imul ebx, ecx
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x24], ebx
test ebx, ebx
je case.0x520ca5.3
mov edi, 0x100
nop
xor edx, edx
lea esi, [esi + 1]
div ecx
movzx ecx, byte [esi - 1]
lea esi, [esi + 1]
movzx eax, di
mov edi, ecx
imul edi, eax
movzx eax, byte [esi - 1]
movzx ecx, word [ebp + edx*4 - 0x14]
add di, ax
shr di, cl
movzx ecx, di
mov edi, 0x100
mov eax, ecx
mov byte [esi - 1], cl
mov ecx, dword [ebp - 0x1c]
shr eax, 8
mov byte [esi - 2], al
mov eax, dword [ebp - 0x20]
inc eax
mov dword [ebp - 0x20], eax
cmp eax, dword [ebp - 0x24]
jb 0x520d70
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0057b6ac
mov esp, ebp
pop ebp
ret