joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402650
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
push edi
mov edi, ecx
call fcn.00402450
mov al, byte [ebp + 0xc]
mov byte [edi + 4], al
push 0
push 0x80
push 3
push 0
push 1
test al, al
je 0x40267f
push 0x80000000
jmp 0x402684
push 0xc0000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ecx, eax
mov dword [edi + 8], ecx
cmp ecx, 0xffffffff
jne 0x4026a8
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push 0x110
lea eax, [edi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [edi + 0x10c]
lea eax, [ecx - 0xa]
cmp eax, 1
ja 0x40269d
cmp ecx, 0xa
jle 0x4026f7
cmp byte [edi + 0x118], 1
je 0x40269d
push 0
push 0
push dword [edi + 0x114]
push dword [edi + 8]
call fcn.00402070
jmp 0x40271b
imul ecx, dword [edi + 0x110], 0x13c
xor eax, eax
push 2
neg ecx
adc eax, eax
neg eax
push eax
push ecx
push dword [edi + 8]
call fcn.00402070
mov dword [edi + 0x114], eax
mov ecx, dword [edi + 0x110]
test ecx, ecx
je 0x4027e6
mov edx, dword [edi + 0x2a4]
lea ebx, [edi + 0x2a0]
mov eax, edx
mov dword [esp + 0xc], edx
sub eax, dword [ebx]
sar eax, 2
imul esi, eax, 0x613716af
cmp ecx, esi
jae 0x402757
imul eax, ecx, 0x13c
add eax, dword [ebx]
mov dword [ebx + 4], eax
jmp 0x402795
jbe 0x402795
mov eax, dword [ebx + 8]
sub eax, dword [ebx]
sar eax, 2
imul eax, eax, 0x613716af
cmp ecx, eax
jbe 0x402776
push ecx
push ecx
mov ecx, ebx
call fcn.0040d7b0
jmp 0x402795
sub ecx, esi
je 0x402792
imul esi, ecx, 0x13c
push esi
push 0
push edx
call fcn.00431510
mov edx, dword [esp + 0x18]
add esp, 0xc
add edx, esi
mov dword [ebx + 4], edx
imul eax, dword [edi + 0x110], 0x13c
push eax
push dword [ebx]
push dword [edi + 8]
call fcn.004020c0
mov eax, dword [ebx + 4]
xor edx, edx
mov ecx, dword [ebx]
sub eax, ecx
sar eax, 2
imul esi, eax, 0x613716af
test esi, esi
jle 0x4027e6
add ecx, 0x100
nop word [eax + eax]
mov eax, dword [ecx]
cmp eax, dword [ecx + 8]
ja 0x40269d
inc edx
add ecx, 0x13c
cmp edx, esi
jl 0x4027d0
lea ecx, [edi + 0x2ac]
call fcn.00408c50
mov eax, dword [edi + 0x2a4]
xor esi, esi
sub eax, dword [edi + 0x2a0]
sar eax, 2
imul eax, eax, 0x613716af
test eax, eax
jle 0x402832
nop dword [eax]
push esi
mov ecx, edi
call fcn.00403670
mov eax, dword [edi + 0x2a4]
inc esi
sub eax, dword [edi + 0x2a0]
sar eax, 2
imul eax, eax, 0x613716af
cmp esi, eax
jl 0x402810
cmp dword [edi + 8], 0xffffffff
je 0x402851
push 0x48d94c
lea eax, [edi + 0x11c]
push 0x104
push eax
call fcn.0043dfab
add esp, 0xc
push dword [ebp + 8]
lea ecx, [edi + 0x220]
call fcn.004017c0
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x402870
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2f8
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
call fcn.00402450
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [edi + 8], eax
cmp eax, 0xffffffff
jne 0x4028ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret 4
push 0x110
lea esi, [edi + 0xc]
push 0
push esi
call fcn.00431510
push str.EyedentityGames_Packing_File_0.1
push 0x100
push esi
call fcn.0043dfab
mov eax, dword [edi + 8]
add esp, 0x18
mov dword [edi + 0x10c], 0xb
mov dword [edi + 0x110], 0
mov dword [edi + 0x114], 0x400
cmp eax, 0xffffffff
je 0x4028b6
push 0
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 0x2f8], 0
push ecx
push 0x110
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push eax
call esi
test eax, eax
je 0x4028b6
push 0x2f0
lea eax, [ebp - 0x2f4]
push 0
push eax
call fcn.00431510
mov eax, dword [edi + 8]
add esp, 0xc
cmp eax, 0xffffffff
je 0x40297d
push 0
lea ecx, [ebp - 0x2f8]
mov dword [ebp - 0x2f8], 0
push ecx
push 0x2f0
lea ecx, [ebp - 0x2f4]
push ecx
push eax
call esi
mov ecx, dword [ebp - 4]
mov al, 1
mov byte [edi + 4], 0
xor ecx, ebp
pop edi
pop esi
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret 4
Function at 0x404360
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push esi
mov esi, ecx
cmp byte [esi + 4], 0
jne 0x40445d
cmp byte [esi + 0x118], 0
je 0x40445d
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x4043bb
mov eax, dword [esi + 0x114]
lea edx, [esp + 0xc]
push 0
push edx
push eax
push ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x4043bb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esi + 8]
cmp edx, 0xffffffff
je 0x4043f8
mov ecx, dword [esi + 0x2a0]
lea eax, [esp + 8]
push 0
push eax
mov eax, dword [esi + 0x2a4]
sub eax, ecx
mov dword [esp + 0x10], 0
sar eax, 2
imul eax, eax, 0x613716af
imul eax, eax, 0x13c
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
mov byte [esi + 0x118], 0
cmp eax, 0xffffffff
je 0x40442f
push 0
lea ecx, [esp + 0x10]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x18], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x40442f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x404456
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
push 0x110
lea eax, [esi + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [esi + 0x118], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x404470
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 8
push esi
mov esi, ecx
mov ecx, dword [ebp + 8]
push edi
test ecx, ecx
js 0x40452f
mov eax, dword [esi + 0x2a4]
mov edx, dword [esi + 0x2a0]
sub eax, edx
sar eax, 2
imul eax, eax, 0x613716af
cmp ecx, eax
jge 0x40452f
imul edi, ecx, 0x13c
mov dword [edi + edx + 0x100], 0
mov eax, dword [esi + 0x2a0]
mov dword [eax + edi + 0x104], 0
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x404503
mov eax, dword [esi + 0x114]
lea edx, [esp + 0xc]
push 0
add eax, edi
mov dword [esp + 0x10], 0
push edx
push eax
push ecx
mov dword [esp + 0x18], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 8], eax
cmp eax, 0xffffffff
jne 0x404503
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x40452f
push 0
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0
push eax
mov eax, dword [esi + 0x2a0]
push 0x13c
add eax, edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x404b00
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x11c
mov eax, dword [0x497040]
xor eax, esp
mov dword [esp + 0x118], eax
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp dword [esi + 8], 0xffffffff
je 0x404c6d
cmp byte [edi], 0x5c
jne 0x404b43
push edi
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0043dfab
jmp 0x404b6c
lea eax, [esi + 0x11c]
push eax
lea eax, [esp + 0x1c]
push 0x104
push eax
call fcn.0043dfab
add esp, 0xc
lea eax, [esp + 0x18]
push edi
push 0x104
push eax
call fcn.0043e068
add esp, 0xc
lea eax, [esp + 0x18]
mov ecx, esi
push eax
call fcn.00403250
mov edi, eax
cmp edi, 0xffffffff
je 0x404c6d
mov ecx, dword [esi + 0x2a0]
imul ebx, edi, 0x13c
mov dword [ecx + ebx + 0x100], 0
mov eax, dword [esi + 0x2a0]
mov dword [eax + ebx + 0x104], 0
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x404be8
mov eax, dword [esi + 0x114]
lea edx, [esp + 0x14]
push 0
add eax, ebx
mov dword [esp + 0x18], 0
push edx
push eax
push ecx
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x404be8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esi + 8]
cmp ecx, 0xffffffff
je 0x404c14
push 0
lea eax, [esp + 0x14]
mov dword [esp + 0x14], 0
push eax
mov eax, dword [esi + 0x2a0]
push 0x13c
add eax, ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esi + 8]
cmp eax, 0xffffffff
je 0x404c44
push 0
lea ecx, [esp + 0x18]
xorps xmm0, xmm0
push ecx
push 0
push eax
movlpd qword [esp + 0x20], xmm0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [esp + 0x10], eax
cmp eax, 0xffffffff
jne 0x404c44
call dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
mov ecx, esi
call fcn.004039d0
push edi
mov ecx, esi
call fcn.00403670
mov al, 1
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x118]
xor ecx, esp
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [esp + 0x124]
xor al, al
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret 4
Function at 0x418f80
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
lea eax, [ebp - 0x10c]
mov ebx, edx
push eax
push 0xf003f
push 0
mov edi, ecx
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea eax, [ebp - 0x118]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x110]
mov dword [ebp - 0x110], 0x104
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x10c]
call esi
test eax, eax
jne 0x419038
nop dword [eax]
mov ecx, dword [ebp - 0x10c]
lea edx, [ebp - 0x108]
call fcn.00418f80
test eax, eax
jne 0x419038
lea eax, [ebp - 0x118]
mov dword [ebp - 0x110], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push dword [ebp - 0x10c]
call esi
test eax, eax
je 0x418ff0
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret
Function at 0x4190d0
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x47feb0
mov eax, dword fs:[0]
push eax
sub esp, 0x388
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x210]
push edx
push ecx
push 0x49139c
push eax
call fcn.0041b070
add esp, 0x10
lea eax, [ebp - 0x390]
push eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov edi, eax
mov dword [ebp - 0x394], edi
cmp edi, 0xffffffff
je 0x41926d
nop dword [eax]
test byte [ebp - 0x390], 0x12
jne 0x419257
lea esi, [ebp - 0x364]
mov byte [ebp - 0x250], 0
mov dword [ebp - 0x21c], 0
lea ecx, [esi + 1]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0
nop dword [eax + eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x419180
sub esi, ecx
cmp esi, 0x32
ja 0x4191b4
test esi, esi
jne 0x41919a
mov byte [ebp - 0x250], al
jmp 0x4191e7
lea eax, [ebp - 0x364]
push eax
lea eax, [ebp - 0x250]
push 0x33
push eax
call fcn.0043dfab
add esp, 0xc
jmp 0x4191e7
lea edi, [esi + 1]
mov byte [ebp - 0x250], 0
push edi
call fcn.0042f4e2
lea ecx, [ebp - 0x364]
mov dword [ebp - 0x21c], eax
push ecx
push edi
push eax
mov dword [ebp - 0x214], esi
call fcn.0043dfab
mov edi, dword [ebp - 0x394]
add esp, 0x10
mov dword [ebp - 0x218], esi
mov dword [ebp - 4], 1
lea eax, [ebp - 0x250]
mov ecx, dword [ebx + 4]
cmp ecx, dword [ebx + 8]
je 0x419234
mov byte [ecx], 0
mov dword [ecx + 0x34], 0
mov dword [ecx + 0x38], 0
mov dword [ecx + 0x3c], 0
cmp dword [ebp - 0x218], 0x32
cmova eax, dword [ebp - 0x21c]
push eax
call fcn.004017c0
add dword [ebx + 4], 0x40
jmp 0x41923d
push eax
push ecx
mov ecx, ebx
call fcn.0040d340
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x21c]
test eax, eax
je 0x419257
push eax
call fcn.0042f4eb
add esp, 4
lea eax, [ebp - 0x390]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419140
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret
Function at 0x419f80
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x360
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 8], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x21c]
push edi
push 0x104
push eax
call fcn.0043dfab
add esp, 0xc
lea eax, [ebp - 0x21c]
push str..
push 0x104
push eax
call fcn.0043e068
add esp, 0xc
lea eax, [ebp - 0x35c]
push eax
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x41a07e
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileA]
nop dword [eax]
cmp byte [ebp - 0x330], 0x2e
je 0x41a05e
push edi
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0043dfab
add esp, 0xc
lea eax, [ebp - 0x114]
push 0x48d94c
push 0x104
push eax
call fcn.0043e068
add esp, 0xc
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x114]
push 0x104
push eax
call fcn.0043e068
add esp, 0xc
lea eax, [ebp - 0x114]
test byte [ebp - 0x35c], 0x10
push eax
je 0x41a05c
call fcn.00419f80
add esp, 4
jmp 0x41a05e
call ebx
lea eax, [ebp - 0x35c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x419ff0
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret

Function at 0x41a090
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0043dfab
lea ecx, [ebp - 0x108]
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a0c4
sub ecx, edx
cmp byte [ebp + ecx - 0x109], 0x5c
je 0x41a0f0
push 0x48d94c
lea eax, [ebp - 0x108]
push 0x104
push eax
call fcn.0043e068
add esp, 0xc
push esi
lea eax, [ebp - 0x108]
push 0x5c
push eax
call fcn.004316c0
mov esi, eax
add esp, 8
test esi, esi
je 0x41a13a
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
nop
cmp byte [esi - 1], 0x3a
je 0x41a127
push 0
lea eax, [ebp - 0x108]
mov byte [esi], 0
push eax
call edi
mov byte [esi], 0x5c
push 0x5c
inc esi
push esi
call fcn.004316c0
mov esi, eax
add esp, 8
test esi, esi
jne 0x41a110
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret
Function at 0x41aab0
Capabilities:
Get common file path
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x208
lea eax, [ebp - 0x20c]
mov esi, ecx
push 0
push eax
call fcn.00431510
add esp, 0xc
test esi, esi
jne 0x41aaf2
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea eax, [ebp - 0x21c]
test esi, esi
push eax
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
cmovne eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
pop esi
test eax, eax
jne 0x41ab4f
push 0x450
push str.D:ProjectDragonNestCommonUtilitySundriesFunc.cpp
push 0x491394
call dword [0x497b08]
add esp, 0xc
xor eax, eax
xor edx, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x210]
imul eax, dword [ebp - 0x214]
mov ecx, dword [ebp - 4]
xor ecx, ebp
mul dword [ebp - 0x218]
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret
Function at 0x4231c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 4], esi
mov edi, dword [esi + 0x2c]
lea ebx, [esi + 0x38]
mov eax, dword [esi + 0x2c]
mov edx, dword [esi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [esi + 0x74]
add eax, edi
sub edx, dword [esi + 0x6c]
mov dword [ebp - 0xc], edx
cmp dword [esi + 0x6c], eax
jb 0x423265
mov ecx, dword [ebx]
push edi
lea eax, [ecx + edi]
push eax
push ecx
call fcn.00430a10
mov eax, dword [esi + 0x4c]
add esp, 0xc
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
sub dword [esi + 0x5c], edi
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x44]
mov esi, dword [ebp - 8]
lea ebx, [eax + esi*2]
movzx edx, word [ebx - 2]
lea ebx, [ebx - 2]
mov ecx, edx
xor eax, eax
sub ecx, edi
cmp edx, edi
cmovae eax, ecx
mov word [ebx], ax
sub esi, 1
jne 0x423217
mov esi, dword [ebp - 4]
mov eax, dword [esi + 0x40]
mov esi, edi
lea ebx, [eax + edi*2]
nop dword [eax]
movzx edx, word [ebx - 2]
lea ebx, [ebx - 2]
mov ecx, edx
xor eax, eax
sub ecx, edi
cmp edx, edi
cmovae eax, ecx
mov word [ebx], ax
sub esi, 1
jne 0x423240
mov esi, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
add edx, edi
lea ebx, [esi + 0x38]
mov ecx, dword [esi]
cmp dword [ecx + 4], 0
je 0x4232be
push edx
mov edx, dword [esi + 0x74]
add edx, dword [esi + 0x6c]
add edx, dword [ebx]
call fcn.00422e70
add eax, dword [esi + 0x74]
add esp, 4
mov dword [ebp - 0xc], eax
mov dword [esi + 0x74], eax
cmp eax, 3
jb 0x4232ab
mov eax, dword [ebx]
add eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x58]
movzx edx, byte [eax]
mov dword [esi + 0x48], edx
movzx eax, byte [eax + 1]
shl edx, cl
xor edx, eax
mov eax, dword [ebp - 0xc]
and edx, dword [esi + 0x54]
mov dword [esi + 0x48], edx
cmp eax, 0x106
jae 0x4232be
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x4231d4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4249c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4249cb
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004249e0

Function at 0x428de0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x428e04
xor eax, eax
jmp 0x428e84
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x428e1b
xor eax, eax
jmp 0x428e84
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x428e67
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x428e67
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x428e3e
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x428e73
xor eax, eax
jmp 0x428e84
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x428e81
xor eax, eax
jmp 0x428e84
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x4291f0
Capabilities:
Get common file path
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x48089a
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_FreeConsole]
nop
cmp dword [ebp + 8], 0
jne 0x429230
or eax, 0xffffffff
jmp 0x429420
push 0x208
push 0
lea eax, [ebp - 0x420]
push eax
call fcn.00431510
add esp, 0xc
push 0x208
push 0
lea ecx, [ebp - 0x218]
push ecx
call fcn.00431510
add esp, 0xc
lea edx, [ebp - 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov dword [ebp - 0x430], 0x481440
lea eax, [ebp - 0x420]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.00428990
mov edx, dword [ebp - 0x430]
push edx
push 0x104
lea eax, [ebp - 0x218]
push eax
call fcn.00428990
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
push 0x104
lea ecx, [ebp - 0x218]
push ecx
call fcn.00428990
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x428], eax
cmp dword [ebp - 0x428], 0xffffffff
jne 0x4292fe
or eax, 0xffffffff
jmp 0x429420
push 0
mov eax, dword [ebp - 0x428]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x434], eax
mov ecx, 4
shl ecx, 0
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
mov ecx, 0x49812c
call fcn.004276e0
mov ecx, 4
shl ecx, 1
mov edx, dword [ebp + 0xc]
mov eax, dword [edx + ecx]
push eax
mov ecx, 0x498130
call fcn.004276e0
mov ecx, 4
imul edx, ecx, 3
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
push ecx
call fcn.0043cec4
add esp, 4
mov dword [0x498120], eax
mov edx, 4
shl edx, 2
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + edx]
push ecx
call fcn.0043cec4
add esp, 4
mov dword [0x498124], eax
mov edx, dword [ebp - 0x434]
mov dword [0x498128], edx
push 0x80
call fcn.0042efda
add esp, 4
mov dword [ebp - 0x424], eax
mov dword [ebp - 4], 0
cmp dword [ebp - 0x424], 0
je 0x4293ce
push 0x80
mov ecx, dword [ebp - 0x424]
call fcn.00428ef0
mov ecx, dword [ebp - 0x424]
call fcn.0042a430
mov dword [ebp - 0x42c], eax
jmp 0x4293d8
mov dword [ebp - 0x42c], 0
mov eax, dword [ebp - 0x42c]
mov dword [ebp - 0x438], eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x438]
mov dword [0x498238], ecx
mov edx, dword [0x498238]
mov eax, dword [edx]
mov ecx, dword [0x498238]
mov edx, dword [eax + 0xc]
call edx
mov dword [ebp - 0x43c], eax
cmp dword [ebp - 0x43c], 1
je 0x42941e
or eax, 0xffffffff
jmp 0x429420
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0042f4a5
mov esp, ebp
pop ebp
ret
Function at 0x42be30
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x480af6
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x497040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x228], 0
push 0x208
push 0
lea eax, [ebp - 0x218]
push eax
call fcn.00431510
add esp, 0xc
lea ecx, [ebp - 0x218]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
nop
push 0x484290
lea ecx, [ebp - 0x224]
call fcn.00426f90
mov dword [ebp - 4], 0
lea edx, [ebp - 0x218]
push edx
lea ecx, [ebp - 0x220]
call fcn.00426f90
mov byte [ebp - 4], 1
lea eax, [ebp - 0x224]
push eax
lea ecx, [ebp - 0x220]
push ecx
lea edx, [ebp - 0x234]
push edx
mov ecx, dword [ebp - 0x21c]
call fcn.0042c680
mov dword [ebp - 0x22c], eax
mov eax, dword [ebp - 0x22c]
mov dword [ebp - 0x230], eax
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x230]
push ecx
mov ecx, dword [ebp - 0x21c]
add ecx, 0x7c
call fcn.004276c0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x234]
call fcn.00427490
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x220]
call fcn.00427490
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x224]
call fcn.00427490
nop
mov edx, dword [ebp - 0x21c]
add edx, 0x7c
push edx
mov ecx, dword [ebp + 8]
call fcn.0042a100
mov eax, dword [ebp - 0x228]
or eax, 1
mov dword [ebp - 0x228], eax
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.0042f4a5
mov esp, ebp
pop ebp
ret 4