joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4d0670
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x388]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xdc]
mov edx, eax
mov eax, dword [esi + 0x284]
mov ecx, dword [eax]
call dword [ecx + 0x18]
test eax, eax
je 0x4d076b
mov esi, dword [ebx + 0x388]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xdc]
mov edx, eax
mov eax, dword [esi + 0x284]
mov ecx, dword [eax]
call dword [ecx + 0x18]
cmp dword [eax + 8], 0
je 0x4d076b
call sub.kernel32.dll_GetTickCount
sub eax, dword [ebx + 0x3ac]
cmp eax, 0x1f4
jbe 0x4d076b
call sub.kernel32.dll_GetTickCount
mov dword [ebx + 0x3ac], eax
xor edx, edx
mov eax, dword [ebx + 0x360]
call fcn.004b7c40
mov esi, dword [ebx + 0x388]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xdc]
mov edx, eax
mov eax, dword [esi + 0x284]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [eax + 8]
mov eax, dword [ebx + 0x360]
call fcn.004b7c90
mov esi, dword [ebx + 0x388]
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0xdc]
mov edx, eax
mov eax, dword [esi + 0x284]
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov edx, dword [eax + 0xc]
mov eax, dword [ebx + 0x360]
call fcn.004b7d90
mov dl, 1
mov eax, dword [ebx + 0x360]
call fcn.004b7c40
mov dl, 1
mov eax, dword [ebx + 0x378]
call fcn.0044ff24
xor edx, edx
mov eax, dword [ebx + 0x38c]
call fcn.0044ff24
pop esi
pop ebx
ret
Function at 0x4d0cb0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov ecx, 7
push 0
push 0
dec ecx
jne 0x4d0cb8
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x4d0edd
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x418610]
call fcn.0040430c
mov edx, dword [0x4d9480]
mov dword [edx], eax
mov eax, dword [0x4d9480]
mov eax, dword [eax]
mov edx, dword [eax]
call dword [edx + 8]
mov dl, 1
mov eax, dword [0x418c7c]
call fcn.0040430c
mov dword [ebp - 0x20], eax
xor eax, eax
push ebp
push 0x4d0e9e
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, ebx
mov eax, dword [ebp - 0x20]
mov ecx, dword [eax]
call dword [ecx + 0x6c]
mov eax, dword [ebp - 0x20]
mov edx, dword [eax]
call dword [edx + 0x14]
mov ebx, eax
dec ebx
test ebx, ebx
jl 0x4d0e88
inc ebx
xor esi, esi
lea ecx, [ebp - 4]
mov edx, esi
mov eax, dword [ebp - 0x20]
mov edi, dword [eax]
call dword [edi + 0xc]
cmp dword [ebp - 4], 0
je 0x4d0e80
mov eax, dword [ebp - 4]
cmp byte [eax], 0x3b
je 0x4d0e80
push 1
lea eax, [ebp - 0x24]
push eax
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 9
lea ecx, [ebp - 0x28]
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004cf058
mov edx, dword [ebp - 0x24]
lea eax, [ebp - 4]
call fcn.004052d8
push 1
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 9
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 4]
call fcn.004cf058
mov edx, dword [ebp - 0x2c]
lea eax, [ebp - 4]
call fcn.004052d8
push 1
lea eax, [ebp - 0x30]
push eax
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 9
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.004cf058
mov edx, dword [ebp - 0x30]
lea eax, [ebp - 4]
call fcn.004052d8
push 1
lea eax, [ebp - 0x34]
push eax
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 9
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x14]
mov eax, dword [ebp - 4]
call fcn.004cf058
mov edx, dword [ebp - 0x34]
lea eax, [ebp - 4]
call fcn.004052d8
push 1
lea eax, [ebp - 0x38]
push eax
mov byte [ebp - 0x28], 0x20
mov byte [ebp - 0x27], 9
lea ecx, [ebp - 0x28]
lea edx, [ebp - 0x18]
mov eax, dword [ebp - 4]
call fcn.004cf058
mov edx, dword [ebp - 0x38]
lea eax, [ebp - 4]
call fcn.004052d8
cmp dword [ebp - 8], 0
je 0x4d0e80
cmp dword [ebp - 0xc], 0
je 0x4d0e80
cmp dword [ebp - 0x14], 0
je 0x4d0e80
mov edx, dword [0x4cdd38]
mov eax, 0x14
call fcn.00406240
mov edi, eax
mov eax, dword [ebp - 8]
call fcn.00409fa4
mov dword [edi], eax
lea eax, [edi + 4]
mov edx, dword [ebp - 0xc]
call fcn.00405294
lea eax, [edi + 8]
mov edx, dword [ebp - 0x10]
call fcn.00405294
lea eax, [edi + 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00405294
lea eax, [edi + 0x10]
mov edx, dword [ebp - 0x18]
call fcn.00405294
mov eax, dword [0x4d9480]
mov eax, dword [eax]
mov edx, edi
call fcn.0041ac74
inc esi
dec ebx
jne 0x4d0d32
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d0ea5
mov eax, dword [ebp - 0x20]
call fcn.0040433c
ret
Function at 0x40102c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x128]
push eax
push edi
mov dword [ebp - 0x128], 0x128
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x401093
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.MSVCRT.dll__mbscmp]
pop ecx
test eax, eax
pop ecx
jne 0x401081
mov eax, dword [ebp - 0x120]
mov dword [esi], eax
add esi, 4
lea eax, [ebp - 0x128]
push eax
push edi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x401060
pop esi
lea ecx, [ebp + 0xc]
call sub.MFC42.DLL_CString::CString
pop edi
leave
ret 8

Function at 0x4012d2
Capabilities:
Read .ini file

Disassembly:
mov eax, 0x41321b
call fcn.00412d40
push ecx
push ecx
and dword [ebp - 0x14], 0
push ebx
push esi
push edi
lea ecx, [ebp - 0x10]
mov dword [ebp - 4], 4
call sub.MFC42.DLL_CString::CString_1
push dword [ebp + 0xc]
mov esi, dword [ebp + 0x18]
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
mov eax, 0x100
lea ecx, [ebp - 0x10]
push eax
push eax
mov byte [ebp - 4], 5
call sub.MFC42.DLL_CString::GetBuffer
push eax
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push 0xffffffffffffffff
lea ecx, [ebp - 0x10]
call sub.MFC42.DLL_CString::ReleaseBuffer
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
call sub.MFC42.DLL_CString::CString_2
mov dword [ebp - 0x14], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 4
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 3
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 2
call sub.MFC42.DLL_CString::CString
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call sub.MFC42.DLL_CString::CString
and byte [ebp - 4], 0
lea ecx, [ebp + 0x18]
call sub.MFC42.DLL_CString::CString
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x401703
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4164e0
push 0x412da0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
xor edi, edi
mov dword [ebp - 4], edi
push dword [ebp + 8]
push edi
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
mov dword [ebp - 0x28], esi
push 0x40
mov ebx, 0x1000
push ebx
push 0x3000
push edi
push esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
call edi
mov dword [ebp - 0x24], eax
push 0x40
push ebx
push dword [ebp + 0x14]
xor ebx, ebx
push ebx
push esi
call edi
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x2c]
push eax
push 0x400
push dword [ebp + 0xc]
push dword [ebp - 0x24]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
call edi
lea eax, [ebp - 0x2c]
push eax
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x20]
push esi
call edi
push ebx
push ebx
push dword [ebp - 0x20]
push dword [ebp - 0x24]
push ebx
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov dword [ebp - 0x1c], eax
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ebx, 0x8000
push ebx
push 0x400
push dword [ebp - 0x24]
push esi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
call edi
push ebx
push dword [ebp + 0x14]
push dword [ebp - 0x20]
push esi
call edi
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push esi
call edi
jmp 0x4017e8
or dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
leave
ret 0x10

Function at 0x4017fd
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
lea eax, [ebp - 4]
push esi
push eax
push 0x20
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x401875
lea eax, [ebp - 0xc]
push eax
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
mov eax, dword [ebp - 0xc]
push esi
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
neg eax
sbb eax, eax
push esi
and eax, 2
push 0x10
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x1c]
push eax
push esi
push dword [ebp - 4]
mov dword [ebp - 0x1c], 1
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [ebp - 4]
mov esi, eax
neg esi
sbb esi, esi
inc esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
leave
ret 4
Function at 0x40aa49
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x416c08]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00405c3b
mov dword [ebp - 0x14], eax
cmp dword [0x4aa6ac], esi
jne 0x40ab3c
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40aac9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40ac1c
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40ac1c
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40ac1c
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4aa6ac], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4aa6b0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4aa6b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4aa6bc], eax
test eax, eax
je 0x40ab39
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4aa6b8], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40ab61
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40ab54
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40ab76
push 4
pop eax
jmp 0x40ac1e
cmp dword [ebp - 0x14], esi
je 0x40ab76
push dword [0x4aa6ac]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40ab5b
mov eax, dword [0x4aa6b8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40abd4
cmp dword [0x4aa6bc], edi
je 0x40abd4
push eax
call ebx
push dword [0x4aa6bc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40abd4
test eax, eax
je 0x40abd4
call ecx
test eax, eax
je 0x40abc9
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40abc9
test byte [ebp - 8], 1
jne 0x40abd4
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40ac04
mov eax, dword [0x4aa6b0]
cmp eax, edi
je 0x40ac01
push eax
call ebx
test eax, eax
je 0x40ac01
call eax
mov esi, eax
test esi, esi
je 0x40ac01
mov eax, dword [0x4aa6b4]
cmp eax, edi
je 0x40ac01
push eax
call ebx
test eax, eax
je 0x40ac01
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4aa6ac]
call ebx
test eax, eax
je 0x40ac1c
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40ac1e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004038cd
mov esp, ebp
pop ebp
ret
Function at 0x4033c8
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.004054b4
test esi, esi
jne 0x4033fe
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.004055a4
jmp 0x40341c
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004032cc
mov edi, eax
test esi, esi
je 0x40341c
cmp dword [ebx], 0
je 0x40341c
dec esi
jmp 0x403405
add esp, 0x108
pop edi
pop esi
pop ebx
ret

Function at 0x403454
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x54b008], 0x8088405
inc edx
mov dword [ebx + 0x54b008], edx
mul edx
mov eax, edx
pop ebx
ret

Function at 0x4042ac
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x54b024]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x404344
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x404324
xor eax, eax
push ebp
push 0x40431d
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 0x404360
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 0x404324
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
movzx eax, word [0x54b024]
and ax, 0xffc0
movzx edx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x54b024], ax
mov esp, ebp
pop ebp
ret

Function at 0x405280
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x55204c], 0
je 0x4052e1
cmp word [0x552220], 0xd7b2
jne 0x4052a9
cmp dword [0x552228], 0
jbe 0x4052a9
mov eax, 0x55221c
call dword [0x552238]
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 0x405308
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x54b030], 0
jne 0x4052fd
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x405438
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 [0x54b038], 0
je 0x40545e
mov edx, esi
mov eax, ebx
call dword [0x54b038]
jmp 0x40546d
mov eax, 8
call fcn.00402fdc
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x55204d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x405400
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 0x407234
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 0x407464
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4072b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407464
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x4072b7
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x407480
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x407340
xor eax, eax
push ebp
push 0x407339
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00407070
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 0x40731e
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x4074a0
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x40731e
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 0x407340
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 0x40745a
cmp byte [ebp - 0xd], 0
jne 0x407387
cmp byte [ebp - 0x12], 0
je 0x40745a
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x4073a0
dec ebx
cmp byte [ebx], 0x2e
je 0x4073af
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x40739f
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x40745a
inc ebx
cmp byte [ebp - 0x12], 0
je 0x4073ec
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 0x40745a
cmp byte [ebp - 0xd], 0
je 0x40745a
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 0x40745a
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 0x409e78
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x409eca
test eax, edx
je 0x409ecd
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409e8d
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 0x409eb3
add ecx, 4
js 0x409ea3
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409eb0
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 0x409ed9
test edx, edx
jne 0x409e80
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405944
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40ac91
test al, 0x10
je 0x40ac95
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.00405944
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40acb5
test al, 0x10
jne 0x40acb9
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40ec58
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 0x40ec91
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.004055a4
jmp 0x40ec9a
mov eax, ebx
mov edx, esi
call fcn.00405508
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40eca4
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 0x40ecc6
movzx eax, byte [esp]
jmp 0x40ecc8
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40f358
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40f1d0
mov eax, dword [0x551b64]
cmp byte [eax], 0
je 0x40f3d4
mov eax, dword [0x55166c]
call fcn.00403858
call fcn.00403138
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.0040b014
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 0x40f41c
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40f40a
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x5515b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x5547f8]
call fcn.00407018
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 0x40fcec
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 0x40fdc2
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040554c
lea eax, [ebp - 4]
call fcn.0040599c
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.00405944
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40fdac
mov eax, ebx
call fcn.00402fdc
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40fda5
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.00405944
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40fd8f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40fdd4
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40fd8f
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 0x40fdac
mov eax, dword [ebp - 0x10]
call fcn.00402ff8
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40fdc9
lea eax, [ebp - 4]
call fcn.004054b4
ret

Function at 0x429d4c
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 0x429d9a
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.00429a5c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x429db3
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret