joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404b30
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x514
push ebx
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x319]
mov byte [esp + 0x318], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x41d]
mov byte [esp + 0x41c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov esi, dword [esp + 0x524]
lea ecx, [esp + 0xc]
push esi
push ecx
lea edx, [esp + 0x21c]
push str._spk_s_f.rcd
push edx
call fcn.0040591b
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x318]
push esi
push eax
push str._spk_s_f2.rcd
push ecx
call fcn.0040591b
add esp, 0x10
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push esi
push edx
push str._spk_s_d.rcd
push eax
call fcn.0040591b
add esp, 0x10
lea ecx, [esp + 0xc]
lea edx, [esp + 0x41c]
push esi
push ecx
push str._spk_s_d2.rcd
push edx
call fcn.0040591b
lea eax, [esp + 0x224]
push 0x40e244
push eax
call fcn.0040598d
add esp, 0x18
mov esi, eax
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileA]
cmp esi, ebx
je 0x404c74
push esi
call fcn.00405500
add esp, 4
lea ecx, [esp + 0x318]
lea edx, [esp + 0x214]
push ebx
push ecx
push edx
call edi
lea eax, [esp + 0x110]
push 0x40e244
push eax
call fcn.0040598d
add esp, 8
cmp esi, ebx
je 0x404ca9
push eax
call fcn.00405500
add esp, 4
lea ecx, [esp + 0x41c]
lea edx, [esp + 0x110]
push ebx
push ecx
push edx
call edi
pop edi
pop esi
pop ebx
add esp, 0x514
ret
Function at 0x404d20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
push ebx
push esi
push edi
mov ecx, 0x41
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0x104
rep stosd dword es:[edi], eax
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.pkRestoreBackupuserinfo.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x40e244
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call fcn.0040598d
mov esi, eax
add esp, 8
test esi, esi
je 0x404dbe
push esi
lea ecx, [esp + 0x118]
push 0x104
push ecx
call fcn.00406055
add esp, 0xc
test eax, eax
jne 0x404db5
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
push esi
call fcn.00405500
add esp, 4
or ecx, 0xffffffff
lea edi, [esp + 0x114]
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
shr ecx, 2
mov edi, 0x410f50
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
or ecx, 0xffffffff
lea edi, [esp + 0x114]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, 0x410e4c
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NTUSER.DAT
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x410e4c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.NTUSER.DBU
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x410f50
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov eax, 1
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebx
add esp, 0x20c
ret
Function at 0x404548
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.00406844
test esi, esi
jne 0x404580
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.00406980
jmp 0x40459e
call sub.kernel32.dll_GetCommandLineW
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.0040448c
mov edi, eax
test esi, esi
je 0x40459e
cmp dword [ebx], 0
je 0x40459e
dec esi
jmp 0x404587
add esp, 0x20c
pop edi
pop esi
pop ebx
ret

