joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43c0b0
Capabilities:
Get keyboard layout
Log keystrokes via polling

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [0x4a6c10]
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [edi]
test cl, cl
je 0x43c19e
cmp byte [edi + 1], 0
jne 0x43c11a
mov byte [esp + 0x14], cl
cmp cl, 0xa
jne 0x43c0ea
mov al, 0xd
jmp 0x43c18f
push eax
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.USER32.dll_VkKeyScanExA]
movzx ecx, ax
mov eax, ecx
shr eax, 8
cmp al, 0xff
jne 0x43c10e
cmp cl, 0xff
jne 0x43c10e
xor al, al
jmp 0x43c18f
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43c18f
movzx esi, cl
test esi, 0xffffff80
jne 0x43c137
push 2
push esi
call fcn.00482bfe
add esp, 8
test eax, eax
je 0x43c137
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x43c15b
mov al, byte [edi + 1]
call fcn.00408ef0
cmp al, 0x4b
jne 0x43c15b
push 0x10
lea eax, [edi + 2]
push 0
push eax
call fcn.00483044
add esp, 0xc
jmp 0x43c18f
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*8 + 0x4a4160]
push edi
push eax
call fcn.004816e1
add esp, 8
test eax, eax
je 0x43c1d1
inc esi
cmp esi, 0x6d
jl 0x43c160
mov eax, edi
call fcn.004116f0
movzx ecx, ax
test cx, cx
je 0x43c19e
call fcn.00411e50
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], 0
jne 0x43c21b
push 0
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0044c350
mov edi, eax
add esp, 4
test edi, edi
jne 0x43c1de
push 1
push eax
push 0xffffffffffffffff
push 0x4957f9
push ebp
call fcn.004716d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
mov cl, byte [esi*8 + 0x4a4164]
mov byte [esp + 0x13], cl
jmp 0x43c193
mov eax, dword [esp + 0x14]
push 0
lea edx, [esp + 0x2c]
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x28], 0
mov dword [esp + 0x20], edx
call fcn.0044c5f0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov edi, ebp
call fcn.004710d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
mov ecx, dword [esp + 0x12c]
movzx ebx, byte [ecx]
test ebx, 0xffffff80
jne 0x43c23f
push 2
push ebx
call fcn.00482bfe
add esp, 8
test eax, eax
je 0x43c23f
and bl, 0xdf
cmp bl, 0x50
je 0x43c252
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43c257
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044c540
add esp, 4
test al, al
mov eax, 0x49a988
jne 0x43c272
mov eax, 0x49a98c
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.004716d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
Function at 0x43c290
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push esi
mov esi, ecx
mov ecx, dword [0x4a6c10]
push edi
call fcn.00412600
test esi, esi
je 0x43c406
cmp byte [esi], 0
je 0x43c406
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00484520
lea eax, [esp + 0x3c]
add esp, 0xc
mov byte [esp + 0x134], 0
lea edx, [eax + 1]
mov edi, edi
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43c2e0
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
je 0x43c309
lea ecx, [eax + 1]
cmp ecx, 0x105
jae 0x43c406
mov byte [esp + eax + 0x30], 0x5c
mov byte [esp + eax + 0x31], 0
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test byte [0x4a9f08], 1
jne 0x43c33f
or dword [0x4a9f08], 1
push str.GetDiskFreeSpaceExA
push str.kernel32
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x4a9f04], eax
jmp 0x43c344
mov eax, dword [0x4a9f04]
test eax, eax
je 0x43c392
lea edx, [esp + 0x28]
push edx
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x20]
push edx
lea ecx, [esp + 0x3c]
push ecx
call eax
test eax, eax
je 0x43c406
cmp byte [ebp + 0xc], 0
je 0x43c37f
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43c3d4
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43c3d4
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
je 0x43c406
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43c3c3
mov eax, dword [esp + 0x10]
imul eax, dword [esp + 0xc]
imul eax, dword [esp + 8]
shr eax, 0x14
mov esi, eax
xor edi, edi
mov ecx, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x495870
push ecx
call fcn.004716d0
mov eax, dword [0x4a6c10]
push 0x18
push edi
push esi
call fcn.004010d0
mov eax, 1
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov edx, dword [0x4a3440]
cmp byte [edx + 0xe4], 0
jne 0x43c433
mov eax, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x496ed0
push eax
call fcn.004716d0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x4957f9
push 0
push 0x496ed0
call fcn.0042cdb0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43e1f0
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 0x43e21d
cmp byte [0x4a92b8], al
je 0x43e2c4
call fcn.00408fa0
pop ebx
add esp, 0x10c
ret
cmp byte [0x4a92b8], 0
push ebp
push esi
mov esi, 0x4a7478
jne 0x43e231
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43e28c
cmp byte [edi], 0
je 0x43e2a2
cmp byte [edi + 1], 0x3a
jne 0x43e2a2
cmp byte [edi + 2], 0
jne 0x43e2a2
push esi
push edi
call fcn.004816e1
add esp, 8
test eax, eax
je 0x43e2a2
push edi
lea eax, [esp + 0x10]
push 0x49abf8
push eax
call fcn.00481c18
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43e2a2
push esi
push 0x104
call ebp
test eax, eax
jne 0x43e2a2
push 0x103
push edi
push esi
call fcn.00484520
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4a92b8], 0
pop esi
pop ebp
je 0x43e2c4
mov edx, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x495870
push edx
call fcn.004716d0
pop ebx
add esp, 0x10c
ret
Function at 0x43e8c0
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 0x43ea42
cmp byte [edi], 0
je 0x43ea42
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43e91b
mov ecx, dword [0x4a3440]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042cea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0x5c
push edi
call fcn.004835ce
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43ea09
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43e935
sub eax, edx
cmp eax, 0x104
jb 0x43e983
mov eax, dword [0x4a3440]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0xe4], cl
jne 0x43e97c
mov eax, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x496ed0
push eax
call fcn.004716d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, ebp
jmp 0x43ea5b
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00484520
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x1c], 0
call fcn.0043e8c0
cmp byte [ebx + 1], 0
je 0x43e9f7
mov esi, dword [0x4a7474]
cmp byte [esi + 0x17], 0
jne 0x43e9bc
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43e9c9
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43e9e2
test byte [esi + 0x15], 4
je 0x43e9dd
mov eax, esi
call fcn.0042d890
mov eax, dword [esi + 8]
jmp 0x43e9f2
cmp al, 2
jne 0x43e9ed
call fcn.00401000
jmp 0x43e9f2
mov eax, 0x4a857d
cmp byte [eax], 0x31
jne 0x43ea09
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 [0x4a3440]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.0042cea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, dword [0x4a3440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
je 0x43e959
push 0x4957f9
push 0
push 0x496ed0
call fcn.0042cdb0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x440070
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.0040c8e0
test al, al
je 0x440098
push 0x10
push 0
push edi
call fcn.00483044
add esp, 0xc
jmp 0x4400a1
push edi
call fcn.00482c46
add esp, 4
cmp eax, 1
je 0x440106
call fcn.00450c70
test al, al
je 0x440106
mov eax, dword [0x4a3440]
cmp byte [eax + 0xe4], 0
jne 0x4400e1
mov ecx, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x496ed0
push ecx
call fcn.004716d0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x4957f9
push 0
push 0x496ed0
call fcn.0042cdb0
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 0x440154
mov edx, dword [0x4a3440]
cmp byte [edx + 0xe4], 0
jne 0x4400e1
push 1
push 0
push eax
mov eax, dword [0x4a7474]
push 0x496ed0
push eax
call fcn.004716d0
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 0x440160
sub eax, edx
cmp eax, 0x104
jb 0x440175
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00489e50
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.00483edc
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 0x4401e1
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4401e1
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x4401e1
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 0x4401e3
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.0042cea0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x440210
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4a6c10]
sub esp, 0x80
push esi
mov esi, eax
call fcn.00412600
test esi, esi
je 0x4402c5
cmp byte [esi], 0
je 0x4402c5
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x44027c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a3440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x4402f9
mov eax, dword [0x4a7474]
push 1
push 0
push esi
push 0x496ed0
push eax
call fcn.004716d0
pop esi
add esp, 0x80
ret
mov edx, dword [0x4a7474]
mov ecx, dword [0x4a3440]
push 1
push 0
push 0xffffffffffffffff
push 0x495870
push edx
mov dword [ecx + 0x30], 0
call fcn.004716d0
mov edx, esi
lea eax, [esp + 4]
call fcn.0046fac0
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4a6c10]
push eax
call fcn.004716d0
pop esi
add esp, 0x80
ret
mov eax, dword [0x4a3440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x4402f9
mov ecx, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x496ed0
push ecx
call fcn.004716d0
pop esi
add esp, 0x80
ret
push 0x4957f9
push 0
push 0x496ed0
mov ecx, edi
call fcn.0042cdb0
pop esi
add esp, 0x80
ret
Function at 0x44c540
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44c547
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44c56f
dec eax
je 0x44c561
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 0x44c57c
cmp bl, 3
jne 0x44c583
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44c5a9
cmp dword [0x4a6da4], 0
je 0x44c599
movzx ecx, bl
mov al, byte [ecx + 0x4a6c90]
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 [0x4a6da0], 0
je 0x44c5d8
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.004111f0
test al, al
je 0x44c5cb
push 1
call fcn.00411020
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4a6c90]
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 0x44cb20
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 0x44cb61
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44cb61
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 0x44cb7c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44cb82
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4a9d9c], 1
mov ebx, eax
jne 0x44cbb2
or dword [0x4a9d9c], 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 [0x4a9d98], eax
jmp 0x44cbb7
mov eax, dword [0x4a9d98]
test ebx, ebx
jne 0x44ccb4
test eax, eax
je 0x44ccb4
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44ccb4
cmp byte [esp + 0x11c], 0
je 0x44cc29
push 0x5c
push edi
call fcn.004835ce
add esp, 8
test eax, eax
je 0x44ccb4
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44cc00
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.004822a0
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 0x44cc6d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.0048380b
add esp, 0xc
test eax, eax
jne 0x44cc6d
cmp byte [esi + edi], 0x5c
je 0x44cc8f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44cc35
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.004822a0
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 0x44fe40
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x44fef4
cmp byte [eax], bl
je 0x44fef4
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 0x44fe76
sub eax, edx
cmp eax, ebx
je 0x44fe90
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44fe90
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44fe97
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.0042cea0
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x4a3440]
cmp byte [edx + 0xe4], bl
jne 0x44ff1f
mov eax, dword [0x4a7474]
push 1
push ebx
push 0xffffffffffffffff
push 0x496ed0
push eax
call fcn.004716d0
pop ebx
add esp, 0x12c
ret
push 0x4957f9
push ebx
push 0x496ed0
mov ecx, esi
call fcn.0042cdb0
pop ebx
add esp, 0x12c
ret
Function at 0x44fff0
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4a6c10]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.00412600
test edi, edi
je 0x450168
cmp byte [edi], 0
je 0x450168
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x450089
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a3440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x45006a
mov ecx, dword [0x4a7474]
push 1
push esi
push 0xffffffffffffffff
push 0x496ed0
push ecx
call fcn.004716d0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x4957f9
push 0
push 0x496ed0
mov ecx, ebp
call fcn.0042cdb0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.00481899
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 0x45013d
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x499218
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x45013d
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.0046ebc0
push ebx
call fcn.004816f8
mov eax, dword [0x4a7474]
mov edx, dword [0x4a3440]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x495870
push eax
mov dword [edx + 0x30], 0
call fcn.004716d0
mov edx, dword [0x4a6c10]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.004716d0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4a3440]
push ebx
mov dword [ecx + 0x30], eax
call fcn.004816f8
add esp, 4
push ebp
call fcn.0042f660
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x4a3440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x45019f
mov edx, dword [0x4a7474]
push 1
push 0
push 0xffffffffffffffff
push 0x496ed0
push edx
call fcn.004716d0
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x4957f9
push 0
push 0x496ed0
mov ecx, ebp
call fcn.0042cdb0
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x4501c0
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 0x4501e6
sub eax, edx
je 0x4501fe
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x4501fe
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 0x450224
sub eax, edx
je 0x450242
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x450242
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x450275
test al, 0x10
je 0x450275
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x45027f
test al, 0x10
je 0x45027f
cmp byte [esp + 0x240], 0
jne 0x45029b
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
call fcn.00450bd0
add esp, 4
test al, al
jne 0x45029b
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x4502a0
mov ecx, dword [str..]
mov dl, byte [0x49b2a4]
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 0x4502c0
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 0x4502d7
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 0x450350
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 0x450376
sub eax, edx
je 0x45038e
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x45038e
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 0x4503b4
sub eax, edx
je 0x4503d2
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x4503d2
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x450405
test al, 0x10
je 0x450405
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x45040f
test al, 0x10
je 0x450405
cmp edi, 1
je 0x45040f
cmp edi, 2
je 0x45040f
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
lea edx, [esp + 0x2c]
call fcn.00450ce0
add esp, 4
test al, al
je 0x450457
lea eax, [esp + 0x130]
push 1
push eax
lea edx, [esp + 0x30]
call fcn.004501c0
add esp, 8
test al, al
je 0x450405
push 1
lea edx, [esp + 0x2c]
call fcn.00450500
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 0x450460
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 0x450477
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 0x4504e2
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