joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404760
Capabilities:
Get session user name
Impersonate user

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x238
mov eax, dword [0x4140b0]
xor eax, esp
mov dword [esp + 0x234], eax
mov eax, dword [esi]
mov edx, dword [eax + 0xc]
lea ecx, [esp]
push ecx
push esi
mov dword [esp + 8], 0
call edx
cmp dword [esp], 0
je 0x404846
xor eax, eax
push 0x200
push eax
lea ecx, [esp + 0x32]
push ecx
mov word [esp + 0x34], ax
call fcn.00405de0
add esp, 0xc
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x2c]
push eax
mov dword [esp + 0xc], 0x101
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x40481e
xor eax, eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
lea edx, [esp + 8]
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov eax, dword [esp]
push edx
lea ecx, [esp + 0x2c]
push eax
mov dword [esp + 0x10], 0x20
mov dword [esp + 0x14], 1
mov dword [esp + 0x18], ecx
call dword [sym.imp.USERENV.dll_LoadUserProfileW]
test eax, eax
je 0x40481e
mov ecx, dword [esp + 0x24]
mov dword [esi + 0x10], ecx
cmp dword [esi + 0x10], 0
je 0x40483c
mov edx, dword [esp]
mov dword [esi + 0x14], edx
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.00404c44
mov esp, ebp
pop ebp
ret
mov eax, dword [esp]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x234]
xor ecx, esp
call fcn.00404c44
mov esp, ebp
pop ebp
ret

