joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404e30
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x404e47
mov eax, 0x8000ffff
pop esi
mov esp, ebp
pop ebp
ret
push edi
push 0
lea edi, [esi + 0x24]
push edi
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSectionAndSpinCount]
test eax, eax
jne 0x404e72
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x404e6c
movzx eax, ax
or eax, 0x80070000
test eax, eax
js 0x404f89
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_CreateEventW]
push 0
push 0
push 0
push 0
mov byte [edi + 0x18], 1
call ebx
mov dword [esi + 0x40], eax
test eax, eax
jne 0x404ea9
cmp byte [edi + 0x18], al
je 0x404e9d
push edi
mov byte [edi + 0x18], al
call dword [sym.imp.KERNEL32.dll_DeleteCriticalSection]
call fcn.00401890
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov edi, eax
test edi, edi
jne 0x404ee2
call fcn.00401890
push 0x2710
mov ecx, esi
mov edi, eax
call fcn.00406f60
test eax, eax
jns 0x404f86
test edi, edi
cmovns edi, eax
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push edi
mov ecx, esi
call fcn.004041b0
mov dword [ebp - 4], eax
test eax, eax
jns 0x404f12
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00406f60
mov eax, dword [ebp - 4]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0
push 0
call ebx
mov ebx, eax
test ebx, ebx
je 0x404eb9
push 0
push 0
push ebx
mov ecx, esi
call fcn.004041b0
mov edi, eax
test edi, edi
jns 0x404f50
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x2710
mov ecx, esi
call fcn.00406f60
pop ebx
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esi + 4]
push eax
push 0
push esi
push 0x407cd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
test eax, eax
je 0x404eb9
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x404f86
call fcn.00401890
mov edi, eax
mov eax, edi
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x404f90
Capabilities:
Create service
Persist via windows service
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x41c268]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
xor ebx, ebx
push ebx
push ebx
mov dword [ebp - 0x214], ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
je 0x404ff1
mov ecx, dword [ebp - 0x214]
push 1
add ecx, 0x2c
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
test eax, eax
je 0x404fe6
push eax
mov ebx, 1
call esi
push edi
call esi
test ebx, ebx
jne 0x4050b5
push 0x104
lea eax, [ebp - 0x20e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x405091
cmp eax, 0x104
je 0x405091
mov ecx, 0x22
mov word [ebp - 0x210], cx
mov word [ebp + eax*2 - 0x20e], cx
lea eax, [eax*2 + 4]
cmp eax, 0x20c
jae 0x4050cb
xor ecx, ecx
push 0xf003f
push ecx
push ecx
mov word [ebp + eax - 0x210], cx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov edi, eax
test edi, edi
je 0x405091
mov eax, dword [ebp - 0x214]
push 0
push 0
push str.RPCSS
push 0
push 0
lea ecx, [ebp - 0x210]
push ecx
push 1
push 2
push 0x10
push 0xf01ff
add eax, 0x2c
push eax
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov ebx, eax
test ebx, ebx
jne 0x4050a4
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004087da
mov esp, ebp
pop ebp
ret
push 0
push 0
push ebx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push ebx
call esi
push edi
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.004087da
mov esp, ebp
pop ebp
ret
call fcn.0040901a
int3

Function at 0x4050f0
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x41c268]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp + 0x10]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 0x204]
push 0xff
push 0x100
push eax
call fcn.0040812b
xor eax, eax
mov word [ebp - 6], ax
add esp, 0x14
cmp dword [esi + 0x24c], 0
lea eax, [ebp - 0x204]
mov dword [ebp - 0x208], eax
jne 0x40514b
push eax
call fcn.004090f4
add esp, 4
lea eax, [esi + 0x2c]
push eax
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov esi, eax
test esi, esi
je 0x405180
push 0
lea eax, [ebp - 0x208]
push eax
push 0
push 1
push 0
push 0
push 0
push 4
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004087da
mov esp, ebp
pop ebp
ret
Function at 0x405fa0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41c268]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.004072e0
test eax, eax
jne 0x405fd2
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004087da
mov esp, ebp
pop ebp
ret 4
lea eax, [ebp - 0x14]
push eax
push 1
push 0x65
push dword [0x41d098]
mov dword [ebp - 0x14], str.APPID
mov dword [ebp - 0x10], 0x414ba0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004076c0
test eax, eax
js 0x4060f1
push ebx
push edi
push 0x20006
push str.AppID
push 0x80000000
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.00402f20
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0x10]
test eax, eax
je 0x406054
push eax
call fcn.004049a0
add esp, 4
mov esi, eax
jmp 0x4060e6
push 0
push 0
push 0x2001f
push 0
push 0
push 0x414ba0
push ebx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
call fcn.004021b0
mov edi, dword [ebp - 0x10]
test eax, eax
je 0x406098
push eax
call fcn.004049a0
add esp, 4
mov esi, eax
jmp 0x4060d1
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
cmp byte [ebp + 8], 0
je 0x4060cf
push 1
lea eax, [esi + 0x2c]
push eax
push str.LocalService
lea ecx, [ebp - 0x10]
call fcn.00406f10
mov ecx, esi
call fcn.00404f90
test eax, eax
jne 0x4060cf
mov esi, 0x80004005
jmp 0x4060d1
xor esi, esi
test edi, edi
je 0x4060e0
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x4060e6
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x4060ed
push ebx
call edi
pop edi
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004087da
mov esp, ebp
pop ebp
ret 4
Function at 0x406270
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x412ef6
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x41c268]
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 - 0x424], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x428], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x420], 0
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push 0x60
push 0
push esi
mov byte [ebp - 4], 1
call ebx
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x406316
push 2
push eax
push esi
call ebx
mov edi, eax
mov dword [ebp - 0x42c], eax
test edi, edi
jne 0x406316
call fcn.00401890
mov esi, eax
jmp 0x406403
push dword [ebp - 0x428]
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x406339
call fcn.00401890
jmp 0x4063f6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
test ebx, ebx
jne 0x406357
call fcn.00401890
jmp 0x4063f6
push esi
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
mov dword [ebp - 0x428], esi
lea eax, [esi + 1]
cmp eax, esi
jae 0x406378
mov esi, 0x8007000e
jmp 0x4063f8
push eax
lea ecx, [ebp - 0x420]
mov byte [ebp - 4], 2
call fcn.004047f0
jmp 0x4063a2
cmp dword [ebp - 0x420], 0
mov dword [ebp - 4], 1
jne 0x4063b9
mov esi, 0x8007000e
jmp 0x4063f8
push esi
push dword [ebp - 0x420]
push esi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x4063d9
call fcn.00401890
jmp 0x4063f6
mov eax, dword [ebp - 0x420]
push dword [ebp + 0x14]
xor edx, edx
mov word [eax + ecx*2], dx
push dword [ebp - 0x420]
lea ecx, [ebp - 0x1c]
call fcn.00406110
mov esi, eax
test edi, edi
je 0x406403
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x406420
lea ecx, [ebp - 0x420]
call fcn.00404d20
lea esp, [esp]
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.004087da
mov esp, ebp
pop ebp
ret 0x10
Function at 0x406eb0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
test ebx, ebx
jne 0x406ec9
lea eax, [ebx + 0xd]
pop ebx
mov esp, ebp
pop ebp
ret 8
push esi
push edi
xor esi, esi
mov edx, ebx
nop
mov eax, edx
lea edi, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406ed5
sub eax, edi
sar eax, 1
lea ecx, [eax + 1]
lea edx, [edx + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x406ed0
mov eax, dword [ebp - 4]
push esi
push ebx
push 7
push 0
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x406f10
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x406f25
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
jmp 0x406f30
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406f30
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x407590
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.004072e0
test eax, eax
jne 0x4075a8
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x20006
push str.AppID
push 0x80000000
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00402f20
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ebx, dword [ebp - 0xc]
test eax, eax
je 0x4075f1
push eax
call fcn.004049a0
add esp, 4
mov esi, eax
jmp 0x407655
push 0x20006
push 0x414ba0
push ebx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
call fcn.00402f20
mov edi, dword [ebp - 0xc]
test eax, eax
je 0x40762b
push eax
call fcn.004049a0
add esp, 4
jmp 0x40763e
push str.LocalService
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push 0
call fcn.00407670
mov esi, eax
test edi, edi
je 0x40764f
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
jmp 0x407655
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test ebx, ebx
je 0x40765c
push ebx
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4122b0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x41c268]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040e99e
mov dword [ebp - 0x14], eax
cmp dword [0x41e29c], edi
jne 0x4123a1
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x41232e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x412481
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x412481
push 0x419580
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x412481
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x41e29c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x41e2a0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x41e2a4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41e2ac], eax
test eax, eax
je 0x41239e
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41e2a8], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4123c6
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4123b9
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x4123db
push 4
pop eax
jmp 0x412483
cmp dword [ebp - 0x14], edi
je 0x4123db
push dword [0x41e29c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4123c0
mov eax, dword [0x41e2a8]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x412439
cmp dword [0x41e2ac], esi
je 0x412439
push eax
call ebx
push dword [0x41e2ac]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x412439
test eax, eax
je 0x412439
call ecx
test eax, eax
je 0x41242e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x41242e
test byte [ebp - 8], 1
jne 0x412439
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x412469
mov eax, dword [0x41e2a0]
cmp eax, esi
je 0x412466
push eax
call ebx
test eax, eax
je 0x412466
call eax
mov edi, eax
test edi, edi
je 0x412466
mov eax, dword [0x41e2a4]
cmp eax, esi
je 0x412466
push eax
call ebx
test eax, eax
je 0x412466
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x41e29c]
call ebx
test eax, eax
je 0x412481
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x412483
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004087da
leave
ret
Function at 0x401720
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
mov ecx, esp
push ebp
mov ebp, esp
add ecx, 4
mov dword [0x4050d2], ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x4051c4], eax
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
mov dword [0x405154], eax
mov dword [0x4050ca], eax
mov dword [0x405140], 0x30
mov dword [0x405144], 2
jmp 0x401765
mov dword [0x405148], 0x40319b
mov dword [0x40514c], 0
mov dword [0x405150], 0
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x40515c], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x405158], eax
mov dword [0x40516c], eax
mov dword [0x405168], 0x4041b8
mov dword [0x405160], 0xf
push 0x405140
call dword [sym.imp.user32.dll_RegisterClassExA]
push 0
push dword [0x4050ca]
push 0
push 0
push 0x1e0
push 0x1fe
push 0xfffff862
push 0xfffff8f8
push 0xcf0000
push str.smform
push str.cl2307
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x4051bc], eax
push 5
push dword [0x4051bc]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x4051bc]
call dword [sym.imp.user32.dll_UpdateWindow]
xor edi, edi
lea ebx, [0x405170]
jmp 0x401839
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x40182b
mov eax, dword [0x405178]
jmp 0x401854
call 0x402ccf
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
mov ebx, 0x408f6c
nop
mov ecx, 0xbdf6a74
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
mov eax, section..data
nop
nop
mov ebx, 0x42e3d0
mov ecx, 0x564125ee
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402e48
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x402f2e
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x10]
mov eax, 9
call fcn.00402ca8
push dword [ebp - 0x10]
push dword [ebp - 4]
lea edx, [ebp - 0x14]
mov eax, 6
call fcn.00402ca8
push dword [ebp - 0x14]
lea eax, [ebp - 4]
mov edx, 3
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
mov edx, eax
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrSetLength_qqrv
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
test al, al
jbe 0x402f0b
mov byte [ebp - 9], al
mov bl, 1
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__UniqueStringA_qqrr17System_AnsiString
mov edi, ebx
and edi, 0xff
mov edx, dword [ebp - 4]
mov dl, byte [edx + edi - 1]
movzx ecx, si
shr ecx, 8
xor dl, cl
mov byte [eax + edi - 1], dl
mov eax, dword [ebp - 8]
mov eax, dword [eax]
movzx eax, byte [eax + edi - 1]
add si, ax
imul ax, si, 0xce68
add ax, 0x58ba
mov esi, eax
inc ebx
dec byte [ebp - 9]
jne 0x402eca
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x402f35
lea eax, [ebp - 0x14]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
lea eax, [ebp - 4]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret

Function at 0x402f3c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov esi, edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x403009
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call sub.rtl70.bpl__System__LStrLen_qqrx17System_AnsiString
mov edi, eax
sub edi, 0xf
cmp edi, 1
jl 0x402ff3
mov eax, dword [ebp - 8]
mov edx, edi
call sub.rtl70.bpl__System__LStrSetLength_qqrv
mov bl, 1
xor eax, eax
mov al, bl
mov edx, dword [ebp - 4]
movzx eax, byte [edx + eax - 1]
add si, ax
imul ax, si, 0xce68
add ax, 0x58ba
mov esi, eax
inc ebx
cmp bl, 0xa
jne 0x402f81
mov eax, edi
test al, al
jbe 0x402ff3
mov byte [ebp - 9], al
mov bl, 1
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__UniqueStringA_qqrr17System_AnsiString
xor edx, edx
mov dl, bl
lea eax, [eax + edx - 1]
push eax
mov edi, ebx
and edi, 0xff
mov eax, dword [ebp - 4]
mov al, byte [eax + edi + 8]
movzx edx, si
shr edx, 8
xor al, dl
pop edx
mov byte [edx], al
mov eax, dword [ebp - 4]
movzx eax, byte [eax + edi + 8]
add si, ax
imul ax, si, 0xce68
add ax, 0x58ba
mov esi, eax
inc ebx
dec byte [ebp - 9]
jne 0x402fac
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x403010
lea eax, [ebp - 4]
call sub.rtl70.bpl__System__LStrClr_qqrpv
ret
Function at 0x4046d8
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 8], ecx
mov ebx, edx
mov byte [ebp - 1], al
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrAddRef_qqrpv
xor eax, eax
push ebp
push 0x404811
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
mov dword [ebp - 0xc], eax
xor eax, eax
mov al, bl
cmp eax, 5
ja case.0x404717.0
jmp dword [eax*4 + 0x40471e]
mov si, 1
jmp case.0x404717.0
mov si, 2
jmp case.0x404717.0
mov si, 4
jmp case.0x404717.0
mov si, 8
jmp case.0x404717.0
mov si, 0x10
cmp dword [0x411050], 0
jne 0x404774
lea eax, [ebp - 0x10]
xor edx, edx
mov dl, byte [ebp - 1]
shl edx, 5
lea edx, [edx*8 + 0x41002c]
call sub.rtl70.bpl__System__LStrFromString_qqrr17System_AnsiStringrx28System__SmallString_iuc_255_
jmp 0x404782
lea eax, [ebp - 0x10]
mov edx, dword [0x411050]
call sub.rtl70.bpl__System__LStrLAsg_qqrpvpxv
mov eax, dword [ebp - 0x10]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
call sub.advapi32.dll_RegisterEventSourceA
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4047ec
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0xc]
push eax
push 0
push 1
push 0
mov eax, dword [ebp + 8]
push eax
mov ax, word [ebp + 0xc]
push eax
push esi
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_ReportEventA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4047f3
mov eax, dword [ebp - 0x14]
xor edx, edx
cmp edx, 0xffffffff
jne 0x4047e0
cmp eax, 0xffffffff
jbe 0x4047eb
jmp 0x4047e2
jle 0x4047eb
mov eax, dword [ebp - 0x14]
push eax
call sub.advapi32.dll_DeregisterEventSource
ret
Function at 0x406b50
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa0
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x60], ecx
mov dword [ebp - 0x5c], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x406c6d
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
xor ecx, ecx
mov edx, 0x10
call sub.rtl70.bpl__System__FillChar_qqrpvic
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call sub.rtl70.bpl__System__FillChar_qqrpvic
mov dword [ebp - 0x58], 0x44
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
push ebx
push 0x406c84
push esi
lea eax, [ebp - 0x5c]
mov edx, 3
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov eax, dword [ebp - 0x5c]
call sub.rtl70.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb eax, eax
inc eax
test al, al
je 0x406c26
xor eax, eax
push ebp
push 0x406c1f
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WaitForSingleObject
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetExitCodeProcess
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c52
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_CloseHandle
ret
push 0x406c90
push ebx
push 0x406cac
lea eax, [ebp - 0x60]
mov edx, 3
call sub.rtl70.bpl__System__LStrCatN_qqrv
mov ecx, dword [ebp - 0x60]
mov dl, 1
mov eax, dword [sym.imp.rtl70.bpl__Sysutils_Exception_]
call sub.rtl70.bpl__Sysutils_Exception__bctr_qqrx17System_AnsiString
call sub.rtl70.bpl__System__RaiseExcept_qqrv
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406c74
lea eax, [ebp - 0x60]
mov edx, 2
call sub.rtl70.bpl__System__LStrArrayClr_qqrpvi
ret