joyce8/EMBER2024-capa huggingface dataset:
Function at 0x459cc0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
test edi, edi
je 0x459dff
cmp word [edi], 0
je 0x459dff
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x459d1a
mov ecx, dword [0x4e211c]
shr eax, 4
not al
and al, 1
movzx eax, al
mov dword [ecx + 0x30], 0xb7
mov ecx, ebx
push eax
call fcn.00447440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edx, eax
add esp, 8
mov dword [esp + 0xc], edx
cmp edx, edi
jbe 0x459dcc
mov ecx, edi
lea esi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x459d40
sub ecx, esi
sar ecx, 1
cmp ecx, 0x104
jb 0x459d75
mov eax, dword [0x4e211c]
mov ecx, ebx
push 1
mov dword [eax + 0x30], 0x6f
call fcn.00447440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov esi, edx
lea eax, [esp + 0x10]
sub esi, edi
sar esi, 1
push esi
push edi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcsncpy]
xor eax, eax
add esp, 0xc
mov word [esp + esi*2 + 0x10], ax
mov ecx, ebx
lea eax, [esp + 0x10]
push eax
call fcn.00459cc0
mov eax, dword [esp + 0xc]
cmp word [eax + 2], 0
je 0x459dbe
mov ecx, dword [0x4e4b80]
push 0
push 1
call fcn.004016c0
cmp word [eax], 0x31
jne 0x459dcc
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
sete byte [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e211c]
push dword [esp + 0xc]
mov dword [ecx + 0x30], eax
mov ecx, ebx
call fcn.00447440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [0x4e211c]
push 1
mov dword [eax + 0x30], 0x57
call fcn.00447440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x45a940
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x10], ecx
push edi
test esi, esi
je 0x45a991
push 0
push 1
mov ecx, esi
call fcn.004016c0
cmp byte [esi + 0x17], 0
mov ebx, eax
jne 0x45a96b
mov edi, dword [esi + 0xc]
jmp 0x45a96d
mov edi, esi
cmp byte [edi + 0x17], 1
jne 0x45a988
test byte [edi + 0x15], 8
je 0x45a980
mov ecx, edi
call fcn.004015e0
mov ebp, dword [edi + 0xc]
add edi, 0xc
jmp 0x45a9c8
mov edi, 0x4e8ce8
mov ebp, dword [edi]
jmp 0x45a9c8
lea eax, [esp + 0x10]
xor ecx, ecx
push eax
lea edx, [esp + 0x24]
call fcn.0049fb40
add esp, 4
test eax, eax
jne 0x45a9c0
mov eax, dword [0x4e211c]
pop edi
pop esi
pop ebp
mov dword [eax + 0x30], 0
xor eax, eax
pop ebx
add esp, 8
ret 8
mov ebx, dword [esp + 0x20]
mov ebp, dword [esp + 0x10]
push 0
push 0
push 2
push 0
push 0
push 0x40000000
push dword [esp + 0x34]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
mov dword [esp + 0x20], 1
cmp edi, 0xffffffff
je 0x45aa18
xor eax, eax
mov dword [esp + 0x20], eax
test ebx, ebx
je 0x45aa0d
push eax
lea eax, [esp + 0x24]
push eax
push ebp
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x20]
xor ecx, ecx
cmp eax, ebp
setne cl
mov dword [esp + 0x20], ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e211c]
mov dword [ecx + 0x30], eax
cmp edi, 0xffffffff
je 0x45aa33
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
jne 0x45aa41
push ebx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
add esp, 4
push dword [esp + 0x20]
mov ecx, dword [esp + 0x18]
call fcn.00447440
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 8

