joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405d00
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x426054], 0
je 0x405d67
cmp word [0x426340], 0xd7b2
jne 0x405d29
cmp dword [0x426348], 0
jbe 0x405d29
mov eax, 0x42633c
call dword [0x426358]
push 0
lea eax, [esp + 4]
push eax
push 0x1d
push str.Runtime_error_____at_00000000
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
push 0
lea eax, [esp + 4]
push eax
push 2
mov eax, 0x405d94
call fcn.00406544
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x424026], 0
jne 0x405d83
push 0
push 0x4249b2
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407928
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe98
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x160], ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x407a8d
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405f8c
cmp si, word [0x4249f0]
jb 0x4079c0
cmp si, word [0x424bf0]
ja 0x4079c0
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x4079c0
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x4249f0]
jae 0x40799a
mov edi, ebx
dec edi
jmp 0x4079bb
cmp si, word [ebx*8 + 0x4249f0]
jbe 0x4079aa
inc ebx
mov dword [ebp - 8], ebx
jmp 0x4079bb
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x4249f4]
call fcn.00407848
jmp 0x4079c0
cmp edi, dword [ebp - 8]
jae 0x407984
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x407a6f
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407a6f
push 0x55
lea eax, [ebp - 0xb2]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x15c]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x160]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004066dc
push dword [ebp - 0x160]
push 0x407aa8
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.004066dc
push dword [ebp - 0x164]
push 0x407ab8
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.004066dc
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406894
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407a94
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405fec
ret
Function at 0x407c40
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x407d44
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x428b84
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x428b9c]
jne 0x407c8c
mov eax, esi
mov edx, 0x428b9e
mov ecx, 0x55
call fcn.004066dc
push 0x428b84
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x407d2e
push 0x428b84
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405f8c
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x407cfb
cmp byte [0x428b80], 0
je 0x407cc0
mov edx, esi
mov eax, ebx
call fcn.00407b24
jmp 0x407cfb
mov edx, esi
mov eax, ebx
call fcn.00407928
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x407cfb
cmp dword [esi], 0
je 0x407ce4
mov eax, esi
mov edx, 0x407d5c
call fcn.004067b4
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00407928
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.004067b4
push 0x428b84
call sub.kernel32.dll_EnterCriticalSection
mov word [0x428b9c], bx
mov eax, dword [esi]
call fcn.00406648
mov ecx, eax
mov eax, 0x428b9e
mov edx, 0xaa
call fcn.004077a8
push 0x428b84
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407d4b
lea eax, [ebp - 4]
call fcn.00405f8c
ret
Function at 0x407f74
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406070
xor eax, eax
push ebp
push 0x408199
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407fb4
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407fce
mov eax, dword [ebp - 4]
call fcn.00406648
mov ecx, eax
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.004077a8
cmp word [ebp - 0x21a], 0
je 0x408183
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4081a8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40809d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4081a8
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40809d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4081e4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40809d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4081e4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40809d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408218
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40809d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40824c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408183
xor eax, eax
push ebp
push 0x40817c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407d84
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x40810c
mov eax, dword [ebp - 0x10]
call fcn.00403ee8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
lea eax, [ebp - 0x21a]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004066a0
jmp 0x408157
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40828c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408157
mov eax, dword [ebp - 0x10]
call fcn.00403ee8
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40828c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004066a0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408183
cmp dword [ebp - 8], 0
je 0x408172
mov eax, dword [ebp - 8]
call fcn.00403f04
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4081a0
lea eax, [ebp - 4]
call fcn.00405f8c
ret
Function at 0x408488
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], ecx
mov ebx, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00406070
xor eax, eax
push ebp
push 0x408548
push dword fs:[eax]
mov dword fs:[eax], esp
push 4
lea eax, [ebp - 0xc]
push eax
push 3
call sub.kernel32.dll_GetUserDefaultUILanguage
movzx eax, ax
push eax
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004066dc
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040680c
mov eax, dword [ebx]
call fcn.00408350
test al, al
jne 0x408525
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.004066dc
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.0040680c
mov eax, dword [ebx]
call fcn.00408350
test al, al
jne 0x408525
mov eax, ebx
call fcn.00405f8c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40854f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405fec
lea eax, [ebp - 4]
call fcn.00405f8c
ret

Function at 0x408bcc
Capabilities:
Get system information on windows

Disassembly:
add esp, 0xffffffdc
push esp
call sub.kernel32.dll_GetSystemInfo
mov eax, dword [esp + 0x14]
add esp, 0x24
ret

Function at 0x4157b8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x200]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x4157f1
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004060e4
jmp 0x4157fa
mov eax, ebx
mov edx, esi
call fcn.00406260
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415804
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov edi, ecx
mov esi, edx
mov ebx, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push ebx
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x415826
movzx eax, word [esp]
jmp 0x415828
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x416978
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff778
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 4], ecx
xor ecx, ecx
push ebp
push 0x416a9d
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.00416780
mov esi, eax
mov eax, dword [0x42589c]
cmp byte [eax], 0
je 0x416a45
mov eax, dword [0x4257a8]
call fcn.0040428c
call fcn.0040403c
push 0
push 0
push 0
push 0
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
mov ebx, eax
push ebx
lea eax, [ebp - 4]
mov ecx, 1
mov edx, dword [0x416948]
call fcn.0040725c
add esp, 4
push 0
push 0
push ebx
mov eax, dword [ebp - 4]
push eax
push esi
lea eax, [ebp - 0x888]
push eax
push 0
push 1
call sub.kernel32.dll_WideCharToMultiByte_1
push 0
lea eax, [ebp - 8]
push eax
push ebx
mov eax, dword [ebp - 4]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [ebp - 8]
push eax
push 2
push 0x416ab8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x416a81
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x425780]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x428c4c]
call fcn.00407448
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [ebp - 0x88]
push eax
lea eax, [ebp - 0x888]
push eax
push 0
call sub.user32.dll_MessageBoxW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x416aa4
lea eax, [ebp - 4]
mov edx, dword [0x416948]
call fcn.00407380
ret

Function at 0x4183dc
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
call fcn.00406350
mov ebp, eax
push ebp
push 0
push 0
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408bac
mov edi, eax
cmp edi, 0x104
jbe 0x418387
mov eax, edi
add eax, eax
call fcn.00403ee8
mov esi, eax
jmp 0x418389
mov esi, esp
push ebp
push esi
push edi
mov ecx, ebx
xor edx, edx
mov eax, 0xfde9
call fcn.00408bac
push esi
call sub.user32.dll_CharUpperW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4183c2
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4183ac
mov eax, esp
cmp esi, eax
je 0x4183cf
mov eax, esi
call fcn.00403f04
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x418408
cmp bl, 0
je 0x418404
cmp bl, 0x41
jl 0x4183ff
cmp bl, 0x5a
jg 0x4183ff
or bl, 0x20
xor al, bl
inc esi
jmp 0x4183e3
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418348

Function at 0x418624
Capabilities:
Get geographical location

Disassembly:
push ebx
add esp, 0xfffff800
mov ebx, ecx
mov word [esp], 0
push 0x400
lea ecx, [esp + 4]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
mov eax, ebx
mov edx, esp
mov ecx, 0x400
call fcn.004066dc
add esp, 0x800
pop ebx
ret
Function at 0x419780
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4197c6
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00419714
mov eax, dword [ebp - 4]
call fcn.00406648
push eax
call sub.kernel32.dll_GetFileAttributesW
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4197cd
lea eax, [ebp - 4]
call fcn.00405f8c
ret

Function at 0x4199d8
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x419a6d
push dword fs:[eax]
mov dword fs:[eax], esp
test esi, esi
jne 0x419a23
push 0x104
lea eax, [ebp - 0x20c]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW_1
mov ecx, eax
lea edx, [ebp - 0x20c]
mov eax, edi
call fcn.004060e4
jmp 0x419a57
call sub.kernel32.dll_GetCommandLineW_1
mov ebx, eax
cmp word [ebx], 0
jne 0x419a3a
lea eax, [ebp - 4]
call fcn.00405f8c
jmp 0x419a4d
lea edx, [ebp - 4]
mov eax, ebx
call fcn.00419898
mov ebx, eax
test esi, esi
je 0x419a4d
dec esi
jmp 0x419a2a
mov eax, edi
mov edx, dword [ebp - 4]
call fcn.00406260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419a74
lea eax, [ebp - 4]
call fcn.00405f8c
ret

Function at 0x419a7c
Capabilities:
Get common file path

