joyce8/EMBER2024-capa huggingface dataset:
Function at 0x513d80
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 4], ecx
cmp dword [edi + 0x94], 0
jle 0x513e91
push ebx
lea edx, [edi + 0x48]
push esi
nop
mov esi, dword [edi + 0x98]
cmp esi, dword [edi + 0x9c]
je 0x513dc0
mov eax, dword [esi + 0x2c]
mov dword [edi + 0x98], eax
mov dword [eax + 0x30], 0
jmp 0x513dd8
test esi, esi
je 0x513df0
mov dword [edi + 0x98], 0
mov dword [edi + 0x9c], 0
test esi, esi
je 0x513df0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
dec dword [edi + 0x94]
mov eax, dword [esi + 0x1c]
lea ecx, [esi + 0x1c]
sub dword [edi + 0x44], eax
lock xadd dword [edx], eax
mov eax, dword [edi + 0x8c]
xor ebx, ebx
push ebx
push esi
mov dword [esi + 0x34], eax
lea eax, [ebp + 8]
push ebx
push eax
push 1
push ecx
push dword [esi + 0x34]
mov dword [ebp + 8], ebx
mov dword [esi + 0x18], 3
mov dword [esi + 0x28], 2
call dword [sym.imp.WS2_32.dll_WSASend]
cmp eax, 0xffffffff
jne 0x513e39
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ebx, eax
or eax, 0xffffffff
lea ecx, [esi + 0x28]
lock xadd dword [ecx], eax
dec eax
je 0x513e52
test ebx, ebx
je 0x513e76
cmp ebx, 0x3e5
je 0x513e72
mov ecx, dword [ebp - 4]
push esi
lea ecx, [ecx + 0x9c]
call fcn.005105a0
test eax, eax
jne 0x513e72
push esi
push eax
mov eax, dword [esi + 0x14]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
test ebx, ebx
jne 0x513e86
cmp dword [edi + 0x94], 0
lea edx, [edi + 0x48]
jg 0x513da0
pop esi
mov eax, ebx
pop ebx
pop edi
mov esp, ebp
pop ebp
ret 4
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret 4

