joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45b670
Capabilities:
Identify system language via api

Disassembly:
mov eax, dword fs:[0x2c]
mov ecx, dword [eax]
mov eax, dword [0x618ae4]
cmp eax, dword [ecx + 4]
jle 0x45b6f8
push 0x618ae4
call fcn.0051a2e0
add esp, 4
cmp dword [0x618ae4], 0xffffffff
jne 0x45b6f8
push 0x587590
mov dword [0x618ae8], 0x5bbbec
mov dword [0x618aec], 0x5bbe18
mov dword [0x618af0], 0x5bbe58
mov dword [0x618af4], 0
mov dword [0x618af8], 0
mov dword [0x618afc], 0
mov dword [0x618b00], 0
call fcn.0051a637
push 0x618ae4
call fcn.0051a2a1
add esp, 8
mov ecx, dword [0x618af8]
test ecx, ecx
jne 0x45b7a2
mov eax, dword [0x5f34e0]
cmp eax, 0xffffffff
jne 0x45b723
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx ecx, ax
call fcn.0049cb40
mov dword [0x5f34e0], eax
mov ecx, eax
call fcn.0045ae90
push eax
mov eax, dword [0x618ae8]
mov ecx, 0x618ae8
call dword [eax + 0x210]
mov eax, dword [0x618af8]
test eax, eax
je 0x45b79c
mov ecx, dword [0x618af4]
cmp word [ecx + eax*2], 0
lea edx, [ecx + eax*2]
je 0x45b764
xor eax, eax
mov word [edx], ax
mov eax, dword [0x618af8]
mov ecx, dword [0x618af4]
inc eax
push eax
push ecx
call fcn.00521633
mov ecx, dword [0x618af8]
add esp, 8
test ecx, ecx
je 0x45b79c
mov edx, dword [0x618af4]
movzx eax, word [edx]
cmp eax, 0x61
jb 0x45b798
cmp eax, 0x7a
ja 0x45b798
add eax, 0xffffffe0
mov word [edx], ax
mov ecx, dword [0x618af8]
test ecx, ecx
jne 0x45b7a2
mov eax, 0x5b9058
ret
mov eax, dword [0x618af4]
cmp word [eax + ecx*2], 0
je 0x45b7b4
xor edx, edx
mov word [eax + ecx*2], dx
mov eax, dword [0x618af4]
ret

