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

Disassembly:
sub esp, 4
push ebx
push esi
push edi
xor ebx, ebx
push ebp
xor edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
cmp dword [0x435d70], ebx
jne 0x42794f
call esi
cmp eax, ebx
mov edi, eax
je 0x42792d
mov dword [0x435d70], 1
jmp 0x42794f
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
je 0x427945
mov dword [0x435d70], 2
jmp 0x42794f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x435d70], 1
jne 0x4279fe
test edi, edi
jne 0x427972
call esi
mov edi, eax
test edi, edi
jne 0x427972
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp word [edi], 0
mov esi, edi
je 0x42798c
add esi, 2
cmp word [esi], 0
jne 0x42797a
add esi, 2
cmp word [esi], 0
jne 0x42797a
sub esi, edi
push 0
sar esi, 1
push 0
inc esi
push 0
push 0
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov ebp, eax
test ebp, ebp
je 0x4279ed
push ebp
call fcn.00423d30
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x4279ed
push 0
push 0
push ebp
push ebx
push esi
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
test eax, eax
jne 0x4279dc
push ebx
call fcn.00423ca0
add esp, 4
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x435d70], 2
jne 0x427a82
test ebx, ebx
jne 0x427a21
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov ebx, eax
test ebx, ebx
jne 0x427a21
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov ebp, ebx
cmp byte [ebx], 0
je 0x427a36
inc ebp
cmp byte [ebp], 0
jne 0x427a28
inc ebp
cmp byte [ebp], 0
jne 0x427a28
sub ebp, ebx
inc ebp
push ebp
call fcn.00423d30
mov dword [esp + 0x14], eax
add esp, 4
test eax, eax
jne 0x427a5b
push ebx
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov edi, dword [esp + 0x10]
mov esi, ebx
mov ecx, ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
push ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, dword [esp + 0x10]
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x42d5f0
Capabilities:
Set environment variable