Function at 0x405de0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4bd050], 0
je 0x405e41
cmp word [0x4bd32c], 0xd7b2
jne 0x405e09
cmp dword [0x4bd334], 0
jbe 0x405e09
mov eax, 0x4bd328
call dword [0x4bd344]
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 0x405e6c
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4ba030], 0
jne 0x405e5d
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405fcc
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 4], edx
mov edi, eax
mov esi, dword [ebp + 0x10]
cmp dword [0x4ba034], 0
je 0x405ff2
mov edx, esi
mov eax, ebx
call dword [0x4ba034]
jmp 0x406001
mov eax, 8
call fcn.004041d4
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x4bd051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405f94
push eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ecx
pop ebp
ret 0xc
Function at 0x408614
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 0x40877b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
xor edx, edx
call fcn.00406844
cmp si, word [0x4ba7dc]
jb 0x4086ae
cmp si, word [0x4ba9dc]
ja 0x4086ae
mov edi, 0x40
xor eax, eax
mov dword [ebp - 0xc], eax
cmp edi, dword [ebp - 0xc]
jb 0x4086ae
mov ebx, dword [ebp - 0xc]
add ebx, edi
shr ebx, 1
cmp si, word [ebx*8 + 0x4ba7dc]
jae 0x408688
mov edi, ebx
dec edi
jmp 0x4086a9
cmp si, word [ebx*8 + 0x4ba7dc]
jbe 0x408698
inc ebx
mov dword [ebp - 0xc], ebx
jmp 0x4086a9
mov edx, dword [ebp - 8]
mov eax, dword [ebx*8 + 0x4ba7e0]
call fcn.00408524
jmp 0x4086ae
cmp edi, dword [ebp - 0xc]
jae 0x408672
mov eax, dword [ebp - 8]
cmp dword [eax], 0
jne 0x40875d
push 2
movzx eax, si
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x40875d
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.00406a2c
push dword [ebp - 0x164]
push 0x408798
lea eax, [ebp - 0x168]
lea edx, [ebp - 0x160]
mov ecx, 0x55
call fcn.00406a2c
push dword [ebp - 0x168]
push 0x4087a8
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0xb6]
mov ecx, 0x55
call fcn.00406a2c
push dword [ebp - 0x16c]
mov eax, dword [ebp - 8]
mov edx, 5
call fcn.00406de4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408782
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040683c
ret
Function at 0x408934
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 0x408a39
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4bfb58
call sub.kernel32.dll_EnterCriticalSection
cmp bx, word [0x4bfb70]
jne 0x408980
mov eax, esi
mov edx, 0x4bfb74
mov ecx, 0x55
call fcn.00406a2c
push 0x4bfb58
call sub.kernel32.dll_LeaveCriticalSection
jmp 0x408a23
push 0x4bfb58
call sub.kernel32.dll_LeaveCriticalSection
mov eax, esi
xor edx, edx
call fcn.00406844
push 2
movzx eax, bx
push eax
call sub.kernel32.dll_IsValidLocale
test eax, eax
je 0x4089f1
cmp byte [0x4bfb54], 0
je 0x4089b6
mov edx, esi
mov eax, ebx
call fcn.00408814
jmp 0x4089f1
mov edx, esi
mov eax, ebx
call fcn.00408614
call sub.kernel32.dll_GetSystemDefaultUILanguage
cmp bx, ax
je 0x4089f1
cmp dword [esi], 0
je 0x4089da
mov eax, esi
mov edx, 0x408a54
call fcn.00406c40
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 4]
call fcn.00408614
mov edx, dword [ebp - 4]
mov eax, esi
call fcn.00406c40
push 0x4bfb58
call sub.kernel32.dll_EnterCriticalSection
mov word [0x4bfb70], bx
push 0xaa
mov eax, dword [esi]
call fcn.004068d0
push eax
push 0x4bfb74
call sub.kernel32.dll_lstrcpynW
push 0x4bfb58
call sub.kernel32.dll_LeaveCriticalSection
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408a40
lea eax, [ebp - 4]
call fcn.00406834
ret
Function at 0x408c78
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.0040682c
xor eax, eax
push ebp
push 0x408e5d
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
jne 0x408cb8
push 0x105
lea eax, [ebp - 0x21a]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameW
jmp 0x408cd2
push 0x105
mov eax, dword [ebp - 4]
call fcn.004068d0
push eax
lea eax, [ebp - 0x21a]
push eax
call sub.kernel32.dll_lstrcpynW
cmp word [ebp - 0x21a], 0
je 0x408e47
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e6c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d61
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408e6c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d61
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ea0
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
je 0x408d61
lea eax, [ebp - 0xc]
push eax
push 0xf0019
push 0
push 0x408ed4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x408e47
xor eax, eax
push ebp
push 0x408e40
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x21a]
mov edx, 0x105
call fcn.00408a7c
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 0x408dd0
mov eax, dword [ebp - 0x10]
call fcn.004041d4
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.004069f0
jmp 0x408e1b
lea eax, [ebp - 0x10]
push eax
push 0
push 0
push 0
push 0x408f14
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
test eax, eax
jne 0x408e1b
mov eax, dword [ebp - 0x10]
call fcn.004041d4
mov dword [ebp - 8], eax
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 8]
push eax
push 0
push 0
push 0x408f14
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004069f0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x408e47
cmp dword [ebp - 8], 0
je 0x408e36
mov eax, dword [ebp - 8]
call fcn.004041f0
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 0x408e64
lea eax, [ebp - 4]
call fcn.00406834
ret
Function at 0x409128
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.0040682c
mov eax, dword [ebp - 0x21c]
call fcn.0040682c
lea edi, [ebp - 0x210]
xor eax, eax
push ebp
push 0x4092c7
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
xor edx, edx
call fcn.00406844
xor ebx, ebx
push 0x105
mov eax, dword [ebp - 0x21c]
call fcn.004068d0
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 0x4091c8
sub dword [edi], 2
mov eax, dword [edi]
cmp word [eax], 0x2e
je 0x4091da
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
jne 0x4091c5
lea eax, [ebp - 0x20a]
cmp eax, dword [edi]
je 0x409293
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 0x409203
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.00408c78
cmp dword [ebp - 0x220], 0
je 0x40923b
push ebp
mov eax, dword [ebp - 0x220]
call fcn.0040901c
pop ecx
mov ebx, eax
jmp 0x409293
push ebp
call sub.kernel32.dll_GetUserDefaultUILanguage
lea edx, [ebp - 0x224]
call fcn.00408934
mov eax, dword [ebp - 0x224]
call fcn.0040901c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409286
cmp byte [0x4bfb54], 0
jne 0x409286
push ebp
call sub.kernel32.dll_GetSystemDefaultUILanguage
lea edx, [ebp - 0x228]
call fcn.00408934
mov eax, dword [ebp - 0x228]
call fcn.0040901c
pop ecx
mov ebx, eax
test bl, bl
jne 0x409293
push ebp
call fcn.004090cc
pop ecx
mov ebx, eax
test bl, bl
je 0x4092a9
mov eax, esi
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00406a2c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4092ce
lea eax, [ebp - 0x228]
mov edx, 5
call fcn.0040683c
ret

Function at 0x409a40
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 0x40cb94
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x4bfc58
push 0xa
push 0x40cc28
mov eax, dword [0x4bfc3c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x40cbb8
call fcn.00418cb0
push ebx
mov eax, dword [0x4bfc3c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x40cbcf
call fcn.00418cb0
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x40cbe1
call fcn.00418cb0
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x4bfc5c], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x4bfc60], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x4bfc64], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x4bfc68], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x4bfc6c], ecx
add edx, dword [eax + 0x14]
mov dword [0x4bfc70], edx
pop esi
pop ebx
ret

Function at 0x4116f0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x411799
test eax, edx
je 0x41179c
push 0
push 0
cmp word [eax - 0xa], 2
je 0x411719
push edx
mov edx, eax
mov eax, esp
call fcn.00406a48
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x41172f
push eax
lea eax, [esp + 8]
call fcn.00406a48
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x41173e
movzx eax, word [eax]
sub eax, ecx
jmp 0x411765
push ebx
mov ebx, dword [eax - 4]
xor ecx, ecx
sub ebx, dword [edx - 4]
push ebx
adc ecx, 0xffffffff
and ecx, ebx
sub ecx, dword [eax - 4]
shl ecx, 1
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x41177f
add ecx, 4
js 0x411756
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x41177c
push eax
mov eax, ecx
mov edx, 2
call fcn.0040606c
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x411763
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x411765
xor eax, eax
ret
test eax, eax
je 0x4117ac
test edx, edx
jne 0x411700
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x415ea4
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 0x415edd
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.00406980
jmp 0x415ee6
mov eax, ebx
mov edx, esi
call fcn.00406844
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415ef0
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 0x415f12
movzx eax, word [esp]
jmp 0x415f14
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x4166a4
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 0x4167c9
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0x400
lea ecx, [ebp - 0x888]
call fcn.004164b4
mov esi, eax
mov eax, dword [0x4bc3fc]
cmp byte [eax], 0
je 0x416771
mov eax, dword [0x4bc184]
call fcn.0040467c
call fcn.0040433c
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 [0x41667c]
call fcn.00408010
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 0x4167e4
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x4167ad
push 0x40
lea eax, [ebp - 0x88]
push eax
mov eax, dword [0x4bc120]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4bfc3c]
call fcn.00408104
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 0x4167d0
lea eax, [ebp - 4]
mov edx, dword [0x41667c]
call fcn.0040801c
ret

Function at 0x417980
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x417a56
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00406898
lea eax, [ebp - 4]
call fcn.00407230
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068d0
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x417a40
mov eax, ebx
call fcn.004041d4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x417a39
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004068d0
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x417a23
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x417a68
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x417a23
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417a40
mov eax, dword [ebp - 0x10]
call fcn.004041f0
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x417a5d
lea eax, [ebp - 4]
call fcn.00406834
ret
Function at 0x418b58
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.0040637c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x418b02
mov eax, edi
add eax, eax
call fcn.004041d4
mov esi, eax
jmp 0x418b04
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x418b3d
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 0x418b27
mov eax, esp
cmp esi, eax
je 0x418b4a
mov eax, esi
call fcn.004041f0
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 0x418b84
cmp bl, 0
je 0x418b80
cmp bl, 0x41
jl 0x418b7b
cmp bl, 0x5a
jg 0x418b7b
or bl, 0x20
xor al, bl
inc esi
jmp 0x418b5f
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x418ac4

Function at 0x43dea0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x43df3e
push dword fs:[eax]
mov dword fs:[eax], esp
or dl, byte [ebx + 0xc]
je 0x43df02
cmp byte [ebx + 0x10], 0
jne 0x43df02
cmp byte [ebx + 0x3c], 0
jne 0x43df02
mov byte [ebx + 0xe], 0
mov byte [ebx + 0xc], 0
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
cmp eax, 1
je 0x43df23
lea edx, [ebp - 4]
mov eax, dword [0x4bc3a8]
call fcn.004099cc
mov ecx, dword [ebp - 4]
mov dl, 1
mov eax, dword [0x42e920]
call fcn.004167e8
call fcn.00405880
jmp 0x43df23
lea edx, [ebp - 8]
mov eax, dword [0x4bc3a8]
call fcn.004099cc
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x42e920]
call fcn.004167e8
call fcn.00405880
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x43df45
lea eax, [ebp - 8]
mov edx, 2
call fcn.0040683c
ret

Function at 0x43e7bc
Capabilities:
Suspend thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0xe]
mov byte [ebp - 5], al
xor eax, eax
push ebp
push 0x43e80a
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
mov byte [eax + 0xe], 1
mov eax, dword [ebp - 4]
mov eax, dword [eax + 4]
push eax
call sub.kernel32.dll_SuspendThread
test eax, eax
setge dl
mov eax, dword [ebp - 4]
call fcn.0043de24
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x43e823
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

Function at 0x43e82c
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0043de24
dec esi
jne 0x43e84e
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret