joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..text
mov ebx, 0x408f6c
nop
nop
mov ecx, 0x41ed0ddd
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x63882648
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

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

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40de38
nop
mov ecx, 0x65c8763c
nop
nop
nop
test eax, eax
nop
nop
je 0x43304e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
mov ecx, 0x778f067b
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x433084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219

Function at 0x401070
Capabilities:
Hide graphical window

Disassembly:
mov ebp, esp
push esi
mov eax, dword [ebp + 4]
mov dword [0x4040c3], eax
xor eax, eax
mov ecx, 0x16
push eax
dec ecx
jne 0x401082
lea ecx, [ebp - 0x5c]
push ecx
mov eax, 0x30
mov dword [ecx], eax
mov eax, dword [0x4040c3]
mov dword [ebp - 0x48], eax
mov eax, 0x40214c
mov dword [ebp - 0x54], eax
mov ecx, str.uquamarine
mov dword [ebp - 0x34], ecx
call dword [sym.imp.USER32.dll_RegisterClassExA]
mov dword [0x4041ac], 8
mov dword [0x4041b0], 0x4000
push 0x4041ac
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
xor ecx, ecx
push ecx
push dword [0x4040c3]
push ecx
push ecx
push 0x12e
push 0x7a
push 0x34c
push 0x2aa
push 0x40000
lea eax, str.kippohome
push eax
mov eax, str.uquamarine
push eax
push ecx
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [0x404200], eax
push 0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x404200]
push eax
call dword [sym.imp.USER32.dll_UpdateWindow]
xor ebx, ebx
lea edi, [ebp - 0x50]
jmp 0x401132
push edi
call dword [sym.imp.USER32.dll_TranslateMessage]
push edi
call dword [sym.imp.USER32.dll_DispatchMessageA]
push ebx
push ebx
push ebx
push edi
call dword [sym.imp.USER32.dll_GetMessageA]
test al, al
jne 0x401124
mov esp, ebp
ret
Function at 0x40313a
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 0x403180
sub ebx, 0x42b700
mov ax, word [ebx + edi*2 + 0x42b700]
mov ecx, esi
xor ax, word [edi*2 + 0x42b700]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x40315e
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x403188
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov edi, edx
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
cmp dword [esp + 0x10], ebx
jle 0x4031c8
sub edi, 0x42b690
mov al, byte [edi + ebx + 0x42b690]
mov ecx, esi
xor al, byte [ebx + 0x42b690]
movzx eax, al
push eax
call fcn.0040424a
inc ebx
cmp ebx, dword [esp + 0x10]
jl 0x4031a9
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x404943
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
mov edi, edx
cmp dword [0x498458], ebx
jne 0x404989
mov ecx, ebx
push 8
mov eax, ecx
pop edx
test al, 1
je 0x40496a
shr eax, 1
xor eax, 0xedb88320
jmp 0x40496c
shr eax, 1
dec edx
jne 0x40495d
mov dword [ecx*4 + 0x4a5670], eax
inc ecx
cmp ecx, 0x100
jl 0x404958
mov dword [0x498458], 1
mov eax, dword [ebp + 8]
or edx, 0xffffffff
xor ecx, ecx
lea eax, [edi + eax*2]
mov esi, eax
sub esi, edi
inc esi
shr esi, 1
cmp edi, eax
cmova esi, ecx
test esi, esi
je 0x4049be
movzx eax, byte [edi]
lea edi, [edi + 2]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x4a5670]
inc ebx
cmp ebx, esi
jb 0x4049a4
pop edi
not edx
pop esi
mov eax, edx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x405564
Capabilities:
Get common file path

