joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100a967
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x10015c8
call fcn.0100abb0
xor ebx, ebx
push ebx
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
call edi
cmp word [eax], 0x5a4d
jne 0x100a9a4
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x100a9a4
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x100a9bc
cmp eax, 0x20b
je 0x100a9a9
mov dword [ebp - 0x1c], ebx
jmp 0x100a9d0
cmp dword [ecx + 0x84], 0xe
jbe 0x100a9a4
xor eax, eax
cmp dword [ecx + 0xf8], ebx
jmp 0x100a9ca
cmp dword [ecx + 0x74], 0xe
jbe 0x100a9a4
xor eax, eax
cmp dword [ecx + 0xe8], ebx
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], ebx
push 2
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x100d240], 0xffffffff
or dword [0x100d244], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100ccc8]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x100ccc4]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x100d248], eax
call fcn.0100aba8
cmp dword [0x100c120], ebx
jne 0x100aa2b
push fcn.0100aba8
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0100ab91
push 0x100c010
push 0x100c00c
call sub.msvcrt.dll__initterm
mov eax, dword [0x100ccc0]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x100ccbc]
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x38], eax
push 0x100c008
push section..data
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__acmdln]
mov esi, dword [eax]
mov dword [ebp - 0x20], esi
cmp byte [esi], 0x22
jne 0x100aac1
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100aa95
cmp al, 0x22
jne 0x100aa87
cmp byte [esi], 0x22
jne 0x100aa9e
inc esi
mov dword [ebp - 0x20], esi
mov al, byte [esi]
cmp al, bl
je 0x100aaa8
cmp al, 0x20
jbe 0x100aa9a
mov dword [ebp - 0x54], ebx
lea eax, [ebp - 0x80]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x54], 1
je 0x100aacc
movzx eax, word [ebp - 0x50]
jmp 0x100aacf
cmp byte [esi], 0x20
jbe 0x100aa9e
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100aac1
push 0xa
pop eax
push eax
push esi
push ebx
push ebx
call edi
push eax
call main
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp dword [ebp - 0x1c], ebx
jne 0x100aaec
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100ab21
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0100abeb
ret
Function at 0x1001279
Capabilities:
Terminate process

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
cmp dword [ebp + 8], 0
push dword [ebp + 0xc]
je 0x100128e
push 0x2711
jmp 0x1001293
push 0x2712
push 2
call fcn.01001fcc
add esp, 0xc
push 2
call dword [sym.imp.msvcrt.dll_exit]
int3

