joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44cd00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, 0x121c
call fcn.004cd3a0
push ebx
push ebp
push esi
push edi
mov eax, ecx
mov byte [esp + 0x13], dl
push eax
push dword [0x4ede58]
mov dword [esp + 0x1c], eax
lea ebx, [esp + 0x230]
push str.__s_s
mov eax, ebx
mov ebp, 0x4d5231
push 0x800
push eax
call fcn.0049e100
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x44cd6c
lea eax, [esp + 0x229]
push eax
call edi
cmp eax, 0xffffffff
je 0x44cd6c
mov eax, dword [0x4ede58]
jmp 0x44ce1b
xor esi, esi
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push ecx
call fcn.0049f430
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x44cda3
test esi, esi
jne 0x44cda3
mov esi, 0x100
lea eax, [esp + 0x18]
push esi
push ecx
push eax
push ecx
call fcn.0049f430
mov edx, eax
add esp, 0x10
test edx, edx
je 0x44cd84
xor ecx, ecx
nop word [eax + eax]
mov al, byte [esp + ecx + 0x18]
lea ecx, [ecx + 1]
mov byte [esp + ecx + 0x11f], al
test al, al
jne 0x44cdb0
test edx, edx
je 0x44ceaa
push dword [esp + 0x14]
lea eax, [esp + 0x124]
push eax
push str.__s_s
lea eax, [esp + 0x234]
push 0x800
push eax
call fcn.0049e100
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x44ceaa
lea eax, [esp + 0x229]
push eax
call edi
cmp eax, 0xffffffff
je 0x44ceaa
lea eax, [esp + 0x120]
cmp byte [esp + 0x13], 0
mov word [esp + esi + 0x228], 0x22
je 0x44ce80
push 0x4decf4
push eax
push str.__s_s
lea eax, [esp + 0xa34]
push 0x800
push eax
call fcn.0049e100
mov esi, eax
add esp, 0x14
lea ecx, [esi + 1]
cmp ecx, 0x800
jg 0x44ce80
lea eax, [esp + 0xa29]
push eax
call edi
cmp eax, 0xffffffff
je 0x44ce80
mov word [esp + esi + 0xa28], 0x22
lea ebx, [esp + 0xa28]
lea ebp, [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
push ebx
mov ecx, 0x4ed830
call fcn.0043fa30
test eax, eax
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x121c
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x121c
ret
Function at 0x450ee0
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x118
push ebx
push edi
mov edi, dword [0x4eceb0]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
mov ecx, dword [ebp + 8]
xor edx, edx
push 0
call fcn.00415c70
mov bh, al
add esp, 0xc
test bh, bh
jne 0x450f7a
mov ecx, dword [ebp + 8]
lea edx, [esp + 0xc]
push 0
call fcn.00468b30
add esp, 4
test eax, eax
jne 0x450f41
push 1
push eax
push 0xffffffffffffffff
push 0x4d5231
mov ecx, edi
call fcn.004a2730
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov edx, dword [esp + 0xc]
lea ecx, [esp + 0x20]
mov dword [esp + 0x10], ecx
lea ecx, [esp + 0x10]
push 0
push ecx
mov ecx, eax
mov dword [esp + 0x20], 0
call fcn.00468e50
add esp, 8
lea eax, [esp + 0x10]
mov ecx, edi
push eax
call fcn.004a1f60
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [ebp + 0xc]
mov bl, byte [eax]
movzx eax, bl
test eax, 0xffffff80
jne 0x450f9b
push 2
push eax
call fcn.004b8e5e
add esp, 8
test eax, eax
je 0x450f9b
and bl, 0xdf
mov al, bl
cmp al, 0x50
je 0x450faf
xor ecx, ecx
mov edx, 2
cmp al, 0x54
cmovne edx, ecx
jmp 0x450fb4
mov edx, 1
mov cl, bh
call fcn.00468db0
push 1
test al, al
mov edx, 0x4def8c
push 0
mov ecx, 0x4db60c
cmove ecx, edx
push 0xffffffffffffffff
push ecx
mov ecx, edi
call fcn.004a2730
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x450fe0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x124
push ebx
push esi
push edi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4eceb0]
push 0
call fcn.004a2730
mov eax, dword [ebp + 8]
test eax, eax
je 0x451127
cmp byte [eax], 0
je 0x451127
push 0x103
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004ba990
lea ecx, [esp + 0x34]
mov byte [esp + 0x137], 0
add esp, 0xc
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x451040
sub ecx, edx
cmp byte [esp + ecx + 0x27], 0x5c
je 0x451065
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x451127
mov word [esp + ecx + 0x28], 0x5c
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExA]
test eax, eax
je 0x451127
cmp byte [ebp + 0xc], 0
je 0x451097
mov ebx, dword [esp + 0x10]
mov edi, dword [esp + 0x14]
jmp 0x45109f
mov ebx, dword [esp + 0x18]
mov edi, dword [esp + 0x1c]
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
shrd ebx, edi, 0x14
push 0x4d5290
shr edi, 0x14
call fcn.004a2730
mov esi, dword [0x4eceb0]
cmp byte [esi + 0x17], 0
jne 0x4510cb
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x4510e2
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x9b
mov dword [esi], ebx
or al, 0x18
mov dword [esi + 4], edi
mov byte [esi + 0x15], al
jge 0x451109
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4eb748], 0
je 0x451119
mov ecx, esi
call fcn.004013b0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
jne 0x451154
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9c00
call fcn.004a2730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4d5231
push 0
push 0x4d9c00
mov ecx, esi
call fcn.0043e650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x453260
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x108
push esi
mov esi, ecx
mov al, byte [esi]
test al, al
je 0x45328f
cmp byte [esi + 1], 0x3a
jne 0x45328f
cmp byte [esi + 2], 0
jne 0x45328f
mov byte [esp + 4], al
lea esi, [esp + 4]
mov word [esp + 5], 0x5c3a
mov byte [esp + 7], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x4532f1
cmp byte [0x4ede60], al
je 0x453335
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
jne 0x4532d2
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9c00
call fcn.004a2730
pop esi
add esp, 0x108
ret
mov ecx, dword [0x4edbbc]
push 0x4d5231
push 0
push 0x4d9c00
call fcn.0043e650
pop esi
add esp, 0x108
ret
cmp byte [0x4ede60], 0
je 0x453335
lea eax, [esp + 8]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
lea ecx, [esp + 8]
cmove ecx, esi
push ecx
push ecx
mov ecx, 0x4ea238
call fcn.004696e0
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d5290
call fcn.004a2730
pop esi
add esp, 0x108
ret
Function at 0x453970
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x453a32
cmp byte [ebx], 0
je 0x453a32
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x4539b8
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
shr eax, 4
and al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call fcn.004be03b
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x453a1a
cmp byte [esi - 1], 0x3a
je 0x453a1a
test edi, edi
je 0x4539e7
mov edx, ebx
mov byte [esi], 0
mov ecx, ebx
call fcn.00453970
mov byte [esi], 0x5c
jmp 0x453a10
mov edi, esi
sub edi, ebx
lea eax, [edi + 1]
call fcn.004cd3d0
mov esi, esp
push edi
push ebx
push esi
call fcn.004ba990
add esp, 0xc
mov byte [edi + esi], 0
mov edx, esi
mov ecx, esi
call fcn.00453970
mov esi, dword [ebp - 4]
cmp byte [esi + 1], 0
je 0x453a3c
test al, al
je 0x453a3c
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454820
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
push edi
test esi, esi
je 0x45486f
push 0
push 1
mov ecx, esi
call fcn.00401550
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x45484a
mov edi, dword [esi + 0xc]
jmp 0x45484c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x454866
test byte [edi + 0x15], 8
je 0x45485f
mov ecx, edi
call fcn.004013b0
add edi, 0xc
mov edi, dword [edi]
jmp 0x4548a5
mov edi, 0x4ef2a8
mov edi, dword [edi]
jmp 0x4548a5
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.004a2170
add esp, 4
test eax, eax
jne 0x45489d
mov eax, dword [0x4e88cc]
pop edi
pop esi
pop ebx
mov dword [eax + 0x30], 0
xor eax, eax
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
push ebp
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x45490a
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x4548e3
push ecx
lea eax, [esp + 0x24]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, edi
sete al
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e88cc]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x45491b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e88cc]
xor edi, edi
mov dword [ecx + 0x30], eax
pop ebp
test esi, esi
jne 0x454929
push ebx
call fcn.004b6427
add esp, 4
test edi, edi
je 0x45494c
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d5290
call fcn.004a2730
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
jne 0x454979
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9c00
call fcn.004a2730
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4d5231
push 0
push 0x4d9c00
call fcn.0043e650
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x454a90
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x114
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov ebx, ecx
push edi
mov dword [esp + 0x14], ebx
mov edx, esi
nop word [eax + eax]
mov al, byte [edx]
cmp al, 0x20
je 0x454aba
cmp al, 9
jne 0x454abd
inc edx
jmp 0x454ab0
test al, al
je 0x454aff
cmp al, 0x2d
je 0x454ac9
cmp al, 0x2b
jne 0x454ad0
lea eax, [edx + 1]
mov edx, eax
mov al, byte [eax]
cmp al, 0x30
jne 0x454aff
mov al, byte [edx + 1]
cmp al, 0x78
je 0x454adf
cmp al, 0x58
jne 0x454aff
movsx eax, byte [edx + 2]
push eax
call fcn.004b99b0
add esp, 4
test eax, eax
je 0x454aff
push 0x10
push 0
push esi
call fcn.004b9ad3
add esp, 0xc
jmp 0x454b08
push esi
call fcn.004b9548
add esp, 4
mov esi, dword [ebp + 0xc]
cmp eax, 1
je 0x454b4f
mov ecx, esi
call fcn.0046d980
test al, al
je 0x454b4f
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
jne 0x454b48
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9c00
call fcn.004a2730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
mov ecx, ebx
jmp 0x454c96
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x454b1b
mov edx, dword [ebp + 8]
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x454b74
sub ecx, esi
mov eax, 0x103
cmp ecx, 0x104
cmovae ecx, eax
lea eax, [ecx + 1]
push eax
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004b4620
add esp, 0xc
lea eax, [esp + 0x18]
push eax
call fcn.004be196
add esp, 4
lea eax, [esp + 0x18]
push 0xa
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x454c79
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x454c79
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x454c79
cmp dword [esi], 0x4034b50
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
jne 0x454c35
push 0
push ebx
push 0
call eax
push eax
lea edx, [esp + 0x14]
mov ecx, esi
call fcn.004a1910
add esp, 8
test eax, eax
je 0x454c30
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push 0
push ecx
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
push esi
setne bl
call fcn.004b6427
add esp, 4
jmp 0x454c4f
mov eax, dword [sym.imp.KERNEL32.dll_SizeofResource]
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0
call eax
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test bl, bl
je 0x454c80
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d5290
call fcn.004a2730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
je 0x454b29
mov ecx, dword [esp + 0x14]
push 0x4d5231
push 0
push 0x4d9c00
call fcn.0043e650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x454cb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x80
push esi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4eceb0]
push 0
call fcn.004a2730
mov eax, dword [esp + 0x88]
test eax, eax
je 0x454e07
cmp byte [eax], 0
je 0x454e07
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x454d49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e88cc]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x454d2b
mov ecx, dword [0x4eb720]
push 1
push 0
push ebx
push 0x4d9c00
call fcn.004a2730
pop ebx
pop esi
add esp, 0x80
ret 4
push 0x4d5231
push 0
push 0x4d9c00
mov ecx, esi
call fcn.0043e650
pop ebx
pop esi
add esp, 0x80
ret 4
mov eax, dword [0x4e88cc]
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d5290
mov dword [eax + 0x30], 0
call fcn.004a2730
movzx eax, byte [esp + 8]
mov ecx, ebx
and ecx, 1
mov edx, 0x52
cmovne eax, edx
mov byte [esp + 8], al
test bl, 0x20
je 0x454d8c
mov byte [esp + ecx + 8], 0x41
inc ecx
test bl, 4
je 0x454d97
mov byte [esp + ecx + 8], 0x53
inc ecx
test bl, 2
je 0x454da2
mov byte [esp + ecx + 8], 0x48
inc ecx
test bl, bl
jns 0x454dac
mov byte [esp + ecx + 8], 0x4e
inc ecx
test bl, 0x10
je 0x454db7
mov byte [esp + ecx + 8], 0x44
inc ecx
test ebx, 0x1000
je 0x454dc5
mov byte [esp + ecx + 8], 0x4f
inc ecx
test ebx, 0x800
je 0x454dd3
mov byte [esp + ecx + 8], 0x43
inc ecx
test ebx, 0x100
je 0x454de1
mov byte [esp + ecx + 8], 0x54
inc ecx
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x14]
mov byte [esp + ecx + 0x14], 0
mov ecx, dword [0x4eceb0]
push eax
call fcn.004a2730
pop ebx
pop esi
add esp, 0x80
ret 4
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x454e3c
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9c00
call fcn.004a2730
pop esi
add esp, 0x80
ret 4
push 0x4d5231
push 0
push 0x4d9c00
mov ecx, esi
call fcn.0043e650
pop esi
add esp, 0x80
ret 4
Function at 0x454e60
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov bl, byte [esi]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], edi
test bl, bl
je 0x454f52
movzx eax, bl
test eax, 0xffffff80
je 0x454ea3
xor eax, eax
jmp 0x454eb2
push 2
push eax
call fcn.004b8e5e
mov edi, dword [esp + 0x24]
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
movsx eax, dl
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x454ed4.44
movzx eax, byte [eax + 0x454f9c]
jmp dword [eax*4 + 0x454f78]
movsx eax, byte [esi]
mov dword [esp + 0x10], eax
jmp case.0x454ed4.44
mov ecx, 1
jmp 0x454f13
mov ecx, 0x20
jmp 0x454f13
mov ecx, 4
jmp 0x454f13
mov ecx, 2
jmp 0x454f13
mov ecx, 0x80
jmp 0x454f13
mov ecx, 0x1000
jmp 0x454f13
mov ecx, 0x100
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x454f34
sub eax, 2
je 0x454f2a
sub eax, 0x31
jne case.0x454ed4.44
xor edi, ecx
jmp 0x454f3e
not ecx
and dword [esp + 0x18], ecx
and edi, ecx
jmp 0x454f3e
mov eax, ecx
not eax
and dword [esp + 0x18], eax
or edi, ecx
mov dword [esp + 0x1c], edi
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x454e95
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x454fd0
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00455010
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x455820
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
push ebx
push esi
push edi
push 1
push 0
mov esi, ecx
mov ecx, dword [0x4eceb0]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.004a2730
mov edi, dword [ebp + 8]
test edi, edi
je 0x4559db
cmp byte [edi], 0
je 0x4559db
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4558a0
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x45589c
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
jmp 0x4558e5
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x4558cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e88cc]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jmp 0x4559ee
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x3c]
xor edi, edi
or edi, dword [esp + 0x40]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0xc]
mov bl, byte [eax]
movzx eax, bl
test eax, 0xffffff80
je 0x4558f8
xor eax, eax
jmp 0x45590b
push 2
push eax
call fcn.004b8e5e
mov esi, dword [esp + 0x1c]
add esp, 8
mov edi, dword [esp + 0x10]
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
movsx eax, dl
sub eax, 0x4b
je 0x455930
sub eax, 2
jne 0x455946
push eax
push 0x100000
jmp 0x455937
push 0
push 0x400
push esi
push edi
call fcn.004cd2f0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4e88cc]
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d5290
mov dword [eax + 0x30], 0
call fcn.004a2730
mov esi, dword [0x4eceb0]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp byte [esi + 0x17], 0
jne 0x45597f
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x455996
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x9b
mov dword [esi], edi
or al, 0x18
mov dword [esi + 4], ebx
mov byte [esi + 0x15], al
jge 0x4559bd
mov ecx, esi
call fcn.004013b0
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4eb748], 0
je 0x4559cd
mov ecx, esi
call fcn.004013b0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e88cc]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x455a0f
mov ecx, dword [0x4eb720]
push 1
push 0
push 0xffffffffffffffff
push 0x4d9c00
call fcn.004a2730
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4d5231
push 0
push 0x4d9c00
mov ecx, esi
call fcn.0043e650
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x457640
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x118]
mov bl, byte [esi + 2]
movzx eax, bl
test eax, 0xffffff80
je 0x457660
xor eax, eax
jmp 0x45766b
push 2
push eax
call fcn.004b8e5e
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
movsx eax, dl
add eax, 0xffffffbf
cmp eax, 0x12
ja case.0x457691.66
movzx eax, byte [eax + 0x4577dc]
jmp dword [eax*4 + 0x4577c8]
mov bl, byte [esi + 9]
movzx eax, bl
test eax, 0xffffff80
je 0x4576a9
xor eax, eax
jmp 0x4576b4
push 2
push eax
call fcn.004b8e5e
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dl, 0x53
jne 0x4576df
cmp byte [esi + 0xa], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x45776a
mov eax, 0x26
jmp 0x45776a
cmp byte [esi + 9], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x45776a
cmp byte [esi + 9], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x45776a
mov bl, byte [esi + 7]
movzx eax, bl
test eax, 0xffffff80
je 0x457720
xor eax, eax
jmp 0x45772b
push 2
push eax
call fcn.004b8e5e
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dl, 0x4d
jne 0x457753
cmp byte [esi + 0xb], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x45776a
cmp byte [esi + 9], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x45776a
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movzx ecx, byte [esp + 0xc]
xor edx, edx
test eax, eax
pop esi
cmovne ecx, edx
mov edx, dword [esp + 0x110]
mov byte [esp + 8], cl
pop ebx
test edx, edx
je 0x4577ae
lea ecx, [esp + 4]
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x4577a1
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4577b5
sub eax, edx
add esp, 0x108
ret