joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e4ca
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
push eax
mov dword [ebp - 0x10], ebx
mov word [ebp - 0xc], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 4], eax
cmp eax, ebx
je 0x40e51e
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
jne 0x40e515
mov dword [ebp - 4], ebx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp dword [ebp - 4], ebx
pop ebx
setne al
leave
ret

Function at 0x40e527
Capabilities:
Get token privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
call fcn.0040e4ca
test al, al
jne 0x40e573
mov eax, dword [0x419048]
cmp dword [eax + 4], 6
jae 0x40e545
xor al, al
leave
ret
lea eax, [ebp - 4]
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
lea eax, [ebp - 0xc]
push eax
push 4
lea eax, [ebp - 8]
push eax
push 0x12
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
cmp dword [ebp - 8], 3
jne 0x40e575
mov al, 1
leave
ret
Function at 0x40fecf
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov esi, eax
xor edi, edi
cmp dword [esi + 0x24], edi
jne 0x40feed
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 0x24], eax
cmp dword [esi + 0x2c], edi
jne 0x40ff08
lea eax, [ebp - 4]
push eax
push edi
push esi
push 0x40fdbd
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x2c], eax
add esi, 0x14
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call fcn.0040ff75
pop ecx
test al, al
jne 0x40ff28
inc edi
cmp edi, 0x14
jl 0x40ff0b
pop edi
pop esi
leave
ret
mov al, 1
jmp 0x40ff24

Function at 0x40ff2c
Capabilities:
Terminate thread

Disassembly:
mov eax, dword [esi + 0x24]
test eax, eax
je 0x40ff74
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0xbb8
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40ff5a
push 1
push dword [esi + 0x2c]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
push dword [esi + 0x24]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 0x2c]
and dword [esi + 0x24], 0
call edi
and dword [esi + 0x2c], 0
pop edi
ret

Function at 0x4100e8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push dword [ebp + 8]
mov dword [ebp - 4], eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
push esi
call fcn.004095ce
push dword [ebp - 4]
mov ebx, eax
push ebx
mov eax, esi
call fcn.004096d2
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret 4

Function at 0x4102ac
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x284
push ebx
push esi
push edi
push 0xc
call fcn.004095ce
push dword [ebp + 0xc]
mov ebx, eax
lea eax, [ebp - 0x30]
call fcn.00409aab
push dword [ebp + 8]
mov edi, eax
lea eax, [ebp - 0x20]
call fcn.00409aab
add esp, 0xc
push eax
lea eax, [ebp - 0x10]
call fcn.0040996d
lea esi, [ebp - 0x10]
call fcn.00409c0b
lea eax, [ebp - 0x280]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
lea eax, [ebp - 0x10]
call fcn.00409a00
lea eax, [ebp - 0x20]
call fcn.00409a00
lea eax, [ebp - 0x30]
call fcn.00409a00
cmp esi, 0xffffffff
je 0x41035a
lea eax, [ebp - 0x254]
push eax
lea eax, [ebp - 0x10]
call fcn.00409aab
sub esp, 0xc
lea ecx, [ebp - 0x10]
mov eax, esp
push ecx
call fcn.0040996d
mov edi, ebx
call fcn.0040a167
lea eax, [ebp - 0x10]
call fcn.00409a00
lea eax, [ebp - 0x280]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x41031c
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x410fc5
Capabilities:
Terminate thread

Disassembly:
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 8], ebx
je 0x41102d
push 0x10
lea eax, [esi + 0xc]
push ebx
push eax
call fcn.004096a4
add esp, 0xc
push dword [esi + 0x5c]
mov dword [esi + 0x30], ebx
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41100b
push 0xffffffffffffffff
push dword [esi + 0x58]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
push dword [esi + 0x58]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
mov dword [esi + 0x58], ebx
cmp dword [esi + 4], ebx
jne 0x411024
push dword [esi + 0x5c]
call edi
push dword [esi + 8]
call edi
mov dword [esi + 8], ebx
pop edi
pop esi
pop ebx
ret