Function at 0x10012ab
Capabilities:
Initialize winsock library

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 0xc]
push esi
push dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 8], ebx
call fcn.01002085
push 0x10030c0
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x10012ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x2713
call fcn.01002042
push 0x5c
push dword [esi]
call dword [sym.imp.msvcrt.dll_strrchr]
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp + 0xc], eax
je 0x1001304
inc dword [ebp + 0xc]
jmp 0x1001309
mov eax, dword [esi]
mov dword [ebp + 0xc], eax
cmp dword [ebp + 8], 2
jl 0x10013b0
mov eax, dword [esi + 4]
inc dword [0x1003068]
cmp byte [eax], 0x2d
mov dword [ebp - 0xc], eax
je 0x10013b0
push edi
mov dword [ebp - 4], ebx
mov dword [0x1003264], ebx
mov edi, 0x1001160
jmp 0x100137c
sub eax, 0x38
je 0x100137c
sub eax, 0x2c
je 0x1001375
dec eax
je 0x100137c
sub eax, 7
je 0x1001367
dec eax
dec eax
jne 0x10013b0
push ebx
call dword [sym.imp.msvcrt.dll__close]
push ebx
push 0x100115c
call dword [sym.imp.msvcrt.dll__open]
add esp, 0xc
jmp 0x100137c
mov eax, dword [0x1003268]
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x10013b0
jmp 0x100137c
mov dword [ebp - 4], 1
push edi
push esi
push dword [ebp + 8]
call fcn.0100208d
cmp eax, 0xffffffff
jne 0x1001339
mov eax, dword [0x1003068]
lea eax, [esi + eax*4]
cmp dword [eax], ebx
pop edi
jne 0x10013ba
push dword [ebp + 0xc]
mov dword [esi], 0x1001154
push 0x2710
push 1
call fcn.01001fcc
add esp, 0xc
push dword [ebp + 0xc]
push 1
call fcn.01001279
push eax
push dword [ebp - 4]
push ebx
push 0x100114c
push dword [ebp - 8]
push dword [ebp - 0xc]
push dword [ebp + 0xc]
call fcn.01001cc6
pop esi
xor eax, eax
pop ebx
leave
ret
Function at 0x10013dd
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x1001170
call fcn.01001594
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001418
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001418
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001430
cmp eax, 0x20b
je 0x100141d
mov dword [ebp - 0x1c], edi
jmp 0x1001444
cmp dword [ecx + 0x84], 0xe
jbe 0x1001418
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x100143e
cmp dword [ecx + 0x74], 0xe
jbe 0x1001418
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003250], 0xffffffff
or dword [0x1003254], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x100308c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003088]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1003258], eax
call fcn.0100158a
cmp dword [0x100305c], edi
jne 0x100149f
push fcn.0100158a
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001573
push 0x100112c
push 0x1001128
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003084]
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x24]
push eax
push dword [0x1003080]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x34], eax
push 0x1001124
push 0x100111c
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x20]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x20]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.010012ab
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x38], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001516
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x100154b
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.010015cf
ret
Function at 0x10015fd
Capabilities:
Manipulate console buffer
Terminate process
Terminate thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
inc ebx
cmp dword [0x1003094], 0
push esi
push edi
mov byte [0x100309c], bl
je 0x10016e7
and dword [ebp - 4], 0
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebp - 8], eax
mov eax, dword [0x1003090]
test eax, eax
je 0x100163d
push eax
call dword [sym.imp.KERNEL32.dll_SetEvent]
push 0x3e8
push dword [0x1003094]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x10016cd
mov esi, dword [sym.imp.KERNEL32.dll_WriteConsoleInputA]
mov eax, dword [ebp - 4]
inc dword [ebp - 4]
cmp eax, 3
je 0x10016bf
xor eax, eax
lea edi, [ebp - 0x20]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
mov word [ebp - 0x20], bx
mov dword [ebp - 0x1c], ebx
mov byte [ebp - 0x12], 0xd
mov word [ebp - 0x18], bx
mov word [ebp - 0x16], 0xd
call esi
and dword [ebp - 0x1c], 0
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x20]
push eax
push dword [ebp - 8]
call esi
push 0x3e8
push dword [0x1003094]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
je 0x100165b
jmp 0x10016cd
push 0
push dword [0x1003094]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [0x1003094]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov eax, dword [0x1003090]
test eax, eax
je 0x10016e7
push eax
call esi
mov eax, dword [0x1003098]
test eax, eax
je 0x10016f7
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [0x1003060]
cmp eax, 0xffffffff
mov esi, dword [sym.imp.WS2_32.dll_closesocket]
je 0x100170a
push eax
call esi
mov eax, dword [0x1003064]
cmp eax, 0xffffffff
je 0x1001717
push eax
call esi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll_exit]
int3
Function at 0x10017c6
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xb18
mov eax, dword [0x1003074]
push ebx
push esi
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov edi, dword [sym.imp.WS2_32.dll_recv]
xor ecx, ecx
xor esi, esi
mov dword [ebp - 0x808], ecx
mov dword [ebp - 0x80c], 2
inc esi
mov ebx, 0x800
jmp 0x1001806
xor ecx, ecx
cmp dword [ebp - 0x808], ecx
mov dword [ebp - 0x910], ecx
mov dword [ebp - 0xb18], ecx
mov dword [ebp - 0xa14], ecx
jne 0x100183d
mov eax, dword [0x1003060]
mov dword [ebp - 0x90c], eax
mov dword [ebp - 0x910], esi
mov dword [ebp - 0xa10], eax
mov dword [ebp - 0xa14], esi
cmp dword [ebp - 0x80c], 2
jne 0x10018bf
cmp dword [ebp - 0x910], ecx
mov eax, dword [0x1003064]
jbe 0x1001865
cmp dword [ebp + ecx*4 - 0x90c], eax
je 0x1001865
inc ecx
cmp ecx, dword [ebp - 0x910]
jb 0x1001853
cmp ecx, dword [ebp - 0x910]
jne 0x1001883
cmp dword [ebp - 0x910], 0x40
jae 0x1001883
mov dword [ebp + ecx*4 - 0x90c], eax
inc dword [ebp - 0x910]
xor ecx, ecx
cmp dword [ebp - 0xa14], ecx
jbe 0x100189f
cmp dword [ebp + ecx*4 - 0xa10], eax
je 0x100189f
inc ecx
cmp ecx, dword [ebp - 0xa14]
jb 0x100188d
cmp ecx, dword [ebp - 0xa14]
jne 0x10018bd
cmp dword [ebp - 0xa14], 0x40
jae 0x10018bd
mov dword [ebp + ecx*4 - 0xa10], eax
inc dword [ebp - 0xa14]
xor ecx, ecx
push ecx
lea eax, [ebp - 0xa14]
push eax
lea eax, [ebp - 0xb18]
push eax
lea eax, [ebp - 0x910]
push eax
push 2
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jl 0x10019dc
lea eax, [ebp - 0x910]
push eax
push dword [0x1003060]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001925
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [0x1003060]
call edi
cmp eax, 0xffffffff
je 0x10019f0
test eax, eax
je 0x100198d
push eax
lea eax, [ebp - 0x804]
push eax
push esi
jmp 0x1001964
lea eax, [ebp - 0x910]
push eax
push dword [0x1003064]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x1001977
push 0
push ebx
lea eax, [ebp - 0x804]
push eax
push dword [0x1003064]
call edi
cmp eax, 0xffffffff
je 0x10019f0
test eax, eax
je 0x100196f
push eax
lea eax, [ebp - 0x804]
push eax
push 2
call dword [sym.imp.msvcrt.dll__write]
add esp, 0xc
jmp 0x10019c3
cmp dword [ebp + 8], 0
jne 0x10019c3
jmp 0x10019bd
lea eax, [ebp - 0xa14]
push eax
push dword [0x1003060]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x100199b
cmp dword [ebp + 8], 0
mov dword [ebp - 0x808], esi
je 0x10019c3
jmp 0x10019bd
lea eax, [ebp - 0xa14]
push eax
push dword [0x1003064]
call sub.WS2_32.dll___WSAFDIsSet
test eax, eax
je 0x10019c3
cmp dword [ebp + 8], 0
je 0x10019bd
mov dword [ebp - 0x808], esi
mov dword [ebp - 0x80c], esi
mov eax, dword [ebp - 0x80c]
cmp dword [ebp - 0x808], eax
jne 0x1001804
push 0
call fcn.010015fd
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3ef
call fcn.01002042
push esi
jmp 0x10019d7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x3f0
jmp 0x10019e8
Function at 0xe3f370
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 0xe3f38e
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 0xe68074
push ecx
mov edi, eax
call fcn.00e53198
mov esi, eax
add esp, 8
test esi, esi
jne 0xe3f3cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.00e5302e
push esi
call fcn.00e52fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0xe42850
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 0xe428ae
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 0xe6d720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe428ba
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.00e531e1
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 0xe428ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0xe6d720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0xe4292a
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.00e54082
xor esi, esi
add esp, 8
cmp eax, esi
je 0xe42957
mov word [eax], si
add eax, 2
push eax
call fcn.00e54030
add esp, 4
jmp 0xe42959
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 0xe428ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0xe428b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0xe430c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0xe68458
push ecx
call fcn.00e531e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.00e531e1
add esp, 0x10
jmp 0xe430d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00e5320b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00e52dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00e43050
mov eax, dword [0xe6d728]
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 0xe4313b
push esi
call fcn.00e42fb0
add esp, 4
mov dword [0xe6d728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0xe4314c
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.00e42ff0
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 0xe46440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0xe464b7
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 0xe4648e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe46471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe4647e
add edx, ecx
cmp ebx, edx
jb 0xe4648a
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe46467
xor ecx, ecx
jmp 0xe464a2
test eax, eax
jne 0xe46492
xor ecx, ecx
jmp 0xe464a2
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.00e463c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0xe468f0
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 0xe46921
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 0xe46946
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 0xe4696e
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 0xe46993
push ecx
push esi
call fcn.00e464c0
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 0xe47c00
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 0xe47c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0xe47c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0xe47c38
add edx, eax
cmp ebx, edx
jb 0xe47c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0xe47c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0xe47c50
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 0xe47c70
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 0xe47cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0xe47c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0xe47ca8
add edx, ecx
cmp ebx, edx
jb 0xe47cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0xe47c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0xe47f60
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.00e54145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xe47ffb
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 0xe47fdd
lea eax, [esp + 0x18]
push eax
jmp 0xe47fe2
push 0xe6d720
call fcn.00e53fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xe47fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xe47f40
push 4
push ecx
push eax
call fcn.00e5443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xe48310
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.00e54145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0xe483ab
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 0xe4838d
lea eax, [esp + 0x18]
push eax
jmp 0xe48392
push 0xe6d720
call fcn.00e53fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0xe48360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0xe47f40
push 4
push ecx
push eax
call fcn.00e5443f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0xe49f20
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 0xe49fd7
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 0xe49fcf
push ebx
push edi
push 0xe6d770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0xe49fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0xe6d770
push esi
call ebx
test eax, eax
je 0xe49fae
mov ebp, 3
cmp dword [0xe6d774], ebp
jne 0xe49faa
push 0x3e8
call edi
push 0xe6d770
push esi
call ebx
test eax, eax
jne 0xe49f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0xe49fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0xe49fbb
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