Function at 0x514c60
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push edi
push eax
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push eax
push dword [ebp - 4]
mov dword [ebp - 8], eax
push 2
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ecx, eax
mov dword [edi + 8], ecx
test ecx, ecx
jne 0x514ca2
call fcn.0050fd20
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
mov eax, dword [ebp - 8]
push 0
push eax
mov dword [edi + 0x10], 0
push dword [edi + 0x10]
mov dword [edi + 0x14], 0
push dword [edi + 0x14]
mov dword [edi + 4], eax
push 4
push ecx
mov dword [edi + 0x18], 4
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [edi], eax
test eax, eax
jne 0x514cf6
call fcn.0050fd20
push dword [edi + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 8], 0
mov eax, esi
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x515060
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, edx
mov eax, dword [esi + 4]
test eax, eax
je 0x51507d
sub esp, 0x18
push ecx
mov ecx, eax
call fcn.00515350
jmp 0x515096
push 0
push 0x80
push 3
push 0
push 1
push bind
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x5150a9
call fcn.0050fd20
test eax, eax
jns 0x5150ab
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi], eax
lea eax, [ebp - 4]
push eax
push dword [esi]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x5150cb
call fcn.0050fd20
test eax, eax
js 0x515101
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
test ecx, ecx
jne 0x5150d8
test eax, eax
je 0x5150f3
test ecx, ecx
ja 0x5150f3
jb 0x5150e1
cmp eax, dword [ebp + 0xc]
ja 0x5150f3
mov ecx, dword [ebp + 8]
sub esp, 0x14
push dword [esi]
call fcn.00514c60
pop esi
mov esp, ebp
pop ebp
ret
or eax, ecx
mov eax, 0x800703ee
je 0x515101
mov eax, 0x800700df
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x5151b0
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ecx + 0x8c]
push esi
xor esi, esi
mov dword [edx + 0x34], eax
push esi
push edx
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 1
lea eax, [edx + 0x1c]
mov dword [edx + 0x18], 4
push eax
push dword [edx + 0x34]
call dword [sym.imp.WS2_32.dll_WSARecv]
cmp eax, 0xffffffff
jne 0x5151f5
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
cmp esi, 0x3e5
cmove esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x518b70
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x39]
shr cl, 2
and cl, 1
movzx edx, cl
test edx, edx
je 0x518bd1
mov eax, dword [ebp - 8]
mov cl, byte [eax + 0x39]
shr cl, 3
and cl, 1
movzx edx, cl
test edx, edx
jne 0x518ba5
mov byte [ebp - 1], 1
jmp 0x518ba9
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
and al, 1
shl al, 3
mov ecx, dword [ebp - 8]
mov dl, byte [ecx + 0x39]
and dl, 0xf7
or dl, al
mov eax, dword [ebp - 8]
mov byte [eax + 0x39], dl
push 1
mov ecx, dword [ebp - 8]
add ecx, 4
call fcn.0051a250
jmp 0x518c00
mov ecx, dword [ebp - 8]
add ecx, 0x58
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jle 0x518c00
push 3
push 0
push 0
mov edx, dword [ebp - 8]
add edx, 0x58
push edx
push 0x5a4b84
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor eax, eax
jmp 0x518c02
xor eax, eax
mov esp, ebp
pop ebp
ret 0xc
Function at 0x51a2c0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x118], 0x114
push 0x110
push 0
lea eax, [ebp - 0x114]
push eax
call fcn.0055e3d0
add esp, 0xc
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x51a324
cmp dword [ebp - 0x114], 6
jb 0x51a324
mov dword [ebp - 0x11c], 1
jmp 0x51a32e
mov dword [ebp - 0x11c], 0
mov al, byte [ebp - 0x11c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret

Function at 0x51ac90
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x51acb4
xor eax, eax
jmp 0x51ad34
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x51accb
xor eax, eax
jmp 0x51ad34
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 4]
add edx, dword [ebp - 0x14]
mov dword [ebp - 0x10], edx
mov eax, dword [ebp + 0x10]
and eax, 0xf
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x51ad17
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jae 0x51ad17
mov edx, dword [ebp - 4]
movzx eax, word [edx]
mov ecx, dword [ebp - 4]
lea edx, [ecx + eax*2 + 2]
mov dword [ebp - 4], edx
mov eax, dword [ebp - 8]
sub eax, 1
mov dword [ebp - 8], eax
jmp 0x51acee
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp - 0x10]
jb 0x51ad23
xor eax, eax
jmp 0x51ad34
mov edx, dword [ebp - 4]
movzx eax, word [edx]
test eax, eax
jne 0x51ad31
xor eax, eax
jmp 0x51ad34
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x51e2c0
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x848
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x83c], ecx
mov dword [ebp - 0x840], 0
movzx eax, byte [ebp + 8]
push eax
mov ecx, dword [ebp - 0x83c]
call fcn.00522a80
mov dword [ebp - 0x848], eax
movzx ecx, byte [ebp + 8]
test ecx, ecx
je 0x51e50c
mov ecx, dword [ebp - 0x83c]
call fcn.00521b50
test eax, eax
je 0x51e50c
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x844], eax
mov dword [ebp - 0x838], 0
cmp dword [ebp - 0x844], 0
jne 0x51e34d
call fcn.0050fd20
mov dword [ebp - 0x840], eax
jmp 0x51e4ff
push 0xf01ff
mov edx, dword [ebp - 0x83c]
add edx, 0x2c
push edx
mov eax, dword [ebp - 0x844]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x838], eax
cmp dword [ebp - 0x838], 0
je 0x51e4f4
mov ecx, dword [ebp - 0x83c]
add ecx, 0x2c
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 2
push 0x110
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0x400
push 0
lea eax, [ebp - 0x804]
push eax
call fcn.0055e3d0
add esp, 0xc
push 4
push 0
lea ecx, [ebp - 0x820]
push ecx
call fcn.0055e3d0
add esp, 0xc
push 0x5a5328
lea edx, [ebp - 0x804]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x820], eax
lea ecx, [ebp - 0x820]
push ecx
push 1
mov edx, dword [ebp - 0x838]
push edx
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
push 0x14
push 0
lea eax, [ebp - 0x834]
push eax
call fcn.0055e3d0
add esp, 0xc
push 8
push 0
lea ecx, [ebp - 0x81c]
push ecx
call fcn.0055e3d0
add esp, 0xc
mov edx, 8
imul eax, edx, 0
mov dword [ebp + eax - 0x818], 0
mov ecx, 8
imul edx, ecx, 0
mov dword [ebp + edx - 0x81c], 1
mov eax, 8
shl eax, 0
mov dword [ebp + eax - 0x818], 0xea60
mov ecx, 8
shl ecx, 0
mov dword [ebp + ecx - 0x81c], 1
mov edx, 8
shl edx, 1
mov dword [ebp + edx - 0x818], 0
mov eax, 8
shl eax, 1
mov dword [ebp + eax - 0x81c], 0
mov dword [ebp - 0x830], 0
mov dword [ebp - 0x834], 0x15180
mov dword [ebp - 0x828], 3
lea ecx, [ebp - 0x81c]
mov dword [ebp - 0x824], ecx
mov dword [ebp - 0x82c], 0
lea edx, [ebp - 0x834]
push edx
push 2
mov eax, dword [ebp - 0x838]
push eax
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfig2W]
mov ecx, dword [ebp - 0x838]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51e4ff
call fcn.0050fd20
mov dword [ebp - 0x840], eax
mov edx, dword [ebp - 0x844]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x840]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret 4
Function at 0x51ea50
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c370
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x4c], ecx
mov eax, dword [ebp - 0x4c]
movzx ecx, byte [eax + 0x271]
test ecx, ecx
je 0x51eafa
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x78]
push eax
call fcn.004e3410
add esp, 4
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
mov dword [ebp - 0x54], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x54]
call fcn.004e9c70
push eax
push str.__s____s
lea edx, [ebp - 0x28]
push edx
call fcn.004e2580
add esp, 0x10
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x78]
call fcn.004e99d0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
lea eax, [ebp - 0x28]
push eax
call fcn.004e9870
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x4c]
call fcn.0051ef50
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004e99d0
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x48], eax
cmp dword [ebp - 0x48], 0
jne 0x51eb14
jmp 0x51eb85
push 0xf01ff
mov ecx, dword [ebp - 0x4c]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x50], eax
cmp dword [ebp - 0x50], 0
jne 0x51eb3f
mov eax, dword [ebp - 0x48]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51eb85
lea ecx, [ebp - 0x44]
push ecx
mov edx, dword [ebp - 0x50]
push edx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x51eb53
jmp 0x51eb85
cmp dword [ebp - 0x40], 1
jne 0x51eb71
push 0
push 0
mov eax, dword [ebp - 0x50]
push eax
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
push 4
mov ecx, dword [ebp - 0x4c]
call fcn.00523e70
mov ecx, dword [ebp - 0x50]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edx, dword [ebp - 0x48]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret 4
Function at 0x51eba0
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x30], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x51ebd0
jmp 0x51ec54
push 0xf01ff
mov eax, dword [ebp - 0x30]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x51ebfb
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51ec54
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x51ec23
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51ec54
cmp dword [ebp - 0x1c], 1
jne 0x51ec40
mov dword [ebp - 0x24], 0x5a506c
lea ecx, [ebp - 0x24]
push ecx
push 1
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
mov eax, dword [ebp - 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret

Function at 0x51ec70
Capabilities:
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x24], ecx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
jne 0x51eca0
jmp 0x51ed3a
push 0xf01ff
mov eax, dword [ebp - 0x24]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0
jne 0x51eccb
mov edx, dword [ebp - 0x28]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
jmp 0x51ed3a
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x51ecdf
jmp 0x51ed3a
cmp dword [ebp - 0x1c], 4
jne 0x51ed30
push 0x20
mov ecx, dword [ebp - 0x24]
call fcn.00523e70
mov edx, dword [ebp - 0x24]
cmp dword [edx + 0x26c], 0
je 0x51ed26
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax + 0x26c]
cmp dword [ecx + 4], 0
je 0x51ed26
push 0
push 0
push 0x4ca
mov edx, dword [ebp - 0x24]
mov eax, dword [edx + 0x26c]
mov ecx, dword [eax + 4]
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x2c]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x51ed50
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x59c3c6
mov eax, dword fs:[0]
push eax
sub esp, 0xb0
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x74], ecx
lea eax, [ebp - 0xa4]
push eax
call fcn.004e31d0
add esp, 4
mov dword [ebp - 0x60], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x64], ecx
mov dword [ebp - 4], 0
mov ecx, dword [ebp - 0x64]
call fcn.004e9c70
push eax
push str._sadsconfig.ini
lea edx, [ebp - 0x28]
push edx
call fcn.004e2580
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0xa4]
call fcn.004e99d0
lea eax, [ebp - 0x8c]
push eax
call fcn.004e3590
add esp, 4
mov dword [ebp - 0x68], eax
mov ecx, dword [ebp - 0x68]
mov dword [ebp - 0x70], ecx
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x70]
call fcn.004e9c70
push eax
push 0x5a50a0
lea edx, [ebp - 0x40]
push edx
call fcn.004e2580
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0x8c]
call fcn.004e99d0
lea eax, [ebp - 0xbc]
push eax
call fcn.004e3770
add esp, 4
mov dword [ebp - 0x5c], eax
mov ecx, dword [ebp - 0x5c]
mov dword [ebp - 0x6c], ecx
mov byte [ebp - 4], 6
mov ecx, dword [ebp - 0x6c]
call fcn.004e9c70
push eax
push 0x5a50f0
lea edx, [ebp - 0x58]
push edx
call fcn.004e2580
add esp, 0xc
mov byte [ebp - 4], 5
lea ecx, [ebp - 0xbc]
call fcn.004e99d0
lea ecx, [ebp - 0x28]
call fcn.004e9c70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x40]
call fcn.004e9c70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x58]
call fcn.004e9c70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x58]
call fcn.004e99d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x40]
call fcn.004e99d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.004e99d0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret

Function at 0x51ef50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], str.SYSTEMCurrentControlSet_servicesFlash_Helper_Service
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
mov ecx, dword [ebp - 0x10]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x51efc7
lea ecx, [ebp + 8]
call fcn.004e92c0
shl eax, 1
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp + 8]
call fcn.004e9c70
push eax
push 1
push 0
push str.ImagePath
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea ecx, [ebp + 8]
call fcn.004e99d0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret 0x18
Function at 0x521800
Capabilities:
Create service

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1224
call fcn.0055e710
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1214], ecx
mov ecx, dword [ebp - 0x1214]
call fcn.00521b50
test eax, eax
je 0x521836
mov eax, 1
jmp 0x521a0d
push 0x104
lea eax, [ebp - 0x20e]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov dword [ebp - 0x121c], eax
cmp dword [ebp - 0x121c], 0
je 0x521865
cmp dword [ebp - 0x121c], 0x104
jne 0x52186c
xor eax, eax
jmp 0x521a0d
mov ecx, 2
imul edx, ecx, 0
mov eax, 0x22
mov word [ebp + edx - 0x210], ax
mov ecx, 0x22
mov edx, dword [ebp - 0x121c]
mov word [ebp + edx*2 - 0x20e], cx
mov eax, dword [ebp - 0x121c]
lea ecx, [eax + eax + 4]
mov dword [ebp - 0x1220], ecx
cmp dword [ebp - 0x1220], 0x20c
jae 0x5218b2
jmp 0x5218b7
call fcn.0055ecd5
xor edx, edx
mov eax, dword [ebp - 0x1220]
mov word [ebp + eax - 0x210], dx
push 0xf003f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x1218], eax
cmp dword [ebp - 0x1218], 0
jne 0x52193d
push 0x400
lea ecx, [ebp - 0x1210]
push ecx
push 0xd80a
call fcn.00520c10
add esp, 0xc
test eax, eax
jne 0x52191b
push str.Could_not_open_Service_Manager
push 0x400
lea edx, [ebp - 0x1210]
push edx
call fcn.00525040
add esp, 0xc
push 0
mov eax, dword [ebp - 0x1214]
add eax, 0x2c
push eax
lea ecx, [ebp - 0x1210]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x521a0d
push 0
push 0
push str.RPCSS
push 0
push 0
lea edx, [ebp - 0x210]
push edx
push 1
push 3
push 0x10
push 0xf01ff
mov eax, dword [ebp - 0x1214]
add eax, 0x2c
push eax
mov ecx, dword [ebp - 0x1214]
add ecx, 0x2c
push ecx
mov edx, dword [ebp - 0x1218]
push edx
call dword [sym.imp.ADVAPI32.dll_CreateServiceW]
mov dword [ebp - 0x1224], eax
cmp dword [ebp - 0x1224], 0
jne 0x5219ee
mov eax, dword [ebp - 0x1218]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push 0x400
lea ecx, [ebp - 0xa10]
push ecx
push 0xd80b
call fcn.00520c10
add esp, 0xc
test eax, eax
jne 0x5219cf
push str.Could_not_start_service
push 0x400
lea edx, [ebp - 0xa10]
push edx
call fcn.00525040
add esp, 0xc
push 0
mov eax, dword [ebp - 0x1214]
add eax, 0x2c
push eax
lea ecx, [ebp - 0xa10]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
jmp 0x521a0d
mov edx, dword [ebp - 0x1224]
push edx
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, dword [ebp - 0x1218]
push eax
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret
Function at 0x521c60
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x218], 0x100
lea eax, [ebp + 0x10]
mov dword [ebp - 0x214], eax
mov ecx, dword [ebp - 0x214]
push ecx
mov edx, dword [ebp + 0xc]
push edx
push 0xff
push 0x100
lea eax, [ebp - 0x204]
push eax
call fcn.0055f4b2
add esp, 0x14
mov dword [ebp - 0x214], 0
mov ecx, 2
imul edx, ecx, 0xff
mov dword [ebp - 0x210], edx
cmp dword [ebp - 0x210], 0x200
jae 0x521cd3
jmp 0x521cd8
call fcn.0055ecd5
xor eax, eax
mov ecx, dword [ebp - 0x210]
mov word [ebp + ecx - 0x204], ax
mov edx, 4
imul eax, edx, 0
lea ecx, [ebp - 0x204]
mov dword [ebp + eax - 0x208], ecx
mov edx, dword [ebp + 8]
cmp dword [edx + 0x24c], 0
jne 0x521d18
lea eax, [ebp - 0x204]
push eax
call fcn.0055f3cb
add esp, 4
mov ecx, dword [ebp + 8]
add ecx, 0x2c
push ecx
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceW]
mov dword [ebp - 0x20c], eax
cmp dword [ebp - 0x20c], 0
je 0x521d6e
push 0
mov edx, 4
imul eax, edx, 0
lea ecx, [ebp + eax - 0x208]
push ecx
push 0
push 1
push 0
push 0
push 0
push 4
mov edx, dword [ebp - 0x20c]
push edx
call dword [sym.imp.ADVAPI32.dll_ReportEventW]
mov eax, dword [ebp - 0x20c]
push eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret

Function at 0x5227d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x615720]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x224], ecx
push 0xc
lea ecx, [ebp - 0x21c]
call fcn.004e14a0
push 0
lea ecx, [ebp - 0x21c]
call fcn.004e1820
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax + 4]
or ecx, 0x2001f
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x224]
mov ecx, dword [eax]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.004e1890
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x52285c
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x230], edx
lea ecx, [ebp - 0x21c]
call fcn.004e1840
mov eax, dword [ebp - 0x230]
jmp 0x522911
mov dword [ebp - 0x208], 0x100
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0
lea ecx, [ebp - 0x208]
push ecx
lea edx, [ebp - 0x204]
push edx
push 0
mov eax, dword [ebp - 0x21c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
jne 0x5228e0
lea ecx, [ebp - 0x204]
push ecx
lea ecx, [ebp - 0x21c]
call fcn.005227d0
mov dword [ebp - 0x220], eax
cmp dword [ebp - 0x220], 0
je 0x5228d4
mov edx, dword [ebp - 0x220]
mov dword [ebp - 0x228], edx
lea ecx, [ebp - 0x21c]
call fcn.004e1840
mov eax, dword [ebp - 0x228]
jmp 0x522911
mov dword [ebp - 0x208], 0x100
jmp 0x522866
lea ecx, [ebp - 0x21c]
call fcn.004e1860
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 0x224]
call fcn.005211b0
mov dword [ebp - 0x22c], eax
lea ecx, [ebp - 0x21c]
call fcn.004e1840
mov eax, dword [ebp - 0x22c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0055dcfd
mov esp, ebp
pop ebp
ret 4