Function at 0x404c44
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4140b0]
jne 0x404c4e
repz ret
jmp fcn.00405ea6
Function at 0x40b04e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4140b0]
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.00406268
and dword [ebp - 0x14], 0
cmp dword [0x41603c], 0
mov dword [ebp - 0x18], eax
jne 0x40b101
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40b1a9
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40b1a9
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41603c], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x416040], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x416044], eax
call edi
push eax
call esi
mov dword [0x41604c], eax
test eax, eax
je 0x40b101
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x416048], eax
mov eax, dword [0x416048]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40b15a
cmp dword [0x41604c], ecx
je 0x40b15a
push eax
call esi
push dword [0x41604c]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40b15a
test ebx, ebx
je 0x40b15a
call edi
test eax, eax
je 0x40b151
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40b151
test byte [ebp - 8], 1
jne 0x40b15a
or dword [ebp + 0x10], 0x200000
jmp 0x40b18d
mov eax, dword [0x416040]
cmp eax, dword [ebp - 0x18]
je 0x40b18d
push eax
call esi
test eax, eax
je 0x40b18d
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40b18d
mov eax, dword [0x416044]
cmp eax, dword [ebp - 0x18]
je 0x40b18d
push eax
call esi
test eax, eax
je 0x40b18d
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41603c]
call esi
test eax, eax
je 0x40b1a9
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40b1ab
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404c44
leave
ret
Function at 0x4015da
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffc8
push 0x104
push 0x428c20
call sub.KERNEL32.DLL_RtlZeroMemory
push 0x427275
push 0x104
push 0x428c20
push dword [ebp + 8]
call fcn.0040240e
or eax, eax
jne 0x40160e
leave
ret 4
mov dword [ebp - 4], eax
push 0x428c20
push 0x428d24
call sub.KERNEL32.DLL_lstrcpyA
mov eax, 0x428d24
add eax, dword [ebp - 4]
push str..bak
push eax
call sub.KERNEL32.DLL_lstrcpyA
push 1
push 0x428d24
push 0x428c20
call sub.KERNEL32.DLL_CopyFileA
lea eax, [ebp - 0x14]
push eax
push 0x428c20
call fcn.004024d3
or eax, eax
jne 0x40166e
push 0x10
push str.Error
push str.Patching_failed.
push dword [ebp + 8]
call sub.user32.dll_MessageBoxA
leave
ret 4
mov dword [ebp - 0x18], 0
xor ecx, ecx
jmp 0x401743
lea eax, [ecx*4 + 0x4271c9]
mov eax, dword [eax]
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
lea eax, [ecx*4 + 0x4271d9]
mov eax, dword [eax]
cmp eax, 0xffffffff
jne 0x4016a2
mov eax, dword [ebp - 0xc]
add eax, dword [ebp - 8]
sub eax, dword [ebp - 0x20]
mov dword [ebp - 0x24], eax
lea eax, [ecx*4 + 0x4271e9]
mov eax, dword [eax]
mov dword [ebp - 0x1c], eax
mov edx, dword [ebp - 0x18]
lea eax, [edx + 0x42716d]
mov dword [ebp - 0x28], eax
lea eax, [edx + 0x427180]
mov dword [ebp - 0x2c], eax
lea eax, [edx + 0x427193]
mov dword [ebp - 0x30], eax
lea eax, [edx + 0x4271a6]
mov dword [ebp - 0x34], eax
lea eax, [ecx*4 + 0x4271b9]
mov eax, dword [eax]
mov dword [ebp - 0x38], eax
push ecx
push dword [ebp - 0x38]
push dword [ebp - 0x34]
push dword [ebp - 0x30]
push dword [ebp - 0x2c]
push dword [ebp - 0x28]
push dword [ebp - 0x1c]
push dword [ebp - 0x24]
push dword [ebp - 0x20]
call fcn.00403290
or eax, eax
jne 0x401738
lea eax, [ebp - 0x14]
push eax
call fcn.004025d7
push 0
push 0x428c20
push 0x428d24
call sub.KERNEL32.DLL_CopyFileA
push 0x10
push str.Error
push str.Patching_failed.
push dword [ebp + 8]
call sub.user32.dll_MessageBoxA
leave
ret 4
mov eax, dword [ebp - 0x18]
add eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
pop ecx
inc ecx
cmp ecx, dword [0x4271f9]
jb 0x40167c
lea eax, [ebp - 0x14]
push eax
call fcn.004025c1
or eax, eax
jne 0x40178e
lea eax, [ebp - 0x14]
push eax
call fcn.004025d7
push 0
push 0x428c20
push 0x428d24
call sub.KERNEL32.DLL_CopyFileA
push 0x10
push str.Error
push str.Patching_failed.
push dword [ebp + 8]
call sub.user32.dll_MessageBoxA
leave
ret 4
lea eax, [ebp - 0x14]
push eax
call fcn.004025d7
or eax, eax
jne 0x4017b3
push 0x10
push str.Error
push str.Patching_failed.
push dword [ebp + 8]
call sub.user32.dll_MessageBoxA
leave
ret 4
push 0x40
push str.Done
push str.Patching_successful.
push dword [ebp + 8]
call sub.user32.dll_MessageBoxA
leave
ret 4

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

Disassembly:
push ebp
mov ebp, esp
push edx
mov eax, dword [ebp + 8]
imul edx, dword [0x428e40], 0x8088405
inc edx
mov dword [0x428e40], edx
mul edx
mov eax, edx
pop edx
leave
ret 4
Function at 0x402480
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0
push 0x80
push 2
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
jne 0x4024ae
mov eax, 0
leave
ret 0xc
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 8]
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call sub.KERNEL32.DLL_WriteFile
push eax
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
pop eax
leave
ret 0xc

Function at 0x4024d3
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push dword [ebp + 8]
call sub.KERNEL32.DLL_CreateFileA
cmp eax, 0xffffffff
jne 0x402500
mov eax, 0
pop ebx
leave
ret 8
mov ebx, dword [ebp + 0xc]
mov dword [ebx], eax
push 0
push dword [ebx]
call sub.KERNEL32.DLL_GetFileSize
or eax, eax
jne 0x402530
push dword [ebx]
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebx], 0xffffffff
mov dword [ebx + 0xc], 0
mov eax, 0
pop ebx
leave
ret 8
mov dword [ebx + 0xc], eax
push 0
push 0
push 0
push 4
push 0
push dword [ebx]
call sub.KERNEL32.DLL_CreateFileMappingA
or eax, eax
jne 0x40256d
push dword [ebx]
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebx], 0xffffffff
mov dword [ebx + 0xc], 0
mov dword [ebx + 4], 0
mov eax, 0
pop ebx
leave
ret 8
mov dword [ebx + 4], eax
push 0
push 0
push 0
push 0xf001f
push dword [ebx + 4]
call sub.KERNEL32.DLL_MapViewOfFile
or eax, eax
jne 0x4025b4
push dword [ebx + 4]
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebx + 4], 0
mov dword [ebx + 0xc], 0
push dword [ebx]
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebx], 0xffffffff
mov eax, 0
pop ebx
leave
ret 8
mov dword [ebx + 8], eax
mov eax, 1
pop ebx
leave
ret 8

