joyce8/EMBER2024-capa huggingface dataset:
Function at 0x517d28
Capabilities:
Get file system object information

Disassembly:
add esp, 0xfffffea0
mov eax, esp
xor ecx, ecx
mov edx, 0x160
call fcn.0040336c
push 0x4001
push 0x160
lea eax, [esp + 8]
push eax
push 0
push 0x517dc0
call sub.shell32.dll_SHGetFileInfoA
mov dword [0x583d50], eax
cmp dword [0x583d50], 0
je 0x517db8
cmp dword [0x583d54], 0
jne 0x517db8
xor ecx, ecx
mov dl, 1
mov eax, dword [0x499484]
call fcn.00499d00
mov dword [0x583d54], eax
mov edx, dword [0x583d50]
mov eax, dword [0x583d54]
call fcn.00458ccc
mov eax, dword [0x583d54]
mov byte [eax + 0x42], 1
mov dl, 1
mov eax, dword [0x583d54]
call fcn.0049b3d4
push 0xffffffffffffffff
mov eax, dword [0x583d54]
call fcn.00458d08
push eax
call sub.comctl32.dll_ImageList_SetBkColor
add esp, 0x160
ret

Function at 0x51c450
Capabilities:
Get file system object information

Disassembly:
push ebx
push esi
add esp, 0xfffffe9c
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [esp], eax
mov eax, ebx
call fcn.00409c84
test al, al
je 0x51c4d7
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x160
call fcn.0040336c
or esi, 0x100
test esi, esi
jns 0x51c48b
call fcn.00403898
push esi
push 0x160
lea eax, [esp + 0xc]
push eax
push 0
mov eax, ebx
call fcn.00404c70
push eax
call sub.shell32.dll_SHGetFileInfoA
test eax, eax
je 0x51c4d7
mov dl, 1
mov eax, dword [0x423d38]
call fcn.0042bf60
mov dword [esp], eax
mov edx, dword [esp + 4]
mov eax, dword [esp]
call fcn.0042c36c
mov eax, dword [esp]
mov edx, dword [eax]
call dword [edx + 0x1c]
test al, al
je 0x51c4d7
mov eax, esp
call fcn.0040fbf8
mov eax, dword [esp]
add esp, 0x164
pop esi
pop ebx
ret
Function at 0x54e610
Capabilities:
Get hostname

Disassembly:
push ebx
add esp, 0xffffffec
mov ebx, eax
mov eax, ebx
call fcn.004047b0
mov dword [esp], 0xf
push esp
lea eax, [esp + 8]
push eax
call sub.kernel32.dll_GetComputerNameA
test eax, eax
je 0x54e641
lea edx, [esp + 4]
mov eax, ebx
mov ecx, dword [esp]
call fcn.004048a0
add esp, 0x14
pop ebx
ret

Function at 0x54f264
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 8], ebx
mov ebx, ecx
mov dword [ebp - 4], edx
mov esi, eax
xor eax, eax
push ebp
push 0x54f2dc
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, ebx
mov edx, dword [ebp - 4]
mov eax, esi
mov edi, dword [eax]
call dword [edi + 0xc]
lea edx, [ebp - 8]
mov eax, dword [esi + 0x30]
call fcn.00409280
mov eax, dword [ebp - 8]
mov esi, dword [0x586e98]
mov esi, dword [esi]
mov edx, dword [ebx]
call esi
test eax, eax
je 0x54f2bd
mov edx, eax
dec edx
mov eax, ebx
call fcn.00404dfc
jmp 0x54f2c6
mov eax, ebx
xor edx, edx
call fcn.00404dfc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x54f2e3
lea eax, [ebp - 8]
call fcn.004047b0
ret

Function at 0x557bf4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x557c4e
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00557be8
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.0054feec
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.0054fa28
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x557c55
lea eax, [ebp - 4]
call fcn.004047b0
ret
Function at 0x57b8e8
Capabilities:
Resolve dns

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffe0
mov esi, ecx
mov ebx, edx
mov eax, esi
call fcn.004047b0
test ebx, ebx
je 0x57b989
mov al, byte [ebx]
add al, 0xd0
sub al, 0xa
jae 0x57b924
mov eax, ebx
call fcn.00404c70
push eax
call sub.wsock32.dll_inet_addr
inc eax
je 0x57b995
mov eax, esi
mov edx, ebx
call fcn.00404804
jmp 0x57b995
mov eax, ebx
call fcn.00404c70
push eax
call sub.wsock32.dll_gethostbyname
test eax, eax
je 0x57b995
mov ebx, eax
push esi
mov eax, dword [ebx + 0xc]
mov edi, dword [eax]
xor eax, eax
mov al, byte [edi]
mov dword [esp + 4], eax
mov byte [esp + 8], 0
xor eax, eax
mov al, byte [edi + 1]
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], 0
xor eax, eax
mov al, byte [edi + 2]
mov dword [esp + 0x14], eax
mov byte [esp + 0x18], 0
xor eax, eax
mov al, byte [edi + 3]
mov dword [esp + 0x1c], eax
mov byte [esp + 0x20], 0
lea edx, [esp + 4]
mov ecx, 3
mov eax, 0x57b9a4
call fcn.0040ab90
jmp 0x57b995
mov eax, esi
mov edx, 0x57b9b8
call fcn.00404804
add esp, 0x20
pop edi
pop esi
pop ebx
ret

Function at 0x57c250
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x57c35d
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x3a0], 0
mov eax, 0x57c374
call fcn.00409c84
test al, al
je 0x57c312
mov eax, dword [0x589580]
call fcn.004686e4
mov edx, 0x57c38c
mov eax, 0x57c3a4
call fcn.00409e9c
test al, al
je 0x57c305
mov eax, 0x57c374
call fcn.00409c84
test al, al
je 0x57c2c2
mov edx, 0x57c3a4
mov eax, 0x57c374
call fcn.00409e9c
mov byte [ebx + 0x3a0], 1
jmp 0x57c2d8
mov edx, 0x57c3a4
mov eax, 0x57c38c
call fcn.00409e9c
mov byte [ebx + 0x3a0], 1
xor eax, eax
mov dword [ebx + 0x39c], eax
push 0x7d0
call sub.kernel32.dll_Sleep_1
cmp byte [ebx + 0x3a0], 0
jne 0x57c2fb
inc dword [ebx + 0x39c]
jmp 0x57c305
mov dword [ebx + 0x39c], 0xa
cmp dword [ebx + 0x39c], 0xa
jne 0x57c289
mov eax, 0x57c38c
call fcn.00409c84
test al, al
je 0x57c341
lea eax, [ebp - 4]
mov ecx, 0x57c38c
mov edx, dword [ebx + 0x34c]
call fcn.00404abc
mov eax, dword [ebp - 4]
call fcn.00404c70
push eax
call sub.kernel32.dll_DeleteFileA
mov bl, byte [ebx + 0x3a0]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57c364
lea eax, [ebp - 4]
call fcn.004047b0
ret
Function at 0x4010c0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov cl, byte [ebp + 8]
movsx eax, cl
movd xmm0, eax
xor eax, eax
punpcklbw xmm0, xmm0
punpcklwd xmm0, xmm0
pshufd xmm2, xmm0, 0
nop dword [eax]
movups xmm0, xmmword [eax + 0x405018]
movaps xmm1, xmm2
xorps xmm0, xmm2
movups xmmword [eax + 0x405018], xmm0
movups xmm0, xmmword [eax + 0x405028]
xorps xmm0, xmm2
movups xmmword [eax + 0x405028], xmm0
movups xmm0, xmmword [eax + 0x405038]
xorps xmm1, xmm0
movups xmmword [eax + 0x405038], xmm1
movups xmm0, xmmword [eax + 0x405048]
xorps xmm0, xmm2
movups xmmword [eax + 0x405048], xmm0
add eax, 0x40
cmp eax, 0x2ae40
jb 0x4010e0
cmp eax, 0x2ae46
jae 0x40114e
nop dword [eax + eax]
xor byte [eax + 0x405018], cl
inc eax
cmp eax, 0x2ae46
jb 0x401140
pop ebp
ret

