joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43ec90
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 0x43ecbd
cmp byte [0x4ac894], al
je 0x43ed64
call fcn.00409540
pop ebx
add esp, 0x10c
ret
cmp byte [0x4ac894], 0
push ebp
push esi
mov esi, 0x4aaa30
jne 0x43ecd1
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43ed2c
cmp byte [edi], 0
je 0x43ed42
cmp byte [edi + 1], 0x3a
jne 0x43ed42
cmp byte [edi + 2], 0
jne 0x43ed42
push esi
push edi
call fcn.00484de1
add esp, 8
test eax, eax
je 0x43ed42
push edi
lea eax, [esp + 0x10]
push 0x49dea8
push eax
call fcn.00485318
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43ed42
push esi
push 0x104
call ebp
test eax, eax
jne 0x43ed42
push 0x103
push edi
push esi
call fcn.00487d80
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4ac894], 0
pop esi
pop ebp
je 0x43ed64
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x4988ac
push edx
call fcn.00474cc0
pop ebx
add esp, 0x10c
ret
Function at 0x43f330
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 0x43f4b2
cmp byte [edi], 0
je 0x43f4b2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43f38b
mov ecx, dword [0x4a6918]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042d2d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0x5c
push edi
call fcn.00486fda
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43f479
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43f3a5
sub eax, edx
cmp eax, 0x104
jb 0x43f3f3
mov eax, dword [0x4a6918]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0xe8], cl
jne 0x43f3ec
mov eax, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f90
push eax
call fcn.00474cc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, ebp
jmp 0x43f4cb
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00487d80
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x1c], 0
call fcn.0043f330
cmp byte [ebx + 1], 0
je 0x43f467
mov esi, dword [0x4aaa2c]
cmp byte [esi + 0x17], 0
jne 0x43f42c
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43f439
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43f452
test byte [esi + 0x15], 4
je 0x43f44d
mov eax, esi
call fcn.0042dcd0
mov eax, dword [esi + 8]
jmp 0x43f462
cmp al, 2
jne 0x43f45d
call fcn.00401000
jmp 0x43f462
mov eax, 0x4abb35
cmp byte [eax], 0x31
jne 0x43f479
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 [0x4a6918]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.0042d2d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, dword [0x4a6918]
cmp byte [eax + 0xe8], 0
mov dword [eax + 0x30], 0x57
je 0x43f3c9
push 0x498861
push 0
push 0x499f90
call fcn.0042d1e0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x440180
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 0x440205
cmp byte [edi + 0x17], 0
jne 0x44019a
mov esi, dword [edi + 0xc]
jmp 0x44019c
mov esi, edi
mov bl, 8
test byte [esi + 0x15], bl
je 0x4401aa
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x4401c3
test byte [esi + 0x15], 4
je 0x4401be
mov eax, esi
call fcn.0042dcd0
mov eax, dword [esi + 8]
jmp 0x4401d3
cmp al, 2
jne 0x4401ce
call fcn.00401000
jmp 0x4401d3
mov eax, 0x4abb35
cmp byte [edi + 0x17], 0
mov ebp, eax
jne 0x4401e0
mov esi, dword [edi + 0xc]
jmp 0x4401e2
mov esi, edi
cmp byte [esi + 0x17], 1
jne 0x4401fc
test byte [esi + 0x15], bl
je 0x4401f4
mov eax, esi
call fcn.00401150
mov ebx, dword [esi + 0xc]
add esi, 0xc
jmp 0x440238
mov esi, 0x4acaa0
mov ebx, dword [esi]
jmp 0x440238
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
push ecx
push 0
call fcn.00474750
add esp, 0xc
test eax, eax
jne 0x440230
mov edx, dword [0x4a6918]
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 0x440279
mov dword [esp + 0x20], edi
test ebp, ebp
je 0x44026e
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 [0x4a6918]
mov dword [ecx + 0x30], eax
cmp esi, 0xffffffff
je 0x440294
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x24], 0
jne 0x4402a4
push ebp
call fcn.00484df8
add esp, 4
mov ecx, dword [esp + 0x1c]
test edi, edi
sete dl
movzx eax, dl
push eax
push ecx
call fcn.0042d2d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 0xc

Function at 0x4402e0
Capabilities:
Delete file

Disassembly:
sub esp, 8
push esi
mov esi, edi
test edi, edi
je 0x44030b
mov dl, byte [edi]
test dl, dl
je 0x440347
mov ecx, 0x49df54
mov al, 0x3f
cmp dl, al
je 0x440347
mov al, byte [ecx + 1]
inc ecx
test al, al
jne 0x4402f7
mov dl, byte [esi + 1]
inc esi
test dl, dl
jne 0x4402f0
cmp byte [edi], 0
je 0x440347
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
sete al
mov byte [esp + 8], al
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 8]
mov ecx, dword [0x4a6918]
push edx
push ebx
mov dword [ecx + 0x30], eax
call fcn.0042d2d0
pop esi
add esp, 8
ret
push 0
push 0
push 0x4402d0
push 0
push 1
push edi
mov ecx, ebx
call fcn.004407c0
mov ecx, dword [0x4a6918]
xor eax, eax
cmp dword [ecx + 0xe0], eax
pop esi
sete al
add esp, 8
ret
Function at 0x440380
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.0040ce10
test al, al
je 0x4403a8
push 0x10
push 0
push edi
call fcn.00486764
add esp, 0xc
jmp 0x4403b1
push edi
call fcn.00486366
add esp, 4
cmp eax, 1
je 0x440416
call fcn.00451c10
test al, al
je 0x440416
mov eax, dword [0x4a6918]
cmp byte [eax + 0xe8], 0
jne 0x4403f1
mov ecx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f90
push ecx
call fcn.00474cc0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x498861
push 0
push 0x499f90
call fcn.0042d1e0
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 0x440464
mov edx, dword [0x4a6918]
cmp byte [edx + 0xe8], 0
jne 0x4403f1
push 1
push 0
push eax
mov eax, dword [0x4aaa2c]
push 0x499f90
push eax
call fcn.00474cc0
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 0x440470
sub eax, edx
cmp eax, 0x104
jb 0x440485
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.0048d6e0
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.0048773e
add esp, 4
push 0xa
lea eax, [esp + 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
je 0x4404f1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4404f1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4404f1
push 0
lea ecx, [esp + 0x18]
push ecx
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push eax
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne bl
jmp 0x4404f3
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.0042d2d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x440520
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4aa178]
sub esp, 0x80
push esi
mov esi, eax
call fcn.00412c90
test esi, esi
je 0x4405d5
cmp byte [esi], 0
je 0x4405d5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44058c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a6918]
cmp byte [ecx + 0xe8], 0
mov dword [ecx + 0x30], eax
jne 0x440609
mov eax, dword [0x4aaa2c]
push 1
push 0
push esi
push 0x499f90
push eax
call fcn.00474cc0
pop esi
add esp, 0x80
ret
mov edx, dword [0x4aaa2c]
mov ecx, dword [0x4a6918]
push 1
push 0
push 0xffffffffffffffff
push 0x4988ac
push edx
mov dword [ecx + 0x30], 0
call fcn.00474cc0
mov edx, esi
lea eax, [esp + 4]
call fcn.00472ef0
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4aa178]
push eax
call fcn.00474cc0
pop esi
add esp, 0x80
ret
mov eax, dword [0x4a6918]
cmp byte [eax + 0xe8], 0
mov dword [eax + 0x30], 0x57
jne 0x440609
mov ecx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f90
push ecx
call fcn.00474cc0
pop esi
add esp, 0x80
ret
push 0x498861
push 0
push 0x499f90
mov ecx, edi
call fcn.0042d1e0
pop esi
add esp, 0x80
ret
Function at 0x440f40
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov ecx, dword [0x4aa178]
sub esp, 0x148
push ebx
push esi
call fcn.00412c90
test edi, edi
je 0x4410ae
cmp byte [edi], 0
je 0x4410ae
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 0x440fa0
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]
test ebx, ebx
jne 0x44100b
lea ecx, [esp + 0x10]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x440fec
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a6918]
cmp byte [ecx + 0xe8], 0
mov dword [ecx + 0x30], eax
jne 0x4410e2
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f90
push edx
call fcn.00474cc0
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 0x441013
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
mov edx, dword [ebp + 0xc]
movzx esi, byte [edx]
test esi, 0xffffff80
jne 0x44103b
push 2
push esi
call fcn.0048631e
mov ecx, dword [esp + 0x10]
add esp, 8
test eax, eax
mov eax, dword [esp + 0xc]
je 0x44103b
and esi, 0xffffffdf
mov edx, esi
movsx edx, dl
sub edx, 0x4b
je 0x441052
sub edx, 2
jne 0x441068
push edx
push 0x100000
jmp 0x441059
push 0
push 0x400
push eax
push ecx
call fcn.00493850
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov ecx, dword [0x4aaa2c]
mov eax, dword [0x4a6918]
push 1
push 0
push 0xffffffffffffffff
push 0x4988ac
push ecx
mov dword [eax + 0x30], 0
call fcn.00474cc0
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
push 0x18
push edx
push eax
mov eax, dword [0x4aa178]
call fcn.004010d0
mov eax, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4a6918]
cmp byte [eax + 0xe8], 0
mov dword [eax + 0x30], 0x57
jne 0x4410e2
mov ecx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f90
push ecx
call fcn.00474cc0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x498861
push 0
push 0x499f90
call fcn.0042d1e0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x44d540
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44d547
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44d56f
dec eax
je 0x44d561
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 0x44d57c
cmp bl, 3
jne 0x44d583
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44d5a9
cmp dword [0x4aa364], 0
je 0x44d599
movzx ecx, bl
mov al, byte [ecx + 0x4aa250]
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 [0x4aa360], 0
je 0x44d5d8
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411670
test al, al
je 0x44d5cb
push 1
call fcn.004114a0
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4aa250]
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 0x44db20
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 0x44db61
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44db61
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 0x44db7c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44db82
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4ad370], 1
mov ebx, eax
jne 0x44dbb2
or dword [0x4ad370], 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 [0x4ad36c], eax
jmp 0x44dbb7
mov eax, dword [0x4ad36c]
test ebx, ebx
jne 0x44dcb4
test eax, eax
je 0x44dcb4
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44dcb4
cmp byte [esp + 0x11c], 0
je 0x44dc29
push 0x5c
push edi
call fcn.00486fda
add esp, 8
test eax, eax
je 0x44dcb4
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44dc00
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.004859c0
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 0x44dc6d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.00486f16
add esp, 0xc
test eax, eax
jne 0x44dc6d
cmp byte [esi + edi], 0x5c
je 0x44dc8f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44dc35
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.004859c0
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 0x450e90
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x450f44
cmp byte [eax], bl
je 0x450f44
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 0x450ec6
sub eax, edx
cmp eax, ebx
je 0x450ee0
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x450ee0
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x450ee7
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.0042d2d0
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4a6918]
cmp byte [edx + 0xe8], bl
jne 0x450f6f
mov eax, dword [0x4aaa2c]
push 1
push ebx
push 0xffffffffffffffff
push 0x499f90
push eax
call fcn.00474cc0
pop ebx
add esp, 0x12c
ret
push 0x498861
push ebx
push 0x499f90
mov ecx, esi
call fcn.0042d1e0
pop ebx
add esp, 0x12c
ret
Function at 0x450f90
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4aa178]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.00412c90
test edi, edi
je 0x451108
cmp byte [edi], 0
je 0x451108
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x451029
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a6918]
cmp byte [ecx + 0xe8], 0
mov dword [ecx + 0x30], eax
jne 0x45100a
mov ecx, dword [0x4aaa2c]
push 1
push esi
push 0xffffffffffffffff
push 0x499f90
push ecx
call fcn.00474cc0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x498861
push 0
push 0x499f90
mov ecx, ebp
call fcn.0042d1e0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.00484f99
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 0x4510dd
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x49aac0
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x4510dd
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.00471fa0
push ebx
call fcn.00484df8
mov eax, dword [0x4aaa2c]
mov edx, dword [0x4a6918]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x4988ac
push eax
mov dword [edx + 0x30], 0
call fcn.00474cc0
mov edx, dword [0x4aa178]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.00474cc0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a6918]
push ebx
mov dword [ecx + 0x30], eax
call fcn.00484df8
add esp, 4
push ebp
call fcn.0042f9b0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4a6918]
cmp byte [eax + 0xe8], 0
mov dword [eax + 0x30], 0x57
jne 0x45113f
mov edx, dword [0x4aaa2c]
push 1
push 0
push 0xffffffffffffffff
push 0x499f90
push edx
call fcn.00474cc0
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x498861
push 0
push 0x499f90
mov ecx, ebp
call fcn.0042d1e0
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x451160
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 0x451186
sub eax, edx
je 0x45119e
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x45119e
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 0x4511c4
sub eax, edx
je 0x4511e2
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x4511e2
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x451215
test al, 0x10
je 0x451215
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x45121f
test al, 0x10
je 0x45121f
cmp byte [esp + 0x240], 0
jne 0x45123b
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
call fcn.00451b70
add esp, 4
test al, al
jne 0x45123b
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x451240
mov ecx, dword [str..]
mov dl, byte [0x49e53c]
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 0x451260
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 0x451277
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
Function at 0x4512f0
Capabilities:
Check if file exists
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 0x451316
sub eax, edx
je 0x45132e
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x45132e
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 0x451354
sub eax, edx
je 0x451372
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x451372
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x4513a5
test al, 0x10
je 0x4513a5
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x4513af
test al, 0x10
je 0x4513a5
cmp edi, 1
je 0x4513af
cmp edi, 2
je 0x4513af
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
lea edx, [esp + 0x2c]
call fcn.00451c80
add esp, 4
test al, al
je 0x4513f7
lea eax, [esp + 0x130]
push 1
push eax
lea edx, [esp + 0x30]
call fcn.00451160
add esp, 8
test al, al
je 0x4513a5
push 1
lea edx, [esp + 0x2c]
call fcn.004514a0
add esp, 4
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x451400
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 0x451417
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 ecx, [esp + 0x28]
lea edx, [esp + 0x130]
mov eax, 0x614
mov dword [esp + 8], 0
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], edx
mov dword [esp + 0xc], 1
mov word [esp + 0x18], ax
cmp edi, 2
jne 0x451482
mov ecx, 0x615
mov word [esp + 0x18], cx
lea edx, [esp + 8]
push edx
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
neg eax
sbb eax, eax
inc eax
pop esi
add esp, 0x234
ret