joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406f78
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, dword [ebp + 0xc]
mov eax, ecx
push edi
xor edi, edi
mov dword [ebp - 4], eax
mov esi, dword [esi]
and esi, 7
cmp edx, 5
jae 0x406f9b
xor eax, eax
jmp 0x4070d1
push ebx
lea ebx, [edx - 4]
or ecx, 0xffffffff
add ebx, eax
mov dword [ebp - 0x14], ebx
lea edx, [edi + eax]
cmp edx, ebx
jae 0x406fbe
mov al, byte [edx]
and al, 0xfe
cmp al, 0xe8
je 0x406fbb
inc edx
cmp edx, ebx
jb 0x406fae
mov eax, dword [ebp - 4]
mov edi, edx
sub edi, eax
mov eax, edi
sub eax, ecx
cmp edx, ebx
jae 0x4070b9
cmp eax, 3
jbe 0x406ff5
xor esi, esi
mov al, byte [edx + 4]
mov ecx, edi
mov dword [ebp - 0x10], ecx
test al, al
je 0x407031
cmp al, 0xff
je 0x407031
and esi, 3
xor eax, eax
add esi, esi
or esi, 1
inc eax
jmp 0x4070b2
lea ecx, [eax - 1]
shl esi, cl
and esi, 7
je 0x406fd5
cmp byte [esi + 0x4206b0], 0
je 0x40701e
movzx eax, byte [esi + 0x4206c0]
mov ecx, edx
sub ecx, eax
mov al, byte [ecx + 4]
test al, al
je 0x40701e
cmp al, 0xff
jne 0x406fd5
and esi, 3
mov ecx, edi
add esi, esi
or esi, 1
inc edi
mov eax, dword [ebp - 4]
jmp 0x406fa7
movzx ebx, al
movzx eax, byte [edx + 3]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 2]
shl ebx, 8
or ebx, eax
movzx eax, byte [edx + 1]
shl ebx, 8
or ebx, eax
sub ebx, edi
sub ebx, 5
mov dword [ebp - 0xc], ebx
test esi, esi
je 0x40708a
movzx eax, byte [esi + 0x4206c0]
shl eax, 3
push 0x18
pop ecx
sub ecx, eax
mov dword [ebp - 8], eax
mov eax, ebx
shr eax, cl
test al, al
je 0x407079
cmp al, 0xff
jne 0x40708a
xor ebx, ebx
push 0x20
pop ecx
sub ecx, dword [ebp - 8]
inc ebx
shl ebx, cl
dec ebx
xor ebx, dword [ebp - 0xc]
jmp 0x40704f
mov ecx, dword [ebp - 0x10]
mov eax, ebx
shr eax, 0x18
and al, 1
mov byte [edx + 1], bl
neg al
mov byte [edx + 4], al
mov eax, ebx
shr eax, 0x10
mov byte [edx + 3], al
mov eax, ebx
mov ebx, dword [ebp - 0x14]
shr eax, 8
push 5
mov byte [edx + 2], al
pop eax
add edi, eax
jmp 0x407029
lea ecx, [eax - 1]
shl esi, cl
xor ecx, ecx
and esi, 7
cmp eax, 3
mov eax, dword [ebp + 0xc]
cmova esi, ecx
pop ebx
mov dword [eax], esi
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x407d1f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
cmp dword [ecx + 0x14], 8
jb 0x407d27
mov ecx, dword [ecx]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
ret

Function at 0x407d35
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x407d55
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x407d67
mov al, 1
jmp 0x407e03
push ebx
push 0x20a
xor ebx, ebx
lea eax, [ebp - 0x210]
push ebx
push eax
call fcn.00409600
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x407d87
mov esi, dword [esi]
lea eax, [ebp - 0x210]
push esi
push eax
call fcn.0040e458
lea eax, [ebp - 0x210]
mov dword [ebp - 0x230], ebx
mov dword [ebp - 0x228], eax
xorps xmm0, xmm0
pop ecx
mov eax, 0x1494
mov dword [ebp - 0x224], ebx
mov word [ebp - 0x220], ax
lea eax, [ebp - 0x230]
pop ecx
push eax
movlpd qword [ebp - 0x21e], xmm0
mov dword [ebp - 0x216], ebx
mov dword [ebp - 0x22c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
cmp dword [ebp - 0x21e], ebx
je 0x407dee
xor al, al
jmp 0x407e02
test eax, eax
je 0x407dfe
cmp eax, 2
je 0x407dfe
cmp eax, 0x402
jne 0x407e00
mov bl, 1
mov al, bl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004082db
leave
ret
Function at 0x407e10
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41a109
mov eax, dword fs:[0]
push eax
mov eax, 0x228c
call fcn.00419cd0
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, edx
mov dword [ebp - 0x2298], eax
mov esi, ecx
test eax, eax
je 0x407fb0
lea eax, [ebp - 0x248]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, edi
jae 0x407fb0
test eax, eax
je 0x407fb0
xor ebx, ebx
push ebx
call fcn.0040e4f9
push eax
call fcn.0040e324
pop ecx
pop ecx
mov dword [ebp - 0x2294], ebx
xor eax, eax
mov dword [ebp - 0x2250], ebx
mov dword [ebp - 0x224c], 7
mov word [ebp - 0x2260], ax
lea eax, [ebp - 0x2260]
mov dword [ebp - 4], ebx
cmp eax, esi
je 0x407ecc
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x407ebd
mov eax, dword [esi]
push dword [esi + 0x10]
lea ecx, [ebp - 0x2260]
push eax
call fcn.004075db
push 0xa
pop ecx
xor eax, eax
lea edi, [ebp - 0x38]
push 0xa
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x38]
push 0x14
push eax
call fcn.0040e303
cdq
mov ecx, 0x7fff
idiv ecx
push edx
call fcn.0040e423
lea eax, [ebp - 0x38]
push eax
call fcn.0040e082
add esp, 0x14
lea ecx, [ebp - 0x2260]
push eax
lea eax, [ebp - 0x38]
push eax
call fcn.00407629
lea eax, [ebp - 0x248]
push eax
lea ecx, [ebp - 0x2290]
call fcn.004074fa
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2260]
cmp dword [ebp - 0x224c], 8
push dword [ebp - 0x2250]
cmovae ecx, dword [ebp - 0x2260]
push ecx
mov ecx, eax
call fcn.00407629
push eax
lea ecx, [ebp - 0x2278]
call fcn.0040752b
lea ecx, [ebp - 0x2290]
mov byte [ebp - 4], 3
call fcn.004075b0
cmp dword [ebp - 0x2264], 8
lea eax, [ebp - 0x2278]
push ebx
cmovae eax, dword [ebp - 0x2278]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x407fcc
lea ecx, [ebp - 0x2278]
call fcn.004075b0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2260]
call fcn.004075b0
mov eax, dword [ebp - 0x2294]
inc eax
mov dword [ebp - 0x2294], eax
cmp eax, 0x32
jl 0x407e8d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004082db
leave
ret
push 0x2000
lea eax, [ebp - 0x2248]
push ebx
push eax
call fcn.00409600
add esp, 0xc
lea ecx, [ebp - 0x2248]
cmp dword [ebp - 0x2264], 8
lea eax, [ebp - 0x2278]
cmovae eax, dword [ebp - 0x2278]
push 0x1000
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x40802e
lea eax, [ebp - 0x2248]
push eax
call fcn.0040e082
pop ecx
mov ecx, dword [ebp - 0x2298]
push eax
lea eax, [ebp - 0x2248]
push eax
call fcn.004075db
mov bl, 1
lea ecx, [ebp - 0x2278]
call fcn.004075b0
lea ecx, [ebp - 0x2260]
call fcn.004075b0
mov al, bl
jmp 0x407fb2
Function at 0x40804b
Capabilities:
Parse pe header

Disassembly:
push 0xc
push 0x420ee8
call fcn.00408db0
xor eax, eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x40806c
mov dword [ebp - 4], 0xfffffffe
jmp 0x4080a2
mov edx, 0x5a4d
cmp word [ecx], dx
jne 0x408063
mov edx, dword [ecx + 0x3c]
add edx, ecx
je 0x408063
cmp dword [edx], 0x4550
jne 0x408063
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
inc eax
jmp 0x4080a2
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4080b2
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x422004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 6
xor eax, eax
mov dword [ebp - 0x118], ecx
pop ecx
lea edi, [ebp - 0x110]
xor ebx, ebx
rep stosd dword es:[edi], eax
lea edi, [ebp - 0x14]
mov esi, ebx
stosd dword es:[edi], eax
push 0x80
push ebx
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
push eax
call fcn.00409600
mov eax, dword [ebp - 0x118]
xor ecx, ecx
add esp, 0xc
inc ecx
mov edi, ebx
test eax, eax
je 0x4081a6
push ebx
push 0x80
push 3
push ebx
push ecx
push 0x80000000
push eax
mov dword [ebp - 0x120], ebx
mov dword [ebp - 0x11c], ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
je 0x40819f
lea ecx, [ebp - 0x120]
xorps xmm0, xmm0
push ecx
push eax
movlpd qword [ebp - 0x120], xmm0
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x408199
mov esi, dword [ebp - 0x120]
push esi
call fcn.0040832f
pop ecx
push esi
mov edi, eax
push ebx
push edi
call fcn.00409600
add esp, 0xc
mov dword [ebp - 0x118], ebx
lea eax, [ebp - 0x118]
push ebx
push eax
push esi
push edi
push dword [ebp - 0x114]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
mov esi, ebx
cmovne esi, dword [ebp - 0x118]
mov eax, dword [ebp - 0x114]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test edi, edi
je 0x4082ca
cmp esi, 0x40
jbe 0x4082c3
mov ecx, edi
call fcn.0040804b
test eax, eax
je 0x4082c3
mov ecx, dword [edi + 0x28]
test ecx, ecx
je 0x4082c3
lea eax, [esi - 0x80]
cmp ecx, eax
ja 0x4082c3
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0x18
push eax
lea eax, [ebp - 0x98]
push eax
push ecx
lea eax, [ecx + edi]
push eax
push ecx
push ecx
call fcn.00401929
add esp, 0x18
test eax, eax
je 0x4082c3
push 0x18
lea eax, [ebp - 0x98]
push eax
lea eax, [ebp - 0x110]
push eax
call fcn.00409080
mov eax, dword [ebp - 0x10c]
add esp, 0xc
mov dword [ebp - 0x114], eax
test eax, eax
je 0x4082c3
cmp eax, esi
ja 0x4082c3
mov ecx, dword [ebp - 0x110]
add eax, ecx
cmp eax, esi
ja 0x4082c3
push 0x5c
lea eax, [ebp - 0xf8]
push ebx
push eax
lea esi, [ecx + edi]
call fcn.00409600
movaps xmm0, xmmword [0x4207b0]
lea ecx, [ebp - 0xf8]
add esp, 0xc
mov dword [ebp - 0xf8], 0x67452301
mov edx, esi
mov dword [ebp - 0xe4], ebx
movups xmmword [ebp - 0xf4], xmm0
mov dword [ebp - 0xa0], ebx
push dword [ebp - 0x114]
call fcn.00402065
pop ecx
lea edx, [ebp - 0xf8]
lea ecx, [ebp - 0x14]
call fcn.004022fc
push 0x10
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x14]
push eax
call fcn.0040a367
add esp, 0xc
test eax, eax
push 1
pop eax
cmove ebx, eax
push edi
call fcn.004082ec
pop ecx
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004082db
leave
ret
Function at 0x403f9c
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00405ab4
test esi, esi
jne 0x403fd2
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00405bf0
jmp 0x403ff0
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403e80
mov edi, eax
test esi, esi
je 0x403ff0
cmp dword [ebx], 0
je 0x403ff0
dec esi
jmp 0x403fd9
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405834
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x43204c], 0
je 0x40589b
cmp word [0x432338], 0xd7b2
jne 0x40585d
cmp dword [0x432340], 0
jbe 0x40585d
mov eax, 0x432334
call dword [0x432350]
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, 0x4058c8
call fcn.00405f54
push eax
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x42d022], 0
jne 0x4058b7
push 0
push 0x42d99a
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x406ff4
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 0x407159
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00405ab4
cmp si, word [0x42d9d8]
jb 0x40708c
cmp si, word [0x42dbd8]
ja 0x40708c
mov edi, 0x40
xor eax, eax
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 8]
jb 0x40708c
mov ebx, edi
add ebx, dword [ebp - 8]
shr ebx, 1
cmp si, word [ebx*8 + 0x42d9d8]
jae 0x407066
mov edi, ebx
dec edi
jmp 0x407087
cmp si, word [ebx*8 + 0x42d9d8]
jbe 0x407076
inc ebx
mov dword [ebp - 8], ebx
jmp 0x407087
mov edx, dword [ebp - 4]
mov eax, dword [ebx*8 + 0x42d9dc]
call fcn.00406f14
jmp 0x40708c
cmp edi, dword [ebp - 8]
jae 0x407050
mov eax, dword [ebp - 4]
cmp dword [eax], 0
jne 0x40713b
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40713b
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.00406090
push dword [ebp - 0x160]
push 0x407174
lea eax, [ebp - 0x164]
lea edx, [ebp - 0x15c]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x164]
push 0x407184
lea eax, [ebp - 0x168]
lea edx, [ebp - 0xb2]
mov ecx, 0x55
call fcn.00406090
push dword [ebp - 0x168]
mov eax, dword [ebp - 4]
mov edx, 5
call fcn.00406248
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407160
lea eax, [ebp - 0x168]
mov edx, 3
call fcn.00405b14
ret
Function at 0x40730c
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 0x40740f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x434b7c
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x434b94]
jne 0x407358
mov eax, esi
mov edx, 0x434b96
mov ecx, 0x55
call fcn.00406090
push 0x434b7c
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4073f9
push 0x434b7c
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
call fcn.00405ab4
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4073c7
cmp byte [0x434b78], 0
je 0x40738c
mov edx, esi
mov eax, ebx
call fcn.004071f0
jmp 0x4073c7
mov edx, esi
mov eax, ebx
call fcn.00406ff4
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4073c7
cmp dword [esi], 0
je 0x4073b0
mov eax, esi
mov edx, 0x407428
call fcn.00406168
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00406ff4
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406168
push 0x434b7c
call sub.kernel32.dll_EnterCriticalSection
mov word [0x434b94], bx
push 0xaa
mov eax, dword [esi]
call fcn.00405ffc
push eax
push 0x434b96
call sub.kernel32.dll_lstrcpynW
push 0x434b7c
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407416
lea eax, [ebp - 4]
call fcn.00405ab4
ret
Function at 0x407644
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.00405b98
xor eax, eax
push ebp
push 0x407869
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407684
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x40769e
push 0x105
mov eax, dword [ebp - 4]
call fcn.00405ffc
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x407853
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407878
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40776d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407878
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40776d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4078b4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40776d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4078b4
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40776d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x4078e8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x40776d
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x40791c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x407853
xor eax, eax
push ebp
push 0x40784c
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407450
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 0x4077dc
mov eax, dword [ebp - 0x10]
call fcn.00403bdc
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.00406054
jmp 0x407827
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x40795c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407827
mov eax, dword [ebp - 0x10]
call fcn.00403bdc
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x40795c
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406054
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407853
cmp dword [ebp - 8], 0
je 0x407842
mov eax, dword [ebp - 8]
call fcn.00403bf8
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 0x407870
lea eax, [ebp - 4]
call fcn.00405ab4
ret
Function at 0x407b58
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.00405b98
xor eax, eax
push ebp
push 0x407c18
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.00406090
mov ecx, dword [ebp - 0x10]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004061c0
mov eax, dword [ebx]
call fcn.00407a20
test al, al
jne 0x407bf5
mov word [ebp - 8], 0
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xc]
mov ecx, 4
call fcn.00406090
mov ecx, dword [ebp - 0x14]
mov eax, ebx
mov edx, dword [ebp - 4]
call fcn.004061c0
mov eax, dword [ebx]
call fcn.00407a20
test al, al
jne 0x407bf5
mov eax, ebx
call fcn.00405ab4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c1f
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00405b14
lea eax, [ebp - 4]
call fcn.00405ab4
ret

Function at 0x408190
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 0x414fec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, esi
call fcn.00405ffc
mov edi, eax
push edi
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x415056
test ah, 4
je 0x41504f
test bl, bl
jne 0x415014
mov al, 1
jmp 0x41507d
test al, 0x10
je 0x41501c
xor eax, eax
jmp 0x41507d
push 0
push 0
push 3
push 0
push 1
push 0x80000000
push edi
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x415040
push eax
call sub.kernel32.dll_CloseHandle_1
mov al, 1
jmp 0x41507d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 0x20
sete al
jmp 0x41507d
test al, 0x10
sete al
jmp 0x41507d
call sub.kernel32.dll_GetLastError_2
mov ebx, eax
cmp ebx, 2
je 0x415077
cmp ebx, 3
je 0x415077
cmp ebx, 0x7b
je 0x415077
mov eax, esi
call fcn.00414fac
test al, al
jne 0x41507b
xor eax, eax
jmp 0x41507d
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x415084
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.00405ffc
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x41512b
test esi, 0x400
jne 0x4150c0
test esi, 0x10
setne bl
jmp 0x41514f
cmp byte [esp], 0
je 0x4150f4
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x41514f
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x41514f
test esi, 0x10
je 0x415100
mov bl, 1
jmp 0x41514f
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x415127
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x41514f
mov bl, 1
jmp 0x41514f
call sub.kernel32.dll_GetLastError_2
cmp eax, 2
je 0x415149
cmp eax, 3
je 0x415149
cmp eax, 0x7b
je 0x415149
cmp eax, 0x35
je 0x415149
cmp eax, 0x15
jne 0x41514d
xor ebx, ebx
jmp 0x41514f
mov bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x41525c
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.00405ffc
mov ebp, eax
push ebp
call sub.kernel32.dll_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x4152b1
call sub.kernel32.dll_GetLastError_2
mov edi, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x4152ab
test ah, 4
je 0x4152ab
test al, 0x10
je 0x4152ab
mov eax, esi
call fcn.00405ffc
push eax
call sub.kernel32.dll_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x4152b1
push edi
call sub.kernel32.dll_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x416ae8
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 0x416b21
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00405bf0
jmp 0x416b2a
mov eax, ebx
mov edx, esi
call fcn.00405d6c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x416b34
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 0x416b56
movzx eax, word [esp]
jmp 0x416b58
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret