joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42cf8e
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, dword [esp + 0xc]
or dword [esi + 0x3c], 0xffffffff
push edi
xor ebx, ebx
push ebx
push dword [esp + 0x18]
lea eax, [esi + 0x1c]
push eax
call main
mov edi, eax
cmp edi, ebx
jge 0x42cfbb
push 0x44bae2
jmp 0x42d0a0
mov edi, dword [sym.imp.kernel32.dll_CreateEventW]
push ebx
push ebx
push 1
push ebx
call edi
mov dword [esi + 0x24], eax
cmp eax, ebx
jne 0x42d005
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, ebx
jle 0x42cfe3
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x42cfee
mov edi, 0x80004005
push edi
push 0x78
push 0x44b6b0
call fcn.004314ce
push 0x44baba
jmp 0x42d0a0
push ebx
push ebx
push 1
push ebx
call edi
mov dword [esi + 0x28], eax
cmp eax, ebx
jne 0x42d046
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, ebx
jle 0x42d027
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x42d032
mov edi, 0x80004005
push edi
push 0x7b
push 0x44b6b0
call fcn.004314ce
push 0x44ba8e
jmp 0x42d0a0
push ebx
push ebx
push esi
push 0x42cd46
push ebx
push ebx
call dword [sym.imp.kernel32.dll_CreateThread]
mov dword [esi + 0x20], eax
cmp eax, ebx
jne 0x42d090
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, ebx
jle 0x42d071
and eax, 0xffff
or eax, 0x80070000
mov edi, eax
cmp edi, ebx
jl 0x42d07c
mov edi, 0x80004005
push edi
push 0x7f
push 0x44b6b0
call fcn.004314ce
push 0x44ba6a
jmp 0x42d0a0
call main
mov edi, eax
cmp edi, ebx
jge 0x42d0a8
push 0x44ba42
push edi
call fcn.004314ba
pop ecx
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
ret 8