Disassembly:
sub esp, 4
cmp dword [esp + 8], 0
push ebx
push esi
push edi
push ebp
je 0x42d82e
mov edx, dword [esp + 0x18]
push 0x3d
push edx
call fcn.0042ded0
add esp, 8
mov ebp, eax
test ebp, ebp
je 0x42d82e
cmp ebp, dword [esp + 0x18]
je 0x42d82e
cmp byte [ebp + 1], 1
sbb eax, eax
mov ecx, dword [0x435728]
neg eax
mov dword [esp + 0x10], eax
cmp dword [0x43572c], ecx
jne 0x42d64d
push ecx
call fcn.0042d8a0
add esp, 4
mov dword [0x435728], eax
cmp dword [0x435728], 0
jne 0x42d6fd
cmp dword [esp + 0x1c], 0
je 0x42d684
cmp dword [0x435730], 0
je 0x42d684
call fcn.0042ab70
test eax, eax
je 0x42d6fd
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [esp + 0x10], 0
je 0x42d695
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
cmp dword [0x435728], 0
jne 0x42d6c9
push 4
call fcn.00423d30
add esp, 4
mov dword [0x435728], eax
test eax, eax
jne 0x42d6be
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x435728]
mov dword [eax], 0
cmp dword [0x435730], 0
jne 0x42d6fd
push 4
call fcn.00423d30
add esp, 4
mov dword [0x435730], eax
test eax, eax
jne 0x42d6f2
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, dword [0x435730]
mov dword [eax], 0
mov esi, dword [0x435728]
sub ebp, dword [esp + 0x18]
mov edx, dword [esp + 0x18]
push ebp
push edx
call fcn.0042d840
add esp, 8
mov edi, eax
test edi, edi
jl 0x42d765
cmp dword [esi], 0
je 0x42d765
cmp dword [esp + 0x10], 0
je 0x42d75c
lea ebx, [esi + edi*4]
mov eax, dword [ebx]
push eax
call fcn.00423ca0
add esp, 4
cmp dword [ebx], 0
je 0x42d749
mov eax, dword [ebx + 4]
add ebx, 4
inc edi
mov dword [ebx - 4], eax
cmp dword [ebx], 0
jne 0x42d73a
shl edi, 2
push edi
push esi
call fcn.00424e80
add esp, 8
test eax, eax
je 0x42d7ad
jmp 0x42d7a8
mov edx, dword [esp + 0x18]
mov dword [esi + edi*4], edx
jmp 0x42d7ad
cmp dword [esp + 0x10], 0
jne 0x42d824
test edi, edi
jge 0x42d776
neg edi
lea eax, [edi*4 + 8]
push eax
push esi
call fcn.00424e80
add esp, 8
test eax, eax
jne 0x42d798
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
lea ecx, [eax + edi*4]
mov edx, dword [esp + 0x18]
mov dword [ecx], edx
mov dword [ecx + 4], 0
mov dword [0x435728], eax
cmp dword [esp + 0x1c], 0
je 0x42d81a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
inc ecx
push ecx
call fcn.00423d30
add esp, 4
mov ebx, eax
test ebx, ebx
je 0x42d81a
mov edi, dword [esp + 0x18]
mov ecx, 0xffffffff
sub eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
shr ecx, 2
mov esi, edi
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
cmp dword [esp + 0x10], 1
sbb eax, eax
lea ecx, [ebp + ebx]
mov byte [ecx], 0
lea ecx, [ecx + 1]
and eax, ecx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
push ebx
call fcn.00423ca0
add esp, 4
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
mov eax, 0xffffffff
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret
Function at 0x42e9c0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x104
lea eax, [esp]
push esi
xor esi, esi
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x42e9f6
cmp byte [esp + 5], 0x3a
jne 0x42e9f6
xor eax, eax
mov al, byte [esp + 4]
push eax
call fcn.00424620
add esp, 4
lea esi, [eax - 0x40]
mov eax, esi
pop esi
add esp, 0x104
ret
Function at 0x30075a09
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
push edi
mov ebx, ecx
jne 0x30075a22
push 0x80004005
call fcn.300ba0cb
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x30075a24
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x3007601f
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x3003fd00]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
push 0x2001f
mov ebx, ecx
push edi
push dword [ebx]
xor esi, esi
lea ecx, [ebp - 0x208]
mov dword [ebp - 0x214], edi
mov dword [ebp - 0x208], esi
call fcn.3007287e
cmp eax, esi
mov dword [ebp - 0x210], eax
je 0x300760a9
cmp eax, 2
je 0x30076087
cmp eax, 3
je 0x30076087
push eax
push edi
push 0x30076128
push esi
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.3002735c
add esp, 0x18
lea ecx, [ebp - 0x208]
call fcn.30072867
mov eax, dword [ebp - 0x210]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.300023ac
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x300760c7
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x208]
call fcn.3007601f
cmp eax, esi
jne 0x3007610f
lea eax, [ebp - 0x21c]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x204]
push eax
push esi
push dword [ebp - 0x208]
mov dword [ebp - 0x20c], 0x100
call edi
test eax, eax
je 0x300760b1
lea ecx, [ebp - 0x208]
call fcn.30072867
push dword [ebp - 0x214]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
lea ecx, [ebp - 0x208]
mov esi, eax
call fcn.30072867
mov eax, esi
jmp 0x30076098

