joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66605c00
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [ebp + 0xc], ebx
jmp 0x66605c0b
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x66605c23
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x66605c41
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
add byte [ebx + 0x108c794], cl
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x66605c9f
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x66605c86
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x66605c8f
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x66605c99
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x66605c7b
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x66605c05
mov dword [ebp + 8], esi
xor edi, edi

Function at 0x66605c2f
Capabilities:
Inspect section memory permissions

Disassembly:
mov dword [ebp + 0xc], ebx
jmp 0x66605c0b
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x66605c23
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x66605c41
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
add byte [ebx + 0x108c794], cl
add byte [eax], al
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x66605c9f
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x66605c86
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x66605c8f
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x66605c99
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x66605c7b
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x66605c05
mov dword [ebp + 8], esi
xor edi, edi
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..idata
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x642c770f
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
mov ebx, 0x42e1d0
nop
mov ecx, 0x2db01827
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x402a30
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x403a31
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
push edi
mov dword [esp + 0x10], esi
mov dword [esi + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov ecx, dword [esp + 0x34]
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x38]
mov ebp, dword [esp + 0x3c]
mov dword [esi + 4], ecx
mov ecx, dword [esp + 0x44]
mov dword [esi], eax
mov eax, dword [esp + 0x40]
mov dword [esi + 0x14], ecx
mov cl, byte [esp + 0x50]
cmp cl, bl
mov dword [esi + 8], edx
mov edx, dword [esp + 0x48]
mov dword [esi + 0x10], eax
mov eax, dword [esp + 0x4c]
mov byte [esp + 0x28], 1
mov dword [esi + 0xc], ebp
mov dword [esi + 0x18], edx
mov dword [esi + 0x1c], eax
mov byte [esi + 0x20], cl
mov dword [esi + 0x30], ebx
jne 0x402b47
xor edi, edi
cmp eax, ebx
mov dword [esp + 0x50], edi
jbe 0x402adf
lea ecx, [edx + 0xc]
mov edx, eax
jmp 0x402ac0
mov eax, dword [ecx]
cmp eax, edi
jbe 0x402ac8
mov edi, eax
add ecx, 0x10
dec edx
jne 0x402ac0
cmp edi, 0x100000
mov dword [esp + 0x50], edi
mov eax, 0x4064b0
ja 0x402ae3
lea eax, [esp + 0x50]
mov eax, dword [eax]
mov dword [esi + 0x28], eax
add eax, 0xa
push eax
call fcn.004032de
mov edi, eax
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, edi
je 0x402b09
push eax
call fcn.00403394
add esp, 4
mov dword [esi + 0x24], edi
push ebx
call fcn.00403394
mov eax, dword [esi + 0x24]
add esp, 4
cmp eax, ebx
jne 0x402b47
lea edx, [esp + 0x50]
push edx
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0x406504
call dword [0x4040d8]
push 0x406c34
lea eax, [esp + 0x18]
push eax
mov dword [esp + 0x1c], 0x4064b4
call fcn.0040338e
mov ecx, ebp
imul ecx, ecx, 0x44
add ecx, 4
push ecx
call fcn.004032de
add esp, 4
mov dword [esp + 0x50], eax
cmp eax, ebx
mov byte [esp + 0x28], 2
je 0x402b7f
push 0x401dc0
push 0x401d80
push ebp
lea edi, [eax + 4]
push 0x44
push edi
mov dword [eax], ebp
call fcn.00403458
jmp 0x402b81
xor edi, edi
mov eax, dword [esi + 0x2c]
cmp eax, edi
mov byte [esp + 0x28], 1
je 0x402bb1
cmp eax, ebx
je 0x402bae
mov edx, dword [eax - 4]
lea ebp, [eax - 4]
push 0x401dc0
push edx
push 0x44
push eax
call fcn.004033f8
push ebp
call fcn.00403394
add esp, 4
mov dword [esi + 0x2c], edi
cmp dword [esi + 0x2c], ebx
jne 0x402be4
lea eax, [esp + 0x50]
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x54], 0x406504
call dword [0x4040d8]
push 0x406c34
lea ecx, [esp + 0x18]
push ecx
mov dword [esp + 0x1c], 0x4064b4
call fcn.0040338e
mov ecx, esi
call fcn.00402720
mov ecx, dword [esp + 0x20]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 0x24
Function at 0x4034c0
Capabilities:
Parse pe header

