joyce8/EMBER2024-capa huggingface dataset:
Function at 0x484c70
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process filename

Disassembly:
push ecx
push esi
xor esi, esi
mov dword [esp + 4], esi
mov eax, dword fs:[0x30]
mov dword [esp + 4], eax
push 0x5fc
push esi
call dword [0x4c311c]
push eax
call dword [0x4c315c]
push 0x5fc
push esi
push eax
mov dword [0x4e9fe0], eax
call fcn.0048ffc0
mov eax, dword [0x4e9fe0]
mov dword [eax], 0x5fc
mov ecx, dword [0x4e9fe0]
mov dword [ecx + 4], esi
mov edx, dword [0x4e9fe0]
mov dword [edx + 8], esi
mov eax, dword [0x4e9fe0]
add esp, 0xc
mov dword [eax + 0xc], esi
call dword [0x4c3344]
mov ecx, dword [0x4e9fe0]
mov dword [ecx + 0x10], eax
call dword [0x4c3328]
mov edx, dword [0x4e9fe0]
mov dword [edx + 0x14], eax
mov eax, dword [0x4e9fe0]
mov dword [eax + 0x18], esi
mov ecx, dword [0x4e9fe0]
mov dword [ecx + 0x1c], esi
mov edx, dword [0x4e9fe0]
mov eax, dword [esp + 4]
mov dword [edx + 0x28], eax
mov ecx, dword [0x4e9fe0]
mov dword [ecx + 0x20], esi
mov edx, dword [0x4e9fe0]
mov dword [edx + 0x34c], esi
mov eax, dword [0x4e9fe0]
push fcn.004849c0
mov dword [eax + 0x5f8], esi
call dword [0x4c31f0]
call fcn.00484920
push str.AddVectoredExceptionHandler
push str.kernel32
call dword [0x4c3360]
push eax
call dword [0x4c3348]
cmp eax, esi
je 0x484d5d
push 0x484bf0
push esi
call eax
mov al, 1
pop esi
pop ecx
ret