Disassembly:
sub esp, 0x444
push ebx
push ebp
push esi
mov esi, dword [esp + 0x454]
mov ebx, ecx
push edi
push dword [esp + 0x45c]
mov ecx, esi
call fcn.004030b4
push eax
mov ecx, ebx
call fcn.004054d1
mov edi, eax
test edi, edi
jne 0x405707
push 0x104
lea eax, [esp + 0x44]
xor ebp, ebp
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
mov dword [esp + 0x24], 7
mov dword [esp + 0x20], ebp
mov word [esp + 0x10], ax
cmp word [esp + 0x40], ax
je 0x4055cf
lea eax, [esp + 0x40]
push eax
call fcn.0041012b
pop ecx
push eax
lea eax, [esp + 0x44]
push eax
lea ecx, [esp + 0x18]
call fcn.004026be
mov edi, 0x42d0c8
push edi
call fcn.0041012b
pop ecx
push eax
push ecx
push edi
lea ecx, [esp + 0x1c]
call fcn.0040648c
inc eax
lea ecx, [esp + 0x10]
push eax
push ebp
lea eax, [esp + 0x30]
push eax
call fcn.00401ad1
push eax
lea ecx, [esp + 0x14]
call fcn.00401a35
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.004023dd
cmp word [esi], bp
jne 0x405626
mov eax, ebp
jmp 0x40562d
push esi
call fcn.0041012b
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00401e6d
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
push dword [esp + 0x45c]
cmovae ecx, dword [esp + 0x14]
call fcn.004030b4
push eax
mov ecx, ebx
call fcn.004054d1
mov edi, eax
test edi, edi
jne 0x4056fb
lea eax, [esp + 0x248]
push eax
push ebp
push ebp
push 0x25
push ebp
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
cmp word [esp + 0x248], bp
jne 0x405685
mov eax, ebp
jmp 0x405693
lea eax, [esp + 0x248]
push eax
call fcn.0041012b
pop ecx
push eax
lea eax, [esp + 0x24c]
push eax
lea ecx, [esp + 0x18]
call fcn.004026be
mov edi, 0x42b5f8
push edi
call fcn.0041012b
pop ecx
push eax
push edi
lea ecx, [esp + 0x18]
call fcn.00401e6d
cmp word [esi], bp
jne 0x4056c5
mov eax, ebp
jmp 0x4056cc
push esi
call fcn.0041012b
pop ecx
push eax
push esi
lea ecx, [esp + 0x18]
call fcn.00401e6d
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x10]
push dword [esp + 0x45c]
cmovae ecx, dword [esp + 0x14]
call fcn.004030b4
push eax
mov ecx, ebx
call fcn.004054d1
mov edi, eax
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.004023dd
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x444
ret 8
Function at 0x4057c8
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, 0x5a4d
push edi
mov dword [esp + 0x14], ecx
cmp word [esi], ax
je 0x4057ec
xor eax, eax
jmp 0x405974
mov eax, dword [esi + 0x3c]
cmp dword [eax + esi + 0x74], 0x10
jne 0x4057e5
mov ecx, dword [eax + esi + 0x7c]
mov dword [esp + 0x24], ecx
test ecx, ecx
je 0x4057e5
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 + 0x1c], eax
add edx, esi
mov eax, dword [edi + 0x1c]
add eax, esi
mov dword [esp + 0x18], edx
mov dword [esp + 0x20], eax
cmp dword [ebp + 0xc], ebx
je 0x405874
xor eax, eax
mov dword [esp + 0x10], eax
cmp dword [edi + 0x14], eax
jbe 0x405972
mov ecx, dword [edx + eax*4]
add ecx, esi
call fcn.0040307d
cmp eax, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
je 0x40585f
mov edx, dword [esp + 0x18]
inc eax
mov dword [esp + 0x10], eax
cmp eax, dword [edi + 0x14]
jb 0x405839
jmp 0x405972
mov ecx, dword [esp + 0x1c]
mov ebx, dword [esp + 0x20]
movzx eax, word [ecx + eax*2]
mov ecx, dword [esp + 0x24]
mov ebx, dword [ebx + eax*4]
jmp 0x405886
mov ebx, dword [ebp + 0x10]
sub ebx, dword [edi + 0x10]
cmp ebx, dword [edi + 0x14]
jae 0x4057e5
mov ebx, dword [eax + ebx*4]
add ebx, esi
cmp ebx, edi
jbe 0x405972
lea eax, [ecx + edi]
cmp ebx, eax
jae 0x405972
push 0x104
call fcn.0040f054
mov dword [esp + 0x14], eax
mov dword [esp], 0x100
call fcn.0040f054
pop ecx
mov esi, eax
push 0x2e
push ebx
mov dword [esp + 0x2c], esi
call fcn.00410dd0
pop ecx
pop ecx
push 0x100
lea edi, [eax + 1]
push edi
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpynA]
call esi
sub edi, ebx
push edi
push ebx
mov ebx, dword [esp + 0x18]
push ebx
call esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x42b5fc
push ebx
call esi
push 0x42d0d0
push ebx
call esi
push 0x42d0d4
push ebx
call esi
mov ecx, dword [esp + 0x14]
push ebx
call fcn.0040576f
mov edi, eax
test edi, edi
jne 0x40592a
push eax
push ecx
push ebx
mov ebx, dword [esp + 0x20]
mov ecx, ebx
call fcn.0040613a
mov edi, eax
test edi, edi
jne 0x40592e
jmp 0x4057e5
mov ebx, dword [esp + 0x14]
mov esi, dword [esp + 0x24]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp eax, 1
jle 0x40594c
cmp byte [esi], 0x23
jne 0x40594c
movsx eax, byte [esi + 1]
push eax
push 0
jmp 0x405956
push 0
mov ecx, esi
call fcn.0040307d
push eax
push edi
mov ecx, ebx
call fcn.004057c8
push esi
mov ebx, eax
call fcn.00410a63
mov eax, dword [esp + 0x14]
pop ecx
push eax
call fcn.00410a63
pop ecx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40651e
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 0x406564
sub ebx, 0x42b7f0
mov ax, word [ebx + edi*2 + 0x42b7f0]
mov ecx, esi
xor ax, word [edi*2 + 0x42b7f0]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x406542
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x40656c
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 0x4065b2
sub ebx, 0x42b770
mov ax, word [ebx + edi*2 + 0x42b770]
mov ecx, esi
xor ax, word [edi*2 + 0x42b770]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x406590
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x4065ba
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.004018f0
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.004094e8
lea ecx, [esp + 0x40]
call fcn.00409574
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.00401a7c
inc esi
dec edi
jne 0x40663a
push dword [esp + 0x20]
lea edx, [esp + 0x14]
mov ecx, ebx
call fcn.0040667f
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.004023dd
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.00401d41
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x9c
ret
Function at 0x40667f
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x30
and dword [esp + 0x10], 0
push ebx
push ebp
push esi
push edi
mov esi, edx
mov dword [esp + 0x24], 0xf
mov ebx, ecx
mov byte [esp + 0x10], 0
xor edi, edi
mov al, byte [edi + 0x42b730]
lea ecx, [esp + 0x10]
xor al, byte [edi + 0x496af0]
movzx eax, al
push eax
call fcn.0040424a
inc edi
cmp edi, 0x10
jl 0x40669e
xor ebp, ebp
mov dword [esp + 0x3c], 7
xor eax, eax
mov dword [esp + 0x38], ebp
mov word [esp + 0x28], ax
cmp dword [esi + 0x10], ebp
jne 0x4066e8
push 0x42b5f0
mov ecx, ebx
call fcn.004019f1
jmp 0x40676c
mov edi, ebp
cmp dword [esp + 0x44], eax
jbe 0x406760
cmp dword [esi + 0x14], 8
jb 0x4066fa
mov eax, dword [esi]
jmp 0x4066fc
mov eax, esi
movzx eax, word [eax + edi*2]
lea ecx, [esp + 0x10]
cmp dword [esp + 0x24], 0x10
cmovae ecx, dword [esp + 0x10]
shr eax, 4
and eax, 0xf
movsx ax, byte [eax + ecx]
lea ecx, [esp + 0x28]
movzx eax, ax
push eax
call fcn.00401a7c
cmp dword [esi + 0x14], 8
jb 0x406730
mov eax, dword [esi]
jmp 0x406732
mov eax, esi
cmp dword [esp + 0x24], 0x10
lea ecx, [esp + 0x10]
movzx eax, word [eax + edi*2]
cmovae ecx, dword [esp + 0x10]
and eax, 0xf
movsx ax, byte [eax + ecx]
lea ecx, [esp + 0x28]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x44]
jb 0x4066f0
lea eax, [esp + 0x28]
mov ecx, ebx
push eax
call fcn.00401a13
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.004023dd
push ebp
push 1
lea ecx, [esp + 0x18]
call fcn.00401d41
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x30
ret 4
Function at 0x409eb9
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 0x409eff
sub ebx, 0x42b8e0
mov ax, word [ebx + edi*2 + 0x42b8e0]
mov ecx, esi
xor ax, word [edi*2 + 0x42b8e0]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x409edd
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x409f07
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 0x409f4d
sub ebx, 0x42b860
mov ax, word [ebx + edi*2 + 0x42b860]
mov ecx, esi
xor ax, word [edi*2 + 0x42b860]
movzx eax, ax
push eax
call fcn.00401a7c
inc edi
cmp edi, dword [esp + 0x10]
jl 0x409f2b
pop edi
mov eax, esi
pop esi
pop ebx
ret 4

