joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7038e451
Capabilities:
Send data
Send http request

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp byte [esi + 0xc], bl
push edi
mov edi, ecx
jne 0x7038e517
mov eax, dword [ebp + 0xc]
cmp eax, ebx
je 0x7038e517
mov ecx, dword [esi + 4]
cmp ecx, 1
jne 0x7038e4d4
cmp byte [esi + 0x19], bl
mov ecx, dword [esi + 0x24]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ebx
mov dword [esi + 4], 2
mov dword [esi + 0x64], eax
mov ecx, 0x7030c010
jne 0x7038e4a0
mov ecx, 0x7030c008
lea edx, [esi + 0xb8]
push edx
mov dl, byte [edi + 0x25]
neg dl
sbb edx, edx
and edx, 0x7c000000
add edx, 0x84000000
or edx, 0x80200
push edx
lea edx, [ebp - 8]
push edx
push ebx
push ebx
push dword [esi + 0x54]
push ecx
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestW]
jmp 0x7038e528
cmp ecx, 2
jne 0x7038e528
lea ecx, [esi + 0xbc]
push ecx
push ebx
push ebx
push ebx
push eax
mov dword [esi + 4], 3
mov dword [esi + 0x68], eax
call dword [sym.imp.WININET.dll_HttpSendRequestExW]
test eax, eax
je 0x7038e50a
push ebx
push esi
mov ecx, edi
mov dword [esi + 4], 4
call fcn.7038dff8
jmp 0x7038e528
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x7038e528
add esi, 0xac
push esi
push ebx
push ebx
push dword [edi]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x7038e73d
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
push edi
push edi
push 1
push edi
mov esi, ecx
mov dword [ebp - 4], 0x80004005
call dword [sym.imp.KERNEL32.dll_CreateEventW]
cmp eax, edi
mov dword [esi + 4], eax
je 0x7038e7da
push 1
push edi
push edi
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CreateIoCompletionPort]
cmp eax, edi
mov dword [esi], eax
je 0x7038e7ce
push eax
push edi
push 0x7038e534
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], esi
call dword [sym.imp.MSVCR80.dll__beginthread]
add esp, 0xc
cmp eax, 1
je 0x7038e7c4
lea eax, [ebp - 0xc]
push eax
push edi
push edi
push dword [esi]
call dword [sym.imp.KERNEL32.dll_PostQueuedCompletionStatus]
test eax, eax
je 0x7038e7c4
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov al, byte [esi + 8]
neg al
sbb eax, eax
and eax, 0x7fffbffb
add eax, 0x80004005
mov dword [ebp - 4], eax
jns 0x7038e7da
push dword [esi]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], edi
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret

Function at 0x7038fba1
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x703c1050]
jne 0x7038fbab
repz ret
jmp fcn.7039033b
Function at 0x70392185
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
mov edi, dword [ebp + 0xc]
and dword [ebp + 0xc], 0
cmp edi, 0xffffffff
mov esi, ecx
je 0x703921e7
call ebx
mov dword [ebp + 0xc], eax
jmp 0x703921e7
mov ecx, dword [esi + 4]
call fcn.70377e80
cmp eax, edi
jbe 0x703921b6
mov eax, edi
push 1
push 0
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.70392058
cmp eax, 0xffffffff
je 0x703921ee
test eax, eax
jle 0x703921d3
cmp eax, 2
jle 0x703921ee
cmp edi, 0xffffffff
je 0x703921e7
call ebx
sub eax, dword [ebp + 0xc]
cmp eax, edi
jae 0x703921e5
sub edi, eax
jmp 0x703921e7
xor edi, edi
mov eax, dword [esi + 0x64]
test eax, eax
je 0x703921a8
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x7039262f
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x14]
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
dec eax
mov dword [ebp - 0xc], edi
je 0x70392660
dec eax
je 0x70392654
mov eax, 0x80070057
jmp 0x7039279d
mov eax, dword [ebp + 8]
add eax, 0x80
xor esi, esi
jmp 0x70392669
mov eax, dword [ebp + 8]
xor esi, esi
add eax, 0x78
inc esi
mov dword [ebp + 0x14], eax
call fcn.7037939a
test eax, eax
jne 0x7039267f
mov eax, 0x80040014
jmp 0x7039279d
push dword [0x703bf6e8]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test esi, esi
mov dword [ebp - 4], eax
je 0x7039275b
cmp edi, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
jne 0x703926f6
test eax, eax
jle 0x703926ef
mov esi, dword [ebp + 0xc]
add esi, 8
mov dword [ebp + 0xc], eax
test byte [esi - 4], 1
mov edi, dword [esi + 4]
mov ebx, dword [esi - 8]
lea eax, [edi + 0x14]
mov dword [ebp + 8], eax
je 0x703926d9
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
shr eax, 2
test al, 1
je 0x703926d9
mov ecx, dword [ebp + 8]
push 0
push ebx
push edi
call fcn.7036b4f9
jmp 0x703926e5
mov ecx, dword [ebp + 8]
push 0
push ebx
push edi
call fcn.7036b338
mov dword [esi], eax
add esi, 0x10
dec dword [ebp + 0xc]
jne 0x703926ab
xor ebx, ebx
jmp 0x7039279b
dec eax
xor esi, esi
test eax, eax
mov dword [ebp - 8], eax
jle 0x70392738
mov edi, dword [ebp + 0xc]
add edi, 4
mov eax, dword [edi - 4]
mov ebx, dword [edi + 8]
mov dword [ebp + 0x10], eax
mov eax, dword [edi]
push eax
push eax
push ebx
call fcn.7036ad6f
mov ecx, dword [ebp + 0x14]
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp - 4]
call fcn.7036b0da
mov ebx, eax
test ebx, ebx
jl 0x7039279b
inc esi
add edi, 0x10
cmp esi, dword [ebp - 8]
jl 0x70392706
shl esi, 4
add esi, dword [ebp + 0xc]
push dword [esi + 4]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi]
push ecx
mov ecx, dword [ebp - 0xc]
push eax
push dword [ebp + 0x14]
push dword [ebp + 8]
call fcn.703923d1
mov dword [esi + 8], eax
jmp 0x7039279b
and dword [ebp + 8], ebx
cmp dword [ebp + 0x10], ebx
jle 0x7039279b
mov esi, dword [ebp + 0xc]
add esi, 4
mov eax, dword [esi]
mov edi, dword [esi + 8]
mov ebx, dword [esi - 4]
push eax
push eax
push edi
call fcn.7036ad6f
mov ecx, dword [ebp + 0x14]
push eax
push edi
push ebx
push dword [ebp - 4]
call fcn.7036b0da
mov ebx, eax
test ebx, ebx
jl 0x7039279b
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add esi, 0x10
cmp eax, dword [ebp + 0x10]
jl 0x70392769
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x70393c7e
Capabilities:
Log keystrokes via polling

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x703c1050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
push edi
push 0
push esi
call sub.MSVCR80.dll_memset
add esp, 0xc
mov dword [esi], edi
call dword [sym.imp.USER32.dll_GetMessageTime]
and dword [esi + 0x18], 0
mov dword [esi + 0x1c], eax
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.USER32.dll_GetKeyboardState]
test eax, eax
je 0x70393d28
mov eax, 0x80
test byte [ebp - 0x103], al
je 0x70393cd8
or dword [esi + 0x18], 0x40
test byte [ebp - 0x102], al
je 0x70393ce3
or dword [esi + 0x18], eax
test byte [ebp - 0x100], al
je 0x70393cf2
or dword [esi + 0x18], 0x100
test byte [ebp - 0x64], al
je 0x70393cfb
or dword [esi + 0x18], 4
test byte [ebp - 0x63], al
je 0x70393d04
or dword [esi + 0x18], 8
test byte [ebp - 0x62], al
je 0x70393d0d
or dword [esi + 0x18], 1
test byte [ebp - 0x61], al
je 0x70393d16
or dword [esi + 0x18], 2
test byte [ebp - 0x60], al
je 0x70393d1f
or dword [esi + 0x18], 0x10
test byte [ebp - 0x5f], al
je 0x70393d28
or dword [esi + 0x18], 0x20
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.7038fba1
leave
ret 8

Function at 0x703941be
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
mov esi, ecx
jne 0x703941d5
call fcn.70371900
jmp 0x703941f9
push dword [0x703bde5c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax]
mov ecx, edi
shl ecx, 2
push ecx
push dword [esi]
mov ecx, eax
call dword [edx + 8]
test eax, eax
je 0x703941fc
mov dword [esi + 8], edi
mov dword [esi], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x70394e3f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x703d3294], 0
push esi
jne 0x70394dad
call fcn.70394cce
test eax, eax
je 0x70394df0
mov eax, dword [0x703d3294]
cmp eax, 1
jne 0x70394dce
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x70394df0
pop esi
ret
push eax
call dword [0x703d329c]
test eax, eax
jne 0x70394e38
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x70394df4
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x703d3294]
call dword [0x703d329c]
mov edi, eax
test edi, edi
je 0x70394e1b
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x70394e37
lea edi, [esi + 0xff0]
push esi
push dword [0x703d3294]
call dword [0x703d3298]
add esi, 0x10
cmp esi, edi
jb 0x70394e21
mov eax, esi
pop edi
pop esi
ret
jmp 0x70394d9a
Function at 0x40c4e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push dword [ebp + 0xc]
call fcn.0040c4a7
push 0xc
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00408ca3
xor esi, esi
lea edx, [ebp + esi - 0xc]
call fcn.0040c42d
xor byte [edx], al
movzx eax, byte [edx]
push eax
call fcn.0040c44d
inc esi
cmp esi, 0xc
jl 0x40c4ff
movzx ax, byte [ebp - 1]
movzx ecx, ax
mov eax, dword [0x410550]
test byte [eax + 0x28], 2
movzx eax, byte [0x4205bf]
jne 0x40c53a
movzx eax, byte [0x4205c7]
movzx ecx, cx
cmp ecx, eax
je 0x40c546
or eax, 0xffffffff
jmp 0x40c58b
mov ecx, dword [0x420568]
mov eax, ecx
cdq
cmp edx, dword [0x40f924]
push edi
jl 0x40c568
mov edx, dword [0x40f920]
jg 0x40c564
cmp eax, edx
jbe 0x40c568
mov edi, edx
jmp 0x40c56a
mov edi, ecx
mov esi, dword [0x420560]
jmp 0x40c584
dec edi
call fcn.0040c42d
xor byte [esi], al
movzx eax, byte [esi]
push eax
call fcn.0040c44d
inc esi
test edi, edi
jne 0x40c572
xor eax, eax
pop edi
pop esi
leave
ret 8

Function at 0x8003b3f
Capabilities:
Accept command line arguments
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov dword [0x80043b4], 0x30
mov dword [0x80043bc], 0x8003351
mov dword [0x80043b8], 2
mov dword [0x80043c0], 0
mov dword [0x80043c4], 0
push 0
call dword [sym.imp.kernel32.dll_GetModuleHandleA]
jmp 0x8003b82
mov dword [0x80043c8], eax
mov dword [0x80043dc], 0x80041e0
mov dword [0x80043d4], 0xf
mov dword [0x8004102], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadIconA]
mov dword [0x80043cc], eax
mov dword [0x80043e0], eax
push 0x7f00
push 0
call dword [sym.imp.user32.dll_LoadCursorA]
mov dword [0x800410a], ebp
mov dword [0x80043d0], eax
push 0x80043b4
call dword [sym.imp.user32.dll_RegisterClassExA]
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x8004434], eax
push 0
push dword [0x8004102]
push 0
push 0
push 0x1ef
push 0x21c
push 0xffffe688
push 0xfffff524
push 0xcf0000
push str.uno_momento
push str.verba
push 0
call dword [sym.imp.user32.dll_CreateWindowExA]
mov dword [0x800442c], eax
push 1
push dword [0x800442c]
call dword [sym.imp.user32.dll_ShowWindow]
push dword [0x800442c]
call dword [sym.imp.user32.dll_UpdateWindow]
jmp 0x8003c40
xor edi, edi
lea ebx, [0x80043e4]
jmp 0x8003c58
push ebx
call dword [sym.imp.user32.dll_TranslateMessage]
push ebx
call dword [sym.imp.user32.dll_DispatchMessageA]
push edi
push edi
push edi
push ebx
call dword [sym.imp.user32.dll_GetMessageA]
test al, al
jne 0x8003c4a
jmp 0x8003c6c
mov eax, dword [0x80043ec]
call fcn.08002ae4
ret
Function at 0x661370
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 0x66138e
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 0x68a074
push ecx
mov edi, eax
call fcn.00675198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6613cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0067502e
push esi
call fcn.00674fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x664850
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 0x6648ae
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 0x68f720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6648ba
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.006751e1
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 0x6648ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x68f720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x66492a
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.00676082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x664957
mov word [eax], si
add eax, 2
push eax
call fcn.00676030
add esp, 4
jmp 0x664959
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 0x6648ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6648b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6650c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x68a458
push ecx
call fcn.006751e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006751e1
add esp, 0x10
jmp 0x6650d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0067520b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.00674dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.00665050
mov eax, dword [0x68f728]
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 0x66513b
push esi
call fcn.00664fb0
add esp, 4
mov dword [0x68f728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x66514c
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.00664ff0
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 0x668440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6684b7
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 0x66848e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x668471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x66847e
add edx, ecx
cmp ebx, edx
jb 0x66848a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x668467
xor ecx, ecx
jmp 0x6684a2
test eax, eax
jne 0x668492
xor ecx, ecx
jmp 0x6684a2
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.006683c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6688f0
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 0x668921
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 0x668946
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 0x66896e
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 0x668993
push ecx
push esi
call fcn.006684c0
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 0x669c00
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 0x669c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x669c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x669c38
add edx, eax
cmp ebx, edx
jb 0x669c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x669c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x669c50
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 0x669c70
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 0x669cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x669c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x669ca8
add edx, ecx
cmp ebx, edx
jb 0x669cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x669c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x669f60
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.00676145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x669ffb
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 0x669fdd
lea eax, [esp + 0x18]
push eax
jmp 0x669fe2
push 0x68f720
call fcn.00675fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x669fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x669f40
push 4
push ecx
push eax
call fcn.0067643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x66a310
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.00676145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x66a3ab
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 0x66a38d
lea eax, [esp + 0x18]
push eax
jmp 0x66a392
push 0x68f720
call fcn.00675fd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x66a360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x669f40
push 4
push ecx
push eax
call fcn.0067643f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x66bf20
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 0x66bfd7
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 0x66bfcf
push ebx
push edi
push 0x68f770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x66bfae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x68f770
push esi
call ebx
test eax, eax
je 0x66bfae
mov ebp, 3
cmp dword [0x68f774], ebp
jne 0x66bfaa
push 0x3e8
call edi
push 0x68f770
push esi
call ebx
test eax, eax
jne 0x66bf8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x66bfc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x66bfbb
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