joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40987c
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffbc
mov edi, eax
lea esi, [esp + 0x28]
lea eax, [esp + 4]
push eax
call sub.kernel32.dll_GetSystemInfo
mov ebx, edi
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409930
jmp 0x409925
cmp dword [esi + 0x10], 0x1000
jne 0x409911
test byte [esi + 0x15], 1
jne 0x409911
xor ebx, ebx
mov eax, dword [esi + 0x14]
cmp eax, 1
je 0x4098d0
cmp eax, 2
je 0x4098d0
cmp eax, 0x10
je 0x4098d0
cmp eax, 0x20
jne 0x4098e5
push esp
push 0x40
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
je 0x4098e5
mov bl, 1
xor ebp, ebp
jmp 0x4098f6
mov eax, dword [esi]
add eax, ebp
call fcn.00409874
add ebp, dword [esp + 8]
cmp ebp, dword [esi + 0xc]
jb 0x4098e9
test bl, bl
je 0x409911
push esp
mov eax, dword [esp + 4]
push eax
mov eax, dword [esi + 0xc]
push eax
mov eax, dword [esi]
push eax
call sub.kernel32.dll_VirtualProtect
mov eax, dword [esi]
add eax, dword [esi + 0xc]
mov ebx, eax
push 0x1c
push esi
push ebx
call sub.kernel32.dll_VirtualQuery
test eax, eax
je 0x409930
mov eax, dword [esi + 4]
cmp eax, edi
je 0x4098a8
add esp, 0x44
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x1000125c
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov dword [ebp - 0xc], 0
call sub.KERNEL32.DLL_GetEnvironmentStringsA
mov ebx, eax
mov dword [ebp - 0x10], ebx
jmp 0x10001299
cmp byte [ebx], 0x3d
je 0x10001285
inc dword [ebp - 0xc]
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
lea ebx, [ebx + edi]
cmp byte [ebx], 0
jne 0x10001278
mov edi, dword [ebp - 0xc]
inc edi
lea edi, [edi*4]
mov dword [ebp - 0x14], edi
push dword [ebp - 0x14]
call sub.CRTDLL.DLL_malloc
pop ecx
mov dword [ebp - 8], eax
mov dword [0x10003010], eax
cmp dword [ebp - 8], 0
jne 0x100012cc
xor eax, eax
jmp 0x10001342
mov ebx, dword [ebp - 0x10]
jmp 0x10001325
mov edi, ebx
xor eax, eax
stc
sbb ecx, ecx
repne scasb al, byte es:[edi]
neg ecx
lea eax, [ecx - 2]
mov edi, eax
inc edi
mov dword [ebp - 4], edi
cmp byte [ebx], 0x3d
je 0x1000131f
push dword [ebp - 4]
call sub.CRTDLL.DLL_malloc
pop ecx
mov esi, dword [ebp - 8]
mov dword [esi], eax
or eax, eax
jne 0x10001308
jmp 0x10001342
push ebx
mov edi, dword [ebp - 8]
push dword [edi]
call sub.CRTDLL.DLL_strcpy
add esp, 8
add dword [ebp - 8], 4
mov edx, dword [ebp - 4]
lea ebx, [ebx + edx]
cmp byte [ebx], 0
jne 0x100012d1
mov edx, dword [ebp - 8]
mov dword [edx], 0
mov eax, 1
pop edi
pop esi
pop ebx
leave
ret

Function at 0x401c08
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x1060224
Capabilities:
Encode data using xor

Disassembly:
jmp 0x106022e
pushal
call 0x1060234
pop ebp
sub ebp, 0x10
sub ebp, 0xc60224
jmp 0x106024a
mov eax, 0xc60224
add eax, ebp
add eax, 0x4c
mov ecx, 0x5c5
mov edx, 0xf1ce41a7
xor byte [eax], dl
inc eax
dec ecx
jne 0x1060261
jmp 0x1060274
sub al, 0x6a
sub al, 0x2e
wait
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
pop di
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
cmpsd dword [esi], dword es:[edi]
movsb byte es:[edi], byte [esi]
push 0x1f
mov eax, dword [0x1da7a7a7]
invalid
Function at 0x40595e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
pushal
call 0x40596d
pop dword [ebp - 0x2c]
mov eax, 0x179e4c6f
add eax, 0xe8a20cfe
sub dword [ebp - 0x2c], eax
mov dword [ebp - 0x3c], 0xeb5ef19d
sub dword [ebp - 0x3c], 0x9d0cac52
mov dword [ebp - 0x38], 0xcf9fa8a2
sub dword [ebp - 0x38], 0x9d6c5c5d
mov dword [ebp - 0x34], 0xcb50cc5c
sub dword [ebp - 0x34], 0x7f04882e
mov dword [ebp - 0x30], 0x8ccc6de
sub dword [ebp - 0x30], 0x8ccc6de
lea eax, [ebp - 0x3c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x2c]
call dword [eax]
mov dword [ebp - 0x3c], 0x4d5a07a6
sub dword [ebp - 0x3c], 0xd8e79e50
mov dword [ebp - 0x38], 0xc22e47a9
add dword [ebp - 0x38], 0x7f3e19cc
mov dword [ebp - 0x34], 0x9d3b03fb
sub dword [ebp - 0x34], 0x39cb978f
mov dword [ebp - 0x30], 0xdafff897
sub dword [ebp - 0x30], 0xdafff897
lea ebx, [ebp - 0x3c]
push ebx
push eax
mov eax, 0xc7e34b42
sub eax, 0xc7a2da42
add eax, dword [ebp - 0x2c]
call dword [eax]
push 0x40
push 0x1000
push 0x35a33
push 0
call eax
mov ecx, 0x90c33b5f
add ecx, 0x6f3d0850
xor esi, esi
add esi, eax
mov edi, 0x88380001
sub edi, 0x87f70001
add edi, dword [ebp - 0x2c]
mov ebx, 0x7939e657
add dword [ebp - 4], 0x67cd9d87
mov edx, dword [edi]
add dword [ebp - 0x24], eax
sub edx, ebx
xor dword [ebp - 0x10], 0xe2fe16c
mov dword [esi], edx
add dword [ebp - 0x24], 0xe371aceb
add esi, 0xa8946481
sub esi, 0xa894647d
add edi, 4
loop 0x405a86
add eax, 0x1018f
mov ebx, eax
add eax, 0x88633628
add eax, 0x779cc9dd
mov ecx, 0xf117d0c0
sub ecx, 0xf0d7d0c0
add ecx, dword [ebp - 0x2c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x40107e
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [eax]
push esi
push edi
mov edi, dword [eax + 4]
mov eax, dword [0x71f6c8]
mov dword [ebp - 0x28], eax
mov eax, dword [0x71f6cc]
xor esi, esi
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
call fcn.00401077
mov eax, dword [0x71f6d0]
add dword [ebp - 0xc], 0x23f
mov dword [ebp - 0x20], eax
mov eax, dword [0x71f6d4]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], 0x20
jmp 0x4010ce
xor esi, esi
mov dword [ebp - 8], 2
add dword [ebp - 8], 3
mov eax, ebx
shl eax, 4
cmp dword [0x72e914], 0xc
mov dword [ebp - 4], eax
jne 0x4010f8
push esi
lea eax, [ebp - 0x30]
push eax
push esi
push esi
push esi
call dword [sym.imp.KERNEL32.dll_WriteConsoleW]
mov eax, dword [ebp - 0x20]
add dword [ebp - 4], eax
mov eax, dword [0x72e914]
cmp eax, 0xfa9
jne 0x401114
mov dword [0x72e910], 0xedeb2e40
cmp eax, 0x3eb
jne 0x401133
push str.fahubizavojijalaho
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
mov dword [0x72e868], esi
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
mov edx, ebx
add eax, ebx
shr edx, cl
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [0x72e90c], 0xf4ea3dee
add edx, dword [ebp - 0x24]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], esi
mov eax, dword [ebp - 0x18]
add dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
xor eax, edx
sub edi, eax
mov eax, edi
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov esi, edi
shr esi, cl
add eax, edi
mov dword [ebp - 0x18], eax
add esi, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x18]
xor dword [ebp - 4], eax
cmp dword [0x72e914], 0xb03
jne 0x4011ac
push str.juyuzuwedikicezosofuxodesir
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
xor dword [ebp - 4], esi
sub ebx, dword [ebp - 4]
add dword [ebp - 0xc], 0x61c88647
dec dword [ebp - 0x1c]
jne 0x4010cc
mov eax, dword [ebp + 8]
mov dword [eax + 4], edi
pop edi
pop esi
mov dword [eax], ebx
pop ebx
leave
ret 4
Function at 0x4073d0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x71e83c]
jne 0x4073da
repz ret
jmp fcn.0040b7df