Function at 0x45aa70
Capabilities:
Delete file

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, ecx
push esi
push edi
mov edi, ebx
test ebx, ebx
je 0x45aac1
movzx eax, word [ebx]
test ax, ax
je 0x45aafe
mov esi, eax
nop word [eax + eax]
mov eax, 0x4d7998
mov edx, 0x3f
nop word [eax + eax]
cmp si, dx
je 0x45aafe
movzx ecx, word [eax + 2]
add eax, 2
mov edx, ecx
test cx, cx
jne 0x45aaa0
movzx eax, word [edi + 2]
add edi, 2
mov esi, eax
test ax, ax
jne 0x45aa90
cmp word [ebx], 0
je 0x45aafe
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
sete byte [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e211c]
push dword [esp + 0x14]
mov dword [ecx + 0x30], eax
mov ecx, ebp
call fcn.00447440
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push 0
push 0x45aa60
push 0
push 1
push ebx
mov ecx, ebp
call fcn.0045b040
mov ecx, dword [0x4e211c]
xor eax, eax
pop edi
pop esi
pop ebp
cmp dword [ecx + 0x104], eax
pop ebx
sete al
ret 4
Function at 0x45adc0
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 [0x4e6390]
push 0
call fcn.004a0110
mov eax, dword [esp + 0x108]
test eax, eax
je 0x45ae5c
cmp word [eax], 0
je 0x45ae5c
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x45ae1f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e211c]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.00447440
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4e211c]
mov ecx, esi
push 0
mov dword [eax + 0x30], 0
call fcn.00447440
mov edx, edi
lea ecx, [esp + 8]
call fcn.0049d240
mov ecx, dword [0x4e6390]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a0110
pop edi
pop esi
add esp, 0x100
ret 4
mov eax, dword [0x4e211c]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.00447440
pop esi
add esp, 0x100
ret 4

Function at 0x45ae80
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 0x45af7c
mov ecx, eax
nop word [eax + eax]
movzx esi, cx
test esi, 0xffffff80
je 0x45aecf
xor eax, eax
jmp 0x45aee3
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.0x45aefc.44
movzx eax, byte [ecx + 0x45afc8]
jmp dword [eax*4 + 0x45afa4]
movzx eax, word [edi]
mov dword [esp + 0x10], eax
jmp case.0x45aefc.44
mov ecx, 1
jmp 0x45af3b
mov ecx, 0x20
jmp 0x45af3b
mov ecx, 4
jmp 0x45af3b
mov ecx, 2
jmp 0x45af3b
mov ecx, 0x80
jmp 0x45af3b
mov ecx, 0x1000
jmp 0x45af3b
mov ecx, 0x100
mov eax, dword [esp + 0x10]
sub eax, 0x2b
je 0x45af5a
sub eax, 2
je 0x45af52
sub eax, 0x31
jne case.0x45aefc.44
xor edx, ecx
jmp 0x45af66
not ecx
and ebx, ecx
and edx, ecx
jmp 0x45af62
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 0x45aec0
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push 0
push eax
push 0x45b000
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0045b040
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x45b710
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 [0x4e6390]
push 0xffffffffffffffff
push 0
mov dword [esp + 0x2c], esi
call fcn.004a0110
mov edi, dword [ebp + 8]
test edi, edi
je 0x45b848
cmp word [edi], 0
je 0x45b848
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 0x45b787
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
jne 0x45b7d2
mov esi, dword [esp + 0x1c]
lea eax, [esp + 0x20]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
jne 0x45b7b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e211c]
push 1
mov dword [ecx + 0x30], eax
mov ecx, esi
call fcn.00447440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x3c]
xor eax, eax
or eax, dword [esp + 0x40]
mov dword [esp + 0x10], eax
mov dword [esp + 0x14], ecx
mov eax, dword [ebp + 0xc]
mov cx, word [eax]
call fcn.00413070
movzx eax, ax
sub eax, 0x4b
je 0x45b7f2
sub eax, 2
jne 0x45b80e
push eax
push 0x100000
jmp 0x45b7f9
push 0
push 0x400
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call fcn.004b7080
mov dword [esp + 0x14], edx
mov dword [esp + 0x10], eax
mov eax, dword [0x4e211c]
mov ecx, dword [esp + 0x1c]
push 0
mov dword [eax + 0x30], 0
call fcn.00447440
mov ecx, dword [0x4e6390]
push 0x18
push dword [esp + 0x18]
push dword [esp + 0x18]
call fcn.00401560
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [0x4e211c]
mov ecx, esi
push 1
mov dword [eax + 0x30], 0x57
call fcn.00447440
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45d220
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push esi
mov esi, dword [esp + 0x218]
push edi
movzx edi, word [esi + 4]
test edi, 0xffffff80
je 0x45d23f
xor eax, eax
jmp 0x45d24b
push 2
push edi
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll__isctype]
add esp, 8
mov ecx, edi
and ecx, 0xffffffdf
test eax, eax
cmove ecx, edi
add ecx, 0xffffffbf
cmp ecx, 0x12
ja case.0x45d268.66
movzx eax, byte [ecx + 0x45d374]
jmp dword [eax*4 + 0x45d360]
mov cx, word [esi + 0x12]
call fcn.00413070
cmp ax, 0x53
jne 0x45d292
cmp word [esi + 0x14], 0
mov eax, 2
mov ecx, 0x17
cmovne eax, ecx
jmp 0x45d2fc
mov eax, 0x26
jmp 0x45d2fc
cmp word [esi + 0x12], 0
mov eax, 0x1a
mov ecx, 0x23
cmovne eax, ecx
jmp 0x45d2fc
cmp word [esi + 0x12], 0
mov eax, 0x10
mov ecx, 0x19
cmovne eax, ecx
jmp 0x45d2fc
mov cx, word [esi + 0xe]
call fcn.00413070
cmp ax, 0x4d
jne 0x45d2e4
cmp word [esi + 0x16], 0
mov eax, 0xb
mov ecx, 0x16
cmovne eax, ecx
jmp 0x45d2fc
cmp word [esi + 0x12], 0
mov eax, 7
mov ecx, 0x18
cmovne eax, ecx
jmp 0x45d2fc
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_SHGetFolderPathW]
pop edi
pop esi
test eax, eax
je 0x45d31b
xor eax, eax
mov word [esp + 4], ax
mov edx, dword [esp + 0x210]
test edx, edx
je 0x45d340
lea ecx, [esp + 4]
mov eax, ecx
sub edx, eax
nop
movzx eax, word [ecx]
lea ecx, [ecx + 2]
mov word [edx + ecx - 2], ax
test ax, ax
jne 0x45d330
lea eax, [esp + 4]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x45d347
sub eax, edx
sar eax, 1
add esp, 0x20c
ret

