joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403fa0
Capabilities:
Read .ini file

Disassembly:
mov al, byte [ecx + 0xc]
push esi
lea esi, [ecx + 0xc]
test al, al
jne 0x403fb1
push esi
call fcn.00405130
mov eax, dword [esp + 0x10]
push esi
test eax, eax
jne 0x403fd0
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push 2
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
pop esi
ret 0x10
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0xc]
push edx
push eax
mov eax, dword [esp + 0x18]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
mov eax, 0xfffffc19
pop esi
ret 0x10

Function at 0x4040b0
Capabilities:
Delete file

Disassembly:
sub esp, 0x30c
push ebp
push esi
mov esi, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x320]
mov edx, dword [esp + 0x31c]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push ecx
push edx
mov ecx, esi
call fcn.004042e0
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x111]
mov byte [esp + 0x110], 0
rep stosd dword es:[edi], eax
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x409d4c
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x114]
push eax
call ebp
lea ecx, [esp + 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x215]
mov byte [esp + 0x214], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x110]
lea eax, [esp + 0x214]
push edx
push eax
call ebp
lea ecx, [esp + 0x214]
push str._box
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0xc]
lea eax, [esp + 0x110]
push edx
push eax
mov ecx, esi
call fcn.00404370
test eax, eax
jne 0x40419a
lea ecx, [esp + 0xc]
lea edx, [esp + 0x214]
push ecx
push edx
mov ecx, esi
call fcn.00404370
test eax, eax
je 0x4041a5
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop edi
pop esi
mov eax, 1
pop ebp
add esp, 0x30c
ret 8
Function at 0x4041c0
Capabilities:
Delete file
Persist via run registry key
Query or enumerate registry value

Disassembly:
sub esp, 0x10c
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
mov dword [esp + 0xc], 1
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
mov dword [esp + 8], 0x100
push eax
push 0x20019
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4042d0
lea ecx, [esp + 8]
push esi
mov esi, dword [esp + 0x118]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0xc]
lea eax, [esp + 0x14]
push edx
push eax
push 0
push esi
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x4042c4
lea edx, [esp + 0x14]
push ebx
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
push str.Common_AppData
push esi
call dword [sym.imp.MSVCRT.dll__stricmp]
add esp, 8
test eax, eax
jne 0x404288
mov edi, str.MicrosoftInternet_ExplorerQuick_Launch_
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x18]
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
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x120]
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x18]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0x18]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
pop ebx
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop edi
add esp, 0x10c
ret 8

Function at 0x4042e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x10c]
pop edi
cmp eax, 0x1010
jne 0x404330
lea eax, [esp]
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [esp]
push str.MicrosoftInternet_ExplorerQuick_Launch
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
jmp 0x404342
lea edx, [esp]
push edx
push 0
push 0
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov eax, dword [esp + 0x10c]
mov edx, dword [esp + 0x110]
lea ecx, [esp]
push eax
push ecx
push edx
call dword [sym.imp.SHLWAPI.dll_PathCombineA]
add esp, 0x104
ret 0xc
Function at 0x404640
Capabilities:
Check if file exists
Delete file
Get common file path
Set file attributes

Disassembly:
sub esp, 0x104
push ebx
push esi
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, str.Storm_tracfg.xml
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
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 + 0xc]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
pop edi
pop esi
test eax, eax
pop ebx
je 0x4046cc
lea ecx, [esp]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea edx, [esp]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
add esp, 0x104
ret

Function at 0x4046e0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
mov edi, str.Storm_thumb
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x10]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
lea eax, [esp + 0x10]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.00404760
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x104
ret
Function at 0x404bb0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x928
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 8]
push eax
call fcn.00404c40
mov ecx, 0x208
xor eax, eax
lea edi, [esp + 0x109]
mov byte [esp + 0x108], 0
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x930]
lea edx, [esp + 0x108]
stosw word es:[edi], ax
push ecx
push str.http:__www.baofeng.com_hd_tc_tc.htm_vid_s
push 0x824
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
lea eax, [esp + 0x108]
push 5
push 0
push 0
push eax
push 0
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
add esp, 0x928
ret 4

Function at 0x404c60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x410
push ebx
push ebp
push esi
push edi
xor ebx, ebx
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x219]
mov byte [esp + 0x218], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x115]
mov byte [esp + 0x114], bl
rep stosd dword es:[edi], eax
mov esi, dword [sym.imp.KERNEL32.dll_GetLongPathNameA]
lea ecx, [esp + 0x114]
stosw word es:[edi], ax
push 0x104
lea edx, [esp + 0x21c]
push ecx
push edx
stosb byte es:[edi], al
call esi
mov ebp, dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea eax, [esp + 0x114]
push eax
call ebp
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x31d]
mov byte [esp + 0x31c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea ecx, [esp + 0x31c]
push 0x104
push ecx
push ebx
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x11]
mov byte [esp + 0x10], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea edx, [esp + 0x10]
push 0x104
lea eax, [esp + 0x320]
push edx
push eax
call esi
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecA]
lea edx, [esp + 0x10]
push edx
call ebp
lea eax, [esp + 0x114]
lea ecx, [esp + 0x10]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
mov eax, 1
je 0x404d66
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x410
ret

Function at 0x404e60
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x108
lea ecx, [esp + 4]
push eax
push 0x104
push ecx
call fcn.00404d80
add esp, 0xc
test eax, eax
je 0x404e8c
xor eax, eax
add esp, 0x108
ret 8
push 0
push 0x80
push 3
push 0
push 3
lea edx, [esp + 0x18]
push closesocket
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
test eax, eax
jne 0x404eb6
add esp, 0x108
ret 8
mov edx, dword [esp + 0x110]
lea ecx, [esp]
push 0
push ecx
push 8
push edx
push eax
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
neg eax
sbb eax, eax
neg eax
add esp, 0x108
ret 8
Function at 0x404ef0
Capabilities:
Copy file
Get common file path

Disassembly:
sub esp, 0x71c
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
lea eax, [esp + 0xc]
push 0x104
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
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
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x521]
mov byte [esp + 0x520], 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
lea ecx, [esp + 0x318]
lea edx, [esp + 0x520]
push ecx
push edx
stosb byte es:[edi], al
push ebx
lea eax, [esp + 0x18]
push ebx
push eax
call dword [sym.imp.MSVCRT.dll__splitpath]
mov esi, dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x14
lea ecx, [esp + 0x318]
lea edx, [esp + 0x520]
push ecx
push edx
push str._s._s
lea eax, [esp + 0x428]
push 0x104
push eax
call esi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x125]
mov byte [esp + 0x124], bl
rep stosd dword es:[edi], eax
add esp, 0x14
lea ecx, [esp + 0x110]
stosw word es:[edi], ax
push ecx
push 0x104
stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [esp + 0x110]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
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
lea eax, [esp + 0x41c]
push eax
lea ecx, [esp + 0x114]
lea edx, [esp + 0x218]
push ecx
push str._s_s
push 0x104
push edx
call esi
add esp, 0x14
lea eax, [esp + 0x214]
lea ecx, [esp + 0xc]
push ebx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x625]
mov byte [esp + 0x624], bl
rep stosd dword es:[edi], eax
mov edx, dword [esp + 0x72c]
lea ecx, [esp + 0x624]
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x214]
push edx
push eax
push str._s__path:_s
push 0x104
push ecx
call esi
add esp, 0x14
lea edx, [esp + 0x624]
push ebx
push edx
call fcn.004050b0
pop edi
pop esi
pop ebx
add esp, 0x71c
ret 4
Function at 0x4050b0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov dword [esp + 4], eax
lea ecx, [esp + 4]
mov dword [esp + 8], eax
lea edx, [esp + 0x14]
mov dword [esp + 0xc], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x2c], eax
push eax
mov eax, dword [esp + 0x7c]
mov dword [esp + 0x34], 0x44
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
pop edi
je 0x405125
mov eax, dword [esp + 0x5c]
test eax, eax
je 0x40510f
mov ecx, dword [esp]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
pop esi
add esp, 0x54
ret 8

Function at 0x405130
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 5]
mov byte [esp + 4], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 4]
push eax
push 0
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
lea ecx, [esp + 4]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAddBackslashA]
lea edx, [esp + 4]
push str.Storm_
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 4]
mov ecx, dword [esp + 0x10c]
push eax
push str._sConfig.ini
push 0x104
push ecx
call dword [sym.imp.MSVCRT.dll__snprintf]
add esp, 0x10
pop edi
add esp, 0x104
ret 4
Function at 0x4038a4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x480020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x40393c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW
test eax, eax
jne 0x40391c
xor eax, eax
push ebp
push 0x403915
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0xc], 4
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0x403974
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40391c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x480020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x480020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404a7c
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x483050], 0
je 0x404add
cmp word [0x48332c], 0xd7b2
jne 0x404aa5
cmp dword [0x483334], 0
jbe 0x404aa5
mov eax, 0x483328
call dword [0x483344]
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 0x404b08
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x48002c], 0
jne 0x404af9
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404c5c
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 [0x480030], 0
je 0x404c82
mov edx, esi
mov eax, ebx
call dword [0x480030]
jmp 0x404c91
mov eax, 8
call fcn.00402f9c
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x483051], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404c24
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 0x407248
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 0x408aa0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
mov esi, 0x485b2c
push 0xa
push 0x408b34
mov eax, dword [0x485b1c]
push eax
call sub.kernel32.dll_FindResourceW
mov ebx, eax
test ebx, ebx
jne 0x408ac4
call fcn.0041064c
push ebx
mov eax, dword [0x485b1c]
push eax
call sub.kernel32.dll_LoadResource
mov ebx, eax
test ebx, ebx
jne 0x408adb
call fcn.0041064c
push ebx
call sub.kernel32.dll_LockResource
mov dword [esi], eax
cmp dword [esi], 0
jne 0x408aed
call fcn.0041064c
mov eax, dword [esi]
mov edx, dword [esi]
mov ecx, edx
add ecx, dword [eax]
mov dword [0x485b30], ecx
mov ecx, edx
add ecx, dword [eax + 4]
mov dword [0x485b34], ecx
mov ecx, edx
add ecx, dword [eax + 8]
mov dword [0x485b38], ecx
mov ecx, edx
add ecx, dword [eax + 0xc]
mov dword [0x485b3c], ecx
mov ecx, edx
add ecx, dword [eax + 0x10]
mov dword [0x485b40], ecx
add edx, dword [eax + 0x14]
mov dword [0x485b44], edx
pop esi
pop ebx
ret

Function at 0x40a154
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40a1fd
test eax, edx
je 0x40a200
push 0
push 0
cmp word [eax - 0xa], 2
je 0x40a17d
push edx
mov edx, eax
mov eax, esp
call fcn.0040563c
pop edx
mov eax, dword [esp]
cmp word [edx - 0xa], 2
je 0x40a193
push eax
lea eax, [esp + 8]
call fcn.0040563c
pop eax
mov edx, dword [esp + 4]
movzx ecx, word [edx]
cmp cx, word [eax]
je 0x40a1a2
movzx eax, word [eax]
sub eax, ecx
jmp 0x40a1c9
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 0x40a1e3
add ecx, 4
js 0x40a1ba
pop eax
pop ebx
mov ecx, esp
mov edx, dword [ecx]
or edx, dword [ecx + 4]
je 0x40a1e0
push eax
mov eax, ecx
mov edx, 2
call fcn.00404cfc
pop eax
pop edx
pop edx
ret
bsf ebx, ebx
shr ebx, 4
add ebx, ebx
add ecx, ebx
jns 0x40a1c7
movzx eax, word [ecx + eax]
movzx edx, word [ecx + edx]
sub eax, edx
pop ebx
pop ebx
jmp 0x40a1c9
xor eax, eax
ret
test eax, eax
je 0x40a210
test edx, edx
jne 0x40a164
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40e25c
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 0x40e295
mov ecx, eax
dec ecx
lea edx, [ebp - 0x200]
mov eax, ebx
call fcn.004055a4
jmp 0x40e29e
mov eax, ebx
mov edx, esi
call fcn.00405468
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x40e2a8
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 0x40e2ca
movzx eax, word [esp]
jmp 0x40e2cc
mov eax, edi
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40ea30
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffff004
push eax
add esp, 0xffffff7c
push 0x800
lea ecx, [esp + 0x88]
call fcn.0040e868
mov eax, dword [0x482b18]
cmp byte [eax], 0
je 0x40eac2
mov eax, dword [0x4828e0]
call fcn.00403310
call fcn.00403104
lea eax, [esp + 0x884]
push eax
lea eax, [esp + 0x88]
push eax
call sub.user32.dll_CharToOemW
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x88c]
call fcn.0040b144
push eax
lea eax, [esp + 0x890]
push eax
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
push 0
lea eax, [esp + 4]
push eax
push 2
push 0x40eb10
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40eafb
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x482888]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x485b1c]
call fcn.00406590
push eax
call sub.user32.dll_LoadStringW_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x8c]
push eax
push 0
call sub.user32.dll_MessageBoxW
add esp, 0x1084
ret

Function at 0x40f6d8
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 0x40f7ae
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004054bc
lea eax, [ebp - 4]
call fcn.00405d38
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004054f4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x40f798
mov eax, ebx
call fcn.00402f9c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f791
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.004054f4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x40f77b
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f7c0
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x40f77b
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 0x40f798
mov eax, dword [ebp - 0x10]
call fcn.00402fb8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f7b5
lea eax, [ebp - 4]
call fcn.00405458
ret
Function at 0x4104f4
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.00404f98
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 0x41049e
mov eax, edi
add eax, eax
call fcn.00402f9c
mov esi, eax
jmp 0x4104a0
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 0x4104d9
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 0x4104c3
mov eax, esp
cmp esi, eax
je 0x4104e6
mov eax, esi
call fcn.00402fb8
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 0x410520
cmp bl, 0
je 0x41051c
cmp bl, 0x41
jl 0x410517
cmp bl, 0x5a
jg 0x410517
or bl, 0x20
xor al, bl
inc esi
jmp 0x4104fb
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x410460

Function at 0x41fc9c
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.0041f9a0
dec esi
jne 0x41fcbe
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret

Function at 0x420e68
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x487e60
cmp dword [edi], 0
jne 0x420ee4
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x487e5c]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x480c34
mov ecx, 2
call fcn.00403154
mov edx, 0x420e40
lea eax, [esi + 5]
call fcn.00420e60
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.00420e60
mov dword [ebx + 1], eax
mov eax, dword [edi]
mov dword [ebx + 5], eax
mov dword [edi], ebx
add ebx, 0xd
mov eax, ebx
sub eax, esi
cmp eax, 0xffc
jl 0x420eb9
mov dword [0x487e5c], esi
mov eax, dword [edi]
mov ebx, dword [edi]
mov edx, dword [ebx + 5]
mov dword [edi], edx
mov edx, dword [ebp + 8]
mov dword [ebx + 5], edx
mov edx, dword [ebp + 0xc]
mov dword [ebx + 9], edx
pop edi
pop esi
pop ebx
pop ebp
ret 8