joyce8/EMBER2024-capa huggingface dataset:
Function at 0x662ab0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x4c
push ebx
push ebp
push esi
push edi
mov esi, ecx
mov dword [esp + 0x18], edx
or edi, 0xffffffff
mov dword [esp + 0x1c], esi
xorps xmm0, xmm0
lea edx, [esp + 0x28]
push edi
mov eax, dword [esi + 0x1c8]
push edi
movlpd qword [esp + 0x28], xmm0
mov dword [esp + 0x1c], eax
call fcn.00662200
add esp, 8
test edx, edx
jl 0x662be0
jg 0x662af7
test eax, eax
jb 0x662be0
mov ebx, dword [esp + 0x24]
mov ebp, dword [esp + 0x20]
nop
mov edx, dword [esp + 0x28]
test byte [edx + 5], 2
jne 0x662bcd
movzx ecx, byte [edx + 0x11]
movzx eax, byte [edx + 0x10]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
cmp ecx, dword [esp + 0x14]
jne 0x662b97
add esi, 0x78
lea edx, [esp + 0x28]
mov ecx, esi
call fcn.00658510
test esi, esi
je 0x662b83
cmp dword [esi], 0
je 0x662b83
push 1
lea edx, [esp + 0x3c]
mov ecx, esi
call fcn.006588e0
add esp, 4
test eax, eax
je 0x662b83
jle 0x662b41
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x38]
call fcn.006620a0
mov ecx, eax
cmp edi, 0xffffffff
je 0x662b7f
lea eax, [ecx + edi]
sar eax, 2
cdq
add ebp, eax
adc ebx, edx
mov edi, ecx
jmp 0x662b41
lea ecx, [esp + 0x28]
call fcn.00658030
and eax, edx
cmp eax, 0xffffffff
jne 0x662bbc
mov esi, dword [esp + 0x1c]
push 0xffffffffffffffff
push 0xffffffffffffffff
lea edx, [esp + 0x30]
mov ecx, esi
call fcn.00662200
add esp, 8
test edx, edx
jl 0x662bcd
jg 0x662b00
test eax, eax
jb 0x662bcd
jmp 0x662b00
lea ecx, [esp + 0x28]
call fcn.00658030
sub eax, ebp
mov ebp, eax
sbb edx, ebx
mov ebx, edx
test ebx, ebx
jg 0x662be8
jl 0x662bd7
test ebp, ebp
jae 0x662be8
xorps xmm0, xmm0
movlpd qword [esp + 0x20], xmm0
mov ebp, dword [esp + 0x20]
mov ebx, dword [esp + 0x24]
pop edi
pop esi
mov eax, ebp
mov edx, ebx
pop ebp
pop ebx
add esp, 0x4c
ret
Function at 0x668360
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x668379
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x6683ee
mov byte [esi + 4], 1
push ebx
push ebp
push edi
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov ebx, dword [esp + 0x14]
mov eax, dword [ebx + 0x10]
lea ebp, [ebx + 0x10]
inc eax
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
test edi, edi
je 0x6683db
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, eax
test ecx, ecx
je 0x6683d4
cmp dword [ebx + 0x14], 0x10
jb 0x6683b1
mov ebx, dword [ebx]
mov eax, dword [ebp]
push ebx
inc eax
push eax
push ecx
call fcn.00671254
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
push 1
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
jne 0x6683db
push edi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
cmp byte [esi + 4], 0
je 0x6683eb
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [esi + 4], 0
pop edi
pop ebp
pop ebx
pop esi
ret 4

Function at 0x668400
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x24
mov eax, dword [0x71a00c]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [0x72ebc4]
mov dword [esp + 0x10], 0
cmp byte [edi + 4], 0
jne 0x66843e
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x668468
mov byte [edi + 4], 1
push 1
call dword [sym.imp.USER32.dll_GetClipboardData]
mov ebx, eax
test ebx, ebx
jne 0x668476
cmp byte [edi + 4], al
je 0x66845a
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [edi + 4], bl
push 0x6af8db
mov ecx, esi
call fcn.004022b0
jmp 0x6684e5
push 0x6af8e2
mov ecx, esi
call fcn.004022b0
jmp 0x6684e5
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x66849e
cmp byte [edi + 4], al
je 0x668490
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [edi + 4], 0
push 0x6af8e1
mov ecx, esi
call fcn.004022b0
jmp 0x6684e5
push eax
lea ecx, [esp + 0x18]
call fcn.004022b0
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp byte [edi + 4], 0
je 0x6684bf
call dword [sym.imp.USER32.dll_CloseClipboard]
mov byte [edi + 4], 0
lea eax, [esp + 0x14]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], 0
mov ecx, esi
push eax
mov byte [esi], 0
call fcn.00404170
lea ecx, [esp + 0x14]
call fcn.00402270
mov ecx, dword [esp + 0x2c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0066bc45
mov esp, ebp
pop ebp
ret 4

Function at 0x669360
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x669378
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov eax, dword [esp + 8]
cmp dword [eax + 0x14], 0x10
jb 0x669384
mov eax, dword [eax]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [esi + 4], eax
pop esi
test eax, eax
jne 0x66939c
xor al, al
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
setne al
ret 4
Function at 0x669980
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [ecx + 4]
sub esp, 8
test ecx, ecx
jne 0x669992
xor al, al
add esp, 8
ret 8
mov eax, dword [esp + 0xc]
mov dword [esp + 4], 4
mov dword [esp], 4
cmp dword [eax + 0x14], 0x10
jb 0x6699ad
mov eax, dword [eax]
lea edx, [esp]
push edx
push dword [esp + 0x14]
lea edx, [esp + 0xc]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
sete al
add esp, 8
ret 8

Function at 0x6699d0
Capabilities:
Query or enumerate registry value

Disassembly:
mov eax, 0x400c
call fcn.00684280
mov eax, dword [0x71a00c]
xor eax, esp
mov dword [esp + 0x4008], eax
push ebx
mov ebx, dword [esp + 0x4018]
push esi
mov esi, dword [esp + 0x4018]
push edi
mov edi, dword [ecx + 4]
test edi, edi
jne 0x669a04
xor al, al
jmp 0x669a78
push 0x4000
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 1
push 0
push eax
mov dword [esp + 0x18], 0x800
call fcn.0066eb00
add esp, 0xc
cmp dword [esi + 0x14], 0x10
jb 0x669a30
mov esi, dword [esi]
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
push 0
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x669a00
cmp byte [esp + 0x14], al
jne 0x669a57
xor ecx, ecx
jmp 0x669a69
lea ecx, [esp + 0x14]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x669a60
sub ecx, edx
push ecx
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call fcn.004023e0
mov al, 1
mov ecx, dword [esp + 0x4014]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0066bc45
add esp, 0x400c
ret 8

Function at 0x66abb0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
mov esi, ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
jne 0x66abcb
pop esi
xor al, al
pop ebx
ret
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
je 0x66abf3
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x66abf3
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x66abf9
pop edi
pop esi
xor al, al
pop ebx
ret
mov esi, dword [esp + 0x14]
mov ecx, esi
push edi
call fcn.00404500
push edi
push ebx
push dword [esi]
call fcn.006843a0
add esp, 0xc
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x66b0c0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x4c
mov eax, dword [0x71a00c]
xor eax, esp
mov dword [esp + 0x48], eax
push ebx
push esi
push edi
push 0x3c
lea eax, [esp + 0x18]
mov dword [esp + 0x14], 0x40
push 0
push eax
mov edi, edx
mov ebx, ecx
call fcn.0066eb00
add esp, 0xc
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
mov esi, dword [esp + 0x18]
mov ecx, esi
sub ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
mov eax, edx
sbb eax, dword [esp + 0x24]
shrd ecx, eax, 0x14
shrd esi, edx, 0x14
mov dword [edi], ecx
mov ecx, dword [esp + 0x54]
pop edi
mov dword [ebx], esi
pop esi
pop ebx
xor ecx, esp
shr eax, 0x14
shr edx, 0x14
call fcn.0066bc45
mov esp, ebp
pop ebp
ret
Function at 0x67e3bf
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0067e23e

Function at 0x67fcb7
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0067f977
Function at 0x401000
Capabilities:
Accept command line arguments
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa88
push ebx
push esi
push edi
push 0x11
pop ecx
xor eax, eax
lea edi, [ebp - 0x60]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x60]
push eax
mov dword [ebp - 0x60], 0x44
call dword [sym.imp.uwinapi.dll_GetStartupInfoW]
mov esi, dword [sym.imp.KERNEL32.dll_GetCommandLineW]
call esi
mov ebx, eax
lea eax, [ebp - 8]
xor edi, edi
push eax
mov dword [ebp - 8], edi
call esi
push eax
call dword [sym.imp.uwinapi.dll_CommandLineToArgvW]
push ebx
mov ebx, dword [sym.imp.MSVCR71.dll_wcslen]
call ebx
mov dword [esp], str._base
mov dword [ebp - 0xc], eax
call ebx
pop ecx
mov ecx, dword [ebp - 0xc]
add ecx, eax
lea eax, [ecx + ecx + 4]
add eax, 3
and eax, 0xfffffffc
call fcn.004014c0
mov ebx, esp
call esi
push eax
push ebx
call dword [sym.imp.MSVCR71.dll_wcscpy]
mov esi, dword [sym.imp.MSVCR71.dll_wcscat]
push 0x4020bc
push ebx
call esi
push str._base
push ebx
call esi
add esp, 0x18
push 0x104
lea eax, [ebp - 0x268]
push eax
push edi
call dword [sym.imp.uwinapi.dll_GetModuleFileNameW]
lea eax, [ebp - 0x880]
push eax
lea eax, [ebp - 0xa88]
push eax
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.MSVCR71.dll__wsplitpath]
push 0x4020c0
push str.soffice
lea eax, [ebp - 0x678]
push eax
lea eax, [ebp - 0x470]
push eax
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.MSVCR71.dll__wmakepath]
add esp, 0x28
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x60]
push eax
push edi
push edi
push edi
push 1
push edi
push edi
push ebx
lea eax, [ebp - 0x268]
push eax
call dword [sym.imp.uwinapi.dll_CreateProcessW]
test eax, eax
je 0x40112b
push dword [ebp - 0x1c]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x18]
call esi
xor eax, eax
jmp 0x401163
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
push edi
push edi
lea ecx, [ebp - 4]
push ecx
push 0x400
push eax
push edi
push 0x1100
call dword [sym.imp.uwinapi.dll_FormatMessageW]
push 0x10
push edi
push dword [ebp - 4]
push edi
call dword [sym.imp.uwinapi.dll_MessageBoxW]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LocalFree]
call esi
lea esp, [ebp - 0xa94]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40121a
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x310
push 0xb
push str...ure_link
push dword [ebp + 0x10]
lea eax, [ebp - 0x20c]
push dword [ebp + 0xc]
push eax
call fcn.004011a4
add esp, 0x14
test al, al
jne 0x401247
xor eax, eax
leave
ret
push esi
push edi
xor edi, edi
push edi
push edi
push 3
push edi
push 1
push 1
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40126f
xor eax, eax
jmp 0x40138f
push ebx
push edi
lea eax, [ebp - 4]
push eax
mov edi, 0x104
push edi
lea eax, [ebp - 0x108]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0x40138c
mov edx, dword [ebp - 4]
test edx, edx
jbe 0x4012bb
lea ecx, [ebp - 0x108]
dec ecx
mov al, byte [ecx + edx]
cmp al, 0xa
je 0x4012b3
cmp al, 0xd
jne 0x4012b9
dec edx
mov dword [ebp - 4], edx
jne 0x4012a8
test edx, edx
je 0x40138c
cmp edx, edi
je 0x40138c
lea esi, [ebp - 0x108]
lea eax, [ebp + edx - 0x108]
mov ecx, esi
xor bl, bl
cmp ecx, eax
mov byte [eax], 0
je 0x40130d
mov cl, byte [esi]
test cl, cl
je 0x40138c
cmp cl, 0xa
je 0x40138c
cmp cl, 0xd
je 0x40138c
cmp cl, 0x3a
jne 0x401304
mov bl, 1
inc esi
cmp esi, eax
jne 0x4012e1
test bl, bl
jne 0x401361
cmp byte [ebp - 0x108], 0x5c
je 0x401361
lea eax, [ebp - 0x20c]
push eax
call fcn.0040118d
mov esi, eax
push edx
lea eax, [ebp - 0x108]
push eax
sub esi, 8
lea eax, [ebp + esi - 0x20c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.004011a4
add esp, 0x18
test al, al
je 0x40138c
mov edx, dword [ebp - 4]
add edx, esi
lea eax, [ebp - 0x310]
mov dword [ebp - 4], edx
jmp 0x401367
lea eax, [ebp - 0x108]
mov esi, dword [ebp + 8]
push 5
push str._bin_
lea ecx, [eax + edx]
push ecx
push eax
push esi
call fcn.004011a4
add esp, 0x14
test al, al
je 0x40138c
mov eax, dword [ebp - 4]
lea eax, [eax + esi + 5]
jmp 0x40138e
xor eax, eax
pop ebx
pop edi
pop esi
leave
ret

Function at 0x431005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0xb0b3779
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
nop
mov ecx, 0x794e19e6
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x40216a
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
or eax, 0xffffffff
cmp dword [esp + 0xc], esi
jbe 0x4021a6
push edi
mov ecx, dword [esp + 0xc]
movzx ecx, byte [esi + ecx]
movzx edx, al
push 8
xor ecx, edx
shr eax, 8
pop edi
mov dl, cl
shr ecx, 1
and dl, 1
je 0x402199
xor ecx, 0xedb88320
dec edi
jne 0x40218a
xor eax, ecx
inc esi
cmp esi, dword [esp + 0x10]
jb 0x402177
pop edi
not eax
pop esi
ret

Function at 0x40269f
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
mov edi, ecx
mov cl, byte [eax + 0x100]
mov byte [ebp - 1], cl
mov cl, byte [eax + 0x101]
mov byte [ebp - 2], cl
test edx, edx
je 0x402707
mov ecx, dword [ebp + 8]
sub ecx, edi
push ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
push esi
inc byte [ebp - 1]
movzx esi, byte [ebp - 1]
mov dl, byte [esi + eax]
add byte [ebp - 2], dl
movzx ecx, byte [ebp - 2]
mov bl, byte [ecx + eax]
mov byte [esi + eax], bl
mov byte [ecx + eax], dl
movzx ecx, byte [esi + eax]
movzx edx, dl
add ecx, edx
mov edx, dword [ebp - 0xc]
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, byte [edx + edi]
mov byte [edi], cl
inc edi
dec dword [ebp - 8]
jne 0x4026cb
pop esi
pop ebx
mov cl, byte [ebp - 1]
mov byte [eax + 0x100], cl
mov cl, byte [ebp - 2]
mov byte [eax + 0x101], cl
pop edi
leave
ret

Function at 0x402d2c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
push ebx
push edi
xor ebx, ebx
push ebx
mov edi, 0x2003
call fcn.0040231c
pop ecx
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x402e14
push esi
mov edi, dword [ebp + 8]
mov eax, dword [edi]
push ebx
mov dword [ebp - 0x10c], eax
mov eax, dword [edi + 4]
push ebx
mov dword [ebp - 0x108], eax
push ebx
lea eax, [ebp - 0x110]
push eax
push ebx
mov dword [ebp - 0x110], 2
call dword [0x4072dc]
cmp eax, 1
jl 0x402dfb
mov dword [ebp - 8], ebx
cmp dword [ebp - 0x110], ebx
jbe 0x402d51
mov eax, dword [ebp - 8]
mov eax, dword [ebp + eax*4 - 0x10c]
mov ecx, dword [edi]
cmp eax, ecx
jne 0x402da3
mov ecx, dword [edi + 4]
push ebx
push 0x2003
push dword [ebp - 4]
mov dword [ebp - 0xc], ecx
push eax
call dword [0x4072e4]
mov esi, eax
cmp esi, ebx
jle 0x402dfb
mov cl, byte [edi + 8]
cmp cl, bl
je 0x402dd4
xor eax, eax
cmp esi, ebx
jle 0x402dd4
mov edx, dword [ebp - 4]
xor byte [edx + eax], cl
inc eax
cmp eax, esi
jl 0x402dc9
mov ebx, dword [ebp - 0xc]
push esi
push dword [ebp - 4]
call fcn.0040280d
pop ecx
pop ecx
cmp eax, esi
jne 0x402dfb
inc dword [ebp - 8]
mov eax, dword [ebp - 8]
xor ebx, ebx
cmp eax, dword [ebp - 0x110]
jb 0x402d90
jmp 0x402d51
mov esi, dword [edi]
call fcn.004028cc
mov esi, dword [edi + 4]
call fcn.004028cc
push dword [ebp - 4]
call fcn.0040241e
pop ecx
pop esi
pop edi
pop ebx
leave
ret
Function at 0x405c8d
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push ebx
push esi
push edi
mov edi, dword fs:[0x30]
push 0x104
mov esi, 0x42ae60
push esi
call dword [0x4071f4]
push str.explorer.exe
push esi
call dword [0x40711c]
call dword [0x4072fc]
mov eax, dword [edi + 0x10]
mov ecx, esi
lea edx, [ecx + 2]
mov bx, word [ecx]
add ecx, 2
test bx, bx
jne 0x405cc2
sub ecx, edx
sar ecx, 1
add ecx, ecx
mov word [eax + 0x38], cx
add ecx, 2
mov word [eax + 0x3a], cx
push 0x18
mov dword [eax + 0x3c], esi
mov eax, dword [edi + 0x10]
pop ecx
push 0x1a
mov word [eax + 0x40], cx
pop ecx
mov word [eax + 0x42], cx
mov dword [eax + 0x44], 0x40842c
call dword [0x407300]
push 0
push 0x405c25
push 0
call dword [0x407304]
pop edi
pop esi
pop ebx
ret
Function at 0x402462
Capabilities:
Enumerate gui resources

Disassembly:
cmp dword [esp + 4], 0
je 0x40247a
push dword [esp + 4]
push 0x4023fb
call dword [sym.imp.USER32.dll_EnumWindows]
jmp 0x4024b7
push esi
mov esi, dword [0x407ddc]
test esi, esi
je 0x4024b6
push ebx
push edi
mov ebx, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4024ae
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.dll_EnableWindow]
push edi
push 0x407ddc
call fcn.004056b0
pop ecx
pop ecx
test ebx, ebx
mov esi, ebx
jne 0x402487
pop edi
pop ebx
pop esi
ret 4

Function at 0x4039f7
Capabilities:
Get graphical window text

Disassembly:
push edi
push dword [esp + 8]
push dword [0x408098]
call fcn.00405522
mov edi, eax
test edi, edi
je 0x403a59
mov eax, dword [edi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x403a20
push dword [esp + 0xc]
push edi
call eax
jmp 0x403a59
push ebx
push esi
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
push dword [esp + 0x14]
mov esi, eax
push esi
call fcn.00405740
mov ebx, eax
lea eax, [esi + 1]
push eax
push ebx
mov byte [ebx], 0
push dword [edi]
call dword [sym.imp.USER32.dll_GetWindowTextA]
push ebx
call sub.MSVCRT.dll_strlen
pop ecx
sub esi, eax
push esi
call fcn.004057e0
pop esi
pop ebx
pop edi
ret 8
Function at 0x405425
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 9
call esi
test al, al
jns 0x405493
push 0x11
call esi
test al, al
js 0x405493
push 0x10
call esi
test al, al
js 0x405493
push 0x12
call esi
test al, al
js 0x405493
mov esi, dword [sym.imp.USER32.dll_GetFocus]
push 5
lea eax, [ebp - 8]
push eax
call esi
push eax
call dword [sym.imp.USER32.dll_GetClassNameA]
push 4
lea eax, [ebp - 8]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x405493
push eax
push eax
push 0x44e
call esi
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
test ax, 0x800
je 0x4054b7
push str.PB_WindowID
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_GetPropA]
test eax, eax
je 0x4054b7
dec eax
push eax
push dword [0x4080a0]
call fcn.00405522
mov eax, dword [eax + 8]
jmp 0x4054b9
xor eax, eax
pop esi
leave
ret 4

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x9b113ec
nop
test eax, eax
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0xb920691
nop
nop
nop
nop
test eax, eax
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
pop eax
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0xeeb058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00eeb1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xeeb07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xeeb06a
add dl, dl
jne 0xeeb089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xeeb0dc
xor eax, eax
add dl, dl
jne 0xeeb096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xeeb17d
add dl, dl
jne 0xeeb0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeeb0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeeb0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeeb0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xeeb0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xeeb075
mov eax, 1
add dl, dl
jne 0xeeb0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xeeb0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xeeb0e1
sub eax, ebx
mov ebx, 1
jne 0xeeb128
mov ecx, 1
add dl, dl
jne 0xeeb10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xeeb119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xeeb105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xeeb075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xeeb13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xeeb14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xeeb136
cmp eax, 0x7d00
jae 0xeeb16d
cmp eax, 0x500
jb 0xeeb168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xeeb075
cmp eax, 0x7f
ja 0xeeb170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xeeb075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xeeb19e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xeeb075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x10f8370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10f838e
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0x1121074
push ecx
mov edi, eax
call fcn.0110c198
mov esi, eax
add esp, 8
test esi, esi
jne 0x10f83cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0110c02e
push esi
call fcn.0110bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret