joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43166d
Capabilities:
Get disk size

Disassembly:
push 0x13c
mov eax, 0x4c09b9
call fcn.00435d5d
mov edi, ecx
lea eax, [ebp - 0x28]
xorps xmm0, xmm0
push eax
movups xmmword [ebp - 0x28], xmm0
call fcn.0042e286
mov ecx, eax
call fcn.0043883f
push eax
call dword [sym.imp.USER32.dll_GetWindowRect]
push 1
push 0x190
push 0x258
push dword [ebp - 0x24]
push dword [ebp - 0x28]
call fcn.0042e286
mov ecx, eax
call fcn.0043883f
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [edi + 0x540]
lea edx, [ebp - 0xac]
xor eax, eax
xor ebx, ebx
mov word [ebp - 0x18], ax
mov dword [ebp - 0x16], ebx
mov word [ebp - 0x12], bx
mov eax, dword [ecx]
push edx
call dword [eax + 0x38]
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.0043882c
push eax
call fcn.0047df53
or dword [ebp - 4], 0xffffffff
mov esi, eax
pop ecx
lea ecx, [ebp - 0xac]
call fcn.004382e1
cmp esi, 3
jl 0x431747
mov ecx, dword [edi + 0x540]
lea edx, [ebp - 0x130]
push edx
mov eax, dword [ecx]
call dword [eax + 0x38]
push 3
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0043882c
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.004825c4
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x130]
add esp, 0xc
call fcn.004382e1
lea eax, [ebp - 0x138]
push eax
lea eax, [ebp - 0x140]
push eax
lea eax, [ebp - 0x148]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov esi, dword [edi + 0x524]
xor ecx, ecx
mov eax, dword [edi + 0x528]
mov edi, eax
sub edi, esi
add edi, 3
shr edi, 2
cmp esi, eax
cmova edi, ecx
test edi, edi
je 0x431799
mov ecx, dword [esi]
test ecx, ecx
je 0x431791
mov eax, dword [ecx]
call dword [eax]
add esi, 4
inc ebx
cmp ebx, edi
jne 0x431787
call fcn.00435d07
ret

Function at 0x431fa0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c0a43
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4f030c]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 8], 0xffffffff
mov dword [esi + 4], 0xffffffff
mov dword [esi + 0xc], 0
mov dword [esi + 0x20], 0x4f73d0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x1c], 0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea ecx, [esi + 0x34]
mov dword [esi], vtable.TiXmlDocument.0
mov dword [ebp - 4], 0
mov dword [ecx], 0x4f73d0
mov dword [esi + 0x40], 0xffffffff
mov dword [esi + 0x3c], 0xffffffff
push 0
push 0x4c65ee
mov byte [ebp - 4], 1
mov dword [esi + 0x38], 4
mov byte [esi + 0x44], 0
mov byte [esi + 0x2c], 0
mov dword [esi + 0x30], 0
call fcn.00435b00
mov dword [esi + 0x40], 0
mov eax, esi
mov dword [esi + 0x3c], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x437f33
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x437f65
xor eax, eax
inc eax
cmp byte [ebp + 0xc], 0
push 4
pop edx
cmovne edx, eax
xor eax, eax
cmp byte [ebp + 8], al
cmovne eax, edx
push eax
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
pop ebp
ret 8

Function at 0x43a30d
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor esi, esi
push 0x11
call edi
push 8
pop ecx
test ax, ax
push 2
cmovs esi, ecx
call edi
test ax, ax
jns 0x43a330
or esi, 1
push 1
call edi
test ax, ax
jns 0x43a33c
or esi, 2
push 0x10
call edi
test ax, ax
jns 0x43a348
or esi, 4
push 0x12
call edi
test ax, ax
jns 0x43a354
or esi, 0x20
pop edi
mov eax, esi
pop esi
ret

Function at 0x43cb26
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov ebx, ecx
call dword [sym.imp.USER32.dll_GetFocus]
mov esi, dword [ebp + 8]
cmp eax, dword [ebx + 4]
je 0x43cb59
cmp esi, dword [ebx + 0x60]
je 0x43cc1b
cmp byte [ebx + 0xc4], 0
jne 0x43cb59
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetFocus]
cmp esi, dword [ebx + 0x60]
je 0x43cc1b
cmp dword [ebx + 0x60], 0
push edi
je 0x43cbac
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x14
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x60]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
xor edi, edi
mov ecx, ebx
push edi
push edi
push edi
push str.killfocus
push dword [ebx + 0x60]
call fcn.0043c7cb
mov dword [ebx + 0x60], edi
test esi, esi
je 0x43cc1a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x2c]
cmp eax, ebx
jne 0x43cc1a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xd8]
test al, al
je 0x43cc1a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xe8]
test al, al
je 0x43cc1a
push 7
pop ecx
xor eax, eax
mov dword [ebx + 0x60], esi
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
mov dword [ebp - 0x20], 0x15
mov dword [ebp - 0x1c], esi
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebx + 0x60]
lea edx, [ebp - 0x20]
mov dword [ebp - 0x18], eax
push edx
mov eax, dword [ecx]
call dword [eax + 0x11c]
xor eax, eax
mov ecx, ebx
push eax
push eax
push eax
push str.setfocus
push dword [ebx + 0x60]
call fcn.0043c7cb
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x44d890
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x4f030c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
push edi
cmp byte [esi + 0x24], 0
je 0x44d8fd
cmp dword [esi + 0x1c], 0
je 0x44d8fd
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea edi, [eax + 1]
lea eax, [edi + edi]
call fcn.00436700
mov ebx, esp
test ebx, ebx
je 0x44d8fd
push edi
push ebx
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esi + 0x1c]
push ebx
add ecx, 0x1bc
call fcn.0043837f
mov ecx, dword [esi + 0x1c]
xor eax, eax
push eax
push eax
push eax
mov eax, dword [ecx]
push str.textchanged
push ecx
call dword [eax + 0x2c]
mov ecx, eax
call fcn.0043c7cb
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00435ce1
mov esp, ebp
pop ebp
ret 0x10
Function at 0x45031f
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2c4
mov eax, 0x4c1a60
call fcn.00435d5d
mov esi, ecx
mov ebx, dword [ebp + 8]
call fcn.004506ae
call fcn.0043a0bb
push eax
lea ecx, [ebp - 0x94]
call fcn.004381a6
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0043a0c1
mov ecx, eax
call fcn.0043898a
test al, al
je 0x450435
push ebx
lea ecx, [ebp - 0x94]
call fcn.004383e3
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.0043882c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x2d0], eax
push edi
cmp eax, 0xffffffff
jne 0x4503a6
push str.Error_opening_file
jmp 0x450516
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
test edi, edi
je 0x4504af
cmp edi, 0x400000
ja 0x4504c0
and dword [ebp - 0x2c8], 0
push edi
call fcn.004366ea
pop ecx
mov ebx, eax
lea eax, [ebp - 0x2c8]
push 0
push eax
push edi
push ebx
push dword [ebp - 0x2d0]
mov dword [ebp - 0x2cc], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push dword [ebp - 0x2d0]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], edi
je 0x45041e
push ebx
call fcn.00435e05
pop ecx
mov ecx, esi
call fcn.004506ae
push 0
push str.Could_not_read_file
jmp 0x450516
push dword [ebp + 0xc]
mov ecx, esi
push edi
push ebx
call fcn.00450561
push dword [ebp - 0x2cc]
jmp 0x450544
call fcn.0043a0c1
push eax
lea ecx, [ebp - 0x94]
call fcn.004383c6
call fcn.0043a1f4
test al, al
je 0x450456
call fcn.0043a0c7
jmp 0x45046d
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0043882c
push eax
call fcn.00458f1d
add esp, 0xc
mov edi, eax
test edi, edi
jne 0x45047e
push eax
push str.Error_opening_zip_file
jmp 0x450516
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2cc]
push eax
push 1
push ebx
push edi
call fcn.0045895e
add esp, 0x14
test eax, eax
je 0x4504a5
push 0
push str.Could_not_find_ziped_file
jmp 0x450516
mov ebx, dword [ebp - 0x98]
test ebx, ebx
jne 0x4504b8
push 0
push str.File_is_empty
jmp 0x450516
cmp ebx, 0x400000
jbe 0x4504c9
push 0
push str.File_too_large
jmp 0x450516
push ebx
call fcn.004366ea
push 3
push ebx
push eax
push dword [ebp - 0x2cc]
mov dword [ebp - 0x2c8], eax
push edi
call fcn.004592dd
add esp, 0x18
test eax, eax
je 0x450521
cmp eax, 0x600
je 0x450521
push dword [ebp - 0x2c8]
call fcn.00435e05
pop ecx
call fcn.0043a1f4
test al, al
jne 0x45050f
push edi
call fcn.004587b8
pop ecx
push 0
push str.Could_not_unzip_file
mov ecx, esi
call fcn.004506d6
mov bl, al
jmp 0x45054c
call fcn.0043a1f4
test al, al
jne 0x450531
push edi
call fcn.004587b8
pop ecx
push dword [ebp + 0xc]
mov edi, dword [ebp - 0x2c8]
mov ecx, esi
push ebx
push edi
call fcn.00450561
push edi
mov bl, al
call fcn.00435e05
pop ecx
lea ecx, [ebp - 0x94]
call fcn.004382e1
mov al, bl
call fcn.00435d07
ret 8
Function at 0x45621f
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x456233
xor eax, eax
pop ebp
ret
call dword [sym.imp.USER32.dll_EmptyClipboard]
test eax, eax
jne 0x456245
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x45622f
push esi
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
jne 0x456260
call dword [sym.imp.USER32.dll_CloseClipboard]
jmp 0x456297
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call fcn.004794e0
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push esi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
test eax, eax
jne 0x45629b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
xor eax, eax
jmp 0x45629e
xor eax, eax
inc eax
pop esi
pop ebp
ret

Function at 0x4581ca
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x88
mov eax, 0x4bf6b4
call fcn.00435d5d
mov esi, ecx
cmp dword [esi + 0x4f0], 0
mov ebx, dword [ebp + 0x14]
je 0x4582be
cmp dword [ebp + 8], 0x100
jne 0x4582a4
cmp word [ebp + 0xc], 0xd
jne 0x45823d
cmp byte [esi + 0x4f6], 0
je 0x45821e
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x45823d
cmp byte [esi + 0x4f7], 0
jne 0x45823d
mov ecx, dword [esi + 0x40]
test ecx, ecx
je 0x458236
push 0
push 0
push 0
push str.return
push esi
call fcn.0043c7cb
xor eax, eax
jmp 0x4582c1
cmp dword [ebp + 0xc], 0x43
jne 0x4582a4
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
test ax, ax
jns 0x4582a4
lea eax, [ebp - 0x94]
mov ecx, esi
push eax
call fcn.00456a0b
and dword [ebp - 4], 0
lea ecx, [ebp - 0x94]
call fcn.00438836
lea ecx, [ebp - 0x94]
lea eax, [eax*2 + 2]
push eax
call fcn.0043882c
mov ecx, dword [esi + 0x40]
push eax
push 0x2042
call fcn.0043883f
push eax
call fcn.0045621f
add esp, 0x10
lea ecx, [ebp - 0x94]
call fcn.004382e1
jmp 0x458236
mov eax, dword [esi + 0x4f0]
push ebx
push dword [ebp + 0x10]
mov ecx, dword [eax + 0xc]
push dword [ebp + 0xc]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
jmp 0x4582c1
xor eax, eax
inc eax
call fcn.00435d07
ret 0x10
Function at 0x45880a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x4f030c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
je 0x4588c0
movzx eax, word [esi]
test ax, ax
je 0x4588c0
push edi
mov edi, esi
mov ecx, esi
cmp ax, 0x2f
je 0x45884a
cmp ax, 0x5c
jne 0x45884c
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x45883e
cmp edi, esi
je 0x458893
sub edi, esi
lea eax, [ebp - 0x20c]
sar edi, 1
push edi
push esi
push eax
call fcn.00485edb
add edi, edi
add esp, 0xc
cmp edi, 0x208
jae 0x4588d0
xor eax, eax
mov word [ebp + edi - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push ebx
call fcn.0045880a
pop ecx
pop ecx
lea eax, [ebp - 0x414]
push ebx
push eax
call fcn.0047df31
lea eax, [ebp - 0x414]
push esi
push eax
call fcn.004819f0
add esp, 0x10
lea eax, [ebp - 0x414]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00435ce1
mov esp, ebp
pop ebp
ret
call fcn.00436196
int3

Function at 0x458e95
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ecx
push edi
mov edi, ecx
cmp dword [edi], 0
jne 0x458f11
cmp dword [edi + 4], 0xffffffff
jne 0x458f11
push esi
lea esi, [edi + 0x138]
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x4c6d88
push esi
call fcn.004819f0
cmp dword [ebp + 0x10], 1
pop ecx
pop ecx
pop esi
jne 0x458ee3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileType]
cmp eax, 1
je 0x458ee3
mov eax, 0x2000000
jmp 0x458f16
lea eax, [ebp - 4]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045b3b0
add esp, 0x10
test eax, eax
jne 0x458f01
mov eax, dword [ebp - 4]
jmp 0x458f16
push eax
call fcn.0045bab8
mov dword [edi], eax
mov eax, dword [0x4f7ec0]
pop ecx
jmp 0x458f16
mov eax, 0x1000000
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x45b4bd
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
imul esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
cmp byte [edi], 0
je 0x45b4f1
push 0
lea eax, [ebp + 0x10]
push eax
push esi
push dword [ebp + 8]
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45b4ec
mov byte [edi + 8], 1
mov eax, dword [ebp + 0x10]
jmp 0x45b518
mov edx, dword [edi + 0x18]
lea eax, [edx + esi]
cmp eax, dword [edi + 0x14]
jbe 0x45b501
mov esi, dword [edi + 0x14]
sub esi, edx
mov ecx, dword [edi + 0x10]
push esi
add ecx, edx
push ecx
push dword [ebp + 8]
call fcn.004794e0
add esp, 0xc
mov eax, esi
add dword [edi + 0x18], esi
xor edx, edx
div dword [ebp + 0xc]
pop edi
pop esi
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
test edx, edx
jne 0x45b699
xor eax, eax
pop ebp
ret
mov ecx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
not ecx
cmp esi, 8
jb 0x45b758
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 + 0x4cee50]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4cee50]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4cee50]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4cee50]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4cee50]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4cee50]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4cee50]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4cee50]
sub edi, 1
jne 0x45b6b1
pop edi
test esi, esi
je 0x45b774
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x4cee50]
inc edx
sub esi, 1
jne 0x45b75c
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x464ce1
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x464d05
cmp dword [esi + 8], edi
jge 0x464cfd
push esi
call fcn.00462f82
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x464d2e
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x464d11
mov dword [esi + 8], edx
cmp ecx, 4
jge 0x464d4b
mov edx, dword [esi]
cmp edx, dword [esi + 4]
jb 0x464d39
xor eax, eax
jmp 0x464d41
mov al, byte [edx]
inc edx
mov dword [esi], edx
movzx eax, al
mov byte [ebp + ecx + 8], al
inc ecx
cmp ecx, 4
jl 0x464d30
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
je 0x464d80
push str.zlib_corrupt
call fcn.00462e3d
add esp, 4
jmp 0x464dbd
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x464d90
push str.read_past_buffer
jmp 0x464d76
mov eax, dword [esi + 0x10]
add eax, edi
cmp eax, dword [esi + 0x18]
jbe 0x464da7
push edi
push esi
call fcn.00462e4c
pop ecx
pop ecx
test eax, eax
je 0x464dbd
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.004794e0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x46d0a9
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x2cc
mov eax, 0x4c2404
call fcn.00435d5d
mov dword [ebp - 0x2d8], ecx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2cc], ebx
call fcn.0043a0bb
push eax
lea ecx, [ebp - 0x94]
call fcn.004381a6
xor edi, edi
mov dword [ebp - 4], edi
call fcn.0043a0c1
mov ecx, eax
call fcn.0043898a
test al, al
je 0x46d197
push ebx
lea ecx, [ebp - 0x94]
call fcn.004383e3
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.0043882c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x46d13a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004382e1
jmp 0x46d278
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x46d126
push esi
mov dword [ebp - 0x2c8], edi
call fcn.004366ea
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2c8]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2c8], esi
je 0x46d263
push edi
call fcn.00435e05
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004382e1
jmp 0x46d276
call fcn.0043a0c1
push eax
lea ecx, [ebp - 0x94]
call fcn.004383c6
call fcn.0043a1f4
test al, al
je 0x46d1b8
call fcn.0043a0c7
jmp 0x46d1cf
push 2
push edi
lea ecx, [ebp - 0x94]
call fcn.0043882c
push eax
call fcn.00458f1d
add esp, 0xc
mov ebx, eax
test ebx, ebx
je 0x46d126
lea eax, [ebp - 0x2c4]
push eax
lea eax, [ebp - 0x2d4]
push eax
push 1
push dword [ebp - 0x2cc]
push ebx
call fcn.0045895e
add esp, 0x14
test eax, eax
jne 0x46d126
mov esi, dword [ebp - 0x98]
test esi, esi
je 0x46d126
push esi
call fcn.004366ea
push 3
push esi
mov edi, eax
push edi
push dword [ebp - 0x2d4]
push ebx
call fcn.004592dd
add esp, 0x18
test eax, eax
je 0x46d253
cmp eax, 0x600
je 0x46d253
push edi
call fcn.00435e05
pop ecx
call fcn.0043a1f4
test al, al
jne 0x46d183
push ebx
call fcn.004587b8
jmp 0x46d182
call fcn.0043a1f4
test al, al
jne 0x46d263
push ebx
call fcn.004587b8
pop ecx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x94]
call fcn.004382e1
test edi, edi
jne 0x46d2ea
xor edi, edi
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
push dword [ebp - 0x2cc]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x46d2e6
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
test esi, esi
je 0x46d2e6
push esi
mov dword [ebp - 0x2d0], edi
call fcn.004366ea
pop ecx
push 0
mov edi, eax
lea eax, [ebp - 0x2d0]
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x2d0], esi
je 0x46d2e2
push edi
call fcn.00435e05
pop ecx
xor edi, edi
test edi, edi
jne 0x46d2ea
xor eax, eax
jmp 0x46d305
mov ecx, dword [ebp - 0x2d8]
push esi
push edi
call fcn.0046d30d
push 1
push edi
mov esi, eax
call fcn.00435cd3
pop ecx
pop ecx
mov eax, esi
call fcn.00435d07
ret 4
Function at 0x474168
Capabilities:
Get file size
Read file on windows

Disassembly:
push 0x8c
mov eax, 0x4bffe1
call fcn.00435d5d
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
call fcn.0043a0bb
push eax
lea ecx, [ebp - 0x94]
call fcn.004381a6
xor edi, edi
lea ecx, [ebp - 0x94]
push esi
mov dword [ebp - 4], edi
call fcn.004383e3
push edi
push 0x80
push 3
push edi
push 1
push SysReAllocStringLen
lea ecx, [ebp - 0x94]
call fcn.0043882c
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x474212
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebx], eax
test eax, eax
je 0x474212
and dword [ebp - 0x98], 0
push eax
call fcn.004366ea
pop ecx
push 0
mov esi, eax
lea eax, [ebp - 0x98]
push eax
push dword [ebx]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x98]
cmp eax, dword [ebx]
je 0x474214
push esi
call fcn.00435e05
pop ecx
xor esi, esi
lea ecx, [ebp - 0x94]
call fcn.004382e1
mov eax, esi
call fcn.00435d07
ret
Function at 0x476352
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0047df53
mov dword [ebp - 8], eax
xor ecx, ecx
push 2
inc eax
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004366ea
push dword [ebp + 8]
mov dword [ebp - 4], eax
push eax
call fcn.0047df31
add esp, 0x10
call fcn.00478386
test al, al
je 0x4763a9
push eax
pop edx
pop edi
pop edi
push ebp
pop ecx
push ecx
push edi
push esp
push edi
push esi
push ebp
pop esi
pop ecx
pop esp
push esi
pop esp
push ecx
push esp
push eax
pop ecx
pop ecx
call fcn.00478455
test al, al
je 0x4763ce
pop ebx
push ecx
pop edx
push ebp
push edx
pop edi
pop edi
pop esp
push ebp
pop esi
pop edx
pop ebp
pop esi
pop edx
push edi
pop ebp
push ebp
push edi
push ebp
pop edx
push ebp
push esi
pop esi
pop esi
pop ebp
push edx
push ebp
pop esp
call fcn.00478386
test al, al
je 0x4763ee
pop esi
push ebp
pop edx
pop edx
push ebp
push edi
pop eax
push ebp
pop edx
pop ecx
pop esp
push esp
pop edi
push esp
pop edx
push ebp
push esi
push edi
push edi
pop ebx
pop ebp
pop ebx
push esp
mov edi, dword [ebp - 8]
xor esi, esi
xor ebx, ebx
inc esi
test edi, edi
js 0x476463
mov esi, dword [ebp - 4]
cmp word [esi + ebx*2], 0x5c
jne 0x47645b
call fcn.004782b7
test al, al
je 0x476430
push edi
pop ecx
push esi
push ebx
push edi
push ebp
push ebp
push esp
pop eax
pop edi
pop ecx
pop ebp
pop ecx
pop esp
push esi
pop eax
pop ebp
push ebp
push ebp
push eax
pop edi
push edx
push eax
push eax
pop ebp
push ebx
pop edx
push ebp
pop esi
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
movzx eax, word [esi + ebx*2]
mov dword [ebp - 0xc], eax
xor eax, eax
push esi
mov word [esi + ebx*2], ax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x476454
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x476475
mov eax, dword [ebp - 0xc]
mov word [esi + ebx*2], ax
inc ebx
cmp ebx, edi
jle 0x4763fd
xor esi, esi
inc esi
push dword [ebp - 4]
call fcn.00435e05
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
xor esi, esi
jmp 0x476463

Function at 0x476479
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x4f030c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push esi
push edi
xor esi, esi
push 0x208
push esi
push eax
mov dword [ebp - 0x210], esi
call fcn.0047a420
add esp, 0xc
lea eax, [ebp - 0x20c]
push esi
push 0x1a
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
call fcn.004782b7
test al, al
je 0x4764e6
push edi
pop ecx
push esi
push ebx
push edi
push ebp
push ebp
push esp
pop eax
pop edi
pop ecx
pop ebp
pop ecx
pop esp
push esi
pop eax
pop ebp
push ebp
push ebp
push eax
pop edi
push edx
push eax
push eax
pop ebp
push ebx
pop edx
push ebp
pop esi
lea eax, [ebp - 0x20c]
mov ecx, ebx
push eax
call fcn.00401dcf
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00435ce1
mov esp, ebp
pop ebp
ret