joyce8/EMBER2024-capa huggingface dataset:
Function at 0x478294
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4782c2
mov eax, ebx
call fcn.00478d48
cmp dword [ebx + 0x40], 0
je 0x4782bb
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x478333
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x478325
cmp dword [ebx + 8], 0
je 0x4782e4
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4782f6
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x478325
cmp dword [ebx + 8], 0
je 0x4782d7
cmp eax, 3
je 0x478309
dec eax
jne 0x4782d7
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4782d7
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4782d7
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x478351
cmp dword [ebx + 0x14], 0xcc
je 0x478351
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.0047835c
pop ebx
ret

Function at 0x48f668
Capabilities:
Write clipboard data

Disassembly:
push ebx
add esp, 0xfffffef8
xor ebx, ebx
mov eax, 0x4a1d4c
mov edx, 0x104
call fcn.00407748
mov eax, esp
mov edx, 0x104
call fcn.00407748
mov eax, 0x4a1d4c
call fcn.0048f52c
push 0x104
lea eax, [esp + 4]
push eax
push 0
call sub.user32.dll_GetPropA
push esp
push 0x4a1d4c
call sub.user32.dll_SetClipboardData
test eax, eax
jne 0x48f6b8
mov bl, 1
mov eax, ebx
add esp, 0x108
pop ebx
ret
Function at 0x48fa50
Capabilities:
Log keystrokes

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xffffffb8
mov esi, ecx
mov ebp, edx
mov edi, eax
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x44
call fcn.004031e8
mov eax, esi
xor ecx, ecx
mov edx, 0x10
call fcn.004031e8
mov dword [esp + 4], 0x44
push esi
lea eax, [esp + 8]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
push 0x4a1d4c
push 0
call sub.user32.dll_EnumClipboardFormats
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
je 0x48fad1
mov dword [edi], 0x10007
push edi
mov eax, dword [esi + 4]
push eax
call sub.user32.dll_GetSystemMetrics
push esp
push 4
push ebp
mov eax, dword [edi + 0xa4]
add eax, 8
push eax
mov eax, dword [esi]
push eax
call sub.user32.dll_MapVirtualKeyA
mov eax, ebx
add esp, 0x48
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x48fff4
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
xor ecx, ecx
mov dword [ebp - 0x10c], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x49010b
push dword fs:[edx]
mov dword fs:[edx], esp
and eax, 0x7f
cmp eax, 4
ja case.default.0x490022
jmp dword [eax*4 + 0x490029]
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.user32.dll_GetWindowTextA
jmp case.default.0x490022
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.user32.dll_GetSysColor
jmp case.default.0x490022
lea eax, [ebp - 0x105]
push eax
push 0x104
call sub.user32.dll_GetSystemMenu
jmp case.default.0x490022
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.user32.dll_GetWindowTextA
mov byte [ebp - 0x103], 0
push 0x490118
lea eax, [ebp - 0x105]
push eax
call sub.user32.dll_SetClassLongA
jmp case.default.0x490022
push 0x105
lea eax, [ebp - 0x105]
push eax
call sub.user32.dll_GetWindowTextA
mov byte [ebp - 0x103], 0
push 0x490128
lea eax, [ebp - 0x105]
push eax
call sub.user32.dll_SetClassLongA
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x105]
mov ecx, 0x105
call fcn.00404adc
mov edx, dword [ebp - 0x10c]
mov eax, ebx
mov ecx, 0x490164
call fcn.00404b78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x490112
lea eax, [ebp - 0x10c]
call fcn.0040486c
ret

Function at 0x490cb0
Capabilities:
Log keystrokes via polling

Disassembly:
add esp, 0xffffffd0
push esp
push 0x28
call sub.user32.dll_GetKeyNameTextA
push eax
call sub.user32.dll_SetMenu
lea eax, [esp + 8]
push eax
push 0x490d14
push 0
call sub.user32.dll_SetForegroundWindow
mov dword [esp + 0x20], 1
mov dword [esp + 0x2c], 2
mov eax, dword [esp + 8]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0xc]
mov dword [esp + 0x28], eax
lea eax, [esp + 4]
push eax
lea eax, [esp + 0x14]
push eax
push 0x10
lea eax, [esp + 0x2c]
push eax
push 0
mov eax, dword [esp + 0x14]
push eax
call sub.user32.dll_SetFocus
add esp, 0x30
ret
Function at 0x490fe8
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd84
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x27c], ecx
mov dword [ebp - 0x278], ecx
mov dword [ebp - 0x274], ecx
mov dword [ebp - 0x270], ecx
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x491211
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x413520]
call fcn.00403a68
mov esi, eax
xor edx, edx
mov eax, 2
call fcn.00453298
mov dword [ebp - 8], eax
mov dword [ebp - 0x138], 0x128
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 8]
call fcn.004532b8
cmp eax, 1
sbb edx, edx
inc edx
mov ebx, 0x65
mov eax, 0x4a2038
xor ecx, ecx
mov dword [eax], ecx
add eax, 4
dec ebx
jne 0x49106a
mov eax, dword [ebp - 0x130]
mov dword [0x4a2038], eax
xor ebx, ebx
jmp 0x4911d1
mov eax, dword [ebp - 0x130]
push eax
push 0
push 0x410
call sub.user32.dll_LoadIconA
mov edi, eax
test edi, edi
je 0x4910cd
lea eax, [ebp - 0x10]
push eax
lea edx, [ebp - 0xc]
mov ecx, 4
mov eax, edi
call fcn.00488bec
push 0x12d
lea ecx, [ebp - 0x265]
mov edx, dword [ebp - 0xc]
mov eax, edi
call fcn.00488c1c
push edi
call sub.user32.dll_DrawIconEx
lea eax, [ebp - 0x26c]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404adc
mov eax, dword [ebp - 0x26c]
mov edx, 0x491228
call fcn.00404c78
jne 0x49110a
push esi
mov esi, 0x49123c
lea edi, [ebp - 0x265]
mov ecx, 0x4b
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebp - 0x270]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404adc
mov eax, dword [ebp - 0x270]
mov edx, 0x491374
call fcn.00404c78
jne 0x491147
push esi
mov esi, 0x49137c
lea edi, [ebp - 0x265]
mov ecx, 0x4b
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
pop esi
lea eax, [ebp - 0x274]
lea edx, [ebp - 0x114]
mov ecx, 0x104
call fcn.00404adc
mov edx, dword [ebp - 0x274]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x130]
xor edx, edx
push edx
push eax
lea eax, [ebp - 0x278]
call fcn.00408fbc
mov edx, dword [ebp - 0x278]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea eax, [ebp - 0x27c]
lea edx, [ebp - 0x265]
mov ecx, 0x12d
call fcn.00404adc
mov edx, dword [ebp - 0x27c]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x38]
lea edx, [ebp - 0x138]
mov eax, dword [ebp - 8]
call fcn.004532d8
cmp eax, 1
sbb edx, edx
inc edx
inc ebx
mov eax, dword [ebp - 0x130]
mov dword [ebx*4 + 0x4a2038], eax
test dl, dl
jne 0x491086
mov edx, dword [ebp - 4]
mov eax, esi
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DrawIconEx
mov eax, esi
call fcn.00403a98
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x491218
lea eax, [ebp - 0x27c]
mov edx, 5
call fcn.00404890
ret
Function at 0x491568
Capabilities:
Acquire debug privileges
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
xor eax, eax
push ebp
push 0x4915b2
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
push 0x20
call sub.user32.dll_GetKeyNameTextA
push eax
call sub.user32.dll_SetMenu
mov cl, 1
mov edx, 0x4915d0
mov eax, dword [ebp - 8]
call fcn.004914ac
mov eax, dword [ebp - 8]
push eax
call sub.user32.dll_DrawIconEx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4915bc
mov al, byte [ebp - 1]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret
Function at 0x10006089
Capabilities:
Resume thread

