joyce8/EMBER2024-capa huggingface dataset:
Function at 0x462180
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push edi
movzx eax, word [ebx]
mov ebp, ecx
mov edi, ebx
test ax, ax
je 0x462256
test ebx, ebx
je 0x4621d5
mov esi, eax
nop
mov ecx, 0x4edf00
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x462256
movzx eax, word [ecx + 2]
add ecx, 2
mov edx, eax
test ax, ax
jne 0x4621b0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x4621a0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f8174]
mov dword [ecx + 0x30], eax
test esi, esi
je 0x462216
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
call fcn.004b4bf0
pop edi
pop esi
pop ebp
pop ebx
ret 4
test byte [ecx + 0x100], 1
jne 0x46223c
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0x4cec30
push 0
push 0x4e513c
mov ecx, ebp
call fcn.0044d640
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0x462170
push 0
push 1
push ebx
mov ecx, ebp
call fcn.004627d0
pop edi
pop esi
pop ebp
pop ebx
ret 4
Function at 0x4624d0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
sub esp, 0x100
push esi
push 1
push 0
push 0xffffffffffffffff
mov esi, ecx
mov ecx, dword [0x4fc2a8]
push 0
call fcn.004b4bf0
mov eax, dword [esp + 0x108]
test eax, eax
je 0x4625b4
cmp word [eax], 0
je 0x4625b4
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x46256a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f8174]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x46254c
mov ecx, dword [0x4faa64]
push 1
push 0
push edi
push 0x4e513c
call fcn.004b4bf0
pop edi
pop esi
add esp, 0x100
ret 4
push 0x4cec30
push 0
push 0x4e513c
mov ecx, esi
call fcn.0044d640
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4f8174]
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
mov dword [eax + 0x30], 0
call fcn.004b4bf0
mov edx, edi
lea ecx, [esp + 8]
call fcn.004b1730
mov ecx, dword [0x4fc2a8]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b4bf0
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x4625e9
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop esi
add esp, 0x100
ret 4
push 0x4cec30
push 0
push 0x4e513c
mov ecx, esi
call fcn.0044d640
pop esi
add esp, 0x100
ret 4

Function at 0x462610
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
or ebx, 0xffffffff
xor edx, edx
mov dword [esp + 0x14], ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x18], ebx
movzx eax, word [edi]
mov dword [esp + 0x1c], edx
test ax, ax
je 0x46270c
mov ecx, eax
nop word [eax + eax]
movzx esi, cx
test esi, 0xffffff80
je 0x46265f
xor eax, eax
jmp 0x462673
push 2
push esi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edx, dword [esp + 0x24]
add esp, 8
mov ebx, dword [esp + 0x18]
mov ecx, esi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, esi
add ecx, 0xffffffd5
cmp ecx, 0x33
ja case.0x46268c.44
movzx eax, byte [ecx + 0x462758]
jmp dword [eax*4 + 0x462734]
movzx eax, word [edi]
mov dword [esp + 0x10], eax
jmp case.0x46268c.44
mov ecx, 1
jmp 0x4626cb
mov ecx, 0x20
jmp 0x4626cb
mov ecx, 4
jmp 0x4626cb
mov ecx, 2
jmp 0x4626cb
mov ecx, 0x80
jmp 0x4626cb
mov ecx, 0x1000
jmp 0x4626cb
mov ecx, 0x100
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x4626ea
sub eax, 2
je 0x4626e2
sub eax, 0x31
jne case.0x46268c.44
xor edx, ecx
jmp 0x4626f6
not ecx
and ebx, ecx
and edx, ecx
jmp 0x4626f2
mov eax, ecx
not eax
and ebx, eax
or edx, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x1c], edx
movzx eax, word [edi + 2]
add edi, 2
mov ecx, eax
test ax, ax
jne 0x462650
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push 0x462790
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.004627d0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x463020
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x264
push ebx
push esi
push edi
push 1
push 0
mov esi, ecx
mov ecx, dword [0x4fc2a8]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.004b4bf0
mov edi, dword [ebp + 8]
test edi, edi
je 0x463183
cmp word [edi], 0
je 0x463183
push 0
push 0
push 3
push 0
push 7
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4630a1
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 0x46309d
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
jmp 0x4630e6
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x4630cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f8174]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jmp 0x463196
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov edx, dword [esp + 0x3c]
xor esi, esi
or esi, dword [esp + 0x40]
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], edx
mov eax, dword [ebp + 0xc]
movzx edi, word [eax]
test edi, 0xffffff80
je 0x4630f8
xor eax, eax
jmp 0x46310c
push 2
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
mov edx, dword [esp + 0x1c]
add esp, 8
mov esi, dword [esp + 0x10]
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
sub ecx, 0x4b
je 0x463128
sub ecx, 2
jne 0x46313e
push ecx
push 0x100000
jmp 0x46312f
push 0
push 0x400
push edx
push esi
call fcn.004cc5b0
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4f8174]
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
mov dword [eax + 0x30], 0
call fcn.004b4bf0
mov ecx, dword [0x4fc2a8]
push 0x18
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00401470
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x4631b7
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x4cec30
push 0
push 0x4e513c
mov ecx, esi
call fcn.0044d640
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4631e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov bl, cl
mov ebp, edx
mov byte [esp + 0x13], bl
xor edx, edx
mov ecx, edi
call fcn.004146a0
mov esi, eax
test esi, esi
je 0x46322e
lea eax, [esi - 1]
cmp eax, 6
ja case.0x46320c.5
jmp dword [eax*4 + 0x4633ac]
mov edx, esi
mov dword [ebp], 7
mov cl, bl
call fcn.0041de10
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
mov esi, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__wcsicmp]
push str.AlwaysOn
push edi
call esi
add esp, 8
test eax, eax
jne 0x463248
lea esi, [eax + 3]
jmp case.0x46320c.3
push str.AlwaysOff
push edi
call esi
add esp, 8
test eax, eax
jne case.0x46320c.7
mov esi, 4
mov al, byte [esp + 0x13]
xor ebx, ebx
cmp esi, 3
movzx edi, al
push edi
setne bl
inc ebx
mov dword [ebp], ebx
mov ebp, dword [sym.imp.USER32.dll_GetKeyState]
call ebp
xor eax, 0xffffffff
and eax, 1
inc eax
cmp eax, ebx
je 0x463356
push edi
call ebp
mov bl, byte [esp + 0x13]
test ax, ax
jns 0x4632b1
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 1
call fcn.0041bd60
add esp, 0x10
push 0xffc3d44d
push 0
push 0
push 0
mov dl, bl
mov ecx, 2
call fcn.0041bd60
add esp, 0x10
push 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp eax, dword [0x4fcbf0]
sete bh
jne 0x463306
mov edx, 1
mov dword [0x4f816c], 0
or ecx, 0xffffffff
call fcn.004018d0
mov dword [0x4f816c], 1
cmp bl, 0x14
jne 0x463356
cmp esi, 3
je 0x463356
push edi
call ebp
test al, 1
je 0x463356
push 0xffc3d44d
push 0
push 0
push 0
mov dl, 0x10
mov ecx, 2
call fcn.0041bd60
add esp, 0x10
test bh, bh
je 0x463356
mov edx, 1
mov dword [0x4f816c], 0
or ecx, 0xffffffff
call fcn.004018d0
mov dword [0x4f816c], 1
mov cl, byte [0x4fac57]
or cl, 1
cmp dword [0x4faa98], 0
mov byte [0x4fac57], cl
jne case.0x46320c.5
movzx eax, byte [0x4fad14]
movzx edx, word [0x4fb5ec]
push eax
movzx eax, cl
mov ecx, dword [0x4fb5dc]
push eax
call fcn.00412fb0
add esp, 8
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
mov dword [ebp], 7
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
pop ecx
ret
Function at 0x465080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
push esi
mov esi, dword [esp + 0x21c]
push edi
movzx edi, word [esi + 4]
test edi, 0xffffff80
je 0x4650a6
xor eax, eax
jmp 0x4650ae
push 2
push edi
call ebx
add esp, 8
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
add ecx, 0xffffffbf
cmp ecx, 0x12
ja case.0x4650cb.66
movzx eax, byte [ecx + 0x465224]
jmp dword [eax*4 + 0x465210]
movzx eax, word [esi + 0x12]
mov edi, eax
test eax, 0xffffff80
je 0x4650e3
xor eax, eax
jmp 0x4650eb
push 2
push eax
call ebx
add esp, 8
mov ecx, edi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, edi
cmove edx, ecx
cmp dx, 0x53
jne 0x46511a
cmp word [esi + 0x14], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x4651a9
mov eax, 0x26
jmp 0x4651a9
cmp word [esi + 0x12], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x4651a9
cmp word [esi + 0x12], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x4651a9
movzx eax, word [esi + 0xe]
mov edi, eax
test eax, 0xffffff80
je 0x46515d
xor eax, eax
jmp 0x465165
push 2
push eax
call ebx
add esp, 8
mov ecx, edi
and ecx, 0xffdf
test eax, eax
movzx edx, cx
mov ecx, edi
cmove edx, ecx
cmp dx, 0x4d
jne 0x465191
cmp word [esi + 0x16], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x4651a9
cmp word [esi + 0x12], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x4651a9
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4651c9
xor eax, eax
mov word [esp + 4], ax
mov edx, dword [esp + 0x210]
test edx, edx
je 0x4651f0
lea ecx, [esp + 4]
mov eax, ecx
sub edx, eax
nop dword [eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x4651e0
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4651f7
sub eax, edx
sar eax, 1
add esp, 0x20c
ret

Function at 0x465240
Capabilities:
Get common file path

Disassembly:
sub esp, 0x208
lea eax, [esp]
push eax
push 0
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
je 0x465262
xor eax, eax
mov word [esp], ax
lea edx, [esp]
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x465270
sub edx, ecx
sar edx, 1
jne 0x465285
xor edx, edx
jmp 0x465295
cmp word [esp + edx*2 - 2], 0x5c
jne 0x465295
xor eax, eax
mov word [esp + edx*2 - 2], ax
dec edx
push esi
mov esi, dword [esp + 0x210]
test esi, esi
je 0x4652c0
lea eax, [esp + 4]
mov ecx, eax
sub esi, ecx
nop dword [eax]
movzx ecx, word [eax]
lea eax, [eax + 2]
mov word [esi + eax - 2], cx
test cx, cx
jne 0x4652b0
mov eax, edx
pop esi
add esp, 0x208
ret
Function at 0x47a3e0
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x47a3eb
xor al, al
pop ebx
ret
sub edx, 1
je 0x47a410
movzx eax, bl
push eax
sub edx, 1
je 0x47a406
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 0x47a41d
cmp bl, 3
jne 0x47a425
mov al, bl
add al, 0x66
cmp al, 5
ja 0x47a43c
cmp dword [0x4faa94], 0
movzx eax, bl
je 0x47a46d
mov al, byte [eax + 0x4fb478]
shr al, 7
pop ebx
ret
cmp dword [0x4faa98], 0
je 0x47a46a
push 0
xor edx, edx
call fcn.0041e860
add esp, 4
test al, al
je 0x47a45c
mov cl, 1
call fcn.0041e650
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4fb478]
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 0x47ab30
Capabilities:
Get disk information

