joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47b2e0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x58f988
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6ed420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x40], ecx
mov eax, dword [ebp - 0x40]
mov dword [eax], vtable.VObj.0
mov ecx, dword [ebp - 0x40]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x40]
mov dword [edx], vtable.ExprItem.0
mov eax, dword [ebp - 0x40]
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x40]
mov dword [ecx], vtable.ExprItem_WindowHandle.0
mov edx, dword [ebp - 0x40]
add edx, 0x10
mov dword [ebp - 0x3c], edx
lea eax, [ebp - 0xd]
push eax
lea ecx, [ebp - 0xe]
push ecx
mov ecx, dword [ebp - 0x3c]
call fcn.004cf580
mov edx, dword [ebp - 0x40]
mov dword [edx + 0xc], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x48], 0
mov ecx, dword [ebp - 0x40]
mov byte [ecx + 0x30], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x34], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x38], 0
mov ecx, dword [ebp - 0x40]
mov byte [ecx + 0x44], 0
mov edx, dword [ebp - 0x40]
mov dword [edx + 0x3c], 0
mov eax, dword [ebp - 0x40]
mov dword [eax + 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x40]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x47f500
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push eax
call fcn.005536f9
add esp, 4
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
jmp 0x47f527
mov ecx, dword [ebp - 0x10]
add ecx, 1
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
cmp edx, dword [ebp - 8]
jge 0x47f64d
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
test edx, edx
jl 0x47f635
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0x100
jge 0x47f635
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
cmp edx, 0xd
jne 0x47f56c
jmp 0x47f51e
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
movzx edx, word [ecx + eax*2]
push edx
call dword [sym.imp.USER32.dll_VkKeyScanW]
mov word [ebp - 4], ax
movsx eax, word [ebp - 4]
cmp eax, 0xffffffff
jne 0x47f5a2
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp + 8]
movzx eax, word [edx + ecx*2]
push eax
call fcn.0047f2e0
add esp, 4
jmp 0x47f633
movsx ecx, word [ebp - 4]
test ecx, ecx
jge 0x47f5b7
movsx edx, word [ebp - 4]
not edx
add edx, 1
mov word [ebp - 4], dx
movsx eax, word [ebp - 4]
sar eax, 8
and eax, 1
mov dword [ebp - 0xc], eax
push 0x14
call dword [sym.imp.USER32.dll_GetKeyState]
movsx ecx, ax
and ecx, 1
je 0x47f61c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x61
jl 0x47f5f2
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x7a
jle 0x47f610
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x41
jl 0x47f61c
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
cmp ecx, 0x5a
jg 0x47f61c
xor edx, edx
cmp dword [ebp - 0xc], 0
sete dl
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 0xc]
push eax
movsx ecx, word [ebp - 4]
and ecx, 0xff
push ecx
call fcn.0047f3d0
add esp, 8
jmp 0x47f648
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp + 8]
movzx ecx, word [eax + edx*2]
push ecx
call fcn.0047f2e0
add esp, 4
jmp 0x47f51e
mov esp, ebp
pop ebp
ret

