joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42912d
Capabilities:
Enumerate processes

Disassembly:
push ebp
sub esp, 0xa4c
lea ebp, [esp - 4]
mov eax, dword [0x45800c]
xor eax, ebp
mov dword [ebp + 0xa4c], eax
push 0x28
mov eax, 0x44662b
call fcn.004420ed
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x20], ecx
xor ebx, ebx
push ebx
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov edi, eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x34], edi
mov dword [ebp - 4], ebx
cmp edi, 0xffffffff
je 0x4292cd
push 0x228
lea eax, [ebp + 4]
push ebx
push eax
call fcn.0042fde0
add esp, 0xc
mov dword [ebp], 0x22c
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
jmp 0x4292b8
call fcn.0040916a
test al, al
je 0x429263
push dword [ebp + 8]
push ebx
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x2c], 0x410
test eax, eax
je 0x429250
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x28], esi
mov byte [ebp - 4], 2
test esi, esi
je 0x42924d
push str.QueryFullProcessImageNameW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x429207
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x28], ebx
jmp 0x42924d
lea ecx, [ebp - 0x2c]
push ecx
lea ecx, [ebp + 0x22c]
push ecx
push ebx
push dword [ebp - 0x14]
call eax
mov byte [ebp - 4], 1
mov esi, eax
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [ebp - 0x28], ebx
test esi, esi
je 0x42924d
mov ecx, dword [ebp - 0x20]
lea eax, [ebp + 0x22c]
push eax
call fcn.00403f4a
test eax, eax
jne 0x42924d
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
call fcn.00422a3c
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], bl
test eax, eax
je 0x4292ad
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x14], ebx
jmp 0x4292ad
call fcn.0040268c
push eax
lea ecx, [ebp - 0x1c]
call fcn.004024c1
lea eax, [ebp - 0x1c]
mov byte [ebp - 4], 3
mov ecx, dword [ebp + 8]
push eax
call fcn.004292f9
mov esi, dword [ebp - 0x1c]
pop ecx
test al, al
je 0x4292a2
mov ecx, dword [ebp - 0x20]
push esi
call fcn.00403f4a
test eax, eax
jne 0x4292a2
mov ecx, dword [ebp - 0x18]
lea eax, [ebp + 8]
push eax
call fcn.00422a3c
lea ecx, [esi - 0x10]
mov byte [ebp - 4], bl
call fcn.00401759
lea eax, [ebp]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x42919f
mov eax, dword [ebp - 0x18]
cmp dword [eax + 4], ebx
setg bl
test edi, edi
je 0x4292d4
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0xa4c]
xor ecx, ebp
call fcn.0042e8fb
lea esp, [ebp + 0xa50]
pop ebp
ret
Function at 0x429518
Capabilities:
Enumerate gui resources
Get graphical window text

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x45800c]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x38
mov eax, 0x4466ef
call fcn.004420ed
mov dword [ebp - 0x2c], edx
mov eax, dword [ecx]
cmp dword [eax - 0xc], 0
jne 0x42954e
xor al, al
jmp 0x4296b2
xor ebx, ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
lea edx, [ebp - 0x28]
mov dword [ebp - 4], ebx
call fcn.0042912d
xor edi, edi
mov byte [ebp - 0xd], bl
cmp dword [ebp - 0x24], edi
jle 0x4296a1
and dword [ebp - 0x40], edi
push edi
lea ecx, [ebp - 0x28]
call fcn.00402bb2
push dword [eax]
push 0
push 0x400
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov ebx, eax
mov dword [ebp - 0x44], ebx
and dword [ebp - 0x1c], 0
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
push edi
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 2
call fcn.00402bb2
mov esi, dword [eax]
call fcn.0040268c
push eax
lea ecx, [ebp - 0x34]
call fcn.004024c1
mov byte [ebp - 4], 3
cmp dword [ebp - 0x1c], 0
mov dword [ebp - 0x3c], esi
je 0x4295d5
push dword [ebp - 0x1c]
call fcn.004341b9
and dword [ebp - 0x1c], 0
pop ecx
push dword [ebp - 0x2c]
and dword [ebp - 0x18], 0
lea eax, [ebp - 0x1c]
and dword [ebp - 0x14], 0
lea ecx, [ebp - 0x34]
mov dword [ebp - 0x38], eax
call fcn.004023ce
lea eax, [ebp - 0x3c]
push eax
push 0x429380
call dword [sym.imp.USER32.dll_EnumWindows]
mov ecx, dword [ebp - 0x34]
lea ecx, [ecx - 0x10]
call fcn.00401759
xor esi, esi
cmp dword [ebp - 0x18], esi
jle 0x429666
push esi
lea ecx, [ebp - 0x1c]
call fcn.00402bb2
push 0x104
lea ecx, [ebp]
push ecx
push dword [eax]
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x429660
test ebx, ebx
je 0x429660
lea eax, [ebp - 0x30]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
cmp dword [ebp - 0x30], 0x103
jne 0x429660
push esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 0xd], 1
call fcn.00402bb2
push 0
push 0
push 0x10
push dword [eax]
call dword [sym.imp.USER32.dll_PostMessageW]
inc esi
cmp esi, dword [ebp - 0x18]
jl 0x42960f
cmp dword [ebp - 0x1c], 0
je 0x429679
push dword [ebp - 0x1c]
call fcn.004341b9
and dword [ebp - 0x1c], 0
pop ecx
and dword [ebp - 0x18], 0
and dword [ebp - 0x14], 0
mov byte [ebp - 4], 0
test ebx, ebx
je 0x429694
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
and dword [ebp - 0x44], 0
inc edi
cmp edi, dword [ebp - 0x24]
jl 0x429575
mov bl, byte [ebp - 0xd]
cmp dword [ebp - 0x28], 0
je 0x4296b0
push dword [ebp - 0x28]
call fcn.004341b9
pop ecx
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.0042e8fb
lea esp, [ebp + 0x20c]
pop ebp
ret
Function at 0x4296d5
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
push 0x42a1bf
mov dword [ebp - 8], edi
call dword [sym.imp.USER32.dll_EnumWindows]
cmp dword [ebp - 4], 0
jne 0x42970c
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 0x14
jl 0x4296e0
jmp 0x429715
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SetForegroundWindow]
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x429d74
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x14
mov eax, 0x44686d
call fcn.004420ed
mov dword [ebp - 0x14], edx
push 0x22
xor edi, edi
push edi
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x20], esi
mov dword [ebp - 4], edi
test esi, esi
je 0x429e25
push 0xa
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x429e1e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
call fcn.0040268c
push eax
lea ecx, [ebp - 0x18]
call fcn.004024c1
mov byte [ebp - 4], 1
test ebx, ebx
je 0x429e13
push ebx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x429e13
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
test eax, eax
je 0x429e13
push eax
push ebx
lea ecx, [ebp - 0x10]
call fcn.0040c43d
push ecx
mov ecx, dword [ebp - 0x14]
lea eax, [ebp - 0x10]
push eax
mov byte [ebp - 4], 2
call fcn.00408693
mov ecx, dword [ebp - 0x10]
lea ecx, [ecx - 0x10]
call fcn.00401759
mov ecx, dword [ebp - 0x18]
lea ecx, [ecx - 0x10]
call fcn.00401759
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
call fcn.004420b6
ret
Function at 0x429e2b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x34
mov eax, 0x4468c0
call fcn.004420ed
mov dword [ebp - 0x24], edx
mov esi, ecx
call fcn.0040268c
push eax
lea ecx, [ebp - 0x20]
call fcn.004024c1
xor eax, eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
call fcn.0040268c
push eax
lea ecx, [ebp - 0x2c]
call fcn.004024c1
lea eax, [ebp - 0xd]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x2c]
mov ecx, esi
push eax
lea eax, [ebp - 0x20]
push eax
lea edx, [ebp - 0x30]
call fcn.0042a01d
mov edi, dword [ebp - 0x2c]
add esp, 0xc
mov ebx, dword [ebp - 0x20]
test al, al
je 0x429fff
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push ebx
push dword [ebp - 0x30]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x429fff
mov ecx, 0x104
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
push ecx
mov byte [ebp - 4], 2
call fcn.0042e934
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
jmp 0x429ef5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xea
jne 0x429f6d
push esi
mov byte [ebp - 4], 2
call fcn.0042e92f
push dword [ebp - 0x14]
call fcn.0042e934
pop ecx
mov esi, eax
pop ecx
mov dword [ebp - 0x34], esi
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 3
push eax
push esi
lea eax, [ebp - 0x18]
push eax
push 0
push edi
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x429ecb
cmp dword [ebp - 0x18], 1
je 0x429fad
cmp dword [ebp - 0x18], 2
je 0x429fad
cmp dword [ebp - 0x18], 7
jne 0x429f7f
mov edx, dword [ebp - 0x14]
mov dword [ebp - 0x30], edx
lea eax, [edx - 1]
test eax, eax
je 0x429f53
xor ecx, ecx
cmp byte [ecx + esi], 0
jne 0x429f48
mov byte [ecx + esi], 0xa
mov edx, dword [ebp - 0x14]
inc ecx
lea eax, [edx - 1]
cmp ecx, eax
jb 0x429f3b
mov dword [ebp - 0x30], edx
call fcn.0040268c
push eax
mov eax, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
dec eax
push eax
push esi
call fcn.0040245d
mov byte [ebp - 4], 5
jmp 0x429fca
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push esi
call fcn.0042e92f
pop ecx
jmp 0x429ff5
cmp dword [ebp - 0x14], 0
jbe 0x429f9c
xor ebx, ebx
lea eax, [ebx + esi]
push eax
lea ecx, [ebp - 0x40]
call fcn.00403cc9
inc ebx
cmp ebx, dword [ebp - 0x14]
jb 0x429f87
mov ebx, dword [ebp - 0x20]
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x30]
call fcn.00404403
mov byte [ebp - 4], 6
jmp 0x429fcd
mov eax, dword [ebp - 0x14]
dec eax
mov dword [ebp - 0x30], eax
call fcn.0040268c
push eax
push dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
push esi
call fcn.0040245d
mov byte [ebp - 4], 4
lea eax, [ebp - 0x30]
mov ecx, dword [ebp - 0x24]
push eax
call fcn.004023ce
mov ecx, dword [ebp - 0x30]
lea ecx, [ecx - 0x10]
call fcn.00401759
push esi
call fcn.0042e92f
pop ecx
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 0x28], 1
lea ecx, [ebp - 0x40]
call fcn.00401d52
jmp 0x42a004
xor eax, eax
mov dword [ebp - 0x28], eax
lea ecx, [edi - 0x10]
call fcn.00401759
lea ecx, [ebx - 0x10]
call fcn.00401759
mov al, byte [ebp - 0x28]
call fcn.004420b6
ret
Function at 0x42b1f9
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
lea eax, [ecx - 0x68]
neg esi
sbb esi, esi
and esi, eax
cmp byte [ecx + 0x1c], 0
je 0x42b23b
push 0xe801
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
cmp dword [esp + 0xc], 2
jne 0x42b22b
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x42b242
cmp dword [esp + 0xc], 0
jne 0x42b23b
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
cmp dword [esp + 0xc], 1
je 0x42b259
mov ecx, dword [esp + 0x10]
mov eax, ecx
shr eax, 0x10
cwde
push eax
movsx eax, cx
lea ecx, [esi + 0x68]
push eax
call fcn.0042b6f9
xor eax, eax
pop esi
ret 0x10

