joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401570
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push edi
push 0x4121fc
push dword [ebp + 8]
mov esi, ecx
call fcn.00402a69
mov edi, eax
add esp, 8
test edi, edi
je 0x4016e2
push edi
push 2
lea eax, [ebp + 8]
mov dword [ebp + 8], 0xb
push 1
push eax
call fcn.00402e48
mov esi, dword [esi]
add esp, 0x10
test esi, esi
je 0x4016c4
push ebx
jmp 0x4015c0
cmp dword [esi + 0x6c], 0x80000000
je 0x4016b8
push edi
push 2
lea ebx, [esi + 0x68]
push 1
push ebx
call fcn.00402e48
movsx eax, word [ebx]
push edi
push 1
push eax
push dword [esi + 0x64]
call fcn.00402e48
push edi
push 2
lea ebx, [esi + 0x60]
push 1
push ebx
call fcn.00402e48
movsx eax, word [ebx]
push edi
push 1
push eax
push dword [esi + 0x5c]
call fcn.00402e48
add esp, 0x40
lea eax, [esi + 0x10]
push edi
push 4
push 1
push eax
call fcn.00402e48
push edi
push 4
lea eax, [esi + 8]
push 1
push eax
call fcn.00402e48
push edi
push 4
lea eax, [esi + 0x18]
push 1
push eax
call fcn.00402e48
push edi
push 4
lea eax, [esi + 0x14]
push 1
push eax
call fcn.00402e48
add esp, 0x40
lea eax, [esi + 4]
push edi
push 4
push 1
push eax
call fcn.00402e48
push edi
push 4
push 1
push esi
call fcn.00402e48
push edi
push 4
lea eax, [esi + 0xc]
push 1
push eax
call fcn.00402e48
push edi
push 4
lea eax, [esi + 0x48]
push 1
push eax
call fcn.00402e48
add esp, 0x40
lea eax, [esi + 0x4c]
push edi
push 4
push 1
push eax
call fcn.00402e48
push edi
push 4
lea eax, [esi + 0x40]
push 1
push eax
call fcn.00402e48
push edi
push 4
lea eax, [esi + 0x44]
push 1
push eax
call fcn.00402e48
push edi
push 0x24
lea eax, [esi + 0x1c]
push 1
push eax
call fcn.00402e48
add esp, 0x40
mov esi, dword [esi + 0x58]
test esi, esi
jne 0x4015c0
pop ebx
push edi
push 2
lea eax, [ebp + 8]
mov dword [ebp + 8], 0
push 1
push eax
call fcn.00402e48
push edi
call fcn.0040292e
add esp, 0x14
pop edi
pop esi
pop ebp
ret 4
Function at 0x4016f0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd8
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push 0x4121f8
push eax
mov edi, ecx
call fcn.00402a69
mov esi, eax
add esp, 8
test esi, esi
jne 0x401732
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402eca
mov esp, ebp
pop ebp
ret 4
push esi
push 2
lea eax, [ebp - 0xd8]
mov dword [ebp - 0xd8], 0
push 1
push eax
call fcn.00402c43
add esp, 0x10
cmp word [ebp - 0xd8], 0xb
jne 0x4018e4
lea ecx, [ebp - 0xd4]
call fcn.00401020
push esi
push 2
lea eax, [ebp - 0xd8]
push 1
push eax
call fcn.00402c43
mov eax, dword [ebp - 0xd8]
add esp, 0x10
test ax, ax
je 0x4018e4
lea esp, [esp]
push esi
cwde
push 1
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.00402c43
push esi
push 2
lea eax, [ebp - 0xd8]
push 1
push eax
call fcn.00402c43
movsx eax, word [ebp - 0xd8]
push esi
push 1
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00402c43
push esi
push 4
lea eax, [ebp - 0xc4]
push 1
push eax
call fcn.00402c43
add esp, 0x40
lea eax, [ebp - 0xcc]
push esi
push 4
push 1
push eax
call fcn.00402c43
push esi
push 4
lea eax, [ebp - 0xbc]
push 1
push eax
call fcn.00402c43
push esi
push 4
lea eax, [ebp - 0xc0]
push 1
push eax
call fcn.00402c43
push esi
push 4
lea eax, [ebp - 0xd0]
push 1
push eax
call fcn.00402c43
add esp, 0x40
lea eax, [ebp - 0xd4]
push esi
push 4
push 1
push eax
call fcn.00402c43
push esi
push 4
lea eax, [ebp - 0xc8]
push 1
push eax
call fcn.00402c43
push esi
push 4
lea eax, [ebp - 0x8c]
push 1
push eax
call fcn.00402c43
push esi
push 4
lea eax, [ebp - 0x88]
push 1
push eax
call fcn.00402c43
add esp, 0x40
lea eax, [ebp - 0x94]
push esi
push 4
push 1
push eax
call fcn.00402c43
push esi
push 4
lea eax, [ebp - 0x90]
push 1
push eax
call fcn.00402c43
push esi
push 0x24
lea eax, [ebp - 0xb8]
push 1
push eax
call fcn.00402c43
push esi
push 2
lea eax, [ebp - 0xd8]
push 1
push eax
call fcn.00402c43
add esp, 0x40
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.00401910
test eax, eax
je 0x4018d5
lea ecx, [ebp - 0xd4]
push ecx
mov ecx, dword [eax + 0x50]
push eax
call fcn.00401330
mov eax, dword [ebp - 0xd8]
test ax, ax
jne 0x401790
push esi
call fcn.0040292e
mov ecx, dword [ebp - 4]
add esp, 4
xor ecx, ebp
mov al, 1
pop edi
pop esi
call fcn.00402eca
mov esp, ebp
pop ebp
ret 4
Function at 0x40c5b4
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00409418
mov dword [ebp - 0x14], eax
cmp dword [0x41a130], esi
jne 0x40c6a7
push 0x800
push esi
push 0x41380c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x40c634
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x40c787
push esi
push esi
push 0x41380c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x40c787
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x40c787
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x41a130], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x41a134], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x41a138], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41a140], eax
test eax, eax
je 0x40c6a4
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x41a13c], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x40c6cc
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x40c6bf
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x40c6e1
push 4
pop eax
jmp 0x40c789
cmp dword [ebp - 0x14], esi
je 0x40c6e1
push dword [0x41a130]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x40c6c6
mov eax, dword [0x41a13c]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x40c73f
cmp dword [0x41a140], edi
je 0x40c73f
push eax
call ebx
push dword [0x41a140]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x40c73f
test eax, eax
je 0x40c73f
call ecx
test eax, eax
je 0x40c734
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x40c734
test byte [ebp - 8], 1
jne 0x40c73f
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x40c76f
mov eax, dword [0x41a134]
cmp eax, edi
je 0x40c76c
push eax
call ebx
test eax, eax
je 0x40c76c
call eax
mov esi, eax
test esi, esi
je 0x40c76c
mov eax, dword [0x41a138]
cmp eax, edi
je 0x40c76c
push eax
call ebx
test eax, eax
je 0x40c76c
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x41a130]
call ebx
test eax, eax
je 0x40c787
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x40c789
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402eca
mov esp, ebp
pop ebp
ret
Function at 0x419d30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x410015
lea edi, [esi - 0xf015]
push edi
or ebp, 0xffffffff
jmp 0x419d52
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x419d59
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x419d48
mov eax, 1
add ebx, ebx
jne 0x419d6b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x419d60
jne 0x419d7c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419d60
xor ecx, ecx
sub eax, 3
jb 0x419d90
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x419e02
mov ebp, eax
add ebx, ebx
jne 0x419d9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x419da8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x419dcc
inc ecx
add ebx, ebx
jne 0x419db8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x419dad
jne 0x419dc9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x419dad
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x419dec
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x419ddd
jmp 0x419d4e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x419dec
add edi, ecx
jmp 0x419d4e
pop esi
mov edi, esi
mov ecx, 0x2b3
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x419e0a
cmp byte [edi], 5
jne 0x419e0a
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 0x419e0f
lea edi, [esi + 0x17000]
mov eax, dword [edi]
or eax, eax
je 0x419e87
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x19000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x1908c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x419e3c
mov ecx, edi
jns 0x419e6b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x19090]
or eax, eax
je 0x419e81
mov dword [ebx], eax
add ebx, 4
jmp 0x419e59
call dword [esi + 0x190a0]
mov ebp, dword [esi + 0x19094]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x419ebb
sub esp, 0xffffff80
jmp 0x404c20

