joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41e98c
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
shr dword [ebp + 0x10], 2
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 8]
shr eax, 1
add eax, 3
push esi
xor esi, esi
lea edx, [eax*8 + 4]
push edi
mov dword [ecx], eax
mov dword [ebp - 4], edx
cmp dword [ebp + 0x10], esi
jbe 0x41e9c6
mov eax, dword [ebp + 0xc]
mov edi, dword [eax]
mov dword [ecx + esi*4 + 4], edi
inc esi
add eax, 4
cmp esi, dword [ebp + 0x10]
jb 0x41e9b7
cmp esi, edx
jae 0x41eaad
mov eax, esi
sub eax, dword [ebp + 0x10]
push ebx
lea eax, [ecx + eax*4 + 4]
mov dword [ebp + 8], eax
xor edx, edx
mov eax, esi
div dword [ebp + 0x10]
mov edi, dword [ecx + esi*4]
mov dword [ebp + 0xc], eax
test edx, edx
jne 0x41ea41
mov eax, edi
mov edx, 0xff
and eax, edx
movzx eax, byte [eax + str.cw]
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
shl eax, 8
or eax, ebx
mov ebx, edi
shr edi, 8
and edi, edx
shr ebx, 0x10
and ebx, edx
movzx edx, byte [edi + str.cw]
movzx ebx, byte [ebx + str.cw]
mov edi, dword [ebp + 0xc]
movzx edi, byte [edi + 0x44e500]
shl eax, 8
or eax, ebx
xor edx, edi
shl eax, 8
or eax, edx
mov edi, eax
jmp 0x41ea93
cmp dword [ebp + 0x10], 6
jbe 0x41ea93
cmp edx, 4
jne 0x41ea93
mov edx, edi
shr edx, 0x10
mov ebx, edi
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
mov eax, 0xff
and edx, eax
movzx edx, byte [edx + str.cw]
shl ebx, 8
or edx, ebx
mov ebx, edi
shr ebx, 8
and ebx, eax
movzx ebx, byte [ebx + str.cw]
shl edx, 8
and edi, eax
movzx eax, byte [edi + str.cw]
or edx, ebx
shl edx, 8
or edx, eax
mov edi, edx
mov eax, dword [ebp + 8]
mov eax, dword [eax]
add dword [ebp + 8], 4
xor eax, edi
mov dword [ecx + esi*4 + 4], eax
inc esi
cmp esi, dword [ebp - 4]
jb 0x41e9db
pop ebx
pop edi
pop esi
leave
ret 0xc

