joyce8/EMBER2024-capa huggingface dataset:
Function at 0x429a70
Capabilities:
Get common file path

Disassembly:
sub esp, 0x18c
lea eax, [esp]
push ebx
push esi
push edi
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
lea edi, [esp + 0xc]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [esp + ecx + 0xb], 0x5c
je 0x429acc
mov edi, 0x467088
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, str.pdf2word.DAT
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x4000
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
lea eax, [esp + 0x114]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_OpenFile]
cmp eax, 0xffffffff
jne 0x429b23
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x18c
ret
lea edx, [esp + 0xc]
push 0
push edx
call dword [sym.imp.KERNEL32.dll__lopen]
mov esi, eax
mov eax, dword [esp + 0x19c]
push 0x400
push eax
push esi
call dword [sym.imp.KERNEL32.dll__lread]
push esi
call dword [sym.imp.KERNEL32.dll__lclose]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x18c
ret

Function at 0x429c00
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
jne 0x429c0b
xor eax, eax
ret
push edi
mov ecx, pe_nt_image_headers32
mov eax, 0x58585858
mov edi, edx
rep stosd dword es:[edi], eax
xor eax, eax
pop edi
mov cl, al
xor cl, 0x48
mov byte [eax + edx], cl
inc eax
cmp eax, 0x200
jl 0x429c1d
mov ecx, dword [esp + 8]
push esi
lea eax, [edx + 0x104]
push edx
mov esi, dword [ecx]
mov dword [eax], esi
mov esi, dword [ecx + 4]
mov dword [eax + 4], esi
mov esi, dword [ecx + 8]
mov dword [eax + 8], esi
mov ecx, dword [ecx + 0xc]
mov dword [eax + 0xc], ecx
call fcn.00429c60
add esp, 4
mov eax, 1
pop esi
ret

