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

Disassembly:
sub esp, 0x10
push esi
mov esi, dword [esp + 0x18]
mov eax, 0x5a4d
mov dword [esp + 0x10], ecx
cmp word [esi], ax
je 0x403d4b
xor eax, eax
jmp 0x403eb9
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi + 0x74], 0x10
jne 0x403d44
mov ecx, dword [eax + esi + 0x7c]
mov dword [esp + 0xc], ecx
test ecx, ecx
je 0x403d44
push ebx
push ebp
push edi
mov edi, dword [eax + esi + 0x78]
xor ebx, ebx
add edi, esi
mov eax, dword [edi + 0x24]
mov edx, dword [edi + 0x20]
add eax, esi
mov dword [esp + 0x10], eax
add edx, esi
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [esp + 0x24], edx
mov dword [esp + 0x14], eax
cmp dword [esp + 0x28], ebx
je 0x403dcc
xor ebp, ebp
cmp dword [edi + 0x14], ebx
jbe 0x403eb4
mov ecx, dword [edx + ebp*4]
add ecx, esi
call fcn.004020de
cmp eax, dword [esp + 0x28]
je 0x403db7
mov edx, dword [esp + 0x24]
inc ebp
cmp ebp, dword [edi + 0x14]
jb 0x403d98
jmp 0x403eb4
mov eax, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
movzx eax, word [eax + ebp*2]
mov ebx, dword [ebx + eax*4]
jmp 0x403ddf
mov ebx, dword [esp + 0x2c]
sub ebx, dword [edi + 0x10]
cmp ebx, dword [edi + 0x14]
jae 0x403e73
mov ebx, dword [eax + ebx*4]
add ebx, esi
cmp ebx, edi
jbe 0x403eb4
lea eax, [ecx + edi]
cmp ebx, eax
jae 0x403eb4
push 0x104
call fcn.0040d22e
mov esi, 0x100
mov dword [esp + 0x2c], eax
push esi
call fcn.0040d22e
push 0x2e
push ebx
mov ebp, eax
call fcn.0040e650
add esp, 0x10
lea edi, [eax + 1]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
push ebp
call esi
sub edi, ebx
push edi
mov edi, dword [esp + 0x2c]
push ebx
push edi
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x423f18
push edi
call esi
push 0x423f1c
push edi
call esi
push 0x423f20
push edi
call esi
mov ebx, dword [esp + 0x1c]
mov ecx, ebx
push edi
call fcn.00403cc5
mov esi, eax
test esi, esi
jne 0x403e77
push eax
push ecx
push edi
mov ecx, ebx
call fcn.0040467d
mov esi, eax
test esi, esi
jne 0x403e77
xor eax, eax
jmp 0x403eb6
push ebp
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x403e92
cmp byte [ebp], 0x23
jne 0x403e92
movsx eax, byte [ebp + 1]
push eax
push 0
jmp 0x403e9c
push 0
mov ecx, ebp
call fcn.004020de
push eax
push esi
mov ecx, ebx
call fcn.00403d2e
push ebp
mov ebx, eax
call fcn.0040e482
push edi
call fcn.0040e482
pop ecx
pop ecx
mov eax, ebx
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x10
ret 0xc

