joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409900
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x459f28
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
lea esi, [esp + 0xc]
call fcn.004197d0
mov esi, dword [esp + 0x20]
add esi, 0x1d8
push eax
mov ecx, esi
mov dword [esp + 0x1c], 0
call fcn.0040c110
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40996e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 7
push 0x462d8c
mov ecx, esi
call fcn.0040c440
mov eax, dword [esi]
push ecx
sub eax, 0x10
mov dword [esp + 0x24], esp
mov edi, esp
push eax
call fcn.0040c3d0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00419490
add esp, 4
test eax, eax
jne 0x4099ac
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4

Function at 0x4099c0
Capabilities:
Delete file

Disassembly:
push ecx
push esi
push edi
mov esi, eax
push 0x4628e8
add esi, 0x1d8
lea eax, [esp + 0xc]
push esi
push eax
call fcn.0040ba70
mov ecx, dword [eax]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0xc
push ecx
call edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x409a09
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push str.unrar.dll
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.0040ba70
mov edx, dword [eax]
add esp, 0xc
push edx
call edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409a41
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
push 0x462948
lea ecx, [esp + 0xc]
push esi
push ecx
call fcn.0040ba70
mov edx, dword [eax]
add esp, 0xc
push edx
call edi
mov eax, dword [esp + 8]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
pop esi
test edx, edx
jg 0x409a7b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ecx
ret
Function at 0x40f480
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
call fcn.004260b6
mov esi, dword [eax + 0xc]
movzx eax, word [esp + 0x10]
push 0x4629f4
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40f4ad
pop edi
pop esi
pop ebp
ret 8
push ebx
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x40f4cd
pop ebx
pop edi
pop esi
pop ebp
ret 8
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push ebx
push esi
push eax
call fcn.0044a770
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
push 0
push edi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0x18]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x40f524
lea eax, [esi + 4]
push eax
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [eax], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
mov dword [esi + 8], eax
jmp 0x40f526
xor esi, esi
push edi
mov dword [ebp], esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
pop ebx
xor eax, eax
cmp dword [ebp], eax
pop edi
pop esi
setne al
pop ebp
ret 8

Function at 0x40f5f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40f65e
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x40f62f
cmp eax, 2
jne 0x40f64a
mov eax, dword [esp]
test esi, esi
je 0x40f658
test eax, eax
je 0x40f653
test al, 1
jne 0x40f64a
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x40f658
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8
Function at 0x411050
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
mov eax, dword [esp + 0x14]
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [eax], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4110c3
mov edi, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x24]
push edx
push 0
push 0x46436c
mov ebp, 4
push edi
mov dword [esp + 0x30], ebp
call esi
test eax, eax
jne 0x4110b8
cmp dword [esp + 0x1c], ebp
je 0x4110cf
test edi, edi
je 0x4110c3
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret 4
cmp dword [esp + 0x10], 0
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x20]
push edx
push 0
push 0x46437c
push edi
setne bl
mov dword [esp + 0x34], ebp
call esi
test eax, eax
jne 0x4110fe
cmp dword [esp + 0x18], ebp
je 0x41110a
mov eax, dword [esp + 0x24]
mov dword [eax], 0
jmp 0x411114
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0x24]
mov dword [edx], ecx
test edi, edi
je 0x41111f
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
pop ebp
mov al, bl
pop ebx
add esp, 0x10
ret 4
Function at 0x411130
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
push esi
push edi
mov eax, str.XnaNative.dll
push str.GetNativeSystemInfo
xor edi, edi
push 0x463338
mov dword [esp + 0x84], str.SOFTWAREMicrosoftXNAFramework_v1.0
mov dword [esp + 0x88], str.SOFTWAREMicrosoftXNAFramework_v2.0
mov dword [esp + 0x8c], str.SOFTWAREMicrosoftXNAFramework_v3.0
mov dword [esp + 0x90], str.SOFTWAREMicrosoftXNAFramework_v3.1
mov dword [esp + 0x94], str.SOFTWAREMicrosoftXNAFramework_v4.0
mov dword [esp + 0x70], str.SOFTWAREWow6432NodeMicrosoftXNAFramework_v1.0
mov dword [esp + 0x74], str.SOFTWAREWow6432NodeMicrosoftXNAFramework_v2.0
mov dword [esp + 0x78], str.SOFTWAREWow6432NodeMicrosoftXNAFramework_v3.0
mov dword [esp + 0x7c], str.SOFTWAREWow6432NodeMicrosoftXNAFramework_v3.1
mov dword [esp + 0x80], str.SOFTWAREWow6432NodeMicrosoftXNAFramework_v4.0
mov dword [esp + 0x38], str.XnaNative1.dll
mov dword [esp + 0x3c], str.XnaNative2.dll
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x28], 2
mov dword [esp + 0x2c], 4
mov dword [esp + 0x30], 8
mov dword [esp + 0x34], 0x10
mov dword [ebx], edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, edi
je 0x41128b
xor ecx, ecx
mov dword [esp + 0x48], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x54], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x5c], ecx
mov dword [esp + 0x60], ecx
mov dword [esp + 0x64], ecx
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], edi
call eax
mov eax, dword [esp + 0x44]
cmp ax, 9
je 0x411249
cmp ax, 6
jne 0x41128b
xor esi, esi
jmp 0x411250
mov eax, dword [esp + esi + 0x30]
mov ecx, dword [esp + esi + 0x68]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.004112d0
test al, al
je 0x41127d
mov ecx, dword [esp + esi + 0x1c]
or dword [ebx], ecx
add esi, 4
cmp esi, 0x14
jb 0x411250
pop edi
pop esi
mov esp, ebp
pop ebp
ret
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esp + esi + 0x30]
mov ecx, dword [esp + esi + 0x7c]
lea edx, [esp + 0xc]
push edx
push eax
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
call fcn.004112d0
test al, al
je 0x4112bd
mov ecx, dword [esp + esi + 0x1c]
or dword [ebx], ecx
add esi, 4
cmp esi, 0x14
jb 0x411290
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4116a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebp
push edi
lea eax, [esp + 8]
push eax
push 1
push 0
push str.SOFTWAREAGEIA_Technologies
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x1c], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411789
mov edi, dword [esp + 8]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push eax
push 0
push 0x4632b8
mov ebp, 4
push edi
mov dword [esp + 0x28], ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41177e
cmp dword [esp + 0x14], ebp
jne 0x41177e
mov ecx, dword [esp + 0xc]
mov eax, 0x55e63b89
mul ecx
shr edx, 0x19
imul edx, edx, 0x5f5e100
mov ebp, ecx
sub ebp, edx
mov eax, 0x431bde83
mul ebp
shr edx, 0x12
mov dword [esi], edx
mov eax, 0x431bde83
mul ecx
shr edx, 0x12
imul edx, edx, 0xf4240
mov ebp, ecx
sub ebp, edx
mov eax, 0xd1b71759
mul ebp
shr edx, 0xd
mov dword [esi + 4], edx
mov eax, 0xd1b71759
mul ecx
shr edx, 0xd
imul edx, edx, 0x2710
mov ebp, ecx
sub ebp, edx
mov eax, 0x51eb851f
mul ebp
shr edx, 5
mov dword [esi + 8], edx
mov eax, 0x51eb851f
mul ecx
shr edx, 5
imul edx, edx, 0x64
sub ecx, edx
mov dword [esi + 0xc], ecx
test edi, edi
je 0x411789
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop ebp
add esp, 0x10
ret
Function at 0x411a70
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x459e30
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
call fcn.0042263d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x411ab7
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x14], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x18], ebx
call fcn.0042263d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x411ae9
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x1c], eax
push 0x14
mov byte [esp + 0x3c], 1
push str.SOFTWAREValveSteam
lea ecx, [esp + 0x24]
mov dword [esp + 0x2c], 0x104
call fcn.0040c320
mov ebp, dword [esp + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push 0x20019
push ebx
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411bec
mov ecx, 1
mov dword [esp + 0x28], ecx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x411b63
push 0x100
lea ecx, [esp + 0x18]
call fcn.00401240
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x24]
push edx
push esi
lea eax, [esp + 0x30]
push eax
push ebx
push str.InstallPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0044121e
add esp, 8
cmp eax, ebx
jl 0x411c53
cmp eax, dword [esi - 8]
jg 0x411c53
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp edi, ebx
jne 0x411bec
push 0xa
push str.Steam.exe
lea ecx, [esp + 0x1c]
call fcn.0040c440
mov esi, dword [esp + 0x14]
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push eax
call fcn.0040c3d0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00419490
add esp, 4
cmp eax, ebx
je 0x411bec
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c17
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411c3b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x411d40
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x459dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x20], ebx
call fcn.0042263d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x411d87
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
lea esi, [eax + 0x10]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x14], ebx
call fcn.0042263d
xor ecx, ecx
cmp eax, ebx
setne cl
cmp ecx, ebx
jne 0x411db9
push 0x80004005
call fcn.00401000
mov edx, dword [eax]
mov ecx, eax
mov eax, dword [edx + 0xc]
call eax
add eax, 0x10
mov dword [esp + 0x18], eax
push 0xf
mov byte [esp + 0x3c], 1
push str.SOFTWAREOrigin
lea ecx, [esp + 0x20]
mov dword [esp + 0x2c], 0x104
call fcn.0040c320
mov ebp, dword [esp + 0x18]
lea ecx, [esp + 0x14]
push ecx
push 0x20019
push ebx
push ebp
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x411ea8
mov ecx, 1
mov dword [esp + 0x28], ecx
mov eax, dword [esi - 8]
sub ecx, dword [esi - 4]
sub eax, 0x100
or eax, ecx
jge 0x411e33
push 0x100
lea ecx, [esp + 0x20]
call fcn.00401240
mov esi, dword [esp + 0x1c]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 0x24]
push edx
push esi
lea eax, [esp + 0x30]
push eax
push ebx
push str.ClientPath
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edi, eax
mov eax, dword [esi - 8]
push eax
push esi
call fcn.0044121e
add esp, 8
cmp eax, ebx
jl 0x411f0f
cmp eax, dword [esi - 8]
jg 0x411f0f
xor edx, edx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], dx
cmp edi, ebx
jne 0x411ea8
push ecx
lea eax, [esi - 0x10]
mov dword [esp + 0x30], esp
mov edi, esp
push eax
call fcn.0040c3d0
add eax, 0x10
add esp, 4
mov dword [edi], eax
call fcn.00419490
add esp, 4
cmp eax, ebx
je 0x411ea8
mov dword [esp + 0x20], 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x10]
mov byte [esp + 0x38], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411ed3
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [esi - 0x10]
mov dword [esp + 0x38], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x411ef7
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
push 0x80070057
call fcn.00401000
int3
Function at 0x4141c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45acd8
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4747c0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 0
push 0
push 0
mov dword [esp + 0x28], 0
mov eax, dword [esp + 0x30]
mov ecx, dword [eax - 0xc]
push 0
push ecx
push eax
push 0
push 0
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edi, eax
lea eax, [edi + 1]
push eax
call fcn.00421f83
add esp, 4
push 0
push 0
push edi
mov ebx, eax
push ebx
push edi
push ebp
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov byte [ebx + edi], 0
mov ecx, ebx
mov dword [esi + 0xc], ebx
call fcn.00413880
mov esi, eax
mov dword [esp + 0x1c], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x414265
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 4
Function at 0x416c10
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x416c17
xor eax, eax
ret
push esi
not eax
cmp edx, 8
jb 0x416cf4
mov esi, edx
shr esi, 3
push edi
lea esp, [esp]
movzx edi, byte [ecx]
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x466a80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x466a80]
movzx edi, byte [ecx + 1]
xor edi, eax
and edi, 0xff
inc ecx
shr eax, 8
xor eax, dword [edi*4 + 0x466a80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x466a80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x466a80]
movzx edi, byte [ecx + 1]
xor edi, eax
inc ecx
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x466a80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x466a80]
movzx edi, byte [ecx + 1]
inc ecx
xor edi, eax
and edi, 0xff
shr eax, 8
xor eax, dword [edi*4 + 0x466a80]
inc ecx
sub edx, 8
sub esi, 1
jne 0x416c30
pop edi
test edx, edx
je 0x416d1b
jmp 0x416d00
movzx esi, byte [ecx]
xor esi, eax
and esi, 0xff
shr eax, 8
xor eax, dword [esi*4 + 0x466a80]
inc ecx
sub edx, 1
jne 0x416d00
not eax
pop esi
ret

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

Disassembly:
mov eax, dword [edx]
movsx ecx, cl
xor ecx, eax
shr eax, 8
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x466a80]
xor ecx, eax
movzx eax, cl
add eax, dword [edx + 4]
mov dword [edx], ecx
mov ecx, dword [edx + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [edx + 4], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
shr ecx, 8
xor ecx, dword [eax*4 + 0x466a80]
mov dword [edx + 8], ecx
ret

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

Disassembly:
mov ecx, dword [esi + 8]
push ebx
mov edx, ecx
and edx, 0xfffd
or edx, 2
mov ebx, edx
xor ebx, 1
imul ebx, edx
mov edx, dword [esi]
shr ebx, 8
push edi
xor al, bl
movsx edi, al
xor edi, edx
shr edx, 8
and edi, 0xff
mov ebx, dword [edi*4 + 0x466a80]
xor ebx, edx
movzx edx, bl
add edx, dword [esi + 4]
mov dword [esi], ebx
imul edx, edx, 0x8088405
inc edx
mov dword [esi + 4], edx
shr edx, 0x18
xor edx, ecx
and edx, 0xff
shr ecx, 8
xor ecx, dword [edx*4 + 0x466a80]
pop edi
mov dword [esi + 8], ecx
pop ebx
ret

Function at 0x4174d0
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ebx
imul esi, dword [esp + 8]
cmp byte [edi], 0
je 0x417502
mov ecx, dword [edi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push esi
push edx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4174f8
mov byte [edi + 8], 1
mov eax, dword [esp + 8]
xor edx, edx
div ebx
pop esi
ret
mov ecx, dword [edi + 0x1c]
mov eax, dword [edi + 0x18]
push ebp
lea ebp, [ecx + esi]
cmp ebp, eax
pop ebp
jbe 0x417515
sub eax, ecx
mov esi, eax
mov eax, dword [edi + 0x14]
push esi
add eax, ecx
push eax
push edx
call fcn.0044a770
add dword [edi + 0x1c], esi
mov eax, esi
add esp, 0xc
xor edx, edx
div ebx
pop esi
ret
Function at 0x417530
Capabilities:
Read file on windows

Disassembly:
sub esp, 8
cmp byte [esi], 0
push edi
mov edi, 1
je 0x417563
mov edx, dword [esi + 4]
push 0
lea eax, [esp + 0xc]
push eax
push edi
lea ecx, [esp + 0x13]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41755d
mov byte [esi + 8], 1
mov edi, dword [esp + 8]
jmp 0x41758f
mov eax, dword [esi + 0x18]
push ebx
mov ebx, dword [esi + 0x1c]
lea ecx, [ebx + 1]
cmp ecx, eax
jbe 0x417575
sub eax, ebx
mov edi, eax
mov edx, dword [esi + 0x14]
push edi
add edx, ebx
push edx
lea eax, [esp + 0x13]
push eax
call fcn.0044a770
add esp, 0xc
add ebx, edi
mov dword [esi + 0x1c], ebx
pop ebx
cmp edi, 1
pop edi
jne 0x4175a6
movzx ecx, byte [esp + 3]
mov edx, dword [esp + 0xc]
mov dword [edx], ecx
xor eax, eax
add esp, 8
ret
cmp byte [esi], 0
je 0x4175a0
cmp byte [esi + 8], 0
je 0x4175a0
or eax, 0xffffffff
add esp, 8
ret
Function at 0x417690
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x18
cmp byte [esi], 0
je 0x4176d5
cmp byte [esi + 1], 0
je 0x4176dd
mov eax, dword [esi + 4]
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [esi], 0
push ebp
je 0x4176f2
cmp byte [esi + 1], 0
je 0x4176e4
mov edx, dword [esi + 4]
push 1
push 0
push 0
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ebp, eax
sub ebp, dword [esi + 0xc]
mov dword [esp + 4], ebp
jmp 0x4176fb
mov ecx, dword [esi + 0x18]
mov dword [esi + 0x1c], ecx
jmp 0x4176ae
or eax, 0xffffffff
add esp, 0x18
ret
mov dword [esp + 4], 0
mov ebp, dword [esp + 4]
jmp 0x4176fb
mov eax, dword [esi + 0x1c]
mov dword [esp + 4], eax
mov ebp, eax
push edi
mov edi, 0xffff
mov dword [esp + 0xc], edi
cmp ebp, edi
jae 0x41770f
mov dword [esp + 0xc], ebp
mov edi, ebp
push ebx
push 0x404
call fcn.00441ec4
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x41772d
pop ebx
pop edi
or eax, 0xffffffff
pop ebp
add esp, 0x18
ret
mov eax, 4
mov dword [esp + 0x18], 0xffffffff
cmp edi, eax
jbe 0x417841
jmp 0x417750
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0xc]
add eax, 0x400
mov dword [esp + 0x14], edi
cmp eax, edi
ja 0x417761
mov dword [esp + 0x14], eax
mov eax, ebp
sub eax, dword [esp + 0x14]
sub ebp, eax
mov dword [esp + 0x20], eax
cmp ebp, 0x404
jbe 0x41777a
mov ebp, 0x404
cmp byte [esi], 0
je 0x41779f
cmp byte [esi + 1], 0
je 0x417841
mov ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push 0
push 0
add ecx, eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
jmp 0x4177a2
mov dword [esi + 0x1c], eax
cmp byte [esi], 0
mov edi, ebp
je 0x4177ca
mov ecx, dword [esi + 4]
push 0
lea eax, [esp + 0x20]
push eax
push ebp
push ebx
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x4177c4
mov byte [esi + 8], 1
mov eax, dword [esp + 0x1c]
jmp 0x4177f0
mov eax, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea edx, [eax + ebp]
cmp edx, ecx
jbe 0x4177db
sub ecx, eax
mov edi, ecx
mov ecx, dword [esi + 0x14]
push edi
add ecx, eax
push ecx
push ebx
call fcn.0044a770
add esp, 0xc
add dword [esi + 0x1c], edi
mov eax, edi
xor edx, edx
div ebp
cmp eax, 1
jne 0x417841
lea eax, [ebp - 3]
test eax, eax
jl 0x41782c
dec eax
cmp byte [eax + ebx], 0x50
jne 0x41781c
cmp byte [eax + ebx + 1], 0x4b
jne 0x41781c
cmp byte [eax + ebx + 2], 5
jne 0x41781c
cmp byte [eax + ebx + 3], 6
je 0x417822
test eax, eax
jge 0x417800
jmp 0x41782c
mov edx, dword [esp + 0x20]
add eax, edx
mov dword [esp + 0x18], eax
cmp dword [esp + 0x18], 0
jne 0x417841
mov eax, dword [esp + 0x10]
cmp dword [esp + 0x14], eax
jb 0x417744
push ebx
call fcn.00441da7
mov eax, dword [esp + 0x1c]
add esp, 4
pop ebx
pop edi
pop ebp
add esp, 0x18
ret