joyce8/EMBER2024-capa huggingface dataset:
Function at 0x425526
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
mov eax, 0x427f03
call fcn.0040cc80
sub esp, 0x118
mov eax, dword [0x4351d0]
push ebx
push esi
push edi
mov dword [ebp - 0x10], eax
call fcn.0041e708
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x118], eax
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0041e708
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x11c], eax
mov edi, SysReAllocString
cmp dword [ebp + 0x18], edi
mov byte [ebp - 4], 1
mov dword [ebp - 0x120], ebx
jne 0x42559d
lea eax, [ebp - 0x120]
push eax
push 0x20019
push ebx
push str.CLSID
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov eax, dword [ebp + 8]
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 0x124], 1
je 0x425688
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
add dword [ebp + 8], 4
cmp dword [ebp + 0x18], edi
jne 0x4255cc
cmp byte [esi], 0
je 0x42566d
push esi
call ebx
push dword [ebp + 0x10]
lea eax, [eax + esi + 1]
push dword [ebp + 0xc]
mov dword [ebp - 0x114], eax
push esi
lea eax, [ebp - 0x118]
push eax
call fcn.00421970
push dword [ebp + 0x10]
lea eax, [ebp - 0x11c]
push dword [ebp + 0xc]
push dword [ebp - 0x114]
push eax
call fcn.00421970
cmp dword [ebp + 0x18], edi
mov eax, dword [ebp - 0x118]
jne 0x425615
cmp dword [eax - 0xc], 0
je 0x42566d
cmp dword [ebp + 0x14], 0
jne 0x425647
lea ecx, [ebp - 0x114]
push ecx
lea ecx, [ebp - 0x110]
push ecx
push eax
push dword [ebp + 0x18]
mov dword [ebp - 0x114], 0x100
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
je 0x42566d
mov eax, dword [ebp - 0x118]
mov esi, dword [ebp - 0x11c]
push esi
mov dword [ebp - 0x114], eax
call ebx
push eax
push esi
push 1
push dword [ebp - 0x114]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegSetValueA]
test eax, eax
jne 0x42567c
mov eax, dword [ebp + 8]
mov esi, dword [eax]
test esi, esi
jne 0x4255ba
jmp 0x425688
cmp eax, 5
je 0x425688
and dword [ebp - 0x124], 0
cmp dword [ebp - 0x120], 0
pop edi
pop esi
pop ebx
je 0x4256a0
push dword [ebp - 0x120]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x11c]
add ecx, 0xfffffff0
call fcn.004018e0
mov ecx, dword [ebp - 0x118]
add ecx, 0xfffffff0
call fcn.004018e0
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x124]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.0040cba9
leave
ret 0x14
Function at 0x4039c9
Capabilities:
Decode data using base64 via winapi

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4e28
call fcn.0043cb40
mov eax, dword [0x453674]
xor eax, ebp
mov dword [ebp - 8], eax
mov byte [ebp - 0x4e28], 0
push 0x4e1f
push 0
lea eax, [ebp - 0x4e27]
push eax
call fcn.004356c0
add esp, 0xc
and dword [ebp - 4], 0
push 0
push 0
lea eax, [ebp - 4]
push eax
push 0
push 1
push dword [ebp + 8]
call fcn.00421aa4
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
push 0
push 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x4e28]
push eax
push 1
push dword [ebp + 8]
call fcn.00421aa4
pop ecx
push eax
push dword [ebp + 8]
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x403a52
lea eax, [ebp - 0x4e28]
jmp 0x403a57
mov eax, 0x44ea50
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.0042dfd1
leave
ret
Function at 0x407e31
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x407e41
xor eax, eax
jmp 0x407fc4
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x407f8a
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x407e4a
cmp dword [ebp + 0x10], 0
je 0x407fbe
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jne 0x407f90
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x407fc6
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
imul eax, eax, 0x8088405
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
shr eax, 0x18
mov ecx, dword [ebp + 8]
xor eax, dword [ecx + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x44a098]
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
pop ebp
ret
Function at 0x41eb4e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x441be6
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x453674]
xor eax, ebp
mov dword [ebp - 0x18], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x58], ecx
mov eax, dword [ebp - 0x58]
cmp dword [eax + 0x44], 0
je 0x41eb8e
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax + 0x49]
test eax, eax
jne 0x41eb9a
mov al, 1
jmp 0x41ed26
mov dword [ebp - 0x10], 8
call fcn.004153cd
push eax
mov eax, dword [ebp - 0x58]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x58]
call dword [eax + 0xc]
mov dword [ebp - 0x3c], eax
call fcn.004153cd
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0041538d
pop ecx
pop ecx
movzx eax, al
test eax, eax
je 0x41ebda
xor al, al
jmp 0x41ed26
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.0041e3c6
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x44]
push eax
lea ecx, [ebp - 0x34]
call fcn.00411dbc
mov ecx, eax
call fcn.0041f405
mov esi, eax
lea ecx, [ebp - 0x34]
call fcn.00403de6
add esi, eax
push esi
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x34]
call fcn.00411dbc
mov ecx, eax
call fcn.0041f405
push eax
mov eax, dword [ebp - 0x58]
add eax, 0x4c
push eax
mov eax, dword [ebp - 0x58]
mov ecx, dword [eax + 0x44]
call fcn.0041f42a
mov dword [ebp - 0x5c], eax
cmp dword [ebp - 0x5c], 0
je 0x41ec52
cmp dword [ebp - 0x5c], 1
je 0x41ec59
cmp dword [ebp - 0x5c], 3
je 0x41eceb
jmp 0x41ed00
mov eax, dword [ebp - 0x58]
mov byte [eax + 0x49], 0
lea eax, [ebp - 0x4c]
push eax
lea ecx, [ebp - 0x34]
call fcn.00411dbc
mov ecx, eax
call fcn.0041f405
mov ecx, dword [ebp - 0x14]
sub ecx, eax
mov dword [ebp - 0x38], ecx
je 0x41ecb7
mov eax, dword [ebp - 0x58]
push dword [eax + 0x54]
push dword [ebp - 0x38]
push 1
lea eax, [ebp - 0x50]
push eax
lea ecx, [ebp - 0x34]
call fcn.00411dbc
mov ecx, eax
call fcn.0041f405
push eax
call fcn.0042fa1b
add esp, 0x10
cmp dword [ebp - 0x38], eax
je 0x41ecb7
mov byte [ebp - 0x51], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403da2
mov al, byte [ebp - 0x51]
jmp 0x41ed26
mov eax, dword [ebp - 0x58]
movzx eax, byte [eax + 0x49]
test eax, eax
jne 0x41ecd7
mov byte [ebp - 0x52], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403da2
mov al, byte [ebp - 0x52]
jmp 0x41ed26
cmp dword [ebp - 0x38], 0
jne 0x41ece9
push 0
push 8
lea ecx, [ebp - 0x34]
call fcn.004128cf
jmp 0x41ed15
mov byte [ebp - 0x53], 1
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403da2
mov al, byte [ebp - 0x53]
jmp 0x41ed26
mov byte [ebp - 0x54], 0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x34]
call fcn.00403da2
mov al, byte [ebp - 0x54]
jmp 0x41ed26
jmp 0x41ebea
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x18]
xor ecx, ebp
call fcn.0042dfd1
leave
ret
Function at 0x422054
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4422e7
mov eax, dword fs:[0]
push eax
sub esp, 0x2c8
mov eax, dword [0x453674]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2d0], ecx
and dword [ebp - 0x2cc], 0
and dword [ebp - 4], 0
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2d0]
call fcn.00421e00
mov dword [ebp - 0x2d4], eax
lea eax, [ebp - 0x2b4]
push eax
mov ecx, dword [ebp - 0x2d4]
call fcn.00411f7b
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x2c8], eax
lea ecx, [ebp - 0x2c]
call fcn.00411f5e
lea ecx, [ebp - 0x2c4]
call fcn.00423867
mov byte [ebp - 4], 1
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x48]
call fcn.00421363
mov byte [ebp - 4], 2
lea eax, [ebp - 0x48]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.004238f4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00411f5e
lea eax, [ebp - 0x2b4]
push eax
push dword [ebp - 0x2c8]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x422154
lea eax, [ebp - 0x288]
push eax
lea ecx, [ebp - 0x64]
call fcn.00421363
mov byte [ebp - 4], 3
lea eax, [ebp - 0x64]
push eax
lea ecx, [ebp - 0x2c4]
call fcn.004238f4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x64]
call fcn.00411f5e
jmp 0x42210d
lea eax, [ebp - 0x2c4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00423887
mov eax, dword [ebp - 0x2cc]
or eax, 1
mov dword [ebp - 0x2cc], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x2c4]
call fcn.004141cc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xc]
call fcn.00403da2
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042dfd1
leave
ret 0x20
Function at 0x429321
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x6af78], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af70], 0
jne 0x429355
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af78], 1
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af70], 0x10000
mov eax, dword [ebp + 8]
and dword [eax + 0x6af6c], 0
push 0x1fffc
push 0
mov eax, dword [ebp + 8]
add eax, 0x4af70
push eax
call fcn.004356c0
add esp, 0xc
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x44719a]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af98], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x447198]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af9c], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x44719c]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6afa0], eax
mov eax, dword [ebp + 0xc]
movzx eax, word [eax*8 + 0x44719e]
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af94], eax
cmp dword [ebp + 0xc], 2
jg 0x4293de
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
or eax, 4
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
jmp 0x4293f3
cmp dword [ebp + 0xc], 8
jl 0x4293f3
mov eax, dword [ebp + 0x10]
movzx eax, word [eax]
or eax, 2
mov ecx, dword [ebp + 0x10]
mov word [ecx], ax
mov eax, dword [ebp + 8]
and dword [eax + 0x6af84], 0
mov eax, dword [ebp + 8]
and dword [eax + 0x6af74], 0
mov dword [ebp - 4], 0x8000
mov eax, dword [ebp - 4]
shl eax, 1
mov dword [ebp - 4], eax
push dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, 0x1af70
push eax
push dword [ebp + 8]
mov eax, dword [ebp + 8]
call dword [eax + 0xc]
add esp, 0xc
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af90], eax
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0
je 0x42944f
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0xffffffff
jne 0x429468
mov eax, dword [ebp + 8]
mov dword [eax + 0x6af8c], 1
mov eax, dword [ebp + 8]
and dword [eax + 0x6af90], 0
jmp 0x4294d2
mov eax, dword [ebp + 8]
and dword [eax + 0x6af8c], 0
mov eax, dword [ebp + 8]
cmp dword [eax + 0x6af90], 0x106
jae 0x42948a
push dword [ebp + 8]
call fcn.00429784
pop ecx
mov eax, dword [ebp + 8]
and dword [eax + 0x6af7c], 0
and dword [ebp - 4], 0
jmp 0x4294a1
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jae 0x4294d2
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x6af7c]
shl eax, 5
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
movzx ecx, byte [ecx + 0x1af70]
xor eax, ecx
and eax, 0x7fff
mov ecx, dword [ebp + 8]
mov dword [ecx + 0x6af7c], eax
jmp 0x42949a
leave
ret
Function at 0x42afc7
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x42afd7
xor eax, eax
jmp 0x42b15a
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
mov dword [ebp + 8], eax
cmp dword [ebp + 0x10], 8
jb 0x42b120
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
sub eax, 8
mov dword [ebp + 0x10], eax
jmp 0x42afe0
cmp dword [ebp + 0x10], 0
je 0x42b154
mov eax, dword [ebp + 0xc]
movzx eax, byte [eax]
xor eax, dword [ebp + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov dword [ebp + 8], ecx
mov eax, dword [ebp + 0xc]
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0x10]
dec eax
mov dword [ebp + 0x10], eax
jne 0x42b126
mov eax, dword [ebp + 8]
xor eax, 0xffffffff
pop ebp
ret
Function at 0x42b15c
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
movsx eax, byte [ebp + 0xc]
mov ecx, dword [ebp + 8]
xor eax, dword [ecx]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
and eax, 0xff
mov ecx, dword [ebp + 8]
add eax, dword [ecx + 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
imul eax, eax, 0x8088405
inc eax
mov ecx, dword [ebp + 8]
mov dword [ecx + 4], eax
mov eax, dword [ebp + 8]
mov eax, dword [eax + 4]
shr eax, 0x18
mov ecx, dword [ebp + 8]
xor eax, dword [ecx + 8]
and eax, 0xff
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
shr ecx, 8
xor ecx, dword [eax*4 + 0x4471e8]
mov eax, dword [ebp + 8]
mov dword [eax + 8], ecx
pop ebp
ret
Function at 0x42dfd1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x453674]
jne 0x42dfdb
repz ret
jmp fcn.00432f15

