joyce8/EMBER2024-capa huggingface dataset:
Function at 0x71010c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffdc
mov edi, edx
mov ebx, eax
cmp dword [ebx + 0x7c], 0
jne 0x710123
mov eax, ebx
call fcn.0070fa84
cmp dword [ebx + 0x78], 0
jne 0x710130
mov eax, ebx
call fcn.0070f9fc
mov esi, dword [ebx + 0x7c]
test esi, esi
je 0x7102c9
cmp dword [ebx + 0x78], 0
je 0x7102c9
mov edx, esp
mov eax, esi
call fcn.00713734
lea edx, [esp + 0x14]
mov eax, ebx
call fcn.0070f8c8
lea eax, [esp + 0x14]
xor edx, edx
call fcn.007137e4
cmp eax, dword [esp]
je 0x7101a4
lea eax, [esp + 0x14]
xor edx, edx
call fcn.007137f8
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x710181
adc edx, 0
push edx
lea eax, [esp + 0x18]
xor edx, edx
call fcn.007137e4
mov edx, dword [esp + 4]
sub edx, eax
sar edx, 1
jns 0x71019a
adc edx, 0
lea eax, [esp + 0x18]
pop ecx
call fcn.004134e8
mov eax, dword [ebx + 0x64]
test eax, eax
je 0x7101b7
mov eax, dword [eax + 0x28]
call fcn.00538a74
mov esi, eax
jmp 0x7101ba
mov esi, dword [ebx + 0x6c]
mov edx, 0xffffffec
mov eax, esi
call fcn.0041652c
test al, 8
je 0x7101cf
or esi, 0xffffffff
jmp 0x7101d9
push 3
push esi
call sub.user32.dll_GetWindow
mov esi, eax
mov eax, dword [ebx + 0x78]
mov edx, dword [esp + 0x14]
call fcn.006174e0
mov eax, dword [ebx + 0x78]
mov edx, dword [esp + 0x18]
call fcn.0061751c
mov eax, dword [ebx + 0x78]
mov edx, dword [esp]
call fcn.0052eb4c
mov eax, dword [ebx + 0x78]
mov edx, dword [esp + 4]
call fcn.0052eb84
lea ecx, [esp + 8]
xor edx, edx
xor eax, eax
call fcn.00713780
mov edx, edi
lea eax, [esp + 0x10]
call fcn.00713dd8
push 0x61b
push 0
push 0
push 0
push 0
push esi
mov eax, dword [ebx + 0x78]
call fcn.00538a74
push eax
call sub.user32.dll_SetWindowPos
push 0
call sub.user32.dll_GetDC
mov esi, eax
mov eax, dword [ebx + 0x78]
call fcn.00538a74
mov edx, 0xffffffec
call fcn.0041652c
or eax, 0x80000
or eax, 0x8000000
or eax, 0x20
push eax
mov eax, dword [ebx + 0x78]
call fcn.00538a74
mov edx, 0xffffffec
pop ecx
call fcn.00416810
push 2
lea eax, [esp + 0x14]
push eax
push 0x1fffffff
lea eax, [esp + 0x14]
push eax
mov eax, dword [ebx + 0x7c]
call fcn.00509d18
call fcn.005042cc
push eax
lea eax, [esp + 0x14]
push eax
push 0
push esi
mov eax, dword [ebx + 0x78]
call fcn.00538a74
push eax
mov eax, dword [0x7a8fd4]
mov eax, dword [eax]
call eax
push 4
mov eax, dword [ebx + 0x78]
call fcn.00538a74
push eax
call sub.user32.dll_ShowWindow
push esi
push 0
call sub.user32.dll_ReleaseDC
add esp, 0x24
pop edi
pop esi
pop ebx
ret
Function at 0x714194
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
push ecx
mov byte [esp], dl
mov edi, eax
xor ebx, ebx
mov eax, edi
call fcn.0040b2d0
mov ebp, eax
push ebp
call sub.kernel32.dll_GetFileAttributesW
mov esi, eax
cmp esi, 0xffffffff
je 0x71423b
test esi, 0x400
jne 0x7141d0
test esi, 0x10
setne bl
jmp 0x714260
cmp byte [esp], 0
je 0x714204
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x714260
push eax
call sub.kernel32.dll_CloseHandle_1
test esi, 0x10
setne bl
jmp 0x714260
test esi, 0x10
je 0x714210
mov bl, 1
jmp 0x714260
push 0
push 0x2000000
push 3
push 0
push 1
push 0x80000000
push ebp
call sub.kernel32.dll_CreateFileW_1
cmp eax, 0xffffffff
je 0x714237
push eax
call sub.kernel32.dll_CloseHandle_1
xor ebx, ebx
jmp 0x714260
mov bl, 1
jmp 0x714260
call sub.kernel32.dll_GetLastError_2
add eax, 0xfffffffe
sub eax, 2
jb 0x71425b
sub eax, 0x11
je 0x71425b
sub eax, 0x20
je 0x71425b
sub eax, 0x46
je 0x71425b
xor ebx, ebx
jmp 0x71425d
mov bl, 1
xor bl, 1
mov eax, ebx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x721508
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
mov edi, ecx
mov esi, edx
mov ebx, eax
mov ebp, 0x7b09f8
test esi, esi
jne 0x721522
xor eax, eax
jmp 0x721613
cmp dword [ebp], 0
jne 0x72152d
call fcn.00721498
xor ebx, 0xffffffff
cmp edi, 8
jb 0x7215ed
mov eax, ebx
xor al, byte [esi]
movzx eax, al
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
movzx eax, al
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
movzx eax, al
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
movzx eax, al
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
movzx eax, al
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
movzx eax, al
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
movzx eax, al
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
mov eax, ebx
xor al, byte [esi]
movzx eax, al
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
sub edi, 8
cmp edi, 8
jae 0x721539
test edi, edi
jbe 0x72160e
movzx eax, byte [esi]
xor eax, ebx
and eax, 0xff
mov edx, dword [ebp]
mov eax, dword [edx + eax*4]
shr ebx, 8
xor eax, ebx
mov ebx, eax
inc esi
dec edi
test edi, edi
ja 0x7215f1
or eax, 0xffffffff
xor eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x72c340
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
mov ebx, eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_GetCurrentProcessId
push eax
call sub.Kernel32.dll_ProcessIdToSessionId
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 5
mov eax, dword [ebp - 0xc]
push eax
push 0
call sub.wtsapi32.dll_WTSQuerySessionInformationA
test eax, eax
je 0x72c3aa
xor eax, eax
push ebp
push 0x72c3a3
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
call fcn.0040a80c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x72c3aa
mov eax, dword [ebp - 8]
push eax
call sub.wtsapi32.dll_WTSFreeMemory
ret
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x734024
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd5c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x2a4], ecx
mov dword [ebp - 0x29c], ecx
mov dword [ebp - 0x2a0], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x284], eax
lea eax, [ebp - 0x280]
mov edx, dword [0x41d4dc]
call fcn.0040ba28
xor eax, eax
push ebp
push 0x7344a1
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x7344bc
mov al, 1
call fcn.00732b5c
test al, al
je 0x734465
mov byte [ebp - 0x291], 1
mov dl, 1
mov eax, dword [0x48efa0]
call fcn.004b3428
mov dword [ebp - 0x28c], eax
mov dl, 1
mov eax, dword [0x4f6204]
call fcn.004f7350
mov dword [ebp - 0x288], eax
xor eax, eax
push ebp
push 0x73410b
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x288]
call fcn.004f7438
mov cl, 1
mov edx, 0x7344ec
mov eax, dword [ebp - 0x288]
call fcn.004f7590
mov edx, dword [ebp - 0x28c]
mov eax, dword [ebp - 0x288]
call fcn.004f7b08
mov eax, dword [ebp - 0x288]
call fcn.004f7408
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x734112
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7344a8
lea eax, [ebp - 0x2a4]
mov edx, 3
call fcn.0040a6e4
lea eax, [ebp - 0x280]
mov edx, dword [0x41d4dc]
call fcn.0040bb04
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.0040a6e4
ret
Function at 0x734754
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe94
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x164], ebx
mov dword [ebp - 0x16c], ebx
mov dword [ebp - 0x168], ebx
mov dword [ebp - 0x158], ebx
mov dword [ebp - 0x15c], ebx
mov dword [ebp - 0x160], ebx
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x7348d2
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7348f0
lea eax, [ebp - 0x15c]
mov edx, ebx
mov ecx, 0
call fcn.0040ae18
push dword [ebp - 0x15c]
push 0x734900
lea eax, [ebp - 0x160]
mov edx, esi
mov ecx, 0
call fcn.0040ae18
push dword [ebp - 0x160]
lea eax, [ebp - 0x158]
mov edx, 4
call fcn.0040ae88
mov edx, dword [ebp - 0x158]
lea eax, [ebp - 0x154]
mov ecx, 0xff
call fcn.0040ae64
lea eax, [ebp - 0x44]
xor ecx, ecx
mov edx, 0x44
call fcn.00407d38
mov dword [ebp - 0x44], 0x44
mov dword [ebp - 0x18], 1
mov word [ebp - 0x14], di
lea eax, [ebp - 0x54]
push eax
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x168]
mov edx, ebx
call fcn.0040b458
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.00426614
mov eax, dword [ebp - 0x164]
call fcn.0040b2d0
push eax
push 0
push 0x30
push 0
push 0
push 0
lea eax, [ebp - 0x16c]
lea edx, [ebp - 0x154]
call fcn.0040b458
mov eax, dword [ebp - 0x16c]
call fcn.0040b2d0
push eax
push 0
call sub.kernel32.dll_CreateProcessW
cmp eax, 1
sbb eax, eax
inc eax
mov ebx, eax
test bl, bl
je 0x7348a4
push 0xffffffffffffffff
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_WaitForSingleObject
mov eax, dword [ebp - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x50]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x7348d9
lea eax, [ebp - 0x16c]
mov edx, 3
call fcn.0040a6e4
lea eax, [ebp - 0x160]
mov edx, 3
call fcn.0040a714
ret
Function at 0x734904
Capabilities:
Create process on windows
Schedule task via schtasks

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
xor edx, edx
mov dword [ebp - 0x28], edx
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x24], edx
mov dword [ebp - 0x1c], edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], edx
mov esi, eax
xor eax, eax
push ebp
push 0x734a8b
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0x1c]
mov eax, 0x734aa4
call fcn.0042eb5c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 4]
mov ecx, 0x734ac0
call fcn.0040b53c
lea eax, [ebp - 8]
mov ecx, 0x734af0
mov edx, dword [ebp - 4]
call fcn.0040b53c
lea edx, [ebp - 0x24]
xor eax, eax
call fcn.00407274
mov eax, dword [ebp - 0x24]
lea edx, [ebp - 0x20]
call fcn.00426614
mov edx, dword [ebp - 0x20]
lea eax, [ebp - 0x18]
mov ecx, 0x734b10
call fcn.0040b53c
lea edx, [ebp - 0x28]
mov eax, 0x734aa4
call fcn.0042eb5c
mov edx, dword [ebp - 0x28]
lea eax, [ebp - 0xc]
mov ecx, 0x734b34
call fcn.0040b53c
mov eax, dword [ebp - 0xc]
call fcn.00426210
lea eax, [ebp - 0x10]
mov ecx, 0x734b4c
mov edx, dword [ebp - 0xc]
call fcn.0040b53c
mov dl, 1
mov eax, dword [0x48efa0]
call fcn.004b3428
push 0x734b6c
push dword [ebp - 0x18]
push 0x734bd8
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.0040b5c4
mov dl, 1
mov eax, dword [0x48efa0]
call fcn.004b3428
mov ebx, eax
mov edx, 0x734c14
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x14]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x3c]
mov edx, dword [ebp - 0x10]
mov eax, ebx
mov ecx, dword [eax]
call dword [ecx + 0x80]
mov eax, ebx
call fcn.00408898
lea eax, [ebp - 0x128]
mov edx, dword [ebp - 0x10]
mov ecx, 0xff
call fcn.0040b3ec
lea eax, [ebp - 0x128]
mov edx, 0x734c28
xor ecx, ecx
call fcn.00734754
push 5
push 0x734c2c
push 0x734c2c
mov eax, dword [ebp - 0x18]
call fcn.0040b2d0
push eax
push 0x734c30
mov eax, esi
call fcn.00538a74
push eax
call sub.shell32.dll_ShellExecuteW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x734a92
lea eax, [ebp - 0x28]
mov edx, 0xa
call fcn.0040a6e4
ret
Function at 0x7b5370
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 0x7b538e
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 0x7de074
push ecx
mov edi, eax
call fcn.007c9198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7b53cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.007c902e
push esi
call fcn.007c8fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x7b8850
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 0x7b88ae
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 0x7e3720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7b88ba
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.007c91e1
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 0x7b88ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x7e3720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7b892a
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.007ca082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x7b8957
mov word [eax], si
add eax, 2
push eax
call fcn.007ca030
add esp, 4
jmp 0x7b8959
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 0x7b88ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7b88b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7b90c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x7de458
push ecx
call fcn.007c91e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007c91e1
add esp, 0x10
jmp 0x7b90d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.007c920b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.007c8dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.007b9050
mov eax, dword [0x7e3728]
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 0x7b913b
push esi
call fcn.007b8fb0
add esp, 4
mov dword [0x7e3728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x7b914c
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.007b8ff0
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 0x7bc440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7bc4b7
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 0x7bc48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7bc471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7bc47e
add edx, ecx
cmp ebx, edx
jb 0x7bc48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7bc467
xor ecx, ecx
jmp 0x7bc4a2
test eax, eax
jne 0x7bc492
xor ecx, ecx
jmp 0x7bc4a2
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.007bc3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7bc8f0
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 0x7bc921
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 0x7bc946
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 0x7bc96e
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 0x7bc993
push ecx
push esi
call fcn.007bc4c0
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 0x7bdc00
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 0x7bdc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x7bdc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x7bdc38
add edx, eax
cmp ebx, edx
jb 0x7bdc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x7bdc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x7bdc50
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 0x7bdc70
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 0x7bdcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7bdc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7bdca8
add edx, ecx
cmp ebx, edx
jb 0x7bdcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7bdc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x7bdf60
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.007ca145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7bdffb
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 0x7bdfdd
lea eax, [esp + 0x18]
push eax
jmp 0x7bdfe2
push 0x7e3720
call fcn.007c9fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7bdfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7bdf40
push 4
push ecx
push eax
call fcn.007ca43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x7be310
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.007ca145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7be3ab
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 0x7be38d
lea eax, [esp + 0x18]
push eax
jmp 0x7be392
push 0x7e3720
call fcn.007c9fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7be360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7bdf40
push 4
push ecx
push eax
call fcn.007ca43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x7bff20
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 0x7bffd7
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 0x7bffcf
push ebx
push edi
push 0x7e3770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x7bffae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x7e3770
push esi
call ebx
test eax, eax
je 0x7bffae
mov ebp, 3
cmp dword [0x7e3774], ebp
jne 0x7bffaa
push 0x3e8
call edi
push 0x7e3770
push esi
call ebx
test eax, eax
jne 0x7bff8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x7bffc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x7bffbb
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