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

Disassembly:
push 0xffffffffffffffff
push 0x10095ac1
mov eax, dword fs:[0]
push eax
sub esp, 0x58
push esi
push edi
mov eax, dword [0x100b4208]
xor eax, esp
push eax
lea eax, [esp + 0x64]
mov dword fs:[0], eax
xor edi, edi
mov dword [esp + 0xc], edi
mov dword [esp + 0x18], vtable.boost::exception.0
mov dword [esp + 0x1c], edi
mov dword [esp + 0x20], edi
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0xffffffff
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
mov dword [esp + 0x70], edi
mov dword [esp + 0x10], str.bad_exception
call fcn.10073b54
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.boost::exception_detail::bad_exception_.0
mov esi, 1
push esi
lea ecx, [esp + 0x1c]
push ecx
lea ecx, [esp + 0x40]
mov dword [esp + 0x74], esi
call fcn.10093930
test byte [0x100b6d68], 1
mov dword [esp + 0x40], str.class_boost::exception_ptr___cdecl_boost::exception_detail::get_static_exception_object_struct_boost::exception_detail::bad_exception___void_
mov dword [esp + 0x44], str.._boost_exception_detail_exception_ptr.hpp
mov dword [esp + 0x48], 0x80
jne 0x10093faa
or dword [0x100b6d68], esi
push 0x2c
mov byte [esp + 0x70], 3
call fcn.10073e62
add esp, 4
mov dword [esp + 0xc], eax
mov byte [esp + 0x6c], 4
cmp eax, edi
je 0x10093f3f
push esi
lea edx, [esp + 0x3c]
push edx
mov ecx, eax
call fcn.10093740
jmp 0x10093f41
xor eax, eax
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0x70], 3
call fcn.10093bf0
mov ecx, dword [eax]
mov dword [0x100b6d60], ecx
mov eax, dword [eax + 4]
mov dword [0x100b6d64], eax
cmp eax, edi
je 0x10093f6b
add eax, 4
lock xadd dword [eax], esi
mov esi, dword [esp + 0x14]
cmp esi, edi
je 0x10093f9d
lea edx, [esi + 4]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x10093f9d
mov edx, dword [esi]
mov eax, dword [edx + 4]
mov ecx, esi
call eax
lea ecx, [esi + 8]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10093f9d
mov eax, dword [esi]
mov edx, dword [eax + 8]
mov ecx, esi
call edx
push 0x100989e0
call fcn.10079fdc
add esp, 4
mov eax, dword [0x100b6d60]
mov esi, dword [esp + 0x74]
mov dword [esi], eax
mov ecx, dword [0x100b6d64]
mov eax, ecx
mov dword [esi + 4], ecx
cmp eax, edi
je 0x10093fd0
add eax, 4
mov edx, 1
lock xadd dword [eax], edx
lea ecx, [esp + 0x38]
call fcn.100934e0
lea ecx, [esp + 0x2c]
mov dword [esp + 0x60], vtable.boost::exception_detail::clone_base.0
mov dword [esp + 0x6c], 0xffffffff
mov dword [esp + 0x18], vtable.boost::exception_detail::bad_exception_.1.0
mov dword [esp + 0x2c], vtable.std::bad_exception.0
call fcn.10073c21
mov ecx, dword [esp + 0x1c]
mov dword [esp + 0x18], vtable.boost::exception.0
cmp ecx, edi
je 0x10094019
mov eax, dword [ecx]
mov edx, dword [eax + 0x10]
call edx
mov eax, esi
mov ecx, dword [esp + 0x64]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x64
ret
Function at 0x10094470
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x10095b48
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x100b4208]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov eax, dword [0x100b55c0]
cmp eax, 0xffffffff
jne 0x100944ab
xor ebx, ebx
jmp 0x100944b4
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, eax
mov dword [esp + 0x18], ebx
mov dword [esp + 0x30], 0
test ebx, ebx
je 0x100944f5
cmp dword [ebx + 0x30], 0
jne 0x1009453b
cmp dword [ebx + 0xc], 0
jne 0x10094541
push 0x10092a00
push 0x100b6d40
call fcn.10092dd0
mov eax, dword [0x100b55c0]
add esp, 8
cmp eax, 0xffffffff
je 0x100944f5
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov dword [esp + 0x30], 0xffffffff
test ebx, ebx
je 0x10094527
lea ecx, [ebx + 4]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x10094527
mov eax, dword [ebx]
mov edx, dword [eax]
push 0
mov ecx, ebx
call edx
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebx + 0xc], 0
je 0x10094589
mov edi, dword [ebx + 0xc]
mov eax, dword [edi + 4]
mov dword [ebx + 0xc], eax
mov ecx, dword [edi]
test ecx, ecx
je 0x10094573
mov edx, dword [ecx]
mov eax, dword [edx + 4]
call eax
mov esi, dword [edi]
mov edx, dword [esi]
mov eax, dword [edx]
push 0
mov ecx, esi
call eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
cmp dword [ebx + 0xc], 0
jne 0x10094541
cmp dword [ebx + 0x30], 0
je 0x100944ca
lea esi, [ebx + 0x14]
mov ecx, dword [esi + 0x18]
mov esi, dword [esi]
mov edi, dword [ecx]
test esi, esi
jne 0x10094632
call fcn.100748ea
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100945b6
call fcn.100748ea
cmp dword [edi + 0x10], 0
je 0x10094612
test esi, esi
jne 0x10094639
call fcn.100748ea
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100945d1
call fcn.100748ea
cmp dword [edi + 0x18], 0
je 0x10094612
test esi, esi
jne 0x1009463d
call fcn.100748ea
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x100945ec
call fcn.100748ea
mov ebp, dword [edi + 0x10]
test esi, esi
jne 0x10094641
call fcn.100748ea
xor eax, eax
cmp edi, dword [eax + 0x18]
jne 0x10094604
call fcn.100748ea
mov edx, dword [ebp]
mov eax, dword [edi + 0x18]
mov edx, dword [edx + 4]
push eax
mov ecx, ebp
call edx
push edi
push esi
lea eax, [esp + 0x24]
lea esi, [ebx + 0x14]
push eax
mov ecx, esi
call fcn.10094170
cmp dword [ebx + 0x30], 0
jne 0x10094596
jmp 0x100944c4
mov eax, dword [esi]
jmp 0x100945ac
mov eax, dword [esi]
jmp 0x100945c7
mov eax, dword [esi]
jmp 0x100945e2
mov eax, dword [esi]
jmp 0x100945fa
Function at 0x406222
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x406246
xor eax, eax
test eax, eax
je 0x406258
cmp byte [ebp + eax - 0x121], 0x5c
je 0x406258
xor ecx, ecx
jmp 0x40625b
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExA]
leave
ret 4

Function at 0x406305
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4222c4], 0
push esi
jne 0x40633c
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406316
mov dword [ecx*4 + 0x4222c0], eax
inc ecx
cmp ecx, 0x100
jl 0x406311
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40636d
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4222c0]
xor eax, esi
inc ecx
dec edx
jne 0x40634f
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
pushal
nop
nop
nop
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x301366c6
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x3002450c]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x3027f2eb], 0
jne 0x30136720
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x30136719
cmp dword [ebp - 0x110], 2
jne 0x30136719
cmp dword [ebp - 0x11c], 6
jb 0x30136719
call fcn.3013657b
mov byte [0x3027f2ea], al
mov byte [0x3027f2eb], 1
mov ecx, dword [ebp - 4]
mov al, byte [0x3027f2ea]
xor ecx, ebp
call fcn.30136bd1
leave
ret

Function at 0x30136b1d
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push 0x30024510
push 0x3000e92c
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x30136b52
push 0
push 0
push 1
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call esi
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov esi, dword [ebp - 8]
xor esi, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
xor esi, eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, eax
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
mov eax, dword [ebp - 0x10]
xor eax, dword [ebp - 0x14]
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
xor esi, eax
lea eax, [ebp - 4]
push eax
push 0x40
push 4
mov ebx, 0x3002450c
push ebx
call edi
test esi, esi
mov dword [0x3002450c], esi
jne 0x30136bb6
mov dword [0x3002450c], 0xbb40e64e
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push 4
push ebx
call edi
pop edi
pop esi
mov dword [0x30260ab4], 0x44bf19b1
pop ebx
leave
ret
Function at 0x30136bd1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x3002450c]
jne 0x3013790a
ret
push ebp
mov ebp, esp
sub esp, 0x328
mov dword [0x3027f418], eax
mov dword [0x3027f414], ecx
mov dword [0x3027f410], edx
mov dword [0x3027f40c], ebx
mov dword [0x3027f408], esi
mov dword [0x3027f404], edi
mov word [0x3027f430], ss
mov word [0x3027f424], cs
mov word [0x3027f400], ds
mov word [0x3027f3fc], es
mov word [0x3027f3f8], fs
mov word [0x3027f3f4], gs
pushfd
pop dword [0x3027f428]
mov eax, dword [ebp]
mov dword [0x3027f41c], eax
mov eax, dword [ebp + 4]
mov dword [0x3027f420], eax
lea eax, [ebp + 8]
mov dword [0x3027f42c], eax
mov eax, dword [ebp - 0x320]
mov dword [0x3027f368], 0x10001
mov eax, dword [0x3027f420]
mov dword [0x3027f31c], eax
mov dword [0x3027f310], 0xc0000409
mov dword [0x3027f314], 1
mov eax, dword [0x3002450c]
mov dword [ebp - 0x328], eax
mov eax, dword [0x30260ab4]
mov dword [ebp - 0x324], eax
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
mov dword [0x3027f360], eax
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
push 0x300247f0
call dword [sym.imp.KERNEL32.dll_UnhandledExceptionFilter]
cmp dword [0x3027f360], 0
jne 0x301379fa
push 1
call sub.MSVCR80.dll__crt_debugger_hook
pop ecx
push 0xc0000409
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
leave
ret

Function at 0x30136be9
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
push 0x3000e57c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x30136c41
mov eax, dword [ebp + 0xc]
push edi
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
push 0
push 0
push 0x3000e574
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
pop edi
jne 0x30136c41
mov al, 1
jmp 0x30136c43
xor al, al
leave
ret 8
Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
mov eax, section..rsrc
nop
nop
mov ebx, 0x40c7d0
mov ecx, 0x60246e2f
nop
nop
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
nop
mov ecx, 0x37255328
nop
nop
nop
test eax, eax
nop
je 0x432084
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43206c
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x431219
Function at 0x401000
Capabilities:
Check for hardware breakpoints

Disassembly:
push ebx
push esi
push edi
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push str.ZwMapViewOfSection
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
mov al, byte [edi]
cmp al, 0xc2
je 0x40102e
cmp al, 0xc3
je 0x40102e
mov al, byte [edi + 1]
inc edi
cmp al, 0xc2
jne 0x401022
push 0x2cc
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push 0xfffffffffffffffe
mov dword [esi], 0x10010
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push esi
push 0xfffffffffffffffe
mov dword [esi + 0x18], 1
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push 0x4014a0
push 1
mov dword [section..data], 0x401350
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.C:WindowsSysWOW64_schtasks.exe
call edi
mov ecx, dword [0x403004]
mov ebx, eax
test ecx, ecx
jne 0x4010a9
mov eax, dword fs:[0x30]
mov dword [0x403004], eax
xor eax, eax
mov ecx, dword [0x403004]
mov edx, dword [ecx + 0xc]
add edx, 0x14
mov eax, dword [edx]
cmp eax, edx
je 0x4010c3
cmp dword [eax + 0x10], ebx
lea esi, [eax - 8]
je 0x4010c5
mov eax, dword [eax]
cmp eax, edx
jne 0x4010b5
xor esi, esi
mov dword [ecx + 8], ebx
mov edx, dword [edx]
mov dword [edx + 0x10], ebx
mov eax, dword [esi + 0x24]
mov ecx, dword [esi + 0x28]
mov dword [edx + 0x1c], eax
mov dword [edx + 0x20], ecx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x30]
mov dword [edx + 0x24], eax
mov dword [edx + 0x28], ecx
mov eax, dword [esi + 0x20]
mov dword [edx + 0x18], eax
mov edx, str.schtasks.exe__create__sc_MINUTE__tn_hello__tr_schtasks.exe
inc edx
cmp byte [edx], 0
jne 0x4010f0
sub edx, str.schtasks.exe__create__sc_MINUTE__tn_hello__tr_schtasks.exe
call fcn.004014e0
push str.__wgetmainargs
push str.msvcrt.dll
mov dword [0x403008], eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x2cc
push 8
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
push esi
push 0xfffffffffffffffe
mov dword [esi], 0x10010
call dword [sym.imp.KERNEL32.dll_GetThreadContext]
push esi
push 0xfffffffffffffffe
mov dword [esi + 0x18], 1
mov dword [esi + 4], edi
call dword [sym.imp.KERNEL32.dll_SetThreadContext]
push 0x4014a0
push 1
mov dword [section..data], 0x4012e0
call dword [sym.imp.KERNEL32.dll_AddVectoredExceptionHandler]
mov eax, dword [0x40300c]
add eax, ebx
call eax
pop edi
pop esi
xor eax, eax
pop ebx
ret
Function at 0x42e004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..reloc
nop
nop
nop
nop
nop
push 4
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x42e072
nop
nop
mov ebx, 0x407ef8
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
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
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
mov esi, 0x45575963
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
nop
nop
loop 0x42e060
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
je 0x42e0d2
nop
nop
nop
mov ebx, 0x42cd70
nop
nop
nop
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
div edi
nop
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
mov esi, 0x2ad72350
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x42e0c0
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x402a30
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.004044d8
test esi, esi
jne 0x402a66
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.004045c8
jmp 0x402a84
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402944
mov edi, eax
test esi, esi
je 0x402a84
cmp dword [ebx], 0
je 0x402a84
dec esi
jmp 0x402a6d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

Function at 0x403590
Capabilities:
Query or enumerate registry value

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

Function at 0x4042b8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x524044], 0
je 0x404319
cmp word [0x524218], 0xd7b2
jne 0x4042e1
cmp dword [0x524220], 0
jbe 0x4042e1
mov eax, 0x524214
call dword [fcn.00524230]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x448074
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 0x404340
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x448034], 0
jne 0x404335
push 0
push 0x44806c
push 0x448074
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x40448c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, 8
call fcn.00402728
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x524045], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404454
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x405b68
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 0x405d98
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405beb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405d98
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
je 0x405beb
lea eax, [ebp - 8]
push eax
push 0xf0019
push 0
push 0x405db4
push 0x80000001
call sub.advapi32.dll_RegOpenKeyExA
test eax, eax
jne 0x405c74
xor eax, eax
push ebp
push 0x405c6d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 0x18], 5
lea eax, [ebp - 0x11d]
mov edx, 0x105
call fcn.004059b0
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 0x405c52
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x12]
push eax
push 0
push 0
push 0x405dd4
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExA
test eax, eax
je 0x405c52
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 0x405c74
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 0x405d8e
cmp byte [ebp - 0xd], 0
jne 0x405cbb
cmp byte [ebp - 0x12], 0
je 0x405d8e
lea eax, [ebp - 0x11d]
push eax
call sub.kernel32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x11d]
add ebx, eax
jmp 0x405cd4
dec ebx
cmp byte [ebx], 0x2e
je 0x405ce3
lea eax, [ebp - 0x11d]
cmp ebx, eax
jne 0x405cd3
lea eax, [ebp - 0x11d]
cmp ebx, eax
je 0x405d8e
inc ebx
cmp byte [ebp - 0x12], 0
je 0x405d20
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 0x405d8e
cmp byte [ebp - 0xd], 0
je 0x405d8e
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 0x405d8e
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