joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41da90
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 0x41db67
mov ecx, dword [esi + 0x3c]
mov eax, ecx
mov ebx, dword [ebp + 0xc]
test ecx, ecx
je 0x41dac8
cmp dword [esi + 0x40], ebx
jae 0x41dac8
push ecx
call fcn.00460496
add esp, 4
mov dword [esi + 0x3c], 0
jmp 0x41dacc
test eax, eax
jne 0x41dade
lea eax, [ebx + ebx]
push eax
call fcn.0046048d
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push eax
call fcn.004ebfd0
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x41db64
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
mov eax, dword [eax*4 + 0x53e018]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
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 + 0x53e018]
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 0x41daf2
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x41dba5
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x41db8c
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.004ebfd0
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 0x41dbc7
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
Function at 0x41e150
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x41e1b2
mov ecx, dword [edi + 0x8c]
mov ebx, dword [edi + 0x88]
cmp ecx, ebx
jae 0x41e1f9
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.004ebfd0
add dword [edi + 0x8c], ebx
add dword [edi + 0x74], ebx
push ebx
push esi
push dword [edi + 0x78]
call fcn.0041d340
add esp, 0x18
mov dword [edi + 0x78], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x41e1f2
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41e1f9
mov esi, dword [ebp - 4]
add dword [edi + 0x74], esi
push esi
push ebx
push dword [edi + 0x78]
call fcn.0041d340
add esp, 0xc
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4215a0
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5321e1
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x28]
push eax
call fcn.00416c40
add esp, 4
mov ecx, dword [ebp - 0x18]
mov eax, SysReAllocString
sub eax, ecx
mov dword [ebp - 4], 0
cmp eax, 1
jb 0x421724
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push 0x53dd54
push ecx
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp - 0x44]
lea ecx, [ebp - 0x40]
call fcn.00428500
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x28]
call fcn.004286e0
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x42165b
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x421651
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421729
push edx
push ecx
call fcn.00460404
add esp, 8
push 0xa
push str.SimpleBook
lea ecx, [ebp - 0x28]
call fcn.00419ea0
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
mov edx, esi
cmovae ecx, dword [ebp - 0x28]
sub edx, ecx
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x421680
push 1
push 0x53dd54
lea ecx, [ebp - 0x28]
call fcn.00419ea0
push 0xe
push str.SimpleBook.exe
lea ecx, [ebp - 0x28]
call fcn.00419ea0
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4216cb
mov esi, 1
jmp 0x4216d2
xor eax, eax
mov word [esi], ax
xor esi, esi
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x421708
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4216fe
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x421729
push edx
push ecx
call fcn.00460404
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460412
mov esp, ebp
pop ebp
ret
call fcn.00404fc0
call fcn.004f5b2a
int3
Function at 0x423e70
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x110]
push esi
mov esi, dword [ebp + 0xc]
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov dword [ebp - 0x10c], eax
test eax, eax
jne 0x423eb2
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460412
mov esp, ebp
pop ebp
ret
inc eax
push edi
push eax
call fcn.0046048d
add esp, 4
mov edi, eax
push edi
push dword [ebp - 0x10c]
push dword [ebp - 0x110]
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x423f73
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x114]
push eax
push 0x53ee40
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x423f73
push 0x104
lea eax, [ebp - 0x108]
push 0
push eax
call fcn.004ecad0
mov edx, dword [ebp - 0x114]
mov ecx, dword [edx + 0xc]
movzx eax, cx
push eax
movzx eax, word [edx + 8]
shr ecx, 0x10
push ecx
push eax
movzx eax, word [edx + 0x12]
push eax
lea eax, [ebp - 0x108]
push 0x53ee44
push eax
call fcn.00428df0
push edi
call fcn.00460496
lea eax, [ebp - 0x108]
add esp, 0x28
mov ecx, eax
sub esi, ecx
nop dword [eax]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [esi + eax - 1], cl
test cl, cl
jne 0x423f50
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460412
mov esp, ebp
pop ebp
ret
push edi
call fcn.00460496
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
xor eax, eax
pop edi
pop esi
pop ebx
call fcn.00460412
mov esp, ebp
pop ebp
ret
Function at 0x4276b0
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5328a3
mov eax, dword fs:[0]
push eax
sub esp, 0x88c
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x218]
mov esi, dword [ebp + 0xc]
push 0x208
push 0
push eax
mov dword [ebp - 0x894], edi
call fcn.004ecad0
push 0x208
lea eax, [ebp - 0x628]
push 0
push eax
call fcn.004ecad0
add esp, 0x18
lea eax, [ebp - 0x218]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x53ea4c
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x890]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x898], eax
cmp eax, 0xffffffff
je 0x427905
mov edi, dword [sym.imp.KERNEL32.dll_lstrcmpW]
nop dword [eax + eax]
test byte [ebp - 0x890], 0x10
je 0x4277a6
cmp word [ebp - 0x864], 0x2e
je 0x4277a6
lea eax, [ebp - 0x864]
push eax
push dword [ebp - 0x894]
lea eax, [ebp - 0x628]
push 0x53ea10
push eax
call fcn.004203b0
lea eax, [ebp - 0x628]
push esi
push eax
call fcn.004276b0
add esp, 0x18
jmp 0x4278de
push 0x53ea58
lea eax, [ebp - 0x864]
push eax
call edi
test eax, eax
je 0x4278de
push 0x53ea5c
lea eax, [ebp - 0x864]
push eax
call edi
test eax, eax
je 0x4278de
push 0x208
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.004ecad0
lea eax, [ebp - 0x864]
push eax
push dword [ebp - 0x894]
lea eax, [ebp - 0x420]
push 0x53ea10
push eax
call fcn.004203b0
add esp, 0x1c
mov dword [ebp - 0x630], 0
xor eax, eax
mov dword [ebp - 0x62c], 7
mov word [ebp - 0x640], ax
lea eax, [ebp - 0x420]
lea edx, [eax + 2]
nop dword [eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x427830
sub eax, edx
lea ecx, [ebp - 0x640]
sar eax, 1
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00416d70
mov eax, dword [esi + 4]
mov dword [ebp - 4], 0
cmp eax, dword [esi + 8]
je 0x42788c
movups xmm0, xmmword [ebp - 0x640]
mov edx, 7
movups xmmword [eax], xmm0
movq xmm0, qword [ebp - 0x630]
movq qword [eax + 0x10], xmm0
xor eax, eax
add dword [esi + 4], 0x18
mov word [ebp - 0x640], ax
jmp 0x4278a1
lea ecx, [ebp - 0x640]
push ecx
push eax
mov ecx, esi
call fcn.00419720
mov edx, dword [ebp - 0x62c]
mov dword [ebp - 4], 0xffffffff
cmp edx, 8
jb 0x4278de
mov ecx, dword [ebp - 0x640]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4278d4
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x427920
push edx
push ecx
call fcn.00460404
add esp, 8
lea eax, [ebp - 0x890]
push eax
push dword [ebp - 0x898]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x427760
push dword [ebp - 0x898]
call dword [sym.imp.KERNEL32.dll_FindClose]
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.00460412
mov esp, ebp
pop ebp
ret
call fcn.004f5b2a
int3
Function at 0x427e40
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 0x218], esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
test eax, eax
je 0x427fe2
lea eax, [ebp - 0x214]
push eax
push 0x20019
push 0
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x427ec1
cmp eax, 2
jne 0x427ea2
push str.Key_not_found._n
call fcn.0041a060
add esp, 4
jmp 0x427fe2
push str.Error_opening_key._n
call fcn.0041a060
add esp, 4
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460412
mov esp, ebp
pop ebp
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [ebx + eax*2 - 2], 0x5c
lea edi, [ebx + eax*2]
je 0x427ee4
mov eax, 0x5c
mov word [edi], ax
add edi, 2
xor eax, eax
mov word [edi], ax
lea eax, [ebp - 0x220]
mov dword [ebp - 0x210], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x427fbf
lea esi, [ebp - 0x20c]
sub esi, edi
nop word [eax + eax]
mov edx, 0x208
mov eax, edi
nop word [eax + eax]
lea ecx, [edx + 0x7ffffdf6]
test ecx, ecx
je 0x427f5e
movzx ecx, word [esi + eax]
test cx, cx
je 0x427f5e
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x427f40
lea ecx, [eax - 2]
test edx, edx
push ebx
push dword [ebp - 0x218]
cmovne ecx, eax
xor eax, eax
mov word [ecx], ax
call fcn.00427e40
add esp, 8
test eax, eax
je 0x427fb9
lea eax, [ebp - 0x220]
mov dword [ebp - 0x210], 0x104
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x427f30
mov esi, dword [ebp - 0x218]
xor eax, eax
mov word [edi - 2], ax
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
pop edi
test eax, eax
jne 0x427eaf
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
xor ecx, ebp
pop ebx
call fcn.00460412
mov esp, ebp
pop ebp
ret
Function at 0x429940
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532a92
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x10], ebx
jne 0x42997d
xor al, al
jmp 0x429a9c
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042e300
add esp, 8
cmp dword [ebp - 0x18], 3
mov dword [ebp - 4], 0
jb 0x4299f6
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x4299b2
test al, 0x10
jne 0x4299f6
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042def0
add esp, 0xc
lea edx, [ebp - 0x28]
cmp dword [ebp - 0x14], 0x10
mov ebx, 1
mov ecx, eax
cmovae edx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 0x10
jb 0x4299de
mov ecx, dword [eax]
push dword [ebp - 0x18]
push edx
push dword [eax + 0x10]
push ecx
call fcn.00407420
add esp, 0x10
mov byte [ebp - 0x41], 0
test al, al
je 0x4299fa
mov byte [ebp - 0x41], 1
test bl, 1
je 0x429a0a
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffe
call fcn.004055b0
cmp byte [ebp - 0x41], 0
je 0x429a16
mov byte [ebp - 0x41], 1
jmp 0x429a69
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042def0
or ebx, 2
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x48], ebx
call fcn.00429940
add esp, 0x10
test al, al
je 0x429a58
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov byte [ebp - 0x41], 1
test eax, eax
jne 0x429a5c
mov byte [ebp - 0x41], 0
test bl, 2
je 0x429a69
lea ecx, [ebp - 0x40]
call fcn.004055b0
mov edx, dword [ebp - 0x14]
cmp edx, 0x10
jb 0x429a99
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x429a8f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x429ab6
push edx
push ecx
call fcn.00460404
add esp, 8
mov al, byte [ebp - 0x41]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460412
mov esp, ebp
pop ebp
ret
call fcn.004f5b2a
int3
Function at 0x429ac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532adf
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x48], ebx
cmp dword [eax + 0x10], ebx
jne 0x429afd
xor al, al
jmp 0x429bd9
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.0042e400
add esp, 8
cmp dword [ebp - 0x18], 3
mov dword [ebp - 4], 0
jb 0x429b5b
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x429b32
test al, 0x10
jne 0x429b5b
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042dfe0
lea ecx, [ebp - 0x28]
mov ebx, 1
push ecx
push eax
call fcn.00439170
add esp, 0x14
mov byte [ebp - 0x41], 0
test al, al
je 0x429b5f
mov byte [ebp - 0x41], 1
test bl, 1
je 0x429b6f
lea ecx, [ebp - 0x40]
and ebx, 0xfffffffe
call fcn.00419a40
cmp byte [ebp - 0x41], 0
je 0x429b79
mov bl, 1
jmp 0x429bcf
push 1
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0042dfe0
or ebx, 2
mov byte [ebp - 4], 1
push eax
mov dword [ebp - 0x48], ebx
call fcn.00429ac0
add esp, 0x10
test al, al
je 0x429bbb
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 0x41], 1
test eax, eax
jne 0x429bbf
mov byte [ebp - 0x41], 0
test bl, 2
je 0x429bcc
lea ecx, [ebp - 0x40]
call fcn.00419a40
mov bl, byte [ebp - 0x41]
lea ecx, [ebp - 0x28]
call fcn.00419a40
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00460412
mov esp, ebp
pop ebp
ret
Function at 0x430cc0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5332ab
mov eax, dword fs:[0]
push eax
sub esp, 0x1a0
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1a8], esi
mov dword [ebp - 0x14], 0xf
mov dword [ebp - 0x18], 0
mov byte [ebp - 0x28], 0
cmp dword [edi + 0x14], 0x10
mov eax, edi
mov dword [ebp - 4], 0
jb 0x430d1c
mov eax, dword [edi]
lea ecx, [ebp - 0x198]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x430e89
cmp dword [edi + 0x14], 0x10
mov eax, edi
jb 0x430d3d
mov eax, dword [edi]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x1a4], eax
cmp eax, 0xffffffff
je 0x430e89
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x1a0], eax
cmp eax, 0xffffffff
je 0x430e7d
push 0
push 0
push 0
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push dword [ebp - 0x1a0]
call fcn.004fdee8
add esp, 4
mov dword [ebp - 0x1a8], eax
lea ecx, [ebp - 0x1ac]
push 0
push ecx
push dword [ebp - 0x1a0]
push eax
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430e6f
mov ecx, dword [ebp - 0x1a8]
mov ax, word [ecx]
mov dl, byte [ecx + 2]
mov word [ebp - 0x19c], ax
cmp al, 0xef
jne 0x430dfc
cmp byte [ebp - 0x19b], 0xbb
jne 0x430e60
cmp dl, 0xbf
jne 0x430e60
mov eax, dword [ebp - 0x1a0]
add eax, 0xfffffffd
push eax
lea eax, [ecx + 3]
push eax
jmp 0x430e67
cmp al, 0xff
jne 0x430e60
cmp byte [ebp - 0x19b], 0xfe
jne 0x430e60
push ecx
call fcn.004fdecd
add esp, 4
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x3a8
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00428e60
push eax
lea eax, [ebp - 0x40]
mov byte [ebp - 4], 1
push eax
call fcn.00430ed0
push 0x3a8
push eax
push esi
mov byte [ebp - 4], 2
call fcn.00428fa0
add esp, 0x20
lea ecx, [ebp - 0x40]
call fcn.00419a40
lea ecx, [ebp - 0x58]
call fcn.00419a40
jmp 0x430ea8
push dword [ebp - 0x1a0]
push ecx
lea ecx, [ebp - 0x28]
call fcn.00404d00
push dword [ebp - 0x1a8]
call fcn.004fdecd
add esp, 4
push dword [ebp - 0x1a4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
mov eax, esi
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.00460412
mov esp, ebp
pop ebp
ret
Function at 0x430ed0
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5332e2
mov eax, dword fs:[0]
push eax
sub esp, 0x278
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov edi, dword [ebp + 0xc]
xor eax, eax
push eax
push 0x53e9d0
mov dword [ebp - 0x280], esi
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
call fcn.00416d70
cmp dword [edi + 0x14], 8
mov eax, edi
mov dword [ebp - 4], 0
jb 0x430f3c
mov eax, dword [edi]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x431015
cmp dword [edi + 0x14], 8
jb 0x430f5b
mov edi, dword [edi]
push 0
push 0x80
push 3
push 0
push 7
push SysReAllocStringLen
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x27c], eax
cmp eax, 0xffffffff
je 0x431015
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
je 0x431009
push 0
push 0
push 0
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
call fcn.004fdee8
add esp, 4
mov dword [ebp - 0x280], eax
lea ecx, [ebp - 0x284]
push 0
push ecx
push edi
push eax
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x430ffb
mov ecx, dword [ebp - 0x280]
movzx eax, word [ecx]
cmp al, 0xff
jne 0x430fef
shr eax, 8
cmp al, 0xfe
jne 0x430fef
lea eax, [edi - 2]
shr eax, 1
push eax
lea eax, [ecx + 2]
push eax
jmp 0x430ff3
shr edi, 1
push edi
push ecx
lea ecx, [ebp - 0x28]
call fcn.00416d70
push dword [ebp - 0x280]
call fcn.004fdecd
add esp, 4
push dword [ebp - 0x27c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x28]
mov dword [esi + 0x10], 0
mov eax, esi
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x18]
movq qword [esi + 0x10], xmm0
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.00460412
mov esp, ebp
pop ebp
ret
Function at 0x432ef0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533531
mov eax, dword fs:[0]
push eax
sub esp, 0x16c
mov eax, dword [0x579258]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 8
mov dword [ebp - 0x160], esi
call fcn.00432450
mov edi, eax
add esp, 4
test edi, edi
jne 0x432f4c
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 0xf
mov byte [esi], al
mov dword [esi + 0x10], eax
mov byte [esi], al
jmp 0x4330e5
mov dword [ebp - 0x118], 0xf
mov dword [ebp - 0x11c], 0
mov byte [ebp - 0x12c], 0
push 0x104
lea eax, [ebp - 0x114]
mov dword [ebp - 4], 0
push 0
push eax
call fcn.004ecad0
add esp, 0xc
mov dword [ebp - 0x160], 0x104
lea eax, [ebp - 0x160]
push eax
lea eax, [ebp - 0x114]
push eax
push edi
call dword [sym.imp.USERENV.dll_GetUserProfileDirectoryA]
test eax, eax
je 0x43309b
lea ecx, [ebp - 0x114]
mov dword [ebp - 0x134], 0
mov dword [ebp - 0x130], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x144], 0
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x432fd0
sub ecx, edx
lea eax, [ebp - 0x114]
push ecx
push eax
lea ecx, [ebp - 0x144]
call fcn.00404d00
lea eax, [ebp - 0x144]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x15c]
push eax
call fcn.004296a0
lea ecx, [ebp - 0x12c]
add esp, 8
cmp ecx, eax
je 0x43303a
movups xmm0, xmmword [eax]
movups xmmword [ebp - 0x178], xmm0
movq xmm0, qword [eax + 0x10]
movq qword [ebp - 0x168], xmm0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0xf
mov byte [eax], 0
jmp 0x433058
movq xmm0, qword [ebp - 0x11c]
movq qword [ebp - 0x168], xmm0
movups xmm0, xmmword [ebp - 0x12c]
movups xmmword [ebp - 0x178], xmm0
lea ecx, [ebp - 0x15c]
call fcn.004055b0
mov edx, dword [ebp - 0x130]
cmp edx, 0x10
jb 0x4330b9
mov ecx, dword [ebp - 0x144]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x43308f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x433102
push edx
push ecx
call fcn.00460404
add esp, 8
jmp 0x4330b9
movq xmm0, qword [ebp - 0x11c]
movq qword [ebp - 0x168], xmm0
movups xmm0, xmmword [ebp - 0x12c]
movups xmmword [ebp - 0x178], xmm0
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
movups xmm0, xmmword [ebp - 0x178]
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x168]
movq qword [esi + 0x10], xmm0
mov eax, esi
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.00460412
mov esp, ebp
pop ebp
ret
call fcn.004f5b2a
int3