Function at 0x402a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push 0xa
push dword [ebp + 8]
push 0
call sub.KERNEL32.DLL_FindResourceA
mov dword [ebp - 4], eax
push eax
push 0
call sub.KERNEL32.DLL_LoadResource
or eax, eax
je 0x402aa6
push eax
call sub.KERNEL32.DLL_LockResource
mov dword [ebp - 8], eax
cmp dword [ebp + 0xc], 0
je 0x402a9f
push dword [ebp - 4]
push 0
call sub.KERNEL32.DLL_SizeofResource
mov edx, dword [ebp + 0xc]
mov dword [edx], eax
mov eax, dword [ebp - 8]
leave
ret 8
xor eax, eax
leave
ret 8
Function at 0x4033c5
Capabilities:
Create thread

Disassembly:
ret
call fcn.00403496
pop eax
pop edx
pop dword [0x42b004]
pop ecx
test edx, edx
push eax
je 0x4033c4
push ebx
push esi
push edi
push ebp
mov ebx, 0x428ff4
mov ebp, 0x42b018
xor eax, eax
mov dword [ebp - 0x10], eax
test cl, 1
mov esi, 0x403370
je 0x40349a
mov edi, ebp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, edx
push eax
push eax
push eax
push eax
push eax
push eax
push 0x403360
push 0xffffffffffffffff
push ebx
call dword [sym.imp.winmm.dll_waveOutOpen]
call dword [sym.imp.KERNEL32.DLL_HeapCreate]
test eax, eax
mov dword [ebx - 8], eax
je 0x40342a
mov dword [ebp - 0xc], esi
call fcn.004039f9
test eax, eax
je 0x40349a
mov esi, 0x43b028
mov dword [esi + 4], 0x10000
or dword [esi + 0x14], 0xffffffff
push 0xc
mov dword [esi], 0x42b028
pop dword [esi + 0x10]
push 0x20
push esi
push dword [ebx]
call dword [sym.imp.winmm.dll_waveOutPrepareHeader]
xor edi, edi
call fcn.0040353b
cmp dword [ebx + 4], edi
jne 0x403454
mov dword [ebx + 8], edi
push 0x20
push esi
push dword [ebx]
call dword [sym.imp.winmm.dll_waveOutWrite]
test eax, eax
jne 0x40349a
push ebp
push edi
push edi
push 0x4034fd
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_CreateThread]
test eax, eax
mov dword [ebx - 4], eax
je 0x40349a
push 0xf
push eax
call dword [sym.imp.KERNEL32.DLL_SetThreadPriority]
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret
mov ebp, 0x428ff0
mov eax, dword [ebp]
test eax, eax
je 0x4034b8
mov dword [ebp + 0xc], eax
push eax
push ebp
push eax
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor ebx, ebx
mov dword [ebp], ebx
mov edi, dword [ebp + 4]
mov dword [ebp + 8], ebx
test edi, edi
je 0x4034e6
mov dword [ebp + 4], ebx
push edi
push 0x20
push 0x43b028
push edi
push edi
call dword [sym.imp.winmm.dll_waveOutReset]
call dword [sym.imp.winmm.dll_waveOutUnprepareHeader]
call dword [sym.imp.winmm.dll_waveOutClose]
mov eax, dword [ebp - 4]
test eax, eax
je 0x4034f8
mov dword [ebp - 4], ebx
push eax
call dword [sym.imp.KERNEL32.DLL_HeapDestroy]
xchg ebx, eax
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0xdb1370
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0x1a
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0xdb138e
pop edi
pop esi
xor al, al
pop ebx
ret
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 ebx, eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0x14]
push 0xdda074
push ecx
mov edi, eax
call fcn.00dc5198
mov esi, eax
add esp, 8
test esi, esi
jne 0xdb13cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00dc502e
push esi
call fcn.00dc4fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xdb4850
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x218
lea eax, [esp]
push ebp
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
push eax
push 0x20019
push 0
push ecx
push SysReAllocString
call edi
test eax, eax
jne 0xdb48ae
mov ecx, dword [esp + 0xc]
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
lea edx, [esp + 0x10]
lea eax, [esp + 0x1c]
push edx
push eax
push 0xddf720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xdb48ba
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
add esp, 0x218
ret
mov eax, dword [esp + 0xc]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push eax
call esi
lea ecx, [esp + 0x1c]
push str.DefaultIcon
push ecx
call fcn.00dc51e1
add esp, 8
lea edx, [esp + 0xc]
lea eax, [esp + 0x1c]
push edx
push 0x20019
push 0
push eax
push SysReAllocString
call edi
test eax, eax
jne 0xdb48ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xddf720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xdb492a
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
pop esi
xor eax, eax
pop ebp
add esp, 0x218
ret
mov edx, dword [esp + 0xc]
push edx
call esi
lea eax, [esp + 0x1c]
push 0x2c
push eax
call fcn.00dc6082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xdb4957
mov word [eax], si
add eax, 2
push eax
call fcn.00dc6030
add esp, 4
jmp 0xdb4959
xor eax, eax
lea ecx, [esp + 0x18]
push 1
lea edx, [esp + 0x18]
push ecx
push edx
push eax
lea eax, [esp + 0x2c]
mov dword [esp + 0x24], esi
push eax
mov dword [esp + 0x2c], esi
call dword [sym.imp.SHELL32.dll_ExtractIconExW]
test eax, eax
je 0xdb48ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xdb48b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0xdb4ff0
Capabilities:
Execute syscall

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
lea edx, [ebp + 0xc]
int 0x2e
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0xdb5080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xdb50c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xdda458
push ecx
call fcn.00dc51e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00dc51e1
add esp, 0x10
jmp 0xdb50d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00dc520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00dc4dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00db5050
mov eax, dword [0xddf728]
xor esi, esi
add esp, 0x14
lea edx, [esp + 0x20]
cmp eax, esi
mov dword [esp + 8], 0x18
mov dword [esp + 0xc], esi
mov dword [esp + 0x14], 0x40
mov dword [esp + 0x10], edx
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
jne 0xdb513b
push esi
call fcn.00db4fb0
add esp, 4
mov dword [0xddf728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xdb514c
mov ecx, 1
mov edx, dword [esp + 0x458]
push esi
push esi
push 0x20
push ecx
mov ecx, dword [esp + 0x45c]
push ecx
push edx
lea ecx, [esp + 0x40]
push esi
push ecx
mov ecx, dword [esp + 0x468]
lea edx, [esp + 0x28]
or ecx, 0x100000
push edx
lea edx, [esp + 0x28]
push ecx
push edx
push eax
call fcn.00db4ff0
mov ecx, dword [esp + 0x34]
add esp, 0x30
neg eax
sbb eax, eax
pop esi
not eax
and eax, ecx
add esp, 0x43c
ret

Function at 0xdb8440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xdb84b7
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xdb848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xdb8471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xdb847e
add edx, ecx
cmp ebx, edx
jb 0xdb848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xdb8467
xor ecx, ecx
jmp 0xdb84a2
test eax, eax
jne 0xdb8492
xor ecx, ecx
jmp 0xdb84a2
mov ecx, dword [eax + 0x14]
mov esi, dword [eax + 0xc]
mov eax, dword [esp + 0x10]
sub ecx, esi
add ecx, ebx
add ecx, eax
mov edx, dword [esp + 0x18]
push edx
push 0
push 0
push ecx
push ecx
call fcn.00db83c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xdb88f0
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebx
mov eax, dword [esp + 8]
push ebp
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
push eax
xor bl, bl
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0xdb8921
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebp, eax
test ebp, ebp
jne 0xdb8946
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push 0
push 0
push 4
push ebp
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0xdb896e
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ecx, dword [esp + 0x18]
mov dword [ecx], esi
mov dword [ecx + 4], eax
cmp word [esi], 0x5a4d
jne 0xdb8993
push ecx
push esi
call fcn.00db84c0
add esp, 8
mov bl, al
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebp
call esi
push edi
call esi
pop edi
pop esi
mov al, bl
pop ebp
pop ebx
ret
Function at 0xdb9c00
Capabilities:
Enumerate pe sections

Disassembly:
mov eax, dword [esp + 8]
push ebx
push esi
xor ecx, ecx
mov cx, word [eax + 0x14]
xor esi, esi
mov si, word [eax + 6]
push edi
xor edi, edi
lea ecx, [ecx + eax + 0x18]
test esi, esi
jbe 0xdb9c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xdb9c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xdb9c38
add edx, eax
cmp ebx, edx
jb 0xdb9c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xdb9c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xdb9c50
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [ecx + 0x14]
mov esi, dword [ecx + 0xc]
mov ecx, dword [esp + 0x18]
sub eax, esi
add eax, ebx
pop edi
pop esi
add eax, ecx
pop ebx
ret

Function at 0xdb9c70
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
push esi
xor eax, eax
mov ax, word [ecx + 0x14]
xor esi, esi
mov si, word [ecx + 6]
push edi
xor edi, edi
lea eax, [eax + ecx + 0x18]
test esi, esi
jbe 0xdb9cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xdb9c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xdb9ca8
add edx, ecx
cmp ebx, edx
jb 0xdb9cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xdb9c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xdb9f60
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push edi
push 0
push 0
push 0
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00dc6145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xdb9ffb
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
test eax, eax
jne 0xdb9fdd
lea eax, [esp + 0x18]
push eax
jmp 0xdb9fe2
push 0xddf720
call fcn.00dc5fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xdb9fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xdb9f40
push 4
push ecx
push eax
call fcn.00dc643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xdba310
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x210
push ebp
push esi
push edi
mov edi, dword [esp + 0x224]
push 0
push 0
mov ebp, dword [esp + 0x228]
push 0
push 0
push 0
push 0
push 0
push edi
push 0
push 0
push 0
push ebp
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
mov eax, dword [edi]
shl eax, 2
push eax
call fcn.00dc6145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xdba3ab
push ebx
mov ebx, eax
push 0
push 0
push 0
lea ecx, [esp + 0x20]
push 0
lea edx, [esp + 0x28]
push ecx
push edx
push esi
push ebp
mov dword [esp + 0x34], 0x104
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0xdba38d
lea eax, [esp + 0x18]
push eax
jmp 0xdba392
push 0xddf720
call fcn.00dc5fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xdba360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xdb9f40
push 4
push ecx
push eax
call fcn.00dc643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xdbbf20
Capabilities:
Delete service
Query service status
Stop service

Disassembly:
push ecx
push ebp
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov ebp, eax
test ebp, ebp
mov dword [esp + 4], ebp
je 0xdbbfd7
mov eax, dword [esp + 0xc]
push esi
push 0xf01ff
push eax
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, eax
test esi, esi
je 0xdbbfcf
push ebx
push edi
push 0xddf770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xdbbfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xddf770
push esi
call ebx
test eax, eax
je 0xdbbfae
mov ebp, 3
cmp dword [0xddf774], ebp
jne 0xdbbfaa
push 0x3e8
call edi
push 0xddf770
push esi
call ebx
test eax, eax
jne 0xdbbf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xdbbfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xdbbfbb
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
pop ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop esi
pop ebp
pop ecx
ret