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

Disassembly:
sub esp, 0x110
push esi
mov esi, ecx
mov al, byte [esi]
test al, al
je 0x461aaf
cmp byte [esi + 1], 0x3a
jne 0x461aaf
cmp byte [esi + 2], 0
jne 0x461aaf
mov byte [esp + 8], al
lea esi, [esp + 8]
mov word [esp + 9], 0x5c3a
mov byte [esp + 0xb], 0
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
test eax, eax
jne 0x461b11
cmp byte [0x4fe0b8], al
je 0x461b56
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
jne 0x461af2
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop esi
add esp, 0x110
ret
mov ecx, dword [0x4fde14]
push 0x4e3371
push 0
push 0x4e37f8
call fcn.0044d4a0
pop esi
add esp, 0x110
ret
cmp byte [0x4fe0b8], 0
je 0x461b56
lea eax, [esp + 0xc]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
lea ecx, [esp + 0xc]
push 0xffffffffffffffff
cmove ecx, esi
push ecx
mov ecx, 0x4fa374
call fcn.00405d50
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e33f8
call fcn.004b01a0
pop esi
add esp, 0x110
ret
Function at 0x462210
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov ebx, ecx
push edi
mov edi, edx
test ebx, ebx
je 0x4622d2
cmp byte [ebx], 0
je 0x4622d2
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x462258
push 0xb7
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
shr eax, 4
and al, 1
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x5c
push ebx
call fcn.004c7059
mov esi, eax
add esp, 8
mov dword [ebp - 4], esi
cmp esi, ebx
jbe 0x4622ba
cmp byte [esi - 1], 0x3a
je 0x4622ba
test edi, edi
je 0x462287
mov edx, ebx
mov byte [esi], 0
mov ecx, ebx
call fcn.00462210
mov byte [esi], 0x5c
jmp 0x4622b0
mov edi, esi
sub edi, ebx
lea eax, [edi + 1]
call fcn.004db840
mov esi, esp
push edi
push ebx
push esi
call fcn.004cc440
add esp, 0xc
mov byte [edi + esi], 0
mov edx, esi
mov ecx, esi
call fcn.00462210
mov esi, dword [ebp - 4]
cmp byte [esi + 1], 0
je 0x4622dc
test al, al
je 0x4622dc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
setne al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
lea esp, [ebp - 0x10]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4630f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, dword [esp + 0x18]
mov dword [esp + 0xc], ecx
push edi
test esi, esi
je 0x46313f
push 0
push 1
mov ecx, esi
call fcn.00401670
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x46311a
mov edi, dword [esi + 0xc]
jmp 0x46311c
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x463136
test byte [edi + 0x15], 8
je 0x46312f
mov ecx, edi
call fcn.004014d0
add edi, 0xc
mov edi, dword [edi]
jmp 0x463175
mov edi, 0x4ff514
mov edi, dword [edi]
jmp 0x463175
lea eax, [esp + 0xc]
xor ecx, ecx
push eax
lea edx, [esp + 0x20]
call fcn.004afbe0
add esp, 4
test eax, eax
jne 0x46316d
mov eax, dword [0x4f898c]
pop edi
pop esi
pop ebx
mov dword [eax + 0x30], 0
xor eax, eax
add esp, 8
ret 8
mov ebx, dword [esp + 0x1c]
mov edi, dword [esp + 0xc]
push ebp
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4631da
xor ecx, ecx
mov dword [esp + 0x20], ecx
test ebx, ebx
je 0x4631b3
push ecx
lea eax, [esp + 0x24]
push eax
push edi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esp + 0x20]
xor eax, eax
cmp ecx, edi
sete al
mov dword [esp + 0x20], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f898c]
push ebp
mov dword [ecx + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, dword [esp + 0x20]
jmp 0x4631eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f898c]
xor edi, edi
mov dword [ecx + 0x30], eax
pop ebp
test esi, esi
jne 0x4631f9
push ebx
call fcn.004c4247
add esp, 4
test edi, edi
je 0x46321c
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e33f8
call fcn.004b01a0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
jne 0x463249
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
mov ecx, dword [esp + 0x10]
push 0x4e3371
push 0
push 0x4e37f8
call fcn.0044d4a0
pop edi
pop esi
pop ebx
add esp, 8
ret 8
Function at 0x463600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x80
push esi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4fd110]
push 0
call fcn.004b01a0
mov eax, dword [esp + 0x88]
test eax, eax
je 0x463757
cmp byte [eax], 0
je 0x463757
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x463699
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f898c]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x46367b
mov ecx, dword [0x4fb94c]
push 1
push 0
push ebx
push 0x4e37f8
call fcn.004b01a0
pop ebx
pop esi
add esp, 0x80
ret 4
push 0x4e3371
push 0
push 0x4e37f8
mov ecx, esi
call fcn.0044d4a0
pop ebx
pop esi
add esp, 0x80
ret 4
mov eax, dword [0x4f898c]
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e33f8
mov dword [eax + 0x30], 0
call fcn.004b01a0
movzx eax, byte [esp + 8]
mov ecx, ebx
and ecx, 1
mov edx, 0x52
cmovne eax, edx
mov byte [esp + 8], al
test bl, 0x20
je 0x4636dc
mov byte [esp + ecx + 8], 0x41
inc ecx
test bl, 4
je 0x4636e7
mov byte [esp + ecx + 8], 0x53
inc ecx
test bl, 2
je 0x4636f2
mov byte [esp + ecx + 8], 0x48
inc ecx
test bl, bl
jns 0x4636fc
mov byte [esp + ecx + 8], 0x4e
inc ecx
test bl, 0x10
je 0x463707
mov byte [esp + ecx + 8], 0x44
inc ecx
test ebx, 0x1000
je 0x463715
mov byte [esp + ecx + 8], 0x4f
inc ecx
test ebx, 0x800
je 0x463723
mov byte [esp + ecx + 8], 0x43
inc ecx
test ebx, 0x100
je 0x463731
mov byte [esp + ecx + 8], 0x54
inc ecx
push 1
push 0
push 0xffffffffffffffff
lea eax, [esp + 0x14]
mov byte [esp + ecx + 0x14], 0
mov ecx, dword [0x4fd110]
push eax
call fcn.004b01a0
pop ebx
pop esi
add esp, 0x80
ret 4
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x46378c
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop esi
add esp, 0x80
ret 4
push 0x4e3371
push 0
push 0x4e37f8
mov ecx, esi
call fcn.0044d4a0
pop esi
add esp, 0x80
ret 4
Function at 0x4637b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, ecx
push edi
xor edi, edi
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov bl, byte [esi]
mov dword [esp + 0x18], 0xffffffff
mov dword [esp + 0x1c], edi
test bl, bl
je 0x4638a2
movzx eax, bl
test eax, 0xffffff80
je 0x4637f3
xor eax, eax
jmp 0x463802
push 2
push eax
call fcn.004c7451
mov edi, dword [esp + 0x24]
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
movsx eax, dl
add eax, 0xffffffd5
cmp eax, 0x33
ja case.0x463824.44
movzx eax, byte [eax + 0x4638ec]
jmp dword [eax*4 + 0x4638c8]
movsx eax, byte [esi]
mov dword [esp + 0x10], eax
jmp case.0x463824.44
mov ecx, 1
jmp 0x463863
mov ecx, 0x20
jmp 0x463863
mov ecx, 4
jmp 0x463863
mov ecx, 2
jmp 0x463863
mov ecx, 0x80
jmp 0x463863
mov ecx, 0x1000
jmp 0x463863
mov ecx, 0x100
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x463884
sub eax, 2
je 0x46387a
sub eax, 0x31
jne case.0x463824.44
xor edi, ecx
jmp 0x46388e
not ecx
and dword [esp + 0x18], ecx
and edi, ecx
jmp 0x46388e
mov eax, ecx
not eax
and dword [esp + 0x18], eax
or edi, ecx
mov dword [esp + 0x1c], edi
mov bl, byte [esi + 1]
inc esi
test bl, bl
jne 0x4637e5
mov eax, dword [esp + 0x14]
lea ecx, [esp + 0x18]
push ecx
push 0x463920
push dword [ebp + 0x14]
mov ecx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.00463960
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x464170
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x154
push ebx
push esi
push edi
push 1
push 0
mov esi, ecx
mov ecx, dword [0x4fd110]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.004b01a0
mov edi, dword [ebp + 8]
test edi, edi
je 0x46432b
cmp byte [edi], 0
je 0x46432b
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4641f0
lea eax, [esp + 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x4641ec
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
jmp 0x464235
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
jne 0x46421c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f898c]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jmp 0x46433e
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov esi, dword [esp + 0x3c]
xor edi, edi
or edi, dword [esp + 0x40]
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], esi
mov eax, dword [ebp + 0xc]
mov bl, byte [eax]
movzx eax, bl
test eax, 0xffffff80
je 0x464248
xor eax, eax
jmp 0x46425b
push 2
push eax
call fcn.004c7451
mov esi, dword [esp + 0x1c]
add esp, 8
mov edi, dword [esp + 0x10]
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
movsx eax, dl
sub eax, 0x4b
je 0x464280
sub eax, 2
jne 0x464296
push eax
push 0x100000
jmp 0x464287
push 0
push 0x400
push esi
push edi
call fcn.004db760
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4f898c]
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e33f8
mov dword [eax + 0x30], 0
call fcn.004b01a0
mov esi, dword [0x4fd110]
mov edi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
cmp byte [esi + 0x17], 0
jne 0x4642cf
mov esi, dword [esi + 0xc]
mov al, byte [esi + 0x15]
test al, 2
je 0x4642e6
and al, 0x3d
mov byte [esi + 0x15], al
mov eax, dword [esi]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov al, byte [esi + 0x15]
and al, 0x9b
mov dword [esi], edi
or al, 0x18
mov dword [esi + 4], ebx
mov byte [esi + 0x15], al
jge 0x46430d
mov ecx, esi
call fcn.004014d0
and byte [esi + 0x15], 0x8f
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
cmp dword [0x4fb974], 0
je 0x46431d
mov ecx, esi
call fcn.004014d0
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x46435f
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4e3371
push 0
push 0x4e37f8
mov ecx, esi
call fcn.0044d4a0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x465e70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x108
push ebx
push esi
mov esi, dword [esp + 0x118]
mov bl, byte [esi + 2]
movzx eax, bl
test eax, 0xffffff80
je 0x465e90
xor eax, eax
jmp 0x465e9b
push 2
push eax
call fcn.004c7451
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
movsx eax, dl
add eax, 0xffffffbf
cmp eax, 0x12
ja case.0x465ec1.66
movzx eax, byte [eax + 0x46600c]
jmp dword [eax*4 + 0x465ff8]
mov bl, byte [esi + 9]
movzx eax, bl
test eax, 0xffffff80
je 0x465ed9
xor eax, eax
jmp 0x465ee4
push 2
push eax
call fcn.004c7451
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dl, 0x53
jne 0x465f0f
cmp byte [esi + 0xa], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x465f9a
mov eax, 0x26
jmp 0x465f9a
cmp byte [esi + 9], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x465f9a
cmp byte [esi + 9], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x465f9a
mov bl, byte [esi + 7]
movzx eax, bl
test eax, 0xffffff80
je 0x465f50
xor eax, eax
jmp 0x465f5b
push 2
push eax
call fcn.004c7451
add esp, 8
mov cl, bl
and cl, 0xdf
test eax, eax
movzx edx, cl
movzx ecx, bl
cmove edx, ecx
cmp dl, 0x4d
jne 0x465f83
cmp byte [esi + 0xb], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x465f9a
cmp byte [esi + 9], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x465f9a
mov eax, dword [esp + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movzx ecx, byte [esp + 0xc]
xor edx, edx
test eax, eax
pop esi
cmovne ecx, edx
mov edx, dword [esp + 0x110]
mov byte [esp + 8], cl
pop ebx
test edx, edx
je 0x465fde
lea ecx, [esp + 4]
mov eax, ecx
sub edx, eax
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x465fd1
lea eax, [esp + 4]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x465fe5
sub eax, edx
add esp, 0x108
ret

Function at 0x466020
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
movzx ecx, byte [esp]
xor edx, edx
test eax, eax
lea eax, [esp]
cmovne ecx, edx
lea edx, [eax + 1]
mov byte [esp], cl
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x466050
sub eax, edx
je 0x466068
cmp byte [esp + eax - 1], 0x5c
jne 0x466068
mov byte [esp + eax - 1], 0
dec eax
push esi
mov esi, dword [esp + 0x10c]
test esi, esi
je 0x46608d
lea edx, [esp + 4]
mov ecx, edx
sub esi, ecx
nop dword [eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov byte [esi + edx - 1], cl
test cl, cl
jne 0x466080
pop esi
add esp, 0x104
ret
Function at 0x4778e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x4778eb
xor al, al
pop ebx
ret
sub edx, 1
je 0x477910
movzx eax, bl
push eax
sub edx, 1
je 0x477906
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret
call dword [sym.imp.USER32.dll_GetKeyState]
and al, 1
pop ebx
ret
mov al, bl
dec al
cmp al, 5
ja 0x47791d
cmp bl, 3
jne 0x477925
mov al, bl
add al, 0x66
cmp al, 5
ja 0x47793c
cmp dword [0x4fb984], 0
movzx eax, bl
je 0x47796d
mov al, byte [eax + 0x4fc2d8]
shr al, 7
pop ebx
ret
cmp dword [0x4fb988], 0
je 0x47796a
push 0
xor edx, edx
call fcn.0041d290
add esp, 4
test al, al
je 0x47795c
mov cl, 1
call fcn.0041d080
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4fc2d8]
shr al, 7
ret
movzx eax, bl
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
shr eax, 0xf
and al, 1
pop ebx
ret

Function at 0x477ff0
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
mov edi, edx
push esi
push 0
push 0x410
mov byte [edi], 0
call ebx
mov ebp, eax
test ebp, ebp
jne 0x478031
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x478031
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret
cmp byte [esp + 0x120], 0
push 0x104
push edi
push 0
push ebp
je 0x47804c
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameA]
jmp 0x478052
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExA]
mov ebx, eax
test ebx, ebx
jne 0x478162
mov eax, dword [0x4ef160]
test eax, eax
je 0x478162
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x478162
cmp byte [esp + 0x120], 0
je 0x4780cb
push 0x5c
push edi
call fcn.004c7059
mov edx, eax
add esp, 8
test edx, edx
je 0x478162
mov ecx, edx
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4780a0
sub ecx, esi
lea eax, [edx + 1]
push ecx
push eax
push edi
call fcn.004c2440
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
nop word [eax + eax]
push 0x104
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceA]
mov esi, eax
cmp esi, 2
jbe 0x47811b
sub esi, 2
lea eax, [esp + 0x14]
push esi
push edi
push eax
call fcn.004cc747
add esp, 0xc
test eax, eax
jne 0x47811b
cmp byte [esi + edi], 0x5c
lea ecx, [esi + edi]
je 0x47813d
mov al, byte [esp + 0x10]
inc al
mov byte [esp + 0x10], al
cmp al, 0x5a
jle 0x4780e0
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x108
ret
movzx eax, byte [esp + 0x10]
sub ebx, esi
mov byte [edi], al
movzx eax, byte [esp + 0x11]
mov byte [edi + 1], al
lea eax, [ebx + 1]
push eax
push ecx
lea eax, [edi + 2]
push eax
call fcn.004c2440
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 0x47b2c0
Capabilities:
Delete file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x12c
push esi
mov esi, ecx
test eax, eax
je 0x47b3cf
cmp byte [eax], 0
je 0x47b3cf
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x28]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b300
sub ecx, edx
je 0x47b316
cmp byte [esp + ecx + 0x27], 0x5c
jne 0x47b316
mov byte [esp + ecx + 0x27], al
lea ecx, [esp + 0x28]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b320
sub ecx, edx
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x16], 0
mov dword [esp + 4], 0
mov byte [esp + ecx + 0x29], al
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x4054
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
mov dword [esp + 0x14], 0
mov dword [esp + 0xc], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
test eax, eax
jne 0x47b39d
mov ecx, dword [0x4fb94c]
push 1
push eax
push 0xffffffffffffffff
push 0x4e33f8
call fcn.004b01a0
pop esi
add esp, 0x12c
ret 4
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
jne 0x47b3cb
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop esi
add esp, 0x12c
ret 4
mov ecx, esi
jmp 0x47b3dd
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
je 0x47b3ab
push 0x4e3371
push 0
push 0x4e37f8
call fcn.0044d4a0
pop esi
add esp, 0x12c
ret 4
Function at 0x47b480
Capabilities:
Get file version info

Disassembly:
sub esp, 0x8c
push ebx
push esi
push 1
push 0
push 0xffffffffffffffff
mov ebx, ecx
mov ecx, dword [0x4fd110]
push 0
call fcn.004b01a0
mov esi, dword [esp + 0x98]
test esi, esi
je 0x47b63e
cmp byte [esi], 0
je 0x47b63e
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeA]
mov ebp, eax
test ebp, ebp
jne 0x47b520
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f898c]
test byte [ecx + 0xe0], 1
mov dword [ecx + 0x30], eax
jne 0x47b501
mov ecx, dword [0x4fb94c]
push 1
push ebp
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x4e3371
push 0
push 0x4e37f8
mov ecx, ebx
call fcn.0044d4a0
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push edi
push ebp
call fcn.004c4e35
add esp, 4
mov edi, eax
push edi
push ebp
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoA]
test eax, eax
je 0x47b5d5
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4ea7c4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueA]
test eax, eax
je 0x47b5d5
mov eax, dword [esp + 0x10]
mov edx, dword [eax + 8]
mov ecx, dword [eax + 0xc]
movzx eax, cx
push eax
shr ecx, 0x10
push ecx
movzx eax, dx
push eax
shr edx, 0x10
lea eax, [esp + 0x28]
push edx
push str._u._u._u._u
push 0x80
push eax
call fcn.004aba90
push edi
call fcn.004c4247
mov eax, dword [0x4f898c]
add esp, 0x20
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e33f8
mov dword [eax + 0x30], 0
call fcn.004b01a0
mov ecx, dword [0x4fd110]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b01a0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f898c]
push edi
mov dword [ecx + 0x30], eax
call fcn.004c4247
mov eax, dword [0x4f898c]
add esp, 4
test byte [eax + 0xe0], 1
jne 0x47b61e
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x4e3371
push 0
push 0x4e37f8
mov ecx, ebx
call fcn.0044d4a0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x8c
ret 4
mov eax, dword [0x4f898c]
test byte [eax + 0xe0], 1
mov dword [eax + 0x30], 0x57
jne 0x47b674
mov ecx, dword [0x4fb94c]
push 1
push 0
push 0xffffffffffffffff
push 0x4e37f8
call fcn.004b01a0
pop esi
pop ebx
add esp, 0x8c
ret 4
push 0x4e3371
push 0
push 0x4e37f8
mov ecx, ebx
call fcn.0044d4a0
pop esi
pop ebx
add esp, 0x8c
ret 4
Function at 0x47b6a0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x238
push ebx
push ebp
mov ebp, dword [esp + 0x244]
push esi
mov esi, edx
cmp ebp, 1
je 0x47b6c1
mov byte [esp + 0xf], 0
cmp ebp, 2
jne 0x47b6c6
mov byte [esp + 0xf], 1
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x38]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x34]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b6e3
sub ecx, edx
je 0x47b6f9
cmp byte [esp + ecx + 0x33], 0x5c
jne 0x47b6f9
mov byte [esp + ecx + 0x33], al
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x140]
push eax
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
lea ecx, [esp + 0x13c]
lea edx, [ecx + 1]
nop dword [eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b720
sub ecx, edx
je 0x47b73c
cmp byte [esp + ecx + 0x13b], 0x5c
jne 0x47b73c
mov byte [esp + ecx + 0x13b], al
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea eax, [esp + 0x34]
push eax
call esi
cmp eax, 0xffffffff
je 0x47b8fa
test al, 0x10
je 0x47b8fa
mov bl, byte [esp + 0x24c]
test bl, bl
je 0x47b7fb
movzx ebx, byte [esp + 0x34]
test ebx, 0xffffff80
jne 0x47b788
push 1
push ebx
call fcn.004c7451
add esp, 8
test eax, eax
je 0x47b788
or ebx, 0x20
movzx eax, byte [esp + 0x13c]
mov dword [esp + 0x10], eax
test eax, 0xffffff80
jne 0x47b7b1
push 1
push eax
call fcn.004c7451
add esp, 8
test eax, eax
mov eax, dword [esp + 0x10]
je 0x47b7b1
or eax, 0x20
cmp bl, al
jne 0x47b7bc
cmp byte [esp + 0x35], 0x3a
je 0x47b7f4
movzx eax, byte [esp + 0xf]
lea edx, [esp + 0x13c]
push 0
push eax
lea ecx, [esp + 0x3c]
call fcn.0047b6a0
add esp, 8
test al, al
je 0x47b8fa
mov dl, 1
lea ecx, [esp + 0x34]
call fcn.0047b910
pop esi
pop ebp
pop ebx
add esp, 0x238
ret
mov bl, byte [esp + 0x24c]
lea eax, [esp + 0x13c]
push eax
call esi
cmp eax, 0xffffffff
je 0x47b824
test al, 0x10
je 0x47b8fa
mov al, byte [esp + 0xf]
test al, al
je 0x47b8fa
test bl, bl
jne 0x47b85c
jmp 0x47b83e
test bl, bl
jne 0x47b85c
xor edx, edx
lea ecx, [esp + 0x13c]
call fcn.00462210
test al, al
je 0x47b8fa
lea ecx, [esp + 0x34]
dec ecx
mov al, byte [ecx + 1]
lea ecx, [ecx + 1]
test al, al
jne 0x47b843
mov eax, dword [0x4ef658]
mov dword [ecx], eax
mov al, byte [0x4ef65c]
mov byte [ecx + 4], al
lea ecx, [esp + 0x34]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b863
sub ecx, edx
mov byte [esp + ecx + 0x35], al
lea ecx, [esp + 0x13c]
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x47b880
sub ecx, edx
mov dword [esp + 0x14], 0
xorps xmm0, xmm0
mov dword [esp + 0x2e], 0
movlpd qword [esp + 0x26], xmm0
mov byte [esp + ecx + 0x13d], al
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], eax
lea eax, [esp + 0x13c]
mov dword [esp + 0x20], eax
movzx eax, bl
xor eax, 1
inc eax
mov dword [esp + 0x18], eax
mov eax, 0x614
mov word [esp + 0x24], ax
cmp ebp, 2
jne 0x47b8e0
mov eax, 0x615
mov word [esp + 0x24], ax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationA]
pop esi
test eax, eax
pop ebp
sete al
pop ebx
add esp, 0x238
ret
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x238
ret