Function at 0x40b1cd
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.00405d67
and dword [ebp - 4], 0
cmp dword [0x723904], 0
mov ebx, eax
jne 0x40b27e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40b32f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40b32f
push eax
call fcn.00405cf5
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x723904], eax
call esi
push eax
call fcn.00405cf5
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x723908], eax
call esi
push eax
call fcn.00405cf5
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x72390c], eax
call esi
push eax
call fcn.00405cf5
pop ecx
mov dword [0x723914], eax
test eax, eax
je 0x40b27e
push 0x71af28
push edi
call esi
push eax
call fcn.00405cf5
pop ecx
mov dword [0x723910], eax
mov eax, dword [0x723910]
cmp eax, ebx
je 0x40b2d6
cmp dword [0x723914], ebx
je 0x40b2d6
push eax
call fcn.00405d70
push dword [0x723914]
mov esi, eax
call fcn.00405d70
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x40b2d6
test edi, edi
je 0x40b2d6
call esi
test eax, eax
je 0x40b2cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b2cd
test byte [ebp - 0xc], 1
jne 0x40b2d6
or dword [ebp + 0x10], 0x200000
jmp 0x40b30f
mov eax, dword [0x723908]
cmp eax, ebx
je 0x40b30f
push eax
call fcn.00405d70
pop ecx
test eax, eax
je 0x40b30f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40b30f
mov eax, dword [0x72390c]
cmp eax, ebx
je 0x40b30f
push eax
call fcn.00405d70
pop ecx
test eax, eax
je 0x40b30f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x723904]
call fcn.00405d70
pop ecx
test eax, eax
je 0x40b32f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b331
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40632d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
pushal
call 0x40633c
pop dword [ebp - 0x1c]
mov eax, 0xf022f05b
add eax, 0x101d72e1
sub dword [ebp - 0x1c], eax
mov dword [ebp - 0x2c], 0xf1ef79a
sub dword [ebp - 0x2c], 0xc0ccb24f
mov dword [ebp - 0x28], 0x9992e188
add dword [ebp - 0x28], 0x98a06abd
mov dword [ebp - 0x24], 0xb346a9e0
add dword [ebp - 0x24], 0x99059a4e
mov dword [ebp - 0x20], 0x12742f55
add dword [ebp - 0x20], 0xed8bd0ab
lea eax, [ebp - 0x2c]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x1c]
call dword [eax]
mov dword [ebp - 0x2c], 0xc2d17c90
sub dword [ebp - 0x2c], 0x4e5f133a
mov dword [ebp - 0x28], 0x1a48058f
sub dword [ebp - 0x28], 0xd8dba41a
mov dword [ebp - 0x24], 0xdde289fe
sub dword [ebp - 0x24], 0x7a731d92
mov dword [ebp - 0x20], 0x453326a4
add dword [ebp - 0x20], 0xbaccd95c
lea ebx, [ebp - 0x2c]
push ebx
push eax
mov eax, 0x98d5ab1d
add eax, 0x676ac5e3
add eax, dword [ebp - 0x1c]
call dword [eax]
push 0x40
push 0x1000
push 0x37601
push 0
call eax
mov ecx, 0xe5b938b3
sub ecx, 0xe5b8edac
mov edi, eax
mov ebx, 0x8bcf14d7
add ebx, 0x7471eb29
add ebx, dword [ebp - 0x1c]
mov esi, 0x74f1f44a
add esi, 0xebfb52c1
add dword [ebp - 0x14], eax
mov edx, dword [ebx]
sub dword [ebp - 0x10], 0x78a5832
xor edx, esi
add dword [ebp - 0xc], 0xd292a4c6
mov dword [edi], edx
mov dword [ebp - 0x10], 0x9f7ca779
add edi, 0xb412870c
sub edi, 0xb4128708
add ebx, 0x482cbfe6
add ebx, 0xb7d3401e
loop 0x406459
add eax, 0x11eef
xor ebx, ebx
add ebx, eax
add eax, 0xb091e39c
sub eax, 0xb091e397
mov ecx, 0xa20d7905
sub ecx, 0xa1cd7905
add ecx, dword [ebp - 0x1c]
call ebx
leave
ret

Function at 0x4065b0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c17c]
jne 0x4065ba
repz ret
jmp fcn.00406941
Function at 0x6c5370
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 0x6c538e
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 0x6ee074
push ecx
mov edi, eax
call fcn.006d9198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6c53cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006d902e
push esi
call fcn.006d8fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6c8850
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 0x6c88ae
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 0x6f3720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6c88ba
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.006d91e1
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 0x6c88ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6f3720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6c892a
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.006da082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x6c8957
mov word [eax], si
add eax, 2
push eax
call fcn.006da030
add esp, 4
jmp 0x6c8959
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 0x6c88ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6c88b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6c90c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6ee458
push ecx
call fcn.006d91e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006d91e1
add esp, 0x10
jmp 0x6c90d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.006d920b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.006d8dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.006c9050
mov eax, dword [0x6f3728]
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 0x6c913b
push esi
call fcn.006c8fb0
add esp, 4
mov dword [0x6f3728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x6c914c
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.006c8ff0
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 0x6cc440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6cc4b7
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 0x6cc48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6cc471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6cc47e
add edx, ecx
cmp ebx, edx
jb 0x6cc48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6cc467
xor ecx, ecx
jmp 0x6cc4a2
test eax, eax
jne 0x6cc492
xor ecx, ecx
jmp 0x6cc4a2
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.006cc3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6cc8f0
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 0x6cc921
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 0x6cc946
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 0x6cc96e
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 0x6cc993
push ecx
push esi
call fcn.006cc4c0
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 0x6cdc00
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 0x6cdc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x6cdc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x6cdc38
add edx, eax
cmp ebx, edx
jb 0x6cdc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x6cdc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x6cdc50
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 0x6cdc70
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 0x6cdcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6cdc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6cdca8
add edx, ecx
cmp ebx, edx
jb 0x6cdcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6cdc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x6cdf60
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.006da145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6cdffb
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 0x6cdfdd
lea eax, [esp + 0x18]
push eax
jmp 0x6cdfe2
push 0x6f3720
call fcn.006d9fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x6cdfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x6cdf40
push 4
push ecx
push eax
call fcn.006da43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x6ce310
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.006da145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6ce3ab
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 0x6ce38d
lea eax, [esp + 0x18]
push eax
jmp 0x6ce392
push 0x6f3720
call fcn.006d9fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x6ce360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x6cdf40
push 4
push ecx
push eax
call fcn.006da43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x6cff20
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 0x6cffd7
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 0x6cffcf
push ebx
push edi
push 0x6f3770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x6cffae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x6f3770
push esi
call ebx
test eax, eax
je 0x6cffae
mov ebp, 3
cmp dword [0x6f3774], ebp
jne 0x6cffaa
push 0x3e8
call edi
push 0x6f3770
push esi
call ebx
test eax, eax
jne 0x6cff8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x6cffc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x6cffbb
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