joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40110b
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x404
mov eax, dword [0x410284]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x401158
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x404]
push 0x3ff
push 0x400
push eax
call fcn.004011a6
lea eax, [ebp - 0x404]
push eax
call fcn.004011a6
add esp, 0x18
push 1
call dword [sym.imp.kernel32.dll_ExitProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00401ea2
leave
ret

Function at 0x401ea2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x410284]
jne 0x401eac
repz ret
jmp fcn.00403e53

Function at 0x433005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x433072
nop
mov ebx, 0x40de38
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x78906073
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
loop 0x433060
nop
nop
mov eax, section..data
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
nop
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x294e5832
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4330c0
nop
nop
nop
popal
nop
nop
jmp 0x431219

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x401000
Capabilities:
Get file version info

Disassembly:
sub esp, 0x210
lea eax, [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x218]
push esi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x401029
pop esi
pop ebx
add esp, 0x210
ret
push ebp
push edi
push esi
call dword [sym.imp.MSVCRT.dll_malloc]
mov ecx, dword [esp + 0x20]
add esp, 4
mov edi, eax
xor ebp, ebp
push edi
push esi
push ecx
push ebx
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x4010d7
lea edx, [esp + 0x14]
lea eax, [esp + 0x10]
push edx
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4010d7
mov eax, dword [esp + 0x14]
test eax, eax
je 0x4010d7
mov eax, dword [esp + 0x10]
xor edx, edx
mov ecx, dword [eax]
mov dx, word [eax]
shr ecx, 0x10
push ecx
push edx
lea eax, [esp + 0x28]
push str.StringFileInfo_04hX_04hXFileVersion
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea ecx, [esp + 0x18]
lea edx, [esp + 0x10]
lea eax, [esp + 0x20]
push ecx
push edx
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x4010d7
mov eax, dword [esp + 0x18]
test eax, eax
je 0x4010d7
mov eax, dword [esp + 0x10]
test eax, eax
je 0x4010d7
mov ecx, dword [esp + 0x22c]
mov edx, dword [esp + 0x228]
push ecx
push eax
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov ebp, 1
push edi
call dword [sym.imp.MSVCRT.dll_free]
add esp, 4
mov eax, ebp
pop edi
pop ebp
pop esi
pop ebx
add esp, 0x210
ret
Function at 0x4010f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x104
lea ecx, [esp]
push ebx
push ebp
push esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x118]
lea eax, [esp + 0x10]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 2
lea ecx, [esp + 0x14]
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
mov ebx, eax
test ebx, ebx
jne 0x401145
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push str.CHECKCODE
push str.IDR_CHECKCODE
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov esi, eax
test esi, esi
jne 0x401176
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x40119e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
test edi, edi
jne 0x4011c6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x104
ret
push ebp
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, edi
mov esi, eax
mov eax, dword [esp + 0x120]
mov edx, ecx
mov edi, eax
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov byte [eax + 8], 0
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x104
ret
Function at 0x401210
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 8]
sub esp, 0x320
lea ecx, [esp + 0x1c]
push ebp
push esi
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 0x330]
lea eax, [esp + 0x28]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [esp + 0x12c]
push 0x200
lea edx, [esp + 0x2c]
push ecx
push edx
call fcn.00401000
add esp, 0xc
test eax, eax
jne 0x401264
pop edi
pop esi
pop ebp
add esp, 0x320
ret
mov esi, dword [sym.imp.MSVCRT.dll_strtol]
lea eax, [esp + 0xc]
push 0xa
lea ecx, [esp + 0x130]
push eax
push ecx
call esi
lea edx, [esp + 0x138]
push 0x2c
push edx
mov ebp, eax
call dword [sym.imp.MSVCRT.dll__mbsrchr]
lea ecx, [esp + 0x20]
push 0xa
inc eax
push ecx
push eax
call esi
add esp, 0x20
lea edx, [esp + 0x28]
mov edi, eax
push 0
push 0
push 3
push 0
push 1
push 0
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4012c7
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x320
ret
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4012da
xor ebx, ebx
lea eax, [esp + 0x24]
push eax
push 0
push 0
push esi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x24]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FileTimeToSystemTime]
imul edi, ebp
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x16]
and eax, 0xffff
and ecx, 0xffff
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [ecx + eax*4]
lea eax, [eax + eax*4]
lea edx, [eax + eax*4]
mov eax, dword [esp + 0x1a]
and eax, 0xffff
lea ecx, [eax + edx*4]
mov edx, dword [esp + 0x33c]
xor ecx, ebx
or ecx, edi
push ecx
push str._08x
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
mov eax, 1
pop ebx
pop edi
pop esi
pop ebp
add esp, 0x320
ret
Function at 0x402aa0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x40917f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
mov eax, dword [esp + 0x20]
mov edx, dword [esp + 0x1c]
push esi
push edi
push eax
push edx
mov dword [esp + 0x10], 0
call fcn.00402cd0
mov edi, eax
test edi, edi
jne 0x402aec
mov eax, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
jmp 0x402b91
push ebx
push ebp
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::CString_2
mov ebp, dword [esp + 0x34]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp + 0x2c]
lea edx, [esp + 0x14]
push ecx
push 0
push edx
push 0
push ebp
push edi
mov dword [esp + 0x38], 1
call ebx
mov esi, eax
test esi, esi
jne 0x402b4c
mov ecx, dword [esp + 0x2c]
lea eax, [esp + 0x2c]
push eax
push ecx
lea ecx, [esp + 0x38]
call sub.MFC42.DLL_CString::GetBuffer
lea edx, [esp + 0x18]
push eax
push edx
push esi
push ebp
push edi
call ebx
push 0xffffffffffffffff
lea ecx, [esp + 0x34]
mov esi, eax
call sub.MFC42.DLL_CString::ReleaseBuffer
push edi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
test esi, esi
jne 0x402b6b
mov esi, dword [esp + 0x20]
lea eax, [esp + 0x28]
push eax
mov ecx, esi
call fcn.004088f2
jmp 0x402b7b
mov ecx, dword [esp + 0x30]
mov esi, dword [esp + 0x20]
push ecx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_1
lea ecx, [esp + 0x28]
mov dword [esp + 8], 1
mov byte [esp + 0x18], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x14
ret 0x14

Function at 0x402d20
Capabilities:
Set registry value

Disassembly:
mov eax, dword [esp + 8]
mov edx, dword [esp + 4]
push esi
push eax
push edx
call fcn.00402cd0
mov esi, eax
test esi, esi
jne 0x402d3a
pop esi
ret 0x14
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push edi
push eax
push ecx
push 3
push 0
push edx
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test edi, edi
pop edi
pop esi
sete al
ret 0x14

Function at 0x4030f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea ecx, [esp]
push 0x5c
push ecx
call dword [sym.imp.MSVCRT.dll__mbschr]
add esp, 8
test eax, eax
jne 0x403121
add esp, 0x104
ret
mov edx, dword [esp + 0x10c]
mov ecx, dword [esp + 0x108]
mov byte [eax], 0
lea eax, [esp]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, 1
add esp, 0x104
ret
Function at 0x405f70
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x409720
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x804
push ebx
push edi
mov edx, ecx
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
add edx, 0x340
mov dword [esp + 0x814], 1
stosb byte es:[edi], al
push edx
lea eax, [esp + 0xc]
push 0x40f570
push eax
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov edx, dword [esp + 0x820]
push eax
mov eax, dword [esp + 0x820]
lea ecx, [esp + 0x10]
push 0x800
push ecx
push 0
push edx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
test eax, eax
lea ecx, [esp + 8]
sete bl
call sub.MFC42.DLL_CString::CString
pop edi
test bl, bl
pop ebx
je 0x406053
mov ecx, dword [esp + 0x81c]
push 0x40fa48
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x814]
mov byte [esp + 0x80c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x818]
mov dword [esp + 0x80c], 0xffffffff
call sub.MFC42.DLL_CString::CString
xor eax, eax
mov ecx, dword [esp + 0x804]
mov dword fs:[0], ecx
add esp, 0x810
ret 0xc
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 0x820]
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x814]
mov byte [esp + 0x80c], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x818]
mov dword [esp + 0x80c], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x804]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x810
ret 0xc

Function at 0x4060b0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x409740
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
add ecx, 0x340
lea eax, [esp]
push ecx
push 0x40f570
push eax
mov dword [esp + 0x18], 1
call sub.MFC42.DLL_operator_1
mov eax, dword [eax]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x14]
push eax
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileIntA]
mov ecx, dword [esp + 0x1c]
mov dword [ecx], eax
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x14]
mov byte [esp + 0xc], 0
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0x18]
mov dword [esp + 0xc], 0xffffffff
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 4]
mov eax, 1
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc

Function at 0x406140
Capabilities:
Delete file

Disassembly:
push ecx
add ecx, 0x340
lea eax, [esp]
push ecx
push 0x40f570
push eax
call sub.MFC42.DLL_operator_1
mov ecx, dword [eax]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [esp]
call sub.MFC42.DLL_CString::CString
mov eax, 1
pop ecx
ret
Function at 0x403310
Capabilities:
Accept command line arguments

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffef8
mov ebx, edx
mov esi, eax
mov eax, ebx
call fcn.00404c60
test esi, esi
jne 0x403346
push 0x105
lea eax, [esp + 4]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov ecx, eax
mov edx, esp
mov eax, ebx
call fcn.00404d50
jmp 0x403364
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00403214
mov edi, eax
test esi, esi
je 0x403364
cmp dword [ebx], 0
je 0x403364
dec esi
jmp 0x40334d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403ba8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x4e6020]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x403c40
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403c20
xor eax, eax
push ebp
push 0x403c19
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 0x403c5c
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403c20
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x4e6020]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x4e6020], ax
mov esp, ebp
pop ebp
ret

Function at 0x404ac0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4ef04c], 0
je 0x404b21
cmp word [0x4ef220], 0xd7b2
jne 0x404ae9
cmp dword [0x4ef228], 0
jbe 0x404ae9
mov eax, 0x4ef21c
call dword [0x4ef238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
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 0x404b48
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x4e602c], 0
jne 0x404b3d
push 0
push 0x4e6750
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x4067e4
Capabilities:
Get geographical location
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee0
push ebx
push esi
mov dword [ebp - 4], eax
push 0x105
lea eax, [ebp - 0x11d]
push eax
push 0
call sub.kernel32.dll_GetModuleFileNameA
mov byte [ebp - 0x12], 0
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a14
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406867
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a14
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406867
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406a30
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x4068f0
xor eax, eax
push ebp
push 0x4068e9
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406620
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
lea eax, [ebp - 0x11d]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4068ce
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406a50
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x4068ce
mov byte [ebp - 0x12], 0
mov byte [ebp - 0xe], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4068f0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
push 0x105
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpynA
push 5
lea eax, [ebp - 0xd]
push eax
push 3
call sub.kernel32.dll_GetThreadLocale
push eax
call sub.kernel32.dll_GetLocaleInfoA
xor esi, esi
cmp byte [ebp - 0x11d], 0
je 0x406a0a
cmp byte [ebp - 0xd], 0
jne 0x406937
cmp byte [ebp - 0x12], 0
je 0x406a0a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406950
dec ebx
cmp byte [ebx], 0x2e
je 0x40695f
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40694f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406a0a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x40699c
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406a0a
cmp byte [ebp - 0xd], 0
je 0x406a0a
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x406a0a
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0x11d]
mov edx, ebx
sub edx, eax
mov eax, 0x105
sub eax, edx
push eax
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpynA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x409340
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409392
test eax, edx
je 0x409395
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409355
movzx eax, byte [eax]
sub eax, ecx
ret
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]
sub eax, ecx
sub edx, ecx
mov ebx, dword [ecx + eax]
xor ebx, dword [ecx + edx]
jne 0x40937b
add ecx, 4
js 0x40936b
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409378
movzx eax, byte [ecx + eax]
movzx edx, byte [ecx + edx]
sub eax, edx
pop ebx
pop ebx
ret
xor eax, eax
ret
test eax, eax
je 0x4093a1
test edx, edx
jne 0x409348
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

Function at 0x40a0b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004050f0
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a0c9
test al, 0x10
je 0x40a0cd
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40df58
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40df91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404d50
jmp 0x40df9a
mov eax, ebx
mov edx, esi
call fcn.00404cb4
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40dfa4
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40dfc6
movzx eax, byte [esp]
jmp 0x40dfc8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40e658
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40e4d0
mov eax, dword [0x4ee6ec]
cmp byte [eax], 0
je 0x40e6d4
mov eax, dword [0x4ee2dc]
call fcn.00403470
call fcn.00403080
lea eax, [esp + 0x44]
push eax
lea eax, [esp + 0x48]
push eax
call sub.user32.dll_CharToOemA
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040a2c0
push eax
lea eax, [esp + 0x50]
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 0x40e71c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40e70a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4ee254]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4f17f8]
call fcn.004065c8
push eax
call sub.user32.dll_LoadStringA_1
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.user32.dll_MessageBoxA_1
add esp, 0x444
ret
Function at 0x40efec
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 0x40f0c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404cf8
lea eax, [ebp - 4]
call fcn.00405148
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004050f0
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40f0ac
mov eax, ebx
call fcn.00402f24
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40f0a5
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.004050f0
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40f08f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40f0d4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40f08f
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 0x40f0ac
mov eax, dword [ebp - 0x10]
call fcn.00402f40
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40f0c9
lea eax, [ebp - 4]
call fcn.00404c60
ret

Function at 0x4284b0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, 0x4f39ec
cmp dword [edi], 0
jne 0x42852c
push 0x40
push 0x1000
push 0x1000
push 0
call sub.kernel32.dll_VirtualAlloc_1
mov esi, eax
mov eax, dword [0x4f39e8]
mov dword [esi], eax
lea edx, [esi + 4]
mov eax, 0x4e6cbc
mov ecx, 2
call fcn.00403114
mov edx, 0x428488
lea eax, [esi + 5]
call fcn.004284a8
mov dword [esi + 6], eax
lea ebx, [esi + 0xa]
mov byte [ebx], 0xe8
lea edx, [esi + 4]
mov eax, ebx
call fcn.004284a8
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 0x428501
mov dword [0x4f39e8], 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

Function at 0x42ae74
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
movzx eax, byte [ebp + 8]
call fcn.0042a8a4
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.004050f0
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x42aed3
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x4ee540]
mov dl, 1
mov eax, dword [0x42a730]
call fcn.0040e83c
call fcn.00404664
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8