Function at 0x45d390
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 0x45d3b2
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 0x45d3c0
sub edx, ecx
sar edx, 1
jne 0x45d3d5
xor edx, edx
jmp 0x45d3e5
cmp word [esp + edx*2 - 2], 0x5c
jne 0x45d3e5
xor eax, eax
mov word [esp + edx*2 - 2], ax
dec edx
push esi
mov esi, dword [esp + 0x210]
test esi, esi
je 0x45d410
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 0x45d400
mov eax, edx
pop esi
add esp, 0x208
ret
Function at 0x46d920
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, cl
test bl, bl
jne 0x46d92b
xor al, al
pop ebx
ret
sub edx, 1
je 0x46d950
movzx eax, bl
push eax
sub edx, 1
je 0x46d946
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 0x46d95d
cmp bl, 3
jne 0x46d965
mov al, bl
add al, 0x66
cmp al, 5
ja 0x46d97c
cmp dword [0x4e4bb0], 0
movzx eax, bl
je 0x46d9af
mov al, byte [eax + 0x4e5568]
shr al, 7
pop ebx
ret
cmp dword [0x4e4bb4], 0
je 0x46d9ac
push 0
xor edx, edx
mov cl, bl
call fcn.0041b150
add esp, 4
test al, al
je 0x46d99e
mov cl, 1
call fcn.0041af60
movzx eax, bl
pop ebx
mov al, byte [eax + 0x4e5568]
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 0x46e070
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 0x46e0b2
push esi
push eax
push 0x1000
call ebx
mov ebp, eax
test ebp, ebp
jne 0x46e0b2
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 0x46e0cd
call dword [sym.imp.PSAPI.DLL_GetModuleBaseNameW]
jmp 0x46e0d3
call dword [sym.imp.PSAPI.DLL_GetModuleFileNameExW]
mov ebx, eax
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x4e9224]
cmp eax, dword [ecx + 4]
jle 0x46e129
push 0x4e9224
call fcn.004b621d
add esp, 4
cmp dword [0x4e9224], 0xffffffff
jne 0x46e129
push str.GetProcessImageFileNameW
push str.psapi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4e9224
mov dword [0x4e9228], eax
call fcn.004b61d3
add esp, 4
test ebx, ebx
jne 0x46e24e
mov eax, dword [0x4e9228]
test eax, eax
je 0x46e24e
push 0x104
push edi
push ebp
call eax
mov ebx, eax
test ebx, ebx
je 0x46e24e
cmp byte [esp + 0x228], 0
je 0x46e1aa
push 0x5c
push edi
call dword [sym.imp.VCRUNTIME140.dll_wcsrchr]
mov edx, eax
add esp, 8
test edx, edx
je 0x46e24e
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x46e176
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]
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 0x46e1fd
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 0x46e1fd
cmp word [edi + esi*2], 0x5c
lea ecx, [edi + esi*2]
je 0x46e223
mov ax, word [esp + 0x10]
inc ax
mov word [esp + 0x10], ax
cmp ax, 0x5a
jbe 0x46e1c0
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 0x470c10
Capabilities:
Delete file
Move file

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x230
push esi
mov esi, ecx
test eax, eax
je 0x470ce0
cmp word [eax], 0
je 0x470ce0
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 0x470c50
sub ecx, edx
sar ecx, 1
je 0x470c70
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x470c70
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 0x470c77
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
mov ecx, esi
setne al
movzx eax, al
push eax
call fcn.00447440
pop esi
add esp, 0x230
ret 4
mov eax, dword [0x4e211c]
test byte [eax + 0x100], 1
jne 0x470d0e
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4cefc4
call fcn.004a0110
pop esi
add esp, 0x230
ret 4
push 0x4b8c14
push 0
push 0x4cefc4
call fcn.004473a0
pop esi
add esp, 0x230
ret 4
Function at 0x470d30
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 [0x4e6390]
push 0
call fcn.004a0110
mov esi, dword [esp + 0x118]
test esi, esi
je 0x470eb1
cmp word [esi], 0
je 0x470eb1
push ebp
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.VERSION.dll_GetFileVersionInfoSizeW]
mov ebp, eax
test ebp, ebp
jne 0x470d9d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e211c]
push 1
mov dword [ecx + 0x30], eax
mov ecx, ebx
call fcn.00447440
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 0x470e47
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4cfcc4
push edi
call dword [sym.imp.VERSION.dll_VerQueryValueW]
test eax, eax
je 0x470e47
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.0049c210
push edi
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4e211c]
add esp, 0x20
mov ecx, ebx
push 0
mov dword [eax + 0x30], 0
call fcn.00447440
mov ecx, dword [0x4e6390]
lea eax, [esp + 0x1c]
push 1
push 0
push 0xffffffffffffffff
push eax
call fcn.004a0110
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [0x4e211c]
push edi
mov dword [ecx + 0x30], eax
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_free]
mov eax, dword [0x4e211c]
add esp, 4
test byte [eax + 0x100], 1
jne 0x470e91
mov ecx, dword [0x4e4b80]
push 1
push 0
push 0xffffffffffffffff
push 0x4cefc4
call fcn.004a0110
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
push 0x4b8c14
push 0
push 0x4cefc4
mov ecx, ebx
call fcn.004473a0
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x10c
ret 4
mov eax, dword [0x4e211c]
mov ecx, ebx
push 1
mov dword [eax + 0x30], 0x57
call fcn.00447440
pop esi
pop ebx
add esp, 0x10c
ret 4
Function at 0x470ee0
Capabilities:
Check if file exists
Copy file
Get file attributes
Move file

Disassembly:
sub esp, 0x43c
lea eax, [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
push edi
push eax
lea eax, [esp + 0x30]
mov edi, edx
push eax
push 0x104
push ecx
call esi
lea ecx, [esp + 0x2c]
lea edx, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470f10
sub ecx, edx
sar ecx, 1
je 0x470f30
cmp word [esp + ecx*2 + 0x2a], 0x5c
jne 0x470f30
xor eax, eax
mov word [esp + ecx*2 + 0x2a], ax
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x23c]
push eax
push 0x104
push edi
call esi
lea ecx, [esp + 0x238]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x470f50
sub ecx, edx
sar ecx, 1
je 0x470f76
cmp word [esp + ecx*2 + 0x236], 0x5c
jne 0x470f76
xor eax, eax
mov word [esp + ecx*2 + 0x236], ax
mov esi, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
lea eax, [esp + 0x2c]
push eax
call esi
cmp eax, 0xffffffff
je 0x470fa9
test al, 0x10
je 0x470fa9
lea eax, [esp + 0x238]
push eax
call esi
cmp eax, 0xffffffff
je 0x470fb4
test al, 0x10
je 0x470fb4
cmp byte [esp + 0x448], 0
jne 0x470fc4
pop edi
xor al, al
pop esi
add esp, 0x43c
ret
lea ecx, [esp + 0x238]
call fcn.00471b20
test al, al
je 0x470fa9
lea ecx, [esp + 0x2c]
add ecx, 0xfffffffe
nop dword [eax + eax]
mov ax, word [ecx + 2]
lea ecx, [ecx + 2]
test ax, ax
jne 0x470fd0
mov eax, dword [0x4d8810]
mov dword [ecx], eax
mov eax, dword [0x4d8814]
mov dword [ecx + 4], eax
mov ax, word [0x4d8818]
mov word [ecx + 8], ax
lea ecx, [esp + 0x2c]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471000
sub ecx, edx
sar ecx, 1
xor eax, eax
mov word [esp + ecx*2 + 0x2e], ax
lea ecx, [esp + 0x238]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471020
xor eax, eax
mov dword [esp + 0x10], 2
sub ecx, edx
mov dword [esp + 0xc], eax
sar ecx, 1
xorps xmm0, xmm0
mov dword [esp + 0x26], eax
movlpd qword [esp + 0x1e], xmm0
mov word [esp + ecx*2 + 0x23a], ax
lea eax, [esp + 0x2c]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x238]
mov dword [esp + 0x18], eax
mov eax, 0x614
mov word [esp + 0x1c], ax
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop edi
sete al
pop esi
add esp, 0x43c
ret
Function at 0x471380
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file