Disassembly:
push 0x74
push 0x4067c0
call fcn.00403734
xor ebx, ebx
mov dword [ebp - 0x20], ebx
push ebx
mov edi, dword [0x404084]
call edi
cmp word [eax], 0x5a4d
jne 0x403500
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x403500
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403518
cmp eax, 0x20b
je 0x403505
mov dword [ebp - 0x1c], ebx
jmp 0x40352c
cmp dword [ecx + 0x84], 0xe
jbe 0x403500
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x403526
cmp dword [ecx + 0x74], 0xe
jbe 0x403500
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [0x404150]
pop ecx
or dword [0x4083f4], 0xffffffff
or dword [0x4083f8], 0xffffffff
call dword [0x40414c]
mov ecx, dword [0x4083ec]
mov dword [eax], ecx
call dword [0x404148]
mov ecx, dword [0x4083e8]
mov dword [eax], ecx
mov eax, dword [0x404144]
mov eax, dword [eax]
mov dword [0x4083f0], eax
call fcn.004037d6
call fcn.00403876
cmp dword [0x4083d8], ebx
jne 0x40358c
push fcn.00403876
call dword [0x404140]
pop ecx
call fcn.00403864
push 0x408010
push 0x40800c
call fcn.0040385e
push 0x40381a
call fcn.004037c4
mov eax, dword [0x4083e4]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x28]
push eax
push dword [0x4083e0]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x38]
push eax
call dword [0x404138]
add esp, 0x20
mov dword [ebp - 0x3c], eax
cmp eax, ebx
jge 0x4035e0
push 8
call fcn.00403798
pop ecx
push 0x408008
push 0x408000
call fcn.0040385e
pop ecx
pop ecx
mov eax, dword [0x404130]
mov esi, dword [eax]
mov dword [ebp - 0x24], esi
mov al, byte [esi]
cmp al, 0x20
ja 0x40365e
cmp al, bl
je 0x40360a
cmp dword [ebp - 0x20], ebx
jne 0x40365e
mov al, byte [esi]
cmp al, bl
je 0x40361a
cmp al, 0x20
ja 0x40361a
inc esi
mov dword [ebp - 0x24], esi
jmp 0x40360a
mov dword [ebp - 0x58], ebx
lea eax, [ebp - 0x84]
push eax
call dword [0x404080]
test byte [ebp - 0x58], 1
je 0x403636
movzx eax, word [ebp - 0x54]
jmp 0x403639
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call fcn.00403230
mov esi, eax
mov dword [ebp - 0x40], esi
cmp dword [ebp - 0x1c], ebx
jne 0x403656
push esi
call dword [0x40412c]
call dword [0x404128]
jmp 0x4036b3
cmp al, 0x22
jne 0x40366d
xor ecx, ecx
cmp dword [ebp - 0x20], ebx
sete cl
mov dword [ebp - 0x20], ecx
movzx eax, al
push eax
call dword [0x404124]
pop ecx
test eax, eax
je 0x403680
inc esi
mov dword [ebp - 0x24], esi
inc esi
jmp 0x4035f8
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040376f
ret
Function at 0x4252d5
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.0041e31f
and dword [ebp - 4], 0
cmp dword [0x44f1f0], 0
mov ebx, eax
jne 0x425386
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x425437
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x425437
push eax
call fcn.0041e2ad
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44f1f0], eax
call esi
push eax
call fcn.0041e2ad
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44f1f4], eax
call esi
push eax
call fcn.0041e2ad
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44f1f8], eax
call esi
push eax
call fcn.0041e2ad
pop ecx
mov dword [0x44f200], eax
test eax, eax
je 0x425386
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0041e2ad
pop ecx
mov dword [0x44f1fc], eax
mov eax, dword [0x44f1fc]
cmp eax, ebx
je 0x4253de
cmp dword [0x44f200], ebx
je 0x4253de
push eax
call fcn.0041e328
push dword [0x44f200]
mov esi, eax
call fcn.0041e328
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4253de
test edi, edi
je 0x4253de
call esi
test eax, eax
je 0x4253d5
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4253d5
test byte [ebp - 0xc], 1
jne 0x4253de
or dword [ebp + 0x10], 0x200000
jmp 0x425417
mov eax, dword [0x44f1f4]
cmp eax, ebx
je 0x425417
push eax
call fcn.0041e328
pop ecx
test eax, eax
je 0x425417
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x425417
mov eax, dword [0x44f1f8]
cmp eax, ebx
je 0x425417
push eax
call fcn.0041e328
pop ecx
test eax, eax
je 0x425417
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44f1f0]
call fcn.0041e328
pop ecx
test eax, eax
je 0x425437
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x425439
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x432004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43200c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x40729f
sub eax, 0x407245
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
mov edx, dword [eax + 8]
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
nop
jl 0x432030
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43201e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219
Function at 0x7d6370
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 0x7d638e
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 0x7ff074
push ecx
mov edi, eax
call fcn.007ea198
mov esi, eax
add esp, 8
test esi, esi
jne 0x7d63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.007ea02e
push esi
call fcn.007e9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x7d9850
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 0x7d98ae
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 0x804720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7d98ba
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.007ea1e1
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 0x7d98ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x804720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x7d992a
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.007eb082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x7d9957
mov word [eax], si
add eax, 2
push eax
call fcn.007eb030
add esp, 4
jmp 0x7d9959
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 0x7d98ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x7d98b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x7da0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x7ff458
push ecx
call fcn.007ea1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.007ea1e1
add esp, 0x10
jmp 0x7da0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.007ea20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.007e9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.007da050
mov eax, dword [0x804728]
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 0x7da13b
push esi
call fcn.007d9fb0
add esp, 4
mov dword [0x804728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x7da14c
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.007d9ff0
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 0x7dd440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x7dd4b7
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 0x7dd48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7dd471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7dd47e
add edx, ecx
cmp ebx, edx
jb 0x7dd48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7dd467
xor ecx, ecx
jmp 0x7dd4a2
test eax, eax
jne 0x7dd492
xor ecx, ecx
jmp 0x7dd4a2
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.007dd3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x7dd8f0
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 0x7dd921
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 0x7dd946
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 0x7dd96e
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 0x7dd993
push ecx
push esi
call fcn.007dd4c0
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 0x7dec00
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 0x7dec4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x7dec2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x7dec38
add edx, eax
cmp ebx, edx
jb 0x7dec46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x7dec21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x7dec50
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 0x7dec70
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 0x7decb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x7dec9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x7deca8
add edx, ecx
cmp ebx, edx
jb 0x7decb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x7dec91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x7def60
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.007eb145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7deffb
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 0x7defdd
lea eax, [esp + 0x18]
push eax
jmp 0x7defe2
push 0x804720
call fcn.007eafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7defb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7def40
push 4
push ecx
push eax
call fcn.007eb43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x7df310
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.007eb145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x7df3ab
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 0x7df38d
lea eax, [esp + 0x18]
push eax
jmp 0x7df392
push 0x804720
call fcn.007eafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x7df360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x7def40
push 4
push ecx
push eax
call fcn.007eb43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x7e0f20
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 0x7e0fd7
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 0x7e0fcf
push ebx
push edi
push 0x804770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x7e0fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x804770
push esi
call ebx
test eax, eax
je 0x7e0fae
mov ebp, 3
cmp dword [0x804774], ebp
jne 0x7e0faa
push 0x3e8
call edi
push 0x804770
push esi
call ebx
test eax, eax
jne 0x7e0f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x7e0fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x7e0fbb
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