Function at 0x45bb80
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jle 0x45bba7
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
cmp byte [edi + 0x59], 0
jne 0x45bba6
push 0x14
call ebx
sub esi, 0x14
test esi, esi
jg 0x45bb95
pop ebx
cmp byte [edi + 0x59], 0
jne 0x45bbda
push 0
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [edi + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, dword [edi + 0x5c]
mov ecx, edi
mov dword [edi + 0xc], 0
call fcn.00424c20
mov eax, dword [edi]
mov ecx, edi
push esi
call dword [eax + 0x74]
pop edi
pop esi
pop ebp
ret 4

Function at 0x45bcc0
Capabilities:
Resume thread

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push dword [esi + 0xc]
call edi
cmp eax, 1
jbe 0x45bcde
push dword [esi + 0xc]
call edi
cmp eax, 1
ja 0x45bcd4
pop edi
pop esi
ret

Function at 0x45bcf0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push edi
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
ret
Function at 0x45c470
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
cmp byte [ebp + 8], 0
push esi
mov esi, ecx
je 0x45c57e
cmp byte [esi + 0x155], 0
jne 0x45c5cd
cmp byte [esi + 0x7a0], 0
je 0x45c49b
call fcn.0045eea0
push ebx
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x45c4c0
cmp byte [esi + 0x18e], 0
je 0x45c4c0
mov eax, dword [esi]
mov ecx, esi
call dword [eax + pe_nt_image_headers32]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x13c]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x134]
call eax
test al, al
jne 0x45c544
mov ecx, dword [esi + 0x120]
test ecx, ecx
je 0x45c544
mov eax, dword [ecx]
mov eax, dword [eax + 0x98]
call eax
test al, al
je 0x45c4f4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x138]
jmp 0x45c544
cmp byte [esi + 0x755], 0
jne 0x45c544
cmp byte [esi + 0x754], 0
je 0x45c544
cmp byte [esi + 0x7a0], 0
jne 0x45c544
mov ecx, dword [esi + 0x120]
mov eax, dword [ecx]
mov eax, dword [eax + 0x48]
call eax
test al, al
jne 0x45c52a
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x90]
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x2ec]
call eax
test al, al
jne 0x45c544
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x90]
test bl, bl
pop ebx
je 0x45c555
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 0x128]
push 5
push dword [esi + 0x800]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x505
push 0
push 0
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_RedrawWindow]
mov byte [esi + 0x155], 1
jmp 0x45c5a6
cmp byte [esi + 0x155], 0
je 0x45c5cd
mov eax, dword [esi]
push 1
call dword [eax + 0x2e4]
push 0
push dword [esi + 0x800]
call dword [sym.imp.USER32.dll_ShowWindow]
mov byte [esi + 0x155], 0
push 0x5f3538
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
push 0xffffffffffffffff
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_SetProcessWorkingSetSize]
push 0x5f3538
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebp
ret 8
Function at 0x45f220
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
push edi
mov edi, ecx
cmp byte [edi + 0x736], 0
je 0x45f320
cmp byte [edi + 0x749], 0
je 0x45f24c
mov eax, dword [edi]
mov eax, dword [eax + 0x198]
call eax
test al, al
je 0x45f30a
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 1
push dword [edi + 0x30]
call esi
push 2
push dword [edi + 0x30]
call esi
push 3
push dword [edi + 0x30]
call esi
push 4
push dword [edi + 0x30]
call esi
push 5
push dword [edi + 0x30]
call esi
push 6
push dword [edi + 0x30]
call esi
mov ecx, dword [edi + 0x738]
cmp ecx, 0xffffffff
je 0x45f2af
mov eax, dword [edi + 0x73c]
cmp eax, 0xffffffff
je 0x45f2af
push eax
push ecx
mov ecx, edi
call fcn.0045e600
mov dword [edi + 0x738], 0xffffffff
mov dword [edi + 0x73c], 0xffffffff
cmp byte [edi + 0x735], 0
push ebx
je 0x45f30d
mov esi, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0xa0
call esi
mov ebx, 0x8000
test bx, ax
jne 0x45f2dc
push 0xa1
call esi
test bx, ax
je 0x45f30d
cmp byte [edi + 0x191], 0
mov eax, 0x64
jne 0x45f2f3
cmp byte [edi + 0x734], 0
jne 0x45f2f9
mov eax, dword [edi + 0x72c]
cmp dword [edi + 0x730], eax
jge 0x45f309
push eax
mov ecx, edi
call fcn.0045e410
pop ebx
pop edi
pop esi
ret
push 0
push 0xa
push 3
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_SetTimer]
pop ebx
pop edi
pop esi
ret
cmp byte [edi + 0x748], 0
je 0x45f30a
cmp byte [edi + 0x749], 0
je 0x45f340
mov eax, dword [edi]
mov eax, dword [eax + 0x198]
call eax
test al, al
je 0x45f30a
mov esi, dword [sym.imp.USER32.dll_KillTimer]
push 1
push dword [edi + 0x30]
call esi
push 2
push dword [edi + 0x30]
call esi
push 3
push dword [edi + 0x30]
call esi
push 4
push dword [edi + 0x30]
call esi
push 5
push dword [edi + 0x30]
call esi
push 6
push dword [edi + 0x30]
call esi
cmp byte [edi + 0x191], 0
mov eax, 0x64
jne 0x45f387
cmp byte [edi + 0x734], 0
jne 0x45f38d
mov eax, dword [edi + 0x72c]
cmp dword [edi + 0x730], eax
jge 0x45f39d
push eax
mov ecx, edi
call fcn.0045e410
cmp byte [edi + 0x735], 0
je 0x45f3ed
call fcn.0049d680
test al, al
je 0x45f3ed
mov eax, dword [edi + 0x738]
cmp eax, 0xffffffff
je 0x45f30a
mov ecx, dword [edi + 0x73c]
cmp ecx, 0xffffffff
je 0x45f30a
push ecx
push eax
mov ecx, edi
call fcn.0045e600
mov dword [edi + 0x738], 0xffffffff
mov dword [edi + 0x73c], 0xffffffff
pop edi
pop esi
ret
cmp dword [edi + 0x738], 0
jge 0x45f403
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x24]
mov dword [edi + 0x738], eax
cmp dword [edi + 0x73c], 0
jge 0x45f419
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x2c]
mov dword [edi + 0x73c], eax
push 0
push 0xa
push 6
push dword [edi + 0x30]
call dword [sym.imp.USER32.dll_SetTimer]
pop edi
pop esi
ret
Function at 0x4629a0
Capabilities:
Suspend thread

Disassembly:
push esi
mov esi, ecx
test esi, esi
je 0x462a10
push edi
xor edi, edi
cmp byte [esi + 0x48], 0
je 0x4629e0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0
push 0
push 0x12
push dword [esi + 0x30]
call dword [sym.imp.USER32.dll_PostThreadMessageW]
test eax, eax
jne 0x4629df
cmp edi, 0x1388
jge 0x4629df
push 0xa
call ebx
add edi, 0xa
cmp byte [esi + 0x48], 0
jne 0x4629b7
pop ebx
mov ecx, 0x1388
mov eax, 0
sub ecx, edi
cmovns eax, ecx
push eax
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop edi
test eax, eax
je 0x462a07
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
pop esi
ret

Function at 0x462a60
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push edi
lea ecx, [esi + 0x98]
call fcn.0049dc20
test al, al
je 0x462ab5
push 0
push dword [esi + 0x118]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x118]
mov edi, dword [sym.imp.USER32.dll_UpdateWindow]
call edi
mov ecx, esi
call fcn.0045be10
test al, al
je 0x462ab0
push 0
push dword [esi + 0x800]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 0x800]
call edi
pop edi
mov al, 1
pop esi
ret
pop edi
xor al, al
pop esi
ret

Function at 0x463e70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
call fcn.00408da0
mov edi, eax
lea ebx, [edi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov esi, dword [edi + 0x34]
push ebx
cmp dword [esi + 0x20], 0
jbe 0x463ea9
dec dword [esi + 0x20]
mov eax, dword [esi + 0x20]
mov esi, dword [esi + 0x1c]
mov esi, dword [esi + eax*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x463eb6
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [edi + 0x3c]
call eax
mov esi, eax
mov edi, dword [ebp - 4]
mov edi, dword [edi + 0x78]
cmp dword [esi + 0x24], edi
jae 0x463f02
mov cl, byte [esi + 0x18]
mov eax, edi
shl eax, cl
push eax
call fcn.0052147f
mov ebx, eax
add esp, 4
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x463efc
mov edx, dword [esi + 0x20]
test edx, edx
je 0x463ef1
mov cl, byte [esi + 0x18]
shl edx, cl
push edx
push eax
push ebx
call fcn.0051cad0
add esp, 0xc
push dword [esi + 0x1c]
call fcn.0051f847
add esp, 4
mov dword [esi + 0x1c], ebx
mov dword [esi + 0x24], edi
mov edi, dword [ebp - 4]
xor ebx, ebx
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x30]
call dword [eax + 0x30]
test eax, eax
je 0x463f53
mov eax, dword [edi + 0x4c]
mov edi, dword [eax + ebx*4]
test edi, edi
je 0x463f42
nop
mov eax, dword [esi + 0x20]
cmp eax, dword [esi + 0x24]
jne 0x463f2f
mov ecx, esi
call fcn.0042d690
mov ecx, dword [esi + 0x20]
mov eax, dword [esi + 0x1c]
mov dword [eax + ecx*4], edi
inc dword [esi + 0x20]
mov edi, dword [edi + 0xc]
test edi, edi
jne 0x463f20
mov edi, dword [ebp - 4]
inc ebx
mov eax, dword [edi + 0x30]
lea ecx, [edi + 0x30]
call dword [eax + 0x30]
cmp ebx, eax
jb 0x463f14
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x468180
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.004fe461

Function at 0x469790
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
test eax, eax
je 0x4697b7
cmp dword [ebp - 4], 0x20
je 0x4697b7
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x46f880
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, edi
mov eax, dword [edi]
mov eax, dword [eax + 0x34]
call eax
test al, al
je 0x46f8fa
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xa4]
mov ecx, eax
call fcn.0043bf50
mov ecx, eax
push 1
push 0
mov dword [esi + 8], ecx
mov eax, dword [ecx]
push 0
push 1
push 0
mov eax, dword [eax + 0xb8]
call eax
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], edx
mov eax, dword [ecx]
call dword [eax + 0xa4]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [esi + 0x1c], eax
test eax, eax
je 0x46f8fa
push esi
push 0x46ee80
push eax
call dword [sym.imp.KERNEL32.dll_EnumResourceTypesW]
cmp eax, 1
jne 0x46f8fa
pop edi
mov al, al
pop esi
pop ebp
ret 8
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x46f911
mov eax, dword [ecx + 4]
add ecx, 4
call dword [eax + 4]
mov dword [esi + 8], 0
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x46f926
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [esi + 0x1c], 0
pop edi
xor al, al
pop esi
pop ebp
ret 8
Function at 0x474a20
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x5f0524]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00474900
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp byte [0x6176c4], 0
jne 0x474bc7
push esi
push edi
push str.IsWow64Process
push str.kernel32
mov dword [ebp - 0x11c], 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x474a88
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
cmp dword [ebp - 0x11c], 0
lea eax, [ebp - 0x230]
push eax
setne byte [0x61405a]
call fcn.00474980
add esp, 4
lea edi, [ebp - 0x118]
mov esi, eax
mov ecx, 0x45
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
mov dword [0x61406c], ecx
mov dword [0x614068], edx
mov dword [0x614064], eax
pop edi
pop esi
test ecx, ecx
jne 0x474b34
test edx, edx
jne 0x474b34
test eax, eax
jne 0x474b34
push 0x114
push eax
lea eax, [ebp - 0x118]
push eax
call fcn.0051d050
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [ebp - 0x114]
mov edx, dword [ebp - 0x110]
mov eax, dword [ebp - 0x10c]
mov dword [0x61406c], ecx
mov dword [0x614068], edx
mov dword [0x614064], eax
cmp dword [ebp - 0x108], 2
sete byte [0x614271]
cmp ecx, 6
jg 0x474b56
jne 0x474b4d
test edx, edx
jns 0x474b56
mov byte [0x61405b], 0
jmp 0x474b5d
mov byte [0x61405b], 1
cmp ecx, 6
jg 0x474b72
jne 0x474b69
cmp edx, 1
jge 0x474b72
mov byte [0x614270], 0
jmp 0x474b79
mov byte [0x614270], 1
lea ecx, [ebp - 0x104]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x474b82
sub ecx, edx
sar ecx, 1
cmp ecx, 0x100
jle 0x474ba0
mov ecx, 0xff
jmp 0x474ba4
test ecx, ecx
jle 0x474bc0
lea eax, [ecx*2 + 2]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x614070
call fcn.0051cad0
add esp, 0xc
mov byte [0x6176c4], 1
call fcn.00474900
add eax, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret
Function at 0x4761b0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5f0524]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.00407db0
mov esi, eax
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
push edi
cmp dword [eax + 0x20], 0
jbe 0x4761f7
dec dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x476204
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x3c]
call eax
mov esi, eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x47625a
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x47625a
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call dword [eax + 0x210]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051a19b
mov esp, ebp
pop ebp
ret

Function at 0x476280
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x5f0524]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
call fcn.0043c7b0
mov esi, eax
lea edi, [esi + 0x1c]
push edi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [esi + 0x34]
push edi
cmp dword [eax + 0x20], 0
jbe 0x4762c7
dec dword [eax + 0x20]
mov ecx, dword [eax + 0x20]
mov eax, dword [eax + 0x1c]
mov esi, dword [eax + ecx*4]
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
jmp 0x4762d4
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov eax, dword [esi + 0x3c]
call eax
mov esi, eax
lea eax, [ebp - 0x210]
push eax
push ebx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
test eax, eax
js 0x47632a
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x210]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
test eax, eax
je 0x47632a
lea eax, [ebp - 0x214]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
mov eax, dword [ebp - 0x214]
push dword [ebp - 0x210]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x214]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [esi]
lea ecx, [ebp - 0x20c]
push ecx
mov ecx, esi
call dword [eax + 0x1ec]
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0051a19b
mov esp, ebp
pop ebp
ret
Function at 0x47b1c0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x5f0524]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp byte [esi + 0x70], 0
jne 0x47b26a
mov eax, dword [esi]
push edi
mov eax, dword [eax + 0x64]
call eax
test al, al
je 0x47b23f
mov eax, dword [esi]
mov ecx, esi
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocStringLen
call dword [eax + 0xa8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x47b265
lea eax, [ebp - 0x38]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
mov ecx, dword [ebp - 0x38]
push edi
mov dword [esi + 0x74], ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov byte [esi + 0x70], 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0051a19b
mov esp, ebp
pop ebp
ret
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x47b250
mov ecx, dword [esi + 0x1c]
jmp 0x47b256
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [esi + 0x74], eax
mov byte [esi + 0x70], 1
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0051a19b
mov esp, ebp
pop ebp
ret

Function at 0x47b310
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.0047b280

Function at 0x47b320
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x70], 0
je 0x47b335
cmp dword [esi + 0x74], edi
je 0x47b360
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x47b346
mov ecx, dword [esi + 0x1c]
jmp 0x47b34c
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx]
push edi
call dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x47b368
mov dword [esi + 0x74], edi
pop edi
mov al, 1
pop esi
pop ebp
ret 4
pop edi
xor al, al
pop esi
pop ebp
ret 4
Function at 0x47c340
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov dword [ebp - 0xc], esi
mov edx, dword [esi + 0x5c]
mov eax, dword [esi + 0x58]
test edx, edx
jl 0x47c364
jg 0x47c415
test eax, eax
jae 0x47c415
mov eax, dword [esi]
push 1
push 0
push 0
mov eax, dword [eax + 0xb8]
push 1
push 0
call eax
test edx, edx
jg 0x47c38b
jl 0x47c382
test eax, eax
jne 0x47c38b
xor eax, eax
xor edx, edx
pop esi
mov esp, ebp
pop ebp
ret
push ebx
push edi
push 0
push 0
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xb0]
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
mov eax, dword [ebp - 4]
mov ebx, 0x200
mov ecx, eax
imul ecx, dword [ebp - 8]
cmp eax, ebx
push 1
cmova ebx, eax
mov eax, dword [esi]
push 0
push 0
cmp ecx, ebx
mov dword [ebp - 4], ebx
mov eax, dword [eax + 0xb8]
push 1
cmova ebx, ecx
mov ecx, esi
push 0
call eax
mov esi, eax
mov edi, edx
add esi, ebx
push 0
adc edi, 0
sub esi, 1
push ebx
sbb edi, 0
push edi
push esi
call fcn.00574fe0
sub esi, eax
mov eax, esi
sbb edi, edx
mov edx, dword [ebp - 0xc]
mov dword [edx + 0x5c], edi
mov dword [edx + 0x58], esi
mov edx, edi
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x47cd60
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp eax, 3
ja 0x47cd7d
xor al, al
pop esi
pop ebp
ret 4
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call fcn.0052a512
add esp, 4
test eax, eax
je 0x47cdb7
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0xf4]
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call fcn.0052a512
add esp, 4
test eax, eax
jne 0x47cd76
cmp byte [ebp + 8], 0
je 0x47cdd8
mov ecx, dword [esi + 0x80]
push 0
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
push 0x1005
push 8
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
mov al, 1
pop esi
pop ebp
ret 4
Function at 0x47d110
Capabilities:
Delete file
Move file

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x80]
mov eax, dword [ecx]
call dword [eax + 0x2c]
cmp eax, 3
jbe 0x47d1e3
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x34]
call eax
test al, al
je 0x47d1e3
mov eax, dword [esi]
mov ecx, esi
mov eax, dword [eax + 0x60]
call eax
test al, al
je 0x47d166
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
test eax, eax
je 0x47d1cd
mov ecx, dword [esi + 0x1c]
push 4
push 0
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
mov eax, dword [esi]
mov ecx, esi
push ebx
push edi
push 0
push 0
push 1
call dword [eax + 0x1a8]
mov edi, eax
xor ebx, ebx
mov ecx, edi
mov edx, dword [edi]
call dword [edx + 0x30]
test eax, eax
je 0x47d1a1
mov eax, dword [edi + 0x1c]
mov ecx, dword [eax + ebx*4]
mov eax, dword [ecx]
call dword [eax + 0xfc]
mov eax, dword [edi]
mov ecx, edi
inc ebx
call dword [eax + 0x30]
cmp ebx, eax
jb 0x47d187
mov eax, dword [edi + 8]
lea ecx, [edi + 8]
call dword [eax + 4]
mov ecx, dword [esi + 0x1c]
mov eax, dword [ecx]
call dword [eax + 0x2c]
pop edi
pop ebx
test eax, eax
je 0x47d1cd
mov ecx, dword [esi + 0x1c]
push 4
push 0
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret
mov ecx, dword [esi + 0x80]
push 4
push 0
mov eax, dword [ecx]
call dword [eax + 0x50]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop esi
ret