Function at 0x401000
Capabilities:
Allocate or change rwx memory

Disassembly:
push 0x40
push 0x1000
push 0x49800
push 0
call sub.kernel32.dll_GetCurrentProcessId
call sub.kernel32.dll_VirtualAlloc
call fcn.004bf1ae
ret
Function at 0x199f390
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1404000]
push edi
or ebp, 0xffffffff
jmp 0x199f3b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x199f3b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x199f3a8
mov eax, 1
add ebx, ebx
jne 0x199f3cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x199f3dc
jne 0x199f3fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x199f3fb
dec eax
add ebx, ebx
jne 0x199f3e8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x199f3c0
add ebx, ebx
jne 0x199f3f7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x199f44d
xor ecx, ecx
sub eax, 3
jb 0x199f413
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x199f482
sar eax, 1
mov ebp, eax
jmp 0x199f41e
add ebx, ebx
jne 0x199f41e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x199f3ec
inc ecx
add ebx, ebx
jne 0x199f42c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x199f3ec
add ebx, ebx
jne 0x199f439
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x199f42e
jne 0x199f44a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x199f42e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x199f46c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x199f45e
jmp 0x199f3ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x199f46c
add edi, ecx
jmp 0x199f3ae
pop esi
mov edi, esi
mov ecx, 0x1d1d5
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x199f48a
mov eax, dword [edi]
mov bl, byte [edi + 4]
xchg ah, al
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 0x199f48f
lea edi, [esi + 0x159b000]
mov eax, dword [edi]
or eax, eax
je 0x199f4f7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x24ee5e8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x24ee72c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x199f4b5
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x24ee734]
or eax, eax
je 0x199f4f1
mov dword [ebx], eax
add ebx, 4
jmp 0x199f4d2
call dword [esi + 0x24ee730]
mov ebp, dword [esi + 0x24ee738]
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 0x199f52b
sub esp, 0xffffff80
jmp 0x907be0
Function at 0x782370
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 0x78238e
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 0x7ab074
push ecx
mov edi, eax
call fcn.00796198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7823cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0079602e
push esi
call fcn.00795fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x785850
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 0x7858ae
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 0x7b0720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7858ba
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.007961e1
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 0x7858ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x7b0720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x78592a
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.00797082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x785957
mov word [eax], si
add eax, 2
push eax
call fcn.00797030
add esp, 4
jmp 0x785959
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 0x7858ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7858b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7860c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x7ab458
push ecx
call fcn.007961e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007961e1
add esp, 0x10
jmp 0x7860d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0079620b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00795dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00786050
mov eax, dword [0x7b0728]
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 0x78613b
push esi
call fcn.00785fb0
add esp, 4
mov dword [0x7b0728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x78614c
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.00785ff0
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 0x789440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7894b7
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 0x78948e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x789471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x78947e
add edx, ecx
cmp ebx, edx
jb 0x78948a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x789467
xor ecx, ecx
jmp 0x7894a2
test eax, eax
jne 0x789492
xor ecx, ecx
jmp 0x7894a2
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.007893c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7898f0
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 0x789921
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 0x789946
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 0x78996e
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 0x789993
push ecx
push esi
call fcn.007894c0
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 0x78ac00
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 0x78ac4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x78ac2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x78ac38
add edx, eax
cmp ebx, edx
jb 0x78ac46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x78ac21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x78ac50
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 0x78ac70
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 0x78acb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x78ac9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x78aca8
add edx, ecx
cmp ebx, edx
jb 0x78acb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x78ac91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x78af60
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.00797145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x78affb
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 0x78afdd
lea eax, [esp + 0x18]
push eax
jmp 0x78afe2
push 0x7b0720
call fcn.00796fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x78afb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x78af40
push 4
push ecx
push eax
call fcn.0079743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x78b310
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.00797145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x78b3ab
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 0x78b38d
lea eax, [esp + 0x18]
push eax
jmp 0x78b392
push 0x7b0720
call fcn.00796fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x78b360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x78af40
push 4
push ecx
push eax
call fcn.0079743f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x78cf20
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 0x78cfd7
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 0x78cfcf
push ebx
push edi
push 0x7b0770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x78cfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x7b0770
push esi
call ebx
test eax, eax
je 0x78cfae
mov ebp, 3
cmp dword [0x7b0774], ebp
jne 0x78cfaa
push 0x3e8
call edi
push 0x7b0770
push esi
call ebx
test eax, eax
jne 0x78cf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x78cfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x78cfbb
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