Function at 0x42d080
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
xor esi, esi
mov dword [ebp - 8], 0xfeff
push esi
push 0x80
push 1
push esi
push esi
push 0x40000000
push dword [ecx + 4]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x42d0c8
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 2
lea eax, [ebp - 8]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42d0d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x42d0db
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x40a15c
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [ebp + 0xc]
mov word [ebp + 0xc], ax
mov ebx, 0x19826993
mov eax, ebx
mul ebx
mov dword [ebp - 0x10], eax
mov ebx, eax
xor esi, esi
mov eax, ebx
mul ebx
mov dword [ebp - 0x14], eax
mov ebx, eax
mov word [ebp - 0xc], 0
jmp 0x40a272
mov eax, ebx
xor eax, ebx
mov ebx, eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.00405066
pop ecx
mov edx, eax
mov byte [ebp - 1], dl
cmp byte [ebp - 1], 0
jne 0x40a1b3
mov byte [ebp - 2], 0
jmp 0x40a1dd
call fcn.0040ddd8
mov dword [ebp - 0x18], eax
mov eax, 0x7fff
mov edi, 7
movzx edx, byte [ebp - 1]
mov ecx, edi
sub ecx, edx
cdq
idiv ecx
mov ecx, eax
mov eax, dword [ebp - 0x18]
cdq
idiv ecx
mov edx, eax
mov byte [ebp - 2], dl
mov eax, dword [ebp + 8]
mov al, byte [esi + eax]
cmp al, 0x70
jb 0x40a1fc
cmp al, 0x7f
ja 0x40a1fc
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, dword [ebp + 8]
movzx eax, byte [esi + eax]
cmp eax, 0xe2
jne 0x40a21b
mov eax, dword [ebp + 8]
add eax, esi
inc eax
movzx edx, byte [eax]
movzx ecx, byte [ebp - 2]
sub edx, ecx
mov byte [eax], dl
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 8
push 0x90
lea eax, [ebp - 0xa]
push eax
call fcn.0040ddc0
movzx eax, byte [ebp - 1]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
lea eax, [ebp - 0xa]
movzx edx, byte [ebp - 2]
add eax, edx
push eax
call fcn.0040ddb4
mov eax, ebx
sub eax, ebx
mov ebx, eax
push 6
lea eax, [ebp - 0xa]
push eax
mov eax, dword [ebp + 8]
add eax, esi
push eax
call fcn.0040ddb4
add esp, 0x24
mov eax, ebx
add eax, ebx
mov ebx, eax
add esi, 6
inc word [ebp - 0xc]
movzx eax, word [ebp + 0xc]
dec eax
cmp esi, eax
jb 0x40a190
pop edi
pop esi
pop ebx
leave
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..pdata
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
cmp eax, 0
nop
nop
je 0x430072
nop
nop
nop
nop
nop
mov ebx, 0x408f6c
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x51f275ff
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..pdata_1
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e3d0
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x4ea45c96
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
nop
push 4
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x36dd7833
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x430060
nop
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
je 0x4300d2
nop
nop
nop
mov ebx, 0x42e1d0
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x65ac1d8c
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x409086
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x423960]
jne 0x409090
repz ret
jmp fcn.0040e3ee

