joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407383
Capabilities:
Set registry value

Disassembly:
push 4
lea eax, [esp + 0xc]
push eax
push 4
push 0
push dword [esp + 0x14]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x4073d1
Capabilities:
Set registry value

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
mov ebx, ecx
test esi, esi
jne 0x4073e2
push 0xd
pop eax
jmp 0x40740c
push edi
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
add esi, eax
add edi, eax
cmp eax, 1
jne 0x4073e5
push edi
push dword [esp + 0x18]
push 7
push 0
push dword [esp + 0x20]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
ret 8

Function at 0x407fb6
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
push eax
xor esi, esi
push 1
push esi
push str.SoftwareIntelDisplayigfxcuiigfxcfg
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 8], esi
mov dword [ebp - 0xc], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x408011
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
push str.DCRotationCaps
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
cmp dword [ebp - 0xc], 1
pop esi
sete al
leave
ret

Function at 0x4084a0
Capabilities:
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x427470]
xor eax, ebp
mov dword [ebp + 0x94], eax
push edi
xor edi, edi
push 0x104
lea eax, [ebp - 0x70]
push edi
push eax
mov dword [ebp - 0x74], edi
mov dword [ebp - 0x80], edi
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x78], edi
call fcn.00410400
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x74]
push eax
push edi
push 0x2001f
push edi
push edi
push edi
push str.SoftwareinteldisplayigfxcuiprofilesCurrent
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x408571
cmp dword [ebp - 0x74], edi
je 0x408571
push ebx
push esi
lea eax, [ebp - 0x70]
push str.Select_Profile
push eax
mov dword [ebp - 0x7c], 3
call fcn.00410480
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop ecx
pop ecx
push 4
lea eax, [ebp - 0x7c]
push eax
push 4
push edi
push str.CurrentPresetProfileType
push dword [ebp - 0x74]
call esi
mov ebx, eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
lea eax, [ebp - 0x70]
push eax
push 1
push edi
push str.CurrentPresetProfileName
push dword [ebp - 0x74]
call esi
pop esi
cmp ebx, edi
pop ebx
jne 0x408568
cmp eax, edi
jne 0x408568
mov dword [ebp - 0x78], 1
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp + 0x94]
mov eax, dword [ebp - 0x78]
xor ecx, ebp
pop edi
call fcn.00410578
add ebp, 0x98
leave
ret
Function at 0x40905d
Capabilities:
Get geographical location
Identify system language via api
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
mov edi, dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
push esi
movzx eax, ax
push esi
push 3
push eax
mov dword [ebp - 0xc], eax
call edi
mov ebx, eax
lea eax, [ebx + 1]
push eax
call fcn.0040e6f1
pop ecx
push ebx
push eax
push 3
push dword [ebp - 0xc]
mov dword [ebp - 8], eax
call edi
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
push esi
push 0x2001f
push esi
push esi
push esi
push str.SoftwareIntelDisplayigfxcuihkcmd_resources
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
jne 0x4090e2
push ebx
push dword [ebp - 8]
push 1
push esi
push str.UserLangID
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], esi
pop edi
pop esi
pop ebx
je 0x4090f3
push dword [ebp - 8]
call fcn.0040e950
pop ecx
leave
ret
Function at 0x4090f5
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push esi
push edi
lea eax, [ebp - 0x14]
push eax
xor edi, edi
push 0x421a6c
push 0x15
push edi
push 0x421acc
mov dword [ebp - 8], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 8]
push eax
mov ebx, str.SoftwareIntelDisplayigfxcui3D
push ebx
push reloc.OLEAUT32.dll_SysReAllocString
call esi
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push SysReAllocString
call esi
cmp dword [ebp - 0x1c], edi
je 0x409163
cmp eax, edi
jne 0x40927e
cmp dword [ebp - 0x14], edi
je 0x40927e
cmp dword [ebp - 0x20], edi
jl 0x40927e
push 0x38
lea eax, [ebp - 0x58]
push edi
push eax
call fcn.00410400
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
add esp, 0xc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.Basic
push dword [ebp - 8]
call esi
xor ebx, ebx
inc ebx
test eax, eax
jne 0x4091b0
mov eax, dword [ebp - 4]
mov dword [ebp - 0x48], eax
jmp 0x4091b3
mov dword [ebp - 0x48], ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.VertexProcessing
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4091d6
mov eax, dword [ebp - 4]
mov dword [ebp - 0x40], eax
jmp 0x4091d9
mov dword [ebp - 0x40], ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.TextureQuality
push dword [ebp - 8]
call esi
test eax, eax
jne 0x4091fc
mov eax, dword [ebp - 4]
mov dword [ebp - 0x38], eax
jmp 0x4091ff
mov dword [ebp - 0x38], ebx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.AnisotropicFiltering
push dword [ebp - 8]
call esi
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 4]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push edi
push str.VSync
push dword [ebp - 8]
call esi
neg eax
sbb eax, eax
not eax
and eax, dword [ebp - 4]
lea edx, [ebp - 0x58]
push edx
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
push 0x38
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 0x14]
cmp eax, edi
je 0x409264
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov dword [ebp - 0x14], edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 8], edi
je 0x409274
push dword [ebp - 8]
call esi
cmp dword [ebp - 0x18], edi
je 0x40927e
push dword [ebp - 0x18]
call esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40934f
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
lea ebp, [esp - 0xb0]
sub esp, 0x130
mov eax, dword [0x427470]
xor eax, ebp
mov dword [ebp + 0xac], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_FindWindowA]
push str.igfxtrayWindow
push str.igfxtrayClass
call edi
mov esi, dword [sym.imp.USER32.dll_PostMessageA]
xor ebx, ebx
cmp eax, ebx
je 0x409392
push ebx
push ebx
push 2
push eax
call esi
push str.HkWndName
push str.HkClass
call edi
cmp eax, ebx
je 0x4093a9
push ebx
push ebx
push 2
push eax
call esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x124
lea eax, [ebp - 0x78]
push ebx
push eax
mov dword [ebp - 0x80], ebx
call fcn.00410400
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
push esi
mov dword [ebp - 0x7c], 0x128
call sub.KERNEL32.dll_Process32First
lea eax, [ebp - 0x58]
push str.GfxUI.exe
push eax
call fcn.00411860
pop ecx
pop ecx
test eax, eax
je 0x409403
lea eax, [ebp - 0x7c]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4093df
jmp 0x409429
push dword [ebp - 0x74]
push ebx
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
lea eax, [ebp - 0x80]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x80]
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp + 0xac]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410578
add ebp, 0xb0
leave
ret
Function at 0x409441
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
push ebp
lea ebp, [esp - 0x2a0]
sub esp, 0x320
mov eax, dword [0x427470]
xor eax, ebp
mov dword [ebp + 0x29c], eax
mov eax, dword [ebp + 0x2a8]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x2ac]
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0x2b0]
xor ebx, ebx
push ebx
mov dword [ebp - 0x80], eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0x5c
push edi
call fcn.00410fc0
pop ecx
pop ecx
mov dword [ebp - 0x74], eax
cmp eax, ebx
je 0x409595
push edi
call fcn.00410150
push dword [ebp - 0x74]
mov esi, eax
call fcn.00410150
sub esi, eax
push esi
lea eax, [ebp + 0x198]
push edi
push eax
call fcn.00411970
push dword [ebp - 0x74]
call fcn.00410150
lea esi, [ebp + 0x198]
push edi
sub esi, eax
call fcn.00410150
mov byte [eax + esi], bl
lea eax, [ebp + 0x198]
push 0x422070
push eax
call fcn.00410490
add esp, 0x24
push ebx
lea eax, [ebp + 0x198]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x409506
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x409595
lea eax, [ebp - 0x78]
push eax
push 0x422668
push 1
push ebx
push 0x422688
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x409591
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x7c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp eax, ebx
jne 0x40959a
mov eax, dword [ebp - 0x78]
push dword [ebp - 0x80]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp eax, ebx
jne 0x40959a
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
lea edx, [ebp - 0x74]
push edx
push 0x422678
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x409588
push 0x104
lea eax, [ebp - 0x70]
push eax
push 0xffffffffffffffff
push edi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push 1
lea edx, [ebp - 0x70]
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 0x74]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 0x78]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, esi
jmp 0x40959a
mov eax, 0x80070057
mov ecx, dword [ebp + 0x29c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410578
add ebp, 0x2a0
leave
ret

Function at 0x4095b2
Capabilities:
Create directory

Disassembly:
push 0
push dword [esp + 8]
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x4095d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4095d4
xor al, al
ret
mov al, 1
ret
Function at 0x409828
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x427470]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.00407342
mov ebx, eax
cmp ebx, esi
je 0x409898
lea ecx, [ebp - 0x70]
call fcn.004072cd
mov eax, ebx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00410578
add ebp, 0x9c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x4098b0
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.00409828
cmp eax, esi
jne 0x4098e2
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], pe_nt_image_headers32
call ebx
test eax, eax
je 0x4098a0
lea ecx, [ebp - 0x70]
call fcn.004072cd
push dword [ebp - 0x78]
mov ecx, edi
call fcn.00407272
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.004072cd
mov eax, esi
jmp 0x40987e
Function at 0x40b104
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x94
push esi
xor esi, esi
push edi
mov dword [ebp - 4], esi
cmp dword [ebp - 4], 1
mov edi, str.igfxtray.exe
jne 0x40b124
mov edi, str.hkcmd.exe
push 0x44
lea eax, [ebp - 0x94]
push esi
push eax
call fcn.00410400
add esp, 0xc
lea eax, [ebp - 0x50]
push eax
lea eax, [ebp - 0x94]
push eax
push esi
push esi
push 0x4000020
push esi
push esi
push esi
push esi
push edi
mov dword [ebp - 0x94], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40b195
push 0x3c
lea eax, [ebp - 0x40]
push esi
push eax
call fcn.00410400
add esp, 0xc
lea eax, [ebp - 0x40]
push eax
mov dword [ebp - 0x40], 0x3c
mov dword [ebp - 0x3c], 0x440
mov dword [ebp - 0x30], edi
mov dword [ebp - 0x2c], esi
mov dword [ebp - 0x24], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
inc dword [ebp - 4]
cmp dword [ebp - 4], 2
jl 0x40b114
cmp dword [0x428800], esi
pop edi
pop esi
jne 0x40b1b1
call fcn.0040ad39
leave
ret
Function at 0x410578
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x427470]
jne 0x410582
repz ret
jmp fcn.00412b51