Function at 0x401150
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [sym.imp.api_ms_win_crt_utility_l1_1_0.dll_rand]
push esi
push edi
call ebx
cdq
mov ecx, 0x16
idiv ecx
lea edi, [edx + 0x7d0]
call ebx
cdq
mov ecx, 0xc
idiv ecx
lea esi, [edx + 1]
cmp esi, 2
jne 0x4011da
mov eax, edi
and eax, 0x80000003
jns 0x40118f
dec eax
or eax, 0xfffffffc
add eax, 1
jne 0x4011ab
mov eax, 0x51eb851f
imul edi
sar edx, 5
mov ecx, edx
shr ecx, 0x1f
add ecx, edx
mov edx, edi
imul ecx, ecx, 0x64
sub edx, ecx
jne 0x4011c8
mov eax, 0x51eb851f
mov ecx, edi
imul edi
sar edx, 7
mov eax, edx
shr eax, 0x1f
add eax, edx
imul eax, eax, 0x190
sub ecx, eax
jne 0x4011d1
call ebx
mov ecx, 0x1d
jmp 0x4011fe
call ebx
mov ecx, 0x1c
jmp 0x4011fe
cmp esi, 4
je 0x4011f7
cmp esi, 6
je 0x4011f7
cmp esi, 9
je 0x4011f7
cmp esi, 0xb
je 0x4011f7
call ebx
mov ecx, 0x1f
jmp 0x4011fe
call ebx
mov ecx, 0x1e
cdq
idiv ecx
push 0xb
mov dword [ebp - 4], edx
call dword [sym.imp.api_ms_win_crt_heap_l1_1_0.dll_malloc]
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x40122a
push str.Memory_allocation_failed._n
call fcn.00401040
add esp, 4
push 1
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll_exit]
mov eax, dword [ebp - 4]
push edi
push esi
inc eax
push eax
push str._02d__02d__04d
push ebx
call fcn.00401080
add esp, 0x14
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401ff3
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402032
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402032
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402032
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402032
cmp dword [ecx + 0x74], 0xe
jbe 0x402032
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x401d36
Capabilities:
Create directory
Get common file path
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28c
mov dword [ebp - 0x23c], 0x402480
mov dword [ebp - 0x238], 0x43c046
lea eax, [ebp - 0x234]
lea edx, [ebp - 0x18]
mov dword [eax], edx
mov edx, 0x401f6a
mov dword [eax + 4], edx
mov dword [eax + 8], esp
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.0040d0f0
add dword [0x441018], 0xfffffff9
adc dword [0x44101c], 0xffffffff
mov dword [esp + 0x10], 0x4410b0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x23
mov dword [esp], 0
mov dword [ebp - 0x250], 0xffffffff
call sub.SHELL32.DLL_SHGetFolderPathA
sub esp, 0x14
mov dword [esp + 4], 0x43e005
mov dword [esp], 0x4410b0
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x43e020
mov dword [esp], 0x4410b0
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0
mov dword [esp], 0x4410b0
call sub.KERNEL32.dll_CreateDirectoryA
sub esp, 8
mov dword [esp + 4], 0x43e00c
mov dword [esp], 0x4410b0
call sub.msvcrt.dll_strcat
mov dword [esp + 4], 0x10
mov dword [esp], 4
call fcn.0043b498
mov dword [esp + 8], eax
mov dword [esp + 4], 0x4410b0
lea eax, [ebp - 0x118]
mov dword [esp], eax
call fcn.00431780
mov dword [esp + 4], 8
mov dword [esp], 4
call fcn.0043b498
mov dword [esp + 8], eax
mov dword [esp + 4], 0x43d040
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 2
call fcn.00431780
mov dword [ebp - 0x220], 0
mov dword [ebp - 0x21c], 0
mov eax, dword [ebp - 0x220]
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x260], eax
mov dword [ebp - 0x25c], edx
mov edx, dword [ebp - 0x25c]
cmp edx, dword [0x44101c]
jg 0x401f2b
mov eax, dword [ebp - 0x25c]
cmp eax, dword [0x44101c]
jl 0x401ed0
mov edx, dword [ebp - 0x260]
cmp edx, dword [0x441018]
jae 0x401f2b
mov dword [esp + 8], 1
mov dword [esp + 4], 0x441020
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 1
call fcn.00424f30
mov dword [esp + 8], 1
mov dword [esp + 4], 0x441020
lea eax, [ebp - 0x118]
add eax, 8
mov dword [esp], eax
call fcn.00428a20
lea eax, [ebp - 0x220]
add dword [eax], 1
adc dword [eax + 4], 0
jmp 0x401e8e
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 1
call fcn.00431690
lea eax, [ebp - 0x118]
mov dword [esp], eax
call fcn.00431690
mov dword [esp + 4], 2
mov dword [esp], 0x4410b0
call sub.KERNEL32.dll_SetFileAttributesA
sub esp, 8
jmp 0x401fb6
lea eax, [ebp - 0x218]
mov dword [esp], eax
mov dword [ebp - 0x250], 2
call fcn.004321f0
jmp 0x402018
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov dword [ebp - 0x250], 0xffffffff
call fcn.004321f0
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.0040d1d0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x7c0370
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 0x7c038e
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 0x7e9074
push ecx
mov edi, eax
call fcn.007d4198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7c03cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.007d402e
push esi
call fcn.007d3fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x7c3850
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 0x7c38ae
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 0x7ee720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7c38ba
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.007d41e1
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 0x7c38ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x7ee720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7c392a
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.007d5082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x7c3957
mov word [eax], si
add eax, 2
push eax
call fcn.007d5030
add esp, 4
jmp 0x7c3959
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 0x7c38ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7c38b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7c40c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x7e9458
push ecx
call fcn.007d41e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007d41e1
add esp, 0x10
jmp 0x7c40d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.007d420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.007d3dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.007c4050
mov eax, dword [0x7ee728]
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 0x7c413b
push esi
call fcn.007c3fb0
add esp, 4
mov dword [0x7ee728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x7c414c
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.007c3ff0
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 0x7c7440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7c74b7
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 0x7c748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7c7471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7c747e
add edx, ecx
cmp ebx, edx
jb 0x7c748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7c7467
xor ecx, ecx
jmp 0x7c74a2
test eax, eax
jne 0x7c7492
xor ecx, ecx
jmp 0x7c74a2
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.007c73c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7c78f0
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 0x7c7921
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 0x7c7946
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 0x7c796e
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 0x7c7993
push ecx
push esi
call fcn.007c74c0
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 0x7c8c00
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 0x7c8c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x7c8c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x7c8c38
add edx, eax
cmp ebx, edx
jb 0x7c8c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x7c8c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x7c8c50
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 0x7c8c70
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 0x7c8cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7c8c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7c8ca8
add edx, ecx
cmp ebx, edx
jb 0x7c8cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7c8c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x7c8f60
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.007d5145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7c8ffb
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 0x7c8fdd
lea eax, [esp + 0x18]
push eax
jmp 0x7c8fe2
push 0x7ee720
call fcn.007d4fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7c8fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7c8f40
push 4
push ecx
push eax
call fcn.007d543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x7c9310
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.007d5145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7c93ab
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 0x7c938d
lea eax, [esp + 0x18]
push eax
jmp 0x7c9392
push 0x7ee720
call fcn.007d4fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7c9360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7c8f40
push 4
push ecx
push eax
call fcn.007d543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x7caf20
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 0x7cafd7
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 0x7cafcf
push ebx
push edi
push 0x7ee770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x7cafae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x7ee770
push esi
call ebx
test eax, eax
je 0x7cafae
mov ebp, 3
cmp dword [0x7ee774], ebp
jne 0x7cafaa
push 0x3e8
call edi
push 0x7ee770
push esi
call ebx
test eax, eax
jne 0x7caf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x7cafc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x7cafbb
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