joyce8/EMBER2024-capa huggingface dataset:
Function at 0x76fd2580
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x168
mov eax, dword [0x76fda01c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x164], eax
mov ebx, esi
call fcn.76fd223d
test eax, eax
jne 0x76fd25bc
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x76fd267a
push esi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov esi, eax
test esi, esi
jle 0x76fd2678
push edi
lea edx, [esi*4 + 4]
xor ecx, ecx
call fcn.76fc2470
mov edi, eax
mov dword [ebp - 0x168], edi
test edi, edi
je 0x76fd2677
push edi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
cmp eax, esi
jne 0x76fd2668
mov eax, dword [ebp - 0x164]
xor ecx, ecx
add eax, 0x78
mov dword [edi + esi*4], ecx
cmp word [eax], cx
jne 0x76fd2610
mov esi, edi
jmp 0x76fd263a
push eax
push 3
lea eax, [ebp - 0x160]
push eax
call sym.IMM32.dll_ImmGetImeInfoEx
test eax, eax
je 0x76fd2668
mov eax, dword [edi]
mov esi, edi
jmp 0x76fd2636
add esi, 4
cmp eax, dword [ebp - 0x160]
je 0x76fd263a
mov eax, dword [esi]
test eax, eax
jne 0x76fd2629
test esi, esi
je 0x76fd2668
mov eax, dword [esi]
test eax, eax
je 0x76fd2668
mov edi, dword [ebp - 0x164]
mov edx, edi
mov ecx, eax
call fcn.76fd22bb
mov ebx, eax
lea esi, [esi + 4]
test ebx, ebx
jne 0x76fd2662
mov eax, dword [esi]
test eax, eax
jne 0x76fd264a
mov edi, dword [ebp - 0x168]
push edi
push 0
push dword [0x76fda9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop edi
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.76fc5210
leave
ret 4
Function at 0x76fd2710
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x76fda01c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
xor ebx, ebx
mov esi, ebx
call fcn.76fd223d
test eax, eax
jne 0x76fd2743
push 0x78
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x76fd27fb
mov eax, dword [ebp + 0xc]
add eax, 0x78
push edi
cmp word [eax], bx
je 0x76fd276e
push eax
push 3
lea eax, [ebp - 0x160]
push eax
call sym.IMM32.dll_ImmGetImeInfoEx
test eax, eax
je 0x76fd27f8
mov esi, dword [ebp - 0x160]
jmp 0x76fd27ce
push ebx
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
mov edi, eax
test edi, edi
jle 0x76fd27f8
lea edx, [edi*4 + 4]
xor ecx, ecx
call fcn.76fc2470
mov ebx, eax
test ebx, ebx
je 0x76fd27f8
push ebx
push edi
call dword [sym.imp.USER32.dll_GetKeyboardLayoutList]
cmp eax, edi
jne 0x76fd27be
and dword [ebx + edi*4], esi
mov eax, dword [ebx]
test eax, eax
je 0x76fd27be
mov edi, ebx
push eax
call sym.IMM32.dll_ImmIsIME
test eax, eax
je 0x76fd27bc
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x76fd27a7
jmp 0x76fd27be
mov esi, dword [edi]
push ebx
xor ebx, ebx
push ebx
push dword [0x76fda9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test esi, esi
je 0x76fd27f8
push ebx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
cmp eax, esi
je 0x76fd27f8
call dword [sym.imp.USER32.dll_GetFocus]
test eax, eax
je 0x76fd27f8
push esi
push 1
push 0x50
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
xor eax, eax
inc eax
jmp 0x76fd27fa
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.76fc5210
leave
ret 8
Function at 0x76fd2d96
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push esi
push edi
xor esi, esi
mov dword [ebp - 4], ecx
push esi
mov edi, edx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
mov dword [ebp - 8], eax
call sym.IMM32.dll_ImmIsIME
test eax, eax
je 0x76fd2e77
mov eax, dword [edi + 0x14]
push ebx
mov ebx, esi
mov dword [ebp - 0x10], esi
mov dword [ebp - 0xc], esi
cmp dword [ebp + 8], esi
je 0x76fd2e0e
test eax, eax
je 0x76fd2de4
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x76fd2de4
mov dword [ebp - 0xc], esi
cmp dword [edi + 0x18], ebx
je 0x76fd2dfb
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x76fd2dfb
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call sym.IMM32.dll_ImmConfigureIMEA
jmp 0x76fd2e4a
test eax, eax
je 0x76fd2e22
push eax
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x76fd2e22
mov dword [ebp - 0xc], esi
cmp dword [edi + 0x18], ebx
je 0x76fd2e39
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ebx, eax
test ebx, ebx
je 0x76fd2e39
mov dword [ebp - 0x10], ebx
lea eax, [ebp - 0x10]
push eax
push 2
push dword [ebp - 4]
push dword [ebp - 8]
call sym.IMM32.dll_ImmConfigureIMEW
cmp dword [edi + 0x14], 0
mov dword [ebp - 8], eax
je 0x76fd2e60
test esi, esi
je 0x76fd2e60
push dword [edi + 0x14]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [edi + 0x18], 0
je 0x76fd2e73
test ebx, ebx
je 0x76fd2e73
push dword [edi + 0x18]
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
mov eax, dword [ebp - 8]
pop ebx
pop edi
pop esi
leave
ret 4

Function at 0x76fd2f68
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov eax, edx
mov ebx, ecx
push 1
push eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], ebx
call dword [sym.imp.win32u.dll_NtUserQueryInputContext]
test eax, eax
je 0x76fd302a
push eax
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sym.IMM32.dll_ImmLockImeDpi
mov esi, eax
test esi, esi
je 0x76fd302a
test dword [esi + 0x10], 0x80000
mov edi, dword [ebp + 8]
je 0x76fd2ff0
movsx ebx, byte [edi + 6]
push 1
mov al, byte [ebx + edi]
mov byte [ebp - 4], al
mov al, byte [ebx + edi + 1]
mov byte [ebp - 3], al
lea eax, [ebp - 8]
push eax
push 2
lea eax, [ebp - 4]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
test eax, eax
je 0x76fd3024
mov ax, word [ebp - 8]
mov byte [ebx + edi], al
movzx eax, ax
shr eax, 8
mov byte [ebx + edi + 1], al
mov ebx, dword [ebp - 0xc]
push esi
call sym.IMM32.dll_ImmUnlockImeDpi
push edi
push 0x31
push dword [ebp - 0x10]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sym.IMM32.dll_ImmEscapeW
mov esi, eax
test esi, esi
je 0x76fd3020
push 1
push 5
push 0x282
push ebx
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
jmp 0x76fd302c
push esi
call sym.IMM32.dll_ImmUnlockImeDpi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x76fd3033
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
cmp dword [esi + 4], 2
jne 0x76fd3070
movsx eax, word [esi + 0x14]
mov dword [ebp - 8], eax
movsx eax, word [esi + 0x16]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push ecx
call dword [sym.imp.USER32.dll_ClientToScreen]
movzx ecx, word [ebp - 4]
movzx eax, word [ebp - 8]
shl ecx, 0x10
or ecx, eax
mov dword [esi + 0x14], ecx
push esi
push 8
push edi
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sym.IMM32.dll_ImmEscapeW
pop edi
pop esi
leave
ret 4

Function at 0x76fd3088
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, ecx
mov esi, edx
mov ecx, dword [ebp + 8]
mov eax, dword [ecx + 4]
cmp eax, 0xfb
ja 0x76fd3127
cmp eax, 0xfa
jae 0x76fd311c
cmp eax, 0x1c
je 0x76fd3116
cmp eax, 0xef
jbe 0x76fd315c
cmp eax, 0xf6
jbe 0x76fd311c
cmp eax, 0xf7
je 0x76fd3101
cmp eax, 0xf8
je 0x76fd30e7
cmp eax, 0xf9
jne 0x76fd315c
push 0
push 4
push 0x15
push esi
jmp 0x76fd316d
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push esi
push 1
push edi
push eax
cmp dword [ebp + 0xc], esi
je 0x76fd310f
call sym.IMM32.dll_ImmConfigureIMEA
jmp 0x76fd3172
xor esi, esi
push esi
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push esi
push 2
jmp 0x76fd30f3
call sym.IMM32.dll_ImmConfigureIMEW
jmp 0x76fd3172
push 0
push 2
jmp 0x76fd30df
mov edx, eax
mov ecx, esi
call fcn.76fd36ba
jmp 0x76fd3172
cmp eax, 0xfc
je 0x76fd3160
mov edx, 0xfd
cmp eax, edx
je 0x76fd315c
cmp eax, 0xffff
je 0x76fd3143
cmp eax, 0xffffffff
jne 0x76fd315c
cmp dword [ecx + 8], 0x1c
je 0x76fd3157
cmp dword [ecx + 8], 0xef
jbe 0x76fd315c
cmp dword [ecx + 8], edx
ja 0x76fd315c
xor eax, eax
inc eax
jmp 0x76fd3172
xor eax, eax
jmp 0x76fd3172
push 0
push 1
push 0x15
push edi
call sym.IMM32.dll_ImmGetContext
push eax
call sym.IMM32.dll_ImmNotifyIME
pop edi
pop esi
pop ebp
ret 8
Function at 0x76fd3cf9
Capabilities:
Get keyboard layout

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov eax, edx
xor ebx, ebx
push 1
mov edx, ecx
mov dword [ebp - 0x14], eax
push ebx
mov ecx, dword [eax + 0xc]
mov esi, ebx
mov edi, dword [eax + 0x10]
add ecx, eax
push ebx
push ecx
push edx
push ebx
mov dword [ebp - 0xc], edx
add edi, eax
mov dword [ebp - 8], ecx
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sym.IMM32.dll_ImmGetConversionListA
mov dword [ebp - 4], eax
test eax, eax
je 0x76fd3dc2
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
push ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov esi, eax
test esi, esi
je 0x76fd3dc4
push 1
push dword [ebp - 4]
push esi
push dword [ebp - 8]
push dword [ebp - 0xc]
push 0
call dword [sym.imp.USER32.dll_GetKeyboardLayout]
push eax
call sym.IMM32.dll_ImmGetConversionListA
and dword [ebp - 0xc], 0
cmp dword [esi + 8], 0
mov dword [ebp - 8], eax
jbe 0x76fd3da2
mov ebx, dword [ebp - 0xc]
lea edx, [esi + 0x18]
mov ecx, dword [edx]
lea edx, [edx + 4]
mov al, byte [ecx + esi]
mov byte [edi], al
mov al, byte [ecx + esi + 1]
mov byte [edi + 1], al
add edi, 2
inc ebx
cmp ebx, dword [esi + 8]
jb 0x76fd3d85
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x14]
mov byte [edi], 0
movzx eax, word [esi + 8]
add eax, eax
push ebx
mov dword [ecx + 8], eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov esi, dword [ebp - 8]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x76fd7e7c
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push ebx
push edi
mov edi, ecx
mov ebx, edx
test edi, edi
je 0x76fd7ea9
mov eax, dword [0x76fdac28]
or eax, dword [0x76fdac2c]
je 0x76fd7ea9
mov dl, 1
call fcn.76fc3da0
mov ecx, eax
jmp 0x76fd7ead
xor ecx, ecx
xor edx, edx
mov eax, ecx
or eax, edx
je 0x76fd7f1c
cmp byte [ecx + 0x17], 0
jge 0x76fd7ed5
lea eax, [ebp - 4]
push eax
push 0x1388
push 3
push ebx
push 0
push 0x505
push edi
call dword [sym.imp.USER32.dll_SendMessageTimeoutW]
jmp 0x76fd7f1c
push esi
push 8
pop edx
xor ecx, ecx
call fcn.76fc2470
mov esi, eax
test esi, esi
je 0x76fd7f1b
lea eax, [ebp - 8]
mov dword [esi], edi
push eax
xor edi, edi
mov dword [esi + 4], ebx
push edi
push esi
push 0x76fd7f50
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
je 0x76fd7f0d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x76fd7f1b
push esi
push edi
push dword [0x76fda9dc]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x76fd8026
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
mov ecx, dword [eax + 0xa0]
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
sub eax, dword [ecx + 0xc]
neg eax
sbb eax, eax
inc eax
ret
Function at 0x6a6370
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 0x6a638e
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 0x6cf074
push ecx
mov edi, eax
call fcn.006ba198
mov esi, eax
add esp, 8
test esi, esi
jne 0x6a63cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.006ba02e
push esi
call fcn.006b9fb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x6a9850
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 0x6a98ae
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 0x6d4720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6a98ba
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.006ba1e1
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 0x6a98ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x6d4720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x6a992a
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.006bb082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x6a9957
mov word [eax], si
add eax, 2
push eax
call fcn.006bb030
add esp, 4
jmp 0x6a9959
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 0x6a98ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x6a98b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x6aa0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x6cf458
push ecx
call fcn.006ba1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.006ba1e1
add esp, 0x10
jmp 0x6aa0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.006ba20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.006b9dff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.006aa050
mov eax, dword [0x6d4728]
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 0x6aa13b
push esi
call fcn.006a9fb0
add esp, 4
mov dword [0x6d4728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x6aa14c
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.006a9ff0
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 0x6ad440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x6ad4b7
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 0x6ad48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6ad471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6ad47e
add edx, ecx
cmp ebx, edx
jb 0x6ad48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6ad467
xor ecx, ecx
jmp 0x6ad4a2
test eax, eax
jne 0x6ad492
xor ecx, ecx
jmp 0x6ad4a2
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.006ad3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x6ad8f0
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 0x6ad921
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 0x6ad946
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 0x6ad96e
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 0x6ad993
push ecx
push esi
call fcn.006ad4c0
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 0x6aec00
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 0x6aec4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x6aec2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x6aec38
add edx, eax
cmp ebx, edx
jb 0x6aec46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x6aec21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x6aec50
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 0x6aec70
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 0x6aecb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x6aec9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x6aeca8
add edx, ecx
cmp ebx, edx
jb 0x6aecb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x6aec91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x6aef60
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.006bb145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6aeffb
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 0x6aefdd
lea eax, [esp + 0x18]
push eax
jmp 0x6aefe2
push 0x6d4720
call fcn.006bafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x6aefb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x6aef40
push 4
push ecx
push eax
call fcn.006bb43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x6af310
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.006bb145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x6af3ab
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 0x6af38d
lea eax, [esp + 0x18]
push eax
jmp 0x6af392
push 0x6d4720
call fcn.006bafd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x6af360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x6aef40
push 4
push ecx
push eax
call fcn.006bb43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x6b0f20
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 0x6b0fd7
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 0x6b0fcf
push ebx
push edi
push 0x6d4770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x6b0fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x6d4770
push esi
call ebx
test eax, eax
je 0x6b0fae
mov ebp, 3
cmp dword [0x6d4774], ebp
jne 0x6b0faa
push 0x3e8
call edi
push 0x6d4770
push esi
call ebx
test eax, eax
jne 0x6b0f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x6b0fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x6b0fbb
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