Function at 0x43081c
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push esi
mov esi, dword [esp + 0xc]
push 0x104
push esi
call fcn.0042e9c4
test eax, eax
js 0x43084e
push dword [esi]
push 0
push 0
push dword [esp + 0x14]
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
js 0x43084e
push esi
call main
pop esi
ret 8
Function at 0x431192
Capabilities:
Get hostname

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0x3a0], eax
push ebx
push esi
push edi
mov edi, dword [0x44fc60]
mov eax, 0x104
push eax
mov dword [ebp - 0x80], eax
xor ebx, ebx
lea eax, [ebp + 0x198]
push eax
push ebx
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 0x74], ebx
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov esi, 0x208
test eax, eax
jne 0x4311f4
push esi
lea eax, [ebp + 0x198]
push ebx
push eax
call fcn.00408720
add esp, 0xc
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x198]
push eax
call main
test eax, eax
jns 0x431212
mov dword [ebp - 0x78], ebx
mov dword [ebp - 0x7c], ebx
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.kernel32.dll_GetComputerNameW]
test eax, eax
jne 0x43122d
lea eax, [ebp - 0x70]
mov byte [eax], bl
inc eax
dec esi
jne 0x431227
push ebx
lea eax, [ebp - 0x74]
push eax
call main
push dword [ebp - 0x74]
xor esi, esi
push 0x44c72c
inc esi
push esi
call fcn.0043110a
mov eax, dword [ebp - 0x7c]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
mov eax, dword [ebp - 0x78]
movzx ecx, ax
push ecx
shr eax, 0x10
push eax
lea eax, [ebp + 0x198]
push eax
push 0x44c70e
push esi
call fcn.0043110a
lea eax, [ebp - 0x70]
push eax
push 0x44c6fe
push esi
call fcn.0043110a
mov eax, dword [0x44fc5c]
add esp, 0x34
sub eax, ebx
je 0x4312ac
dec eax
je 0x4312a4
dec eax
je 0x43129c
dec eax
jne 0x4312b2
mov edi, dword [0x44fc6c]
jmp 0x4312b2
mov edi, dword [0x44fc68]
jmp 0x4312b2
mov edi, dword [0x44fc64]
jmp 0x4312b2
mov edi, dword [0x44fc70]
push edi
push 0x44c6e2
push esi
call fcn.0043110a
add esp, 0xc
cmp dword [ebp - 0x74], ebx
pop edi
pop esi
pop ebx
je 0x4312d1
push dword [ebp - 0x74]
call fcn.0042ead8
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
xor eax, eax
call fcn.00408498
add ebp, 0x3a4
leave
ret
Function at 0x434898
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x70]
sub esp, 0x120
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0x6c], eax
push ebx
mov ebx, dword [ebp + 0x7c]
push edi
mov edi, dword [ebp + 0x78]
push 0x11c
lea eax, [ebp - 0xb0]
push 0
push eax
call fcn.00408720
add esp, 0xc
cmp dword [0x450c50], 0
jne 0x4349a9
lea eax, [ebp - 0xb0]
push eax
mov dword [ebp - 0xb0], 0x11c
call dword [sym.imp.kernel32.dll_GetVersionExW]
movzx eax, word [ebp + 0x64]
movzx ecx, word [ebp + 0x66]
shl eax, 0x10
or eax, ecx
cmp dword [ebp - 0xac], 4
mov dword [0x450c54], eax
jne 0x43491b
mov dword [0x450c50], 1
jmp 0x4349a9
cmp dword [ebp - 0xac], 5
jne 0x434968
cmp dword [ebp - 0xa8], 0
jne 0x434939
mov dword [0x450c50], 2
jmp 0x4349a9
cmp dword [ebp - 0xa8], 1
jne 0x43494e
mov dword [0x450c50], 3
jmp 0x4349a9
xor eax, eax
cmp dword [ebp - 0xa8], 2
setne al
dec eax
and eax, 0xfffffffb
add eax, 9
mov dword [0x450c50], eax
jmp 0x4349a9
cmp dword [ebp - 0xac], 6
jne 0x43499f
cmp dword [ebp - 0xa8], 0
jne 0x434988
xor eax, eax
cmp byte [ebp + 0x6a], 1
setne al
add eax, 5
jmp 0x434961
cmp dword [ebp - 0xa8], 1
jne 0x43499f
xor eax, eax
cmp byte [ebp + 0x6a], 1
setne al
add eax, 7
jmp 0x434961
mov dword [0x450c50], 9
mov eax, dword [0x450c50]
mov ecx, dword [ebp + 0x6c]
mov dword [edi], eax
mov eax, dword [0x450c54]
pop edi
mov dword [ebx], eax
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0x70
leave
ret 8
Function at 0x434bf6
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0xf98]
mov eax, 0x1018
call fcn.0040b8c0
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0xf94], eax
mov eax, dword [ebp + 0xfa0]
push ebx
mov ebx, dword [ebp + 0xfb0]
push esi
mov dword [ebp - 0x7c], eax
mov eax, dword [ebp + 0xfa4]
xor esi, esi
push edi
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x70], esi
xor edi, edi
mov ecx, dword [ebp + 0xfa8]
xor edx, edx
cmp ecx, edx
jne 0x434c56
cmp dword [ebp + 0xfac], edx
jne 0x434c56
mov dword [ebp - 0x74], 0x1000
jmp 0x434c7e
mov eax, dword [ebp + 0xfac]
sub ecx, edi
sbb eax, esi
cmp eax, edx
jb 0x434c78
ja 0x434c6e
cmp ecx, 0x1000
jbe 0x434c78
mov ecx, 0x1000
mov dword [ebp - 0x74], edx
jmp 0x434c7b
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x74], ecx
push edx
lea eax, [ebp - 0x74]
push eax
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.kernel32.dll_ReadFile]
test eax, eax
je 0x434cfb
cmp dword [ebp - 0x74], 0
je 0x434cb3
push dword [ebp - 0x74]
lea eax, [ebp - 0x6c]
push eax
push dword [ebp - 0x80]
call main
mov dword [ebp - 0x70], eax
test eax, eax
js 0x434cde
add edi, dword [ebp - 0x74]
adc esi, 0
cmp esi, dword [ebp + 0xfac]
ja 0x434cd5
jb 0x434ccb
cmp edi, dword [ebp + 0xfa8]
jae 0x434cd5
cmp dword [ebp - 0x74], 0
jne 0x434c39
test ebx, ebx
je 0x434cde
mov dword [ebx], edi
mov dword [ebx + 4], esi
mov ecx, dword [ebp + 0xf94]
mov eax, dword [ebp - 0x70]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0xf98
leave
ret 0x14
call dword [sym.imp.kernel32.dll_GetLastError]
test eax, eax
jle 0x434d0f
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x70], eax
test eax, eax
jl 0x434d1d
mov dword [ebp - 0x70], 0x80004005
push dword [ebp - 0x70]
push 0x36c
push 0x44ca86
call fcn.004314ce
jmp 0x434cde

