joyce8/EMBER2024-capa huggingface dataset:
Function at 0x485518
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe80
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0x180], ebx
mov dword [ebp - 0x17c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 4]
call fcn.004045e8
mov eax, dword [ebp - 8]
call fcn.004045e8
xor eax, eax
push ebp
push 0x485722
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.00404138
mov dword [ebp - 0x24], 0xc
mov dword [ebp - 0x1c], 0xffffffff
xor eax, eax
mov dword [ebp - 0x20], eax
push 0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_CreatePipe
xor eax, eax
push ebp
push 0x4856e8
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x68]
xor ecx, ecx
mov edx, 0x44
call fcn.00402d64
mov dword [ebp - 0x68], 0x44
mov dword [ebp - 0x3c], 0x101
mov word [ebp - 0x38], 0
push 0xfffffffffffffff6
call sub.kernel32.dll_GetStdHandle_1
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 8]
call fcn.004041d0
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebp - 0x18]
call fcn.004045f8
push eax
push 0
push 0
push 0xffffffffffffffff
push 0
push 0
lea eax, [ebp - 0x17c]
mov ecx, dword [ebp - 4]
mov edx, 0x48573c
call fcn.00404444
mov eax, dword [ebp - 0x17c]
call fcn.004045f8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
cmp eax, 1
sbb ebx, ebx
inc ebx
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_CloseHandle
test bl, bl
je 0x4856d1
xor eax, eax
push ebp
push 0x4856ca
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea eax, [ebp - 0x14]
push eax
push 0xff
lea eax, [ebp - 0x178]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_ReadFile
cmp eax, 1
sbb ebx, ebx
inc ebx
cmp dword [ebp - 0x14], 0
jbe 0x485695
mov eax, dword [ebp - 0x14]
mov byte [ebp + eax - 0x178], 0
lea eax, [ebp - 0x180]
lea edx, [ebp - 0x178]
mov ecx, pe_nt_image_headers32
call fcn.004043a8
mov edx, dword [ebp - 0x180]
mov eax, esi
call fcn.00404400
test bl, bl
je 0x48569f
cmp dword [ebp - 0x14], 0
jne 0x485640
push 0xffffffffffffffff
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_WaitForSingleObject
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4856d1
mov eax, dword [ebp - 0x74]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [ebp - 0x78]
push eax
call sub.kernel32.dll_CloseHandle
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4856ef
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle
ret
Function at 0x10002fa7
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [section..data]
jne 0x10002fb1
repz ret
jmp fcn.10003399

Function at 0x1000afd8
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.10004992
and dword [ebp - 4], 0
cmp dword [0x10010894], 0
mov ebx, eax
jne 0x1000b089
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000b13a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000b13a
push eax
call fcn.10004920
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10010894], eax
call esi
push eax
call fcn.10004920
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10010898], eax
call esi
push eax
call fcn.10004920
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x1001089c], eax
call esi
push eax
call fcn.10004920
pop ecx
mov dword [0x100108a4], eax
test eax, eax
je 0x1000b089
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10004920
pop ecx
mov dword [0x100108a0], eax
mov eax, dword [0x100108a0]
cmp eax, ebx
je 0x1000b0e1
cmp dword [0x100108a4], ebx
je 0x1000b0e1
push eax
call fcn.10002fb6
push dword [0x100108a4]
mov esi, eax
call fcn.1000499b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000b0e1
test edi, edi
je 0x1000b0e1
call esi
test eax, eax
je 0x1000b0d8
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000b0d8
test byte [ebp - 0xc], 1
jne 0x1000b0e1
or dword [ebp + 0x10], 0x200000
jmp 0x1000b11a
mov eax, dword [0x10010898]
cmp eax, ebx
je 0x1000b11a
push eax
call fcn.1000499b
pop ecx
test eax, eax
je 0x1000b11a
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000b11a
mov eax, dword [0x1001089c]
cmp eax, ebx
je 0x1000b11a
push eax
call fcn.1000499b
pop ecx
test eax, eax
je 0x1000b11a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10010894]
call fcn.1000499b
pop ecx
test eax, eax
je 0x1000b13a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000b13c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x431000
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..idata
mov ebx, 0x40915c
nop
nop
mov ecx, 0x49da61f0
nop
nop
nop
nop
test eax, eax
je 0x43104e
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
nop
mov eax, section..data
mov ebx, 0x42f3f8
nop
mov ecx, 0x6a903c28
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x48bfbc
Capabilities:
Authenticate hmac

Disassembly:
sahf
dec esp
adc byte [ebx + 0x50fd6601], cl
mov eax, dword [ecx]
std
push eax
out dx, al
or al, bh
mov ss, word [ebx]
jg 0x48bffc
loopne 0x48bf8b
cmp byte [esi + 0x2c190c3f], dl
call 0xd4f672d9
lodsd eax, dword [esi]
invalid
pop esp
jp 0x48bfaa
ja 0x48bfe1
xchg edi, eax
out 0xa5, eax

Function at 0x48bff4
Capabilities:
Authenticate hmac

Disassembly:
mov dl, byte [ecx]
inc ebx
insd dword es:[edi], dx
inc esp
mov eax, dword [edi]
push eax
jo 0x48bfd8
stosb byte es:[edi], al
xor al, 0x93
and byte [edx + ebp], dh
sahf
mov edi, 0xbe188985
sbb byte [esi + 0x2d106166], bh
scasd eax, dword es:[edi]
xchg esp, eax
mov ecx, 0xb3ca83d1

Function at 0x48c024
Capabilities:
Authenticate hmac

Disassembly:
pop ebp
sub ecx, edi
mov cl, 0xb3
in eax, 0x56
add ch, byte [ecx - 0x53d40b8f]
test eax, 0xac2bf471
sar byte [eax], 0x64

Function at 0x48c034
Capabilities:
Authenticate hmac

Disassembly:
stosb byte es:[edi], al
loope 0x48c031
wait
xchg edi, eax
sub byte [ecx - 0x3f628d53], al
jb 0x48bfdb
invalid
ja fcn.0048bfc4
mov ah, 0xcf
mov dl, 0xd2
invalid
insb byte es:[edi], dx

Function at 0x48c044
Capabilities:
Authenticate hmac

Disassembly:
shr byte [edi + ebp*2 - 0x23], cl
out 0x33, eax
and ecx, dword [ecx + 0x502061b0]
mov al, 0x61
and byte [eax - 0x2a], dl

Function at 0x48c04c
Capabilities:
Authenticate hmac

Disassembly:
outsd dx, dword [esi]
fucom st(7)
xor esp, dword [ebx]
mov dword [eax - 0x29afdf9f], esi
mov al, 0x61
and byte [eax - 0x2a], dl
dec ebx
cmp byte [esi - 0x16dd938c], bh
je 0x48c0c2
and ch, cl
cmp dword [ebp + ebp*8 + 0x51], esi
sbb byte [edx + 0x7b], dl
sbb esp, esp
les ecx, [ebx + 0x35]
invalid
pop es
aad 0xc
adc esi, dword [edx + 0x67]
xor dword [esi + 0x4f], ebx
jae 0x48c046
cmpsd dword [esi], dword es:[edi]
xchg ebp, eax
test al, 0x2c
xchg esi, eax
mov dl, 0x5d
pop ebp
or dword [edx + 0x7c], esi
mov edx, 0x5588f4c9
push cs
dec ecx
xor byte [esi], bl
jbe 0x48c0a9
adc al, 0x2c
add cl, byte [ebp - 0x2e]
add dword [edi - 0x6c], edi
xor byte [ebp - 0x4f], cl
out dx, al
and eax, 0x48edbafd
cmpsb byte [esi], byte es:[edi]
pop ebx
sbb esp, ebp
jp 0x48c0b2
mov eax, dword [0xe6d6e2f3]
sti
jecxz 0x48c108
xchg ebp, eax
dec esi
add ah, 0xb7
add al, 0x20
iretd
invalid
Function at 0x48c054
Capabilities:
Authenticate hmac