Function at 0x47f740
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
movzx eax, byte [ebp + 8]
push eax
call fcn.0047f660
add esp, 4
test eax, eax
je 0x47f75d
mov ecx, dword [ebp + 0xc]
or ecx, 1
mov dword [ebp + 0xc], ecx
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0
movzx eax, byte [ebp + 8]
push eax
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
movzx ecx, byte [ebp + 8]
push ecx
call dword [sym.imp.USER32.dll_keybd_event]
pop ebp
ret
Function at 0x47fa70
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x6ef720]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x47fab3
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 8]
movzx eax, word [edx]
test eax, eax
je 0x47fab3
mov ecx, dword [ebp - 8]
movzx edx, word [ecx]
cmp edx, 0x7f
jle 0x47faa8
mov dword [ebp - 4], 1
jmp 0x47fab3
mov eax, dword [ebp - 8]
add eax, 2
mov dword [ebp - 8], eax
jmp 0x47fa8a
cmp dword [ebp - 4], 0
je 0x47faca
mov ecx, dword [ebp + 8]
push ecx
call fcn.0047f500
add esp, 4
jmp 0x47fb8d
mov dword [ebp - 0xc], 0
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00404b00
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
mov edx, dword [ebp - 0x10]
movsx eax, byte [edx]
test eax, eax
je 0x47fb83
mov ecx, dword [ebp - 0x10]
movzx edx, byte [ecx]
cmp edx, 0x7f
jge 0x47fb66
mov eax, dword [ebp - 0x10]
mov cl, byte [eax]
mov byte [ebp - 0x14], cl
cmp byte [ebp - 0x14], 0xa
je 0x47fb18
cmp byte [ebp - 0x14], 0xd
je 0x47fb16
jmp 0x47fb48
jmp 0x47fb5b
push 0
push 0
push 0
push 0xd
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0xd
call dword [sym.imp.USER32.dll_keybd_event]
push 0
push 2
push 0
push 0xd
call dword [sym.imp.USER32.dll_MapVirtualKeyW]
push eax
push 0xd
call dword [sym.imp.USER32.dll_keybd_event]
jmp 0x47fb5b
mov edx, dword [ebp - 0x10]
movsx ax, byte [edx]
movzx ecx, ax
push ecx
call fcn.004048d0
add esp, 4
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
jmp 0x47fb7e
mov eax, dword [ebp - 0x10]
movzx ecx, word [eax]
push ecx
call fcn.004048d0
add esp, 4
mov edx, dword [ebp - 0x10]
add edx, 2
mov dword [ebp - 0x10], edx
jmp 0x47fae7
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov esp, ebp
pop ebp
ret
Function at 0x4caa80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x6a8990
mov eax, dword [ebp + 8]
push eax
call fcn.005577fc
add esp, 8
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setne cl
test ecx, ecx
jne 0x4caacc
mov dword [ebp - 0xc], 0
cmp dword [ebp - 4], 0
je 0x4caac7
mov edx, dword [ebp - 4]
push edx
call fcn.005576ba
add esp, 4
mov eax, dword [ebp - 0xc]
jmp 0x4cab22
mov eax, dword [ebp - 4]
push eax
push 1
push 2
push 0x6b4f6c
call fcn.00557975
add esp, 0x10
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
push 1
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
call fcn.00557975
add esp, 0x10
mov dword [ebp - 0x10], 1
cmp dword [ebp - 4], 0
je 0x4cab1f
mov edx, dword [ebp - 4]
push edx
call fcn.005576ba
add esp, 4
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x4cab30
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
push 0x6a8990
mov eax, dword [ebp + 8]
push eax
call fcn.005577fc
add esp, 8
mov dword [ebp - 4], eax
xor ecx, ecx
cmp dword [ebp - 4], 0
setne cl
test ecx, ecx
jne 0x4cab7c
mov dword [ebp - 8], 0
cmp dword [ebp - 4], 0
je 0x4cab77
mov edx, dword [ebp - 4]
push edx
call fcn.005576ba
add esp, 4
mov eax, dword [ebp - 8]
jmp 0x4cabbb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
push 1
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
mov eax, dword [ebp + 0xc]
push eax
call fcn.00557975
add esp, 0x10
mov dword [ebp - 0xc], 1
cmp dword [ebp - 4], 0
je 0x4cabb8
mov ecx, dword [ebp - 4]
push ecx
call fcn.005576ba
add esp, 4
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x4d3820
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x596373
mov eax, dword fs:[0]
push eax
sub esp, 0x40
mov eax, dword [0x6ed420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
mov dword [eax], vtable.VObj.0
mov ecx, dword [ebp - 0x4c]
mov dword [ecx + 4], 0
mov edx, dword [ebp - 0x4c]
mov dword [edx], vtable.ExprItem.0
mov eax, dword [ebp - 0x4c]
mov dword [eax + 8], 0
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x4c]
mov dword [ecx], vtable.ExprItem_Solver.0
mov ecx, dword [ebp - 0x4c]
add ecx, 0xc
call fcn.00402540
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x4c]
add edx, 0x10
mov dword [ebp - 0x48], edx
lea eax, [ebp - 0x19]
push eax
lea ecx, [ebp - 0x1a]
push ecx
mov ecx, dword [ebp - 0x48]
call fcn.00528a00
mov edx, dword [ebp - 0x4c]
mov eax, dword [ebp + 8]
mov dword [edx + 0x30], eax
mov ecx, dword [ebp - 0x4c]
cmp dword [ecx + 0x30], 0
jne 0x4d38c6
mov edx, dword [ebp - 0x4c]
fld qword [0x6b52d0]
fstp qword [edx + 0x38]
jmp 0x4d38d2
mov eax, dword [ebp - 0x4c]
fld qword [0x6b52c8]
fstp qword [eax + 0x38]
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x4f9c90
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5986b8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6ed420]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebp + 0xc], 0
je 0x4f9cc5
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4f9cc9
xor eax, eax
jmp 0x4f9d1e
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x1c]
call fcn.00426a20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x1c]
call fcn.00426b00
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x14], ecx
lea edx, [ebp - 0x18]
push edx
push 0x4f9d30
call dword [sym.imp.USER32.dll_EnumWindows]
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x20], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x1c]
call fcn.00427490
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x5054c0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
push 1
push 0
push 0
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x505543
mov dword [ebp - 8], 0
mov byte [ebp - 0xc], 0
xor edx, edx
mov byte [ebp - 0xb], dl
push 0
lea eax, [ebp - 8]
push eax
push 2
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 8], 2
jne 0x50552e
movzx ecx, byte [ebp - 0xc]
cmp ecx, 0xff
jne 0x50552e
movzx edx, byte [ebp - 0xb]
cmp edx, 0xfe
jne 0x50552e
jmp 0x505543
push 0
push 0
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esp, ebp
pop ebp
ret
Function at 0x505550
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov eax, dword [ebp - 0x14]
cmp dword [eax + 0x10], 0xffffffff
jne 0x505606
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 8], ecx
push 0
push 0
push 0
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov byte [ebp - 0x10], 0
xor ecx, ecx
mov byte [ebp - 0xf], cl
push 0
lea edx, [ebp - 4]
push edx
push 2
lea eax, [ebp - 0x10]
push eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp dword [ebp - 4], 0
jne 0x5055bd
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 1
jmp 0x5055f1
cmp dword [ebp - 4], 2
jne 0x5055e7
movzx ecx, byte [ebp - 0x10]
cmp ecx, 0xff
jne 0x5055e7
movzx edx, byte [ebp - 0xf]
cmp edx, 0xfe
jne 0x5055e7
mov eax, dword [ebp - 8]
mov dword [eax + 0x10], 1
jmp 0x5055f1
mov ecx, dword [ebp - 8]
mov dword [ecx + 0x10], 0
push 0
push 0
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x51b0d0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
xor eax, eax
jne 0x51b0d9
xor ecx, ecx
jne 0x51b0d9
mov edx, dword [ebp + 0x10]
mov eax, dword [edx]
shl eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp + 0x10]
mov dword [ecx], 0
lea edx, [ebp - 8]
push edx
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 4]
push ecx
push 0
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x51b120
mov eax, dword [ebp - 0xc]
jmp 0x51b17d
cmp dword [ebp - 4], 1
je 0x51b133
cmp dword [ebp - 4], 2
je 0x51b133
mov eax, 0xd
jmp 0x51b17d
cmp dword [ebp + 0xc], 0
je 0x51b171
cmp dword [ebp - 8], 0
je 0x51b169
mov eax, dword [ebp - 8]
xor edx, edx
mov ecx, 2
div ecx
test edx, edx
jne 0x51b160
mov edx, dword [ebp - 8]
shr edx, 1
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax + edx*2 - 2]
test ecx, ecx
je 0x51b167
mov eax, 0xd
jmp 0x51b17d
jmp 0x51b171
xor edx, edx
mov eax, dword [ebp + 0xc]
mov word [eax], dx
mov ecx, dword [ebp - 8]
shr ecx, 1
mov edx, dword [ebp + 0x10]
mov dword [edx], ecx
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5265b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov dword [eax], 0x42444c7
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0xc]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
mov byte [eax + 8], 0xe9
mov ecx, dword [ebp - 8]
add ecx, 0xd
mov edx, dword [ebp + 8]
sub edx, ecx
mov eax, dword [ebp - 8]
mov dword [eax + 9], edx
lea ecx, [ebp - 4]
push ecx
push 0x40
push 0xd
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push 0xd
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov esp, ebp
pop ebp
ret 8

Function at 0x52d7a0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov dword [ebp - 0x24], ecx
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
add edx, 1
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00426c10
push eax
mov ecx, dword [ebp - 0x24]
mov edx, dword [ecx + 4]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
call fcn.00426ca0
mov esp, ebp
pop ebp
ret 4

Function at 0x52da60
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x52da74
xor eax, eax
jmp 0x52da8f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.005574f5
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x52daa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
jne 0x52dab4
xor eax, eax
jmp 0x52dacf
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00557975
add esp, 0x10
mov esp, ebp
pop ebp
ret 0xc

Function at 0x534bbe
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
test ebx, 0xffff0000
jne 0x534be2
cmp dword [edi + 0x54], 0
jne 0x534be2
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.0053ffc5
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.00534b7f
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x53a6ed
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
xor edi, edi
mov dword [ebp - 4], ecx
cmp dword [ebp + 8], ebx
je 0x53a734
call fcn.0053ffc5
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x53a734
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x53a750
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
mov ecx, dword [ebp - 4]
push edi
call fcn.0053a265
mov esi, eax
test edi, edi
je 0x53a74e
test ebx, ebx
je 0x53a74e
push ebx
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x53b597
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x59b96c
call fcn.0055a85e
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x53b5bc
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x53b602
lea ecx, [ebp - 0x10]
call fcn.00402540
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0053ae06
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.0040d870
mov eax, esi
call fcn.0055a936
ret 8

Function at 0x53ec8a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x53ecd2
call fcn.0053ffc5
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x53ecd2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x53ed15
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x53ecfe
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x53ecfe
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x53ed12
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x552f15
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6ed420]
jne 0x552f1f
repz ret
jmp fcn.0055d97c

Function at 0x56e6b0
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.0055c5e5
and dword [ebp - 4], 0
cmp dword [0x742ff4], 0
mov ebx, eax
jne 0x56e761
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x56e812
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x6c5478
push edi
call esi
test eax, eax
je 0x56e812
push eax
call fcn.0055c573
mov dword [esp], 0x6c5468
push edi
mov dword [0x742ff4], eax
call esi
push eax
call fcn.0055c573
mov dword [esp], 0x6c5454
push edi
mov dword [0x742ff8], eax
call esi
push eax
call fcn.0055c573
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x742ffc], eax
call esi
push eax
call fcn.0055c573
pop ecx
mov dword [0x743004], eax
test eax, eax
je 0x56e761
push 0x6c5420
push edi
call esi
push eax
call fcn.0055c573
pop ecx
mov dword [0x743000], eax
mov eax, dword [0x743000]
cmp eax, ebx
je 0x56e7b9
cmp dword [0x743004], ebx
je 0x56e7b9
push eax
call fcn.0055c5ee
push dword [0x743004]
mov esi, eax
call fcn.0055c5ee
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x56e7b9
test edi, edi
je 0x56e7b9
call esi
test eax, eax
je 0x56e7b0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x56e7b0
test byte [ebp - 0xc], 1
jne 0x56e7b9
or dword [ebp + 0x10], 0x200000
jmp 0x56e7f2
mov eax, dword [0x742ff8]
cmp eax, ebx
je 0x56e7f2
push eax
call fcn.0055c5ee
pop ecx
test eax, eax
je 0x56e7f2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x56e7f2
mov eax, dword [0x742ffc]
cmp eax, ebx
je 0x56e7f2
push eax
call fcn.0055c5ee
pop ecx
test eax, eax
je 0x56e7f2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x742ff4]
call fcn.0055c5ee
pop ecx
test eax, eax
je 0x56e812
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x56e814
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x57cc20
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x10
push ebx
mov bl, byte [edx + 8]
cmp bl, 3
je 0x57cdca
mov ecx, dword [esp + 0x20]
push ebp
mov ebp, dword [edx]
push esi
xor esi, esi
push edi
mov dword [esp + 0x24], esi
test bl, 2
je 0x57cc78
movzx eax, byte [edx + 9]
movzx esi, byte [ecx]
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 1]
mov dword [esp + 0x10], edi
mov edi, eax
sub edi, esi
movzx esi, byte [ecx + 2]
sub eax, esi
mov esi, dword [esp + 0x24]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
mov edi, 3
jmp 0x57cc8b
movzx eax, byte [ecx + 3]
movzx edi, byte [edx + 9]
sub edi, eax
mov dword [esp + 0x10], edi
mov edi, 1
test bl, 4
je 0x57cc9f
movzx ecx, byte [ecx + 4]
movzx eax, byte [edx + 9]
sub eax, ecx
mov dword [esp + edi*4 + 0x10], eax
inc edi
xor ecx, ecx
xor eax, eax
cmp edi, ecx
jle case.0x57cce6.3
jmp 0x57ccb0
cmp dword [esp + eax*4 + 0x10], ecx
jg 0x57ccbc
mov dword [esp + eax*4 + 0x10], ecx
jmp 0x57ccc1
mov esi, 1
inc eax
cmp eax, edi
jl 0x57ccb0
cmp si, cx
je case.0x57cce6.3
movzx eax, byte [edx + 9]
add eax, 0xfffffffe
cmp eax, 0xe
ja case.0x57cce6.3
movzx eax, byte [eax + 0x57cde4]
jmp dword [eax*4 + 0x57cdd0]
mov edx, dword [edx + 4]
mov eax, dword [esp + 0x28]
cmp edx, ecx
jbe case.0x57cce6.3
lea esp, [esp]
mov cl, byte [eax]
shr cl, 1
and cl, 0x55
mov byte [eax], cl
inc eax
sub edx, 1
jne 0x57cd00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov edi, dword [edx + 4]
mov edx, dword [esp + 0x10]
mov esi, dword [esp + 0x28]
mov ecx, edx
mov eax, pe_nt_image_headers32
sar eax, cl
mov ebx, 0xf
sar ebx, cl
and al, 0xf0
or al, bl
test edi, edi
jbe case.0x57cce6.3
mov edi, edi
mov bl, byte [esi]
mov cl, dl
shr bl, cl
inc esi
and bl, al
sub edi, 1
mov byte [esi - 1], bl
jne 0x57cd40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x57cce6.3
mov eax, ebx
xor edx, edx
div edi
inc ebx
inc esi
mov cl, byte [esp + edx*4 + 0x10]
shr byte [esi - 1], cl
cmp ebx, ebp
jb 0x57cd66
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
mov esi, dword [esp + 0x28]
imul ebp, edi
xor ebx, ebx
test ebp, ebp
jbe case.0x57cce6.3
mov edi, edi
xor edx, edx
mov eax, ebx
div edi
movzx ax, byte [esi]
mov ecx, 0x100
imul ax, cx
movzx ecx, byte [esi + 1]
add ax, cx
inc esi
inc ebx
inc esi
movzx ecx, word [esp + edx*4 + 0x10]
shr ax, cl
movzx eax, ax
mov edx, eax
shr edx, 8
mov byte [esi - 2], dl
mov byte [esi - 1], al
cmp ebx, ebp
jb 0x57cd90
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret