joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48d670
Capabilities:
Get file attributes
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x4d5996
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14c
mov eax, dword [0x5dfc28]
push ebx
push esi
mov ebx, ecx
mov dword [esp + 8], eax
mov dword [esp + 0x15c], 0
mov dword [esp + 0xc], eax
mov esi, dword [esp + 0x164]
lea ecx, [esp + 0xc]
push esi
mov byte [esp + 0x160], 1
call fcn.004bddee
push str..
lea ecx, [esp + 0x10]
call fcn.004be041
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x10], eax
jne 0x48d713
lea ecx, [esp + 0xc]
mov byte [esp + 0x15c], 0
call fcn.004bdc65
lea ecx, [esp + 8]
mov dword [esp + 0x15c], 0xffffffff
call fcn.004bdc65
xor eax, eax
jmp 0x48d858
push ebp
mov ebp, dword [esp + 0x16c]
push edi
mov edi, dword [esp + 0x174]
lea edx, [esp + 0x48]
push 0x5d91a0
push edx
call fcn.004ac334
add esp, 8
test eax, eax
je 0x48d809
lea eax, [esp + 0x48]
push 0x5d919c
push eax
call fcn.004ac334
add esp, 8
test eax, eax
je 0x48d809
test ebp, ebp
jne 0x48d775
lea ecx, [esp + 0x48]
push str.desktop.ini
push ecx
call fcn.004ac3e3
add esp, 8
test eax, eax
je 0x48d809
push esi
lea ecx, [esp + 0x14]
call fcn.004bddee
push 0x5c
lea ecx, [esp + 0x14]
call fcn.004be068
lea edx, [esp + 0x48]
lea ecx, [esp + 0x10]
push edx
call fcn.004be041
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
test al, 1
je 0x48d7b5
mov ecx, dword [esp + 0x10]
and al, 0xfe
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test byte [esp + 0x1c], 0x10
je 0x48d7d7
mov edx, dword [esp + 0x10]
push edi
push ebp
push edx
mov ecx, ebx
call fcn.0048d670
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x48d809
test edi, edi
je 0x48d7fe
lea ecx, [esp + 0x48]
push str.index.dat
push ecx
call fcn.004ac3e3
add esp, 8
test eax, eax
jne 0x48d7fe
lea edx, [esp + 0x48]
mov ecx, ebx
push edx
push esi
call fcn.0048d880
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov edx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x48d723
mov eax, dword [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
lea ecx, [esp + 0x14]
mov byte [esp + 0x164], 0
call fcn.004bdc65
lea ecx, [esp + 0x10]
mov dword [esp + 0x164], 0xffffffff
call fcn.004bdc65
pop edi
mov eax, 1
pop ebp
mov ecx, dword [esp + 0x154]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x158
ret 0xc
Function at 0x48d880
Capabilities:
Get file size
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4d59ab
push eax
mov eax, 0x2718
mov dword fs:[0], esp
call fcn.004acc20
mov eax, dword [0x5dfc28]
push edi
mov dword [esp + 4], eax
mov ecx, 0x9c4
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 0x2724], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x272c]
push ecx
lea ecx, [esp + 8]
call fcn.004bddee
push 0x5c
lea ecx, [esp + 8]
call fcn.004be068
mov edx, dword [esp + 0x2730]
lea ecx, [esp + 4]
push edx
call fcn.004be041
mov eax, dword [esp + 4]
push 0
push 0x80
push 3
push 0
push 3
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x48d926
lea ecx, [esp + 4]
mov dword [esp + 0x2724], eax
call fcn.004bdc65
xor eax, eax
jmp 0x48d9a3
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push 0
mov esi, eax
push 0x40
push edi
sub esi, 0x40
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jbe 0x48d981
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
cmp esi, 0x2710
push 0
jbe 0x48d973
lea ecx, [esp + 0x14]
lea edx, [esp + 0x18]
push ecx
push 0x2710
push edx
push edi
call ebx
sub esi, 0x2710
jne 0x48d94d
jmp 0x48d981
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push esi
push ecx
push edi
call ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0xc]
mov dword [esp + 0x272c], 0xffffffff
call fcn.004bdc65
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x271c]
pop edi
mov dword fs:[0], ecx
add esp, 0x2724
ret 8

Function at 0x48ff10
Capabilities:
Execute anti-debugging instructions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ef340
push 0x4ae544
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [ebp - 4], 0
push dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
rdtsc
mov esi, eax
mov edi, edx
call ebx
rdtsc
pop ebx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 4], 0xffffffff
xor esi, esi
mov edi, dword [ebp - 0x20]
push 1
push esi
push esi
mov eax, dword [ebp - 0x28]
push eax
call fcn.004ac300
sub eax, esi
sbb edx, edi
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
sbb edx, esi
mov ecx, dword [ebp - 0x24]
add eax, ecx
adc edx, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4900c0
Capabilities:
Check os version

Disassembly:
sub esp, 0xa0
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExA]
push edi
mov ecx, 0x27
xor eax, eax
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
lea eax, [esp + 0xc]
mov dword [esp + 0xc], 0x9c
push eax
call esi
test eax, eax
jne 0x490101
lea ecx, [esp + 0xc]
mov dword [esp + 0xc], 0x94
push ecx
call esi
test eax, eax
je 0x49016e
cmp dword [esp + 0x1c], 2
jne 0x49016e
cmp dword [esp + 0x10], 5
jne 0x49016e
cmp dword [esp + 0x14], 1
jne 0x49016e
push str.kernel32
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x490158
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x490149
lea edx, [esp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
jmp 0x490151
mov dword [esp + 8], 0
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [esp + 8]
test eax, eax
je 0x49016e
pop edi
mov eax, 1
pop esi
add esp, 0xa0
ret
pop edi
xor eax, eax
pop esi
add esp, 0xa0
ret

Function at 0x4bead2
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004c98a5
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4beb03
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004beb16
pop edi
pop esi
pop ebx
ret 8

Function at 0x4c012c
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4c0164
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004be10c
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004be0e4
jmp 0x4c0170
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4c1a1f
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4c1a61
call fcn.004c98a5
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4c1a61
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4c1a58
xor eax, eax
jmp 0x4c1a69
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004c1a6f
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c9dd5
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4c9e03
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4c9e21
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004c9d3b
jmp 0x4c9e21
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4c9e21
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004c9d3b
test edi, edi
mov eax, edi
jne 0x4c9e0b
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8

Function at 0x4ccbf4
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4ccc1c
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4ccc2d
push 2
call edi
test ax, ax
jge 0x4ccc2d
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004bf762
cmp dword [esi + 0x30], ebx
jne 0x4ccd07
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004bf762
cmp eax, dword [esp + 0x34]
jne 0x4ccd07
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4ccca3
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4ccce8
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4ccd07
cmp eax, 0x205
je 0x4ccd07
cmp eax, 0x201
je 0x4ccd07
cmp eax, 0x204
je 0x4ccd07
cmp eax, ebx
jne 0x4cccce
cmp dword [esp + 0x1c], 0x1b
je 0x4ccd07
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x63977c]
jbe 0x4cccfd
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4ccc60
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x403d78
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffdf4
mov ebx, edx
mov esi, eax
mov eax, ebx
xor edx, edx
call fcn.004060ec
test esi, esi
jne 0x403db0
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.00406228
jmp 0x403dce
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403cbc
mov edi, eax
test esi, esi
je 0x403dce
cmp dword [ebx], 0
je 0x403dce
dec esi
jmp 0x403db7
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x4058ec
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x41204c], 0
je 0x40594d
cmp word [0x412328], 0xd7b2
jne 0x405915
cmp dword [0x412330], 0
jbe 0x405915
mov eax, 0x412324
call dword [0x412340]
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
push 0x405978
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x411024], 0
jne 0x405969
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x407494
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x164], ecx
mov dword [ebp - 0x168], ecx
mov dword [ebp - 0x16c], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x4075fb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.004060ec
cmp si, word [0x4117bc]
jb 0x40752e
cmp si, word [0x4119bc]
ja 0x40752e
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x40752e
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4117bc]
jae 0x407508
mov edi, ebx
dec edi
jmp 0x407529
cmp si, word [ebx*8 + 0x4117bc]
jbe 0x407518
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x407529
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4117c0]
call fcn.004073a4
jmp 0x40752e
cmp edi, dword [ebp - 0xc]
jae 0x4074f2
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x4075dd
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4075dd
push 0x55
lea eax, [ebp - 0xb6]
push eax
push 0x59
movzx ebx, si
push ebx
call sub.kernel32.dll_GetLocaleInfoW
push 0x55
lea eax, [ebp - 0x160]
push eax
push 0x5a
push ebx
call sub.kernel32.dll_GetLocaleInfoW
lea eax, [ebp - 0x164]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004062d4
push dword [ebp - 0x164]
push 0x407618
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.004062d4
push dword [ebp - 0x168]
push 0x407628
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.004062d4
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.004065c0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407602
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.004060e4
ret
Function at 0x40762c
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 6], edx
mov word [ebp - 2], ax
xor eax, eax
push ebp
push 0x407812
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x414b54
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [0x414b6c]
cmp ax, word [ebp - 2]
jne 0x407684
mov eax, dword [ebp - 6]
mov edx, 0x414b70
mov ecx, 0x55
call fcn.004062d4
push 0x414b54
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x4077fc
push 0x414b54
call sub.kernel32.dll_LeaveCriticalSection
mov eax, dword [ebp - 6]
xor edx, edx
call fcn.004060ec
push 2
movzx eax, word [ebp - 2]
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4077c4
cmp byte [0x414b50], 0
je 0x40777a
call dword [0x414b48]
mov word [ebp - 0x16], ax
movzx eax, word [ebp - 2]
push eax
call dword [0x414b4c]
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor ecx, ecx
push ebp
push 0x407773
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x414b44]
test al, al
je 0x40774c
mov eax, dword [ebp - 0xc]
add eax, eax
call fcn.00403a24
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x38
call dword [0x414b44]
mov edx, dword [ebp - 0xc]
sub edx, 2
test edx, edx
jb 0x407741
inc edx
xor eax, eax
mov ecx, dword [ebp - 0x10]
cmp word [ecx + eax*2], 0
jne 0x40773d
mov ecx, dword [ebp - 0x10]
mov word [ecx + eax*2], 0x2c
inc eax
dec edx
jne 0x40772a
mov eax, dword [ebp - 6]
mov edx, dword [ebp - 0x10]
call fcn.00406298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4077c4
movzx eax, word [ebp - 0x16]
push eax
call dword [0x414b4c]
cmp dword [ebp - 0x10], 0
je 0x407772
mov eax, dword [ebp - 0x10]
call fcn.00403a40
ret
mov edx, dword [ebp - 6]
movzx eax, word [ebp - 2]
call fcn.00407494
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp ax, word [ebp - 2]
je 0x4077c4
mov eax, dword [ebp - 6]
cmp dword [eax], 0
je 0x4077a9
mov eax, dword [ebp - 6]
mov edx, 0x40782c
call fcn.0040641c
mov eax, dword [ebp - 6]
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x1c]
call fcn.00407494
mov edx, dword [ebp - 0x1c]
mov eax, dword [ebp - 6]
call fcn.0040641c
mov eax, dword [ebp - 6]
push 0x414b54
call sub.kernel32.dll_EnterCriticalSection
movzx eax, word [ebp - 2]
mov word [0x414b6c], ax
push 0xaa
mov eax, dword [ebp - 6]
mov eax, dword [eax]
call fcn.00406178
push eax
push 0x414b70
call sub.kernel32.dll_lstrcpynW
push 0x414b54
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407819
lea eax, [ebp - 0x1c]
call fcn.004060dc
ret
Function at 0x407a50
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.004060d4
xor eax, eax
push ebp
push 0x407c35
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x407a90
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x407aaa
push 0x105
mov eax, dword [ebp - 4]
call fcn.00406178
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x407c1f
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407c44
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407b39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407c44
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407b39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407c78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x407b39
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x407cac
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x407c1f
xor eax, eax
push ebp
push 0x407c18
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00407854
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 0x407ba8
mov eax, dword [ebp - 0x10]
call fcn.00403a24
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.00406298
jmp 0x407bf3
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x407cec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x407bf3
mov eax, dword [ebp - 0x10]
call fcn.00403a24
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x407cec
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.00406298
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407c1f
cmp dword [ebp - 8], 0
je 0x407c0e
mov eax, dword [ebp - 8]
call fcn.00403a40
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 0x407c3c
lea eax, [ebp - 4]
call fcn.004060dc
ret
Function at 0x407f00
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdd8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x228], ebx
mov dword [ebp - 0x224], ebx
mov dword [ebp - 0x220], ebx
mov esi, ecx
mov dword [ebp - 0x21c], edx
mov dword [ebp - 0x218], eax
mov eax, dword [ebp - 0x218]
call fcn.004060d4
mov eax, dword [ebp - 0x21c]
call fcn.004060d4
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x40809f
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.004060ec
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.00406178
push eax
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrcpynW
lea eax, [ebp - 0x20a]
push eax
call sub.kernel32.dll_lstrlenW
add eax, eax
lea edx, [ebp - 0x20a]
add eax, edx
sub eax, 2
mov dword [edi], eax
jmp 0x407fa0
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x407fb2
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x407f9d
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x40806b
add dword [edi], 2
mov eax, dword [edi]
mov word [eax], 0
lea eax, [ebp - 0x20a]
mov edx, dword [edi]
sub edx, eax
sar edx, 1
jns 0x407fdb
adc edx, 0
mov eax, 0x105
sub eax, edx
mov dword [ebp - 0x214], eax
lea edx, [ebp - 0x220]
mov eax, dword [ebp - 0x218]
call fcn.00407a50
cmp dword [ebp - 0x220], 0
je 0x408013
push ebp
mov eax, dword [ebp - 0x220]
call fcn.00407df4
pop ecx
mov ebx, eax
jmp 0x40806b
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.0040762c
mov eax, dword [ebp - 0x224]
call fcn.00407df4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40805e
cmp byte [0x414b50], 0
jne 0x40805e
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.0040762c
mov eax, dword [ebp - 0x228]
call fcn.00407df4
pop ecx
mov ebx, eax
test bl, bl
jne 0x40806b
push ebp
call fcn.00407ea4
pop ecx
mov ebx, eax
test bl, bl
je 0x408081
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.004062d4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4080a6
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.004060e4
ret

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

Disassembly:
push ebx
push esi
mov esi, eax
mov eax, esi
call fcn.00406178
push eax
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x40ac72
test al, 0x10
sete al
pop esi
pop ebx
ret
call sub.kernel32.dll_GetLastError_1
mov ebx, eax
cmp ebx, 2
je 0x40ac93
cmp ebx, 3
je 0x40ac93
cmp ebx, 0x7b
je 0x40ac93
mov eax, esi
call fcn.0040ac14
test al, al
jne 0x40ac97
xor eax, eax
jmp 0x40ac99
mov al, 1
pop esi
pop ebx
ret
Function at 0x40bc30
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 0x40bc69
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406228
jmp 0x40bc72
mov eax, ebx
mov edx, esi
call fcn.004060ec
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Function at 0x40c430
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 0x40c555
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.0040c240
mov esi, eax
mov eax, dword [0x411d88]
cmp byte [eax], 0
je 0x40c4fd
mov eax, dword [0x411ccc]
call fcn.004040e4
call fcn.00403b6c
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 [0x40c408]
call fcn.00406ef8
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 0x40c570
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40c539
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x411cac]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x414c38]
call fcn.00406fb0
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 0x40c55c
lea eax, [ebp - 4]
mov edx, dword [0x40c408]
call fcn.00406f04
ret