Function at 0x41a30e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00413aec
and dword [ebp - 4], 0
cmp dword [0x4292f8], 0
mov ebx, eax
jne 0x41a3bf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x41a470
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x41a470
push eax
call fcn.00413a7a
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4292f8], eax
call esi
push eax
call fcn.00413a7a
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4292fc], eax
call esi
push eax
call fcn.00413a7a
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x429300], eax
call esi
push eax
call fcn.00413a7a
pop ecx
mov dword [0x429308], eax
test eax, eax
je 0x41a3bf
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00413a7a
pop ecx
mov dword [0x429304], eax
mov eax, dword [0x429304]
cmp eax, ebx
je 0x41a417
cmp dword [0x429308], ebx
je 0x41a417
push eax
call fcn.00413af5
push dword [0x429308]
mov esi, eax
call fcn.00413af5
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x41a417
test edi, edi
je 0x41a417
call esi
test eax, eax
je 0x41a40e
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x41a40e
test byte [ebp - 0xc], 1
jne 0x41a417
or dword [ebp + 0x10], 0x200000
jmp 0x41a450
mov eax, dword [0x4292fc]
cmp eax, ebx
je 0x41a450
push eax
call fcn.00413af5
pop ecx
test eax, eax
je 0x41a450
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x41a450
mov eax, dword [0x429300]
cmp eax, ebx
je 0x41a450
push eax
call fcn.00413af5
pop ecx
test eax, eax
je 0x41a450
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4292f8]
call fcn.00413af5
pop ecx
test eax, eax
je 0x41a470
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x41a472
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x710bb0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.sect_1
lea edi, [esi - 0x1f5000]
lea eax, [edi + 0x2eda80]
push dword [eax]
mov dword [eax], 0xac29312b
push eax
push edi
or ebp, 0xffffffff
jmp 0x710be2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x710be9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x710bd8
mov eax, 1
add ebx, ebx
jne 0x710bfb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x710c0c
jne 0x710c2b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x710c2b
dec eax
add ebx, ebx
jne 0x710c18
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x710bf0
add ebx, ebx
jne 0x710c27
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x710c7d
xor ecx, ecx
sub eax, 3
jb 0x710c43
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x710cb2
sar eax, 1
mov ebp, eax
jmp 0x710c4e
add ebx, ebx
jne 0x710c4e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x710c1c
inc ecx
add ebx, ebx
jne 0x710c5c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x710c1c
add ebx, ebx
jne 0x710c69
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x710c5e
jne 0x710c7a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x710c5e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x710c9c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x710c8e
jmp 0x710bde
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x710c9c
add edi, ecx
jmp 0x710bde
pop esi
pop edi
pop eax
mov dword [edi], eax
mov edi, esi
mov ecx, 0x108e1
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x710cbe
cmp byte [edi], 0x2a
jne 0x710cbe
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x710cc3
lea edi, [esi + 0x303000]
mov eax, dword [edi]
or eax, eax
je 0x710d3b
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x3101e4]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3103dc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x710cf0
mov ecx, edi
jns 0x710d1f
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3103e4]
or eax, eax
je 0x710d35
mov dword [ebx], eax
add ebx, 4
jmp 0x710d0d
call dword [esi + 0x3103e0]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x710d6c
cmp al, 0xef
ja 0x710d5f
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x710d41
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x710d4e
mov ebp, dword [esi + 0x3103e8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x710da0
sub esp, 0xffffff80
jmp 0x5c6b60
Function at 0x402e00
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.00404b34
test esi, esi
jne 0x402e36
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.00404c24
jmp 0x402e54
call sub.kernel32.dll_GetCommandLineA
mov edi, eax
mov edx, ebx
mov eax, edi
call fcn.00402d14
mov edi, eax
test esi, esi
je 0x402e54
cmp dword [ebx], 0
je 0x402e54
dec esi
jmp 0x402e3d
add esp, 0x108
pop edi
pop esi
pop ebx
ret

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

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

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

Disassembly:
push ebx
xor ebx, ebx
imul edx, dword [ebx + 0x890008], 0x8088405
inc edx
mov dword [ebx + 0x890008], edx
fld qword [ebx + 0x890058]
push 0
push edx
fild qword [esp]
add esp, 8
fmulp st(1)
pop ebx
ret

Function at 0x403b98
Capabilities:
Query or enumerate registry value

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

Function at 0x404934
Capabilities:
Write file on windows

Disassembly:
push ecx
cmp byte [0x8ab04c], 0
je 0x404995
cmp word [0x8ab220], 0xd7b2
jne 0x40495d
cmp dword [0x8ab228], 0
jbe 0x40495d
mov eax, 0x8ab21c
call dword [0x8ab238]
push 0
lea eax, [esp + 4]
push eax
push 0x1e
push 0x890060
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 0x4049bc
push 0xfffffffffffffff5
call sub.kernel32.dll_GetStdHandle
push eax
call sub.kernel32.dll_WriteFile
pop edx
ret
cmp byte [0x890020], 0
jne 0x4049b1
push 0
push 0x890080
push 0x890060
push 0
call sub.user32.dll_MessageBoxA
pop edx
ret

Function at 0x404ae8
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.00402a70
mov dword [eax], edi
mov edx, dword [ebp + 0x10]
mov dword [eax + 4], edx
mov byte [0x8ab04d], 1
mov edx, dword [ebp + 8]
push edx
mov edx, dword [ebp + 0xc]
push edx
push eax
mov eax, 0x404ab0
push eax
push esi
push ebx
call sub.kernel32.dll_CreateThread
pop edi
pop esi
pop ebx
pop ebp
ret 0xc