joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40215c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x45f14c]
jne 0x402166
repz ret
jmp fcn.00402dbd

Function at 0x40fce5
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x45f14c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00405b7b
and dword [ebp - 0x14], 0
cmp dword [0x461fe4], 0
mov dword [ebp - 0x18], eax
jne 0x40fd98
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40fe40
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40fe40
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x461fe4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x461fe8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x461fec], eax
call edi
push eax
call esi
mov dword [0x461ff4], eax
test eax, eax
je 0x40fd98
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x461ff0], eax
mov eax, dword [0x461ff0]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40fdf1
cmp dword [0x461ff4], ecx
je 0x40fdf1
push eax
call esi
push dword [0x461ff4]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40fdf1
test ebx, ebx
je 0x40fdf1
call edi
test eax, eax
je 0x40fde8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40fde8
test byte [ebp - 8], 1
jne 0x40fdf1
or dword [ebp + 0x10], 0x200000
jmp 0x40fe24
mov eax, dword [0x461fe8]
cmp eax, dword [ebp - 0x18]
je 0x40fe24
push eax
call esi
test eax, eax
je 0x40fe24
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40fe24
mov eax, dword [0x461fec]
cmp eax, dword [ebp - 0x18]
je 0x40fe24
push eax
call esi
test eax, eax
je 0x40fe24
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x461fe4]
call esi
test eax, eax
je 0x40fe40
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40fe42
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040215c
leave
ret
Function at 0x450670
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x45f14c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x463d7c]
push edi
mov edi, dword [0x4661fc]
call fcn.004505e0
cmp dword [0x4661fc], 0x2f
jne 0x450704
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_LocalFileTimeToFileTime]
call fcn.00450610
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.0040215c
add esp, 0x41c
ret
Function at 0x450bd0
Capabilities:
Get disk information
Read file on windows

Disassembly:
sub esp, 0x41c
mov eax, dword [0x45f14c]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [0x4661fc]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519a5
mov edi, 0x8e46a7b8
lea esp, [esp]
mov dword [0x465e64], edi
cmp eax, 0x3dc
jne 0x450c1a
push 0
push 0
push 0
call esi
mov eax, dword [0x4661fc]
dec ebx
jne 0x450c00
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x450c30
cmp eax, 0x997
jne 0x450c77
xor eax, eax
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x24]
push edx
push eax
lea ecx, [esp + 0x30]
push ecx
push eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x4661fc]
cmp esi, 0x845fb3
jne 0x450c8e
mov eax, dword [0x460d70]
add eax, 0xa231
mov dword [0x4661fc], eax
cmp eax, 0x141
jne 0x450ca9
mov dword [0x462508], 0xec58acac
mov dword [0x46250c], 0xffffffff
inc esi
cmp esi, 0x12d131e
jl 0x450c30
call fcn.00450720
mov ecx, dword [esp + 0x424]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.0040215c
add esp, 0x41c
ret 0x10
Function at 0x401f10
Capabilities:
Get disk information
Inspect load icon resource
Read file on windows

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x148
push ebx
push esi
push edi
push 0x65
push eax
call dword [sym.imp.USER32.dll_LoadIconA]
lea ecx, [esp + 0xc]
call fcn.00401000
lea ecx, [esp + 0x50]
push 0x104
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea edx, [esp + 0x50]
lea ecx, [esp + 0xc]
push edx
call fcn.004012b0
test eax, eax
je 0x402021
lea eax, [esp + 0x50]
push 0x404030
push eax
call dword [sym.imp.MSVCRT.dll_fopen]
mov esi, eax
add esp, 8
test esi, esi
je 0x402084
lea ecx, [esp + 0x50]
push ecx
lea ecx, [esp + 0x10]
call fcn.00401290
mov edi, dword [sym.imp.MSVCRT.dll_fseek]
sub eax, 8
push 0
push eax
push esi
call edi
mov ebx, dword [sym.imp.MSVCRT.dll_fread]
push esi
push 1
lea edx, [esp + 0x24]
push 8
push edx
call ebx
mov eax, dword [esp + 0x2c]
push 0
push eax
push esi
call edi
push esi
push 1
lea ecx, [esp + 0x48]
push 0x38
push ecx
call ebx
push esi
call dword [sym.imp.MSVCRT.dll_fclose]
mov eax, dword [esp + 0x88]
mov edx, dword [esp + 0x50]
add esp, 0x3c
test eax, eax
mov eax, dword [esp + 0x10]
push edx
push eax
jne 0x401ffe
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401800
jmp 0x402084
sub esp, 0x38
mov ecx, 0xe
lea esi, [esp + 0x58]
mov edi, esp
rep movsd dword es:[edi], dword [esi]
lea ecx, [esp + 0x90]
push ecx
lea ecx, [esp + 0x50]
call fcn.00401a90
jmp 0x402084
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString_1
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov edi, eax
mov esi, 1
xor ebx, ebx
test edi, esi
je 0x40206a
mov dl, bl
lea ecx, [esp + 0x10]
add dl, 0x41
push edx
call sub.MFC42.DLL_CString::operator_1
push 0x40412c
lea ecx, [esp + 0x14]
call fcn.004020e2
lea ecx, [esp + 0xc]
mov eax, dword [esp + 0x10]
push eax
push 0
call fcn.00401cf0
add esi, esi
inc ebx
cmp ebx, 0x1a
jl 0x402039
lea ecx, [esp + 0xc]
call fcn.00401040
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
call fcn.00401030
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x148
ret 0x10

Function at 0x402779
Capabilities:
Encode data using base64

Disassembly:
push ebp
cmp ebx, 0x10000
jae 0x402790
push 5
push 0xffffc060
push 0xfffffc60
jmp 0x40279c
push 8
push 0xffff8300
push 0xfffffb00
push 0xffffffffffffffff
xor edx, edx
xor ecx, ecx
lodsb al, byte [esi]
xor al, bl
stosb byte es:[edi], al
dec ebx
jle 0x40280b
call fcn.00402811
jae 0x4027a2
xor ebp, ebp
call fcn.0040281d
sub ecx, 3
jae 0x4027c2
mov eax, dword [esp]
inc ecx
jmp 0x4027e4
mov eax, ecx
mov ecx, dword [esp + 0xc]
call fcn.00402811
adc eax, eax
loop 0x4027c8
not eax
cmp eax, dword [esp + 4]
adc ebp, 1
cmp eax, dword [esp + 8]
adc ebp, 0
mov dword [esp], eax
call fcn.00402811
jmp 0x421888
pop eax
pop eax
pop eax
pop eax
pop ebp
ret
Function at 0x402da5
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
mov dword [0x405533], eax
push 0
push dword [ebp + 8]
push 0
push 0
push 0
push 0x80000000
push 0
push 0x80000000
push 0xcf0000
push str.Magnetick
push str.Charge_Window_App
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x402dec
xor eax, eax
jmp 0x402e03
push 0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
xor eax, eax
inc eax
leave
ret

Function at 0x403222
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x404490
push 0x403384
push eax
mov eax, dword [0x4055b0]
mov dword fs:[0], esp
mov ecx, dword [sym.imp.CRTDLL.dll__fmode_dll]
sub esp, 0x6c
mov dword [ecx], eax
mov edx, dword [0x4055ac]
mov eax, dword [sym.imp.CRTDLL.dll__commode_dll]
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
mov dword [eax], edx
call fcn.0040337a
lea edx, [ebp - 0x28]
lea eax, [ebp - 0x2c]
push dword [0x4055a8]
push edx
push eax
lea ecx, [ebp - 0x30]
push ecx
call sub.CRTDLL.dll___GetMainArgs
add esp, 0x10
push 0x4040d0
push 0x4040cc
call sub.CRTDLL.dll__initterm
add esp, 8
mov dword [ebp - 4], 0
mov eax, dword [sym.imp.CRTDLL.dll__acmdln_dll]
mov esi, dword [eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x4032bd
mov al, byte [ebp - 0x34]
inc esi
mov al, byte [esi]
test al, al
je 0x4032b5
cmp al, 0x22
jne 0x4032aa
cmp byte [esi], 0x22
jne 0x4032c7
inc esi
jmp 0x4032c7
cmp al, 0x20
jbe 0x4032c7
inc esi
cmp byte [esi], 0x20
ja 0x4032c1
cmp byte [esi], 0
je 0x4032d7
cmp byte [esi], 0x20
ja 0x4032d7
inc esi
cmp byte [esi], 0
jne 0x4032cc
mov dword [ebp - 0x50], 0
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x50], 1
mov eax, 0xa
je 0x4032f7
movzx eax, word [ebp - 0x4c]
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
push eax
call sub.CRTDLL.dll_exit
jmp 0x403333
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x10]
pop edi
mov dword fs:[0], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x401219
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40501c
push 0x40109a
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
push eax
fnstcw word [esp]
or word [esp], 0x300
fldcw word [esp]
add esp, 4
push 0
push 0
push 0x405028
push 0x405024
push 0x405020
call sub.CRTDLL.DLL___GetMainArgs
push dword [0x405028]
push dword [0x405024]
push dword [0x405020]
mov dword [0x405014], esp
call fcn.0040129c
add esp, 0x18
xor ecx, ecx
mov dword [ebp - 4], ecx
push eax
call sub.CRTDLL.DLL_exit
leave
ret
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 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x42e00c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
nop
nop
nop
add eax, 0xc
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x42e01e
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40915c
nop
mov ecx, 0x6fca2e06
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x431024
mov eax, section..data
nop
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x1d578d6
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x431084
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x40126c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x445004]
jne 0x401276
repz ret
jmp fcn.00401864

Function at 0x40981d
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x445004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.004042e0
and dword [ebp - 0x14], 0
cmp dword [0x447d9c], 0
mov dword [ebp - 0x18], eax
jne 0x4098d0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x409978
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x409978
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x447d9c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x447da0], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x447da4], eax
call edi
push eax
call esi
mov dword [0x447dac], eax
test eax, eax
je 0x4098d0
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x447da8], eax
mov eax, dword [0x447da8]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x409929
cmp dword [0x447dac], ecx
je 0x409929
push eax
call esi
push dword [0x447dac]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x409929
test ebx, ebx
je 0x409929
call edi
test eax, eax
je 0x409920
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x409920
test byte [ebp - 8], 1
jne 0x409929
or dword [ebp + 0x10], 0x200000
jmp 0x40995c
mov eax, dword [0x447da0]
cmp eax, dword [ebp - 0x18]
je 0x40995c
push eax
call esi
test eax, eax
je 0x40995c
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40995c
mov eax, dword [0x447da4]
cmp eax, dword [ebp - 0x18]
je 0x40995c
push eax
call esi
test eax, eax
je 0x40995c
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x447d9c]
call esi
test eax, eax
je 0x409978
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40997a
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040126c
leave
ret
Function at 0x438020
Capabilities:
Create pipe

Disassembly:
sub esp, 0x41c
mov eax, dword [0x445004]
xor eax, esp
mov dword [esp + 0x418], eax
mov eax, dword [esp + 0x420]
mov eax, dword [eax]
push ebx
mov ebx, dword [0x449b34]
push edi
mov edi, dword [0x44bfb4]
call fcn.00437f60
cmp dword [0x44bfb4], 0x2f
jne 0x4380b4
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
lea eax, [esp + 0x2c]
push eax
push 0
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_ReadEventLogA]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
lea ecx, [esp + 8]
push ecx
lea edx, [esp + 0x1c]
push edx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.00437f90
mov ecx, dword [esp + 0x420]
pop edi
pop ebx
xor ecx, esp
call fcn.0040126c
add esp, 0x41c
ret
Function at 0x438550
Capabilities:
Get disk information

Disassembly:
mov eax, dword [0x44bfb4]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemTimes]
push edi
mov ebx, 0x1519af
mov edi, 0x8e46a6f0
jmp 0x438570
mov dword [0x44bc1c], edi
cmp eax, 0x3dc
jne 0x43858a
push 0
push 0
push 0
call esi
mov eax, dword [0x44bfb4]
dec ebx
jne 0x438570
mov edi, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
mov ebx, dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
xor esi, esi
jmp 0x4385a0
cmp eax, 0xa5f
jne 0x4385c2
push 0
call edi
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call ebx
mov eax, dword [0x44bfb4]
cmp esi, 0x846143
jne 0x4385d9
mov eax, dword [0x446bf0]
add eax, 0xa231
mov dword [0x44bfb4], eax
cmp eax, 0x141
jne 0x4385f4
mov dword [0x4482c0], 0xec58acac
mov dword [0x4482c4], 0xffffffff
inc esi
cmp esi, 0x12d12ba
jl 0x4385a0
call fcn.004380d0
pop edi
pop esi
xor eax, eax
pop ebx
ret 0x10

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
nop
jmp int.00401219
Function at 0x432000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40c7d0
mov ecx, 0x9567674
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43204e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
mov ebx, 0x42f314
nop
mov ecx, 0x50aa74d1
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43206c
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x8ddfe8
Capabilities:
Encode data using xor

Disassembly:
pushal
call 0x8ddfee
pop ebp
sub ebp, 6
sub ebp, 0x4ddfe8
jmp 0x8de04c
jmp 0x8de055
mov eax, 0x4ddfe8
add eax, ebp
add eax, 0x93
mov ecx, 0x61b
mov edx, 0x47e0d0b9
xor byte [eax], dl
inc eax
dec ecx
jne 0x8de06c
jmp 0x8de07f
add al, 0
add byte [eax], al
popfd
xor eax, 0xf9d3ebae
sar ecx, cl
sar dword [ecx - 0x2e464657], 1
mov ecx, 0x8ab99575
jns 0x8de077
inc esi
sub al, 0x85
cwde
std
mov ecx, 0x327432e9
xor byte [ebp + 0x38b9b9b9], al
js 0x8de0e1
mov ecx, 0x74bab9b9
add dword [edi + 0x3b9b9b9], edi
xchg ecx, eax
mov ecx, 0x5b4eb9b9
mov edx, 0xb5383271
mov ecx, 0x7cbab9b9
jmp 0xb11a4891
mov ecx, 0xb52c32b9
mov ecx, 0x3432b9b9
test eax, 0x78b9b9b9
push eax
mov ebx, 0x7b3abb88
mov ebp, 0x4d3cb6f0
inc esi
inc esi
inc esi
in al, 0x7b
mov ch, 0xb9
xor dh, byte [0xb9b9bd9d]
mov ecx, 0xb08c67d1
mov ecx, 0xfd13b1d1
mov ecx, 0xe89d95b8
push ecx
mov esp, 0x50b9b9b9
mov bh, byte [ebx + 0x32ecb9b9]
push ebp
inc esi
int3
Function at 0x402fd4
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x40371c
Capabilities:
Query or enumerate registry value

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

Function at 0x4045c8
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x5e704c], 0
je 0x404629
cmp word [0x5e7220], 0xd7b2
jne 0x4045f1
cmp dword [0x5e7228], 0
jbe 0x4045f1
mov eax, 0x5e721c
call dword [0x5e7238]
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 0x404650
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x485030], 0
jne 0x404645
push 0
push str.Error
push str.Runtime_error_____at_00000000
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret
Function at 0x408904
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408994
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408994
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x408947
test edx, 3
jne 0x408936
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x408941
jmp 0x408947
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x408947
cmp dword [ecx - 8], 1
je 0x408951
mov edx, ebx
or edx, 3
call fcn.00404e94
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x7b7b7b7b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x408963
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404748

Function at 0x4089a0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov esi, eax
mov eax, edx
test esi, esi
je 0x408a30
mov edx, dword [esi - 4]
mov edi, eax
test edx, edx
jle 0x408a30
mov ecx, dword [eax]
mov ebx, edx
test ecx, ecx
je 0x4089e3
test edx, 3
jne 0x4089d2
xor edx, dword [ecx - 4]
cmp edx, 3
jbe 0x4089dd
jmp 0x4089e3
or edx, 2
xor edx, dword [ecx - 4]
cmp edx, 1
ja 0x4089e3
cmp dword [ecx - 8], 1
je 0x4089ed
mov edx, ebx
or edx, 3
call fcn.00404e94
mov edi, dword [edi]
mov dword [edi - 4], ebx
mov byte [edi + ebx], 0
add ebx, 0xffffffff
and ebx, 0xfffffffc
mov eax, dword [esi + ebx]
mov ecx, eax
or eax, 0x80808080
mov edx, eax
sub eax, 0x5b5b5b5b
xor edx, ecx
or eax, 0x80808080
sub eax, 0x66666666
and eax, edx
shr eax, 2
xor eax, ecx
mov dword [edi + ebx], eax
mov eax, dword [esi + ebx - 4]
sub ebx, 4
jge 0x4089ff
pop edi
pop esi
pop ebx
ret
pop edi
pop esi
pop ebx
jmp fcn.00404748

Function at 0x40c054
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 0x40c08d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.00404838
jmp 0x40c096
mov eax, ebx
mov edx, esi
call fcn.0040479c
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40c0a0
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 0x40c0c2
movzx eax, byte [esp]
jmp 0x40c0c4
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret