joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4076ee
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x434
lea ecx, [ebp - 0x18]
mov eax, dword [ebp + 0xc]
mov esi, 0x200
mov dword [ecx - 4], esp
or dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x407d40
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
lea ecx, [ebp - 0x28]
mov eax, dword [eax + 4]
and dword [ecx], 0
mov dword [ecx + 4], 2
and dword [ecx + 8], 0
mov dword [ebp - 0x30], eax
cmp esi, 0x201
jae 0x407753
lea eax, [ebp - 0x440]
mov ebx, esi
mov edi, 0x200
mov esi, eax
jmp 0x407771
sub esi, dword [ebp - 0x20]
and dword [ebp - 0x10], 0
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.00405431
pop eax
pop ecx
mov edi, dword [ebp - 0x28]
mov esi, dword [ebp - 0x24]
mov ebx, edi
mov dword [ebp - 0x20], edi
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
mov dword [ebp - 0x2c], esi
push esi
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov esi, eax
test eax, eax
jne 0x407797
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4077f3
cmp esi, ebx
jne 0x4077b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x407831
lea esi, [ebx + ebx]
test ebx, ebx
mov eax, 0xffffffff
cmovs esi, eax
jmp 0x40773a
ja 0x40773a
and dword [ebp - 0x10], 0
cmp esi, edi
ja 0x40784b
lea eax, [ebp - 0x40]
push esi
push dword [ebp - 0x2c]
push eax
call fcn.00408ada
add esp, 0xc
mov esi, dword [ebp + 8]
movsd xmm0, qword [ebp - 0x40]
movsd xmm1, qword [ebp - 0x38]
movsd qword [esi + 8], xmm1
movsd qword [esi], xmm0
jmp 0x407811
lea esi, [ebp - 0x40]
mov ecx, esi
call fcn.004072b4
mov eax, dword [esi]
mov ecx, dword [esi + 4]
mov esi, dword [ebp + 8]
mov dword [esi + 8], ecx
mov dword [esi + 4], eax
mov dword [esi], 0x80000000
lea eax, [ebp - 0x28]
push eax
call fcn.00408a8f
pop eax
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
mov eax, esi
add esp, 0x434
pop esi
pop edi
pop ebx
pop ebp
ret
and dword [ebp - 0x10], 0
push 0x424648
push 0x28
push str.internal_error:_entered_unreachable_codeBEB
call fcn.004216d0
add esp, 0xc
jmp 0x40785a
push 0x424610
push edi
push esi
call fcn.00421514
add esp, 0xc
ud2
Function at 0x41245f
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x24]
lea eax, [edx + eax*2]
mov dword [esp], eax
xor eax, eax
cmp edx, dword [esp]
je 0x4124bd
movzx ebp, byte [edx + 1]
cmp byte [edx], ch
lea esi, [edx + 2]
lea ebx, [eax + ebp]
jne 0x4124a3
cmp eax, ebx
ja 0x412504
cmp ebx, dword [esp + 0x20]
ja 0x4124f5
add eax, dword [esp + 0x1c]
test ebp, ebp
je 0x4124ab
dec ebp
cmp byte [eax], cl
lea eax, [eax + 1]
jne 0x412495
jmp 0x4124b1
mov edx, esi
mov eax, ebx
jbe 0x412474
jmp 0x4124bd
mov edx, esi
mov eax, ebx
jmp 0x412474
xor eax, eax
and al, 1
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x28]
movzx ecx, cx
mov al, 1
add ebx, edi
cmp edi, ebx
je 0x4124b3
movzx edx, byte [edi]
lea esi, [edi + 1]
test dl, dl
js 0x4124da
mov edi, esi
jmp 0x4124ed
cmp esi, ebx
je 0x412510
movzx esi, byte [edi + 1]
and edx, 0x7f
add edi, 2
shl edx, 8
or edx, esi
sub ecx, edx
js 0x4124b3
xor al, 1
jmp 0x4124c8
push 0x4273b0
push dword [esp + 0x24]
push ebx
call fcn.00421514
push 0x4273b0
push ebx
push eax
call fcn.00421525
push 0x4273a0
call fcn.004215b8

Function at 0x41327a
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x4132b9
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4132b9
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4132b9
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x4132b9
cmp dword [ecx + 0x74], 0xe
jbe 0x4132b9
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x41a513
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 0x41a5b0
push ebx
push esi
call fcn.0041a4dc
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.0041a470
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x41a55d
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a5af
push edi
push eax
call fcn.0041b130
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x41a57d
call fcn.00418fd1
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x41a5ae
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0041a470
add esp, 0x20
test eax, eax
jne 0x41a59c
push edi
call fcn.00418fd1
jmp 0x41a5a4
push ebx
call fcn.00418fd1
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 0x41b8ad
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429b80
push 0x429b78
push str.FlsAlloc
push 0x1f
call fcn.0041b76c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b8e1
push dword [ebp + 8]
mov ecx, esi
call dword [0x422170]
call esi
jmp 0x41b8e7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x41b92b
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429b90
push 0x429b88
push str.FlsGetValue
push 0x21
call fcn.0041b76c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b962
push dword [ebp + 8]
mov ecx, esi
call dword [0x422170]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x41b96a
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x429b98
push 0x429b90
push str.FlsSetValue
push 0x22
call fcn.0041b76c
mov esi, eax
add esp, 0x10
test esi, esi
je 0x41b9a4
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x422170]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x420e00
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x420e2d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x420e2d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40915c
mov ecx, 0x70581088
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x431024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x236f6140
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x431084
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x10e0f058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.10e0f1a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x10e0f07e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10e0f06a
add dl, dl
jne 0x10e0f089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10e0f0dc
xor eax, eax
add dl, dl
jne 0x10e0f096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x10e0f17d
add dl, dl
jne 0x10e0f0a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10e0f0b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10e0f0bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10e0f0c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x10e0f0d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x10e0f075
mov eax, 1
add dl, dl
jne 0x10e0f0ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x10e0f0f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10e0f0e1
sub eax, ebx
mov ebx, 1
jne 0x10e0f128
mov ecx, 1
add dl, dl
jne 0x10e0f10e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10e0f119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10e0f105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10e0f075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x10e0f13f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x10e0f14a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x10e0f136
cmp eax, 0x7d00
jae 0x10e0f16d
cmp eax, 0x500
jb 0x10e0f168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10e0f075
cmp eax, 0x7f
ja 0x10e0f170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x10e0f075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x10e0f19e
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 0x10e0f075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x46ca80
Capabilities:
Parse pe header

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

Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
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 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
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 + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
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 0x40810b
sub esp, 0xffffff80
jmp 0x402130
Function at 0xa73370
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 0xa7338e
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 0xa9c074
push ecx
mov edi, eax
call fcn.00a87198
mov esi, eax
add esp, 8
test esi, esi
jne 0xa733cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00a8702e
push esi
call fcn.00a86fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xa76850
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 0xa768ae
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 0xaa1720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa768ba
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.00a871e1
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 0xa768ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xaa1720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xa7692a
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.00a88082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xa76957
mov word [eax], si
add eax, 2
push eax
call fcn.00a88030
add esp, 4
jmp 0xa76959
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 0xa768ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xa768b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xa770c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xa9c458
push ecx
call fcn.00a871e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00a871e1
add esp, 0x10
jmp 0xa770d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00a8720b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00a86dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00a77050
mov eax, dword [0xaa1728]
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 0xa7713b
push esi
call fcn.00a76fb0
add esp, 4
mov dword [0xaa1728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xa7714c
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.00a76ff0
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 0xa7a440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xa7a4b7
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 0xa7a48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa7a471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa7a47e
add edx, ecx
cmp ebx, edx
jb 0xa7a48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa7a467
xor ecx, ecx
jmp 0xa7a4a2
test eax, eax
jne 0xa7a492
xor ecx, ecx
jmp 0xa7a4a2
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.00a7a3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xa7a8f0
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 0xa7a921
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 0xa7a946
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 0xa7a96e
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 0xa7a993
push ecx
push esi
call fcn.00a7a4c0
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 0xa7bc00
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 0xa7bc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xa7bc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xa7bc38
add edx, eax
cmp ebx, edx
jb 0xa7bc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xa7bc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xa7bc50
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 0xa7bc70
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 0xa7bcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xa7bc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xa7bca8
add edx, ecx
cmp ebx, edx
jb 0xa7bcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xa7bc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xa7bf60
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.00a88145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xa7bffb
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 0xa7bfdd
lea eax, [esp + 0x18]
push eax
jmp 0xa7bfe2
push 0xaa1720
call fcn.00a87fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xa7bfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xa7bf40
push 4
push ecx
push eax
call fcn.00a8843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xa7c310
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.00a88145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xa7c3ab
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 0xa7c38d
lea eax, [esp + 0x18]
push eax
jmp 0xa7c392
push 0xaa1720
call fcn.00a87fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xa7c360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xa7bf40
push 4
push ecx
push eax
call fcn.00a8843f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xa7df20
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 0xa7dfd7
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 0xa7dfcf
push ebx
push edi
push 0xaa1770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xa7dfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xaa1770
push esi
call ebx
test eax, eax
je 0xa7dfae
mov ebp, 3
cmp dword [0xaa1774], ebp
jne 0xa7dfaa
push 0x3e8
call edi
push 0xaa1770
push esi
call ebx
test eax, eax
jne 0xa7df8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xa7dfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xa7dfbb
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