Function at 0x411d83
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push 0x10
call fcn.004095ce
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x411dae
push ebx
push ebx
push ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0xc], eax
jmp 0x411db0
xor esi, esi
push 8
mov dword [edi + 0x50], esi
call fcn.004095ce
pop ecx
cmp eax, ebx
je 0x411dc3
mov dword [eax], ebx
jmp 0x411dc5
xor eax, eax
mov cx, word [edi + 0x2c]
mov dword [edi], eax
mov word [eax + 4], cx
mov esi, dword [edi]
call fcn.00412d5b
test eax, eax
je 0x411df1
lea eax, [ebp - 4]
push eax
push ebx
push edi
push 0x411eb5
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov al, 1
jmp 0x411df3
xor al, al
pop esi
pop ebx
leave
ret

Function at 0x412372
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x4123c4
mov eax, dword [esi + 4]
push dword [eax + 0x98]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4123aa
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
push dword [esi + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push dword [esi + 8]
and dword [esi + 0x40], 0
call edi
and dword [esi + 8], 0
pop edi
pop esi
ret

Function at 0x412771
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 8], 0
je 0x4127ce
mov eax, dword [esi + 4]
push dword [eax + 0x98]
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x1f4
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x4127a9
push 0xffffffffffffffff
push dword [esi + 0x40]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push edi
push dword [esi + 0x40]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
and dword [esi + 0x40], 0
cmp dword [esi + 4], 0
jne 0x4127c4
push dword [esi + 0x44]
call edi
push dword [esi + 8]
call edi
and dword [esi + 8], 0
pop edi
pop esi
ret
Function at 0x412a86
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor edi, edi
mov ebx, eax
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x10], eax
test bl, 0x10
je 0x412aaa
or ebx, 2
push 2
mov dword [ebp - 0xc], ebx
pop ecx
and dword [ebp - 0xc], ecx
je 0x412aba
push 3
pop ecx
jmp 0x412ac7
test bl, 4
jne 0x412ac7
movzx ecx, bl
shr ecx, 1
and ecx, 4
cmp dword [ebp - 0xc], edi
je 0x412ad3
mov eax, bind
jmp 0x412ae4
xor eax, eax
test bl, 0xc
je 0x412adb
inc eax
neg eax
sbb eax, eax
and eax, 0x40000000
push edi
push 0x80
push ecx
push edi
push 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x412bcf
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_SetLastError]
test bl, 0x10
je 0x412b1e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
jmp 0x412bc3
cmp dword [ebp - 0xc], edi
je 0x412b76
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x412b35
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 4], eax
lea ecx, [eax - 1]
cmp ecx, 0xfffd
ja 0x412bc6
test bl, 1
je 0x412b4a
inc eax
push eax
call fcn.004095ce
mov ebx, dword [ebp + 0xc]
pop ecx
push edi
lea ecx, [ebp - 4]
push ecx
push dword [ebp - 4]
mov dword [ebx], eax
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x412bc0
push dword [ebx]
call fcn.00409607
pop ecx
mov dword [ebx], edi
jmp 0x412bc6
test bl, 0xc
je 0x412bc6
mov eax, dword [ebp - 4]
cmp eax, edi
jne 0x412b90
mov eax, dword [ebp + 0xc]
push dword [eax]
call fcn.0040962a
pop ecx
mov dword [ebp - 4], eax
dec eax
cmp eax, 0xfffd
ja 0x412bc6
test bl, 8
je 0x412ba8
push 2
push edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push edi
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
mov eax, dword [ebp + 0xc]
push dword [eax]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x412bc6
mov eax, dword [ebp - 4]
mov dword [ebp - 8], eax
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412bd3
or dword [ebp - 8], 0xffffffff
push edi
call fcn.00409607
mov eax, dword [ebp - 8]
pop ecx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x412c1e
Capabilities:
Create new key via cryptacquirecontext
Hash data using sha1
Hash data using sha1 via wincrypt
Hash data via wincrypt
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
xor edi, edi
push str.AirytecTempCryptoContainer
lea esi, [ebp - 0x24]
mov byte [ebp - 5], 0
mov dword [ebp - 0xc], edi
call fcn.004099a2
mov eax, dword [eax]
push edi
push 1
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
push eax
lea eax, [ebp - 0xc]
push eax
call edi
mov ebx, eax
neg ebx
mov eax, esi
sbb bl, bl
call fcn.00409a00
inc bl
je 0x412c87
push str.AirytecTempCryptoContainer
lea esi, [ebp - 0x24]
call fcn.004099a2
push 8
push 1
xor esi, esi
push esi
push dword [eax]
lea eax, [ebp - 0xc]
push eax
call edi
lea eax, [ebp - 0x24]
call fcn.00409a00
jmp 0x412c89
xor esi, esi
cmp dword [ebp - 0xc], esi
je 0x412cfd
lea eax, [ebp - 0x14]
push eax
push esi
push esi
push 0x54
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
je 0x412cf3
lea eax, [ebp - 0x10]
push eax
push esi
push esi
push 0x8004
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptCreateHash]
test eax, eax
je 0x412cf3
push esi
push 0x5d
push dword [ebp + 0xc]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptHashData]
test eax, eax
je 0x412cea
push esi
push esi
push dword [ebp - 0x14]
push 0x40
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptVerifySignatureW]
test eax, eax
setne byte [ebp - 5]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_CryptDestroyHash]
push esi
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
mov al, byte [ebp - 5]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x412d5b
Capabilities:
Create tcp socket
Create udp socket
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a0
cmp dword [0x419070], 0
jne 0x412d8d
lea eax, [ebp - 0x1a0]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x412d8d
mov dword [0x419070], 1
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [esi], eax
cmp eax, 0xffffffff
je 0x412de0
push 2
pop eax
mov word [ebp - 0x10], ax
movzx eax, word [esi + 4]
push eax
call dword [sym.imp.WS2_32.dll_htons]
and dword [ebp - 0xc], 0
mov word [ebp - 0xe], ax
push 0x10
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.WS2_32.dll_bind]
test eax, eax
jne 0x412de0
push bind
push dword [esi]
call dword [sym.imp.WS2_32.dll_listen]
test eax, eax
jne 0x412de0
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x716370
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 0x71638e
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 0x73f074
push ecx
mov edi, eax
call fcn.0072a198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7163cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0072a02e
push esi
call fcn.00729fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x719850
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 0x7198ae
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 0x744720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7198ba
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.0072a1e1
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 0x7198ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x744720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x71992a
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.0072b082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x719957
mov word [eax], si
add eax, 2
push eax
call fcn.0072b030
add esp, 4
jmp 0x719959
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 0x7198ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7198b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x71a0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x73f458
push ecx
call fcn.0072a1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0072a1e1
add esp, 0x10
jmp 0x71a0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0072a20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00729dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0071a050
mov eax, dword [0x744728]
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 0x71a13b
push esi
call fcn.00719fb0
add esp, 4
mov dword [0x744728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x71a14c
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.00719ff0
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 0x71d440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x71d4b7
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 0x71d48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x71d471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x71d47e
add edx, ecx
cmp ebx, edx
jb 0x71d48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x71d467
xor ecx, ecx
jmp 0x71d4a2
test eax, eax
jne 0x71d492
xor ecx, ecx
jmp 0x71d4a2
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.0071d3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x71d8f0
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 0x71d921
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 0x71d946
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 0x71d96e
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 0x71d993
push ecx
push esi
call fcn.0071d4c0
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 0x71ec00
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 0x71ec4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x71ec2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x71ec38
add edx, eax
cmp ebx, edx
jb 0x71ec46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x71ec21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x71ec50
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 0x71ec70
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 0x71ecb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x71ec9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x71eca8
add edx, ecx
cmp ebx, edx
jb 0x71ecb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x71ec91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x71ef60
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.0072b145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x71effb
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 0x71efdd
lea eax, [esp + 0x18]
push eax
jmp 0x71efe2
push 0x744720
call fcn.0072afd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x71efb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x71ef40
push 4
push ecx
push eax
call fcn.0072b43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x71f310
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.0072b145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x71f3ab
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 0x71f38d
lea eax, [esp + 0x18]
push eax
jmp 0x71f392
push 0x744720
call fcn.0072afd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x71f360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x71ef40
push 4
push ecx
push eax
call fcn.0072b43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x720f20
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 0x720fd7
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 0x720fcf
push ebx
push edi
push 0x744770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x720fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x744770
push esi
call ebx
test eax, eax
je 0x720fae
mov ebp, 3
cmp dword [0x744774], ebp
jne 0x720faa
push 0x3e8
call edi
push 0x744770
push esi
call ebx
test eax, eax
jne 0x720f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x720fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x720fbb
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