Function at 0x429c60
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
lea edi, [ebp + 0x200]
xor eax, eax
sub ebp, edi
lea esi, [edi + eax]
mov cl, al
not cl
mov dl, byte [esi + ebp]
xor dl, cl
inc eax
cmp eax, 0x200
mov byte [esi], dl
jl 0x429c71
pop edi
pop esi
pop ebp
ret
Function at 0x429cd0
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x44c
xor eax, eax
push ebx
mov dword [esp + 4], eax
xor ecx, ecx
mov dword [esp + 8], eax
push ebp
push esi
mov word [esp + 0x14], ax
mov dword [esp + 0x18], ecx
lea edx, [esp + 0x18]
push edi
lea eax, [esp + 0x10]
mov dword [esp + 0x20], ecx
push edx
push eax
mov dword [esp + 0x2c], ecx
call fcn.00429c90
mov edx, eax
mov ecx, pe_nt_image_headers32
mov eax, 0x58585858
lea edi, [esp + 0x64]
add esp, 8
rep stosd dword es:[edi], eax
xor eax, eax
mov cl, al
xor cl, 0x55
mov byte [esp + eax + 0x5c], cl
inc eax
cmp eax, 0x100
jl 0x429d1d
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0x14]
mov dword [esp + 0x15c], eax
mov ax, word [esp + 0x18]
mov dword [esp + 0x160], ecx
mov ecx, dword [esp + 0x1c]
mov word [esp + 0x164], ax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x166], ecx
mov ecx, dword [esp + 0x24]
mov dword [esp + 0x16a], eax
mov eax, edx
mov dword [esp + 0x16e], ecx
xor ecx, ecx
shr eax, 0x10
mov cl, ah
mov esi, str.0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZ
mov byte [esp + 0x172], cl
mov ecx, 9
lea edi, [esp + 0x34]
mov byte [esp + 0x173], al
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x460]
xor eax, eax
mov al, dh
mov byte [esp + 0x175], dl
mov byte [esp + 0x174], al
lea eax, [ecx - 0x11a]
lea edx, [esp + 0x5c]
mov ebx, 0x11a
movsb byte es:[edi], byte [esi]
sub edx, eax
lea edi, [esp + 0x5c]
lea esi, [eax + 0x11a]
sub edi, eax
lea ebp, [edx - 0x10]
mov al, byte [esi + ebp]
mov cl, bl
not cl
xor al, cl
mov ecx, 0x24
mov byte [edi + esi], al
and eax, 0xff
cdq
idiv ecx
xor eax, eax
lea ecx, [esp + 0x28]
mov al, byte [esp + edx + 0x34]
push eax
push 0x467e28
push ecx
call dword [sym.imp.USER32.dll_wsprintfA]
mov al, byte [esp + 0x34]
add esp, 0xc
mov byte [edi + esi], al
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 0x12a
jl 0x429dd3
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44c
ret
Function at 0x42c570
Capabilities:
Terminate process

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44734b
push eax
mov dword fs:[0], esp
push ebx
push esi
push edi
mov edi, dword [esp + 0x1c]
push edi
call fcn.00444f00
mov esi, eax
add esp, 4
test esi, esi
jne 0x42c5bb
mov eax, dword [sym.imp.MSVCRT.dll__iob]
push edi
add eax, 0x40
push str.Couldnt_open_display__s_n
push eax
call dword [sym.imp.MSVCRT.dll_fprintf]
add esp, 0xc
push 1
call dword [sym.imp.MSVCRT.dll_exit]
push 0
push 1
push 0
push 1
push 1
push 0
push 0
push 0
push esi
call fcn.0042a9c0
push 1
mov edi, eax
push 1
push 1
push edi
push esi
call fcn.0042a9c0
push 0x11d8
mov ebx, eax
call sub.MFC42.DLL_operatornew
add esp, 0x3c
mov dword [esp + 0x1c], eax
test eax, eax
mov dword [esp + 0x14], 0
je 0x42c624
mov ecx, dword [esp + 0x20]
push ecx
push 0
push edi
push ebx
push 0
push esi
mov ecx, eax
call fcn.0042c680
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0xc
ret
mov ecx, dword [esp + 0xc]
pop edi
pop esi
xor eax, eax
mov dword fs:[0], ecx
pop ebx
add esp, 0xc
ret
Function at 0x42f200
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x24]
xor ebx, ebx
cmp edi, ebx
je 0x42f237
mov ebp, dword [esp + 0x28]
cmp ebp, ebx
je 0x42f237
cmp byte [ebp], bl
je 0x42f237
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
cmp esi, ebx
je 0x42f237
cmp dword [esi], 0xc
jne 0x42f243
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 8
push esi
mov word [esp + 0x14], 0x4d42
call fcn.0042f1d0
mov edx, dword [esi]
mov di, ax
mov eax, dword [esi + 0x10]
and edi, 0xffff
add esp, 4
add edi, edx
cmp eax, 1
je 0x42f28b
cmp eax, 2
je 0x42f28b
xor eax, eax
mov ax, word [esi + 0xe]
imul eax, dword [esi + 4]
add eax, 0x1f
shr eax, 5
imul eax, dword [esi + 8]
shl eax, 2
add edi, eax
mov dword [esi + 0x14], eax
jmp 0x42f28e
add edi, dword [esi + 0x14]
lea eax, [edi + 0xe]
push esi
mov dword [esp + 0x16], eax
mov word [esp + 0x1a], bx
mov word [esp + 0x1c], bx
call fcn.0042f1d0
mov ecx, dword [esi]
and eax, 0xffff
push 0x467a38
push ebp
lea edx, [eax + ecx + 0xe]
mov dword [esp + 0x26], edx
call dword [sym.imp.MSVCRT.dll_fopen]
mov ebp, eax
add esp, 0xc
cmp ebp, ebx
je 0x42f2ec
mov ebx, dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
push 0xe
lea eax, [esp + 0x18]
push 1
push eax
call ebx
push ebp
push edi
push 1
push esi
call ebx
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
add esp, 0x24
mov ecx, dword [esp + 0x24]
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10
ret 8
Function at 0x432730
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x130]
mov ecx, dword [esi + 0x134]
sub eax, esi
lea edi, [esi + 0x2c]
sub eax, 0x2c
mov dword [esi + 0x130], edi
add ecx, eax
mov dword [esi + 0x12c], edi
mov dword [esi + 0x134], ecx
mov ecx, dword [esi + 0x28]
test ecx, ecx
jl 0x43279b
mov edx, dword [esi + 0x24]
mov eax, dword [esi + 0x134]
add edx, ecx
cmp eax, edx
jl 0x432777
pop edi
xor eax, eax
pop esi
ret
test ecx, ecx
jl 0x43279b
mov eax, dword [esi + 0x24]
mov edx, dword [esi + 0x134]
push ebx
push ebp
lea ebx, [eax + ecx]
lea ebp, [edx + 0x100]
cmp ebp, ebx
pop ebp
pop ebx
jle 0x43279b
sub eax, edx
add eax, ecx
jmp 0x4327a0
mov eax, pe_nt_image_headers32
mov ecx, dword [esi + 0x20]
push ecx
push eax
push 1
push edi
call dword [sym.imp.MSVCRT.dll_fread]
mov ecx, dword [esi + 0x12c]
lea eax, [eax + esi + 0x2c]
add esp, 0x10
cmp ecx, eax
mov dword [esi + 0x130], eax
jb 0x4327ca
pop edi
xor eax, eax
pop esi
ret
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4327ed
cmp edi, eax
jae 0x4327ed
mov dl, byte [edi]
mov ecx, dword [esi + 8]
push edx
call fcn.00408820
mov byte [edi], al
mov eax, dword [esi + 0x130]
inc edi
cmp edi, eax
jb 0x4327d5
pop edi
mov eax, 1
pop esi
ret
Function at 0x4387d0
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x874
push ebx
push ebp
mov ebp, dword [esp + 0x880]
xor ebx, ebx
push esi
cmp ebp, ebx
push edi
jne 0x4387f5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x874
ret
lea eax, [esp + 0x40]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x84]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov dword [esp + 0x6c], 1
mov eax, ecx
mov esi, edi
mov edi, edx
mov word [esp + 0x70], bx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
xor edx, edx
rep movsb byte es:[edi], byte [esi]
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x26
sete dl
mov esi, edx
cmp esi, ebx
je 0x438862
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x83], bl
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp byte [ecx + ebp - 1], 0x7c
jne 0x43888a
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x83], bl
jmp 0x43888f
mov word [esp + 0x70], bx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x40]
push eax
push ecx
push ebx
push str.CopyrightPDF2Word__Copyright__C__2005_VeryPDF.com_Inc_nwww.verypdf.com
push 0x20
push ebx
push ebx
lea edx, [esp + 0xa0]
push ebx
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
cmp eax, ebx
jne 0x4388c5
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x874
ret
cmp esi, ebx
je 0x4388d6
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x874
ret
mov esi, dword [sym.imp.USER32.dll_PeekMessageA]
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebp, dword [sym.imp.USER32.dll_DispatchMessageA]
mov eax, dword [esp + 0x14]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x10]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x4388b7
cmp dword [esp + 0x10], 0x103
jne 0x438942
push 1
push ebx
push ebx
lea eax, [esp + 0x30]
push ebx
push eax
call esi
test eax, eax
je 0x4388e8
lea ecx, [esp + 0x24]
push ecx
call edi
lea edx, [esp + 0x24]
push edx
call ebp
push 1
push ebx
push ebx
lea eax, [esp + 0x30]
push ebx
push eax
call esi
test eax, eax
jne 0x438922
jmp 0x4388e8
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0x18]
push edx
call esi
mov eax, dword [esp + 0x10]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x874
ret
Function at 0x438970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
push esi
call edi
cmp eax, 0xffffffff
jne 0x4389c8
mov ebx, dword [esp + 0x10]
push 0x24
push str.RTF_Writer_Library
push 0x46ac30
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
cmp eax, 7
jne 0x4389a7
pop edi
pop esi
xor eax, eax
pop ebx
ret
push esi
push str.http:__www.verypdf.com_pdf2word_rtflib.exe
push ebx
call fcn.004011f0
add esp, 0xc
test eax, eax
je 0x4389c2
push esi
call edi
cmp eax, 0xffffffff
jne 0x4389c8
pop edi
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x43dc00
Capabilities:
Terminate process

Disassembly:
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
test eax, eax
je 0x43dc24
mov ecx, dword [esp + 4]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
ret
Function at 0xf52370
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 0xf5238e
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 0xf7b074
push ecx
mov edi, eax
call fcn.00f66198
mov esi, eax
add esp, 8
test esi, esi
jne 0xf523cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00f6602e
push esi
call fcn.00f65fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xf55850
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 0xf558ae
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 0xf80720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf558ba
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.00f661e1
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 0xf558ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xf80720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xf5592a
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.00f67082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xf55957
mov word [eax], si
add eax, 2
push eax
call fcn.00f67030
add esp, 4
jmp 0xf55959
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 0xf558ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xf558b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xf560c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xf7b458
push ecx
call fcn.00f661e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00f661e1
add esp, 0x10
jmp 0xf560d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00f6620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00f65dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00f56050
mov eax, dword [0xf80728]
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 0xf5613b
push esi
call fcn.00f55fb0
add esp, 4
mov dword [0xf80728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xf5614c
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.00f55ff0
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 0xf59440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xf594b7
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 0xf5948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf59471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf5947e
add edx, ecx
cmp ebx, edx
jb 0xf5948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf59467
xor ecx, ecx
jmp 0xf594a2
test eax, eax
jne 0xf59492
xor ecx, ecx
jmp 0xf594a2
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.00f593c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xf598f0
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 0xf59921
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 0xf59946
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 0xf5996e
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 0xf59993
push ecx
push esi
call fcn.00f594c0
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 0xf5ac00
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 0xf5ac4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xf5ac2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xf5ac38
add edx, eax
cmp ebx, edx
jb 0xf5ac46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xf5ac21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xf5ac50
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 0xf5ac70
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 0xf5acb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xf5ac9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xf5aca8
add edx, ecx
cmp ebx, edx
jb 0xf5acb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xf5ac91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xf5af60
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.00f67145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xf5affb
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 0xf5afdd
lea eax, [esp + 0x18]
push eax
jmp 0xf5afe2
push 0xf80720
call fcn.00f66fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xf5afb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xf5af40
push 4
push ecx
push eax
call fcn.00f6743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xf5b310
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.00f67145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xf5b3ab
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 0xf5b38d
lea eax, [esp + 0x18]
push eax
jmp 0xf5b392
push 0xf80720
call fcn.00f66fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xf5b360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xf5af40
push 4
push ecx
push eax
call fcn.00f6743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xf5cf20
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 0xf5cfd7
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 0xf5cfcf
push ebx
push edi
push 0xf80770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xf5cfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xf80770
push esi
call ebx
test eax, eax
je 0xf5cfae
mov ebp, 3
cmp dword [0xf80774], ebp
jne 0xf5cfaa
push 0x3e8
call edi
push 0xf80770
push esi
call ebx
test eax, eax
jne 0xf5cf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xf5cfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xf5cfbb
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