joyce8/EMBER2024-capa huggingface dataset:
Function at 0x101bc9c0
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10201620
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x10252964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov dword [ebp - 0x1c], ebx
mov eax, 0x1fffffff
mov edi, 1
bsr ecx, eax
mov eax, edi
shl eax, cl
mov ecx, dword [ebp + 8]
cmp ecx, eax
ja 0x101bcb58
lea eax, [ecx - 1]
mov esi, dword [ebx + 4]
or eax, edi
mov dword [ebp - 0x14], esi
bsr ecx, eax
push esi
lea ecx, [ecx + 1]
shl edi, cl
lea ecx, [ebx + 0xc]
lea eax, [edi + edi]
push eax
call fcn.101ac8c0
mov ecx, dword [ebx + 4]
lea eax, [edi - 1]
mov dword [ebx + 0x18], eax
mov dword [ebx + 0x1c], edi
mov ecx, dword [ecx]
mov edx, ecx
cmp ecx, esi
je 0x101bcb20
movzx eax, byte [ecx + 8]
xor eax, 0x811c9dc5
mov edx, dword [edx]
imul edi, eax, 0x1000193
movzx eax, byte [ecx + 9]
xor edi, eax
movzx eax, byte [ecx + 0xa]
imul edi, edi, 0x1000193
xor edi, eax
movzx eax, byte [ecx + 0xb]
imul edi, edi, 0x1000193
xor edi, eax
imul eax, edi, 0x1000193
mov edi, dword [ebx + 0x18]
and edi, eax
mov eax, dword [ebx + 0xc]
mov ebx, dword [eax + edi*8]
lea eax, [eax + edi*8]
mov dword [ebp - 0x18], eax
cmp ebx, esi
jne 0x101bca92
mov dword [eax], ecx
mov dword [eax + 4], ecx
jmp 0x101bcb09
mov eax, dword [eax + 4]
mov edi, dword [ecx + 8]
cmp edi, dword [eax + 8]
jne 0x101bcacc
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp eax, ecx
je 0x101bcac4
mov ebx, dword [ecx + 4]
mov esi, dword [ebp - 0x10]
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0x14]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [eax + 4], ecx
jmp 0x101bcb09
mov edi, eax
cmp ebx, eax
je 0x101bcae6
mov eax, dword [eax + 4]
mov edi, eax
mov esi, dword [ecx + 8]
cmp esi, dword [eax + 8]
mov esi, dword [ebp - 0x14]
je 0x101bcb34
cmp ebx, edi
jne 0x101bcad2
mov eax, dword [ecx + 4]
mov dword [ebp - 0x10], eax
mov dword [eax], edx
mov ebx, dword [edx + 4]
mov dword [ebx], edi
mov eax, dword [edi + 4]
mov dword [eax], ecx
mov dword [edi + 4], ebx
mov edi, dword [ebp - 0x10]
mov dword [edx + 4], edi
mov dword [ecx + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [eax], ecx
mov ebx, dword [ebp - 0x1c]
mov ecx, edx
cmp edx, esi
jne 0x101bca41
nop word [eax + eax]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov ebx, dword [ecx + 4]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov esi, eax
mov dword [ebx], edx
mov edi, dword [edx + 4]
mov dword [edi], eax
mov eax, dword [eax + 4]
mov dword [eax], ecx
mov dword [esi + 4], edi
mov esi, dword [ebp - 0x14]
mov dword [edx + 4], ebx
mov dword [ecx + 4], eax
jmp 0x101bcb09
push 0x1005d560
call fcn.101c292a
int3
Function at 0x101bcd20
Capabilities:
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10200725
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x10252964]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
movzx eax, byte [ebx]
xor eax, 0x811c9dc5
imul ecx, eax, 0x1000193
movzx eax, byte [ebx + 1]
xor ecx, eax
movzx eax, byte [ebx + 2]
imul ecx, ecx, 0x1000193
xor ecx, eax
movzx eax, byte [ebx + 3]
imul ecx, ecx, 0x1000193
xor ecx, eax
imul eax, ecx, 0x1000193
mov ecx, esi
push eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x18]
push ebx
push eax
call fcn.101a4de0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x101bcda2
mov dword [edi], eax
xor al, al
jmp 0x101bce5f
cmp dword [esi + 8], 0xfffffff
je 0x101bce78
lea eax, [esi + 4]
mov dword [ebp - 0x24], eax
push 0x10
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0
call fcn.101c1316
mov ecx, dword [ebx + 4]
add esp, 4
mov dword [ebp - 0x20], eax
lea edx, [eax + 8]
mov eax, dword [ebx]
mov dword [edx], eax
mov dword [ebp - 0x1c], edx
mov dword [edx + 4], ecx
mov eax, dword [esi + 8]
inc eax
mov dword [ebp - 4], 1
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10046020]
mov eax, dword [esi + 0x1c]
cvtpd2ps xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10046020]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
comiss xmm1, dword [esi]
seta al
test al, al
je 0x101bce49
mov ecx, esi
call fcn.101bcbd0
mov ebx, dword [ebp - 0x10]
lea eax, [ebp - 0x18]
push ebx
push dword [ebp - 0x1c]
mov ecx, esi
push eax
call fcn.101a4de0
mov ecx, dword [eax]
jmp 0x101bce4f
mov ecx, dword [ebp - 0x18]
mov ebx, dword [ebp - 0x10]
push dword [ebp - 0x20]
push ecx
push ebx
mov ecx, esi
call fcn.101bcb70
mov dword [edi], eax
mov al, 1
mov byte [edi + 4], al
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
push 0x1005d544
call fcn.101c292a
int3
Function at 0x101bce90
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10201640
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x10252964]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20]
push 0xd
push eax
push 0x1005eb14
mov dword [ebp - 0x48], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
cmp eax, 0xc
jne 0x101bd027
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0xf
lea edx, [ecx + 1]
mov byte [ebp - 0x38], 0
mov al, byte [ecx]
inc ecx
test al, al
jne 0x101bcef2
sub ecx, edx
lea eax, [ebp - 0x20]
push ecx
push eax
lea ecx, [ebp - 0x38]
call fcn.1007e870
cmp dword [ebp - 0x24], 0x10
lea eax, [ebp - 0x38]
mov edi, dword [ebp - 0x38]
lea ecx, [ebp - 0x38]
mov edx, dword [ebp - 0x24]
cmovae eax, edi
cmovae ecx, edi
add eax, dword [ebp - 0x28]
mov dword [ebp - 0x48], eax
cmp ecx, eax
je 0x101bcf60
nop dword [eax + eax]
mov al, byte [ecx]
cmp al, 0x30
jl 0x101bcff4
cmp al, 0x39
jle 0x101bcf46
cmp al, 0x41
jl 0x101bcff4
cmp al, 0x46
jle 0x101bcf52
cmp al, 0x61
jl 0x101bcff4
cmp al, 0x66
jg 0x101bcff4
inc ecx
cmp ecx, dword [ebp - 0x48]
jne 0x101bcf30
xor ecx, ecx
lea eax, [ebp - 0x38]
cmp edx, 0x10
mov dword [ebp - 0x3c], ecx
xorps xmm1, xmm1
cmovae eax, edi
movq qword [ebp - 0x44], xmm1
cmp dword [ebp - 0x28], ecx
jbe 0x101bcf96
push dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x44]
push eax
call fcn.101d7d20
mov ecx, dword [ebp - 0x3c]
add esp, 0xc
movq xmm1, qword [ebp - 0x44]
mov edx, dword [ebp - 0x24]
mov byte [esi], 0
xorps xmm0, xmm0
movups xmmword [esi + 4], xmm0
movq qword [esi + 0x14], xmm0
mov byte [esi + 0x1c], 0
movq qword [esi + 0x1d], xmm0
mov dword [esi + 0x25], 0
mov byte [esi + 0x1c], 0
movq qword [esi + 0x1d], xmm1
mov dword [esi + 0x25], ecx
mov byte [esi + 0x1c], 1
cmp edx, 0x10
jb 0x101bd046
lea ecx, [edx + 1]
mov eax, edi
mov dword [ebp - 4], 0
cmp ecx, 0x1000
jb 0x101bd063
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101bd06f
jmp 0x101bd063
cmp edx, 0x10
jb 0x101bd027
lea ecx, [edx + 1]
mov eax, edi
mov dword [ebp - 4], 1
cmp ecx, 0x1000
jb 0x101bd01d
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x101bd06f
push ecx
push edi
call fcn.101c1346
add esp, 8
mov byte [esi], 0
xorps xmm0, xmm0
movups xmmword [esi + 4], xmm0
movq qword [esi + 0x14], xmm0
mov byte [esi + 0x1c], 0
movq qword [esi + 0x1d], xmm0
mov dword [esi + 0x25], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.101c1860
mov esp, ebp
pop ebp
ret
push ecx
push edi
call fcn.101c1346
add esp, 8
jmp 0x101bd046
call fcn.100f24b4
int3
Function at 0x101c0570
Capabilities:
Reference the vmware io port

