joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e191
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
test byte [esi + 4], 1
push edi
mov ebx, ecx
je 0x45e1a9
mov edi, dword [esi + 0xc]
jmp 0x45e1e9
push 5
push dword [esi + 0xc]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x45e1c2
call fcn.00460128
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x45e1d7
call fcn.00460128
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x45e1e9
call fcn.00460128
call fcn.0045b40e
cmp dword [eax + 0x3c], 0
je 0x45e1fe
push edi
mov ecx, ebx
call fcn.0045d094
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.0045e0b7
mov dword [ebp + 8], eax
mov eax, dword [ebx + 0x5c]
test eax, eax
je 0x45e21c
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
and dword [ebx + 0x5c], 0
mov eax, dword [ebp + 8]
test eax, eax
je 0x45e228
mov edi, eax
mov dword [ebx + 0x5c], eax
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x464924
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0045b40e
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
jne 0x464951
xor eax, eax
jmp 0x4649f7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 8], eax
test eax, eax
je 0x46494a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x46494a
movzx eax, word [esi + 6]
push ebx
push edi
xor ecx, ecx
push 4
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00451dd0
pop ecx
mov edi, eax
xor ecx, ecx
xor eax, eax
cmp cx, word [esi + 6]
jae 0x4649a8
lea ecx, [esi + 8]
movzx edx, word [ecx]
mov dword [edi + eax*4], edx
movzx edx, word [esi + 6]
inc eax
inc ecx
inc ecx
cmp eax, edx
jl 0x464997
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 4]
push eax
push edi
call fcn.004635e4
push edi
mov ebx, eax
call fcn.00451dff
pop ecx
test ebx, ebx
je 0x4649ea
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
push ecx
lea esi, [ecx + 7]
mov ecx, dword [ebp - 4]
push eax
lea edx, [eax + 7]
push esi
push edx
call fcn.00463cac
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
call fcn.00463d60
mov ebx, eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, ebx
pop ebx
pop esi
leave
ret 4
Function at 0x469fcc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
cmp dword [ebp + 0xc], ebx
je 0x46a014
call fcn.0045b40e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x46a014
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
test eax, eax
je 0x46a057
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
test ebx, ebx
je 0x46a040
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x46a040
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x46a054
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x46ab90
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push esi
mov esi, ecx
push dword [esi + 0x24]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 1
mov ecx, esi
test al, 1
je 0x46abb4
mov eax, dword [esi]
push 0
call dword [eax + 0x98]
test eax, eax
jne 0x46abc2
pop esi
ret
mov eax, dword [esi + 0x24]
mov edx, dword [esi]
push eax
call dword [edx + 0x98]
jmp 0x46abae
xor eax, eax
inc eax
pop esi
ret

Function at 0x470075
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
mov dword [ebp - 4], ecx
call fcn.0045b40e
mov esi, dword [eax + 0xc]
test esi, esi
jne 0x47008f
xor eax, eax
jmp 0x4700d8
push ebx
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x4700d7
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
push ebx
push esi
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.00470013
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop ebx
pop esi
leave
ret 4

Function at 0x471439
Capabilities:
Query or enumerate registry value

Disassembly:
push 0
mov eax, 0x4a5422
call fcn.00485c6b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402530
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x47149b
call fcn.0045acbf
cmp eax, 1
jne 0x47149b
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x4d5728
push eax
call fcn.00468e7d
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401c20
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401220
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401220
mov eax, esi
call fcn.00485d43
ret 0x10
Function at 0x4714c4
Capabilities:
Set registry value

Disassembly:
push 0
mov eax, 0x4a5422
call fcn.00485c6b
push dword [ebp + 0xc]
lea ecx, [ebp + 0xc]
call fcn.00402530
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0x80000000
jne 0x471526
call fcn.0045acbf
cmp eax, 1
jne 0x471526
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp + 8]
push 0x4d5728
push eax
call fcn.00468e7d
add esp, 0xc
push eax
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.00401c20
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401220
mov dword [ebp + 8], VariantInit
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401220
mov eax, esi
call fcn.00485d43
ret 0x14

Function at 0x4820da
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4eed38]
jne 0x4820e4
repz ret
jmp fcn.0048c1ac

Function at 0x497a73
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004893d4
and dword [ebp - 4], 0
cmp dword [0x4f3888], 0
mov ebx, eax
jne 0x497b24
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x497bd5
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x497bd5
push eax
call fcn.00489362
mov dword [esp], 0x4d8ab0
push edi
mov dword [0x4f3888], eax
call esi
push eax
call fcn.00489362
mov dword [esp], 0x4d8a9c
push edi
mov dword [0x4f388c], eax
call esi
push eax
call fcn.00489362
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4f3890], eax
call esi
push eax
call fcn.00489362
pop ecx
mov dword [0x4f3898], eax
test eax, eax
je 0x497b24
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00489362
pop ecx
mov dword [0x4f3894], eax
mov eax, dword [0x4f3894]
cmp eax, ebx
je 0x497b7c
cmp dword [0x4f3898], ebx
je 0x497b7c
push eax
call fcn.004893dd
push dword [0x4f3898]
mov esi, eax
call fcn.004893dd
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x497b7c
test edi, edi
je 0x497b7c
call esi
test eax, eax
je 0x497b73
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x497b73
test byte [ebp - 0xc], 1
jne 0x497b7c
or dword [ebp + 0x10], 0x200000
jmp 0x497bb5
mov eax, dword [0x4f388c]
cmp eax, ebx
je 0x497bb5
push eax
call fcn.004893dd
pop ecx
test eax, eax
je 0x497bb5
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x497bb5
mov eax, dword [0x4f3890]
cmp eax, ebx
je 0x497bb5
push eax
call fcn.004893dd
pop ecx
test eax, eax
je 0x497bb5
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4f3888]
call fcn.004893dd
pop ecx
test eax, eax
je 0x497bd5
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x497bd7
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x9eb130
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x4a9000]
push edi
or ebp, 0xffffffff
jmp 0x9eb152
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x9eb159
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9eb148
mov eax, 1
add ebx, ebx
jne 0x9eb16b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x9eb17c
jne 0x9eb19b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9eb19b
dec eax
add ebx, ebx
jne 0x9eb188
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x9eb160
add ebx, ebx
jne 0x9eb197
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x9eb1ed
xor ecx, ecx
sub eax, 3
jb 0x9eb1b3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x9eb222
sar eax, 1
mov ebp, eax
jmp 0x9eb1be
add ebx, ebx
jne 0x9eb1be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9eb18c
inc ecx
add ebx, ebx
jne 0x9eb1cc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x9eb18c
add ebx, ebx
jne 0x9eb1d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x9eb1ce
jne 0x9eb1ea
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x9eb1ce
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x9eb20c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x9eb1fe
jmp 0x9eb14e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x9eb20c
add edi, ecx
jmp 0x9eb14e
pop esi
mov edi, esi
mov ecx, 0x13556
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x9eb22a
cmp byte [edi], 0xa7
jne 0x9eb22a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x9eb22f
lea edi, [esi + 0x5e7000]
mov eax, dword [edi]
or eax, eax
je 0x9eb29e
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x5f3080]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x5f31e0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x9eb25c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x5f31e8]
or eax, eax
je 0x9eb298
mov dword [ebx], eax
add ebx, 4
jmp 0x9eb279
call dword [esi + 0x5f31e4]
mov ebp, dword [esi + 0x5f31ec]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x21f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x9eb2d2
sub esp, 0xffffff80
jmp 0x79a7d4
Function at 0x98e370
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 0x98e38e
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 0x9b7074
push ecx
mov edi, eax
call fcn.009a2198
mov esi, eax
add esp, 8
test esi, esi
jne 0x98e3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.009a202e
push esi
call fcn.009a1fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x991850
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 0x9918ae
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 0x9bc720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x9918ba
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.009a21e1
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 0x9918ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x9bc720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x99192a
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.009a3082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x991957
mov word [eax], si
add eax, 2
push eax
call fcn.009a3030
add esp, 4
jmp 0x991959
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 0x9918ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x9918b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9920c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x9b7458
push ecx
call fcn.009a21e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009a21e1
add esp, 0x10
jmp 0x9920d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.009a220b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.009a1dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00992050
mov eax, dword [0x9bc728]
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 0x99213b
push esi
call fcn.00991fb0
add esp, 4
mov dword [0x9bc728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x99214c
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.00991ff0
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 0x995440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9954b7
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 0x99548e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x995471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x99547e
add edx, ecx
cmp ebx, edx
jb 0x99548a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x995467
xor ecx, ecx
jmp 0x9954a2
test eax, eax
jne 0x995492
xor ecx, ecx
jmp 0x9954a2
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.009953c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9958f0
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 0x995921
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 0x995946
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 0x99596e
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 0x995993
push ecx
push esi
call fcn.009954c0
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 0x996c00
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 0x996c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x996c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x996c38
add edx, eax
cmp ebx, edx
jb 0x996c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x996c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x996c50
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 0x996c70
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 0x996cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x996c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x996ca8
add edx, ecx
cmp ebx, edx
jb 0x996cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x996c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x996f60
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.009a3145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x996ffb
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 0x996fdd
lea eax, [esp + 0x18]
push eax
jmp 0x996fe2
push 0x9bc720
call fcn.009a2fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x996fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x996f40
push 4
push ecx
push eax
call fcn.009a343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x997310
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.009a3145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9973ab
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 0x99738d
lea eax, [esp + 0x18]
push eax
jmp 0x997392
push 0x9bc720
call fcn.009a2fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x997360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x996f40
push 4
push ecx
push eax
call fcn.009a343f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x998f20
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 0x998fd7
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 0x998fcf
push ebx
push edi
push 0x9bc770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x998fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x9bc770
push esi
call ebx
test eax, eax
je 0x998fae
mov ebp, 3
cmp dword [0x9bc774], ebp
jne 0x998faa
push 0x3e8
call edi
push 0x9bc770
push esi
call ebx
test eax, eax
jne 0x998f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x998fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x998fbb
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