Disassembly:
push 0x10
mov eax, 0x10011324
call fcn.10010dbc
mov ebx, ecx
mov dword [ebp - 0x18], ebx
cmp byte [ebx + 4], 0
jne 0x100061ed
call dword [sym.imp.kernel32.dll_GetCurrentThreadId]
cmp eax, dword [ebx]
jne 0x100061ed
push 0x1000334a
push 0xd008
call fcn.100062eb
mov edi, eax
mov dword [ebp - 0x1c], edi
pop ecx
pop ecx
test edi, edi
je 0x100061e6
push 0xc000
xor ebx, ebx
push ebx
push edi
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xc000], ebx
lea eax, [edi + 0xc004]
push 0x1000
push ebx
push eax
call fcn.1000ec20
add esp, 0xc
mov dword [edi + 0xd004], ebx
test edi, edi
je 0x100061e6
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
lea ecx, [ebp - 0x1c]
call fcn.100062eb
mov ecx, edi
mov dword [ebp - 4], ebx
call fcn.100062eb
mov esi, eax
push esi
push 0x10003028
mov dword [ebp - 0x10], esi
call fcn.100062eb
pop ecx
pop ecx
test esi, esi
jne 0x1000619a
mov ecx, edi
call fcn.100062eb
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x24]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x100061fa
mov eax, dword [eax]
mov esi, dword [eax + 8]
mov ecx, esi
call dword [0x10014250]
mov ecx, dword [ebp - 0x14]
call esi
call fcn.100062eb
test eax, eax
je 0x10006190
jg 0x10006175
mov esi, eax
mov dword [ebp - 0x10], eax
jmp 0x10006181
movzx esi, ax
or esi, 0x80070000
mov dword [ebp - 0x10], esi
push esi
push 0x10003050
call fcn.100062eb
pop ecx
pop ecx
jmp 0x1000619a
mov eax, dword [ebp - 0x18]
mov esi, dword [ebp - 0x10]
mov byte [eax + 4], 1
lea ecx, [ebp - 0x1c]
call fcn.1000704c
lea eax, [edi + 0xc000]
mov dword [ebp - 0x1c], eax
cmp dword [eax], ebx
jbe 0x100061ce
lea esi, [edi + 8]
test byte [esi - 4], 1
je 0x100061c3
push dword [esi]
call dword [sym.imp.kernel32.dll_ResumeThread]
mov eax, dword [ebp - 0x1c]
inc ebx
add esi, 0xc
cmp ebx, dword [eax]
jb 0x100061b2
mov esi, dword [ebp - 0x10]
mov ecx, edi
call fcn.100062eb
push 0xd008
push edi
call fcn.100062eb
pop ecx
pop ecx
mov eax, esi
jmp 0x100061f2
mov eax, 0x8007000e
jmp 0x100061f2
mov eax, 0x800710dd
call fcn.10010d85
ret 4
call fcn.100062eb
int3

Function at 0x100062eb
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x100062fa
pop dword [ebp - 0x38]
mov eax, 0xe62512ee
sub eax, 0xd624aff4
sub dword [ebp - 0x38], eax
push 0x40
push 0x1000
push 0x36b48
push 0
mov eax, 0x712b3863
sub eax, 0x6129f7ff
add eax, dword [ebp - 0x38]
call dword [eax]
mov ecx, 0x3ebb
xor edx, edx
add edx, eax
mov esi, 0xedd8b34e
sub esi, 0xddd72d4e
add esi, dword [ebp - 0x38]
mov ebx, 0x2723c30f
add ebx, 0x58a2915
add dword [ebp - 4], edx
mov edi, dword [esi]
sub dword [ebp - 0x30], 0x9c716a3c
xor edi, ebx
mov dword [edx], edi
sub dword [ebp - 0x18], esi
add edx, 0x345753c0
sub edx, 0x345753bc
add esi, 0x438b6548
add esi, 0xbc749abc
loop 0x10006355
add eax, 0xedbf
xor ebx, ebx
add ebx, eax
add eax, 0xcea71ad2
add eax, 0x3158e533
mov ecx, 0x4d93542e
add ecx, 0xc26cabd2
add ecx, dword [ebp - 0x38]
call ebx
leave
ret
Function at 0x588370
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 0x58838e
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 0x5b1074
push ecx
mov edi, eax
call fcn.0059c198
mov esi, eax
add esp, 8
test esi, esi
jne 0x5883cb
pop edi
pop esi
xor al, al
pop ebx
ret
push esi
push ebx
push 1
push edi
call fcn.0059c02e
push esi
call fcn.0059bfb1
add esp, 0x14
mov al, 1
pop edi
pop esi
pop ebx
ret
Function at 0x58b850
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 0x58b8ae
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 0x5b6720
push ecx
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x58b8ba
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.0059c1e1
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 0x58b8ae
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x10]
lea edx, [esp + 0x1c]
push ecx
push edx
push 0x5b6720
push eax
mov dword [esp + 0x20], 0x104
call ebp
test eax, eax
je 0x58b92a
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.0059d082
xor esi, esi
add esp, 8
cmp eax, esi
je 0x58b957
mov word [eax], si
add eax, 2
push eax
call fcn.0059d030
add esp, 4
jmp 0x58b959
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 0x58b8ae
mov al, byte [esp + 0x22c]
test al, al
mov eax, dword [esp + 0x14]
jne 0x58b8b0
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
add esp, 0x218
ret

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

Disassembly:
sub esp, 0x43c
push esi
mov esi, dword [esp + 0x444]
cmp word [esi + 2], 0x3a
je 0x58c0c4
lea eax, [esp + 0x30]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea ecx, [esp + 0x30]
push 0x5b1458
push ecx
call fcn.0059c1e1
lea edx, [esp + 0x38]
push esi
push edx
call fcn.0059c1e1
add esp, 0x10
jmp 0x58c0d2
lea eax, [esp + 0x30]
push esi
push eax
call fcn.0059c20b
add esp, 8
lea ecx, [esp + 0x30]
lea edx, [esp + 0x238]
push ecx
push str.___s
push edx
call fcn.0059bdff
lea eax, [esp + 0x244]
lea ecx, [esp + 0x2c]
push eax
push ecx
call fcn.0058c050
mov eax, dword [0x5b6728]
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 0x58c13b
push esi
call fcn.0058bfb0
add esp, 4
mov dword [0x5b6728], eax
mov ecx, dword [esp + 0x454]
cmp ecx, 3
jne 0x58c14c
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.0058bff0
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 0x58f440
Capabilities:
Enumerate pe sections

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [ecx + 0x88]
test ebx, ebx
je 0x58f4b7
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 0x58f48e
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x58f471
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x58f47e
add edx, ecx
cmp ebx, edx
jb 0x58f48a
inc edi
add eax, 0x28
cmp edi, esi
jb 0x58f467
xor ecx, ecx
jmp 0x58f4a2
test eax, eax
jne 0x58f492
xor ecx, ecx
jmp 0x58f4a2
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.0058f3c0
add esp, 0x14
pop edi
pop esi
pop ebx
ret
Function at 0x58f8f0
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 0x58f921
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 0x58f946
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 0x58f96e
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 0x58f993
push ecx
push esi
call fcn.0058f4c0
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 0x590c00
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 0x590c4a
mov ebx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
test eax, eax
jne 0x590c2b
mov eax, dword [ecx + 0x10]
mov edx, dword [ecx + 0xc]
cmp ebx, edx
jb 0x590c38
add edx, eax
cmp ebx, edx
jb 0x590c46
inc edi
add ecx, 0x28
cmp edi, esi
jb 0x590c21
pop edi
pop esi
xor eax, eax
pop ebx
ret
test ecx, ecx
jne 0x590c50
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 0x590c70
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 0x590cb0
mov ebx, dword [esp + 0x10]
mov ecx, dword [eax + 8]
test ecx, ecx
jne 0x590c9b
mov ecx, dword [eax + 0x10]
mov edx, dword [eax + 0xc]
cmp ebx, edx
jb 0x590ca8
add edx, ecx
cmp ebx, edx
jb 0x590cb2
inc edi
add eax, 0x28
cmp edi, esi
jb 0x590c91
xor eax, eax
pop edi
pop esi
pop ebx
ret

Function at 0x590f60
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.0059d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x590ffb
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 0x590fdd
lea eax, [esp + 0x18]
push eax
jmp 0x590fe2
push 0x5b6720
call fcn.0059cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x590fb0
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x590f40
push 4
push ecx
push eax
call fcn.0059d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x591310
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.0059d145
mov ecx, dword [edi]
add esp, 4
xor esi, esi
mov dword [esp + 0xc], eax
test ecx, ecx
jbe 0x5913ab
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 0x59138d
lea eax, [esp + 0x18]
push eax
jmp 0x591392
push 0x5b6720
call fcn.0059cfd9
add esp, 4
mov dword [ebx], eax
mov eax, dword [edi]
inc esi
add ebx, 4
cmp esi, eax
jb 0x591360
mov eax, dword [esp + 0x10]
pop ebx
mov ecx, dword [edi]
push 0x590f40
push 4
push ecx
push eax
call fcn.0059d43f
mov eax, dword [esp + 0x1c]
add esp, 0x10
pop edi
pop esi
pop ebp
add esp, 0x210
ret
Function at 0x592f20
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 0x592fd7
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 0x592fcf
push ebx
push edi
push 0x5b6770
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
test eax, eax
je 0x592fae
push 0x3e8
call edi
mov ebx, dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
push 0x5b6770
push esi
call ebx
test eax, eax
je 0x592fae
mov ebp, 3
cmp dword [0x5b6774], ebp
jne 0x592faa
push 0x3e8
call edi
push 0x5b6770
push esi
call ebx
test eax, eax
jne 0x592f8f
mov ebp, dword [esp + 0x10]
mov ebx, dword [sym.imp.ADVAPI32.dll_DeleteService]
push esi
call ebx
test eax, eax
jne 0x592fc6
push 0x64
call edi
push esi
call ebx
test eax, eax
je 0x592fbb
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