Function at 0x3008af51
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
mov eax, dword [esi]
push esi
call dword [eax + 4]
and dword [ebp - 8], 0
push 0x3011fb44
push 0
push esi
push 0x3008ad9c
push 0
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xc], 0xc
mov dword [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x44], eax
jne 0x3008afae
mov eax, dword [esi]
push esi
call dword [eax + 8]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x3008afb0
and eax, 0xffff
or eax, 0x80070000
jmp 0x3008afb0
xor eax, eax
pop esi
leave
ret
Function at 0x300ad3e6
Capabilities:
Enumerate internet cache

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
push dword [ebp + 8]
xor edi, edi
mov dword [ebp - 4], edi
mov ebx, 0x2000
xor esi, esi
mov dword [ebp - 0xc], edi
call fcn.30005534
test al, al
je 0x300ad414
mov edi, 0x80070057
jmp 0x300ad569
mov eax, dword [ebp + 0xc]
cmp eax, edi
je 0x300ad40a
mov dword [eax], edi
mov dword [ebp - 4], ebx
call fcn.300058b3
push dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0xc]
mov esi, eax
cmp esi, edi
jne 0x300ad43e
mov edi, 0x8007000e
jmp 0x300ad569
lea eax, [ebp - 4]
push eax
push esi
push edi
mov edi, dword [sym.imp.WININET.dll_FindFirstUrlCacheEntryW]
call edi
test eax, eax
mov dword [ebp - 8], eax
jne 0x300ad4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x300ad4a2
push ebx
push 0
push esi
call fcn.3000235e
add esp, 0xc
call fcn.300058b3
push dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
jne 0x300ad489
mov edi, 0x8007000e
jmp 0x300ad55a
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push esi
push 0
call edi
test eax, eax
mov dword [ebp - 8], eax
jne 0x300ad4b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x300ad4b0
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
jmp 0x300ad55a
push dword [esi + 8]
push dword [ebp + 8]
call fcn.30005632
test eax, eax
jne 0x300ad53d
mov edi, dword [sym.imp.WININET.dll_FindNextUrlCacheEntryW]
push ebx
push 0
push esi
mov dword [ebp - 4], ebx
call fcn.3000235e
add esp, 0xc
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
call edi
test eax, eax
jne 0x300ad52e
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x300ad4a2
push ebx
push 0
push esi
call fcn.3000235e
add esp, 0xc
call fcn.300058b3
push dword [ebp - 4]
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x10]
mov esi, eax
test esi, esi
je 0x300ad47f
mov ebx, dword [ebp - 4]
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp - 8]
call edi
test eax, eax
je 0x300ad49c
push dword [esi + 8]
push dword [ebp + 8]
call fcn.30005632
test eax, eax
je 0x300ad4cc
push dword [esi + 4]
lea eax, [ebp - 0xc]
push eax
call fcn.30011d17
mov edi, eax
test edi, edi
jl 0x300ad55a
push dword [ebp + 0xc]
lea ecx, [ebp - 0xc]
call fcn.30011dbe
cmp dword [ebp - 8], 0
je 0x300ad569
push dword [ebp - 8]
call dword [sym.imp.WININET.dll_FindCloseUrlCache]
call fcn.300058b3
mov ecx, dword [eax]
push esi
push eax
call dword [ecx + 0x14]
lea eax, [ebp - 0xc]
push eax
call fcn.30011e23
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x300ba201
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push ebx
lea ebx, [ecx + 4]
test ebx, ebx
push esi
push edi
je 0x300ba23f
mov edi, dword [ebp + 0xc]
lea esi, [edi + 4]
test esi, esi
je 0x300ba23f
call fcn.300ba195
test al, al
je 0x300ba23f
mov ecx, edi
call fcn.300ba195
test al, al
je 0x300ba23f
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
jmp 0x300ba241
xor al, al
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x94c370
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 0x94c38e
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 0x975074
push ecx
mov edi, eax
call fcn.00960198
mov esi, eax
add esp, 8
test esi, esi
jne 0x94c3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0096002e
push esi
call fcn.0095ffb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x94f850
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 0x94f8ae
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 0x97a720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x94f8ba
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.009601e1
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 0x94f8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x97a720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x94f92a
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.00961082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x94f957
mov word [eax], si
add eax, 2
push eax
call fcn.00961030
add esp, 4
jmp 0x94f959
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 0x94f8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x94f8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x9500c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x975458
push ecx
call fcn.009601e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.009601e1
add esp, 0x10
jmp 0x9500d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0096020b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0095fdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00950050
mov eax, dword [0x97a728]
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 0x95013b
push esi
call fcn.0094ffb0
add esp, 4
mov dword [0x97a728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x95014c
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.0094fff0
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 0x953440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x9534b7
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 0x95348e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x953471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x95347e
add edx, ecx
cmp ebx, edx
jb 0x95348a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x953467
xor ecx, ecx
jmp 0x9534a2
test eax, eax
jne 0x953492
xor ecx, ecx
jmp 0x9534a2
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.009533c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x9538f0
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 0x953921
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 0x953946
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 0x95396e
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 0x953993
push ecx
push esi
call fcn.009534c0
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 0x954c00
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 0x954c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x954c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x954c38
add edx, eax
cmp ebx, edx
jb 0x954c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x954c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x954c50
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 0x954c70
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 0x954cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x954c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x954ca8
add edx, ecx
cmp ebx, edx
jb 0x954cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x954c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x954f60
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.00961145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x954ffb
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 0x954fdd
lea eax, [esp + 0x18]
push eax
jmp 0x954fe2
push 0x97a720
call fcn.00960fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x954fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x954f40
push 4
push ecx
push eax
call fcn.0096143f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x955310
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.00961145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x9553ab
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 0x95538d
lea eax, [esp + 0x18]
push eax
jmp 0x955392
push 0x97a720
call fcn.00960fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x955360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x954f40
push 4
push ecx
push eax
call fcn.0096143f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x956f20
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 0x956fd7
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 0x956fcf
push ebx
push edi
push 0x97a770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x956fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x97a770
push esi
call ebx
test eax, eax
je 0x956fae
mov ebp, 3
cmp dword [0x97a774], ebp
jne 0x956faa
push 0x3e8
call edi
push 0x97a770
push esi
call ebx
test eax, eax
jne 0x956f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x956fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x956fbb
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