Function at 0x41eab3
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push esi
push dword [ebp + 0x10]
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
push esi
call fcn.0041e98c
mov eax, dword [esi]
lea eax, [eax*8 - 4]
xor edx, edx
mov dword [ebp + 0x10], eax
test eax, eax
jbe 0x41eb3c
push ebx
mov ecx, 0xff
push edi
mov eax, dword [esi + edx*4 + 0x14]
mov edi, eax
shr edi, 0x10
and edi, ecx
movzx edi, byte [edi + str.cw]
mov edi, dword [edi*4 + 0x450cb8]
mov ebx, eax
shr ebx, 8
and ebx, ecx
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x4508b8]
mov ebx, eax
shr ebx, 0x18
movzx ebx, byte [ebx + str.cw]
xor edi, dword [ebx*4 + 0x4510b8]
and eax, ecx
movzx eax, byte [eax + str.cw]
xor edi, dword [eax*4 + 0x4504b8]
inc edx
mov dword [esi + edx*4 + 0x10], edi
cmp edx, dword [ebp + 0x10]
jb 0x41eadf
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x41f3e6
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x41f3f5
xor eax, eax
jmp 0x41f458
push 0x10
pop eax
cmp ebx, eax
jb 0x41f458
sub ebx, eax
add ebx, eax
shr ebx, 4
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
shl eax, 4
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
xor dword [esi], eax
mov eax, dword [edi + 4]
xor dword [esi + 4], eax
mov eax, dword [edi + 8]
xor dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push dword [esi + 0x10]
xor dword [esi + 0xc], eax
push esi
lea ecx, [esi + 0x14]
mov eax, esi
call fcn.0041eb41
mov eax, dword [esi]
mov dword [edi], eax
mov eax, dword [esi + 4]
mov dword [edi + 4], eax
mov eax, dword [esi + 8]
mov dword [edi + 8], eax
mov eax, dword [esi + 0xc]
mov dword [edi + 0xc], eax
add edi, 0x10
dec ebx
jne 0x41f413
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x41f45d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov ebx, dword [ebp + 0x10]
test ebx, ebx
jne 0x41f472
xor eax, eax
jmp 0x41f501
push 0x10
pop eax
cmp ebx, eax
jb 0x41f501
sub ebx, eax
add ebx, eax
shr ebx, 4
push esi
mov esi, dword [ebp + 8]
mov eax, ebx
shl eax, 4
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
push dword [esi + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x20]
push eax
lea ecx, [esi + 0x14]
lea eax, [ebp - 0x10]
call fcn.0041ef63
mov eax, dword [esi]
xor eax, dword [ebp - 0x20]
mov dword [edi], eax
mov eax, dword [esi + 4]
xor eax, dword [ebp - 0x1c]
add edi, 0x10
mov dword [edi - 0xc], eax
mov eax, dword [esi + 8]
xor eax, dword [ebp - 0x18]
mov dword [edi - 8], eax
mov eax, dword [esi + 0xc]
xor eax, dword [ebp - 0x14]
dec ebx
mov dword [edi - 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esi], eax
mov eax, dword [ebp - 0xc]
mov dword [esi + 4], eax
mov eax, dword [ebp - 8]
mov dword [esi + 8], eax
mov eax, dword [ebp - 4]
mov dword [esi + 0xc], eax
jne 0x41f494
mov eax, dword [ebp + 0x10]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41f5a4
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov ecx, dword [ebp + 0x14]
mov edx, dword [ecx]
mov ecx, dword [ebp + 0xc]
xor eax, eax
and edx, 7
cmp ecx, 5
jb 0x41f6ff
add dword [ebp + 0x10], 5
or dword [ebp + 0xc], 0xffffffff
push ebx
push esi
mov esi, dword [ebp + 8]
lea ecx, [esi + ecx - 4]
push edi
mov dword [ebp - 4], ecx
lea edi, [eax + esi]
jmp 0x41f5e2
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x41f5e7
inc edi
cmp edi, dword [ebp - 4]
jb 0x41f5d9
mov eax, edi
sub eax, esi
mov dword [ebp - 8], eax
cmp edi, dword [ebp - 4]
jae 0x41f6df
mov ecx, eax
sub ecx, dword [ebp + 0xc]
cmp ecx, 3
jbe 0x41f63e
xor edx, edx
mov cl, byte [edi + 4]
mov dword [ebp + 0xc], eax
test cl, cl
je 0x41f612
cmp cl, 0xff
jne 0x41f669
movzx esi, cl
movzx ecx, byte [edi + 3]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 2]
shl esi, 8
or esi, ecx
movzx ecx, byte [edi + 1]
shl esi, 8
or esi, ecx
cmp dword [ebp + 0x18], 0
je 0x41f677
lea ebx, [esi + eax]
add ebx, dword [ebp + 0x10]
jmp 0x41f67e
dec ecx
shl edx, cl
and edx, 7
je 0x41f603
movzx ecx, byte [edx + 0x440410]
mov ebx, edi
sub ebx, ecx
cmp byte [edx + 0x440408], 0
mov cl, byte [ebx + 4]
je 0x41f666
test cl, cl
je 0x41f666
cmp cl, 0xff
jne 0x41f603
mov dword [ebp + 0xc], eax
and edx, 3
add edx, edx
or edx, 1
inc eax
jmp 0x41f5d4
sub esi, eax
sub esi, dword [ebp + 0x10]
mov ebx, esi
test edx, edx
je 0x41f6b2
movzx esi, byte [edx + 0x440410]
push 0x18
shl esi, 3
pop ecx
sub ecx, esi
mov eax, ebx
shr eax, cl
test al, al
je 0x41f69d
cmp al, 0xff
jne 0x41f6af
mov eax, dword [ebp - 8]
push 0x20
pop ecx
sub ecx, esi
xor esi, esi
inc esi
shl esi, cl
dec esi
xor esi, ebx
jmp 0x41f630
mov eax, dword [ebp - 8]
mov esi, dword [ebp + 8]
mov ecx, ebx
shr ecx, 0x18
and cl, 1
dec cl
not cl
mov byte [edi + 4], cl
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 3], cl
mov ecx, ebx
shr ecx, 8
mov byte [edi + 2], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x41f5d4
mov esi, eax
sub esi, dword [ebp + 0xc]
push 3
lea ecx, [esi - 1]
shl edx, cl
pop edi
and edx, 7
cmp edi, esi
sbb ecx, ecx
not ecx
pop edi
and ecx, edx
mov edx, dword [ebp + 0x14]
pop esi
mov dword [edx], ecx
pop ebx
leave
ret 0x14

Function at 0x421612
Capabilities:
Hash data using sha256

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
ret 4

Function at 0x42196f
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
lea eax, [ebp + 0x10]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.00426d05
mov ecx, dword [ebp + 8]
add esp, 0x18
push eax
mov dword [ecx], eax
call fcn.0042191a
pop ebp
ret 0xc
Function at 0x42303f
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x44e580]
jne 0x423049
repz ret
jmp fcn.0042940c

Function at 0x4319c1
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.004279c6
and dword [ebp - 4], 0
cmp dword [0x451f68], 0
mov ebx, eax
jne 0x431a72
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x431b23
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x431b23
push eax
call fcn.00427954
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x451f68], eax
call esi
push eax
call fcn.00427954
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x451f6c], eax
call esi
push eax
call fcn.00427954
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x451f70], eax
call esi
push eax
call fcn.00427954
pop ecx
mov dword [0x451f78], eax
test eax, eax
je 0x431a72
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00427954
pop ecx
mov dword [0x451f74], eax
mov eax, dword [0x451f74]
cmp eax, ebx
je 0x431aca
cmp dword [0x451f78], ebx
je 0x431aca
push eax
call fcn.004279cf
push dword [0x451f78]
mov esi, eax
call fcn.004279cf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x431aca
test edi, edi
je 0x431aca
call esi
test eax, eax
je 0x431ac1
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x431ac1
test byte [ebp - 0xc], 1
jne 0x431aca
or dword [ebp + 0x10], 0x200000
jmp 0x431b03
mov eax, dword [0x451f6c]
cmp eax, ebx
je 0x431b03
push eax
call fcn.004279cf
pop ecx
test eax, eax
je 0x431b03
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x431b03
mov eax, dword [0x451f70]
cmp eax, ebx
je 0x431b03
push eax
call fcn.004279cf
pop ecx
test eax, eax
je 0x431b03
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x451f68]
call fcn.004279cf
pop ecx
test eax, eax
je 0x431b23
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x431b25
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0xd3a370
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 0xd3a38e
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 0xd63074
push ecx
mov edi, eax
call fcn.00d4e198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd3a3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d4e02e
push esi
call fcn.00d4dfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd3d850
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 0xd3d8ae
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 0xd68720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd3d8ba
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.00d4e1e1
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 0xd3d8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd68720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd3d92a
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.00d4f082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd3d957
mov word [eax], si
add eax, 2
push eax
call fcn.00d4f030
add esp, 4
jmp 0xd3d959
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 0xd3d8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd3d8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd3e0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd63458
push ecx
call fcn.00d4e1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d4e1e1
add esp, 0x10
jmp 0xd3e0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d4e20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d4ddff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d3e050
mov eax, dword [0xd68728]
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 0xd3e13b
push esi
call fcn.00d3dfb0
add esp, 4
mov dword [0xd68728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd3e14c
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.00d3dff0
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 0xd41440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd414b7
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 0xd4148e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd41471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd4147e
add edx, ecx
cmp ebx, edx
jb 0xd4148a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd41467
xor ecx, ecx
jmp 0xd414a2
test eax, eax
jne 0xd41492
xor ecx, ecx
jmp 0xd414a2
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.00d413c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd418f0
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 0xd41921
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 0xd41946
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 0xd4196e
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 0xd41993
push ecx
push esi
call fcn.00d414c0
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 0xd42c00
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 0xd42c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd42c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd42c38
add edx, eax
cmp ebx, edx
jb 0xd42c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd42c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd42c50
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 0xd42c70
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 0xd42cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd42c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd42ca8
add edx, ecx
cmp ebx, edx
jb 0xd42cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd42c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd42f60
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.00d4f145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd42ffb
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 0xd42fdd
lea eax, [esp + 0x18]
push eax
jmp 0xd42fe2
push 0xd68720
call fcn.00d4efd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd42fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd42f40
push 4
push ecx
push eax
call fcn.00d4f43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd43310
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.00d4f145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd433ab
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 0xd4338d
lea eax, [esp + 0x18]
push eax
jmp 0xd43392
push 0xd68720
call fcn.00d4efd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd43360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd42f40
push 4
push ecx
push eax
call fcn.00d4f43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd44f20
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 0xd44fd7
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 0xd44fcf
push ebx
push edi
push 0xd68770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xd44fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xd68770
push esi
call ebx
test eax, eax
je 0xd44fae
mov ebp, 3
cmp dword [0xd68774], ebp
jne 0xd44faa
push 0x3e8
call edi
push 0xd68770
push esi
call ebx
test eax, eax
jne 0xd44f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xd44fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xd44fbb
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
Function at 0xd48e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xd5e8f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
mov ecx, dword [esp + 0x1c]
push esi
mov esi, dword [esp + 0x24]
lea eax, [esp + 4]
push edi
xor edi, edi
push eax
push 0x20019
push edi
push esi
push ecx
mov dword [esp + 0x1c], edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, edi
je 0xd48ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00d457a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xd48e61
mov edx, dword [eax]
jmp 0xd48e63
xor edx, edx
xor ecx, ecx
push edi
xor eax, eax
push edx
push ecx
mov ecx, dword [esp + 0x38]
push eax
lea eax, [esp + 0x1c]
mov edx, dword [ecx + 4]
push eax
push esi
push 2
push edx
mov dword [esp + 0x2c], edi
mov dword [esp + 0x30], edi
call fcn.00d47050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xd48ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xd48ebf
cmp esi, edi
je 0xd48ebf
mov ecx, esi
call fcn.00d40a00
push esi
call fcn.00d4e1c8
add esp, 4
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
push edi
lea eax, [esp + 0x2c]
push edi
push eax
call fcn.00d45990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xd48ef5
mov eax, dword [eax]
jmp 0xd48ef7
xor eax, eax
mov ecx, dword [esp + 8]
mov edx, dword [esp + 0x2c]
push ebx
push esi
push eax
push ecx
push edx
call fcn.00d44640
add esp, 0x10
mov bl, al
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esp + 0x2c]
cmp eax, edi
je 0xd48f25
mov eax, dword [eax]
jmp 0xd48f27
xor eax, eax
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x2c]
mov dword [esp + 0x20], 0xffffffff
cmp esi, edi
je 0xd48f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xd48f76
cmp esi, edi
je 0xd48f76
mov eax, dword [esi]
cmp eax, edi
je 0xd48f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xd48f6d
push eax
call fcn.00d4e1c8
add esp, 4
push esi
call fcn.00d4e1c8
add esp, 4
mov ecx, dword [esp + 0x18]
mov al, bl
pop ebx
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x18
ret