Disassembly:
push ecx
push ebx
push esi
push edi
mov dword [esp + 0xc], 0
pushal
mov eax, 0x564d5868
mov ecx, 0xa
mov dx, 0x5658
in eax, dx
mov dword [esp + 0x2c], ebx
popal
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x101e22d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
test edx, edx
je 0x101e239c
push ebx
mov ebx, dword [esp + 0xc]
test ebx, ebx
je 0x101e239b
push edi
mov edi, dword [esp + 0x14]
xor ecx, ecx
test edi, edi
je 0x101e2396
push esi
cmp edi, 0x40
jb 0x101e237b
lea eax, [edi - 1]
lea esi, [edi - 1]
add eax, edx
add esi, ebx
cmp ebx, eax
ja 0x101e2310
cmp esi, edx
jae 0x101e237b
movaps xmm1, xmmword [0x100623a0]
lea esi, [edx + 0x30]
mov eax, edi
mov edi, edx
and eax, 0xffffffc0
sub edi, ebx
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x10]
push ebp
nop dword [eax + eax]
movups xmm0, xmmword [esi - 0x30]
add ecx, 0x40
lea esi, [esi + 0x40]
lea eax, [eax + 0x40]
mov ebp, ecx
pxor xmm0, xmm1
movups xmmword [eax - 0x50], xmm0
movups xmm0, xmmword [edi + eax - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x40], xmm0
movups xmm0, xmmword [esi - 0x50]
pxor xmm0, xmm1
movups xmmword [eax - 0x30], xmm0
movups xmm0, xmmword [esi - 0x40]
pxor xmm0, xmm1
movups xmmword [eax - 0x20], xmm0
cmp ecx, dword [esp + 0x14]
jb 0x101e2330
mov edi, dword [esp + 0x1c]
cmp ebp, edi
pop ebp
jae 0x101e2395
mov esi, edi
lea eax, [ecx + ebx]
sub edx, ebx
sub esi, ecx
mov cl, byte [eax + edx]
lea eax, [eax + 1]
xor cl, 0x67
mov byte [eax - 1], cl
sub esi, 1
jne 0x101e2384
pop esi
mov byte [ebx + edi], 0
pop edi
pop ebx
ret
Function at 0x412890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x10000]
push edi
or ebp, 0xffffffff
jmp 0x4128b2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4128b9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4128a8
mov eax, 1
add ebx, ebx
jne 0x4128cb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4128c0
jne 0x4128dc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4128c0
xor ecx, ecx
sub eax, 3
jb 0x4128f0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x412962
mov ebp, eax
add ebx, ebx
jne 0x4128fb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x412908
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x41292c
inc ecx
add ebx, ebx
jne 0x412918
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x41290d
jne 0x412929
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x41290d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x41294c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x41293d
jmp 0x4128ae
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x41294c
add edi, ecx
jmp 0x4128ae
pop esi
lea edi, [esi + 0x10000]
mov eax, dword [edi]
or eax, eax
je 0x4129b4
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x12000]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x12064]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x412969
mov ecx, edi
jns 0x412998
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 + 0x12068]
or eax, eax
je 0x4129ae
mov dword [ebx], eax
add ebx, 4
jmp 0x412986
call dword [esi + 0x12078]
mov ebp, dword [esi + 0x1206c]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1ff]
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 0x4129e8
sub esp, 0xffffff80
jmp 0x40fcac
Function at 0xa4f370
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 0xa4f38e
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 0xa78074
push ecx
mov edi, eax
call fcn.00a63198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa4f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a6302e
push esi
call fcn.00a62fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa52850
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 0xa528ae
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 0xa7d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa528ba
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.00a631e1
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 0xa528ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xa7d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa5292a
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.00a64082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa52957
mov word [eax], si
add eax, 2
push eax
call fcn.00a64030
add esp, 4
jmp 0xa52959
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 0xa528ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa528b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa530c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa78458
push ecx
call fcn.00a631e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a631e1
add esp, 0x10
jmp 0xa530d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a6320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a62dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a53050
mov eax, dword [0xa7d728]
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 0xa5313b
push esi
call fcn.00a52fb0
add esp, 4
mov dword [0xa7d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa5314c
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.00a52ff0
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 0xa56440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa564b7
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 0xa5648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa56471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa5647e
add edx, ecx
cmp ebx, edx
jb 0xa5648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa56467
xor ecx, ecx
jmp 0xa564a2
test eax, eax
jne 0xa56492
xor ecx, ecx
jmp 0xa564a2
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.00a563c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xa568f0
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 0xa56921
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 0xa56946
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 0xa5696e
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 0xa56993
push ecx
push esi
call fcn.00a564c0
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 0xa57c00
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 0xa57c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xa57c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xa57c38
add edx, eax
cmp ebx, edx
jb 0xa57c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xa57c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xa57c50
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 0xa57c70
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 0xa57cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa57c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa57ca8
add edx, ecx
cmp ebx, edx
jb 0xa57cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa57c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xa57f60
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.00a64145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xa57ffb
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 0xa57fdd
lea eax, [esp + 0x18]
push eax
jmp 0xa57fe2
push 0xa7d720
call fcn.00a63fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xa57fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xa57f40
push 4
push ecx
push eax
call fcn.00a6443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xa58310
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.00a64145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xa583ab
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 0xa5838d
lea eax, [esp + 0x18]
push eax
jmp 0xa58392
push 0xa7d720
call fcn.00a63fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xa58360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xa57f40
push 4
push ecx
push eax
call fcn.00a6443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xa59f20
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 0xa59fd7
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 0xa59fcf
push ebx
push edi
push 0xa7d770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xa59fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xa7d770
push esi
call ebx
test eax, eax
je 0xa59fae
mov ebp, 3
cmp dword [0xa7d774], ebp
jne 0xa59faa
push 0x3e8
call edi
push 0xa7d770
push esi
call ebx
test eax, eax
jne 0xa59f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xa59fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xa59fbb
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