joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414be0
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, esi
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 8
jb 0x414bf3
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x105
mov word [eax], cx
mov ecx, esi
call fcn.00414e60
test al, al
jne 0x414c10
pop edi
mov eax, 0x7a
pop esi
ret
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x414c1c
mov eax, dword [esi]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x414c30
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x414c3a
mov eax, dword [esi]
xor edx, edx
test eax, eax
je 0x414c54
mov edx, eax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x414c45
sub edx, ecx
sar edx, 1
mov ecx, esi
call fcn.00414e60
test al, al
mov ecx, 0x7a
cmove edi, ecx
mov eax, edi
pop edi
pop esi
ret

Function at 0x414c70
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
push edi
xor edi, edi
mov eax, esi
mov dword [esi + 0x10], edi
cmp dword [esi + 0x14], 8
jb 0x414c83
mov eax, dword [esi]
xor ecx, ecx
mov edx, 0x105
mov word [eax], cx
mov ecx, esi
call fcn.00414e60
test al, al
jne 0x414ca0
pop edi
mov eax, 0x7a
pop esi
ret
mov ecx, dword [esi + 0x14]
mov eax, esi
cmp ecx, 8
jb 0x414cac
mov eax, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x414cc0
pop edi
pop esi
jmp dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x414cca
mov eax, dword [esi]
xor edx, edx
test eax, eax
je 0x414ce4
mov edx, eax
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x414cd5
sub edx, ecx
sar edx, 1
mov ecx, esi
call fcn.00414e60
test al, al
mov ecx, 0x7a
cmove edi, ecx
mov eax, edi
pop edi
pop esi
ret
Function at 0x414d00
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45544d
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push esi
mov eax, dword [0x48f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi + 0x10], 0
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x414d39
mov eax, dword [esi]
xor ecx, ecx
mov word [eax], cx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], 0x479e10
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ecx
push eax
push ecx
push ecx
push edx
call dword [sym.imp.SHELL32.dll_SHGetKnownFolderPath]
test eax, eax
je 0x414d86
movzx esi, ax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], vtable.kn::auto_ptr_base_wchar_t__struct_kn::system::co_mem_delete_.0
test eax, eax
je 0x414d74
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x14]
mov ecx, esi
push 0xffffffffffffffff
call fcn.0040b450
add esp, 4
mov dword [ebp - 0x18], vtable.kn::auto_ptr_base_wchar_t__struct_kn::system::co_mem_delete_.0
test al, al
jne 0x414dc3
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x414dae
push eax
call dword [sym.imp.ole32.dll_CoTaskMemFree]
mov eax, 0x7a
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x414dd1
push ecx
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x415380
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, edx
push esi
push edi
test ecx, ecx
jne 0x41539d
mov edi, 0x57
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
push 0x80
push 3
push 0
push 7
push 0x80000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
je 0x4153c7
cmp esi, 0xffffffff
jne 0x4153d5
call edi
mov edi, eax
test edi, edi
jne 0x415411
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.00405f00
test al, al
jne 0x4153e7
mov edi, 6
jmp 0x415411
lea eax, [ebp - 0xc]
xorps xmm0, xmm0
push eax
push esi
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x415404
call edi
mov edi, eax
jmp 0x415411
mov eax, dword [ebp - 0xc]
xor edi, edi
mov ecx, dword [ebp - 8]
mov dword [ebx], eax
mov dword [ebx + 4], ecx
test esi, esi
je 0x415421
cmp esi, 0xffffffff
je 0x415421
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4157f0
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
jne 0x415802
lea eax, [ecx + 0x57]
pop edi
pop esi
pop ebx
ret
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x41581a
mov eax, 2
jmp 0x41585b
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x415855
shr eax, 4
test al, 1
je 0x415836
mov eax, 0x57
jmp 0x41585b
test cl, 1
je 0x41584a
and ecx, 0xfffffffe
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x415855
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x415890
call edi
test eax, eax
je 0x415892
test bl, 1
je 0x41586b
mov ecx, esi
call fcn.00415fc0
test eax, eax
je 0x415892
shr ebx, 1
test bl, 1
je 0x415892
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x415887
call edi
pop edi
pop esi
pop ebx
ret
mov eax, 0xbc2
pop edi
pop esi
pop ebx
ret
xor eax, eax
pop edi
pop esi
pop ebx
ret
Function at 0x4167c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x45540d
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x48f008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], eax
call fcn.00415e20
mov edi, eax
test edi, edi
je 0x41684a
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x416936
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416843
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416953
push edx
push ecx
jmp 0x41692e
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x28]
cmp eax, 8
jb 0x41685c
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x41686f
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
push ecx
call edi
test eax, eax
mov eax, dword [ebp - 0x14]
jne 0x4168a9
mov ecx, dword [ebp - 0x28]
mov edi, 3
cmp eax, 8
jb 0x416936
lea edx, [eax*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x416843
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416953
push edx
push ecx
jmp 0x41692e
lea esi, [ebp - 0x28]
cmp eax, 8
jb 0x4168bd
mov esi, dword [ebp - 0x28]
test esi, esi
jne 0x4168bd
lea edi, [esi + 0x57]
jmp 0x4168ef
push esi
call edi
test eax, eax
jne 0x4168c9
lea edi, [eax + 2]
jmp 0x4168e9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x416917
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, 2
mov ecx, esi
call fcn.004157f0
mov edi, eax
mov esi, dword [ebp - 0x28]
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x416936
lea ecx, [eax*2 + 2]
mov eax, esi
cmp ecx, 0x1000
jb 0x41692c
mov esi, dword [esi - 4]
add ecx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x416953
jmp 0x41692c
shr eax, 4
and al, 1
je 0x4168db
mov edx, 2
mov ecx, esi
call fcn.004158a0
jmp 0x4168e7
push ecx
push esi
call fcn.0043fc69
add esp, 8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0043fc58
mov esp, ebp
pop ebp
ret
call fcn.0044316c
int3
Function at 0x4195f0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x4195fb
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x4196b7
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
sub edi, 1
jne 0x419610
pop edi
test esi, esi
je 0x4196da
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
sub esi, 1
jne 0x4196c0
not ecx
mov eax, ecx
pop esi
pop ebp
ret

Function at 0x419ec0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
mov dword [ebp - 8], ebx
mov edi, 1
cmp byte [esi], 0
je 0x419efb
push 0
lea eax, [ebp - 8]
push eax
push edi
lea eax, [ebp - 1]
push eax
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x419ef6
mov byte [esi + 8], 1
mov edi, dword [ebp - 8]
jmp 0x419f28
mov ebx, dword [esi + 0x1c]
mov ecx, dword [esi + 0x18]
lea eax, [ebx + 1]
cmp eax, ecx
jbe 0x419f0c
mov edi, ecx
sub edi, ebx
mov eax, dword [esi + 0x14]
add eax, ebx
push edi
push eax
lea eax, [ebp - 1]
push eax
call fcn.004429f0
lea eax, [ebx + edi]
add esp, 0xc
mov ebx, dword [ebp - 8]
mov dword [esi + 0x1c], eax
cmp edi, 1
jne 0x419f3c
movzx eax, byte [ebp - 1]
mov dword [ebx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0
je 0x419f33
cmp byte [esi + 8], 0
je 0x419f33
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41a000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, ecx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
cmp byte [ebx], 0
je 0x41a049
cmp byte [ebx + 1], 0
je 0x41a07c
push 2
push 0
push 0
push dword [ebx + 4]
call esi
cmp byte [ebx], 0
je 0x41a04f
cmp byte [ebx + 1], 0
je 0x41a042
push 1
push 0
push 0
push dword [ebx + 4]
call esi
sub eax, dword [ebx + 0xc]
jmp 0x41a052
xor eax, eax
mov dword [ebp - 8], eax
jmp 0x41a061
mov eax, dword [ebx + 0x18]
mov dword [ebx + 0x1c], eax
mov eax, dword [ebx + 0x1c]
mov esi, 0xffff
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], esi
cmp eax, esi
jae 0x41a066
mov esi, eax
mov dword [ebp - 0x10], eax
push 0x404
call fcn.0044558a
mov edi, eax
add esp, 4
mov dword [ebp - 0xc], edi
test edi, edi
jne 0x41a086
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 4
mov dword [ebp - 4], 0xffffffff
cmp esi, eax
jbe 0x41a196
nop word [eax + eax]
mov edx, dword [ebp - 8]
add eax, 0x400
cmp eax, esi
mov ecx, esi
cmovbe ecx, eax
mov eax, 0x404
sub edx, ecx
mov dword [ebp - 0x20], ecx
cmp ecx, 0x404
mov dword [ebp - 0x1c], edx
mov esi, ecx
cmova esi, eax
cmp byte [ebx], 0
mov dword [ebp - 0x18], esi
je 0x41a111
cmp byte [ebx + 1], 0
je 0x41a196
mov eax, dword [ebx + 0xc]
push 0
push 0
add eax, edx
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp byte [ebx], 0
mov edx, esi
je 0x41a116
push 0
lea eax, [ebp - 0x14]
push eax
push esi
push edi
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x41a10c
mov byte [ebx + 8], 1
mov eax, dword [ebp - 0x14]
jmp 0x41a147
mov dword [ebx + 0x1c], edx
mov edx, esi
mov edi, dword [ebx + 0x1c]
mov ecx, dword [ebx + 0x14]
lea eax, [edi + esi]
mov esi, dword [ebx + 0x18]
sub esi, edi
cmp eax, dword [ebx + 0x18]
cmovbe esi, edx
add ecx, edi
push esi
push ecx
push dword [ebp - 0xc]
call fcn.004429f0
lea ecx, [esi + edi]
mov eax, esi
mov esi, dword [ebp - 0x18]
add esp, 0xc
mov edi, dword [ebp - 0xc]
mov dword [ebx + 0x1c], ecx
xor edx, edx
div esi
cmp eax, 1
jne 0x41a196
lea ecx, [esi - 3]
test ecx, ecx
js 0x41a181
lea eax, [edi + 3]
add eax, ecx
nop dword [eax]
mov edx, ecx
lea eax, [eax - 1]
dec ecx
cmp byte [eax - 3], 0x50
jne 0x41a17d
cmp byte [edx + edi], 0x4b
jne 0x41a17d
cmp byte [eax - 1], 5
jne 0x41a17d
cmp byte [eax], 6
je 0x41a1a9
test ecx, ecx
jns 0x41a160
mov eax, dword [ebp - 4]
test eax, eax
jne 0x41a196
mov eax, dword [ebp - 0x20]
mov esi, dword [ebp - 0x10]
cmp eax, esi
jb 0x41a0a0
push edi
call fcn.004431bd
mov eax, dword [ebp - 4]
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x1c]
add eax, ecx
mov dword [ebp - 4], eax
jmp 0x41a184
Function at 0x41aad0
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x41acba
cmp dword [edi + 0x18], 0
je 0x41acba
push esi
mov esi, dword [edi + 0x7c]
test esi, esi
je 0x41ab30
mov eax, dword [esi]
test eax, eax
je 0x41ab05
push eax
call fcn.004431bd
add esp, 4
cmp dword [esi + 0x40], 0
mov dword [esi], 0
je 0x41ab19
lea ecx, [esi + 4]
call fcn.00419850
push esi
mov dword [esi + 0x40], 0
call fcn.004431bd
add esp, 4
mov dword [edi + 0x7c], 0
lea eax, [ebp - 8]
mov ecx, edi
push eax
lea eax, [ebp - 4]
push eax
lea edx, [ebp - 0xc]
call fcn.0041a870
add esp, 8
test eax, eax
je 0x41ab55
pop esi
pop edi
mov eax, 0xffffff99
pop ebx
mov esp, ebp
pop ebp
ret
push 0x84
call fcn.0044558a
mov esi, eax
add esp, 4
test esi, esi
je 0x41ab97
push 0x4000
call fcn.0044558a
mov ecx, dword [ebp - 4]
add esp, 4
mov dword [esi + 0x44], ecx
mov ecx, dword [ebp - 8]
mov dword [esi], eax
mov dword [esi + 0x48], ecx
mov dword [esi + 0x4c], 0
test eax, eax
jne 0x41aba3
push esi
call fcn.004431bd
add esp, 4
pop esi
pop edi
mov eax, 0xffffff98
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [edi + 0x3c]
mov ecx, dword [edi + 0x34]
mov dword [esi + 0x54], eax
mov eax, dword [edi]
mov dword [esi + 0x60], eax
mov eax, dword [edi + 0xc]
mov dword [esi + 0x40], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x64], ecx
mov dword [esi + 0x68], eax
mov dword [esi + 0x18], 0
test ecx, ecx
je 0x41abfb
lea ecx, [esi + 4]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
call fcn.00419930
test eax, eax
jne 0x41abfb
mov dword [esi + 0x40], 1
mov eax, dword [edi + 0x40]
mov cl, byte [edi + 0x30]
mov dword [esi + 0x58], eax
and cl, 1
mov eax, dword [edi + 0x44]
mov dword [esi + 0x5c], eax
mov eax, dword [edi + 0x30]
shr eax, 3
mov byte [esi + 0x6c], cl
test al, 1
je 0x41ac1f
mov al, byte [edi + 0x39]
jmp 0x41ac22
mov al, byte [edi + 0x3f]
mov byte [esi + 0x80], al
mov edx, 0xc
xor eax, eax
mov dword [esi + 0x70], 0x12345678
test cl, cl
mov dword [esi + 0x74], 0x23456789
mov dword [esi + 0x78], 0x34567890
cmovne eax, edx
mov dword [esi + 0x7c], eax
test ebx, ebx
je 0x41ac9b
mov al, byte [ebx]
test al, al
je 0x41ac9b
mov ecx, dword [esi + 0x70]
movsx eax, al
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
movzx eax, cl
add eax, dword [esi + 0x74]
imul eax, eax, 0x8088405
mov dword [esi + 0x70], ecx
mov ecx, dword [esi + 0x78]
inc eax
mov dword [esi + 0x74], eax
shr eax, 0x18
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x45fab0]
mov dword [esi + 0x78], ecx
add ebx, 1
jne 0x41ac50
mov eax, dword [ebp - 0xc]
add eax, 0x1e
mov dword [edi + 0x7c], esi
add eax, dword [edi + 0x78]
mov dword [esi + 0x3c], eax
xor eax, eax
mov dword [esi + 8], 0
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
mov eax, 0xffffff9a
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41b7d0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x48f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
test esi, esi
je 0x41b802
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x41b802
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
movzx eax, word [ebx]
test ax, ax
je 0x41b8ec
push edi
mov edi, ebx
mov ecx, ebx
mov edx, eax
cmp dx, 0x2f
je 0x41b821
cmp dx, 0x5c
jne 0x41b823
mov edi, ecx
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x41b815
cmp edi, ebx
je 0x41b86e
sub edi, ebx
lea eax, [ebp - 0x414]
and edi, 0xfffffffe
push edi
push ebx
push eax
call fcn.004429f0
add esp, 0xc
cmp edi, 0x208
jae 0x41b8fc
xor eax, eax
lea edx, [ebp - 0x414]
mov ecx, esi
mov word [ebp + edi - 0x414], ax
call fcn.0041b7d0
xor eax, eax
mov word [ebp - 0x20c], ax
test esi, esi
je 0x41b893
lea ecx, [ebp - 0x20c]
sub ecx, esi
movzx eax, word [esi]
lea esi, [esi + 2]
mov word [ecx + esi - 2], ax
test ax, ax
jne 0x41b883
mov esi, ebx
mov ax, word [ebx]
add ebx, 2
test ax, ax
jne 0x41b895
lea edi, [ebp - 0x20c]
sub ebx, esi
add edi, 0xfffffffe
nop dword [eax + eax]
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x41b8b0
mov ecx, ebx
lea eax, [ebp - 0x20c]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop edi
cmp eax, 0xffffffff
jne 0x41b8ec
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0043fc58
mov esp, ebp
pop ebp
ret
call fcn.004402e7
int3
Function at 0x41bd10
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4556c7
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x48f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x44c
call fcn.0043ff45
mov ebx, eax
add esp, 4
mov dword [ebp - 0x14], ebx
lea edi, [ebx + 0x244]
mov dword [ebx], 0
push edi
push 0x104
mov dword [ebx + 4], 0xffffffff
mov dword [ebx + 0x238], 0xffffffff
mov dword [ebx + 0x23c], 0
mov dword [ebx + 0x240], 0
mov dword [ebp - 4], 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41bd95
sub ecx, edx
sar ecx, 1
movzx eax, word [ebx + ecx*2 + 0x242]
cmp eax, 0x5c
je 0x41bdd3
cmp eax, 0x2f
je 0x41bdd3
add edi, 0xfffffffe
nop dword [eax]
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x41bdc0
mov eax, dword [0x47a108]
mov dword [edi], eax
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x10], eax
cmp eax, 0xffffffff
je 0x41be88
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov esi, eax
cmp esi, 0xffffffff
push 0x20
setne bl
call fcn.0043ff45
mov edi, eax
add esp, 4
mov eax, dword [ebp - 0x10]
mov byte [edi], 1
mov byte [edi + 0x10], 1
mov byte [edi + 1], bl
mov dword [edi + 4], eax
mov byte [edi + 8], 0
mov dword [edi + 0xc], 0
cmp esi, 0xffffffff
je 0x41be49
push 1
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [edi + 0xc], eax
mov ecx, edi
call fcn.0041a1c0
mov ebx, dword [ebp - 0x14]
mov dword [ebx], eax
test eax, eax
je 0x41be88
push 8
mov dword [0x492144], 0
call fcn.0043ff45
add esp, 4
mov dword [eax], 1
mov dword [eax + 4], ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0x23c]
mov dword [0x492144], 0x200
test eax, eax
je 0x41bea5
push eax
call fcn.004401c0
add esp, 4
mov eax, dword [ebx + 0x240]
mov dword [ebx + 0x23c], 0
test eax, eax
je 0x41bec2
push eax
call fcn.004401c0
add esp, 4
push 0x44c
push ebx
mov dword [ebx + 0x240], 0
call fcn.0043fc69
add esp, 8
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41c4b0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x41c585
mov ecx, dword [esi + 0x3c]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x41c4e8
cmp dword [esi + 0x40], ebx
jae 0x41c4e8
push ecx
call fcn.004401c0
add esp, 4
mov dword [esi + 0x3c], 0
jmp 0x41c4ec
test eax, eax
jne 0x41c4fe
lea eax, [ebx + ebx]
push eax
call fcn.004403c2
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call fcn.004429f0
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x41c582
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, ecx
or edi, 2
movzx eax, al
shr ecx, 8
xor ecx, dword [eax*4 + 0x461260]
movzx eax, cl
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
mov dword [esi + 0x30], ecx
mov ecx, edi
xor ecx, 1
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x461260]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x41c512
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41c5c3
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x41c5aa
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call fcn.004429f0
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x41c5e5
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8