Function at 0x404f88
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x404fce
sub ebx, 0x422630
mov ax, word [ebx + edi*2 + 0x422630]
mov ecx, esi
xor ax, word [edi*2 + 0x422630]
movzx eax, ax
push eax
call fcn.00402bc2
inc edi
cmp edi, dword [esp + 0x10]
jl 0x404fac
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x404fd8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x40501e
sub ebx, 0x4226a0
mov ax, word [ebx + edi*2 + 0x4226a0]
mov ecx, esi
xor ax, word [edi*2 + 0x4226a0]
movzx eax, ax
push eax
call fcn.00402bc2
inc edi
cmp edi, dword [esp + 0x10]
jl 0x404ffc
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x405026
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x9c
push ebx
push ebp
push esi
mov ebx, ecx
mov esi, edx
push edi
lea ecx, [esp + 0x28]
call fcn.004050eb
push 0x10
pop edi
cmp dword [esp + 0x3c], edi
lea edx, [esp + 0x28]
push dword [esi + 0x10]
cmovae edx, dword [esp + 0x2c]
lea ecx, [esp + 0x44]
xor ebp, ebp
mov dword [esp + 0x4c], 0x67452301
mov dword [esp + 0x48], ebp
mov dword [esp + 0x44], ebp
mov dword [esp + 0x50], 0xefcdab89
mov dword [esp + 0x54], 0x98badcfe
mov dword [esp + 0x58], 0x10325476
call fcn.00408041
lea ecx, [esp + 0x40]
call fcn.004080cd
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebp
lea esi, [esp + 0x98]
mov word [esp + 0x10], ax
movzx eax, byte [esi]
lea ecx, [esp + 0x10]
push eax
call fcn.00402bc2
inc esi
dec edi
jne 0x4050a6
push dword [esp + 0x20]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.0040518c
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.0040199b
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.0040176d
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x9c
ret
Function at 0x4089e5
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x408a2b
sub ebx, 0x422720
mov ax, word [ebx + edi*2 + 0x422720]
mov ecx, esi
xor ax, word [edi*2 + 0x422720]
movzx eax, ax
push eax
call fcn.00402bc2
inc edi
cmp edi, dword [esp + 0x10]
jl 0x408a09
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x408a33
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor eax, eax
push edi
xor edi, edi
mov ebx, edx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], edi
mov word [esi], ax
cmp dword [esp + 0x10], eax
jle 0x408a79
sub ebx, 0x422780
mov ax, word [ebx + edi*2 + 0x422780]
mov ecx, esi
xor ax, word [edi*2 + 0x422780]
movzx eax, ax
push eax
call fcn.00402bc2
inc edi
cmp edi, dword [esp + 0x10]
jl 0x408a57
pop edi
mov eax, esi
pop esi
pop ebx
ret 4
Function at 0x40b545
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x40b550
xor eax, eax
jmp 0x40b628
push ebx
push esi
mov esi, dword [esp + 0xc]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40b609
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x423900]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x423900]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x423900]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x423900]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x423900]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x423900]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x423900]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x423900]
dec edi
jne 0x40b56c
pop edi
test esi, esi
je 0x40b622
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x423900]
inc edx
dec esi
jne 0x40b60d
not ecx
pop esi
mov eax, ecx
pop ebx
ret 4

