joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401ed0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0xa0
mov esi, esp
mov dword [esi + 0xc], ebp
mov eax, dword [ebp + 0x18]
mov dl, byte [ebp + 0x14]
movsd xmm0, qword [ebp + 0xc]
mov al, byte [ebp + 8]
mov edi, esp
mov dword [esi + 0x8c], edi
mov dword [esi + 0x98], 0xffffffff
lea edi, [esi + 0x90]
mov dword [esi + 0x94], 0x405ef0
mov ebx, dword fs:[0]
mov dword [esi + 0x90], ebx
mov dword fs:[0], edi
and dl, 1
mov byte [esi + 0x8b], dl
movsd qword [esi + 0x80], xmm0
and al, 1
mov byte [esi + 0x7f], al
mov dword [esi + 0x78], ecx
mov dword [esi + 0x74], 0x1ed8
mov dword [esi + 0x6c], 0x40e8fd20
mov dword [esi + 0x68], 0
mov byte [esi + 0x67], 0
mov dword [esi + 0x60], 0xbad
mov eax, esp
mov dword [eax], str.ixmvkfokpbeltqlztkocxftbwragqqdjfikxn
lea ecx, [esi + 0x48]
call fcn.00405ff0
sub esp, 4
mov dword [esi + 0x98], 0
mov eax, esp
mov dword [eax], str.ixmvkfokpbeltqlztkocxftbwragqqdjfikxn
lea ecx, [esi + 0x30]
call fcn.00405ff0
sub esp, 4
jmp 0x401f96
mov dword [esi + 0x98], 1
mov eax, esp
mov dword [eax], str.ixmvkfokpbeltqlztkocxftbwragqqdjfikxn
lea ecx, [esi + 0x18]
call fcn.00405ff0
sub esp, 4
jmp 0x401fb8
lea ecx, [esi + 0x18]
lea eax, [esi + 0x30]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.004060e0
mov byte [esi + 0x13], al
lea ecx, [esi + 0x18]
call fcn.004060b0
lea ecx, [esi + 0x30]
call fcn.004060b0
mov al, byte [esi + 0x13]
test al, 1
jne 0x401fed
jmp 0x402011
mov dword [esi + 0x14], 1
cmp dword [esi + 0x14], 0
jle 0x40200c
mov eax, dword [esi + 0x14]
add eax, 0xffffffff
mov dword [esi + 0x14], eax
jmp 0x401ff4
jmp 0x402011
lea ecx, [esi + 0x48]
call fcn.004060b0
mov eax, dword [esi + 0x90]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x4026b0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x78
mov esi, esp
mov dword [esi + 8], ebp
lea eax, [ebp + 8]
mov edx, esp
mov dword [esi + 0x64], edx
mov dword [esi + 0x70], 0xffffffff
lea edx, [esi + 0x68]
mov dword [esi + 0x6c], 0x405f70
mov edi, dword fs:[0]
mov dword [esi + 0x68], edi
mov dword fs:[0], edx
add eax, 0x18
mov dword [esi + 0xc], eax
mov dword [esi + 0x60], ecx
mov dword [esi + 0x5c], 0x3e7
mov dword [esi + 0x54], 0x40e448a0
mov dword [esi + 0x50], 0
mov dword [esi + 0x4c], 0x40bb5000
mov dword [esi + 0x48], 0
mov dword [esi + 0x70], 0
mov eax, esp
mov dword [eax], str.zazixinpdcocwrghjjpsozftbcpfkrvsebjyfakplmualn
lea ecx, [esi + 0x30]
call fcn.00405ff0
sub esp, 4
jmp 0x402736
mov dword [esi + 0x70], 1
mov eax, esp
mov dword [eax], str.yhaqkeixrnqichkrkamtlspzfdgamk
lea ecx, [esi + 0x18]
call fcn.00405ff0
sub esp, 4
jmp 0x402755
mov dword [esi + 0x14], 0x5d
cmp dword [esi + 0x14], 0
jle 0x402774
mov eax, dword [esi + 0x14]
add eax, 0xffffffff
mov dword [esi + 0x14], eax
jmp 0x40275c
mov dword [esi + 0x10], 0x41
cmp dword [esi + 0x10], 0
jle 0x402793
mov eax, dword [esi + 0x10]
add eax, 0xffffffff
mov dword [esi + 0x10], eax
jmp 0x40277b
lea ecx, [esi + 0x18]
call fcn.004060b0
lea ecx, [esi + 0x30]
call fcn.004060b0
mov ecx, dword [esi + 0xc]
call fcn.004060b0
mov eax, dword [esi + 0x68]
mov dword fs:[0], eax
xor eax, eax
and al, 1
movzx eax, al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret 0x3c
Function at 0x403510
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
bswap ebx
rcl edi, 0xc5
rcl edi, 0x72
rol edx, 0xfe
neg edi
and edx, 0x91
dec edi
dec edi
ror edx, 0xf2
sub edx, 0x12
inc esi
add esi, 0xee
not ebx
imul edx
bswap eax
rcr edx, 0xe6
sbb eax, 0x6e
not edx
ror edi, 0x85
neg edx
rol edi, 0x99
sub eax, 0xeb
sub edx, 0xa
dec edx
inc eax
dec ebx
or esi, 0x98
dec edx
dec edi
add eax, 0x4d
sbb esi, 0x71
imul ebx
rcr edi, 0x12
inc edi
dec eax
mov eax, 0xa9
not edx
neg esi
ror edi, 0x2c
rol edi, 0xa5
imul edi
bswap edx
imul edi
neg esi
and edx, 0xec
rol eax, 0xcb
imul edi
or edx, 0x20
rol esi, 0x26
ror edi, 0xb8
xor ecx, ecx
xor edi, edi
and edx, 0x19
inc esi
add eax, 0xaf
rol esi, 0x98
inc eax
not esi
rol edx, 0x8b
bswap eax
rol edx, 0x91
inc ebx
inc ebx
not esi
ror eax, 0x80
sbb edx, 0x97
sub ebx, 0x60
sub edx, 0x53
bswap edx
or esi, 0x9a
bswap ebx
sbb esi, 0xc8
rcl edi, 0xb
bswap eax
dec edx
and ebx, 0xcc
add ebx, 0x4b
dec eax
inc esi
or ebx, 0x35
not esi
neg esi
rol esi, 0xc7
neg esi
add eax, 0x4f
mov esi, 0x43
not edi
or eax, 0xaf
rol esi, 0x5e
dec edx
rol edi, 0xed
rcl esi, 0xcd
not esi
imul esi
not esi
mov edi, 0xb0
bswap esi
rol ebx, 0xb5
rol edi, 0xc4
not esi
and esi, 0xf6
neg ebx
mov ecx, dword [ebp + 0xc]
sbb edi, 0xdf
and ebx, 0xfe
inc edi
bswap edi
not ebx
neg eax
not edi
rcr eax, 0xb
bswap edx
imul edx
not edx
and edi, 0
rcl ebx, 0x24
imul eax
mov ebx, 3
mov esi, 0xa9
mov edx, 0x52
not eax
or edx, 0x4f
add eax, 4
neg ebx
rcl edi, 0x59
neg eax
dec edi
neg eax
mov eax, 0xcb
imul ebx
not eax
imul ebx
ror eax, 0xdc
rol edi, 0x5c
mov eax, 0x96
or edi, 0x2c
add esi, 0xae
bswap edi
rcl edi, 0x84
sub edx, 0x6a
rcl edi, 0x7a
add edi, 0x82
or eax, 0xf9
dec edx
bswap edi
or ebx, 0x27
imul edx
not esi
neg esi
imul ebx
bswap edi
mov ebx, 0xa7
rol ebx, 0xdd
mov edi, dword [ebp + 8]
mov eax, eax
mov esi, eax
xor esi, esi
mov eax, eax
mov esi, eax
mov ebx, eax
mov ebx, esi
mov esi, ebx
xor ebx, ebx
mov eax, esi
mov ebx, eax
mov esi, ebx
not byte [edi]
mov eax, eax
xor ebx, eax
mov esi, ebx
mov eax, ebx
mov esi, esi
xor esi, eax
xor esi, esi
xor eax, esi
xor ebx, ebx
sub byte [edi], 0x76
xor esi, esi
mov ebx, ebx
mov ebx, esi
xor esi, eax
mov esi, esi
mov esi, eax
xor esi, esi
mov eax, eax
mov ebx, eax
add byte [edi], 0x63
mov eax, esi
mov eax, ebx
mov esi, ebx
mov eax, ebx
xor ebx, ebx
xor eax, ebx
xor esi, eax
mov ebx, eax
xor eax, ebx
imul byte [edi]
inc edi
loop 0x4036d0
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x40787e
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4078bd
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4078bd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4078bd
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4078bd
cmp dword [ecx + 0x74], 0xe
jbe 0x4078bd
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x40ec6b
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x40ed08
push ebx
push esi
call fcn.0040ec34
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0040eb7d
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x40ecb5
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ed07
push edi
push eax
call fcn.0040d64b
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x40ecd5
call fcn.0040d699
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x40ed06
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0040eb7d
add esp, 0x20
test eax, eax
jne 0x40ecf4
push edi
call fcn.0040d699
jmp 0x40ecfc
push ebx
call fcn.0040d699
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x40ff00
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e6c8
push 0x46e6c0
push str.FlsAlloc
push 0x1e
call fcn.0040fdc1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ff34
push dword [ebp + 8]
mov ecx, esi
call dword [0x41612c]
call esi
jmp 0x40ff3a
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x40ff7e
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x46e6d8
push 0x46e6d0
push str.FlsGetValue
push 0x20
call fcn.0040fdc1
mov esi, eax
add esp, 0x10
test esi, esi
je 0x40ffb5
push dword [ebp + 8]
mov ecx, esi
call dword [0x41612c]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4153a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4153cd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4153cd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x813058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.008131a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x81307e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81306a
add dl, dl
jne 0x813089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x8130dc
xor eax, eax
add dl, dl
jne 0x813096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x81317d
add dl, dl
jne 0x8130a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x8130d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x813075
mov eax, 1
add dl, dl
jne 0x8130ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x8130f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x8130e1
sub eax, ebx
mov ebx, 1
jne 0x813128
mov ecx, 1
add dl, dl
jne 0x81310e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x813119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x813105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x81313f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x81314a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x813136
cmp eax, 0x7d00
jae 0x81316d
cmp eax, 0x500
jb 0x813168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
cmp eax, 0x7f
ja 0x813170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x813075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x81319e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x813075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0xa50370
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 0xa5038e
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 0xa79074
push ecx
mov edi, eax
call fcn.00a64198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa503cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a6402e
push esi
call fcn.00a63fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa53850
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 0xa538ae
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 0xa7e720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa538ba
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.00a641e1
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 0xa538ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa7e720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa5392a
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.00a65082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa53957
mov word [eax], si
add eax, 2
push eax
call fcn.00a65030
add esp, 4
jmp 0xa53959
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 0xa538ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa538b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa540c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa79458
push ecx
call fcn.00a641e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a641e1
add esp, 0x10
jmp 0xa540d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a6420b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a63dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a54050
mov eax, dword [0xa7e728]
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 0xa5413b
push esi
call fcn.00a53fb0
add esp, 4
mov dword [0xa7e728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa5414c
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.00a53ff0
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 0xa57440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa574b7
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 0xa5748e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa57471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa5747e
add edx, ecx
cmp ebx, edx
jb 0xa5748a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa57467
xor ecx, ecx
jmp 0xa574a2
test eax, eax
jne 0xa57492
xor ecx, ecx
jmp 0xa574a2
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.00a573c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xa578f0
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 0xa57921
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 0xa57946
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 0xa5796e
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 0xa57993
push ecx
push esi
call fcn.00a574c0
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 0xa58c00
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 0xa58c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xa58c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xa58c38
add edx, eax
cmp ebx, edx
jb 0xa58c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xa58c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xa58c50
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 0xa58c70
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 0xa58cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa58c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa58ca8
add edx, ecx
cmp ebx, edx
jb 0xa58cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa58c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xa58f60
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.00a65145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xa58ffb
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 0xa58fdd
lea eax, [esp + 0x18]
push eax
jmp 0xa58fe2
push 0xa7e720
call fcn.00a64fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xa58fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xa58f40
push 4
push ecx
push eax
call fcn.00a6543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xa59310
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.00a65145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xa593ab
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 0xa5938d
lea eax, [esp + 0x18]
push eax
jmp 0xa59392
push 0xa7e720
call fcn.00a64fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xa59360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xa58f40
push 4
push ecx
push eax
call fcn.00a6543f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xa5af20
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 0xa5afd7
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 0xa5afcf
push ebx
push edi
push 0xa7e770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xa5afae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xa7e770
push esi
call ebx
test eax, eax
je 0xa5afae
mov ebp, 3
cmp dword [0xa7e774], ebp
jne 0xa5afaa
push 0x3e8
call edi
push 0xa7e770
push esi
call ebx
test eax, eax
jne 0xa5af8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xa5afc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xa5afbb
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