joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4720d0
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00437980
mov eax, dword [0x4ce540]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
push ebp
mov ebp, dword [esp + 0xa4]
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
push edi
mov dword [esp + 0x14], ecx
test ebp, ebp
je 0x47211f
mov eax, 1
mov dword [esi], ebp
jmp 0x472121
mov ebp, dword [esi]
test ecx, ecx
je 0x472204
push ebp
call fcn.00440740
mov ebx, eax
add esp, 4
cmp ebx, 0x80
jle 0x472150
push str.j____int_sizeof_ctx__key_
push 0x68
push str..cryptohmachmac.c
call fcn.0044d280
add esp, 0xc
mov edi, dword [esp + 0xa8]
cmp ebx, edi
jge 0x4721a7
mov ecx, dword [esp + 0x10]
push ecx
lea ebx, [esi + 4]
push ebp
push ebx
call fcn.00444260
add esp, 0xc
test eax, eax
je 0x4722a6
mov edx, dword [esp + 0x14]
push edi
push edx
push ebx
call fcn.00444410
add esp, 0xc
test eax, eax
je 0x4722a6
lea edi, [esi + 0x4c]
push edi
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.00444420
add esp, 0xc
test eax, eax
je 0x4722a6
jmp 0x4721e1
cmp edi, 0x80
jbe 0x4721c3
push str.len_0__len__int_sizeof_ctx__key_
push 0x75
push str..cryptohmachmac.c
call fcn.0044d280
add esp, 0xc
mov ecx, dword [esp + 0x14]
push edi
push ecx
lea edx, [esi + 0x50]
push edx
call fcn.0042b330
mov eax, dword [esp + 0xb4]
lea edi, [esi + 0x4c]
add esp, 0xc
mov dword [edi], eax
mov edi, dword [edi]
cmp edi, 0x80
je 0x47220c
mov ecx, 0x80
sub ecx, edi
push ecx
lea edx, [edi + esi + 0x50]
push 0
push edx
call fcn.00427b00
add esp, 0xc
jmp 0x47220c
test eax, eax
je 0x472292
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x50]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x472210
mov edi, dword [esp + 0x10]
push edi
lea ebx, [esi + 0x1c]
push ebp
push ebx
call fcn.00444260
add esp, 0xc
test eax, eax
je 0x4722a6
push ebp
call fcn.00440740
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.00444410
add esp, 0x10
test eax, eax
je 0x4722a6
xor eax, eax
mov cl, byte [esi + eax + 0x50]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
inc eax
cmp eax, 0x80
jl 0x472254
push edi
lea ebx, [esi + 0x34]
push ebp
push ebx
call fcn.00444260
add esp, 0xc
test eax, eax
je 0x4722a6
push ebp
call fcn.00440740
push eax
lea edx, [esp + 0x20]
push edx
push ebx
call fcn.00444410
add esp, 0x10
test eax, eax
je 0x4722a6
lea eax, [esi + 0x1c]
push eax
add esi, 4
push esi
call fcn.00444550
add esp, 8
test eax, eax
jne 0x4722aa
xor eax, eax
jmp 0x4722af
mov eax, 1
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004265ea
add esp, 0x8c
ret
Function at 0x48ff30
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x490013
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x48ffae
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x490000
shl edx, 0x10
cmp edi, 2
jne 0x48ffbf
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x48ffed
lea edx, [edi + 0x3c]
jmp 0x48fffa
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x48ff50
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x4028a5
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x40f1a0]
je 0x4028c0
inc edi
cmp edi, 0x17
jb 0x4028b1
cmp edi, 0x17
jae 0x402a40
push ebp
push 3
call fcn.00406900
cmp eax, 1
pop ecx
je 0x402a0c
push 3
call fcn.00406900
test eax, eax
pop ecx
jne 0x4028f4
cmp dword [0x40f020], 1
je 0x402a0c
cmp ebx, 0xfc
je 0x402a3f
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x410068
push ebp
call fcn.0040689b
add esp, 0xc
test eax, eax
je 0x40292a
push esi
push esi
push esi
push esi
push esi
call fcn.0040214a
add esp, 0x14
push 0x104
mov esi, 0x410081
push esi
push 0
mov byte [0x410185], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x40296e
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040689b
add esp, 0xc
test eax, eax
je 0x40296e
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040214a
add esp, 0x14
push esi
call fcn.004062a0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4029b3
push esi
call fcn.004062a0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x41037c
push 0x40c83c
sub ecx, eax
push ecx
push eax
call fcn.004067e8
add esp, 0x14
test eax, eax
je 0x4029b3
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040214a
add esp, 0x14
jmp 0x4029b5
xor esi, esi
push 0x40c838
push ebx
push ebp
call fcn.00406777
add esp, 0xc
test eax, eax
je 0x4029d5
push esi
push esi
push esi
push esi
push esi
call fcn.0040214a
add esp, 0x14
push dword [edi*8 + 0x40f1a4]
push ebx
push ebp
call fcn.00406777
add esp, 0xc
test eax, eax
je 0x4029f7
push esi
push esi
push esi
push esi
push esi
call fcn.0040214a
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.004065ba
add esp, 0xc
jmp 0x402a3f
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x402a3f
cmp ebp, 0xffffffff
je 0x402a3f
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x40f1a4]
push dword [esi]
call fcn.004062a0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4065ba
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004023c3
xor ebx, ebx
cmp dword [0x410a94], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x406690
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x406770
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x406770
push eax
call fcn.00402355
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x410a94], eax
call esi
push eax
call fcn.00402355
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x410a98], eax
call esi
push eax
call fcn.00402355
mov dword [0x410a9c], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00401791
test eax, eax
pop ecx
pop ecx
je 0x40665e
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040214a
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x406690
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00402355
cmp eax, ebx
pop ecx
mov dword [0x410aa4], eax
je 0x406690
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402355
pop ecx
mov dword [0x410aa0], eax
mov eax, dword [0x410aa0]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x406715
cmp dword [0x410aa4], ecx
je 0x406715
push eax
call fcn.004023cc
push dword [0x410aa4]
mov esi, eax
call fcn.004023cc
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x406715
cmp edi, ebx
je 0x406715
call esi
cmp eax, ebx
je 0x4066e2
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4066e2
test byte [ebp - 0x18], 1
jne 0x406715
lea eax, [ebp - 0x10]
push eax
call fcn.004017c8
test eax, eax
pop ecx
je 0x4066fd
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040214a
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40670c
or dword [ebp + 0x10], 0x200000
jmp 0x406750
or dword [ebp + 0x10], 0x40000
jmp 0x406750
mov eax, dword [0x410a98]
cmp eax, dword [ebp - 8]
je 0x406750
push eax
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406750
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x406750
mov eax, dword [0x410a9c]
cmp eax, dword [ebp - 8]
je 0x406750
push eax
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406750
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x410a94]
call fcn.004023cc
cmp eax, ebx
pop ecx
je 0x406770
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406772
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x22d6a60
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d28000]
push edi
or ebp, 0xffffffff
jmp 0x22d6a82
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x22d6a89
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x22d6a78
mov eax, 1
add ebx, ebx
jne 0x22d6a9b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x22d6aac
jne 0x22d6acb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x22d6acb
dec eax
add ebx, ebx
jne 0x22d6ab8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x22d6a90
add ebx, ebx
jne 0x22d6ac7
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x22d6b1d
xor ecx, ecx
sub eax, 3
jb 0x22d6ae3
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x22d6b52
sar eax, 1
mov ebp, eax
jmp 0x22d6aee
add ebx, ebx
jne 0x22d6aee
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x22d6abc
inc ecx
add ebx, ebx
jne 0x22d6afc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x22d6abc
add ebx, ebx
jne 0x22d6b09
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x22d6afe
jne 0x22d6b1a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x22d6afe
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x22d6b3c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x22d6b2e
jmp 0x22d6a7e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x22d6b3c
add edi, ecx
jmp 0x22d6a7e
pop esi
mov edi, esi
mov ecx, 0x1ae13
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x22d6b5a
cmp byte [edi], 0xb5
jne 0x22d6b5a
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 0x22d6b5f
lea edi, [esi + 0x1e99000]
mov eax, dword [edi]
or eax, eax
je 0x22d6bce
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x37000bc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x3700200]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x22d6b8c
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x3700208]
or eax, eax
je 0x22d6bc8
mov dword [ebx], eax
add ebx, 4
jmp 0x22d6ba9
call dword [esi + 0x3700204]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x22d6bff
cmp al, 0xef
ja 0x22d6bf2
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x22d6bd4
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x22d6be1
mov ebp, dword [esi + 0x370020c]
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 0x22d6c33
sub esp, 0xffffff80
jmp 0x93215c
Function at 0xd96370
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 0xd9638e
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 0xdbf074
push ecx
mov edi, eax
call fcn.00daa198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd963cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00daa02e
push esi
call fcn.00da9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd99850
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 0xd998ae
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 0xdc4720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd998ba
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.00daa1e1
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 0xd998ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xdc4720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd9992a
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.00dab082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd99957
mov word [eax], si
add eax, 2
push eax
call fcn.00dab030
add esp, 4
jmp 0xd99959
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 0xd998ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd998b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd9a0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xdbf458
push ecx
call fcn.00daa1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00daa1e1
add esp, 0x10
jmp 0xd9a0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00daa20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00da9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d9a050
mov eax, dword [0xdc4728]
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 0xd9a13b
push esi
call fcn.00d99fb0
add esp, 4
mov dword [0xdc4728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd9a14c
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.00d99ff0
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 0xd9d440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd9d4b7
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 0xd9d48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd9d471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd9d47e
add edx, ecx
cmp ebx, edx
jb 0xd9d48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd9d467
xor ecx, ecx
jmp 0xd9d4a2
test eax, eax
jne 0xd9d492
xor ecx, ecx
jmp 0xd9d4a2
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.00d9d3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd9d8f0
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 0xd9d921
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 0xd9d946
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 0xd9d96e
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 0xd9d993
push ecx
push esi
call fcn.00d9d4c0
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 0xd9ec00
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 0xd9ec4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd9ec2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd9ec38
add edx, eax
cmp ebx, edx
jb 0xd9ec46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd9ec21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd9ec50
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 0xd9ec70
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 0xd9ecb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd9ec9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd9eca8
add edx, ecx
cmp ebx, edx
jb 0xd9ecb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd9ec91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd9ef60
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.00dab145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd9effb
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 0xd9efdd
lea eax, [esp + 0x18]
push eax
jmp 0xd9efe2
push 0xdc4720
call fcn.00daafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd9efb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd9ef40
push 4
push ecx
push eax
call fcn.00dab43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd9f310
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.00dab145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd9f3ab
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 0xd9f38d
lea eax, [esp + 0x18]
push eax
jmp 0xd9f392
push 0xdc4720
call fcn.00daafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd9f360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd9ef40
push 4
push ecx
push eax
call fcn.00dab43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xda0f20
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 0xda0fd7
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 0xda0fcf
push ebx
push edi
push 0xdc4770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xda0fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xdc4770
push esi
call ebx
test eax, eax
je 0xda0fae
mov ebp, 3
cmp dword [0xdc4774], ebp
jne 0xda0faa
push 0x3e8
call edi
push 0xdc4770
push esi
call ebx
test eax, eax
jne 0xda0f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xda0fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xda0fbb
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