Disassembly:
push ebx
add esp, 0xfffffdf8
mov ebx, eax
push 0x104
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetWindowsDirectoryW
mov edx, ebx
mov eax, esp
call fcn.004140f8
add esp, 0x208
pop ebx
ret
Function at 0x419bd8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x419d0e
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x419cf8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x419c35
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x419cf8
cmp dword [ebp - 0x14], 0
jne 0x419c4a
mov eax, dword [ebp - 0xc]
call fcn.00405f8c
mov bl, 1
jmp 0x419cf8
cmp dword [ebp - 0x14], 0x70000000
jb 0x419c58
call fcn.00416adc
mov esi, dword [ebp - 0x14]
inc esi
shr esi, 1
lea eax, [ebp - 4]
mov ecx, esi
xor edx, edx
call fcn.004060e4
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 4]
call fcn.00406400
push eax
lea eax, [ebp - 0x10]
push eax
push 0
mov eax, dword [ebp - 8]
push eax
push edi
call sub.advapi32.dll_RegQueryValueExW_1
cmp eax, 0xea
je 0x419bfe
test eax, eax
jne 0x419cf8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 0xc]
je 0x419ca6
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp + 8]
jne 0x419cf8
mov esi, dword [ebp - 0x14]
shr esi, 1
jmp 0x419cae
dec esi
test esi, esi
je 0x419cbd
mov eax, dword [ebp - 4]
cmp word [eax + esi*2 - 2], 0
je 0x419cad
cmp dword [ebp - 0x10], 7
jne 0x419cc8
test esi, esi
je 0x419cc8
inc esi
lea eax, [ebp - 4]
mov edx, esi
call fcn.00406734
cmp dword [ebp - 0x10], 7
jne 0x419ceb
test esi, esi
je 0x419ceb
lea eax, [ebp - 4]
call fcn.00406400
mov word [eax + esi*2 - 2], 0
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
call fcn.00406260
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x419d15
lea eax, [ebp - 4]
call fcn.00405f8c
ret

Function at 0x41b394
Capabilities:
Hash data with crc32

Disassembly:
push esi
xor esi, esi
mov ecx, 0x42aec8
mov eax, esi
mov edx, 8
test al, 1
je 0x41b3b0
shr eax, 1
xor eax, 0xedb88320
jmp 0x41b3b2
shr eax, 1
dec edx
jne 0x41b3a3
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x41b39c
pop esi
ret

Function at 0x41b3c8
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov ebx, eax
cmp dword [0x42aec4], 0
jne 0x41b3eb
call fcn.0041b394
push 1
push 0x42aec4
call sub.kernel32.dll_InterlockedExchange
mov eax, edi
test esi, esi
je 0x41b415
mov edx, 0xff
and edx, ebx
movzx ecx, byte [eax]
xor dx, cx
movzx edx, dx
mov edx, dword [edx*4 + 0x42aec8]
shr ebx, 8
xor edx, ebx
mov ebx, edx
dec esi
inc eax
test esi, esi
jne 0x41b3f1
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x41deec
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
mov esi, edx
mov ebx, eax
lea edx, [ebp - 9]
mov eax, ebx
call fcn.0041dea0
test al, al
jne 0x41df0d
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x41df59
xor eax, eax
push ebp
push 0x41df49
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00406648
push eax
call sub.kernel32.dll_DeleteFileW
mov dword [ebp - 4], eax
call sub.kernel32.dll_GetLastError_2
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41df50
lea eax, [ebp - 9]
call fcn.0041dedc
ret
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41e170
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov ecx, 4
push 0
push 0
dec ecx
jne 0x41e178
push ecx
push ebx
push esi
mov esi, eax
xor eax, eax
push ebp
push 0x41e265
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
call fcn.00419aa8
mov edx, dword [ebp - 8]
mov ecx, 0x41e280
xor eax, eax
call fcn.0041e054
push 0
mov eax, dword [ebp - 4]
call fcn.00406648
push eax
call sub.kernel32.dll_CreateDirectoryW
test eax, eax
jne 0x41e233
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0xb7
je 0x41e192
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x1c]
mov edx, dword [ebp - 4]
mov al, 0x36
call fcn.0041dca4
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov eax, ebx
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x20]
call fcn.00413ac8
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x14], eax
lea edx, [ebp - 0x24]
mov eax, ebx
call fcn.0041a024
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
lea edx, [ebp - 0x18]
mov ecx, 2
mov al, 0x68
call fcn.0041dc74
mov ecx, dword [ebp - 0xc]
mov dl, 1
mov eax, dword [0x41122c]
call fcn.00416ae8
call fcn.0040576c
jmp 0x41e192
mov eax, esi
mov edx, dword [ebp - 4]
call fcn.00406260
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41e26c
lea eax, [ebp - 0x24]
mov edx, 3
call fcn.00405fec
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405fec
ret

Function at 0x41e294
Capabilities:
Shutdown system

Disassembly:
add esp, 0xffffffec
mov eax, dword [0x4258fc]
cmp dword [eax], 2
jne 0x41e2fc
push esp
push 0x28
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
test eax, eax
jne 0x41e2b7
xor eax, eax
jmp 0x41e30b
lea eax, [esp + 8]
push eax
push 0x41e310
push 0
call sub.advapi32.dll_LookupPrivilegeValueW
mov dword [esp + 4], 1
mov dword [esp + 0x10], 2
push 0
push 0
push 0
lea eax, [esp + 0x10]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_AdjustTokenPrivileges
call sub.kernel32.dll_GetLastError_2
test eax, eax
je 0x41e2fc
xor eax, eax
jmp 0x41e30b
push 0
push 2
call sub.user32.dll_ExitWindowsEx
cmp eax, 1
sbb eax, eax
inc eax
add esp, 0x14
ret
Function at 0x41e338
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, ecx
dec esi
test esi, esi
jl 0x41e392
inc esi
xor edi, edi
cmp edi, 1
jne 0x41e35e
mov eax, dword [ebp + 0xc]
push eax
call sub.kernel32.dll_Sleep_1
jmp 0x41e36c
cmp edi, 1
jle 0x41e36c
mov eax, dword [ebp + 8]
push eax
call sub.kernel32.dll_Sleep_1
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0041deec
test eax, eax
jne 0x41e392
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x41e392
call sub.kernel32.dll_GetLastError_2
cmp eax, 3
je 0x41e392
inc edi
dec esi
jne 0x41e34e
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 8

Function at 0x41e39c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, eax
push 2
lea eax, [ebp - 4]
push eax
push 0x20001004
movzx eax, bx
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
test eax, eax
jle 0x41e3c0
mov eax, dword [ebp - 4]
jmp 0x41e3c3
or eax, 0xffffffff
pop ebx
pop ecx
pop ebp
ret

Function at 0x41e3c8
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov byte [ebp - 1], dl
mov edi, eax
mov eax, dword [ebp + 8]
xor edx, edx
mov dword [eax], edx
mov byte [ebp - 2], 0
test esi, esi
je 0x41e415
xor ebx, ebx
jmp 0x41e40a
mov eax, dword [ebp - 8]
mov edx, dword [eax]
mov eax, esi
call fcn.004135b0
test eax, eax
jne 0x41e409
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 2
jmp 0x41e4c0
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x41e3eb
movzx eax, byte [ebp - 1]
sub al, 1
jb 0x41e421
je 0x41e42a
jmp 0x41e433
call fcn.00419d54
mov esi, eax
jmp 0x41e435
call sub.kernel32.dll_GetUserDefaultLangID
mov esi, eax
jmp 0x41e435
xor esi, esi
test si, si
je 0x41e4c0
xor ebx, ebx
jmp 0x41e45b
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
movzx edx, si
cmp eax, edx
jne 0x41e45a
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x41e4c0
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x41e442
xor ebx, ebx
jmp 0x41e4b5
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x28]
and eax, 0x3ff
mov dx, 0x3ff
and dx, si
movzx edx, dx
cmp eax, edx
jne 0x41e4b4
mov ax, 0x3ff
and ax, si
cmp ax, 4
jne 0x41e4a9
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x28]
call fcn.0041e39c
push eax
mov eax, esi
call fcn.0041e39c
pop edx
cmp edx, eax
jne 0x41e4b4
mov eax, dword [ebp + 8]
mov dword [eax], ebx
mov byte [ebp - 2], 1
jmp 0x41e4c0
inc ebx
lea edx, [ebp - 8]
mov eax, ebx
call edi
test al, al
jne 0x41e46a
movzx eax, byte [ebp - 2]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4