joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c200
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push 0
push 0
push 0xffffffffffffffff
push str.Rufusgrub4dos_0.4.6agrldr
push 0
push 0xfde9
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov esi, eax
cmp esi, 1
jle 0x40c25c
push 2
push esi
call fcn.004b6706
mov edi, eax
add esp, 8
test edi, edi
je 0x40c25c
push esi
push edi
push 0xffffffffffffffff
push str.Rufusgrub4dos_0.4.6agrldr
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, esi
je 0x40c25e
push edi
call fcn.004d1211
add esp, 4
xor edi, edi
test ebx, ebx
je 0x40c2c6
cmp byte [ebx], 0
jne 0x40c277
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x40c2c8
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x40c2c6
push 2
push eax
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x40c2c6
push dword [ebp - 4]
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, dword [ebp - 4]
je 0x40c2c8
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test edi, edi
je 0x40c2ea
push edi
call fcn.004d1211
add esp, 4
test esi, esi
je 0x40c2f7
push esi
call fcn.004d1211
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40c310
Capabilities:
Delete file

Disassembly:
push ebx
push edi
mov edi, ecx
test edi, edi
jne 0x40c335
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
cmp byte [edi], 0
push esi
jne 0x40c364
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x40c3e7
jmp 0x40c3de
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jle 0x40c3af
push 2
push ebx
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x40c3af
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
cmp eax, ebx
je 0x40c3ce
call fcn.004d1211
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004d1211
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
Function at 0x40c5d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
push 0
push 0
push 0xffffffffffffffff
push str.USERPROFILE
push 0
push 0xfde9
call ebx
mov edi, eax
cmp edi, 1
jle 0x40c628
push 2
push edi
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x40c628
push edi
push esi
push 0xffffffffffffffff
push str.USERPROFILE
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x40c62a
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
xor edi, edi
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push 2
push eax
mov dword [ebp - 4], eax
call fcn.004b6706
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x40c65f
test esi, esi
je 0x40c656
push esi
call fcn.004d1211
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x40c6dc
cmp word [ebx], di
jne 0x40c683
push 1
push 1
call fcn.004b6706
add esp, 8
mov edi, eax
jmp 0x40c6dc
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x40c6da
push 1
push eax
call fcn.004b6706
mov edi, eax
add esp, 8
test edi, edi
je 0x40c6da
push 0
push 0
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, dword [ebp - 4]
je 0x40c6dc
push edi
call fcn.004d1211
add esp, 4
xor edi, edi
push ebx
call fcn.004d1211
add esp, 4
test esi, esi
je 0x40c6f2
push esi
call fcn.004d1211
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40c820
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
lea eax, [ebp - 0x108]
push esi
push edi
push 0x104
push 0
push eax
mov edi, edx
mov dword [ebp - 0x120], ebx
call fcn.004ab0f0
add esp, 0xc
mov dword [ebp - 0x11c], 0
mov dword [ebp - 0x110], 0
mov dword [ebp - 0x10c], 0
mov dword [ebp - 0x114], 0xffffffff
mov dword [ebp - 0x118], 4
mov dword [ebx], 0
test edi, edi
je 0x40ca69
mov esi, edi
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x40c8a0
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
sub esi, ecx
je 0x40c8bc
cmp byte [edi + esi], 0x5c
je 0x40c8f1
sub esi, 1
jne 0x40c8b1
lea eax, [ebp - 0x110]
push eax
push 0x2001d
push 0
push str.SOFTWARE
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c9b5
mov dword [ebp - 0x110], 0
jmp 0x40ca45
cmp esi, 0x104
jae 0x40ca69
mov ecx, edi
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c902
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x40c92c
mov ecx, edi
lea edx, [ecx + 1]
nop word [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c920
sub ecx, edx
inc ecx
jmp 0x40c931
mov ecx, 0x104
push ecx
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.004aab70
mov ecx, edi
add esp, 0xc
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c947
sub ecx, edx
lea eax, [ecx + 1]
cmp eax, 0x104
jae 0x40c96c
mov ecx, edi
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x40c960
sub ecx, edx
inc ecx
jmp 0x40c971
mov ecx, 0x104
lea eax, [ebp - 0x10c]
mov byte [ebp + ecx - 0x109], 0
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
mov byte [ebp + esi - 0x108], 0
push eax
push 0x80000001
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x40c9ee
mov dword [ebp - 0x10c], 0
jmp 0x40ca38
lea eax, [ebp - 0x124]
push eax
lea eax, [ebp - 0x10c]
push eax
push 0
push 7
push 0
push 0
push 0
push str.Akeo_ConsultingRufus
push dword [ebp - 0x110]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40c9ee
mov dword [ebp - 0x10c], 0
jmp 0x40ca38
lea eax, [ebp - 0x118]
push eax
push dword [ebp - 0x120]
lea eax, [ebp - 0x114]
push eax
push 0
lea eax, [edi + esi]
push eax
push dword [ebp - 0x10c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp eax, 2
je 0x40ca2e
test eax, eax
jne 0x40ca38
cmp dword [ebp - 0x114], 4
jne 0x40ca38
cmp dword [ebp - 0x118], eax
jbe 0x40ca38
mov dword [ebp - 0x11c], 1
mov eax, dword [ebp - 0x110]
test eax, eax
je 0x40ca45
push eax
call ebx
mov ecx, dword [ebp - 0x10c]
test ecx, ecx
je 0x40ca52
push ecx
call ebx
mov eax, dword [ebp - 0x11c]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
Function at 0x40e810
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0xc97
xor esi, esi
movsx ax, cl
push esi
push 1
mov dword [ebp - 0xc], 0x3a003f
push 1
mov dword [ebp - 8], 0x5c
mov word [ebp - 0xc], ax
call fcn.0041ed70
add esp, 0x10
cmp dword [0x58b858], esi
jne 0x40e8a6
push str.Chkdsk
push ecx
mov ecx, str.Fmifs
call fcn.0040bd70
add esp, 4
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x58b858], eax
test eax, eax
jne 0x40e8a6
call fcn.0044b6b0
push eax
push str.Fmifs
push str.Chkdsk
push str.Unable_to_locate__s___in__s.dll:__s
call fcn.0044b0b0
add esp, 0x10
mov eax, esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push 0x20
lea eax, [ebp - 0x50]
push eax
push dword [0x5a29cc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea ecx, [ebp - 0x50]
xor edx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e8c0
sub ecx, edi
sar ecx, 1
je 0x40e8e1
lea eax, [edx + edx]
cmp word [ebp + eax - 0x50], 0x20
je 0x40e930
inc edx
cmp edx, ecx
jb 0x40e8d1
push 0x40d2d0
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0xc]
push eax
call dword [0x58b858]
test dword [0x55a318], 0x80000000
jne 0x40e91e
push str.NTFS_Fixup_completed._n
call fcn.0044b0b0
add esp, 4
mov esi, 1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
cmp eax, 0x40
jae 0x40e93e
xor ecx, ecx
mov word [ebp + eax - 0x50], cx
jmp 0x40e8e1
call fcn.004a8c90
int3
Function at 0x413810
Capabilities:
Create directory
Extract resource via kernel32 functions

Disassembly:
push edi
push 0
push 0
push 0
push 0x147
push dword [0x5a2764]
mov edi, ecx
call dword [sym.imp.USER32.dll_SendMessageW]
push eax
push 0x150
push dword [0x5a2764]
call dword [sym.imp.USER32.dll_SendMessageW]
sub eax, 1
je 0x413852
sub eax, 1
je 0x41384a
xor eax, eax
pop edi
ret
mov ecx, edi
pop edi
jmp fcn.00413280
mov ecx, edi
pop edi
jmp fcn.00412f60
Function at 0x416020
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x188
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push ecx
push str._sautorun.inf
lea eax, [ebp - 0x48]
push 0x40
push eax
call fcn.004050d0
lea eax, [ebp - 0x48]
mov byte [ebp - 9], 0
push 0x52f1f4
push eax
call fcn.004d14af
mov esi, eax
add esp, 0x18
lea eax, [ebp - 0x48]
test esi, esi
je 0x41608a
push eax
push str._s_already_exists___keeping_it
call fcn.0044b0b0
push esi
call fcn.004d1662
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
push 0x52f218
push eax
call fcn.004d14af
mov edi, eax
add esp, 8
test edi, edi
jne 0x4160cb
lea eax, [ebp - 0x48]
push eax
push str.Unable_to_create__s
call fcn.0044b0b0
push str.NOTE:_This_may_be_caused_by_a_poorly_designed_security_solution._See_https:__goo.gl_QTobxX.
call fcn.0044b0b0
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x188]
push 0x80
push eax
push dword [0x5a2898]
call esi
push 0x20
lea eax, [ebp - 0x88]
push eax
push dword [0x5a2ae4]
call esi
lea eax, [ebp - 0x88]
push eax
push str.__Created_by__s_n__https:__rufus.ie_n
push edi
call fcn.00415ba0
add esp, 0xc
lea eax, [ebp - 0x188]
push eax
push str._autorun__nicon___autorun.ico_nlabel___s_n
push edi
call fcn.00415ba0
add esp, 0xc
push edi
call fcn.004d1662
add esp, 4
lea eax, [ebp - 0x48]
push eax
push str.Created:__s
call fcn.0044b0b0
lea ecx, [ebp - 0x48]
add esp, 8
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416140
sub ecx, edx
cmp ecx, 2
jae 0x416165
push 0xbd
push str.D:_a_rufus_rufus_srcicon.c
push str.strlen_filename____2
call fcn.004dfbbc
add esp, 0xc
lea ecx, [ebp - 0x48]
lea edx, [ecx + 1]
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416170
sub ecx, edx
mov byte [ebp + ecx - 0x49], 0x6f
lea ecx, [ebp - 0x48]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x416184
sub ecx, edx
xor edx, edx
mov byte [ebp + ecx - 0x4a], 0x63
lea ecx, [ebp - 0x48]
call fcn.00415d00
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
Function at 0x4164c0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push ebx
push esi
mov esi, ecx
mov ebx, edx
push edi
test esi, esi
jne 0x4164d8
xor edi, edi
jmp 0x416540
cmp byte [esi], 0
jne 0x4164ed
push 2
push 1
call fcn.004b6706
add esp, 8
mov edi, eax
jmp 0x41653b
push 0
push 0
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call eax
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x416539
push 2
push eax
call fcn.004b6706
mov edi, eax
add esp, 8
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test edi, edi
je 0x416540
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push esi
push 0
push 0xfde9
call eax
cmp eax, dword [ebp - 4]
je 0x41653b
push edi
call fcn.004d1211
add esp, 4
xor edi, edi
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test ebx, ebx
je 0x4165a5
cmp byte [ebx], 0
jne 0x416559
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x4165a7
push 0
push 0
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call eax
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x4165a5
push 2
push eax
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x4165a5
push dword [ebp - 4]
mov eax, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call eax
cmp eax, dword [ebp - 4]
je 0x4165a7
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test edi, edi
je 0x4165c9
push edi
call fcn.004d1211
add esp, 4
test esi, esi
je 0x4165d6
push esi
call fcn.004d1211
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4165f0
Capabilities:
Delete file

Disassembly:
push ebx
push edi
mov edi, ecx
test edi, edi
jne 0x416615
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
cmp byte [edi], 0
push esi
jne 0x416644
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
test esi, esi
je 0x4166c7
jmp 0x4166be
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jle 0x41668f
push 2
push ebx
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x41668f
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
cmp eax, ebx
je 0x4166ae
call fcn.004d1211
add esp, 4
push 0
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
push esi
call fcn.004d1211
add esp, 4
pop esi
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop ebx
ret
Function at 0x4166e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
cmp byte [0x5a2660], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
push edi
jne 0x416708
push 2
push 1
call fcn.004b6706
add esp, 8
mov esi, eax
jmp 0x416755
push 0
push 0
push 0xffffffffffffffff
push 0x5a2660
push 0
push 0xfde9
call ebx
mov edi, eax
cmp edi, 1
jle 0x416753
push 2
push edi
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x416753
push edi
push esi
push 0xffffffffffffffff
push 0x5a2660
push 0
push 0xfde9
call ebx
cmp eax, edi
je 0x416755
push esi
call fcn.004d1211
add esp, 4
xor esi, esi
cmp byte [0x52b2c8], 0
jne 0x41676e
push 2
push 1
call fcn.004b6706
add esp, 8
mov edi, eax
jmp 0x4167bf
push 0
push 0
push 0xffffffffffffffff
push 0x52b2c8
push 0
push 0xfde9
call ebx
mov dword [ebp - 4], eax
cmp eax, 1
jle 0x4167bd
push 2
push eax
call fcn.004b6706
mov edi, eax
add esp, 8
test edi, edi
je 0x4167bd
push dword [ebp - 4]
push edi
push 0xffffffffffffffff
push 0x52b2c8
push 0
push 0xfde9
call ebx
cmp eax, dword [ebp - 4]
je 0x4167bf
push edi
call fcn.004d1211
add esp, 4
xor edi, edi
cmp dword [ebp + 0xc], 0
jne 0x4167c9
xor ebx, ebx
jmp 0x4167da
push 2
push 0x104
call fcn.004b6706
add esp, 8
mov ebx, eax
push ebx
push 0
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [ebp - 4], 0
mov dword [ebp - 8], eax
je 0x416823
push 0
push 0
push 0x104
push dword [ebp + 0xc]
push 0xffffffffffffffff
push ebx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 4], eax
test eax, eax
jne 0x416823
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x416830
push ebx
call fcn.004d1211
add esp, 4
test edi, edi
je 0x41683d
push edi
call fcn.004d1211
add esp, 4
test esi, esi
je 0x41684a
push esi
call fcn.004d1211
add esp, 4
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4169f0
Capabilities:
Create directory

Disassembly:
push edi
mov edi, ecx
test edi, edi
jne 0x416a02
push ecx
call fcn.004e52f0
add esp, 4
pop edi
ret
cmp byte [edi], 0
push ebx
push esi
jne 0x416a27
push 2
push 1
call fcn.004b6706
mov esi, eax
push esi
call fcn.004e52f0
add esp, 0xc
mov edi, eax
test esi, esi
jne 0x416a95
pop esi
pop ebx
pop edi
ret
push 0
push 0
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ebx, eax
cmp ebx, 1
jg 0x416a50
push 0
call fcn.004e52f0
add esp, 4
pop esi
pop ebx
pop edi
ret
push 2
push ebx
call fcn.004b6706
mov esi, eax
add esp, 8
test esi, esi
je 0x416a42
push ebx
push esi
push 0xffffffffffffffff
push edi
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
push esi
cmp eax, ebx
je 0x416a8b
call fcn.004d1211
push 0
call fcn.004e52f0
add esp, 8
pop esi
pop ebx
pop edi
ret
call fcn.004e52f0
add esp, 4
mov edi, eax
push esi
call fcn.004d1211
add esp, 4
mov eax, edi
pop esi
pop ebx
pop edi
ret
Function at 0x41f180
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5512ec]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
movzx eax, ax
test edi, edi
je 0x41f38a
movzx edx, byte [edi + 1]
xor ecx, ecx
test edx, edx
je 0x41f327
mov esi, eax
mov eax, dword [edi + 0x10]
nop dword [eax]
cmp dword [eax], esi
je 0x41f2ac
inc ecx
add eax, 4
cmp ecx, edx
jl 0x41f1c0
mov dword [0x59bb5c], 0
xor esi, esi
nop dword [eax]
mov eax, dword [edi + 0x10]
lea ebx, [esi*4]
push dword [ebx + eax]
lea eax, [ebp - 0x10]
push str._04X
push 5
push eax
call fcn.0041d9d0
add esp, 0x10
lea eax, [ebp - 0x10]
push eax
push 4
push 0x41f130
call dword [sym.imp.KERNEL32.dll_EnumUILanguagesW]
cmp dword [0x59bb5c], 0
jne 0x41f228
movzx eax, byte [edi + 1]
inc esi
cmp esi, eax
jl 0x41f1e0
jmp 0x41f32d
push dword [edi + 0x18]
mov eax, dword [edi + 0x10]
mov ecx, dword [0x55b210]
push dword [ebx + eax]
mov eax, 0xffc
sub eax, ecx
push str.Detected_installed_Windows_Language_Pack_for_0x_04X___s_
push eax
lea eax, [ecx + 0x5a0980]
push eax
call fcn.004050d0
mov ecx, 0x5a0980
mov byte [0x5a197b], 0
add esp, 0x14
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f262
sub ecx, edx
mov word [ecx + 0x5a0980], 0xa0d
add ecx, 2
mov dword [0x55b210], ecx
cmp ecx, 0x1000
jae 0x41f3a0
mov byte [ecx + 0x5a0980], al
mov eax, 0x400
mov ecx, dword [edi + 0x10]
or ax, word [ebx + ecx]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov ecx, dword [0x55b210]
mov eax, 0xffc
push esi
sub eax, ecx
push str.Will_use_default_UI_locale_0x_04X
push eax
lea eax, [ecx + 0x5a0980]
push eax
call fcn.004050d0
mov ecx, 0x5a0980
mov byte [0x5a197b], 0
add esp, 0x10
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f2e0
sub ecx, edx
mov word [ecx + 0x5a0980], 0xa0d
add ecx, 2
mov dword [0x55b210], ecx
cmp ecx, 0x1000
jae 0x41f3a0
or esi, 0x400
mov byte [ecx + 0x5a0980], al
mov ax, si
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
mov dword [0x59bb5c], ecx
push dword [edi + 0x18]
mov ecx, dword [0x55b210]
mov eax, 0xffc
sub eax, ecx
push str.NOTE:_No_Windows_Language_Pack_is_installed_for__s_on_this_system._r_nThis_means_that_some_controls_may_still_be_displayed_using_the_system_locale.
push eax
lea eax, [ecx + 0x5a0980]
push eax
call fcn.004050d0
mov ecx, 0x5a0980
mov byte [0x5a197b], 0
add esp, 0x10
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41f361
sub ecx, edx
mov word [ecx + 0x5a0980], 0xa0d
add ecx, 2
mov dword [0x55b210], ecx
cmp ecx, 0x1000
jae 0x41f3a0
mov byte [ecx + 0x5a0980], al
mov ecx, dword [ebp - 4]
mov eax, 0x400
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a8b60
mov esp, ebp
pop ebp
ret
call fcn.004a8c90
int3