Function at 0x43be4c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x453674]
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.00435115
and dword [ebp - 0x14], 0
cmp dword [0x455998], 0
mov dword [ebp - 0x18], eax
jne 0x43beff
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x43bfa7
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x43bfa7
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x455998], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x45599c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4559a0], eax
call edi
push eax
call esi
mov dword [0x4559a8], eax
test eax, eax
je 0x43beff
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4559a4], eax
mov eax, dword [0x4559a4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x43bf58
cmp dword [0x4559a8], ecx
je 0x43bf58
push eax
call esi
push dword [0x4559a8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x43bf58
test ebx, ebx
je 0x43bf58
call edi
test eax, eax
je 0x43bf4f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x43bf4f
test byte [ebp - 8], 1
jne 0x43bf58
or dword [ebp + 0x10], 0x200000
jmp 0x43bf8b
mov eax, dword [0x45599c]
cmp eax, dword [ebp - 0x18]
je 0x43bf8b
push eax
call esi
test eax, eax
je 0x43bf8b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x43bf8b
mov eax, dword [0x4559a0]
cmp eax, dword [ebp - 0x18]
je 0x43bf8b
push eax
call esi
test eax, eax
je 0x43bf8b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x455998]
call esi
test eax, eax
je 0x43bfa7
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x43bfa9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042dfd1
leave
ret
Function at 0x404670
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
push esp
pop ebp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x40b430
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
lea ecx, [esp + 0x1c]
mov eax, dword [esi + 0x50]
push eax
push 1
push 0
call sub.MFC42.DLL_CPen::CPen
mov edi, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [esi + 0x54]
mov dword [esp + 0x68], 0
mov esi, dword [edi + 8]
mov edx, dword [ecx]
sub esi, dword [edi]
mov dword [esp + 0x50], edx
mov eax, dword [ecx + 4]
mov dword [esp + 0x10], esi
mov dword [esp + 0x54], eax
mov eax, dword [ecx + 8]
mov esi, dword [edi + 0xc]
fild dword [esp + 0x10]
sub eax, edx
sub esi, dword [edi + 4]
mov dword [esp + 0x10], eax
mov ecx, dword [ecx + 0xc]
fstp qword [esp + 0x24]
fild dword [esp + 0x10]
fld qword [esp + 0x24]
mov eax, dword [esp + 0x54]
mov dword [esp + 0x14], esi
fdiv st(1)
sub ecx, eax
fst qword [esp + 0x3c]
fild dword [esp + 0x14]
mov dword [esp + 0x14], ecx
lea ecx, [ebx*8]
push ecx
fstp qword [esp + 0x30]
fild dword [esp + 0x18]
fld qword [esp + 0x30]
fdiv st(1)
fst qword [esp + 0x48]
fxch st(1)
fmul st(1)
fstp qword [esp + 0x38]
fstp st(0)
fxch st(1)
fmul st(1)
fstp qword [esp + 0x18]
fstp st(0)
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x10], eax
or ebx, ebx
jle 0x404809
test eax, eax
je 0x404816
sub esi, esi
test ebx, ebx
jle 0x4047dc
fld qword [esp + 0x24]
fsub qword [esp + 0x14]
fmul qword [0x40c338]
fld qword [esp + 0x2c]
fsub qword [esp + 0x34]
fmul qword [0x40c338]
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + 0x58]
mov edx, dword [esp + 0x50]
mov ecx, dword [eax + esi*8]
sub ecx, edx
mov dword [esp + 0x14], ecx
fild dword [esp + 0x14]
fmul qword [esp + 0x3c]
fild dword [edi]
faddp st(1)
fadd st(2)
call sub.MSVCRT.dll__ftol
mov edx, dword [esp + 0x10]
mov dword [edx + esi*8], eax
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0x58]
mov eax, dword [esp + 0x54]
mov edx, dword [ecx + esi*8 + 4]
sub edx, eax
mov dword [esp + 0x14], edx
fild dword [esp + 0x14]
fmul qword [esp + 0x44]
fild dword [edi + 4]
faddp st(1)
fadd st(1)
call sub.MSVCRT.dll__ftol
mov ecx, dword [esp + 0x10]
inc esi
cmp esi, ebx
mov dword [ecx + esi*8 - 4], eax
jl 0x404776
fstp st(0)
fstp st(0)
mov esi, dword [ebp + 8]
lea edx, [esp + 0x1c]
push edx
mov ecx, esi
call sub.MFC42.DLL_CDC::SelectObject_2
mov ecx, dword [esi + 4]
push eax
pop edi
mov eax, dword [esp + 0x10]
push ebx
push eax
push ecx
call dword [sym.imp.GDI32.dll_Polyline]
push edi
push esi
pop ecx
call sub.MFC42.DLL_CDC::SelectObject_2
mov eax, dword [esp + 0x10]
or eax, eax
je 0x404816
push eax
call sub.MFC42.DLL_operatordelete
add esp, 4
mov dword [esp + 0x1c], 0x40c324
lea ecx, [esp + 0x1c]
mov dword [esp + 0x68], 1
call sub.MFC42.DLL_CGdiObject::DeleteObject
mov ecx, dword [esp + 0x60]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
push ebp
pop esp
pop ebp
ret