joyce8/EMBER2024-capa huggingface dataset:
Function at 0x114d8
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x14004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push eax
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
pop eax
lea eax, [ebp - 0x118]
push eax
mov dword [ebp - 0x118], 0x114
call dword [sym.imp.ntoskrnl.exe_RtlGetVersion]
cmp dword [ebp - 0x114], 5
jne 0x11525
cmp dword [ebp - 0x110], 1
je 0x11569
push eax
mov eax, cr0
and eax, 0xfffeffff
mov cr0, eax
pop eax
mov edi, dword [0x14020]
mov esi, 0x140a0
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [0x140f4]
mov esi, 0x140aa
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov edi, dword [0x1411c]
mov esi, 0x14032
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
push eax
mov eax, cr0
or eax, 0x10000
mov cr0, eax
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00011da0
leave
ret

Function at 0x1157c
Capabilities:
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [sym.imp.ntoskrnl.exe_NtOpenThread]
mov ecx, dword [sym.imp.ntoskrnl.exe_NtOpenProcess]
mov edx, dword [0x14100]
mov dword [0x14024], eax
mov eax, dword [sym.imp.ntoskrnl.exe_NtDuplicateObject]
mov dword [0x140f4], eax
mov eax, dword [sym.imp.ntoskrnl.exe_KeAttachProcess]
mov dword [0x14104], eax
mov eax, dword [sym.imp.ntoskrnl.exe_KeStackAttachProcess]
mov dword [0x14108], eax
mov eax, dword [sym.imp.ntoskrnl.exe_NtSetInformationProcess]
mov dword [0x140f0], eax
mov eax, dword [sym.imp.ntoskrnl.exe_KeServiceDescriptorTable]
mov dword [0x140fc], ecx
mov eax, dword [eax]
mov eax, dword [eax + 0x50]
mov dword [0x1411c], eax
mov eax, dword [0x14158]
test eax, eax
jne 0x115e6
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0x7e8]
mov dword [0x14118], eax
mov eax, dword [0x14160]
test eax, eax
jne 0x115fd
mov eax, dword [edx + 0x10]
mov eax, dword [eax + 0x6e4]
mov dword [0x1410c], eax
mov eax, dword [ebp + 8]
mov dword [eax], ecx
mov ecx, dword [0x14024]
mov dword [eax + 8], ecx
mov ecx, dword [0x140f4]
mov dword [eax + 0x34], ecx
mov ecx, dword [0x140fc]
mov dword [eax + 0x30], ecx
mov ecx, dword [0x14104]
mov dword [eax + 0xc], ecx
mov ecx, dword [0x14108]
mov dword [eax + 0x14], ecx
mov ecx, dword [0x1411c]
mov dword [eax + 4], ecx
mov ecx, dword [0x14118]
mov dword [eax + 0x20], ecx
mov ecx, dword [0x1410c]
push esi
mov esi, 0x1216c
mov dword [eax + 0x24], ecx
mov ecx, dword [0x14118]
push esi
push 0x1228a
mov dword [eax + 0x20], ecx
call sub.ntoskrnl.exe_DbgPrint
push dword [0x140fc]
push esi
push 0x12262
call sub.ntoskrnl.exe_DbgPrint
push dword [0x14024]
push esi
push 0x1223a
call sub.ntoskrnl.exe_DbgPrint
push dword [0x140f4]
push esi
push 0x12212
call sub.ntoskrnl.exe_DbgPrint
push dword [0x14104]
push esi
push 0x121ea
call sub.ntoskrnl.exe_DbgPrint
push dword [0x14108]
push esi
push 0x121c2
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x44
push dword [0x14118]
push esi
push 0x1219a
call sub.ntoskrnl.exe_DbgPrint
push dword [0x1410c]
push esi
push 0x12174
call sub.ntoskrnl.exe_DbgPrint
add esp, 0x18
pop esi
pop ebp
ret 8
Function at 0x40423b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov esi, eax
mov dword [ebp - 0xc], esi
cmp dword [0x40e4d4], ebx
jne 0x404271
push 0x40e4b8
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
mov dword [0x40e4d4], 1
push 0x40e4b8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov eax, dword [0x40e4d0]
mov edi, eax
cmp eax, ebx
je 0x4042d5
cmp dword [ebp - 4], ebx
jne 0x404415
xor eax, eax
inc eax
lea ecx, [edi + 0x114]
cmp esi, dword [ecx]
je 0x4042a8
inc eax
add ecx, 4
cmp eax, 0x40
jl 0x404299
jmp 0x4042c6
push dword [ebp + 0xc]
lea esi, [edi + eax*4 + 0x210]
push dword [ebp + 8]
call fcn.00404090
mov esi, dword [ebp - 0xc]
pop ecx
pop ecx
mov dword [ebp - 4], 1
mov edi, dword [edi]
cmp edi, ebx
jne 0x404287
cmp dword [ebp - 4], ebx
jne 0x404415
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push ebx
push ebx
push 0x100000
lea eax, [ebp - 8]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
push eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_DuplicateHandle]
test eax, eax
je 0x404415
mov edi, dword [0x40e4d0]
jmp 0x404315
cmp dword [edi + 0xc], 0x3f
jl 0x4043af
mov edi, dword [edi]
cmp edi, ebx
jne 0x404309
push 0x310
push 8
push dword [0x40e428]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
cmp edi, ebx
je 0x40440c
push ebx
push 1
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreA]
mov dword [edi + 8], eax
cmp eax, ebx
je 0x4043fe
push ebx
push ebx
push edi
push 0x4040e1
mov dword [edi + 0x10], eax
mov eax, dword [ebp - 8]
mov dword [edi + 0x114], esi
push 0x1000
lea esi, [edi + 0x214]
push ebx
mov dword [edi + 0x14], eax
mov dword [esi], ebx
mov dword [edi + 0xc], 2
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp eax, ebx
je 0x4043f5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00404090
mov eax, dword [0x40e4d0]
pop ecx
pop ecx
mov dword [edi + 4], ebx
mov dword [edi], eax
cmp eax, ebx
je 0x4043a7
mov dword [eax + 4], edi
mov dword [0x40e4d0], edi
jmp 0x404415
mov eax, dword [edi + 0xc]
mov ecx, dword [ebp - 8]
push dword [ebp + 0xc]
mov dword [edi + eax*4 + 0x10], ecx
mov eax, dword [edi + 0xc]
push dword [ebp + 8]
mov dword [edi + eax*4 + 0x110], esi
mov eax, dword [edi + 0xc]
mov dword [edi + eax*4 + 0x210], ebx
mov eax, dword [edi + 0xc]
lea esi, [edi + eax*4 + 0x210]
call fcn.00404090
inc dword [edi + 0xc]
pop ecx
pop ecx
push ebx
push 1
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
jmp 0x404415
push dword [edi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebx
push dword [0x40e428]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x40e4b8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x404c00
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x404c7c
push 9
call esi
test bl, al
je 0x404c7c
push 0x11
call esi
test bl, al
jne 0x404c7c
push 0x10
call esi
test bl, al
jne 0x404c7c
push 0x12
call esi
test bl, al
jne 0x404c7c
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x404c7c
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x404c7c
xor eax, eax
jmp 0x404cfe
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x404ca5
push 0x11
call esi
test bl, al
jne 0x404c9d
push 0x10
call esi
test bl, al
jne 0x404c9d
push 0x12
call esi
test bl, al
je 0x404ca5
push 1
push ebp
call fcn.00404bb9
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x404cbb
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x404cfb
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x404cfb
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x404cfb
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x404cfb
dec esi
push esi
push dword [0x40e638]
call fcn.0040944c
test eax, eax
je 0x404cfb
mov eax, dword [eax + 8]
jmp 0x404cfd
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40625c
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x94
push edi
push str.msimg32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor edi, edi
mov dword [0x40e51c], eax
cmp eax, edi
je 0x40628f
push str.AlphaBlend
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x40e520], eax
lea eax, [ebp - 0x1c]
push eax
mov dword [0x40e518], 1
mov dword [ebp - 0x1c], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x4062cd
cmp dword [ebp - 0xc], 1
je 0x4062de
cmp dword [ebp - 0xc], 2
jne 0x4062cd
cmp dword [ebp - 0x18], 5
jb 0x4062de
jne 0x4062cd
cmp dword [ebp - 0x14], edi
jne 0x4062cd
mov dword [0x40e518], edi
cmp dword [0x40e518], edi
je 0x4062e4
call fcn.004061a3
test eax, eax
jne 0x4062e4
mov dword [0x40e518], edi
pop edi
add ebp, 0x78
leave
ret
Function at 0x408a70
Capabilities:
Delete file
Set file attributes

Disassembly:
cmp dword [esp + 4], 0
je 0x408a99
test byte [esp + 8], 2
je 0x408a8d
push pe_nt_image_headers32
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x408a9b
xor eax, eax
ret 8

Function at 0x408b1d
Capabilities:
Get disk information
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x248
push ebx
push esi
or esi, 0xffffffff
xor ebx, ebx
push edi
mov edi, esi
cmp eax, ebx
je 0x408c5e
cmp byte [eax], bl
je 0x408c5e
push 0x104
push eax
lea eax, [ebp - 0x108]
push eax
call sub.MSVCRT.dll_strncpy
lea eax, [ebp - 0x108]
push eax
mov byte [ebp - 4], bl
call sub.MSVCRT.dll_strlen
add esp, 0x10
lea ecx, [ebp + eax - 0x109]
cmp eax, 2
je 0x408b78
cmp eax, 3
jne 0x408bb7
cmp byte [ebp - 0x107], 0x3a
jne 0x408bb7
cmp eax, 2
jne 0x408b99
lea eax, [ebp - 0x108]
push 0x40c1fc
push eax
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x408c5e
or esi, 0xffffffff
jmp 0x408c5b
mov al, byte [ecx]
cmp al, 0x5c
je 0x408bc1
cmp al, 0x2f
jne 0x408bc6
mov byte [ecx], bl
dec ecx
jmp 0x408bb7
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
or ebx, 0xffffffff
cmp eax, ebx
je 0x408c0c
test byte [ebp - 0x248], 0x10
je 0x408bf1
push 0xfffffffffffffffe
pop edi
mov esi, ebx
jmp 0x408c03
mov esi, dword [ebp - 0x22c]
xor edi, edi
or edi, dword [ebp - 0x228]
xor edx, edx
or esi, edx
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
jmp 0x408c5e
cmp byte [ebp - 0x108], 0x5c
jne 0x408c1e
cmp byte [ebp - 0x107], 0x5c
je 0x408c30
cmp byte [ebp - 0x108], 0x2e
jne 0x408c5e
cmp byte [ebp - 0x107], 0x2e
jne 0x408c5e
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, ebx
je 0x408c47
test al, 0x10
je 0x408c5e
jmp 0x408c59
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 1
jbe 0x408c5e
mov esi, ebx
push 0xfffffffffffffffe
pop edi
mov eax, edi
pop edi
mov edx, esi
pop esi
pop ebx
leave
ret 4

Function at 0x408da0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x408dd5
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4
Function at 0x4090f0
Capabilities:
Write file on windows

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
mov ecx, dword [0x40e774]
push esi
push eax
push ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x10], 0
call fcn.0040944c
mov esi, eax
test esi, esi
je 0x4091b7
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
test ecx, ecx
je 0x40916f
cmp byte [ecx], 0
je 0x40916f
cmp dword [esi + 4], 0
mov eax, ecx
push edi
lea edi, [eax + 1]
je 0x409157
nop
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409140
sub eax, edi
push eax
push ecx
push esi
call fcn.004092a0
mov dword [esp + 0xc], eax
jmp 0x40916e
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x409157
push 0
lea edx, [esp + 0x10]
push edx
sub eax, edi
push eax
mov eax, dword [esi]
push ecx
push eax
call ebp
pop edi
cmp dword [esi + 4], 0
je 0x409192
push 2
push 0x40c1c4
push esi
call fcn.004092a0
mov ecx, eax
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov edx, dword [esi]
push 0
lea ecx, [esp + 0x10]
push ecx
push 2
push 0x40c1c4
push edx
call ebp
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 8]
pop ebp
add eax, ecx
pop esi
add esp, 8
ret 8
mov eax, dword [esp + 4]
pop esi
add esp, 8
ret 8

Function at 0x4092a0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
cmp dword [esi + 0x14], 1
push edi
mov dword [esp + 8], 0
jne 0x4092d5
mov eax, dword [esi + 0xc]
mov ecx, dword [esi]
push 1
push 0
neg eax
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov edx, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0xc], edx
mov ecx, dword [esi + 0xc]
mov edi, dword [esp + 0x18]
cmp ecx, edi
jle 0x40934a
mov eax, dword [esi + 8]
add eax, dword [esi + 4]
sub eax, ecx
mov ecx, edi
dec ecx
je 0x409337
dec ecx
je 0x409322
sub ecx, 2
je 0x40930f
mov ecx, dword [esp + 0x14]
push edi
push ecx
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov ecx, dword [edx]
mov dword [eax], ecx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cx, word [edx]
mov word [eax], cx
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
mov edx, dword [esp + 0x14]
mov cl, byte [edx]
mov byte [eax], cl
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
push esi
call fcn.00408da0
mov eax, dword [esi + 8]
cmp edi, eax
jl 0x409377
mov eax, dword [esp + 0x14]
mov ecx, dword [esi]
push 0
lea edx, [esp + 0xc]
push edx
push edi
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 8]
pop edi
pop esi
pop ecx
ret 0xc
mov ecx, dword [esi + 4]
sub ecx, dword [esi + 0xc]
mov edx, dword [esp + 0x14]
push edi
push edx
add ecx, eax
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
sub dword [esi + 0xc], edi
mov eax, edi
pop edi
pop esi
pop ecx
ret 0xc
Function at 0x401088
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x190
xor eax, eax
push esi
mov esi, ecx
push edi
mov ecx, 0x1369e
lea edi, [esi + 0x10]
mov dword [esi], 0x403430
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [esi + 0xc], eax
mov dword [esi + 0x4da8c], edi
mov dword [esi + 4], edi
mov dword [esi + 8], 0xffffffff
mov eax, esi
pop edi
pop esi
add esp, 0x190
ret

