joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4053dc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, 0x40732c
and byte [ebp - 0x1f], 0
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
and dword [ebp - 0x14], 0
and dword [ebp - 4], 0
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push esi
push eax
mov byte [ebp - 0x20], 1
push dword [ebp + 8]
mov word [ebp - 0x1e], 4
mov dword [ebp - 0x10], 0x40731c
mov dword [ebp - 0xc], 0xc
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
je 0x40542d
xor eax, eax
jmp 0x405454
mov esi, dword [sym.imp.KERNEL32.dll_GetLastError]
call esi
cmp eax, 0xb7
jne 0x405454
lea eax, [ebp - 0x20]
push eax
push 0x80000007
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_SetFileSecurityA]
test eax, eax
jne 0x405429
call esi
pop esi
leave
ret 4

Function at 0x40548e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x421528], 0x44
push eax
xor eax, eax
push 0x421528
push eax
push eax
push 0x4000000
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4054cd
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4

Function at 0x405557
Capabilities:
Delete directory
Delete file
Set file attributes

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
call fcn.0040594b
mov edi, eax
cmp edi, 0xffffffff
je 0x405598
test byte [esp + 0x10], 1
push esi
je 0x40557a
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
jmp 0x405580
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
je 0x405589
xor eax, eax
inc eax
jmp 0x40559a
test byte [esp + 0x10], 4
jne 0x405598
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
xor eax, eax
pop edi
pop esi
ret 8
Function at 0x40559f
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040585d
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4055de
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x4237a8], eax
jmp 0x405768
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4055f8
test eax, eax
je 0x405716
test bl, 2
je 0x405716
mov esi, 0x420d28
push edi
push esi
call fcn.00405cfd
cmp dword [ebp + 8], 0
je 0x405617
push str..
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x40561d
push edi
call fcn.004057b6
cmp byte [edi], 0
jne 0x40562b
cmp byte [0x420d28], 0x5c
jne 0x405636
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x40570c
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.0040579a
cmp byte [eax], 0
je 0x40567c
cmp byte [ebp - 0x1c], 0
je 0x40567c
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405692
mov al, byte [esi + 1]
test al, al
je 0x4056eb
cmp al, 0x2e
jne 0x405692
cmp byte [esi + 2], 0
je 0x4056eb
push esi
push ebx
call fcn.00405cfd
test byte [ebp - 0x14c], 0x10
je 0x4056b7
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4056eb
push dword [ebp + 0xc]
push edi
call fcn.0040559f
jmp 0x4056eb
push dword [ebp - 4]
push edi
call fcn.00405557
test eax, eax
jne 0x4056e3
cmp dword [ebp - 4], eax
je 0x4056db
push edi
push 0xfffffffffffffff1
call fcn.00404f16
push 0
push edi
call fcn.00405bb8
jmp 0x4056eb
inc dword [0x4237a8]
jmp 0x4056eb
push edi
push 0xfffffffffffffff2
call fcn.00404f16
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x40565a
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405716
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405768
cmp dword [ebp - 0xc], esi
jne 0x40572a
inc dword [0x4237a8]
jmp 0x405768
push edi
call fcn.00406001
test eax, eax
je 0x405768
push edi
call fcn.0040576f
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405557
test eax, eax
jne 0x405760
cmp dword [ebp - 4], esi
je 0x405722
push edi
push 0xfffffffffffffff1
call fcn.00404f16
push esi
push edi
call fcn.00405bb8
jmp 0x405768
push edi
push 0xffffffffffffffe5
call fcn.00404f16
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x40585d
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x421128
push esi
call fcn.00405cfd
push esi
call fcn.00405808
mov edi, eax
test edi, edi
jne 0x40587e
xor eax, eax
jmp 0x4058d0
push edi
call fcn.00405f68
test byte [0x423738], 0x80
je 0x405897
mov al, byte [edi]
test al, al
je 0x40587a
cmp al, 0x5c
je 0x40587a
sub edi, esi
jmp 0x4058af
call fcn.00406001
test eax, eax
je 0x4058a9
test byte [eax], 0x10
je 0x40587a
push esi
call fcn.004057b6
push esi
call sub.KERNEL32.dll_lstrlenA
cmp eax, edi
push esi
jg 0x40589b
call fcn.0040576f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x40594b
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
je 0x40596a
and al, 0xfe
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov eax, esi
pop esi
ret 4

Function at 0x405970
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x40599f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x64
pop edi
mov eax, dword [0x4093c4]
dec edi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x4059e4
test edi, edi
jne 0x4059aa
and byte [esi], 0
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x4059de
Function at 0x405a46
Capabilities:
Get file size

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, 0x421ab0
push 0x4093e0
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov esi, dword [esp + 0x18]
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
test esi, esi
mov ebx, 0x400
je 0x405a94
push 1
push 0
push esi
call fcn.00405970
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
push edi
push esi
call ebp
test eax, eax
je 0x405bb3
cmp eax, ebx
jg 0x405bb3
mov esi, 0x421eb0
push ebx
push esi
push dword [esp + 0x1c]
call ebp
test eax, eax
je 0x405bb3
cmp eax, ebx
jg 0x405bb3
push esi
push edi
push str._s_s_r_n
push 0x4216b0
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x423730]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.00405d1f
push 4
push 0xc0000000
push esi
call fcn.00405970
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x405bb3
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405bac
push edi
push esi
push ebp
call fcn.004059e8
test eax, eax
je 0x405bac
push str._Rename__r_n
push esi
call fcn.004058d5
test eax, eax
jne 0x405b4a
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x405b7f
add eax, 0xa
push 0x4093c8
push eax
call fcn.004058d5
mov ebp, eax
test ebp, ebp
je 0x405b7b
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x405b6c
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x405b66
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x405b81
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x4216b0
push eax
call fcn.0040592b
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405a17
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x405bb8
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExA]
test eax, eax
jne 0x405bdb
push dword [esp + 8]
push dword [esp + 8]
call fcn.00405a46
pop ecx
pop ecx
inc dword [0x4237b0]
ret 8
Function at 0x405be4
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405c55
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405c44
cmp dword [ebp + 0x14], 1
je 0x405c46
cmp dword [ebp + 0x14], 2
je 0x405c46
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x406028
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
push esi
mov esi, 0x104
lea eax, [ebp - 0x120]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
cmp eax, esi
pop esi
jbe 0x40604c
xor eax, eax
test eax, eax
je 0x40605e
cmp byte [ebp + eax - 0x121], 0x5c
je 0x40605e
xor ecx, ecx
jmp 0x406061
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx + 0x409014]
lea eax, [ebp + eax - 0x120]
push ecx
push str._s_s.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
leave
ret 4

Function at 0x406107
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4222b4], 0
push esi
jne 0x40613e
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x406118
mov dword [ecx*4 + 0x4222b0], eax
inc ecx
cmp ecx, 0x100
jl 0x406113
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x40616f
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4222b0]
xor eax, esi
inc ecx
dec edx
jne 0x406151
pop edi
not eax
pop esi
ret 0xc
Function at 0x40126e
Capabilities:
Terminate process

Disassembly:
push 0x14
push 0x410f00
call fcn.00401990
push 1
call fcn.0040142c
pop ecx
test al, al
je 0x401258
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.004013fa
mov byte [ebp - 0x24], al
mov eax, dword [0x412a9c]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x401258
test eax, eax
jne 0x40117c
mov dword [0x412a9c], ecx
push 0x40c12c
push 0x40c114
call fcn.0040394a
pop ecx
pop ecx
test eax, eax
je 0x40115f
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x401248
push 0x40c110
push 0x40c108
call fcn.004038ee
pop ecx
pop ecx
mov dword [0x412a9c], 2
jmp 0x401181
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.0040159e
pop ecx
call fcn.0040173e
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x4011b2
push esi
call fcn.0040150a
pop ecx
test al, al
je 0x4011b2
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x40c104]
call esi
call fcn.00401744
mov esi, eax
cmp dword [esi], edi
je 0x4011d0
push esi
call fcn.0040150a
pop ecx
test al, al
je 0x4011d0
push dword [esi]
call fcn.00403bed
pop ecx
call fcn.00401864
movzx eax, ax
push eax
call fcn.0040389b
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.0040189a
test al, al
je 0x40125f
test bl, bl
jne 0x4011fe
call fcn.00403bc8
push edi
push 1
call fcn.004015bb
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x401248
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.0040174a
push esi
call fcn.00403c25
push dword [ebp - 0x20]
call fcn.00403bd7
int3
call fcn.00401680
jmp 0x4010f2
Function at 0x968370
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 0x96838e
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 0x991074
push ecx
mov edi, eax
call fcn.0097c198
mov esi, eax
add esp, 8
test esi, esi
jne 0x9683cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0097c02e
push esi
call fcn.0097bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x96b850
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 0x96b8ae
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 0x996720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x96b8ba
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.0097c1e1
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 0x96b8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x996720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x96b92a
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.0097d082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x96b957
mov word [eax], si
add eax, 2
push eax
call fcn.0097d030
add esp, 4
jmp 0x96b959
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 0x96b8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x96b8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x96c0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x991458
push ecx
call fcn.0097c1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0097c1e1
add esp, 0x10
jmp 0x96c0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0097c20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0097bdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0096c050
mov eax, dword [0x996728]
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 0x96c13b
push esi
call fcn.0096bfb0
add esp, 4
mov dword [0x996728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x96c14c
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.0096bff0
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 0x96f440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x96f4b7
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 0x96f48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x96f471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x96f47e
add edx, ecx
cmp ebx, edx
jb 0x96f48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x96f467
xor ecx, ecx
jmp 0x96f4a2
test eax, eax
jne 0x96f492
xor ecx, ecx
jmp 0x96f4a2
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.0096f3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x96f8f0
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 0x96f921
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 0x96f946
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 0x96f96e
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 0x96f993
push ecx
push esi
call fcn.0096f4c0
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 0x970c00
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 0x970c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x970c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x970c38
add edx, eax
cmp ebx, edx
jb 0x970c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x970c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x970c50
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 0x970c70
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 0x970cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x970c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x970ca8
add edx, ecx
cmp ebx, edx
jb 0x970cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x970c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x970f60
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.0097d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x970ffb
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 0x970fdd
lea eax, [esp + 0x18]
push eax
jmp 0x970fe2
push 0x996720
call fcn.0097cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x970fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x970f40
push 4
push ecx
push eax
call fcn.0097d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x971310
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.0097d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9713ab
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 0x97138d
lea eax, [esp + 0x18]
push eax
jmp 0x971392
push 0x996720
call fcn.0097cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x971360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x970f40
push 4
push ecx
push eax
call fcn.0097d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x972f20
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 0x972fd7
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 0x972fcf
push ebx
push edi
push 0x996770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x972fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x996770
push esi
call ebx
test eax, eax
je 0x972fae
mov ebp, 3
cmp dword [0x996774], ebp
jne 0x972faa
push 0x3e8
call edi
push 0x996770
push esi
call ebx
test eax, eax
jne 0x972f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x972fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x972fbb
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