Function at 0x417b75
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x423960]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040e4f4
and dword [ebp - 0x14], 0
cmp dword [0x537700], 0
mov dword [ebp - 0x18], eax
jne 0x417c28
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x417cd0
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x417cd0
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x537700], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x537704], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x537708], eax
call edi
push eax
call esi
mov dword [0x537710], eax
test eax, eax
je 0x417c28
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x53770c], eax
mov eax, dword [0x53770c]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x417c81
cmp dword [0x537710], ecx
je 0x417c81
push eax
call esi
push dword [0x537710]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x417c81
test ebx, ebx
je 0x417c81
call edi
test eax, eax
je 0x417c78
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x417c78
test byte [ebp - 8], 1
jne 0x417c81
or dword [ebp + 0x10], 0x200000
jmp 0x417cb4
mov eax, dword [0x537704]
cmp eax, dword [ebp - 0x18]
je 0x417cb4
push eax
call esi
test eax, eax
je 0x417cb4
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x417cb4
mov eax, dword [0x537708]
cmp eax, dword [ebp - 0x18]
je 0x417cb4
push eax
call esi
test eax, eax
je 0x417cb4
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x537700]
call esi
test eax, eax
je 0x417cd0
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x417cd2
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00409086
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x51c008], 0x8088405
inc edx
mov dword [ebx + 0x51c008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x41cf00
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf31
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf19
add dl, dl
jne 0x41cf3c
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf8d
xor eax, eax
add dl, dl
jne 0x41cf49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d02a
add dl, dl
jne 0x41cf58
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf63
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf6e
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cf79
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cf83
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf28
mov eax, 1
add dl, dl
jne 0x41cf9b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa6
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cf92
sub eax, ebx
mov ebx, 1
jne 0x41cfd9
mov ecx, 1
add dl, dl
jne 0x41cfbf
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cfca
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfb6
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41cff0
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cffb
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfe7
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf28
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d04b
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 0x41cf28
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f05c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x50054a
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ab
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
jmp 0x41f0ca
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f0ca
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f13c
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f125
test esi, esi
jbe 0x41f13c
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f117
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f13c
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f0f4
jmp 0x41f13c
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f13c
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x500551
ret