Disassembly:
sub esp, 0x230
lea eax, [esp + 0x20]
push ebx
push eax
lea eax, [esp + 0x2c]
mov bl, dl
push eax
push 0x104
push ecx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4713a6
sub ecx, edx
sar ecx, 1
je 0x4713c6
cmp word [esp + ecx*2 + 0x26], 0x5c
jne 0x4713c6
xor eax, eax
mov word [esp + ecx*2 + 0x26], ax
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x471480
test al, 0x10
je 0x471480
test bl, bl
jne 0x471403
lea eax, [esp + 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x471480
mov al, 1
pop ebx
add esp, 0x230
ret
lea ecx, [esp + 0x28]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x471410
sub ecx, edx
mov dword [esp + 0x10], 0
sar ecx, 1
xor eax, eax
mov dword [esp + 0x1a], 0
mov dword [esp + 0x1e], 0
mov dword [esp + 0x16], 0
mov word [esp + ecx*2 + 0x2a], ax
lea eax, [esp + 0x28]
mov dword [esp + 0xc], eax
mov eax, 0x614
mov word [esp + 0x14], ax
lea eax, [esp + 4]
push eax
mov dword [esp + 8], 0
mov dword [esp + 0xc], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop ebx
sete al
add esp, 0x230
ret
xor al, al
pop ebx
add esp, 0x230
ret