Function at 0x40b287
Capabilities:
Get common file path

Disassembly:
sub esp, 0x2b4
lea eax, [esp + 0xa8]
push ebx
push ebp
push esi
push edi
push 0x208
push eax
mov bh, 1
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40b40c
and dword [esp + 0x38], 0
xor eax, eax
mov dword [esp + 0x3c], 7
mov word [esp + 0x28], ax
cmp word [esp + 0xb8], ax
je 0x40b2da
lea eax, [esp + 0xb8]
push eax
call fcn.0041012b
pop ecx
push eax
lea eax, [esp + 0xbc]
push eax
lea ecx, [esp + 0x30]
call fcn.004026be
push 0xc
mov edx, 0x496b70
lea ecx, [esp + 0x5c]
call fcn.00409eb9
push 0xd
mov edx, 0x496f70
lea ecx, [esp + 0x74]
call fcn.00409eb9
push 0xb
mov edx, 0x496c00
lea ecx, [esp + 0x8c]
call fcn.00409eb9
push 0xc
mov edx, 0x496dd0
lea ecx, [esp + 0xa4]
call fcn.00409eb9
xor esi, esi
lea ebp, [esp + 0x58]
mov edi, esi
xor eax, eax
mov dword [esp + 0x20], esi
mov esi, dword [esp + 0x38]
push 0x42b5f8
mov dword [esp + 0x28], 7
mov word [esp + 0x14], ax
call fcn.0041012b
pop ecx
add eax, esi
lea ecx, [esp + 0x10]
push eax
call fcn.00402caa
push 0xffffffffffffffff
xor esi, esi
lea eax, [esp + 0x2c]
push esi
push eax
lea ecx, [esp + 0x1c]
call fcn.00401dd0
push 0x42b5f8
call fcn.0041012b
pop ecx
push eax
push 0x42b5f8
lea ecx, [esp + 0x18]
call fcn.00401e6d
push 0xffffffffffffffff
push esi
push ebp
lea ecx, [esp + 0x1c]
call fcn.00401dd0
push eax
lea ecx, [esp + 0x44]
call fcn.00401a13
lea ecx, [esp + 0x40]
call fcn.0040ab19
push esi
push 1
lea ecx, [esp + 0x48]
mov bl, al
call fcn.004023dd
push esi
push 1
lea ecx, [esp + 0x18]
call fcn.004023dd
test bl, bl
jne 0x40b3e2
inc edi
add ebp, 0x18
cmp edi, 4
jl 0x40b33a
jmp 0x40b3e4
xor bh, bh
push 3
lea esi, [esp + 0xbc]
pop edi
push 0
sub esi, 0x18
push 1
mov ecx, esi
call fcn.004023dd
dec edi
jns 0x40b3ee
push 0
push 1
lea ecx, [esp + 0x30]
call fcn.004023dd
pop edi
pop esi
pop ebp
mov al, bh
pop ebx
add esp, 0x2b4
ret
Function at 0x40cdc6
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test edx, edx
jne 0x40cdd1
xor eax, eax
jmp 0x40cea9
push ebx
push esi
mov esi, dword [esp + 0xc]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40ce8a
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 + 0x42ca40]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca40]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca40]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca40]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca40]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca40]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca40]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca40]
dec edi
jne 0x40cded
pop edi
test esi, esi
je 0x40cea3
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x42ca40]
inc edx
dec esi
jne 0x40ce8e
not ecx
pop esi
mov eax, ecx
pop ebx
ret 4

