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

Disassembly:
sub esp, 0x118
push ebx
push ebp
mov ebp, dword [0x4a2b90]
push esi
push edi
push 0
mov edi, eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
mov cl, byte [edi]
test cl, cl
je 0x43b55e
cmp byte [edi + 1], 0
jne 0x43b4da
mov byte [esp + 0x14], cl
cmp cl, 0xa
jne 0x43b4aa
mov al, 0xd
jmp 0x43b54f
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 0x43b4ce
cmp cl, 0xff
jne 0x43b4ce
xor al, al
jmp 0x43b54f
and al, 0x38
neg al
sbb al, al
not al
and al, cl
jmp 0x43b54f
movzx esi, cl
test esi, 0xffffff80
jne 0x43b4f7
push 2
push esi
call fcn.0048061e
add esp, 8
test eax, eax
je 0x43b4f7
and esi, 0xffffffdf
mov eax, esi
cmp al, 0x56
jne 0x43b51b
mov al, byte [edi + 1]
call fcn.00408ee0
cmp al, 0x4b
jne 0x43b51b
push 0x10
lea eax, [edi + 2]
push 0
push eax
call fcn.00480a64
add esp, 0xc
jmp 0x43b54f
xor esi, esi
lea ecx, [ecx]
mov eax, dword [esi*8 + 0x4a0158]
push edi
push eax
call fcn.0047f101
add esp, 8
test eax, eax
je 0x43b591
inc esi
cmp esi, 0x6d
jl 0x43b520
mov eax, edi
call fcn.00411630
movzx ecx, ax
test cx, cx
je 0x43b55e
call fcn.00411d90
mov byte [esp + 0x13], al
cmp byte [esp + 0x13], 0
jne 0x43b5db
push 0
lea ebx, [esp + 0x18]
mov eax, edi
call fcn.0044a950
mov edi, eax
add esp, 4
test edi, edi
jne 0x43b59e
push 1
push eax
push 0xffffffffffffffff
push 0x49281e
push ebp
call fcn.0046f1f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
mov cl, byte [esi*8 + 0x4a015c]
mov byte [esp + 0x13], cl
jmp 0x43b553
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.0044abf0
fstp st(0)
add esp, 8
lea eax, [esp + 0x18]
mov edi, ebp
call fcn.0046ec30
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 0x43b5ff
push 2
push ebx
call fcn.0048061e
add esp, 8
test eax, eax
je 0x43b5ff
and bl, 0xdf
cmp bl, 0x50
je 0x43b612
xor eax, eax
cmp bl, 0x54
setne al
dec eax
and eax, 2
jmp 0x43b617
mov eax, 1
mov bl, byte [esp + 0x13]
push eax
call fcn.0044ab40
add esp, 4
test al, al
mov eax, 0x497830
jne 0x43b632
mov eax, 0x497834
push 1
push 0
push 0xffffffffffffffff
push eax
push ebp
call fcn.0046f1f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x118
ret 4
Function at 0x43b650
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x130
push esi
mov esi, ecx
mov ecx, dword [0x4a2b90]
push edi
call fcn.00412530
test esi, esi
je 0x43b7c6
cmp byte [esi], 0
je 0x43b7c6
push 0x104
lea eax, [esp + 0x34]
push esi
push eax
call fcn.00481f40
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 0x43b6a0
sub eax, edx
cmp byte [esp + eax + 0x2f], 0x5c
je 0x43b6c9
lea ecx, [eax + 1]
cmp ecx, 0x105
jae 0x43b7c6
mov byte [esp + eax + 0x30], 0x5c
mov byte [esp + eax + 0x31], 0
push 1
call dword [sym.imp.KERNEL32.dll_SetErrorMode]
test byte [0x4a5e88], 1
jne 0x43b6ff
or dword [0x4a5e88], 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 [0x4a5e84], eax
jmp 0x43b704
mov eax, dword [0x4a5e84]
test eax, eax
je 0x43b752
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 0x43b7c6
cmp byte [ebp + 0xc], 0
je 0x43b73f
mov eax, dword [esp + 0x1c]
mov esi, dword [esp + 0x18]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43b794
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x20]
shrd esi, eax, 0x14
shr eax, 0x14
mov edi, eax
jmp 0x43b794
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 0x43b7c6
cmp byte [ebp + 0xc], 0
mov eax, dword [esp + 0x14]
jne 0x43b783
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 [0x4a33f4]
push 1
push 0
push 0xffffffffffffffff
push 0x492868
push ecx
call fcn.0046f1f0
mov eax, dword [0x4a2b90]
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 [0x49f440]
cmp byte [edx + 0xe4], 0
jne 0x43b7f3
mov eax, dword [0x4a33f4]
push 1
push 0
push 0xffffffffffffffff
push 0x493ec0
push eax
call fcn.0046f1f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp + 8]
push 0x49281e
push 0
push 0x493ec0
call fcn.0042ca10
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x43caa0
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 0x43cacd
cmp byte [0x4a5214], al
je 0x43cb74
call fcn.00408f90
pop ebx
add esp, 0x10c
ret
cmp byte [0x4a5214], 0
push ebp
push esi
mov esi, 0x4a33f8
jne 0x43cae1
lea esi, [esp + 0x14]
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push esi
push 0x104
call ebp
test eax, eax
je 0x43cb3c
cmp byte [edi], 0
je 0x43cb52
cmp byte [edi + 1], 0x3a
jne 0x43cb52
cmp byte [edi + 2], 0
jne 0x43cb52
push esi
push edi
call fcn.0047f101
add esp, 8
test eax, eax
je 0x43cb52
push edi
lea eax, [esp + 0x10]
push 0x497aa0
push eax
call fcn.0047f638
add esp, 0xc
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
je 0x43cb52
push esi
push 0x104
call ebp
test eax, eax
jne 0x43cb52
push 0x103
push edi
push esi
call fcn.00481f40
mov byte [esi + 0x103], 0
add esp, 0xc
cmp byte [0x4a5214], 0
pop esi
pop ebp
je 0x43cb74
mov edx, dword [0x4a33f4]
push 1
push 0
push 0xffffffffffffffff
push 0x492868
push edx
call fcn.0046f1f0
pop ebx
add esp, 0x10c
ret
Function at 0x43d170
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 0x43d2f2
cmp byte [edi], 0
je 0x43d2f2
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x43d1cb
mov ecx, dword [0x49f440]
shr eax, 4
not al
and al, 1
movzx edx, al
push edx
push ebp
mov dword [ecx + 0x30], 0xb7
call fcn.0042cb00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
push 0x5c
push edi
call fcn.00480fee
mov ebx, eax
add esp, 8
cmp ebx, edi
jbe 0x43d2b9
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x43d1e5
sub eax, edx
cmp eax, 0x104
jb 0x43d233
mov eax, dword [0x49f440]
mov dword [eax + 0x30], 0x6f
cmp byte [eax + 0xe4], cl
jne 0x43d22c
mov eax, dword [0x4a33f4]
push 1
push 0
push 0xffffffffffffffff
push 0x493ec0
push eax
call fcn.0046f1f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, ebp
jmp 0x43d30b
mov esi, ebx
sub esi, edi
push esi
lea ecx, [esp + 0x1c]
push edi
push ecx
call fcn.00481f40
add esp, 0xc
lea edx, [esp + 0x18]
push edx
mov ecx, ebp
mov byte [esp + esi + 0x1c], 0
call fcn.0043d170
cmp byte [ebx + 1], 0
je 0x43d2a7
mov esi, dword [0x4a33f4]
cmp byte [esi + 0x17], 0
jne 0x43d26c
mov esi, dword [esi + 0xc]
test byte [esi + 0x15], 8
je 0x43d279
mov eax, esi
call fcn.00401150
mov al, byte [esi + 0x17]
cmp al, 1
jne 0x43d292
test byte [esi + 0x15], 4
je 0x43d28d
mov eax, esi
call fcn.0042d4f0
mov eax, dword [esi + 8]
jmp 0x43d2a2
cmp al, 2
jne 0x43d29d
call fcn.00401000
jmp 0x43d2a2
mov eax, 0x4a44fd
cmp byte [eax], 0x31
jne 0x43d2b9
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 [0x49f440]
push edx
push ebp
mov dword [ecx + 0x30], eax
call fcn.0042cb00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov eax, dword [0x49f440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
je 0x43d209
push 0x49281e
push 0
push 0x493ec0
call fcn.0042ca10
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x43e920
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.0040c820
test al, al
je 0x43e948
push 0x10
push 0
push edi
call fcn.00480a64
add esp, 0xc
jmp 0x43e951
push edi
call fcn.00480666
add esp, 4
cmp eax, 1
je 0x43e9b6
call fcn.0044f200
test al, al
je 0x43e9b6
mov eax, dword [0x49f440]
cmp byte [eax + 0xe4], 0
jne 0x43e991
mov ecx, dword [0x4a33f4]
push 1
push 0
push 0xffffffffffffffff
push 0x493ec0
push ecx
call fcn.0046f1f0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
mov ecx, dword [esp + 0x124]
push 0x49281e
push 0
push 0x493ec0
call fcn.0042ca10
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 0x43ea04
mov edx, dword [0x49f440]
cmp byte [edx + 0xe4], 0
jne 0x43e991
push 1
push 0
push eax
mov eax, dword [0x4a33f4]
push 0x493ec0
push eax
call fcn.0046f1f0
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 0x43ea10
sub eax, edx
cmp eax, 0x104
jb 0x43ea25
mov eax, 0x103
inc eax
push eax
lea ecx, [esp + 0x1c]
push ebx
push ecx
call fcn.00487870
lea edx, [esp + 0x24]
add esp, 0xc
push edx
call fcn.004818fc
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 0x43ea91
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x43ea91
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
je 0x43ea91
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 0x43ea93
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.0042cb00
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret 4
Function at 0x43eac0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov ecx, dword [0x4a2b90]
sub esp, 0x80
push esi
mov esi, eax
call fcn.00412530
test esi, esi
je 0x43eb75
cmp byte [esi], 0
je 0x43eb75
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43eb2c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x43eba9
mov eax, dword [0x4a33f4]
push 1
push 0
push esi
push 0x493ec0
push eax
call fcn.0046f1f0
pop esi
add esp, 0x80
ret
mov edx, dword [0x4a33f4]
mov ecx, dword [0x49f440]
push 1
push 0
push 0xffffffffffffffff
push 0x492868
push edx
mov dword [ecx + 0x30], 0
call fcn.0046f1f0
mov edx, esi
lea eax, [esp + 4]
call fcn.0046d670
push 1
push 0
push 0xffffffffffffffff
push eax
mov eax, dword [0x4a2b90]
push eax
call fcn.0046f1f0
pop esi
add esp, 0x80
ret
mov eax, dword [0x49f440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x43eba9
mov ecx, dword [0x4a33f4]
push 1
push 0
push 0xffffffffffffffff
push 0x493ec0
push ecx
call fcn.0046f1f0
pop esi
add esp, 0x80
ret
push 0x49281e
push 0
push 0x493ec0
mov ecx, edi
call fcn.0042ca10
pop esi
add esp, 0x80
ret
Function at 0x44ab40
Capabilities:
Log keystrokes via polling

Disassembly:
test bl, bl
jne 0x44ab47
xor al, al
ret
mov eax, dword [esp + 4]
dec eax
je 0x44ab6f
dec eax
je 0x44ab61
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 0x44ab7c
cmp bl, 3
jne 0x44ab83
lea eax, [ebx + 0x66]
cmp al, 5
ja 0x44aba9
cmp dword [0x4a2d24], 0
je 0x44ab99
movzx ecx, bl
mov al, byte [ecx + 0x4a2c10]
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 [0x4a2d20], 0
je 0x44abd8
xor ecx, ecx
xor edx, edx
mov al, bl
call fcn.00411130
test al, al
je 0x44abcb
push 1
call fcn.00410f60
add esp, 4
movzx eax, bl
mov al, byte [eax + 0x4a2c10]
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 0x44b120
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 0x44b161
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x44b161
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 0x44b17c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x44b182
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
test byte [0x4a5d1c], 1
mov ebx, eax
jne 0x44b1b2
or dword [0x4a5d1c], 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 [0x4a5d18], eax
jmp 0x44b1b7
mov eax, dword [0x4a5d18]
test ebx, ebx
jne 0x44b2b4
test eax, eax
je 0x44b2b4
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x44b2b4
cmp byte [esp + 0x11c], 0
je 0x44b229
push 0x5c
push edi
call fcn.00480fee
add esp, 8
test eax, eax
je 0x44b2b4
mov ecx, eax
lea esi, [ecx + 1]
lea esp, [esp]
mov dl, byte [ecx]
inc ecx
test dl, dl
jne 0x44b200
sub ecx, esi
push ecx
inc eax
push eax
push edi
call fcn.0047fcc0
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 0x44b26d
sub esi, 2
push esi
lea edx, [esp + 0x18]
push edi
push edx
call fcn.0048122b
add esp, 0xc
test eax, eax
jne 0x44b26d
cmp byte [esi + edi], 0x5c
je 0x44b28f
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x44b235
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.0047fcc0
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 0x44e3d0
Capabilities:
Delete file

Disassembly:
sub esp, 0x12c
push ebx
xor ebx, ebx
cmp eax, ebx
je 0x44e484
cmp byte [eax], bl
je 0x44e484
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 0x44e406
sub eax, edx
cmp eax, ebx
je 0x44e420
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44e420
mov byte [eax], bl
lea eax, [esp + 0x28]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x44e427
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.0042cb00
pop ebx
add esp, 0x12c
ret
mov edx, dword [0x49f440]
cmp byte [edx + 0xe4], bl
jne 0x44e4af
mov eax, dword [0x4a33f4]
push 1
push ebx
push 0xffffffffffffffff
push 0x493ec0
push eax
call fcn.0046f1f0
pop ebx
add esp, 0x12c
ret
push 0x49281e
push ebx
push 0x493ec0
mov ecx, esi
call fcn.0042ca10
pop ebx
add esp, 0x12c
ret
Function at 0x44e580
Capabilities:
Get file version info

Disassembly:
mov ecx, dword [0x4a2b90]
sub esp, 0x8c
push ebp
mov ebp, dword [esp + 0x94]
push edi
mov edi, eax
call fcn.00412530
test edi, edi
je 0x44e6f8
cmp byte [edi], 0
je 0x44e6f8
push esi
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov esi, eax
test esi, esi
jne 0x44e619
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f440]
cmp byte [ecx + 0xe4], 0
mov dword [ecx + 0x30], eax
jne 0x44e5fa
mov ecx, dword [0x4a33f4]
push 1
push esi
push 0xffffffffffffffff
push 0x493ec0
push ecx
call fcn.0046f1f0
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49281e
push 0
push 0x493ec0
mov ecx, ebp
call fcn.0042ca10
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
push ebx
push esi
call fcn.0047f2b9
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 0x44e6cd
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x14]
push eax
push 0x496264
push ebx
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x44e6cd
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.0046c770
push ebx
call fcn.0047f118
mov eax, dword [0x4a33f4]
mov edx, dword [0x49f440]
add esp, 0x18
push 1
push 0
push 0xffffffffffffffff
push 0x492868
push eax
mov dword [edx + 0x30], 0
call fcn.0046f1f0
mov edx, dword [0x4a2b90]
push 1
push 0
push 0xffffffffffffffff
mov ecx, edi
push ecx
push edx
call fcn.0046f1f0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x49f440]
push ebx
mov dword [ecx + 0x30], eax
call fcn.0047f118
add esp, 4
push ebp
call fcn.0042eed0
pop ebx
pop esi
pop edi
pop ebp
add esp, 0x8c
ret 4
mov eax, dword [0x49f440]
cmp byte [eax + 0xe4], 0
mov dword [eax + 0x30], 0x57
jne 0x44e72f
mov edx, dword [0x4a33f4]
push 1
push 0
push 0xffffffffffffffff
push 0x493ec0
push edx
call fcn.0046f1f0
pop edi
pop ebp
add esp, 0x8c
ret 4
push 0x49281e
push 0
push 0x493ec0
mov ecx, ebp
call fcn.0042ca10
pop edi
pop ebp
add esp, 0x8c
ret 4
Function at 0x44e750
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 0x44e776
sub eax, edx
je 0x44e78e
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44e78e
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 0x44e7b4
sub eax, edx
je 0x44e7d2
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x44e7d2
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x44e805
test al, 0x10
je 0x44e805
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x44e80f
test al, 0x10
je 0x44e80f
cmp byte [esp + 0x240], 0
jne 0x44e82b
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
call fcn.0044f160
add esp, 4
test al, al
jne 0x44e82b
pop esi
add esp, 0x234
ret
lea eax, [esp + 0x28]
dec eax
mov cl, byte [eax + 1]
inc eax
test cl, cl
jne 0x44e830
mov ecx, dword [str..]
mov dl, byte [0x4980d4]
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 0x44e850
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 0x44e867
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 0x44e8e0
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 0x44e906
sub eax, edx
je 0x44e91e
cmp byte [esp + eax + 0x27], 0x5c
lea eax, [esp + eax + 0x27]
jne 0x44e91e
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 0x44e944
sub eax, edx
je 0x44e962
cmp byte [esp + eax + 0x12f], 0x5c
lea eax, [esp + eax + 0x12f]
jne 0x44e962
mov byte [eax], cl
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x28]
push eax
call esi
cmp eax, 0xffffffff
je 0x44e995
test al, 0x10
je 0x44e995
lea ecx, [esp + 0x130]
push ecx
call esi
cmp eax, 0xffffffff
je 0x44e99f
test al, 0x10
je 0x44e995
cmp edi, 1
je 0x44e99f
cmp edi, 2
je 0x44e99f
xor al, al
pop esi
add esp, 0x234
ret
lea edx, [esp + 0x130]
push edx
lea edx, [esp + 0x2c]
call fcn.0044f270
add esp, 4
test al, al
je 0x44e9e7
lea eax, [esp + 0x130]
push 1
push eax
lea edx, [esp + 0x30]
call fcn.0044e750
add esp, 8
test al, al
je 0x44e995
push 1
lea edx, [esp + 0x2c]
call fcn.0044ea90
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 0x44e9f0
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 0x44ea07
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 0x44ea72
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