Function at 0x43572e
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push esi
push dword [esp + 8]
xor esi, esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x435753
test al, 0x10
je 0x435753
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x435750
mov dword [ecx], eax
xor esi, esi
inc esi
mov eax, esi
pop esi
ret 8
Function at 0x43575a
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x10]
push esi
push ebp
push ebx
xor esi, esi
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x435821
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
je 0x435821
cmp eax, 3
je 0x43579e
push esi
push ebx
call fcn.0043572e
test eax, eax
jne 0x435821
movzx eax, word [ebx]
push edi
xor edi, edi
mov ecx, ebx
test ax, ax
je 0x4357c2
cmp ax, 0x5c
jne 0x4357b3
mov edi, ecx
add ecx, 2
movzx eax, word [ecx]
test ax, ax
jne 0x4357ab
test edi, edi
jne 0x4357d6
mov esi, 0x80070003
push esi
push 0x7a
push 0x44caba
call fcn.004314ce
jmp 0x435820
push ebp
xor eax, eax
push ebx
mov word [edi], ax
call fcn.0043575a
mov esi, eax
push 0x5c
pop eax
mov word [edi], ax
test esi, esi
js 0x435820
push ebp
push ebx
call dword [sym.imp.kernel32.dll_CreateDirectoryW]
test eax, eax
jne 0x43581e
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0xb7
jne 0x43580c
xor esi, esi
inc esi
jmp 0x435820
test eax, eax
jle 0x43581a
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
jmp 0x435820
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x436b5c
Capabilities:
Parse url

Disassembly:
mov edi, edi
push ebp
lea ebp, [esp - 0x23f0]
mov eax, 0x2470
call fcn.0040b8c0
mov eax, dword [0x44f9f8]
xor eax, ebp
mov dword [ebp + 0x23ec], eax
mov eax, dword [ebp + 0x23f8]
and dword [ebp - 0x2c], 0
mov dword [ebp - 0x44], eax
mov eax, dword [ebp + 0x2404]
push ebx
mov ebx, dword [ebp + 0x23fc]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x2408]
push esi
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x240c]
push edi
mov edi, dword [ebp + 0x2400]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x2410]
push 0x3c
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp + 0x2414]
pop esi
push esi
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x80]
push 0
push eax
call fcn.00408720
mov dword [ebp - 0x80], esi
xor esi, esi
add esp, 0xc
cmp edi, esi
je 0x436bf1
lea eax, [ebp + 0x1fe0]
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], 0x101
mov eax, 0x81
cmp dword [ebp - 0x38], esi
je 0x436c07
lea ecx, [ebp + 0x22e8]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x34], esi
je 0x436c18
lea ecx, [ebp + 0x21e4]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], eax
mov eax, 0x801
cmp dword [ebp - 0x3c], esi
je 0x436c2e
lea ecx, [ebp + 0xfdc]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x30], esi
je 0x436c3c
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], eax
lea eax, [ebp - 0x80]
push eax
push 0x90000000
push esi
push dword [ebp - 0x44]
call dword [sym.imp.WININET.dll_InternetCrackUrlW]
test eax, eax
jne 0x436c89
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, esi
jle 0x436c67
and eax, 0xffff
or eax, 0x80070000
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436c75
mov dword [ebp - 0x2c], 0x80004005
push dword [ebp - 0x2c]
push 0x5e
push 0x44cc92
call fcn.004314ce
jmp 0x436d1b
cmp ebx, esi
je 0x436c92
mov eax, dword [ebp - 0x74]
mov dword [ebx], eax
cmp edi, esi
je 0x436ca9
push dword [ebp - 0x6c]
push dword [ebp - 0x70]
push edi
call main
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436d1b
mov eax, dword [ebp - 0x40]
cmp eax, esi
je 0x436cb7
mov cx, word [ebp - 0x68]
mov word [eax], cx
cmp dword [ebp - 0x38], esi
je 0x436cd1
push dword [ebp - 0x60]
push dword [ebp - 0x64]
push dword [ebp - 0x38]
call main
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436d1b
cmp dword [ebp - 0x34], esi
je 0x436ceb
push dword [ebp - 0x58]
push dword [ebp - 0x5c]
push dword [ebp - 0x34]
call main
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436d1b
cmp dword [ebp - 0x3c], esi
je 0x436d05
push dword [ebp - 0x50]
push dword [ebp - 0x54]
push dword [ebp - 0x3c]
call main
mov dword [ebp - 0x2c], eax
cmp eax, esi
jl 0x436d1b
cmp dword [ebp - 0x30], esi
je 0x436d1b
push dword [ebp - 0x48]
push dword [ebp - 0x4c]
push dword [ebp - 0x30]
call main
mov dword [ebp - 0x2c], eax
mov ecx, dword [ebp + 0x23ec]
mov eax, dword [ebp - 0x2c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00408498
add ebp, 0x23f0
leave
ret 0x20
Function at 0xe75370
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 0xe7538e
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 0xe9e074
push ecx
mov edi, eax
call fcn.00e89198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe753cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00e8902e
push esi
call fcn.00e88fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe78850
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 0xe788ae
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 0xea3720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe788ba
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.00e891e1
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 0xe788ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xea3720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe7892a
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.00e8a082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe78957
mov word [eax], si
add eax, 2
push eax
call fcn.00e8a030
add esp, 4
jmp 0xe78959
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 0xe788ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe788b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xe790c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xe9e458
push ecx
call fcn.00e891e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00e891e1
add esp, 0x10
jmp 0xe790d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00e8920b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00e88dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00e79050
mov eax, dword [0xea3728]
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 0xe7913b
push esi
call fcn.00e78fb0
add esp, 4
mov dword [0xea3728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xe7914c
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.00e78ff0
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 0xe7c440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xe7c4b7
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 0xe7c48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe7c471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe7c47e
add edx, ecx
cmp ebx, edx
jb 0xe7c48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe7c467
xor ecx, ecx
jmp 0xe7c4a2
test eax, eax
jne 0xe7c492
xor ecx, ecx
jmp 0xe7c4a2
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.00e7c3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xe7c8f0
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 0xe7c921
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 0xe7c946
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 0xe7c96e
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 0xe7c993
push ecx
push esi
call fcn.00e7c4c0
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 0xe7dc00
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 0xe7dc4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xe7dc2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xe7dc38
add edx, eax
cmp ebx, edx
jb 0xe7dc46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xe7dc21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xe7dc50
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 0xe7dc70
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 0xe7dcb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe7dc9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe7dca8
add edx, ecx
cmp ebx, edx
jb 0xe7dcb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe7dc91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xe7df60
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.00e8a145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xe7dffb
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 0xe7dfdd
lea eax, [esp + 0x18]
push eax
jmp 0xe7dfe2
push 0xea3720
call fcn.00e89fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xe7dfb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xe7df40
push 4
push ecx
push eax
call fcn.00e8a43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xe7e310
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.00e8a145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xe7e3ab
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 0xe7e38d
lea eax, [esp + 0x18]
push eax
jmp 0xe7e392
push 0xea3720
call fcn.00e89fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xe7e360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xe7df40
push 4
push ecx
push eax
call fcn.00e8a43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xe7ff20
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 0xe7ffd7
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 0xe7ffcf
push ebx
push edi
push 0xea3770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xe7ffae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xea3770
push esi
call ebx
test eax, eax
je 0xe7ffae
mov ebp, 3
cmp dword [0xea3774], ebp
jne 0xe7ffaa
push 0x3e8
call edi
push 0xea3770
push esi
call ebx
test eax, eax
jne 0xe7ff8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xe7ffc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xe7ffbb
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