joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4449f0
Capabilities:
Get common file path
Set current directory

Disassembly:
sub esp, 0x10c
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
push edi
call ebx
test eax, eax
jne 0x444a1d
cmp byte [0x4bddd8], al
je 0x444ac4
call fcn.0040a370
pop ebx
add esp, 0x10c
ret
cmp byte [0x4bddd8], 0
push ebp
push esi
mov esi, 0x4bbf78
jne 0x444a31
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x444a8c
cmp byte [edi], 0
je 0x444aa2
cmp byte [edi + 1], 0x3a
jne 0x444aa2
cmp byte [edi + 2], 0
jne 0x444aa2
push esi
push edi
call fcn.00491a51
add esp, 8
test eax, eax
je 0x444aa2
push edi
lea eax, [esp + 0x10]
push 0x4aea68
push eax
call fcn.00491f88
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x444aa2
push esi
push 0x104
call ebp
test eax, eax
jne 0x444aa2
push 0x103
push edi
push esi
call fcn.004954d0
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4bddd8], 0
pop esi
pop ebp
je 0x444ac4
mov edx, dword [0x4bbf74]
push 1
push 0
push 0xffffffffffffffff
push 0x4a6904
push edx
call fcn.00481890
pop ebx
add esp, 0x10c
ret
Function at 0x4450c0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x124]
mov ebp, ecx
test edi, edi
je 0x445242
cmp byte [edi], 0
je 0x445242
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x44511b
mov ecx, dword [0x4b7468]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.00432c30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0x5c
push edi
call fcn.00493de2
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x445209
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x445135
sub eax, edx
cmp eax, 0x104
jb 0x445183
mov eax, dword [0x4b7468]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0xe4], cl
jne 0x44517c
mov eax, dword [0x4bbf74]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7fd8
push eax
call fcn.00481890
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, ebp
jmp 0x44525b
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.004954d0
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x1c], 0
call fcn.004450c0
cmp byte [ebx + 1], 0
je 0x4451f7
mov esi, dword [0x4bbf74]
cmp byte [esi + 0x17], 0
jne 0x4451bc
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x4451c9
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4451e2
test byte [esi + 0x15], 4
je 0x4451dd
mov eax, esi
call fcn.00433620
mov eax, dword [esi + 8]
jmp 0x4451f2
cmp al, 2
jne 0x4451ed
call fcn.00401000
jmp 0x4451f2
mov eax, 0x4bd07e
cmp byte [eax], 0x31
jne 0x445209
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
sete al
mov byte [esp + 0x14], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x14]
mov ecx, dword [0x4b7468]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.00432c30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, dword [0x4b7468]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
je 0x445159
push 0x4a6869
push 0
push 0x4a7fd8
call fcn.00432b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x445f60
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
test edi, edi
je 0x445fe5
cmp byte [edi + 0x17], 0
jne 0x445f7a
mov esi, dword [edi + 0xc]
jmp 0x445f7c
mov esi, edi
mov bl, 8
test byte [esi + 0x15], bl
je 0x445f8a
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x445fa3
test byte [esi + 0x15], 4
je 0x445f9e
mov eax, esi
call fcn.00433620
mov eax, dword [esi + 8]
jmp 0x445fb3
cmp al, 2
jne 0x445fae
call fcn.00401000
jmp 0x445fb3
mov eax, 0x4bd07e
cmp byte [edi + 0x17], 0
mov ebp, eax
jne 0x445fc0
mov esi, dword [edi + 0xc]
jmp 0x445fc2
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x445fdc
test byte [esi + 0x15], bl
je 0x445fd4
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x446018
mov esi, 0x4bdf44
mov ebx, dword [esi]
jmp 0x446018
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
call fcn.00481320
add esp, 0xc
test eax, eax
jne 0x446010
mov edx, dword [0x4b7468]
mov dword [edx + 0x30], eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
mov ebp, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov eax, dword [esp + 0x20]
xor edi, edi
push edi
push edi
push 2
push edi
push edi
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x446059
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x44604e
push edi
lea ecx, [esp + 0x24]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
xor edx, edx
cmp dword [esp + 0x20], ebx
sete dl
mov edi, edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7468]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x446074
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
jne 0x446084
push ebp
call fcn.00491a68
add esp, 4
mov ecx, dword [esp + 0x1c]
test edi, edi
sete dl
movzx eax, dl
push eax
push ecx
call fcn.00432c30
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc
Function at 0x446360
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0x110
push ebx
push ebp
push esi
push edi
mov edi, eax
mov esi, ecx
mov ebx, edx
call fcn.0040dbe0
test al, al
je 0x446388
push 0x10
push 0
push edi
call fcn.004933d7
add esp, 0xc
jmp 0x446391
push edi
call fcn.00493086
add esp, 4
cmp eax, 1
je 0x4463f6
call fcn.0045a9a0
test al, al
je 0x4463f6
mov eax, dword [0x4b7468]
cmp byte [eax + 0xe4], 0
jne 0x4463d1
mov ecx, dword [0x4bbf74]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7fd8
push ecx
call fcn.00481890
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x4a6869
push 0
push 0x4a7fd8
call fcn.00432b40
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x446444
mov edx, dword [0x4b7468]
cmp byte [edx + 0xe4], 0
jne 0x4463d1
push 1
push 0
push eax
mov eax, dword [0x4bbf74]
push 0x4a7fd8
push eax
call fcn.00481890
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x446450
sub eax, edx
cmp eax, 0x104
jb 0x446465
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0049b8f0
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.0049491f
add esp, 4
push 0xa
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov ebx, eax
test ebx, ebx
je 0x44651f
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x44651f
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x44651f
cmp dword [esi], 0x4034b50
jne 0x4464ff
lea ecx, [esp + 0x14]
push ecx
mov eax, 0x4b747c
mov ecx, esi
call fcn.00480c70
mov edi, eax
add esp, 4
test edi, edi
je 0x4464ff
push 0
lea edx, [esp + 0x14]
push edx
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push 0x8000
test eax, eax
mov eax, dword [esp + 0x18]
push edi
push eax
setne bl
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x446521
push 0
lea ecx, [esp + 0x14]
push ecx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x446521
xor bl, bl
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x124]
test bl, bl
sete dl
movzx eax, dl
push eax
push ecx
call fcn.00432c30
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x446550
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4bb6f8]
sub esp, 0x80
push esi
mov esi, eax
call fcn.00417010
test esi, esi
je 0x446605
cmp byte [esi], 0
je 0x446605
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4465bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7468]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x446639
mov eax, dword [0x4bbf74]
push 1
push 0
push esi
push 0x4a7fd8
push eax
call fcn.00481890
pop esi
add esp, 0x80
ret
mov edx, dword [0x4bbf74]
mov ecx, dword [0x4b7468]
push 1
push 0
push 0xffffffffffffffff
push 0x4a6904
push edx
mov dword [ecx + 0x30], 0
call fcn.00481890
mov edx, esi
lea eax, [esp + 4]
call fcn.0047ec10
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4bb6f8]
push eax
call fcn.00481890
pop esi
add esp, 0x80
ret
mov eax, dword [0x4b7468]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x446639
mov ecx, dword [0x4bbf74]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7fd8
push ecx
call fcn.00481890
pop esi
add esp, 0x80
ret
push 0x4a6869
push 0
push 0x4a7fd8
mov ecx, edi
call fcn.00432b40
pop esi
add esp, 0x80
ret
Function at 0x4474c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4bb6f8]
sub esp, 0x148
push ebx
push esi
call fcn.00417010
test edi, edi
je 0x447632
cmp byte [edi], 0
je 0x447632
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x44751e
lea eax, [esp + 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x447522
mov ebx, dword [esp + 8]
test ebx, ebx
jne 0x44758f
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x447570
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7468]
mov dword [ecx + 0x30], eax
cmp byte [ecx + 0xe4], bl
jne 0x447666
mov edx, dword [0x4bbf74]
push 1
push ebx
push 0xffffffffffffffff
push 0x4a7fd8
push edx
call fcn.00481890
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x2c]
xor ecx, ecx
or ecx, dword [esp + 0x30]
xor esi, esi
or eax, esi
mov dword [esp + 8], ecx
mov dword [esp + 0xc], eax
jmp 0x447597
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x4475bf
push 2
push esi
call fcn.0049303e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x4475bf
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x4475d6
sub edx, 2
jne 0x4475ec
push edx
push 0x100000
jmp 0x4475dd
push 0
push 0x400
push eax
push ecx
call fcn.004a1260
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4bbf74]
mov eax, dword [0x4b7468]
push 1
push 0
push 0xffffffffffffffff
push 0x4a6904
push ecx
mov dword [eax + 0x30], 0
call fcn.00481890
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4bb6f8]
call fcn.004010d0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4b7468]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x447666
mov ecx, dword [0x4bbf74]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7fd8
push ecx
call fcn.00481890
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x4a6869
push 0
push 0x4a7fd8
call fcn.00432b40
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x448db0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push esi
push edi
mov edi, dword [esp + 0x118]
movzx esi, byte [edi + 2]
test esi, 0xffffff80
jne 0x448ddd
push 2
push esi
call fcn.0049303e
add esp, 8
test eax, eax
je 0x448ddd
and esi, 0xffffffdf
mov eax, esi
movsx eax, al
add eax, 0xffffffbf
cmp eax, 0x12
ja case.0x448df5.66
movzx eax, byte [eax + 0x448f08]
jmp dword [eax*4 + 0x448ef4]
movzx esi, byte [edi + 9]
test esi, 0xffffff80
jne 0x448e1a
push 2
push esi
call fcn.0049303e
add esp, 8
test eax, eax
je 0x448e1a
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x53
jne 0x448e30
movsx eax, byte [edi + 0xa]
neg eax
sbb eax, eax
and eax, 0x15
add eax, 2
jmp 0x448e9f
mov eax, 0x26
jmp 0x448e9f
movsx eax, byte [edi + 9]
neg eax
sbb eax, eax
and eax, 9
add eax, 0x1a
jmp 0x448e9f
movsx eax, byte [edi + 9]
neg eax
sbb eax, eax
and eax, 9
add eax, 0x10
jmp 0x448e9f
movzx esi, byte [edi + 7]
test esi, 0xffffff80
jne 0x448e75
push 2
push esi
call fcn.0049303e
add esp, 8
test eax, eax
je 0x448e75
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x4d
jne 0x448e8b
movsx eax, byte [edi + 0xb]
neg eax
sbb eax, eax
and eax, 0xb
add eax, 0xb
jmp 0x448e9f
movsx eax, byte [edi + 9]
neg eax
sbb eax, eax
and eax, 0x11
add eax, 7
jmp 0x448e9f
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]
pop edi
pop esi
test eax, eax
je 0x448ebc
mov byte [esp + 4], 0
mov edx, dword [esp + 0x10c]
test edx, edx
je 0x448eda
lea eax, [esp + 4]
mov ecx, eax
sub edx, ecx
nop
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x448ed0
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x448ee1
sub eax, edx
add esp, 0x108
ret

Function at 0x4561b0
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x4561b7
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x4561df
dec eax
je 0x4561d1
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetKeyState]
and eax, 1
ret
lea edx, [ebx - 1]
cmp dl, 5
ja 0x4561ec
cmp bl, 3
jne 0x4561f3
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x456219
cmp dword [0x4bb8a4], 0
je 0x456209
movzx ecx, bl
mov al, byte [ecx + 0x4bb790]
shr al, 7
ret
movzx edx, bl
push edx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
cmp dword [0x4bb8a0], 0
je 0x456248
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00412700
test al, al
je 0x45623b
push 1
call fcn.00412530
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4bb790]
shr al, 7
ret
movzx ecx, bl
push ecx
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
ret
Function at 0x456790
Capabilities:
Get disk information

Disassembly:
sub esp, 0x108
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_OpenProcess]
push ebp
push esi
push edi
mov esi, ecx
push esi
push 0
mov edi, eax
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4567d1
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x4567d1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x11c], 0
push 0x104
push edi
push 0
push ebp
je 0x4567ec
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x4567f2
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4be7c4], 1
mov ebx, eax
jne 0x456822
or dword [0x4be7c4], 1
push str.GetProcessImageFileNameA
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4be7c0], eax
jmp 0x456827
mov eax, dword [0x4be7c0]
test ebx, ebx
jne 0x456924
test eax, eax
je 0x456924
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x456924
cmp byte [esp + 0x11c], 0
je 0x456899
push 0x5c
push edi
call fcn.00493de2
add esp, 8
test eax, eax
je 0x456924
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x456870
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.004926e0
add esp, 0xc
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov word [esp + 0x11], 0x3a
mov byte [esp + 0x10], 0x41
push 0x104
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x4568dd
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.0049401f
add esp, 0xc
test eax, eax
jne 0x4568dd
cmp byte [esi + edi], 0x5c
je 0x4568ff
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x4568a5
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
mov al, byte [esp + 0x10]
mov cl, byte [esp + 0x11]
sub ebx, esi
lea edx, [ebx + 1]
push edx
add esi, edi
mov byte [edi], al
mov byte [edi + 1], cl
push esi
add edi, 2
push edi
call fcn.004926e0
add esp, 0xc
add ebx, 2
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
Function at 0x459b60
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x459c14
cmp byte [eax], bl
je 0x459c14
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x2c]
push edx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x459b96
sub eax, edx
cmp eax, ebx
je 0x459bb0
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x459bb0
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x459bb7
sub eax, edx
mov byte [esp + eax + 0x29], bl
lea edx, [esp + 4]
lea eax, [esp + 0x28]
mov ecx, 0x4054
push edx
mov dword [esp + 0x1e], ebx
mov dword [esp + 0x22], ebx
mov dword [esp + 0x1a], ebx
mov dword [esp + 8], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 3
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
setne al
movzx ecx, al
push ecx
push esi
call fcn.00432c30
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4b7468]
cmp byte [edx + 0xe4], bl
jne 0x459c3f
mov eax, dword [0x4bbf74]
push 1
push ebx
push 0xffffffffffffffff
push 0x4a7fd8
push eax
call fcn.00481890
pop ebx
add esp, 0x12c
ret
push 0x4a6869
push ebx
push 0x4a7fd8
mov ecx, esi
call fcn.00432b40
pop ebx
add esp, 0x12c
ret
Function at 0x459d10
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4bb6f8]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.00417010
test edi, edi
je 0x459e88
cmp byte [edi], 0
je 0x459e88
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x459da9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7468]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x459d8a
mov ecx, dword [0x4bbf74]
push 1
push esi
push 0xffffffffffffffff
push 0x4a7fd8
push ecx
call fcn.00481890
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x4a6869
push 0
push 0x4a7fd8
mov ecx, ebp
call fcn.00432b40
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.00491c09
add esp, 4
mov ebx, eax
push ebx
push esi
push 0
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x459e5d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x4ad050
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x459e5d
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
mov ecx, dword [ecx + 0xc]
movzx edx, cx
push edx
shr ecx, 0x10
push ecx
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
push str._u._u._u._u
mov esi, 0x80
lea edi, [esp + 0x30]
call fcn.0047dd10
push ebx
call fcn.00491a68
mov eax, dword [0x4bbf74]
mov edx, dword [0x4b7468]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x4a6904
push eax
mov dword [edx + 0x30], 0
call fcn.00481890
mov edx, dword [0x4bb6f8]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00481890
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4b7468]
push ebx
mov dword [ecx + 0x30], eax
call fcn.00491a68
add esp, 4
push ebp
call fcn.00435390
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4b7468]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x459ebf
mov edx, dword [0x4bbf74]
push 1
push 0
push 0xffffffffffffffff
push 0x4a7fd8
push edx
call fcn.00481890
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x4a6869
push 0
push 0x4a7fd8
mov ecx, ebp
call fcn.00432b40
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x459ee0
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
sub esp, 0x234
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459f06
sub eax, edx
je 0x459f1e
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x459f1e
mov byte [eax], cl
mov edx, dword [esp + 0x23c]
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x134]
push ecx
push 0x104
push edx
call esi
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459f44
sub eax, edx
je 0x459f62
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x459f62
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x459f95
test al, 0x10
je 0x459f95
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x459f9f
test al, 0x10
je 0x459f9f
cmp byte [esp + 0x240], 0
jne 0x459fbb
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
call fcn.0045a900
add esp, 4
test al, al
jne 0x459fbb
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x459fc0
mov ecx, dword [str..]
mov dl, byte [0x4af210]
mov dword [eax], ecx
mov byte [eax + 4], dl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459fe0
sub eax, edx
mov byte [esp + eax + 0x29], cl
lea eax, [esp + 0x130]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x459ff7
sub eax, edx
mov byte [esp + eax + 0x131], cl
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov word [esp + 0x24], ax
lea eax, [esp + 0x28]
mov dword [esp + 0x10], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x130]
mov edx, 0x614
push eax
mov dword [esp + 0xc], 0
mov dword [esp + 0x18], ecx
mov dword [esp + 0x10], 2
mov word [esp + 0x1c], dx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x234
ret