joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001a890
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032907
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x10046270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x10], 0
mov edi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [ebx + 4], 0x1003e5c0
lea eax, [ebx + 0xe0]
mov dword [ebx + 0xd4], vtable.CReferencedSeed.0
push eax
mov dword [ebx + 0xdc], vtable.CCritical.0
call edi
lea eax, [ebx + 0xfc]
mov dword [ebx + 0xd8], 1
mov dword [ebx + 0xd4], vtable.CSingletonSeed.0
push eax
mov dword [ebx + 0xf8], vtable.CCritical.0
call edi
mov eax, dword [ebp + 8]
mov dword [ebx + 0x118], eax
mov dword [ebx + 0x11c], 0
mov dword [ebx + 0x114], 0
mov eax, dword [ebx + 4]
mov dword [ebx], vtable.CThreadPool.1.0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [eax + ebx + 4], vtable.CThreadPool.0
mov eax, dword [ebx + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0xd0]
mov dword [ecx + ebx], eax
mov dword [ebx + 0x14], vtable.CMapPtr.0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x1c], 1
mov dword [ebx + 0x20], 0
mov dword [ebx + 0x24], 0
mov dword [ebx + 0x28], 0
mov dword [ebx + 0x2c], 0
lea eax, [ebx + 0x38]
mov dword [ebp - 4], 1
push eax
mov dword [ebx + 0x34], vtable.CCritical.0
call edi
lea esi, [ebx + 0x50]
lea eax, [esi + 4]
push eax
mov dword [esi], vtable.CCritical.0
call edi
lea eax, [ebx + 0x70]
push eax
mov dword [ebx + 0x6c], vtable.CCritical.0
call edi
lea edi, [ebx + 0x90]
mov dword [edi], vtable.CMapPtr.0
mov dword [edi + 4], 0
mov dword [edi + 8], 1
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x18], 0
lea eax, [ebx + 0xac]
mov dword [eax], vtable.CMapPtr.0
mov dword [eax + 4], 0
mov dword [eax + 8], 1
mov dword [eax + 0xc], 0
mov dword [eax + 0x10], 0
mov dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
mov byte [ebp - 4], 6
mov dword [ebp + 8], esi
test esi, esi
je 0x1001aa3e
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
lea ecx, [ebp + 8]
mov dword [ebx + 0x30], 0
call fcn.1000fe40
mov eax, dword [ebx + 0xac]
lea ecx, [ebx + 0xac]
push 0x17
mov dword [ebx + 8], 0
call dword [eax + 4]
mov eax, dword [edi]
push 0x35
mov ecx, edi
call dword [eax + 4]
mov eax, dword [ebx + 0x14]
lea ecx, [ebx + 0x14]
push 0x35
call dword [eax + 4]
mov dword [ebx + 0xc], 0
mov dword [ebx + 0xc8], 0
mov dword [ebx + 0x88], 0xa
mov dword [ebx + 0x8c], 0xa
mov dword [ebx + 0x10], 0xf
mov dword [ebx + 0xcc], 0x1388
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x1001b680
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032b9b
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x10046270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x10], 0
mov esi, dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [edi + 4], 0x1003e838
lea eax, [edi + 0xc4]
mov dword [edi + 0xb8], vtable.CReferencedSeed.0
push eax
mov dword [edi + 0xc0], vtable.CCritical.0
call esi
lea eax, [edi + 0xe0]
mov dword [edi + 0xbc], 1
mov dword [edi + 0xb8], vtable.CSingletonSeed.0
push eax
mov dword [edi + 0xdc], vtable.CCritical.0
call esi
mov eax, dword [ebp + 8]
mov dword [edi + 0xfc], eax
mov dword [edi + 0x100], 0
mov dword [edi + 0xf8], 0
mov eax, dword [edi + 4]
mov dword [edi], vtable.CSingletonLogic.1.0
mov eax, dword [eax + 4]
mov dword [ebp - 0x10], 1
mov dword [eax + edi + 4], vtable.CSingletonLogic.0
mov eax, dword [edi + 4]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0xb4]
mov dword [ecx + edi], eax
mov dword [edi + 8], vtable.CStringBufferW.0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0
mov dword [ebp - 4], 1
mov dword [edi + 0x18], vtable.CStringBufferW.0
mov dword [edi + 0x24], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x1c], 0
lea eax, [edi + 0x34]
push eax
mov dword [edi + 0x30], vtable.CCritical.0
call esi
mov dword [edi + 0x4c], vtable.CArrayPtr.0
mov dword [edi + 0x50], 0
mov dword [edi + 0x54], 0
mov dword [edi + 0x58], 0xa
mov dword [edi + 0x5c], 0
push 0x1f
lea ecx, [edi + 0x60]
mov byte [ebp - 4], 4
call fcn.1000fe80
mov eax, dword [0x10047a68]
mov dword [edi + 0xa0], vtable.CStringBufferW.0
mov dword [edi + 0xac], 0
mov dword [edi + 0xa8], 0
mov dword [edi + 0xa4], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0xb0], 0
cmp eax, 0x15f8f
jge 0x1001b817
inc eax
jmp 0x1001b81c
mov eax, 0x11170
mov dword [0x10047a68], eax
mov dword [edi + 0x98], eax
mov dword [edi + 0x9c], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x1001c001
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi - 0xb4]
lea ecx, [esi - 0xb4]
mov eax, dword [eax + 4]
add ecx, eax
mov eax, dword [ecx]
call dword [eax + 0x2c]
mov eax, dword [esi - 8]
test eax, eax
je 0x1001bf6d
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostMessageA]
push dword [esi - 8]
call dword [sym.imp.USER32.dll_DestroyWindow]
mov dword [esi - 8], 0
mov eax, dword [esi - 0x90]
test eax, eax
je 0x1001bfdf
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
xor edi, edi
push 0x1f4
push eax
call ebx
test eax, eax
mov eax, dword [esi - 0x90]
je 0x1001bf9f
test eax, eax
je 0x1001bfb4
inc edi
cmp edi, 0xa
jl 0x1001bf81
jmp 0x1001bfb4
test eax, eax
je 0x1001bfb4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi - 0x90], 0
mov eax, dword [esi - 0x90]
pop edi
pop ebx
test eax, eax
je 0x1001bfdf
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi - 0x90]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi - 0x90], 0
pop esi
ret
sub ecx, dword [ecx - 4]
jmp 0x1001bf30

Function at 0x1001c020
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10032cf6
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x10046270]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.CListViewCtrl.0
mov dword [ecx], vtable.CMapPtr.0
mov dword [ecx + 4], 0
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 0
mov dword [ecx + 0x18], 0
mov dword [ebp - 4], 0
mov dword [esi + 0x20], vtable.CArrayPtr.0
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0xa
mov dword [esi + 0x30], 0
mov byte [ebp - 4], 1
mov eax, dword [ecx]
push 5
mov dword [esi + 0x3c], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x40], 0
call dword [eax + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1002ba98
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10046270]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.100256bf
mov dword [ebp - 0x14], eax
cmp dword [0x10048cbc], edi
jne 0x1002bb89
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x1002bb16
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1002bc69
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1002bc69
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1002bc69
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10048cbc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10048cc0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10048cc4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10048ccc], eax
test eax, eax
je 0x1002bb86
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10048cc8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1002bbae
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1002bba1
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x1002bbc3
push 4
pop eax
jmp 0x1002bc6b
cmp dword [ebp - 0x14], edi
je 0x1002bbc3
push dword [0x10048cbc]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1002bba8
mov eax, dword [0x10048cc8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x1002bc21
cmp dword [0x10048ccc], esi
je 0x1002bc21
push eax
call ebx
push dword [0x10048ccc]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1002bc21
test eax, eax
je 0x1002bc21
call ecx
test eax, eax
je 0x1002bc16
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 0x1002bc16
test byte [ebp - 8], 1
jne 0x1002bc21
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x1002bc51
mov eax, dword [0x10048cc0]
cmp eax, esi
je 0x1002bc4e
push eax
call ebx
test eax, eax
je 0x1002bc4e
call eax
mov edi, eax
test edi, edi
je 0x1002bc4e
mov eax, dword [0x10048cc4]
cmp eax, esi
je 0x1002bc4e
push eax
call ebx
test eax, eax
je 0x1002bc4e
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10048cbc]
call ebx
test eax, eax
je 0x1002bc69
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1002bc6b
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1001d3d5
leave
ret
Function at 0x403358
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.00405530
test esi, esi
jne 0x40338e
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.00405620
jmp 0x4033ac
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.004031fc
mov edi, eax
test esi, esi
je 0x4033ac
cmp dword [ebx], 0
je 0x4033ac
dec esi
jmp 0x403395
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x404448
Capabilities:
Query or enumerate registry value

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

Function at 0x4052fc
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x49504c], 0
je 0x40535d
cmp word [0x495220], 0xd7b2
jne 0x405325
cmp dword [0x495228], 0
jbe 0x405325
mov eax, 0x49521c
call dword [0x495238]
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 0x405384
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x491030], 0
jne 0x405379
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x4054b4
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 [0x491038], 0
je 0x4054da
mov edx, esi
mov eax, ebx
call dword [0x491038]
jmp 0x4054e9
mov eax, 8
call fcn.00402f00
mov dword [eax], ebx
mov dword [eax + 4], esi
mov byte [0x49504d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x40547c
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 0x406c2c
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 0x406e5c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406caf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406caf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406d38
xor eax, eax
push ebp
push 0x406d31
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406a68
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 0x406d16
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406e98
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406d16
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 0x406d38
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 0x406e52
cmp byte [ebp - 0xd], 0
jne 0x406d7f
cmp byte [ebp - 0x12], 0
je 0x406e52
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406d98
dec ebx
cmp byte [ebx], 0x2e
je 0x406da7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406d97
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406e52
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406de4
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 0x406e52
cmp byte [ebp - 0xd], 0
je 0x406e52
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 0x406e52
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 0x406d38
Capabilities:
Get geographical location

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 0x406e5c
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406caf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e5c
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x406caf
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x406e78
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x406d38
xor eax, eax
push ebp
push 0x406d31
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.00406a68
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 0x406d16
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x406e98
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x406d16
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 0x406d38
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 0x406e52
cmp byte [ebp - 0xd], 0
jne 0x406d7f
cmp byte [ebp - 0x12], 0
je 0x406e52
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x406d98
dec ebx
cmp byte [ebx], 0x2e
je 0x406da7
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x406d97
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x406e52
inc ebx
cmp byte [ebp - 0x12], 0
je 0x406de4
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 0x406e52
cmp byte [ebp - 0xd], 0
je 0x406e52
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 0x406e52
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 0x4098ec
Capabilities:
Encrypt data using rc4 prga

Disassembly:
cmp eax, edx
je 0x40993e
test eax, edx
je 0x409941
movzx ecx, byte [edx]
cmp cl, byte [eax]
je 0x409901
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 0x409927
add ecx, 4
js 0x409917
pop eax
pop ebx
ret
bsf ebx, ebx
shr ebx, 3
add ecx, ebx
jns 0x409924
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 0x40994d
test edx, edx
jne 0x4098f4
mov eax, dword [eax - 4]
ret
sub eax, dword [edx - 4]
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004059dc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a285
test al, 0x10
je 0x40a289
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

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

Disassembly:
push ebx
mov ebx, eax
mov eax, ebx
call fcn.004059dc
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x40a2a9
test al, 0x10
jne 0x40a2ad
xor eax, eax
pop ebx
ret
mov al, 1
pop ebx
ret

Function at 0x40d334
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 0x40d36d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00405620
jmp 0x40d376
mov eax, ebx
mov edx, esi
call fcn.00405584
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x40d8ac
mov eax, dword [0x494ba0]
cmp byte [eax], 0
je 0x40dab0
mov eax, dword [0x49492c]
call fcn.00403820
call fcn.0040305c
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.0040a868
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 0x40daf8
push 0xfffffffffffffff4
call sub.kernel32.dll_GetStdHandle_1
push eax
call sub.kernel32.dll_WriteFile_1
jmp 0x40dae6
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x4948b8]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4977f8]
call fcn.00406a10
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 0x40e3a4
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 0x40e47a
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.004055c8
lea eax, [ebp - 4]
call fcn.00405a34
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004059dc
push eax
call sub.version.dll_GetFileVersionInfoSizeA
mov ebx, eax
test ebx, ebx
je 0x40e464
mov eax, ebx
call fcn.00402f00
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x40e45d
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.004059dc
push eax
call sub.version.dll_GetFileVersionInfoA
test eax, eax
je 0x40e447
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x40e48c
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x40e447
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 0x40e464
mov eax, dword [ebp - 0x10]
call fcn.00402f1c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40e481
lea eax, [ebp - 4]
call fcn.00405530
ret

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