joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401bf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x60
mov eax, dword [ebp + 8]
mov word [esp + 0x56], 0x2fd6
mov dword [esp + 0x4c], 0
mov dword [esp + 0x48], 0x79ce
mov dword [esp + 0x44], 0x4eca
mov ecx, 0x4eca
mov dword [esp + 0x28], 0x3e94
mov dword [esp + 0x1c], eax
mov edx, eax
sub eax, 0xffffffff
mov dword [esp + 0x18], edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], eax
je 0x401d6a
jmp 0x401c48
mov eax, dword [esp + 0x18]
sub eax, 1
mov dword [esp + 0xc], eax
je 0x401c6d
jmp 0x401c57
mov eax, dword [esp + 0x18]
sub eax, 0xd
mov dword [esp + 8], eax
je 0x401d79
jmp 0x401d28
mov ax, word [esp + 0x56]
mov cx, word [esp + 0x56]
mov edx, dword [esp + 0x44]
add edx, 0xfffff4e4
xor cx, 0x7ead
xor ax, 0x2a50
mov dword [esp + 0x34], edx
mov word [esp + 0x3e], ax
mov edx, dword [esp + 0x34]
mov ax, word [esp + 0x3e]
mov dword [esp + 0x30], edx
mov edx, dword [esp + 0x28]
mov dword [esp + 0x2c], edx
cmp ax, cx
je 0x401d79
jmp 0x401cfe
mov ax, 0x6543
mov dword [esp + 0x38], 0
sub ax, word [esp + 0x54]
mov word [esp + 0x54], ax
jmp 0x401cf0
lea eax, [0x4018f0]
mov dword [esp + 0x38], eax
jmp 0x401cf0
mov eax, 0xb339
mov ecx, dword [esp + 0x2c]
sub eax, dword [esp + 0x44]
mov edx, dword [esp + 0x14]
mov dword [esp + 0x58], edx
cmp ecx, eax
jb 0x401d1c
mov eax, dword [esp + 0x38]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 4
mov eax, dword [esp + 0x14]
and eax, eax
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x30]
mov ecx, dword [esp + 0x44]
add ecx, 0x116
cmp eax, ecx
jae 0x401cf0
jmp 0x401cd7
lea eax, [fcn.00403af0]
mov dword [esp + 0x38], eax
jmp 0x401cf0
mov eax, dword [esp + 0x48]
mov ecx, dword [esp + 0x4c]
xor eax, 0x5a38
mov dword [esp + 0x58], 0
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], eax
mov edx, dword [esp + 0x48]
mov esi, dword [esp + 0x4c]
xor edi, edi
mov ebx, 0x9d2d
sub ebx, edx
sbb edi, esi
sub ebx, eax
sbb edi, ecx
mov dword [esp + 4], edi
mov dword [esp], ebx
jae 0x401d28
jmp 0x401cb3
lea eax, [0x401790]
mov dword [esp + 0x38], eax
jmp 0x401cf0
mov eax, 0x824c
mov ecx, 0x6a4f
sub ecx, dword [esp + 0x44]
mov dword [esp + 0x40], ecx
sub eax, dword [esp + 0x44]
cmp eax, dword [esp + 0x40]
jbe 0x401d79
jmp 0x401ccb
Function at 0x402910
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x98
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0x8c], 0
mov dword [esp + 0x88], 0x31eb
mov byte [esp + 0x7f], 0x68
mov dword [esp + 0x78], 0x7acb
mov dl, byte [esp + 0x7f]
add dl, 0xa8
mov byte [esp + 0x46], dl
mov dword [esp + 0x6c], 0
mov dword [esp + 0x68], 0x7053
mov esi, dword [esp + 0x88]
mov edi, dword [esp + 0x8c]
xor ebx, ebx
mov edx, 0x7053
xor esi, 0x4610
or esi, edi
mov dword [esp + 0x28], eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x20], edx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x18], ebx
jne 0x402a82
jmp 0x40299c
call fcn.004036c0
xor ecx, ecx
mov dword [esp + 0x14], eax
mov eax, ecx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, esp
lea ecx, [esp + 0x47]
mov dword [eax], ecx
call fcn.00402ae0
sub esp, 4
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
mov dword [esp + 0x40], eax
mov ecx, esp
mov dword [ecx], eax
call fcn.00403840
sub esp, 4
mov dx, ax
mov word [esp + 0x3c], dx
mov word [esp + 0x3e], dx
mov dword [esp + 0x30], 0
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x64]
mov esi, esp
lea edi, [esp + 0x30]
mov dword [esi + 0xc], edi
lea edi, [esp + 0x3c]
mov dword [esi + 4], edi
mov dword [esi], ecx
mov dword [esi + 8], 0
call eax
sub esp, 0x10
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, 0x7acc
mov ecx, dword [esp + 0x74]
sub eax, dword [esp + 0x78]
add ecx, eax
mov dword [esp + 0x74], ecx
jmp 0x402ac1
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x78]
xor ecx, 0x7a65
xor eax, ecx
mov dl, al
mov eax, dword [esp + 0x74]
mov byte [esp + eax + 0x47], dl
jmp 0x402a28
mov eax, dword [esp + 0x74]
movsx eax, byte [esp + eax + 0x47]
mov cl, byte [esp + 0x7f]
add cl, 0x52
mov dl, byte [esp + 0x46]
mov dword [esp + 0x60], eax
mov byte [esp + 0x87], 0xa5
cmp cl, dl
jbe 0x402a5c
jmp 0x402a40
lea eax, [0x4050a0]
mov ecx, 0x19
lea edx, [esp + 0x47]
mov esi, dword [esp + 0x28]
mov dword [esp + 0x34], esi
mov edi, dword [esp + 0x24]
mov dword [esp + 0x64], edi
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0x19
mov dword [esp + 0x10], ecx
call fcn.00401dda
mov dword [esp + 0x74], 0
mov eax, 0x7ae3
mov ecx, dword [esp + 0x74]
sub eax, dword [esp + 0x78]
cmp ecx, eax
jb 0x402a5c
jmp 0x4029b3
Function at 0x418c30
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0040bb60
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x418cfb
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x418cfb
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x418cae
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x418cb9
or bh, 8
and edi, 0x8000000
je 0x418cd4
mov eax, dword [0xf580bc]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x418cfb
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4190d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4190fb
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x41911f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x41913a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x41c539
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x41c571
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00420978
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00420950
jmp 0x41c57d
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x41e113
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x41e155
call fcn.004368b0
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x41e155
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x41e14c
xor eax, eax
jmp 0x41e15d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0041e163
pop edi
pop esi
pop ebx
ret 4

Function at 0x41f3a4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x41f3c6
cmp dword [edi + 0x3c], 0
jne 0x41f3c6
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004368b0
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.0041f3f3
pop edi
pop esi
pop ebx
ret 8

Function at 0x41f441
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004368b0
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41f472
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.0041f485
pop edi
pop esi
pop ebx
ret 8
Function at 0x41f777
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x43d2f0
call fcn.0040b620
sub esp, 0x18
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov eax, dword [esi + 0x48]
mov edi, dword [esi + 0x44]
mov dword [ebp - 0x18], eax
call fcn.004368b0
cmp dword [esi + 0x40], 0
mov ebx, dword [eax + 0xc]
je 0x41f7b6
call fcn.004368b0
mov ebx, dword [eax + 0xc]
push 5
push dword [esi + 0x40]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x41f7c4
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x41f7d2
or eax, 0xffffffff
jmp 0x41f8ba
mov ecx, esi
call fcn.0041f6ed
mov dword [ebp - 0x14], eax
call fcn.0041c088
xor edi, edi
cmp dword [ebp - 0x14], edi
mov dword [ebp - 0x20], edi
je 0x41f809
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x41f809
push edi
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
push esi
mov dword [ebp - 4], edi
call fcn.0041c03c
push dword [ebp - 0x14]
call fcn.0041bb6e
push ebx
push eax
push dword [ebp - 0x18]
mov ecx, esi
call fcn.0041f485
cmp eax, edi
je 0x41f87c
test byte [esi + 0x24], 0x10
je 0x41f84a
push 4
mov ecx, esi
pop ebx
call fcn.0041e99f
test ah, 1
je 0x41f842
push 5
pop ebx
push ebx
mov ecx, esi
call fcn.0041e36a
cmp dword [esi + 0x1c], edi
je 0x41f87c
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.0041eb2b
jmp 0x41f87c
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], edi
je 0x41f890
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x41f8a9
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x41f8a9
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x58]
mov ecx, esi
call fcn.0041f727
mov eax, dword [esi + 0x2c]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x433638
Capabilities:
Create http request

Disassembly:
mov eax, 0x43d4c8
call fcn.0040b620
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x433670
call fcn.004368b0
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x433695
push eax
push dword [esi + 4]
call fcn.00434316
jmp 0x4336a1
push esi
push eax
mov ecx, 0xf56558
call fcn.004336b2
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x43397f
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
mov eax, 0x43d527
call fcn.0040b620
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.00421b28
mov eax, dword [ebp + 0x18]
lea ebx, [esi + 0x24]
mov dword [esi + 0x1c], eax
mov eax, dword [0xf50890]
xor edi, edi
mov dword [ebx], eax
mov dword [ebp - 4], edi
push dword [ebp + 0x10]
lea ecx, [esi + 0xc]
mov byte [ebp - 4], 1
mov dword [esi], vtable.CInternetFile.0
call fcn.004206ce
push dword [ebp + 0x14]
mov ecx, ebx
call fcn.004206ce
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x1c]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18

Function at 0x434c09
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004368b0
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x434c46
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x434c46
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x434c4a
xor eax, eax
jmp 0x434cc8
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.0041b601
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x434c82
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x434c6c
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.00434db9
push ebx
mov edi, eax
call fcn.0041b62a
test edi, edi
pop ecx
je 0x434cc4
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.00434b82
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.00434ccd
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4096af
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4142bc]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [section..data]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0040585e
mov dword [ebp - 0x14], eax
cmp dword [0x416040], esi
jne 0x4097a2
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40972f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x409882
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x409882
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x409882
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x416040], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x416044], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x416048], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x416050], eax
test eax, eax
je 0x40979f
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41604c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4097c7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4097ba
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4097dc
push 4
pop eax
jmp 0x409884
cmp dword [ebp - 0x14], esi
je 0x4097dc
push dword [0x416040]
call dword [0x414004]
push 3
jmp 0x4097c1
mov eax, dword [0x41604c]
mov ebx, dword [0x414004]
cmp eax, edi
je 0x40983a
cmp dword [0x416050], edi
je 0x40983a
push eax
call ebx
push dword [0x416050]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40983a
test eax, eax
je 0x40983a
call ecx
test eax, eax
je 0x40982f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40982f
test byte [ebp - 8], 1
jne 0x40983a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40986a
mov eax, dword [0x416044]
cmp eax, edi
je 0x409867
push eax
call ebx
test eax, eax
je 0x409867
call eax
mov esi, eax
test esi, esi
je 0x409867
mov eax, dword [0x416048]
cmp eax, edi
je 0x409867
push eax
call ebx
test eax, eax
je 0x409867
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x416040]
call ebx
test eax, eax
je 0x409882
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x409884
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004025f2
mov esp, ebp
pop ebp
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
nop
nop
nop
pop edi
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x433072
nop
nop
mov ebx, 0x40de38
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
pop eax
nop
nop
nop
nop
nop
nop
mov esi, 0x31b6641a
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6d28215c
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x626008], 0x8088405
inc edx
mov dword [ebx + 0x626008], 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