joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401130
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
test edi, edi
mov esi, ecx
je 0x4011b1
cmp byte [edi], 0
je 0x4011c0
mov al, byte [esp + 0x10]
test al, al
mov byte [esi + 0x10c], al
push edi
je 0x40118d
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x401165
and eax, 0xfffffffe
push eax
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x427490
push edi
call fcn.004109be
add esp, 8
test eax, eax
mov dword [esi + 0x108], eax
je 0x40119b
push str._PROFILE__n
push eax
call fcn.00410904
add esp, 8
jmp 0x40119b
call fcn.00406cb0
add esp, 4
mov dword [esi + 0x108], eax
mov al, byte [esp + 0x14]
pop edi
mov byte [esi + 0x104], 1
mov byte [esi + 0x10d], al
pop esi
ret 0xc
mov cl, byte [esp + 0x14]
pop edi
mov byte [esi + 0x10d], cl
pop esi
ret 0xc
mov dl, byte [esp + 0x14]
pop edi
mov byte [esi + 0x10d], dl
pop esi
ret 0xc

Function at 0x401370
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x308
push ebx
push ebp
mov ebx, ecx
xor ebp, ebp
push esi
lea eax, [ebx + 4]
lea edx, [esp + 0x14]
push edi
mov dword [esp + 0x10], ebp
sub edx, eax
jmp 0x401390
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x401390
mov eax, dword [esp + 0x320]
mov ecx, eax
lea esi, [ecx + 1]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x4013a6
sub ecx, esi
mov dword [esp + 0x14], ecx
je 0x4013fa
lea edi, [esp + 0x18]
dec edi
lea ebx, [ebx]
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4013c0
mov cx, word [0x42747c]
mov word [edi], cx
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4013d4
lea edi, [esp + 0x18]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4013e2
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov al, byte [ebx + 0x10d]
test al, al
mov edi, dword [esp + 0x328]
mov esi, dword [esp + 0x324]
je 0x40146a
mov ecx, dword [esp + 0x31c]
lea edx, [esp + 0x10]
push edx
push 0x20019
push 0
lea eax, [esp + 0x24]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40146a
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x32c]
lea eax, [esp + 0x14]
push eax
push edi
push 0
push 0
push esi
push ecx
mov dword [esp + 0x2c], edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40145f
mov ebp, 1
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp byte [ebx + 0x104], 1
jne 0x4014e4
mov al, byte [ebx + 0x10c]
test al, al
jne 0x4014e4
cmp dword [ebx + 0x108], 0xffffffff
je 0x4014e4
push esi
lea eax, [esp + 0x21c]
push str.PROFILE_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea ecx, [esp + 0x124]
push ecx
push 1
lea edx, [esp + 0x22c]
push edx
push 0
call fcn.00406ce0
add esp, 0x1c
cmp eax, 0xffffffff
je 0x4014e4
lea eax, [esp + 0x118]
mov edx, edi
mov ecx, eax
sub edx, ecx
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x4014c8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x308
ret 0x14
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
add esp, 0x308
ret 0x14
Function at 0x401620
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401639
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40164d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40166e
cmp esi, eax
jae 0x401647
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401660
cmp esi, eax
jae 0x401647
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4016e0
Capabilities:
Enumerate processes
Terminate process

Disassembly:
sub esp, 0x128
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebx, eax
cmp ebx, 0xffffffff
je 0x401784
lea eax, [esp + 4]
push eax
push ebx
mov dword [esp + 0xc], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
jne 0x401726
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
add esp, 0x128
ret
push ebp
mov ebp, dword [esp + 0x134]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_OpenProcess]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_TerminateProcess]
lea esp, [esp]
lea ecx, [esp + 0x34]
push ebp
push ecx
call fcn.0041beee
add esp, 8
test eax, eax
jne 0x40176b
mov edx, dword [esp + 0x18]
push edx
push eax
push 0x1f0fff
call esi
test eax, eax
je 0x40176b
push 0xfffffb2e
push eax
call edi
lea eax, [esp + 0x10]
push eax
push ebx
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401740
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x128
ret
Function at 0x401790
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x258
push ebx
mov ebx, dword [esp + 0x260]
push esi
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
push eax
push eax
lea ecx, [esp + 0x16c]
push ecx
lea edx, [esp + 0x6c]
push edx
push ebx
mov dword [esp + 0x2c], eax
call fcn.004107bc
lea eax, [esp + 0x178]
add esp, 0x14
mov edx, eax
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4017e0
lea edi, [esp + 0x60]
sub eax, edx
dec edi
mov edi, edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x4017f0
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
lea eax, [esp + 0xc]
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x68]
push edx
push 0
push 0x4000000
push 0
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40185e
mov eax, dword [esp + 0xc]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x401842
push eax
call esi
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40184d
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x258
ret 4
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x258
ret 4

