joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4440a5
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ecx, ecx
push esi
mov esi, dword [ebp + 0xc]
mov dword [eax], ecx
lea eax, [ebp - 0x118]
push eax
mov dword [esi], ecx
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ebx, ebx
inc ebx
cmp dword [ebp - 0x108], ebx
jne 0x444134
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x444127
cmp eax, 0xa
je 0x444106
cmp eax, 0x5a
je 0x4440fe
xor ebx, ebx
mov dword [esi], 0x80
jmp 0x44412d
call fcn.00444bfb
test al, al
mov al, bl
je 0x44411c
mov dword [esi], 0x80
jmp 0x4441ba
mov dword [esi], 0x40
jmp 0x4441ba
mov dword [esi], 0x10
mov al, bl
jmp 0x4441ba
cmp dword [ebp - 0x108], 2
jne 0x4441b8
mov ecx, dword [ebp - 0x114]
sub ecx, 4
je 0x4441ad
mov eax, dword [ebp - 0x110]
dec ecx
je 0x444160
dec ecx
jne 0x4441a3
test eax, eax
jne 0x444185
mov dword [esi], 0x1000000
jmp 0x44412d
test eax, eax
jne 0x44416c
mov dword [esi], 0x100000
jmp 0x44412d
cmp eax, ebx
jne 0x444178
mov dword [esi], 0x400000
jmp 0x44412d
cmp eax, 2
jne 0x444154
mov dword [esi], 0x800000
jmp 0x44412d
cmp eax, ebx
jne 0x444191
mov dword [esi], 0x2000000
jmp 0x44412d
cmp eax, 2
jne 0x44419e
mov dword [esi], 0x4000000
jmp 0x44412d
cmp eax, 3
je 0x4441a5
xor ebx, ebx
mov dword [esi], 0x8000000
jmp 0x44412d
mov dword [esi], 0x10000
jmp 0x44412d
xor al, al
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004591d7
leave
ret
Function at 0x445457
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x38
mov eax, 0x4a5eff
call fcn.0045a829
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x14]
push dword [eax]
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
push ecx
and esi, 0xf
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x445483
mov al, 1
jmp 0x44549f
xor ecx, ecx
movzx edx, word [eax]
add eax, 2
test dx, dx
je 0x445497
cmp ecx, esi
je 0x4454a5
lea eax, [eax + edx*2]
inc ecx
cmp ecx, 0x10
jl 0x445485
xor al, al
call fcn.0045a7d8
ret
push 1
lea ecx, [ebp - 0x41]
push ecx
push edx
push eax
lea ecx, [ebp - 0x40]
call fcn.004091f0
and dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.004095e2
lea ecx, [ebp - 0x40]
call fcn.00401b80
jmp 0x44547f

Function at 0x446b19
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00444bed
test al, al
je 0x446b88
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x18]
push ecx
push 0x28
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x446b88
push esi
lea eax, [ebp - 0x20]
push eax
push str.SeShutdownPrivilege
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueW]
mov eax, dword [ebp - 0x20]
push esi
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x1c]
push esi
push esi
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0x14]
push eax
push esi
push dword [ebp - 0x18]
mov dword [ebp - 0x14], 1
mov dword [ebp - 8], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
pop esi
push 0xffff
push 2
call dword [sym.imp.USER32.dll_ExitWindowsEx]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004591d7
leave
ret

Function at 0x447346
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov ecx, dword [ebp + 8]
xor eax, eax
cmp dword [ebp + 0x24], 8
push esi
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x2001f
push eax
push ecx
lea ecx, [ebp - 0xc]
call fcn.004018f0
mov esi, eax
test esi, esi
jne 0x447392
cmp dword [ebp + 0x54], 8
lea eax, [ebp + 0x40]
cmovae eax, dword [ebp + 0x40]
push eax
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
lea ecx, [ebp - 0xc]
mov dword [0x4d6900], esi
call fcn.004018c0
lea ecx, [ebp + 0xc]
call fcn.00401b80
lea ecx, [ebp + 0x3c]
call fcn.00401b80
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret
Function at 0x447707
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x54
mov eax, 0x4a6342
call fcn.0045a829
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp + 0x3c]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 0x54], edi
mov dword [ebp - 0x50], edi
mov dword [ebp - 0x4c], edi
cmp dword [ebp + 0x24], 8
lea eax, [ebp + 0x10]
cmovae eax, dword [ebp + 0x10]
push 0x20019
push eax
push ecx
lea ecx, [ebp - 0x54]
mov byte [ebp - 4], 1
call fcn.004018f0
mov esi, eax
test esi, esi
jne 0x4477d7
push 0
lea eax, [ebp - 0x41]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4c13f0
mov dword [ebp - 0x18], 0x4c1390
call fcn.00404200
push 0x105
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0040a14b
mov ecx, dword [eax]
mov byte [ebp - 4], 3
mov byte [eax + 4], 1
call fcn.0040a0f0
push 0x105
push dword [eax]
push edi
push dword [ebp - 0x54]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x48], eax
mov byte [ebp - 4], 2
call fcn.00409574
cmp dword [ebp - 0x48], 0
jne 0x4477c0
lea eax, [ebp - 0x40]
push eax
mov ecx, ebx
call fcn.00424765
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401b80
inc edi
cmp dword [ebp - 0x48], 0
je 0x44774f
lea ecx, [ebp - 0x54]
mov dword [0x4d6900], esi
call fcn.004018c0
lea ecx, [ebp + 0xc]
call fcn.00401b80
xor eax, eax
test esi, esi
sete al
call fcn.0045a7d8
ret

Function at 0x447aa0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x447ad2
xor al, al
jmp 0x447aeb
cmp dword [ebp - 0x108], 2
jne 0x447ae9
cmp dword [ebp - 0x114], 5
jb 0x447ae9
xor eax, eax
inc eax
jmp 0x447aeb
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004591d7
leave
ret

Function at 0x44db75
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret
Function at 0x44f591
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x840
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x83c], eax
mov eax, dword [ebp + 0x18]
push edi
mov edi, ecx
mov dword [ebp - 0x838], esi
mov dword [ebp - 0x840], eax
call fcn.00423c36
cmp eax, 1
jne 0x44f689
and dword [ebp - 0x82c], 0
lea eax, [ebp - 0x82c]
push eax
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x44f67e
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x834]
push eax
push 0
push 0
push str.ProxyEnable
push dword [ebp - 0x82c]
mov dword [ebp - 0x830], 4
call esi
mov ecx, dword [ebp - 0x834]
xor edx, edx
test eax, eax
lea eax, [ebp - 0x830]
push eax
lea eax, [ebp - 0x828]
push eax
push edx
push edx
push str.AutoConfigURL
push dword [ebp - 0x82c]
cmovne ecx, edx
mov dword [ebp - 0x834], ecx
mov dword [ebp - 0x830], 0x824
call esi
movzx ecx, byte [ebp - 0x828]
mov esi, dword [ebp - 0x838]
xor edx, edx
test eax, eax
cmovne ecx, edx
mov byte [ebp - 0x828], cl
lea ecx, [ebp - 0x82c]
call fcn.00432809
push dword [ebp - 0x840]
push dword [ebp - 0x83c]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.0044ea96
add esp, 0x14
xor ecx, ecx
test eax, eax
mov dword [edi + 4], eax
setne al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004591d7
leave
ret 0x14
Function at 0x44fb6b
Capabilities:
Check for time delay via gettickcount
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
xor eax, eax
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, ecx
inc eax
and dword [esi + 0x28], 0
and dword [ebx], 0
cmp dword [ebp + 0xc], 0
push edi
jbe 0x44fd2d
cmp dword [esi + 0x64], 0x2710
jbe 0x44fbaa
cmp dword [esi + 0x5c], 0
je 0x44fbaa
mov ecx, esi
call fcn.0044ff10
mov edi, eax
imul edi, edi, 0xf
jmp 0x44fbaf
mov edi, 0x5dc
push 1
test edi, edi
pop eax
cmove edi, eax
cmp byte [esi + 0x98], 0
je 0x44fbcc
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
jmp 0x44fbd9
call dword [sym.imp.KERNEL32.dll_GetTickCount]
and dword [ebp - 0x1c], 0
mov dword [ebp - 0x20], eax
push dword [esi + 0xc]
call dword [sym.imp.KERNEL32.dll_ResetEvent]
lea eax, [ebp - 4]
mov dword [esi + 0x28], eax
mov eax, dword [ebp + 0xc]
sub eax, dword [ebx]
cmp eax, edi
cmovb edi, eax
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp + 8]
add eax, dword [ebx]
push edi
push eax
push dword [esi + 4]
call fcn.0044eb32
add esp, 0x10
test eax, eax
jne 0x44fc24
mov eax, dword [esi]
push 0
lea ecx, [esi + 0xc]
push ecx
push dword [esi + 0x2c]
mov ecx, esi
call dword [eax + 8]
test al, al
je 0x44fd34
cmp byte [esi + 0x98], 0
je 0x44fc3f
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov ebx, dword [ebp - 0x14]
mov edi, dword [ebp - 0x18]
jmp 0x44fc4f
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov edi, eax
xor ebx, ebx
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], ebx
mov eax, dword [ebp - 4]
test eax, eax
je 0x44fd2a
mov ecx, dword [ebp + 0x10]
add dword [ecx], eax
add dword [esi + 0x54], eax
add dword [esi + 0x5c], eax
add dword [esi + 0x68], eax
sub edi, dword [ebp - 0x20]
sbb ebx, dword [ebp - 0x1c]
mov eax, edi
or eax, ebx
jne 0x44fc79
push 5
pop edi
xor ebx, ebx
push 0
push 0x3e8
push ebx
push edi
call fcn.0045cc40
mov ecx, dword [esi + 0x94]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x90]
mov dword [ebp - 0xc], edx
cmp edx, ecx
jl 0x44fccc
mov edx, dword [ebp - 8]
jg 0x44fca6
cmp edx, eax
jb 0x44fccc
push ecx
push eax
push dword [ebp - 0xc]
push edx
call fcn.00461b70
add dword [esi + 0x64], eax
add dword [esi + 0x70], eax
push 0
push 0x3e8
push ebx
push ecx
mov dword [ebp - 0xc], edx
call fcn.0045bbb0
mov edi, eax
mov ebx, edx
push 0
push 0xf4240
push ebx
push edi
call fcn.0045cc40
push dword [esi + 0x94]
push dword [esi + 0x90]
push edx
push eax
call fcn.0045bbb0
add dword [esi + 0x60], eax
add dword [esi + 0x6c], eax
mov ecx, 0x3e8
cmp dword [esi + 0x60], ecx
jbe 0x44fd0a
mov eax, dword [esi + 0x60]
xor edx, edx
div ecx
add dword [esi + 0x64], eax
mov dword [esi + 0x60], edx
cmp dword [esi + 0x6c], ecx
jbe 0x44fd1c
mov eax, dword [esi + 0x6c]
xor edx, edx
div ecx
add dword [esi + 0x70], eax
mov dword [esi + 0x6c], edx
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
cmp dword [ebx], eax
jb 0x44fb8d
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 0xc
xor al, al
jmp 0x44fd2d
Function at 0x44ff10
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov esi, ecx
call ebx
sub eax, dword [esi + 0x74]
xor edi, edi
cmp eax, 0x7530
jbe 0x44ff4d
mov eax, dword [esi + 0x68]
mov dword [esi + 0x5c], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x64], eax
mov eax, dword [esi + 0x6c]
mov dword [esi + 0x68], edi
mov dword [esi + 0x70], edi
mov dword [esi + 0x60], eax
mov dword [esi + 0x6c], edi
call ebx
mov dword [esi + 0x74], eax
mov ecx, dword [esi + 0x64]
test ecx, ecx
jne 0x44ff59
mov eax, dword [esi + 0x5c]
jmp 0x44ffa5
push 0xa
pop ebx
mov dword [ebp - 4], edi
test edi, edi
jne 0x44ffa3
or eax, 0xffffffff
xor edx, edx
div ebx
mov edi, dword [esi + 0x5c]
cmp edi, eax
jbe 0x44ff7b
shr edi, 1
shr ecx, 1
mov dword [esi + 0x5c], edi
mov dword [esi + 0x64], ecx
mov eax, dword [esi + 0x5c]
mov ecx, dword [esi + 0x64]
imul eax, ebx
xor edx, edx
div ecx
xor edx, edx
imul eax, eax, 0x3e8
div ebx
imul ebx, ebx, 0xa
mov edi, eax
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp eax, 3
jb 0x44ff5f
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45010c
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [0x4d4e88]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
lea eax, [ebp - 0x10]
push eax
xor ebx, ebx
push ebx
push 8
mov dword [ebp - 0xc], ebx
mov word [ebp - 8], 0x500
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x450182
call esi
cmp eax, 0x3f0
jne 0x450165
lea eax, [ebp - 0x10]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call esi
cmp eax, 0x78
jne 0x45017b
push 1
push dword [ebp - 0x10]
call fcn.00450266
pop ecx
pop ecx
jmp 0x450258
test eax, eax
jne 0x450182
push ebx
jmp 0x45016c
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
lea eax, [ebp - 0x18]
push eax
push ebx
push ebx
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x4501a9
push ebx
push dword [ebp - 0x10]
call fcn.00450266
pop ecx
jmp 0x450256
call esi
cmp eax, 0x7a
jne 0x45019a
push dword [ebp - 0x18]
call fcn.00459406
pop ecx
mov esi, eax
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x18]
push esi
push 2
push dword [ebp - 0x10]
call edi
test eax, eax
jne 0x4501d1
push ebx
jmp 0x450242
cmp byte [ebp + 8], bl
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
mov eax, 0x223
push ebx
lea ecx, [eax - 3]
cmovne eax, ecx
push eax
push 0x20
push 2
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x4501ce
mov byte [ebp - 0x14], bl
mov edi, ebx
cmp dword [esi], ebx
jbe 0x450236
lea ebx, [esi + 4]
push dword [ebp - 0x1c]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x450221
inc edi
add ebx, 8
cmp edi, dword [esi]
jb 0x450208
jmp 0x450236
cmp byte [ebp + 0xc], 0
je 0x450232
test byte [esi + edi*8 + 8], 0x10
mov byte [ebp - 0x14], 0
jne 0x450236
mov byte [ebp - 0x14], 1
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 0x14]
push dword [ebp - 0x10]
call fcn.00450266
pop ecx
pop ecx
push esi
mov bl, al
call fcn.0045907e
mov al, bl
pop ecx
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.004591d7
leave
ret

Function at 0x4507e6
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x84
mov eax, 0x4a7896
call fcn.0045a829
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x450803
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x45084e
push 0
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0x90]
push eax
call fcn.004591e6
call fcn.0045a7d8
ret
Function at 0x45151c
Capabilities:
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push 0x2e0
mov eax, 0x4a7b43
call fcn.0045a829
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
call fcn.004507e6
pop ecx
test al, 0x10
je 0x451692
push 0x4b4098
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x70]
xor ebx, ebx
push eax
inc ebx
call fcn.004504e9
add eax, 4
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x451564
mov eax, dword [eax]
lea ecx, [ebp - 0x2e0]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov dword [ebp - 0x2e8], esi
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 1
call fcn.00401b80
cmp esi, 0xffffffff
je 0x45162c
test ebx, ebx
je 0x45162c
push 0x4acca0
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x451617
push 0x4b40a0
lea eax, [ebp - 0x2b4]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x451617
push 0
lea eax, [ebp - 0x2e1]
push eax
lea eax, [ebp - 0x2b4]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4adfa8
mov dword [ebp - 0x18], 0x4adfb0
call fcn.00408f6d
sub esp, 0x30
mov eax, esp
lea ecx, [ebp - 0x40]
push ecx
lea ecx, [ebp + 8]
push ecx
push eax
mov byte [ebp - 4], 2
call fcn.00450486
add esp, 0xc
call fcn.0045151c
add esp, 0x30
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.00401b80
lea eax, [ebp - 0x2e0]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov ebx, eax
jmp 0x45158f
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 0
call fcn.00423188
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x4516c9
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
mov byte [ebp - 4], 3
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0x90]
push eax
call fcn.004591e6
cmp dword [ebp + 0x20], 8
lea eax, [ebp + 0xc]
cmovae eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4516c9
push eax
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
mov byte [ebp - 4], 4
jmp 0x451670
lea ecx, [ebp + 8]
call fcn.00401b80
call fcn.0045a7d8
ret

Function at 0x4516f5
Capabilities:
Set file attributes

Disassembly:
push 0x84
mov eax, 0x4a7b73
call fcn.0045a829
mov esi, dword [ebp + 8]
lea eax, [esi + 4]
cmp dword [eax + 0x14], 8
jb 0x451712
mov eax, dword [eax]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x45175e
push eax
push esi
lea ecx, [ebp - 0x40]
mov dword [ebp - 0x40], 0x4ac964
mov dword [ebp - 0x18], 0x4ac96c
call fcn.00408e82
and dword [ebp - 4], 0
push 1
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x90]
call fcn.0041665f
push 0x4c7f58
lea eax, [ebp - 0x90]
push eax
call fcn.004591e6
call fcn.0045a7d8
ret
Function at 0x4529f7
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov ebx, ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp - 4], eax
test eax, eax
jne 0x452a1a
xor al, al
jmp 0x452ab4
push eax
call fcn.0045885f
pop ecx
push eax
push dword [ebp - 4]
mov dword [ebx + 0x40], eax
push dword [ebp - 8]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x452a13
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push 0x4ac888
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x452a13
push esi
mov esi, dword [ebp - 0xc]
push edi
push 0xd
pop ecx
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
lea edi, [ebx + 4]
push str.VarFileInfoTranslation
rep movsd dword es:[edi], dword [esi]
push dword [ebx + 0x40]
call sub.VERSION.dll_VerQueryValueW
pop edi
pop esi
test eax, eax
je 0x452ab2
mov eax, dword [ebp - 4]
shr eax, 2
xor ecx, ecx
push 4
pop edx
mov dword [ebx + 0x3c], eax
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.0045885f
xor edx, edx
pop ecx
mov dword [ebx + 0x38], eax
cmp dword [ebx + 0x3c], edx
jbe 0x452ab2
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebx + 0x38]
mov eax, dword [eax + edx*4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, dword [ebx + 0x3c]
jb 0x452aa0
mov al, 1
pop ebx
leave
ret 4
Function at 0x454b47
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
xor eax, eax
push edi
mov edi, ecx
test ebx, ebx
je 0x454b69
push 1
push eax
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebx], eax
xor eax, eax
lea esi, [edi + 0x70]
push esi
push eax
push eax
push eax
push 2
push dword [edi + 0x10]
call fcn.00453682
add esp, 0x18
test eax, eax
jne 0x454b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi + 0x78], eax
xor al, al
jmp 0x454c33
push dword [esi]
call fcn.00459406
mov esi, eax
pop ecx
cmp esi, dword [edi + 0x6c]
je 0x454ba9
push dword [edi + 0x6c]
call fcn.0045907e
pop ecx
push 0
mov dword [edi + 0x6c], esi
call fcn.0045907e
lea esi, [edi + 0x70]
push esi
push dword [edi + 0x6c]
push 0
push 0
push 2
push dword [edi + 0x10]
call fcn.00453682
add esp, 0x1c
test eax, eax
je 0x454b81
push 0
lea eax, [ebp + 0xc]
push eax
push 4
push esi
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
call esi
push 0
lea eax, [edi + 0x70]
push eax
push dword [eax]
push dword [edi + 0x6c]
push dword [ebp + 8]
call esi
test byte [ebp + 0x10], 1
jne 0x454c1a
push 0
push dword [ebp + 8]
push 1
push 1
push 0x10001
push dword [edi + 0xc]
call fcn.004533ed
add esp, 0x18
test eax, eax
je 0x454b81
test ebx, ebx
je 0x454c31
push 1
push 0
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
sub eax, dword [ebx]
mov dword [ebx], eax
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x4555c4
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push 0x80
push 3
push ebx
push 1
push SysReAllocStringLen
push dword [ebp + 8]
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4555f6
xor eax, eax
jmp 0x4556a8
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0045885f
pop ecx
push 0
lea ecx, [ebp + 8]
push ecx
push ebx
push eax
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
cmp ebx, dword [ebp + 8]
jne 0x4555ef
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [edi + 0x2c]
call fcn.004561ae
lea esi, [edi + 0x20]
mov ecx, esi
push dword [esi + 4]
push dword [esi]
call fcn.0043eae8
mov eax, dword [esi]
push 0
push 0x4c101c
mov ecx, edi
mov dword [esi + 4], eax
call fcn.004051f0
mov esi, dword [ebp - 4]
mov ecx, edi
mov byte [esi + ebx], 0
mov dword [edi + 0x38], esi
call fcn.00455406
push eax
push 0
mov ecx, edi
call fcn.004556af
test eax, eax
je 0x4555ef
mov ecx, edi
call fcn.00455406
push eax
push 9
mov ecx, edi
call fcn.004556af
test eax, eax
je 0x4555ef
push edi
mov ecx, edi
call fcn.00455bf5
test eax, eax
je 0x4555ef
push esi
call fcn.0045973a
xor eax, eax
pop ecx
inc eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x46d354
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.0046464f
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x46d38c
xor eax, eax
jmp 0x46d3b8
cmp esi, dword [ebp - 4]
je 0x46d3b5
cmp dword [ebp + 0xc], 0
je 0x46d3b5
push dword [edi + 0x9c]
call fcn.0046cf62
push dword [edi + 0x9c]
mov esi, eax
call fcn.0045a534
pop ecx
pop ecx
cmp esi, eax
je 0x46d388
xor eax, eax
inc eax
pop edi
pop esi
leave
ret