Disassembly:
sub esp, 0x210
xor eax, eax
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 eax
push 0x410
mov word [edi], ax
call ebx
mov ebp, eax
test ebp, ebp
jne 0x47ab72
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x47ab72
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x210
ret
cmp byte [esp + 0x228], 0
push 0x104
push edi
push 0
push ebp
je 0x47ab8d
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x47ab93
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
test ebx, ebx
jne 0x47acbe
mov eax, dword [0x4ee778]
test eax, eax
je 0x47acbe
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x47acbe
cmp byte [esp + 0x228], 0
je 0x47ac16
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x47acbe
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47abe2
sub ecx, esi
sar ecx, 1
lea eax, [ecx + ecx]
push eax
lea eax, [edx + 2]
push eax
push edi
call sub.VCRUNTIME140.dll_memmove
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, 0x210
ret
mov eax, 0x41
mov dword [esp + 0x12], 0x3a
mov word [esp + 0x10], ax
nop dword [eax + eax]
push 0x104
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryDosDeviceW]
mov esi, eax
cmp esi, 2
jbe 0x47ac6d
sub esi, 2
lea eax, [esp + 0x18]
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncmp]
add esp, 0xc
test eax, eax
jne 0x47ac6d
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x47ac93
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x47ac30
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
add esp, 0x210
ret
movzx eax, word [esp + 0x10]
sub ebx, esi
mov word [edi], ax
movzx eax, word [esp + 0x12]
mov word [edi + 2], ax
lea eax, [ebx*2 + 2]
push eax
push ecx
lea eax, [edi + 4]
push eax
call sub.VCRUNTIME140.dll_memmove
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, 0x210
ret
Function at 0x47d760
Capabilities:
Create shortcut via ishelllink
Get keyboard layout

Disassembly:
sub esp, 0x210
push ebx
push ebp
push 0
mov ebp, ecx
xor bl, bl
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [esp + 8]
push eax
push 0x4cea80
push 1
push 0
push 0x4cea90
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x47d8ff
mov eax, dword [esp + 8]
push dword [esp + 0x21c]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov edx, dword [esp + 0x224]
cmp word [edx], 0
je 0x47d7be
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x24]
mov edx, dword [esp + 0x228]
cmp word [edx], 0
je 0x47d7d6
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x2c]
mov edx, dword [esp + 0x22c]
cmp word [edx], 0
je 0x47d7ee
mov eax, dword [esp + 8]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov ecx, dword [esp + 0x238]
push esi
cmp word [ecx], 0
je 0x47d805
call fcn.00419ea0
mov esi, eax
jmp 0x47d807
xor esi, esi
push edi
mov edi, dword [esp + 0x238]
cmp word [edi], 0
je 0x47d82a
mov ecx, dword [esp + 0x10]
xor eax, eax
test esi, esi
setg al
mov edx, dword [ecx]
sub esi, eax
push esi
push edi
push ecx
call dword [edx + 0x44]
mov esi, dword [esp + 0x23c]
pop edi
cmp word [esi], 0
je 0x47d86d
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
push ecx
push 0
xor edx, edx
mov ecx, esi
call fcn.0041efb0
add esp, 0xc
test al, al
je 0x47d86d
mov ecx, dword [esp + 0xc]
mov esi, 0x600
movzx eax, al
or ax, si
movzx eax, ax
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x34]
mov ecx, dword [esp + 0x240]
cmp word [ecx], 0
je 0x47d88d
mov eax, dword [esp + 0xc]
mov esi, dword [eax]
call fcn.00419ea0
push eax
push dword [esp + 0x10]
call dword [esi + 0x3c]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
push 0x4ceaa0
push eax
mov ecx, dword [eax]
call dword [ecx]
pop esi
test eax, eax
js 0x47d8f5
push 0
lea eax, [esp + 0x14]
push eax
push 0x104
push dword [esp + 0x22c]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
mov eax, dword [esp + 0xc]
lea edx, [esp + 0x10]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
js 0x47d8eb
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
call fcn.004b4bf0
mov bl, 1
mov eax, dword [esp + 0xc]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esp + 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
test bl, bl
je 0x47d919
pop ebp
mov eax, 1
pop ebx
add esp, 0x210
ret 0x24
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne 0x47d948
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop ebp
pop ebx
add esp, 0x210
ret 0x24
push 0x4cec30
push 0
push 0x4e513c
mov ecx, ebp
call fcn.0044d640
pop ebp
pop ebx
add esp, 0x210
ret 0x24
Function at 0x47d970
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x230
push esi
mov esi, ecx
test eax, eax
je 0x47da7b
cmp word [eax], 0
je 0x47da7b
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d9b0
sub ecx, edx
sar ecx, 1
je 0x47d9d0
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x47d9d0
xor eax, eax
mov word [esp + ecx*2 + 0x26], ax
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47d9d7
xor eax, eax
mov dword [esp + 8], 3
sub ecx, edx
mov dword [esp + 0x1a], eax
sar ecx, 1
mov dword [esp + 0x1e], eax
mov dword [esp + 0x16], eax
mov dword [esp + 4], eax
mov word [esp + ecx*2 + 0x2a], ax
mov dword [esp + 0x10], eax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x4054
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
jne 0x47da49
mov ecx, dword [0x4faa64]
push 1
push eax
push 0xffffffffffffffff
push 0x4cecf8
call fcn.004b4bf0
pop esi
add esp, 0x230
ret 4
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
jne 0x47da77
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop esi
add esp, 0x230
ret 4
mov ecx, esi
jmp 0x47da89
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
je 0x47da57
push 0x4cec30
push 0
push 0x4e513c
call fcn.0044d640
pop esi
add esp, 0x230
ret 4
Function at 0x47db30
Capabilities:
Get file version info

Disassembly:
sub esp, 0x10c
push ebx
push esi
push 1
push 0
push 0xffffffffffffffff
mov ebx, ecx
mov ecx, dword [0x4fc2a8]
push 0
call fcn.004b4bf0
mov esi, dword [esp + 0x118]
test esi, esi
je 0x47dcf2
cmp word [esi], 0
je 0x47dcf2
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
jne 0x47dbd1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f8174]
test byte [ecx + 0x100], 1
mov dword [ecx + 0x30], eax
jne 0x47dbb2
mov ecx, dword [0x4faa64]
push 1
push ebp
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4cec30
push 0
push 0x4e513c
mov ecx, ebx
call fcn.0044d640
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push edi
push ebp
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
add esp, 4
mov edi, eax
push edi
push ebp
push 0
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoW]
test eax, eax
je 0x47dc88
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4e6060
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x47dc88
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.004b0610
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4f8174]
add esp, 0x20
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4cecf8
mov dword [eax + 0x30], 0
call fcn.004b4bf0
mov ecx, dword [0x4fc2a8]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004b4bf0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4f8174]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4f8174]
add esp, 4
test byte [eax + 0x100], 1
jne 0x47dcd2
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4cec30
push 0
push 0x4e513c
mov ecx, ebx
call fcn.0044d640
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [0x4f8174]
test byte [eax + 0x100], 1
mov dword [eax + 0x30], 0x57
jne 0x47dd28
mov ecx, dword [0x4faa64]
push 1
push 0
push 0xffffffffffffffff
push 0x4e513c
call fcn.004b4bf0
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4cec30
push 0
push 0x4e513c
mov ecx, ebx
call fcn.0044d640
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x47dfe0
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
test dl, dl
jne 0x47e002
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x47e0ce
mov al, 1
add esp, 0x230
ret
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x28]
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e020
sub ecx, edx
sar ecx, 1
je 0x47e040
cmp word [esp + ecx*2 + 0x22], 0x5c
jne 0x47e040
xor eax, eax
mov word [esp + ecx*2 + 0x22], ax
lea eax, [esp + 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x47e0ce
test al, 0x10
je 0x47e0ce
lea ecx, [esp + 0x24]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x47e060
sub ecx, edx
mov dword [esp + 0xc], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x16], 0
mov dword [esp + 0x1a], 0
mov dword [esp + 0x12], 0
mov word [esp + ecx*2 + 0x26], ax
lea eax, [esp + 0x24]
mov dword [esp + 8], eax
mov eax, 0x614
mov word [esp + 0x10], ax
lea eax, [esp]
push eax
mov dword [esp + 4], 0
mov dword [esp + 8], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
add esp, 0x230
ret
xor al, al
add esp, 0x230
ret