Function at 0x402450
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 0x1c]
sub esp, 0x100
cmp eax, 0x10
mov eax, dword [esp + 0x108]
jae 0x40246d
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 4]
push str._sdata1.pak
push eax
call fcn.00410dad
add esp, 0xc
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
mov eax, dword [esp + 0x11c]
jne 0x4024b6
cmp eax, 0x10
jb 0x4024ab
mov edx, dword [esp + 0x108]
push edx
call fcn.0041d08b
add esp, 4
xor al, al
add esp, 0x100
ret 0x1c
cmp eax, 0x10
jb 0x4024cb
mov eax, dword [esp + 0x108]
push eax
call fcn.0041d08b
add esp, 4
mov al, 1
add esp, 0x100
ret 0x1c
Function at 0x402fe0
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4268cb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x104
push esi
call fcn.0041d17c
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 4], esi
push 0x29
mov dword [esp + 0x114], 0
call fcn.0041d171
test eax, eax
je 0x403035
push 0x29
push eax
lea ecx, [esp + 0xc]
call fcn.00402200
mov esi, dword [esp + 4]
lea eax, [esp + 8]
push eax
push 0x100
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
lea ecx, [esp + 0xc]
push ecx
push 0
call fcn.00401030
add esp, 0xc
test eax, eax
je 0x4030cf
lea edx, [esp + 8]
push edx
mov eax, edx
push 0x427548
push eax
call fcn.00410dad
lea eax, [esp + 0x14]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x403075
sub eax, edx
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x120]
call fcn.00402770
lea eax, [esi - 0x10]
mov dword [esp + 0x110], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4030b5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, 1
pop esi
mov ecx, dword [esp + 0x104]
mov dword fs:[0], ecx
add esp, 0x110
ret 4
lea eax, [esi - 0x10]
mov dword [esp + 0x110], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4030f4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x108]
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x110
ret 4
Function at 0x403e40
Capabilities:
Access peb ldr_data
Get ntdll base address
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x426a3a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push ebp
push esi
mov esi, ecx
lea ebp, [esi + 0x10]
mov dword [esi], 0x427674
xor ebx, ebx
mov eax, 0xf
mov dword [ebp + 0x18], eax
mov dword [ebp + 0x14], ebx
push edi
mov dword [esp + 0x10], esi
mov byte [ebp + 4], bl
mov dword [esi + 0x44], eax
mov dword [esi + 0x40], ebx
mov dword [esp + 0x1c], ebx
mov byte [esi + 0x30], bl
mov dword [esi + 0x60], eax
mov dword [esi + 0x5c], ebx
mov byte [esi + 0x4c], bl
mov dword [esi + 0x7c], eax
mov dword [esi + 0x78], ebx
mov byte [esi + 0x68], bl
mov dword [esi + 0x98], eax
mov dword [esi + 0x94], ebx
mov byte [esi + 0x84], bl
mov dword [esi + 0xb4], eax
mov dword [esi + 0xb0], ebx
mov byte [esi + 0xa0], bl
mov dword [esi + 0xd0], eax
mov dword [esi + 0xcc], ebx
mov byte [esi + 0xbc], bl
mov dword [esi + 0xec], eax
mov dword [esi + 0xe8], ebx
mov byte [esi + 0xd8], bl
lea edi, [esi + 0xf0]
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov byte [edi + 4], bl
mov dword [edi + 0x34], eax
mov dword [edi + 0x30], ebx
mov byte [edi + 0x20], bl
mov dword [edi + 0x50], eax
mov dword [edi + 0x4c], ebx
mov byte [edi + 0x3c], bl
mov dword [edi + 0x6c], eax
mov dword [edi + 0x68], ebx
mov byte [edi + 0x58], bl
mov dword [edi + 0x88], eax
mov dword [edi + 0x84], ebx
mov byte [edi + 0x74], bl
mov dword [edi + 0xa4], eax
mov dword [edi + 0xa0], ebx
mov byte [edi + 0x90], bl
mov dword [esi + 0x19c], ebx
mov dword [esi + 0x1a0], ebx
mov dword [esi + 0x1a4], ebx
mov dword [esi + 0x1c4], eax
mov dword [esi + 0x1c0], ebx
mov byte [esi + 0x1b0], bl
lea ecx, [esi + 0x1c8]
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x14], ebx
mov byte [ecx + 4], bl
mov dword [esi + 0x1fc], eax
mov dword [esi + 0x1f8], ebx
mov byte [esi + 0x1e8], bl
mov byte [esp + 0x1c], 0xc
push ebx
push 0x4274ab
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x1a8], ebx
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0x1e4]
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0x2c]
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0x48]
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0x64]
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0x80]
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0x9c]
call fcn.00402770
push 2
push 0x427670
mov ecx, ebp
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0xb8]
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0xd4]
call fcn.00402770
push 2
push 0x427670
lea ecx, [esi + 0x144]
call fcn.00402770
push ebx
push 0x4274ab
mov ecx, edi
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0x10c]
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0x17c]
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0x160]
call fcn.00402770
push ebx
push 0x4274ab
lea ecx, [esi + 0x128]
call fcn.00402770
mov ecx, dword [esp + 0x14]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x4056c0
Capabilities:
Create directory
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x426bd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x28]
push 0x4274ab
push edi
mov dword [esp + 0x28], 0
call fcn.00411e7e
add esp, 8
test eax, eax
lea eax, [edi - 0x10]
jne 0x405711
or ebp, 0xffffffff
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
jmp 0x40585f
push ecx
mov dword [esp + 0x14], esp
mov esi, esp
push eax
call fcn.00401aa0
add eax, 0x10
mov dword [esi], eax
lea eax, [esp + 0x18]
add esp, 4
push eax
call fcn.00405610
add esp, 8
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 1
call fcn.00402890
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
or ebp, 0xffffffff
mov byte [esp + 0x20], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405767
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x30]
call fcn.00405540
mov eax, dword [eax]
push 0x42747c
push eax
call fcn.00411e7e
mov ebx, eax
mov eax, dword [esp + 0x18]
add esp, 8
neg ebx
sbb bl, bl
add eax, 0xfffffff0
inc bl
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4057ac
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
test bl, bl
je 0x4057f8
mov eax, dword [esp + 0x28]
mov eax, dword [eax - 0xc]
dec eax
push eax
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x30]
call fcn.004055b0
push eax
lea ecx, [esp + 0x2c]
mov byte [esp + 0x24], 2
call fcn.00402890
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x20], 0
lea edx, [eax + 0xc]
mov ecx, ebp
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x4057f8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov esi, dword [esp + 0x28]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebp
je 0x405818
lea eax, [esi - 0x10]
mov dword [esp + 0x20], ebp
lea ecx, [eax + 0xc]
lock xadd dword [ecx], ebp
dec ebp
jmp 0x40585f
push 0x5c
push esi
call fcn.00411e13
add esp, 8
test eax, eax
jne 0x40582b
mov eax, ebp
jmp 0x40582d
sub eax, esi
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
push eax
push ecx
lea ecx, [esp + 0x34]
call fcn.004055b0
call fcn.004056c0
add esp, 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea eax, [esi - 0x10]
mov dword [esp + 0x20], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x40586b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
pop ebx
add esp, 0x14
ret

Function at 0x407050
Capabilities:
Read file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x407073
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret
Function at 0x407080
Capabilities:
Write file on windows

Disassembly:
push ecx
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push 0
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x10]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4070a3
pop ecx
ret
mov eax, dword [esp]
pop ecx
ret

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

Disassembly:
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
xor eax, eax
mov dword [edx], 0x12345678
mov dword [edx + 4], 0x23456789
mov dword [edx + 8], 0x34567890
mov al, byte [esi]
test al, al
je 0x407135
push edi
mov ecx, dword [edx]
xor eax, ecx
and eax, 0xff
mov eax, dword [eax*4 + 0x42f218]
shr ecx, 8
xor eax, ecx
mov ecx, dword [edx + 4]
mov dword [edx], eax
and eax, 0xff
add eax, ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc esi
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
mov edi, dword [eax*4 + 0x42f218]
shr ecx, 8
xor ecx, edi
mov dword [edx + 8], ecx
mov al, byte [esi]
test al, al
jne 0x4070e6
pop edi
pop esi
ret
Function at 0x407140
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
sub esp, 0x10
mov eax, dword [0x4310a0]
mov ecx, dword [esp + 0x14]
xor eax, esp
push esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x10], eax
push 0xc
lea eax, [esp + 8]
push eax
push ecx
call fcn.00407050
add esp, 0xc
cmp eax, 0xc
jne 0x40733a
push ebx
push edi
xor edi, edi
mov eax, dword [esi + 8]
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + edi + 0xc]
mov edx, dword [esi]
shr ecx, 8
xor cl, al
xor eax, eax
mov al, cl
mov byte [esp + edi + 0xc], cl
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x42f218]
shr edx, 8
xor eax, edx
mov dword [esi], eax
mov edx, dword [esi + 4]
and eax, 0xff
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov edx, dword [esi + 8]
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x42f218]
shr edx, 8
xor eax, edx
mov dword [esi + 8], eax
and eax, 0xfffd
or eax, 2
mov ecx, eax
mov edx, dword [esi]
xor ecx, 1
imul ecx, eax
mov al, byte [esp + edi + 0xd]
shr ecx, 8
xor cl, al
xor eax, eax
mov al, cl
mov byte [esp + edi + 0xd], cl
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x42f218]
shr edx, 8
xor eax, edx
mov edx, dword [esi + 4]
mov dword [esi], eax
and eax, 0xff
add eax, edx
mov edx, dword [esi + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x42f218]
shr edx, 8
xor eax, edx
mov dword [esi + 8], eax
and eax, 0xfffd
or eax, 2
mov edx, dword [esi]
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + edi + 0xe]
shr ecx, 8
xor cl, al
xor eax, eax
mov al, cl
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x42f218]
shr edx, 8
xor eax, edx
mov edx, dword [esi + 4]
mov dword [esi], eax
and eax, 0xff
add eax, edx
imul eax, eax, 0x8088405
mov edx, dword [esi + 8]
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x42f218]
shr edx, 8
xor eax, edx
mov dword [esi + 8], eax
and eax, 0xfffd
or eax, 2
mov edx, dword [esi]
mov byte [esp + edi + 0xe], cl
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [esp + edi + 0xf]
shr ecx, 8
xor cl, al
xor eax, eax
mov al, cl
mov byte [esp + edi + 0xf], cl
add edi, 4
xor eax, edx
and eax, 0xff
mov eax, dword [eax*4 + 0x42f218]
shr edx, 8
xor eax, edx
mov edx, dword [esi + 4]
mov dword [esi], eax
and eax, 0xff
add eax, edx
mov edx, dword [esi + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edx
and eax, 0xff
mov ebx, dword [eax*4 + 0x42f218]
shr edx, 8
xor edx, ebx
cmp edi, 0xc
mov dword [esi + 8], edx
jl 0x407174
pop edi
pop ebx
mov eax, 0xc
pop esi
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.00412815
add esp, 0x10
ret
mov ecx, dword [esp + 0x10]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00412815
add esp, 0x10
ret
Function at 0x407350
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
jle 0x4073d3
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edx, dword [esi + 8]
mov edi, dword [esi]
mov eax, edx
and eax, 0xfffd
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
mov al, byte [ebp]
shr ecx, 8
xor cl, al
xor eax, eax
mov al, cl
xor eax, edi
and eax, 0xff
mov eax, dword [eax*4 + 0x42f218]
shr edi, 8
xor eax, edi
mov edi, dword [esi + 4]
mov dword [esi], eax
and eax, 0xff
add eax, edi
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 4], eax
shr eax, 0x18
xor eax, edx
and eax, 0xff
mov edi, dword [eax*4 + 0x42f218]
shr edx, 8
xor edx, edi
mov dword [esi + 8], edx
mov byte [ebp], cl
inc ebp
dec ebx
jne 0x407364
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x407f10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x20]
push esi
xor esi, esi
cmp eax, esi
mov word [esp + 0xc], si
mov word [esp + 0xe], si
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], esi
mov word [esp + 0x18], si
jne 0x407f49
mov dword [esp + 4], 0x6054b50
mov word [esp + 8], si
mov word [esp + 0xa], si
jmp 0x407f78
mov dword [esp + 4], 0x605444f
mov dword [esp + 8], 1
mov ecx, 4
mov edi, edi
mov al, cl
mov dl, 3
imul dl
mov dl, byte [esp + ecx + 4]
sub al, 0x5b
xor dl, al
mov byte [esp + ecx + 4], dl
inc ecx
cmp ecx, 0x16
jb 0x407f60
mov ecx, dword [esp + 0x20]
push 0x16
lea eax, [esp + 8]
push eax
push ecx
call fcn.00407080
add esp, 0xc
cmp eax, 0x16
mov eax, 1
je 0x407f98
mov eax, esi
pop esi
add esp, 0x18
ret

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

Disassembly:
mov ecx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
cmp ebp, 8
push esi
mov esi, dword [esp + 0xc]
push edi
not esi
jl 0x4085f1
mov edi, ebp
shr edi, 3
mov eax, edi
neg eax
lea ebp, [ebp + eax*8]
xor edx, edx
mov dl, byte [ecx]
mov eax, esi
shr eax, 8
xor edx, esi
and edx, 0xff
mov esi, dword [edx*4 + 0x42f218]
xor edx, edx
mov dl, byte [ecx + 1]
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x42f218]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x42f218]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x42f218]
xor edx, edx
mov dl, byte [ecx + 1]
shr eax, 8
xor eax, esi
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x42f218]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x42f218]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x42f218]
shr eax, 8
xor eax, esi
xor edx, edx
mov dl, byte [ecx + 1]
inc ecx
xor edx, eax
and edx, 0xff
mov esi, dword [edx*4 + 0x42f218]
shr eax, 8
xor eax, esi
inc ecx
dec edi
mov esi, eax
jne 0x408517
test ebp, ebp
je 0x408610
xor eax, eax
mov al, byte [ecx]
xor eax, esi
and eax, 0xff
mov edi, dword [eax*4 + 0x42f218]
shr esi, 8
xor esi, edi
inc ecx
dec ebp
jne 0x4085f5
pop edi
mov eax, esi
pop esi
not eax
pop ebp
ret
Function at 0x408670
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
test ebp, ebp
jle 0x408706
push ebx
push esi
push edi
mov edi, dword [esp + 0x14]
mov bl, byte [edi]
mov esi, dword [0x435070]
xor eax, eax
mov ecx, dword [0x435078]
mov al, bl
mov edx, ecx
and edx, 0xfffd
or edx, 2
xor eax, esi
and eax, 0xff
shr esi, 8
xor esi, dword [eax*4 + 0x42f218]
mov eax, esi
mov esi, dword [0x435074]
mov dword [0x435070], eax
and eax, 0xff
add eax, esi
imul eax, eax, 0x8088405
inc eax
mov dword [0x435074], eax
xor eax, eax
mov al, byte [0x435077]
xor eax, ecx
shr ecx, 8
and eax, 0xff
xor ecx, dword [eax*4 + 0x42f218]
mov dword [0x435078], ecx
mov ecx, edx
xor ecx, 1
imul ecx, edx
shr ecx, 8
xor cl, bl
mov byte [edi], cl
inc edi
dec ebp
jne 0x408684
pop edi
pop esi
pop ebx
pop ebp
ret