Function at 0x4857b0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [esi]
test eax, eax
je 0x4857f1
test edi, edi
je 0x4857f1
mov edx, dword [esp + 8]
cmp edx, 0xffffffff
jl 0x4857db
mov ecx, dword [esp + 4]
jg 0x4857ce
cmp ecx, 0xffffffff
jbe 0x4857db
push 0
push edx
push ecx
push eax
call fcn.0049eee3
add esp, 0x10
mov eax, dword [esi]
mov ecx, dword [esp + 0xc]
push eax
push ecx
push 1
push edi
call fcn.004b3eeb
add esp, 0x10
ret 0xc
or eax, 0xffffffff
ret 0xc
Function at 0x4b3c34
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
xor edi, edi
cmp dword [ebp + 0x10], edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
je 0x4b3c71
cmp dword [ebp + 0x14], edi
je 0x4b3c71
cmp ecx, edi
jne 0x4b3c78
call fcn.00494aa9
push edi
push edi
push edi
push edi
mov dword [eax], 0x16
push edi
call fcn.0048b0e9
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
mov esi, dword [ebp + 0x18]
cmp esi, edi
je 0x4b3c8c
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
jbe 0x4b3cad
cmp ebx, 0xffffffff
je 0x4b3c9c
push ebx
push edi
push ecx
call fcn.0048ffc0
add esp, 0xc
cmp esi, edi
je 0x4b3c59
or eax, 0xffffffff
xor edx, edx
div dword [ebp + 0x10]
cmp dword [ebp + 0x14], eax
ja 0x4b3c59
mov edi, dword [ebp + 0x10]
imul edi, dword [ebp + 0x14]
test word [esi + 0xc], 0x10c
mov dword [ebp - 0x10], edi
mov ebx, edi
je 0x4b3cc9
mov eax, dword [esi + 0x18]
mov dword [ebp - 0xc], eax
jmp 0x4b3cd0
mov dword [ebp - 0xc], 0x1000
test edi, edi
je 0x4b3dc1
test word [esi + 0xc], 0x10c
je 0x4b3d24
mov eax, dword [esi + 4]
test eax, eax
je 0x4b3d24
jl 0x4b3e22
cmp ebx, eax
mov edi, ebx
jb 0x4b3cf5
mov edi, eax
cmp edi, dword [ebp - 4]
ja 0x4b3dc9
push edi
push dword [esi]
push dword [ebp - 4]
push dword [ebp - 8]
call fcn.0048ac58
sub dword [esi + 4], edi
add dword [esi], edi
add dword [ebp - 8], edi
sub ebx, edi
add esp, 0x10
sub dword [ebp - 4], edi
mov edi, dword [ebp - 0x10]
jmp 0x4b3db9
cmp ebx, dword [ebp - 0xc]
jb 0x4b3d91
cmp dword [ebp - 0xc], 0
je 0x4b3d4e
mov ecx, 0x7fffffff
xor edx, edx
cmp ebx, ecx
jbe 0x4b3d43
mov eax, ecx
div dword [ebp - 0xc]
mov eax, ecx
jmp 0x4b3d4a
mov eax, ebx
div dword [ebp - 0xc]
mov eax, ebx
sub eax, edx
jmp 0x4b3d59
mov eax, 0x7fffffff
cmp ebx, eax
ja 0x4b3d59
mov eax, ebx
cmp eax, dword [ebp - 4]
ja 0x4b3df5
push eax
push dword [ebp - 8]
push esi
call fcn.00498a20
pop ecx
push eax
call fcn.004b0e18
add esp, 0xc
test eax, eax
je 0x4b3e34
cmp eax, 0xffffffff
je 0x4b3e22
add dword [ebp - 8], eax
sub ebx, eax
sub dword [ebp - 4], eax
jmp 0x4b3db9
push esi
call fcn.0049ed2a
cmp eax, 0xffffffff
pop ecx
je 0x4b3e26
cmp dword [ebp - 4], 0
je 0x4b3df5
mov ecx, dword [ebp - 8]
inc dword [ebp - 8]
mov byte [ecx], al
mov eax, dword [esi + 0x18]
dec ebx
dec dword [ebp - 4]
mov dword [ebp - 0xc], eax
test ebx, ebx
jne 0x4b3cd8
mov eax, dword [ebp + 0x14]
jmp 0x4b3c73
xor esi, esi
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b3de0
push dword [ebp + 0xc]
push esi
push dword [ebp + 8]
call fcn.0048ffc0
add esp, 0xc
call fcn.00494aa9
push esi
push esi
push esi
push esi
mov dword [eax], 0x22
push esi
jmp 0x4b3c69
cmp dword [ebp + 0xc], 0xffffffff
je 0x4b3e0b
push dword [ebp + 0xc]
push 0
push dword [ebp + 8]
call fcn.0048ffc0
add esp, 0xc
call fcn.00494aa9
mov dword [eax], 0x22
xor eax, eax
push eax
push eax
push eax
push eax
push eax
jmp 0x4b3c69
or dword [esi + 0xc], 0x20
mov eax, edi
sub eax, ebx
xor edx, edx
div dword [ebp + 0x10]
jmp 0x4b3c73
or dword [esi + 0xc], 0x10
jmp 0x4b3e26
Function at 0x405cfc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor edx, edx
mov dword [ebp - 0x10], edx
xor edx, edx
push ebp
push 0x405d62
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 0xb]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA
lea eax, [ebp - 0x10]
lea edx, [ebp - 0xb]
mov ecx, 7
call fcn.004044ac
mov eax, dword [ebp - 0x10]
lea edx, [ebp - 4]
call fcn.00402f40
mov ebx, eax
cmp dword [ebp - 4], 0
je 0x405d4c
xor ebx, ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x405d69
lea eax, [ebp - 0x10]
call fcn.0040423c
ret

Function at 0x4078f0
Capabilities:
Set file attributes

Disassembly:
push ebx
push esi
push edi
mov edi, edx
mov esi, eax
xor ebx, ebx
push edi
mov eax, esi
call fcn.004046fc
push eax
call sub.kernel32.dll_SetFileAttributesA
test eax, eax
jne 0x407912
call sub.kernel32.dll_GetLastError
mov ebx, eax
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x40a134
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff00
push ebx
push esi
mov esi, ecx
mov ebx, dword [ebp + 8]
push pe_nt_image_headers32
lea ecx, [ebp - 0x100]
push ecx
push edx
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a16d
mov ecx, eax
dec ecx
lea edx, [ebp - 0x100]
mov eax, ebx
call fcn.0040432c
jmp 0x40a176
mov eax, ebx
mov edx, esi
call fcn.00404290
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40a180
Capabilities:
Get geographical location

Disassembly:
push ebx
push esi
push edi
push ecx
mov ebx, ecx
mov esi, edx
mov edi, eax
push 2
lea eax, [esp + 4]
push eax
push esi
push edi
call sub.kernel32.dll_GetLocaleInfoA_1
test eax, eax
jle 0x40a1a1
mov al, byte [esp]
jmp 0x40a1a3
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x40b5fc
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x40b660
push dword fs:[edx]
mov dword fs:[edx], esp
push 7
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.004044ac
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.004075e8
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x40b667
lea eax, [ebp - 0xc]
call fcn.0040423c
ret
Function at 0x5117a0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x99000]
push edi
or ebp, 0xffffffff
jmp 0x5117c2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5117c9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5117b8
mov eax, 1
add ebx, ebx
jne 0x5117db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5117ec
jne 0x51180b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x51180b
dec eax
add ebx, ebx
jne 0x5117f8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5117d0
add ebx, ebx
jne 0x511807
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x51185d
xor ecx, ecx
sub eax, 3
jb 0x511823
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x511892
sar eax, 1
mov ebp, eax
jmp 0x51182e
add ebx, ebx
jne 0x51182e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5117fc
inc ecx
add ebx, ebx
jne 0x51183c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5117fc
add ebx, ebx
jne 0x511849
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x51183e
jne 0x51185a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x51183e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x51187c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x51186e
jmp 0x5117be
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x51187c
add edi, ecx
jmp 0x5117be
pop esi
mov edi, esi
mov ecx, 0x5c65
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x51189a
cmp byte [edi], 0x16
jne 0x51189a
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 0x51189f
lea edi, [esi + 0x10e000]
mov eax, dword [edi]
or eax, eax
je 0x511917
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x11f620]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x11f74c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5118cc
mov ecx, edi
jns 0x5118fb
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 + 0x11f750]
or eax, eax
je 0x511911
mov dword [ebx], eax
add ebx, 4
jmp 0x5118e9
call dword [esi + 0x11f760]
mov ebp, dword [esi + 0x11f754]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
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 0x51194b
sub esp, 0xffffff80
jmp 0x4937c2

Function at 0x402218
Capabilities:
Encode data using xor

Disassembly:
add byte [eax], al
push 0x42bc08
call sub.MSVBVM60.DLL_ThunRTMain
add byte [eax], al
add byte [eax], al
add byte [eax], al
xor byte [eax], al
add byte [eax], al
inc eax
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [ebp + 0x5b], cl
and ch, byte [0x4d9abf25]
sbb al, 0xa6
je 0x402216
invalid
Function at 0xd23370
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 0xd2338e
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 0xd4c074
push ecx
mov edi, eax
call fcn.00d37198
mov esi, eax
add esp, 8
test esi, esi
jne 0xd233cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00d3702e
push esi
call fcn.00d36fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xd26850
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 0xd268ae
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 0xd51720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd268ba
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.00d371e1
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 0xd268ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xd51720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xd2692a
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.00d38082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xd26957
mov word [eax], si
add eax, 2
push eax
call fcn.00d38030
add esp, 4
jmp 0xd26959
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 0xd268ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xd268b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xd270c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xd4c458
push ecx
call fcn.00d371e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00d371e1
add esp, 0x10
jmp 0xd270d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00d3720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00d36dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00d27050
mov eax, dword [0xd51728]
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 0xd2713b
push esi
call fcn.00d26fb0
add esp, 4
mov dword [0xd51728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xd2714c
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.00d26ff0
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 0xd2a440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xd2a4b7
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 0xd2a48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd2a471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd2a47e
add edx, ecx
cmp ebx, edx
jb 0xd2a48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd2a467
xor ecx, ecx
jmp 0xd2a4a2
test eax, eax
jne 0xd2a492
xor ecx, ecx
jmp 0xd2a4a2
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.00d2a3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xd2a8f0
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 0xd2a921
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 0xd2a946
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 0xd2a96e
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 0xd2a993
push ecx
push esi
call fcn.00d2a4c0
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 0xd2bc00
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 0xd2bc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xd2bc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xd2bc38
add edx, eax
cmp ebx, edx
jb 0xd2bc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xd2bc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xd2bc50
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 0xd2bc70
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 0xd2bcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xd2bc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xd2bca8
add edx, ecx
cmp ebx, edx
jb 0xd2bcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xd2bc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xd2bf60
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.00d38145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd2bffb
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 0xd2bfdd
lea eax, [esp + 0x18]
push eax
jmp 0xd2bfe2
push 0xd51720
call fcn.00d37fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd2bfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd2bf40
push 4
push ecx
push eax
call fcn.00d3843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd2c310
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.00d38145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xd2c3ab
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 0xd2c38d
lea eax, [esp + 0x18]
push eax
jmp 0xd2c392
push 0xd51720
call fcn.00d37fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xd2c360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xd2bf40
push 4
push ecx
push eax
call fcn.00d3843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xd2df20
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 0xd2dfd7
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 0xd2dfcf
push ebx
push edi
push 0xd51770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xd2dfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xd51770
push esi
call ebx
test eax, eax
je 0xd2dfae
mov ebp, 3
cmp dword [0xd51774], ebp
jne 0xd2dfaa
push 0x3e8
call edi
push 0xd51770
push esi
call ebx
test eax, eax
jne 0xd2df8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xd2dfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xd2dfbb
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 0xd31e00
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0xd478f0
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 0xd31ed2
lea edx, [esp + 0x24]
push eax
push edx
call fcn.00d2e7a0
add esp, 8
mov eax, dword [esp + 0x24]
mov dword [esp + 0x1c], edi
cmp eax, edi
je 0xd31e61
mov edx, dword [eax]
jmp 0xd31e63
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.00d30050
mov eax, dword [esp + 0x44]
add esp, 0x20
cmp eax, edi
mov dword [esp + 0x1c], 0xffffffff
je 0xd31ebf
mov esi, eax
add eax, 8
push eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xd31ebf
cmp esi, edi
je 0xd31ebf
mov ecx, esi
call fcn.00d29a00
push esi
call fcn.00d371c8
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.00d2e990
add esp, 0xc
mov eax, dword [esp + 0x28]
mov dword [esp + 0x1c], 1
cmp eax, edi
je 0xd31ef5
mov eax, dword [eax]
jmp 0xd31ef7
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.00d2d640
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 0xd31f25
mov eax, dword [eax]
jmp 0xd31f27
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 0xd31f76
lea ecx, [esi + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
test eax, eax
jne 0xd31f76
cmp esi, edi
je 0xd31f76
mov eax, dword [esi]
cmp eax, edi
je 0xd31f5d
push eax
call dword [sym.imp.OLEAUT32.dll_SysStringLen]
mov eax, dword [esi + 4]
cmp eax, edi
je 0xd31f6d
push eax
call fcn.00d371c8
add esp, 4
push esi
call fcn.00d371c8
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