Function at 0x401130
Capabilities:
Create thread

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
push str.Kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
jne 0x40116a
mov eax, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0x4052c0
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
mov eax, 1
pop edi
pop esi
pop ebx
ret
push str.VirtualAlloc
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x4011a6
mov ecx, dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char___std::cerr]
push 0x405290
push ecx
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::operator___class_std::basic_ostream_char__struct_std::char_traits_char_____char_const__]
push eax
call dword [sym.imp.MSVCP60.dll_class_std::basic_ostream_char__struct_std::char_traits_char______cdecl_std::endl_class_std::basic_ostream_char__struct_std::char_traits_char____]
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
mov eax, 1
pop ebx
ret
mov edx, dword [0x40528c]
push 0x40
push 0x3000
push edx
push 0
call eax
mov ecx, dword [0x40528c]
mov ebx, eax
lea esi, [edi + 0x4da90]
mov edi, ebx
mov eax, ecx
mov edx, edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
test edx, edx
rep movsb byte es:[edi], byte [esi]
jne 0x4011e2
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push 0
push ebx
push ebx
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, eax
test esi, esi
jne 0x40120b
push 0x8000
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x402788
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [section.DATA]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x402820
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x402800
xor eax, eax
push ebp
push 0x4027f9
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 0x40283c
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 0x402800
mov eax, dword [ebp - 4]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov ax, word [section.DATA]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [section.DATA], ax
mov esp, ebp
pop ebp
ret
Function at 0x403d5c
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 0xf003f
push 0
push 0x403ef8
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x403e0c
xor eax, eax
push ebp
push 0x403e05
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
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 0x403dee
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x403f18
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403e0c
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey
ret
mov eax, dword [ebp - 4]
push eax
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrcpyA
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 0x403eed
cmp byte [ebp - 0xd], 0
jne 0x403e4e
cmp byte [ebp - 0x12], 0
je 0x403eed
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x403e67
dec ebx
cmp byte [ebx], 0x2e
je 0x403e76
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x403e66
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x403eed
inc ebx
cmp byte [ebp - 0x12], 0
je 0x403ea3
lea eax, [ebp - 0x12]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403eed
cmp byte [ebp - 0xd], 0
je 0x403eed
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
push 2
push 0
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_LoadLibraryExA
mov esi, eax
test esi, esi
jne 0x403eed
mov byte [ebp - 0xb], 0
lea eax, [ebp - 0xd]
push eax
push ebx
call sub.kernel32.dll_lstrcpyA
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 0x406b10
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 0x406b31
mov al, byte [esp]
jmp 0x406b33
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x40c87c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov edi, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040c6c8
mov ebx, eax
mov esi, ebx
cmp ebx, 0xffffffff
je 0x40c8d0
xor esi, esi
push edi
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
xor edx, edx
mov eax, ebx
call fcn.0040c7b8
cmp edi, eax
je 0x40c8c4
mov esi, dword [0x42b5c8]
push ebx
call sub.kernel32.dll_SetEndOfFile_1
push ebx
call sub.kernel32.dll_CloseHandle_1
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x40c8dc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, ecx
mov edi, edx
mov dword [ebp - 4], eax
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov dword [esi], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.0040c6c8
mov ebx, eax
cmp ebx, 0xffffffff
setne byte [ebp - 5]
cmp byte [ebp - 5], 0
je 0x40c93e
push 0
push ebx
call sub.kernel32.dll_GetFileSize_1
mov dword [esi], eax
mov edx, dword [esi]
mov eax, edi
mov cx, 0x42
call fcn.004062d0
mov eax, dword [esi]
push eax
push 0
mov eax, dword [edi]
push eax
xor ecx, ecx
xor edx, edx
mov eax, ebx
call fcn.0040c770
push ebx
call sub.kernel32.dll_CloseHandle_1
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x40c988
Capabilities:
Get file size

Disassembly:
pushal
xor ebx, ebx
mov esi, eax
xor eax, eax
mov dword [esi], 0xffffffff
mov edi, dword [esi + 0x14]
cmp edi, ebx
je 0x40c9b9
mov eax, edi
mov edx, dword [esi + 0x10]
call fcn.0040c6c8
cmp eax, 0xffffffff
je 0x40ca16
mov dword [esi], eax
push ebx
push esp
push eax
call sub.kernel32.dll_GetFileSize_1
pop ecx
mov dword [esi + 8], eax
add eax, dword [esi + 0xc]
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
push dword [esi + 0x18]
push eax
push ebx
push 4
test dword [esi + 0x10], 2
jne 0x40c9d9
mov dword [esp], 2
push ebx
push dword [esi]
call sub.kernel32.dll_CreateFileMappingA
test eax, eax
je 0x40ca0f
mov dword [esi + 4], eax
push ebx
push ebx
push ebx
push 0xf001f
test dword [esi + 0x10], 2
jne 0x40ca00
mov dword [esp], 4
push eax
call sub.kernel32.dll_MapViewOfFile
test eax, eax
je 0x40ca0f
mov dword [esi + 0x1c], eax
jmp 0x40ca16
mov eax, esi
call fcn.0040c94c
mov eax, ebx
cmp dword [esi + 0x1c], eax
setne al
mov dword [esp + 0x1c], eax
popal
ret

Function at 0x40ca6c
Capabilities:
Get file attributes

Disassembly:
pushal
xor ebx, ebx
mov dword [esp + 0x1c], ebx
mov esi, eax
mov edi, edx
mov ebx, dword [edx]
mov edx, ebx
add edx, 0xc
mov dword [edi], edx
mov ecx, 0x42
call fcn.004062d0
mov esi, dword [esi]
test esi, esi
je 0x40caaf
add esi, ebx
mov eax, dword [esp + 0x18]
lea edx, [esi]
xor ecx, ecx
call fcn.0040ce3c
push dword [esp + 0x18]
call sub.kernel32.dll_GetFileAttributesA
mov dword [esi + 8], eax
inc byte [esp + 0x1c]
popal
ret