joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10026930
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x10b8
call fcn.1003e870
mov eax, dword [0x10049004]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x10b0], ecx
push 0x10046bec
jmp loc.1020f470

Function at 0x10026fc0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov dword [esp + 0x10], eax
jmp 0x10015ae7
mov dword [esp + 0x18], eax
jmp 0x10012412
mov dword [esp + 0xc], eax
jmp 0x100057af
mov dword [esp + 0x1c], eax
jmp loc.1020870a
mov dword [esp + 0x14], eax
jmp 0x10005871
lea esp, [esp + 4]
sub esi, esi
jmp 0x1001a392
call fcn.10026820
sub eax, eax
setg cl
mov ecx, edi
jmp 0x10010187
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x13ec
call fcn.1003e870
mov eax, dword [0x10049004]
xor eax, esp
mov dword [esp + 0x13e8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
push 0x10046bec
jmp 0x1001623f

Function at 0x10027a70
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x10046bec
jmp loc.102100a4
Function at 0x10031914
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x10031953
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x10031953
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x10031953
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x10031953
cmp dword [ecx + 0x74], 0xe
jbe 0x10031953
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x1003509e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100434b8
push 0x100434b0
push str.FlsAlloc
push 0x1f
call fcn.10034fba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x100350d2
push dword [ebp + 8]
mov ecx, esi
call dword [0x10041140]
call esi
jmp 0x100350d8
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1003511c
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100434c8
push 0x100434c0
push str.FlsGetValue
push 0x21
call fcn.10034fba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10035153
push dword [ebp + 8]
mov ecx, esi
call dword [0x10041140]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1003515b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x100434d0
push 0x100434c8
push str.FlsSetValue
push 0x22
call fcn.10034fba
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10035195
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x10041140]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x1003812b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x100381c8
push ebx
push esi
call fcn.100380f4
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.10038088
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10038175
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100381c7
push edi
push eax
call fcn.10033840
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10038195
call fcn.10033806
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x100381c6
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10038088
add esp, 0x20
test eax, eax
jne 0x100381b4
push edi
call fcn.10033806
jmp 0x100381bc
push ebx
call fcn.10033806
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x1003e4b0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1003e4dd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1003e4dd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43000c
nop
nop
pop eax
nop
nop
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
jne 0x43001e
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp fcn.00401219
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCRT.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x402bf1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
pushal
call 0x402c00
pop dword [ebp - 0x3c]
mov eax, 0x402c00
sub dword [ebp - 0x3c], eax
mov dword [ebp - 0x4c], 0xc4ef7ef0
add dword [ebp - 0x4c], 0x8962c65b
mov dword [ebp - 0x48], 0x36d0ef18
add dword [ebp - 0x48], 0xfb625d2d
mov dword [ebp - 0x44], 0x6083beab
sub dword [ebp - 0x44], 0x14377a7d
mov dword [ebp - 0x40], 0xa93bd421
sub dword [ebp - 0x40], 0xa93bd421
lea eax, [ebp - 0x4c]
push eax
mov eax, 0x6f23826e
add eax, 0x911cedf6
add eax, dword [ebp - 0x3c]
call dword [eax]
mov dword [ebp - 0x4c], 0x42ef0a60
add dword [ebp - 0x4c], 0x31835ef6
mov dword [ebp - 0x48], 0xcac53990
add dword [ebp - 0x48], 0x76a727e5
mov dword [ebp - 0x44], 0x93d1c10d
sub dword [ebp - 0x44], 0x306254a1
mov dword [ebp - 0x40], 0xca97aea4
add dword [ebp - 0x40], 0x3568515c
lea ebx, [ebp - 0x4c]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x3c]
call dword [eax]
push 0x40
push 0x1000
push 0x3a45a
push 0
call eax
mov ecx, 0x5655
mov esi, eax
mov edx, 0x410000
add edx, dword [ebp - 0x3c]
mov ebx, 0x7a0f2b82
sub ebx, 0x2878fd42
add dword [ebp - 0x30], 0x5d6d6fc5
mov edi, dword [edx]
add dword [ebp - 0x18], 0x5a6922ea
sub edi, ebx
xor dword [ebp - 0x14], edx
mov dword [esi], edi
sub dword [ebp - 0x10], 0xcfced2a2
add esi, 0x847341c1
sub esi, 0x847341bd
add edx, 0x80cf29d8
sub edx, 0x80cf29d4
loop 0x402d0c
add eax, 0x14c27
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x3c]
call ebx
leave
ret
Function at 0x68d41270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x68d412cb
cmp byte [esi + ebx - 1], 0xa
je 0x68d4129f
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x68d46084], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x68d41850
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
and esp, 0xfffffff0
sub esp, 0xf0
mov edi, dword [0x68d46094]
mov esi, dword [ebp + 8]
test edi, edi
je 0x68d41a10
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call dword [0x68d46094]
movzx eax, al
bt eax, esi
jae 0x68d41a70
mov ecx, dword [0x68d46084]
xor eax, eax
mov edx, dword fs:[0x18]
cmp dword [edx + 0x24], ecx
je 0x68d41916
test byte [0x68d421c8], 8
jne 0x68d419b0
lea ebx, [esp + 0x28]
mov edi, ebx
test byte [0x68d421d8], 8
jne 0x68d41960
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
mov dword [esp + 4], str._04x:
mov dword [esp], edi
mov dword [esp + 8], eax
call dbg.sprintf
mov edx, dword [ebp + 0x10]
test edx, edx
je 0x68d418e5
cmp esi, 3
jbe 0x68d41920
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp], ebx
mov esi, eax
call dword [sym.imp.ucrtbase.dll_strlen]
mov dword [esp + 0xc], esi
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], ebx
call dword [sym.imp.ucrtbase.dll_fwrite]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
add eax, edi
mov edi, dword [ebp + 0x10]
mov dword [esp + 8], str._s:_s:_s
mov dword [esp], eax
mov dword [esp + 0x14], edi
mov edi, dword [ebp + 0xc]
lea edx, [edi + 1]
mov dword [esp + 0x10], edx
mov edx, dword [esi*4 + 0x68d440bc]
mov dword [esp + 0xc], edx
mov edx, ebx
sub edx, eax
add edx, 0xc8
mov dword [esp + 4], edx
call sym._snprintf.constprop.0
jmp 0x68d418e5
mov ecx, dword [0x68d46094]
test ecx, ecx
je 0x68d41a50
mov dword [esp], 0x68d421d8
call dword [0x68d46094]
test al, 8
je 0x68d418bc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x20]
mov dword [esp], edi
mov dword [esp + 4], str._04x:
mov dword [esp + 8], eax
call dbg.sprintf
add edi, eax
jmp 0x68d418bc
mov ebx, dword [0x68d46094]
test ebx, ebx
je 0x68d41a30
mov dword [esp], 0x68d421c8
call dword [0x68d46094]
test al, 8
je 0x68d418a9
call dword [sym.imp.kernel32.dll_GetTickCount]
mov edx, 0x10624dd3
lea ebx, [esp + 0x28]
mov dword [esp + 4], str._3u._03u:
mov ecx, eax
mul edx
mov dword [esp], ebx
shr edx, 6
imul eax, edx, 0x3e8
mov dword [esp + 8], edx
sub ecx, eax
mov dword [esp + 0xc], ecx
call dbg.sprintf
lea edi, [ebx + eax]
jmp 0x68d418af
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x68d46094
call sym._load_func.part.0
jmp 0x68d41870
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x68d46094
call sym._load_func.part.0
jmp 0x68d419ba
mov ecx, dbg.fallback__wine_dbg_get_channel_flags
mov edx, str.__wine_dbg_get_channel_flags
mov eax, 0x68d46094
call sym._load_func.part.0
jmp 0x68d4196e
mov eax, 0xffffffff
jmp 0x68d41916
Function at 0x402e00
Capabilities:
Acquire debug privileges

Disassembly:
push 0xffffffffffffffff
push 0x40b37e
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4101e8]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor edi, edi
mov ebx, 7
mov dword [ebp + 0x224], ebx
mov dword [ebp + 0x220], edi
mov word [ebp + 0x210], di
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
mov dword [esp + 0x40], edi
push 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
push str.SeDebugPrivilege
mov word [esi + 4], di
call fcn.004022f0
call fcn.00403380
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x10
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
push str.SeAuditPrivilege
mov word [esi + 4], di
call fcn.004022f0
call fcn.00403380
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x13
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
push str.SeSecurityPrivilege
mov word [esi + 4], di
call fcn.004022f0
call fcn.00403380
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x18
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
push str.SeTakeOwnershipPrivilege
mov word [esi + 4], di
call fcn.004022f0
call fcn.00403380
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x17
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
push str.SeManageVolumePrivilege
mov word [esi + 4], di
call fcn.004022f0
call fcn.00403380
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x12
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
push str.SeRestorePrivilege
mov word [esi + 4], di
call fcn.004022f0
call fcn.00403380
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
push 0x11
mov dword [esi + 0x18], ebx
mov dword [esi + 0x14], edi
push str.SeBackupPrivilege
mov word [esi + 4], di
call fcn.004022f0
call fcn.00403380
sub esp, 0x1c
mov esi, esp
mov dword [esp + 0x34], esp
mov dword [esi + 0x18], ebx
push 0x15
mov dword [esi + 0x14], edi
push str.SeLoadDriverPrivilege
mov word [esi + 4], di
call fcn.004022f0
call fcn.00403380
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x432000
Capabilities:
Encode data using base64
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40c7d0
nop
mov ecx, 0x3fe55ba7
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x432024
nop
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42f314
nop
mov ecx, 0x4fcf36f7
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401200
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
sub edi, 0x54
sub eax, 0xf
and ebx, 0x7f
sbb edx, 0xe5
imul edi
or eax, 0x4d
sub ebx, 0x1d
add esi, 0x36
and ebx, 0x68
rcl edx, 0x59
rol eax, 0x1f
inc esi
imul edx
dec edi
dec ebx
imul esi
neg edx
bswap esi
or edi, 0x67
dec edi
bswap edi
sbb edi, 4
not ebx
not ebx
or eax, 0x94
and esi, 0x47
dec ebx
sbb ebx, 0xd5
not eax
and ebx, 0x6c
mov eax, 0x40
ror esi, 0xf7
not ebx
rol ebx, 0x98
imul ebx
inc esi
sbb edi, 0x11
sub esi, 0xa2
sbb edi, 0xd
inc ebx
imul edi
bswap esi
imul esi
neg eax
rcr ebx, 0xa7
sub edx, 0xb7
rol esi, 0xb4
sub eax, 0x84
imul edx
bswap ebx
xor ecx, ecx
xor edi, edi
neg esi
rol edx, 0xd1
neg edi
bswap eax
sub esi, 0x52
inc esi
sub edi, 0xeb
sub esi, 0xbc
dec eax
sbb esi, 0xb8
not ebx
sbb esi, 0x87
neg edx
and eax, 0xe6
not edi
bswap edi
imul edi
mov eax, 0x71
sbb edi, 0x36
imul eax
bswap edx
mov edi, 0xac
imul esi
imul eax
rol edi, 0xd1
bswap eax
bswap esi
rcl edx, 0x6c
dec edx
rcl esi, 0xab
dec edi
not ebx
dec esi
dec eax
mov eax, 0x91
or esi, 0x10
ror esi, 0x3b
ror ebx, 0xc3
neg esi
inc edi
ror edi, 0xdb
dec eax
neg edi
rcl edi, 0x4d
and eax, 0x27
imul edi
neg eax
add edx, 0x34
dec esi
neg edi
mov ecx, dword [ebp + 0xc]
not eax
not esi
ror edx, 0x64
sbb esi, 0x1c
inc edi
inc esi
ror esi, 1
or edi, 0xdf
not eax
inc edi
sub edi, 0x87
or esi, 0x6d
not eax
add ebx, 0x38
neg eax
mov ebx, 0x6d
not edx
not esi
mov eax, 0xde
not ebx
neg ebx
imul ebx
not eax
inc esi
inc esi
ror esi, 0xd6
mov ebx, 0xa4
or edx, 0x83
inc eax
neg edi
mov esi, 0x88
bswap eax
imul ebx
inc edi
or ebx, 0x16
rol edx, 0x7c
not edi
inc eax
not edi
inc edi
neg edi
imul edi
inc ebx
imul eax
ror eax, 0x11
and eax, 0x9a
and edx, 0xa
sbb edi, 0x2e
inc esi
sbb esi, 0x12
mov edi, dword [ebp + 8]
xor esi, eax
xor ebx, eax
mov ebx, eax
not byte [edi]
mov ebx, esi
mov ebx, eax
xor eax, eax
xor ebx, ebx
mov ebx, ebx
mov esi, ebx
xor ebx, ebx
xor eax, esi
xor esi, eax
add byte [edi], 0x34
xor esi, ebx
mov esi, eax
mov eax, esi
xor esi, esi
xor esi, esi
xor esi, eax
mov esi, esi
xor ebx, esi
xor esi, ebx
sub byte [edi], 0x75
xor esi, esi
mov esi, ebx
mov esi, esi
mov ebx, esi
xor esi, ebx
xor eax, eax
mov esi, ebx
mov eax, esi
mov eax, ebx
imul byte [edi]
inc edi
loop 0x4013a2
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407644
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4108f0]
jne 0x40764e
repz ret
jmp fcn.0040bb45
Function at 0x407fb3
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.004058da
and dword [ebp - 4], 0
cmp dword [0x4115cc], 0
mov ebx, eax
jne 0x408064
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408115
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408115
push eax
call fcn.00405868
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4115cc], eax
call esi
push eax
call fcn.00405868
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4115d0], eax
call esi
push eax
call fcn.00405868
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4115d4], eax
call esi
push eax
call fcn.00405868
pop ecx
mov dword [0x4115dc], eax
test eax, eax
je 0x408064
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00405868
pop ecx
mov dword [0x4115d8], eax
mov eax, dword [0x4115d8]
cmp eax, ebx
je 0x4080bc
cmp dword [0x4115dc], ebx
je 0x4080bc
push eax
call fcn.004058e3
push dword [0x4115dc]
mov esi, eax
call fcn.004058e3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4080bc
test edi, edi
je 0x4080bc
call esi
test eax, eax
je 0x4080b3
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4080b3
test byte [ebp - 0xc], 1
jne 0x4080bc
or dword [ebp + 0x10], 0x200000
jmp 0x4080f5
mov eax, dword [0x4115d0]
cmp eax, ebx
je 0x4080f5
push eax
call fcn.004058e3
pop ecx
test eax, eax
je 0x4080f5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4080f5
mov eax, dword [0x4115d4]
cmp eax, ebx
je 0x4080f5
push eax
call fcn.004058e3
pop ecx
test eax, eax
je 0x4080f5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4115cc]
call fcn.004058e3
pop ecx
test eax, eax
je 0x408115
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408117
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cd18
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 0x41cd49
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cd31
add dl, dl
jne 0x41cd54
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cda5
xor eax, eax
add dl, dl
jne 0x41cd61
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41ce42
add dl, dl
jne 0x41cd70
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd7b
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd86
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cd91
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cd9b
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cd40
mov eax, 1
add dl, dl
jne 0x41cdb3
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cdbe
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdaa
sub eax, ebx
mov ebx, 1
jne 0x41cdf1
mov ecx, 1
add dl, dl
jne 0x41cdd7
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41cde2
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdce
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cd40
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41ce08
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41ce13
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cdff
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 0x41cd40
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41ce63
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 0x41cd40
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 0x41e558
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], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x88da17
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
mov ecx, ebx
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [ecx + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41e609
add edx, ebx
mov eax, edx
mov esi, dword [eax + 0x18]
mov edx, dword [eax + 0x1c]
add edx, ebx
mov dword [ebp - 0x10], edx
mov edi, dword [eax + 0x20]
add edi, ebx
mov edx, dword [eax + 0x24]
add edx, ebx
mov dword [ebp - 0xc], edx
mov edx, dword [ebp - 4]
cmp edx, 0xffff
jbe 0x41e5f2
test esi, esi
jbe 0x41e609
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088e4
test eax, eax
jne 0x41e5e4
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 0x41e609
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41e5c1
jmp 0x41e609
mov ecx, edx
sub ecx, dword [eax + 0x10]
cmp ecx, dword [eax + 0x14]
jae 0x41e609
mov eax, ecx
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 0x88da1e
ret