Function at 0x40b62b
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push esi
push edi
mov edi, ecx
movsx eax, dl
mov edx, 0xff
mov esi, dword [edi]
xor eax, esi
and eax, edx
shr esi, 8
mov eax, dword [eax*4 + 0x423900]
xor eax, esi
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edi + 8]
inc ecx
mov dword [edi + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, edx
xor eax, dword [ecx*4 + 0x423900]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x40c547
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
jne 0x40c55c
push 0xffffffffffffff9a
pop eax
jmp 0x40c685
push ebp
xor ebp, ebp
cmp dword [edi + 0x18], ebp
jne 0x40c568
push 0xffffffffffffff9a
jmp 0x40c58d
cmp dword [edi + 0x7c], ebp
je 0x40c572
call fcn.0040c8bb
lea eax, [esp + 0x10]
mov ecx, edi
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
call fcn.0040c3a8
test eax, eax
je 0x40c593
push 0xffffffffffffff99
pop eax
jmp 0x40c684
push esi
push 0x7e
call fcn.0040ed92
mov esi, eax
pop ecx
test esi, esi
je 0x40c5bd
push 0x4000
call fcn.0040ed92
mov dword [esi], eax
mov dword [esi + 0x4c], ebp
pop ecx
test eax, eax
jne 0x40c5c5
push esi
call fcn.0040ed1a
pop ecx
push 0xffffffffffffff98
pop eax
jmp 0x40c683
mov dword [esi + 0x40], ebp
xor ecx, ecx
cmp dword [edi + 0x34], ebp
mov eax, dword [edi + 0x3c]
mov dword [esi + 0x54], eax
sete cl
mov dword [esi + 0x50], ebp
mov eax, dword [edi + 0x34]
mov dword [esi + 0x64], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], ebp
test ecx, ecx
jne 0x40c60d
lea ecx, [esi + 4]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call fcn.0040b801
test eax, eax
jne 0x40c60d
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov dword [esi + 0x58], eax
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov al, byte [edi + 0x30]
and al, 1
mov byte [esi + 0x6c], al
mov eax, dword [edi + 0x30]
shr eax, 3
test al, 1
je 0x40c630
mov al, byte [edi + 0x39]
jmp 0x40c633
mov al, byte [edi + 0x3f]
mov byte [esi + 0x7d], al
xor eax, eax
cmp byte [esi + 0x6c], al
push 0xc
pop ecx
cmovne eax, ecx
mov dword [esi + 0x79], eax
mov dword [esi + 0x6d], 0x12345678
mov dword [esi + 0x71], 0x23456789
mov dword [esi + 0x75], 0x34567890
test ebx, ebx
je 0x40c66e
mov dl, byte [ebx]
test dl, dl
je 0x40c66e
lea ecx, [esi + 0x6d]
call fcn.0040b62b
inc ebx
jne 0x40c65d
mov eax, dword [esp + 0x10]
add eax, 0x1e
add eax, dword [edi + 0x78]
and dword [esi + 8], ebp
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [edi + 0x7c], esi
pop esi
pop ebp
pop edi
pop ebx
add esp, 0xc
ret
Function at 0x418df4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x426a74]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.launcher28.exe__DecodePointer_4]
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.0041487a
mov dword [ebp - 0x14], eax
cmp dword [0x46fe24], esi
jne 0x418ee7
push 0x800
push esi
push 0x421cc4
call dword [0x4240f8]
mov edi, eax
test edi, edi
jne 0x418e74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x418fc7
push esi
push esi
push 0x421cc4
call dword [0x4240f8]
mov edi, eax
test edi, edi
je 0x418fc7
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x418fc7
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x46fe24], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x46fe28], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x46fe2c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46fe34], eax
test eax, eax
je 0x418ee4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x46fe30], eax
mov edi, dword [ebp - 0x18]
call dword [0x4240f0]
test eax, eax
je 0x418f0c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x418eff
push eax
call dword [0x4240fc]
cmp dword [ebp - 0x14], esi
je 0x418f21
push 4
pop eax
jmp 0x418fc9
cmp dword [ebp - 0x14], esi
je 0x418f21
push dword [0x46fe24]
call dword [0x4240ec]
push 3
jmp 0x418f06
mov eax, dword [0x46fe30]
mov ebx, dword [sym.launcher28.exe__DecodePointer_4]
cmp eax, edi
je 0x418f7f
cmp dword [0x46fe34], edi
je 0x418f7f
push eax
call ebx
push dword [0x46fe34]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x418f7f
test eax, eax
je 0x418f7f
call ecx
test eax, eax
je 0x418f74
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 0x418f74
test byte [ebp - 8], 1
jne 0x418f7f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x418faf
mov eax, dword [0x46fe28]
cmp eax, edi
je 0x418fac
push eax
call ebx
test eax, eax
je 0x418fac
call eax
mov esi, eax
test esi, esi
je 0x418fac
mov eax, dword [0x46fe2c]
cmp eax, edi
je 0x418fac
push eax
call ebx
test eax, eax
je 0x418fac
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x46fe24]
call ebx
test eax, eax
je 0x418fc7
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x418fc9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040f3cd
mov esp, ebp
pop ebp
ret
Function at 0x4173d8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov byte [ebp - 1], cl
sub edx, 0
inc edx
mov dword [ebp - 8], edx
mov esi, dword [ebp - 8]
dec esi
test esi, esi
jl 0x417411
inc esi
xor ecx, ecx
movzx edx, byte [eax]
movzx ebx, byte [ebp - 1]
mov byte [ebp - 9], bl
xor dl, byte [ebp - 9]
mov ebx, dword [ebp + 8]
add ebx, ecx
mov edi, ebx
mov byte [edi], dl
inc ecx
inc eax
dec esi
jne 0x4173f6
mov eax, dword [ebp + 8]
add eax, dword [ebp - 8]
mov byte [eax], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x42b9c0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x40d015
lea edi, [esi - 0xc015]
push edi
or ebp, 0xffffffff
jmp 0x42b9e2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x42b9e9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x42b9d8
mov eax, 1
add ebx, ebx
jne 0x42b9fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x42b9f0
jne 0x42ba0c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42b9f0
xor ecx, ecx
sub eax, 3
jb 0x42ba20
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x42ba92
mov ebp, eax
add ebx, ebx
jne 0x42ba2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x42ba38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x42ba5c
inc ecx
add ebx, ebx
jne 0x42ba48
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x42ba3d
jne 0x42ba59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x42ba3d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x42ba7c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x42ba6d
jmp 0x42b9de
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x42ba7c
add edi, ecx
jmp 0x42b9de
pop esi
mov edi, esi
mov ecx, 0x2a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x42ba9a
cmp byte [edi], 2
jne 0x42ba9a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x42ba9f
lea edi, [esi + 0x29000]
mov eax, dword [edi]
or eax, eax
je 0x42bb0e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2b0e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x2b178]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x42bacc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x2b180]
or eax, eax
je 0x42bb08
mov dword [ebx], eax
add ebx, 4
jmp 0x42bae9
call dword [esi + 0x2b17c]
mov ebp, dword [esi + 0x2b184]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x42bb42
sub esp, 0xffffff80
jmp 0x401219
Function at 0x4b280d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x508e4c]
mov ecx, dword [ebp + 0x98]
push ebx
xor eax, ebp
push esi
mov dword [ebp + 0x8c], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x509700]
je 0x4b2844
inc eax
cmp eax, 0x13
jb 0x4b2835
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x509700]
jne 0x4b2967
mov eax, dword [0x50f558]
cmp eax, 1
je 0x4b2942
cmp eax, edx
jne 0x4b2874
cmp dword [0x508eb4], 1
je 0x4b2942
cmp ecx, 0xfc
je 0x4b2967
push 0x104
lea eax, [ebp - 0x7c]
push eax
push edx
mov byte [ebp + 0x88], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4b28aa
lea eax, [ebp - 0x7c]
push 0x4eb8c8
push eax
call fcn.004b0580
pop ecx
pop ecx
lea edi, [ebp - 0x7c]
mov eax, edi
push eax
call fcn.004adfd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4b28de
mov eax, edi
push eax
call fcn.004adfd0
mov edi, eax
lea eax, [ebp - 0x7c]
sub eax, 0x3b
push 3
add edi, eax
push 0x4eb8c4
push edi
call fcn.004a83c0
add esp, 0x10
push edi
call fcn.004adfd0
push dword [esi + 0x509704]
mov ebx, eax
call fcn.004adfd0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.004a9710
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.004b0580
push edi
push ebx
call fcn.004b0590
push 0x4eb8c0
push ebx
call fcn.004b0590
push dword [esi + 0x509704]
push ebx
call fcn.004b0590
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004b9f43
add esp, 0x2c
jmp 0x4b2967
push edx
lea eax, [ebp - 0x80]
push eax
lea esi, [esi + 0x509704]
push dword [esi]
call fcn.004adfd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x8c]
xor ecx, ebp
call fcn.004a8ea5
add ebp, 0x90
leave
ret
Function at 0x4b9f43
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x50fb60], ebx
push esi
push edi
jne 0x4b9fc3
push 0x4c8898
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x4b9ffe
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4f0c74
push edi
call esi
test eax, eax
mov dword [0x50fb60], eax
je 0x4b9ffe
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x50fb64], eax
call esi
cmp dword [0x50f50c], 2
mov dword [0x50fb68], eax
jne 0x4b9fc3
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x50fb70], eax
je 0x4b9fc3
push 0x4f0c1c
push edi
call esi
mov dword [0x50fb6c], eax
mov eax, dword [0x50fb6c]
test eax, eax
je 0x4ba008
call eax
test eax, eax
je 0x4b9fef
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x50fb70]
test eax, eax
je 0x4b9fef
test byte [ebp - 8], 1
jne 0x4ba008
cmp dword [0x50f518], 4
jb 0x4ba002
or byte [ebp + 0x12], 0x20
jmp 0x4ba027
xor eax, eax
jmp 0x4ba037
or byte [ebp + 0x12], 4
jmp 0x4ba027
mov eax, dword [0x50fb64]
test eax, eax
je 0x4ba027
call eax
mov ebx, eax
test ebx, ebx
je 0x4ba027
mov eax, dword [0x50fb68]
test eax, eax
je 0x4ba027
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x50fb60]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x7cd5bc
Capabilities:
Encode data using xor

Disassembly:
jmp 0x7cd5c6
pushal
call 0x7cd5cc
pop ebp
sub ebp, 0x10
sub ebp, 0x3cd5bc
jmp 0x7cd5e2
mov eax, 0x3cd5bc
add eax, ebp
add eax, 0x4c
mov ecx, 0x61b
mov edx, 0x1ede8231
xor byte [eax], dl
inc eax
dec ecx
jne 0x7cd5f9
jmp 0x7cd60c
mov edx, 0xdb8bafc
xor dword [ecx], esi
xor dword [eax + 0x3131c9f0], esi
xor dword [edx], esi
cld
mov dword [0x8b313131], esi
sbb dword [ecx], esi
xor dword [ecx], esi
invalid

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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