Function at 0x40ceac
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 + 0x42ca40]
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 + 0x42ca40]
mov dword [edi + 8], eax
pop edi
pop esi
ret
Function at 0x40ddc1
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 0x40ddd6
push 0xffffffffffffff9a
pop eax
jmp 0x40df05
push ebp
xor ebp, ebp
cmp dword [edi + 0x18], ebp
jne 0x40dde2
push 0xffffffffffffff9a
jmp 0x40de07
cmp dword [edi + 0x7c], ebp
je 0x40ddec
call fcn.0040e13e
lea eax, [esp + 0x10]
mov ecx, edi
push eax
lea eax, [esp + 0x18]
push eax
lea edx, [esp + 0x14]
call fcn.0040dc22
test eax, eax
je 0x40de0d
push 0xffffffffffffff99
pop eax
jmp 0x40df04
push esi
push 0x84
call fcn.004113de
mov esi, eax
pop ecx
test esi, esi
je 0x40de3a
push 0x4000
call fcn.004113de
mov dword [esi], eax
mov dword [esi + 0x4c], ebp
pop ecx
test eax, eax
jne 0x40de42
push esi
call fcn.00410064
pop ecx
push 0xffffffffffffff98
pop eax
jmp 0x40df03
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 0x40de8a
lea ecx, [esi + 4]
mov dword [esi + 0x24], ebp
mov dword [esi + 0x28], ebp
mov dword [esi + 0x2c], ebp
call fcn.0040d082
test eax, eax
jne 0x40de8a
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 0x40dead
mov al, byte [edi + 0x39]
jmp 0x40deb0
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
xor eax, eax
cmp byte [esi + 0x6c], al
push 0xc
pop ecx
cmovne eax, ecx
mov dword [esi + 0x7c], eax
mov dword [esi + 0x70], 0x12345678
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
test ebx, ebx
je 0x40deee
mov dl, byte [ebx]
test dl, dl
je 0x40deee
lea ecx, [esi + 0x70]
call fcn.0040ceac
inc ebx
jne 0x40dedd
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 0x42082b
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x42f4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [0x42d1a8]
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.0041364c
mov dword [ebp - 0x14], eax
cmp dword [0x49843c], esi
jne 0x42091e
push 0x800
push esi
push str.USER32.DLL
call dword [0x42d1b8]
mov edi, eax
test edi, edi
jne 0x4208ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4209fe
push esi
push esi
push str.USER32.DLL
call dword [0x42d1b8]
mov edi, eax
test edi, edi
je 0x4209fe
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4209fe
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x49843c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x498440], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x498444], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x49844c], eax
test eax, eax
je 0x42091b
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x498448], eax
mov edi, dword [ebp - 0x18]
call dword [0x42d1b0]
test eax, eax
je 0x420943
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x420936
push eax
call dword [0x42d1bc]
cmp dword [ebp - 0x14], esi
je 0x420958
push 4
pop eax
jmp 0x420a00
cmp dword [ebp - 0x14], esi
je 0x420958
push dword [0x49843c]
call dword [0x42d1ac]
push 3
jmp 0x42093d
mov eax, dword [0x498448]
mov ebx, dword [0x42d1ac]
cmp eax, edi
je 0x4209b6
cmp dword [0x49844c], edi
je 0x4209b6
push eax
call ebx
push dword [0x49844c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4209b6
test eax, eax
je 0x4209b6
call ecx
test eax, eax
je 0x4209ab
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 0x4209ab
test byte [ebp - 8], 1
jne 0x4209b6
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4209e6
mov eax, dword [0x498440]
cmp eax, edi
je 0x4209e3
push eax
call ebx
test eax, eax
je 0x4209e3
call eax
mov esi, eax
test esi, esi
je 0x4209e3
mov eax, dword [0x498444]
cmp eax, edi
je 0x4209e3
push eax
call ebx
test eax, eax
je 0x4209e3
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x49843c]
call ebx
test eax, eax
je 0x4209fe
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x420a00
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00411b2d
mov esp, ebp
pop ebp
ret