Disassembly:
outsd dx, dword [esi]
fucom st(7)
xor esp, dword [ebx]
mov dword [eax - 0x29afdf9f], esi
mov al, 0x61
and byte [eax - 0x2a], dl
dec ebx
cmp byte [esi - 0x16dd938c], bh
je 0x48c0c2
and ch, cl
cmp dword [ebp + ebp*8 + 0x51], esi
sbb byte [edx + 0x7b], dl
sbb esp, esp
les ecx, [ebx + 0x35]
invalid
pop es
aad 0xc
adc esi, dword [edx + 0x67]
xor dword [esi + 0x4f], ebx
jae 0x48c046
cmpsd dword [esi], dword es:[edi]
xchg ebp, eax
test al, 0x2c
xchg esi, eax
mov dl, 0x5d
pop ebp
or dword [edx + 0x7c], esi
mov edx, 0x5588f4c9
push cs
dec ecx
xor byte [esi], bl
jbe 0x48c0a9
adc al, 0x2c
add cl, byte [ebp - 0x2e]
add dword [edi - 0x6c], edi
xor byte [ebp - 0x4f], cl
out dx, al
and eax, 0x48edbafd
cmpsb byte [esi], byte es:[edi]
pop ebx
sbb esp, ebp
jp 0x48c0b2
mov eax, dword [0xe6d6e2f3]
sti
jecxz 0x48c108
xchg ebp, eax
dec esi
add ah, 0xb7
add al, 0x20
iretd
invalid

Function at 0x48c0c0
Capabilities:
Authenticate hmac

Disassembly:
outsd dx, dword [esi]
fucom st(7)
xor esp, dword [ebx]
mov dword [eax - 0x29afdf9f], esi
mov al, 0x61
and byte [eax - 0x2a], dl
dec ebx
cmp byte [esi - 0x16dd938c], bh
je 0x48c0c2
and ch, cl
cmp dword [ebp + ebp*8 + 0x51], esi
sbb byte [edx + 0x7b], dl
sbb esp, esp
les ecx, [ebx + 0x35]
invalid
pop es
aad 0xc
adc esi, dword [edx + 0x67]
xor dword [esi + 0x4f], ebx
jae 0x48c046
cmpsd dword [esi], dword es:[edi]
xchg ebp, eax
test al, 0x2c
xchg esi, eax
mov dl, 0x5d
pop ebp
or dword [edx + 0x7c], esi
mov edx, 0x5588f4c9
push cs
dec ecx
xor byte [esi], bl
jbe 0x48c0a9
adc al, 0x2c
add cl, byte [ebp - 0x2e]
add dword [edi - 0x6c], edi
xor byte [ebp - 0x4f], cl
out dx, al
and eax, 0x48edbafd
cmpsb byte [esi], byte es:[edi]
pop ebx
sbb esp, ebp
jp 0x48c0b2
mov eax, dword [0xe6d6e2f3]
sti
jecxz 0x48c108
xchg ebp, eax
dec esi
add ah, 0xb7
add al, 0x20
iretd
invalid
Function at 0x99677c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x9967a3
call fcn.00938d18
mov dword [eax], esi
call fcn.00938d05
push 0x16
pop esi
mov dword [eax], esi
call fcn.0093995a
mov eax, esi
jmp 0x9967f8
test dword [ebp + 0xc], 0xfffffff9
jne 0x996789
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x9967d0
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00938d2b
pop ecx
call fcn.00938d05
mov eax, dword [eax]
jmp 0x9967f8
test al, 0x10
jne 0x9967f6
test al, 1
je 0x9967f6
test byte [ebp + 0xc], 2
je 0x9967f6
call fcn.00938d18
mov dword [eax], 5
call fcn.00938d05
mov dword [eax], 0xd
jmp 0x9967c7
xor eax, eax
pop esi
pop ebp
ret

Function at 0x401215
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
mov esi, dword [sym.imp.USER32.dll_LoadIconA]
push edi
push 0x7f00
xor edi, edi
push edi
mov dword [ebp - 0x24], str.construct
mov dword [ebp - 0x44], 0x401000
mov dword [ebp - 0x48], 3
mov dword [ebp - 0x4c], 0x30
call esi
push 0x7f00
push edi
mov dword [ebp - 0x34], eax
call esi
push 0x7f00
push edi
mov dword [ebp - 0x20], eax
call dword [sym.imp.USER32.dll_LoadCursorW]
mov esi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x40], edi
mov dword [ebp - 0x3c], edi
call esi
push edi
mov dword [0x4030f0], eax
mov dword [ebp - 0x38], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x4c]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExA]
test ax, ax
je 0x401327
push 1
push dword [0x4030f0]
call dword [sym.imp.USER32.dll_LoadBitmapA]
push edi
push edi
call esi
push eax
push edi
push edi
push 0x80000000
push 0x80000000
push 0x80000000
push 0x80000000
push 0xcf0000
push str.displayed
push str.construct
push edi
call dword [sym.imp.USER32.dll_CreateWindowExA]
push 0
push eax
mov dword [0x4030f8], eax
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push edi
push edi
push edi
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
je 0x401327
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
push ebx
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
lea eax, [ebp - 0x1c]
push eax
call edi
lea ecx, [ebp - 0x1c]
push ecx
call ebx
push 0
push 0
push 0
lea edx, [ebp - 0x1c]
push edx
call esi
test eax, eax
jne 0x40130a
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x724370
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 0x72438e
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 0x74d074
push ecx
mov edi, eax
call fcn.00738198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7243cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0073802e
push esi
call fcn.00737fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x727850
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 0x7278ae
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 0x752720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7278ba
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.007381e1
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 0x7278ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x752720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x72792a
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.00739082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x727957
mov word [eax], si
add eax, 2
push eax
call fcn.00739030
add esp, 4
jmp 0x727959
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 0x7278ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7278b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

Function at 0x727ff0
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 0x728080
Capabilities:
Get common file path

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7280c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x74d458
push ecx
call fcn.007381e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007381e1
add esp, 0x10
jmp 0x7280d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0073820b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00737dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00728050
mov eax, dword [0x752728]
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 0x72813b
push esi
call fcn.00727fb0
add esp, 4
mov dword [0x752728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x72814c
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.00727ff0
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 0x72b440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x72b4b7
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 0x72b48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x72b471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x72b47e
add edx, ecx
cmp ebx, edx
jb 0x72b48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x72b467
xor ecx, ecx
jmp 0x72b4a2
test eax, eax
jne 0x72b492
xor ecx, ecx
jmp 0x72b4a2
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.0072b3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x72b8f0
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 0x72b921
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 0x72b946
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 0x72b96e
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 0x72b993
push ecx
push esi
call fcn.0072b4c0
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 0x72cc00
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 0x72cc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x72cc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x72cc38
add edx, eax
cmp ebx, edx
jb 0x72cc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x72cc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x72cc50
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 0x72cc70
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 0x72ccb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x72cc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x72cca8
add edx, ecx
cmp ebx, edx
jb 0x72ccb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x72cc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x72cf60
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.00739145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x72cffb
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 0x72cfdd
lea eax, [esp + 0x18]
push eax
jmp 0x72cfe2
push 0x752720
call fcn.00738fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x72cfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x72cf40
push 4
push ecx
push eax
call fcn.0073943f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x72d310
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.00739145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x72d3ab
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 0x72d38d
lea eax, [esp + 0x18]
push eax
jmp 0x72d392
push 0x752720
call fcn.00738fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x72d360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x72cf40
push 4
push ecx
push eax
call fcn.0073943f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x72ef20
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 0x72efd7
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 0x72efcf
push ebx
push edi
push 0x752770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x72efae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x752770
push esi
call ebx
test eax, eax
je 0x72efae
mov ebp, 3
cmp dword [0x752774], ebp
jne 0x72efaa
push 0x3e8
call edi
push 0x752770
push esi
call ebx
test eax, eax
jne 0x72ef8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x72efc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x72efbb
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