joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4ca15c
Capabilities:
Create tcp socket
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
mov eax, ebx
xor ecx, ecx
mov edx, 0x10c
call fcn.00403238
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
push 2
call sub.ws2_32.dll_WSASocketA
mov dword [esi], eax
mov eax, dword [esi]
mov dword [ebx], eax
mov eax, dword [esi]
call fcn.004c9e78
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebx + 4], al
cmp byte [ebx + 4], 0
jne 0x4ca1e3
call sub.ws2_32.dll_WSAGetLastError
mov esi, eax
mov dword [ebx + 8], esi
push 1
mov eax, esi
xor edx, edx
call fcn.004ca540
mov dword [ebp - 0x10], eax
mov eax, 0x4ca218
mov dword [ebp - 0xc], eax
lea ecx, [ebp - 0x10]
mov edx, 0x4ca224
lea eax, [ebx + 0xc]
call fcn.004ca514
jmp 0x4ca20d
mov dword [ebp - 8], 1
lea eax, [ebp - 8]
push eax
push 0x8004667e
mov eax, dword [esi]
push eax
call sub.ws2_32.dll_ioctlsocket
inc eax
je 0x4ca20d
lea edi, [ebx + 0xc]
mov esi, 0x4ca24c
mov ecx, 0x40
rep movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x4ca34c
Capabilities:
Connect socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffed8
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], 0x20000
push 0
push 0
push 0
push esi
mov eax, ebx
xor ecx, ecx
mov edx, 1
call fcn.004ca15c
cmp byte [esi + 4], 0
je 0x4ca4ac
push 4
lea eax, [ebp + 0x18]
push eax
push 0x1005
push 0xffff
mov eax, dword [ebx]
push eax
call sub.ws2_32.dll_setsockopt
mov edi, eax
push 4
lea eax, [ebp + 0x18]
push eax
push 0x1006
push 0xffff
mov eax, dword [ebx]
push eax
call sub.ws2_32.dll_setsockopt
add edi, eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1001
push 0xffff
mov eax, dword [ebx]
push eax
call sub.ws2_32.dll_setsockopt
add edi, eax
push 4
lea eax, [ebp - 0xc]
push eax
push 0x1002
push 0xffff
mov eax, dword [ebx]
push eax
call sub.ws2_32.dll_setsockopt
add edi, eax
test edi, edi
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x10
call fcn.00403238
mov word [ebp - 0x1c], 2
lea eax, [ebp - 0x1a]
push eax
mov ax, word [ebp + 0x20]
push eax
mov eax, dword [ebx]
push eax
call sub.ws2_32.dll_WSAHtons
cmp dword [ebp - 4], 0
je 0x4ca42c
mov eax, dword [ebp - 4]
call fcn.004ca4b8
mov dword [ebp - 0x18], eax
jmp 0x4ca43e
cmp dword [ebp - 8], 0
je 0x4ca43e
mov eax, dword [ebp - 8]
push eax
call sub.ws2_32.dll_inet_addr_1
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
mov eax, dword [ebp + 0x1c]
push eax
mov eax, dword [ebp + 0x14]
push eax
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebx]
push eax
call sub.ws2_32.dll_WSAConnect
test eax, eax
sete dl
mov byte [esi + 4], dl
test dl, dl
jne 0x4ca4ac
call sub.ws2_32.dll_WSAGetLastError
mov edi, eax
mov dword [esi + 8], edi
mov eax, edi
sub eax, 0x2733
je 0x4ca485
sub eax, 0x19
je 0x4ca49a
dec eax
je 0x4ca48b
jmp 0x4ca4a9
mov byte [esi + 4], 1
jmp 0x4ca4ac
lea edx, [ebp - 0x128]
mov eax, ebx
call fcn.004c9e84
jmp 0x4ca4ac
lea edx, [ebp - 0x128]
mov eax, ebx
call fcn.004c9e84
jmp 0x4ca4ac
mov dword [esi + 8], edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x4ca4b8
Capabilities:
Resolve dns

Disassembly:
push ebx
add esp, 0xfffffff4
mov ebx, eax
push ebx
call sub.ws2_32.dll_gethostbyname
mov dword [esp + 4], eax
lea eax, [esp + 8]
xor ecx, ecx
mov edx, 4
call fcn.00403238
cmp dword [esp + 4], 0
je 0x4ca503
mov eax, dword [esp + 4]
mov edx, dword [eax + 0xc]
mov edx, dword [edx]
mov cl, byte [edx]
mov byte [esp + 8], cl
mov cl, byte [edx + 1]
mov byte [esp + 9], cl
mov cl, byte [edx + 2]
mov byte [esp + 0xa], cl
mov al, byte [edx + 3]
mov byte [esp + 0xb], al
mov eax, dword [esp + 8]
mov dword [esp], eax
mov eax, dword [esp]
add esp, 0xc
pop ebx
ret
Function at 0x4cc3e0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x4cc4a6
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 4]
push eax
push 0x17d4
push 1
lea edx, [ebp - 8]
mov eax, dword [0x4f4db4]
call fcn.004066a4
mov eax, dword [ebp - 8]
push eax
lea edx, [ebp - 0xc]
mov eax, dword [0x4f4bf8]
call fcn.004066a4
mov edx, dword [ebp - 0xc]
mov eax, dword [0x4f4a08]
mov eax, dword [eax]
pop ecx
call fcn.004efbf4
mov eax, ebx
call fcn.004046c8
lea eax, [ebx + 4]
call fcn.004046c8
xor eax, eax
mov dword [ebx + 8], eax
lea eax, [ebx + 0xc]
call fcn.004046c8
xor eax, eax
mov dword [ebx + 0x10], eax
lea eax, [ebx + 0x18]
call fcn.004046c8
xor eax, eax
mov dword [ebx + 0x1c], eax
mov byte [ebx + 0x20], 0
mov byte [ebx + 0x21], 0
mov byte [ebx + 0x22], 0
mov byte [ebx + 0x23], 0
mov dword [ebx + 0x30], 0xffffffff
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], eax
xor eax, eax
mov dword [ebx + 0x34], eax
lea eax, [ebx + 0x24]
call fcn.004cc3c4
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cc4ad
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004046ec
ret

Function at 0x4cca28
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4ccaf9
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov dl, 1
mov eax, dword [0x440a0c]
call fcn.00440b0c
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x4ccadc
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 8]
call fcn.00440bac
mov cl, 1
mov edx, 0x4ccb10
mov eax, dword [ebp - 8]
call fcn.00440c10
test al, al
jne 0x4cca8c
call fcn.004040e4
jmp 0x4ccae3
test bl, bl
je 0x4ccab1
lea edx, [ebp - 0xc]
mov eax, dword [0x4f4eb4]
mov eax, dword [eax]
call fcn.00487f0c
mov ecx, dword [ebp - 0xc]
mov edx, 0x4ccb48
mov eax, dword [ebp - 8]
call fcn.00440efc
jmp 0x4ccabe
mov edx, 0x4ccb48
mov eax, dword [ebp - 8]
call fcn.00440d34
mov eax, dword [ebp - 8]
call fcn.00440b7c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccae3
lea eax, [ebp - 8]
call fcn.0040f0fc
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ccb00
lea eax, [ebp - 0xc]
call fcn.004046c8
ret
Function at 0x4cd0a4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x44], ebx
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
xor eax, eax
push ebp
push 0x4cd140
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
test esi, esi
je 0x4cd12a
lea eax, [ebp - 0x40]
mov edx, 0x3c
call fcn.004076f0
mov eax, dword [ebp - 4]
call fcn.00404b88
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x40], 0x3c
mov eax, dword [0x4f4eb4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x38], eax
mov eax, esi
call fcn.00404b88
mov dword [ebp - 0x30], eax
lea edx, [ebp - 0x44]
mov eax, esi
call fcn.00409838
mov eax, dword [ebp - 0x44]
call fcn.00404b88
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], edi
lea eax, [ebp - 0x40]
push eax
call sub.shell32.dll_ShellExecuteExA
cmp eax, 1
sbb ebx, ebx
inc ebx
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4cd147
lea eax, [ebp - 0x44]
call fcn.004046c8
ret

Function at 0x4d0eb8
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffbc
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4d1007
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
push ebp
push 0x4d0fe5
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebx + 8]
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0
mov eax, dword [ebx + 0xc]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0
mov eax, dword [ebx + 0x10]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0
mov eax, dword [ebx + 0x14]
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0
mov eax, dword [ebx + 0x18]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0
mov eax, dword [ebx + 0x1c]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0
mov eax, dword [ebx + 0x20]
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x10], 0
lea edx, [ebp - 0x44]
mov ecx, 6
mov eax, 0x4d1020
call fcn.0040a4e4
lea eax, [ebx + 0x30]
mov edx, dword [ebp - 8]
call fcn.0040471c
mov eax, dword [0x4f4e70]
mov eax, dword [eax + 0x44]
sub eax, 1
jb 0x4d0f64
je 0x4d0f73
jmp 0x4d0f81
lea ecx, [ebp - 0xc]
mov eax, ebx
mov edx, dword [ebp - 8]
call fcn.004d0adc
jmp 0x4d0f81
mov edx, esi
mov eax, dword [0x4f4f8c]
mov eax, dword [eax]
call fcn.004cfcb8
mov al, byte [ebx + 0x38]
sub al, 1
jb 0x4d0fbe
je 0x4d0f94
dec al
je 0x4d0fa2
dec al
je 0x4d0fb0
jmp 0x4d0fc9
mov dword [ebx + 0x28], 0x32
call fcn.004040e4
jmp 0x4d0fec
mov dword [ebx + 0x28], 0x29
call fcn.004040e4
jmp 0x4d0fec
mov dword [ebx + 0x28], 0x2a
call fcn.004040e4
jmp 0x4d0fec
mov byte [ebp - 1], 1
call fcn.004040e4
jmp 0x4d0fec
mov dword [ebx + 0x28], 0xfe
call fcn.004040e4
jmp 0x4d0fec
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4d100e
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004046ec
ret
Function at 0x4d7a84
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4d7abc]
push 0x10
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4d7a9a
or bl, 1
push 0x11
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4d7aa9
or bl, 4
push 0x12
call sub.user32.dll_GetAsyncKeyState
test ax, ax
jge 0x4d7ab8
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4d8ec8
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x4f4eb4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4d8eee
push 0
mov eax, dword [0x4f4eb4]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_ShowWindow
ret

Function at 0x4dbe48
Capabilities:
Get keyboard layout
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
push edi
mov edi, edx
mov ebx, eax
mov eax, edi
call fcn.004046c8
mov eax, dword [ebp + 8]
cmp byte [eax - 1], 0
je 0x4dbecd
test bl, bl
je 0x4dbe88
push 0
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 8]
push eax
call sub.user32.dll_MapVirtualKeyA
mov esi, eax
shl esi, 0x10
or esi, 0x1000000
jmp 0x4dbe9c
push 0
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 8]
push eax
call sub.user32.dll_MapVirtualKeyA
mov esi, eax
shl esi, 0x10
test esi, esi
je 0x4dbf77
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push esi
call sub.user32.dll_GetKeyNameTextA
mov eax, edi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404938
jmp 0x4dbf77
test bl, bl
je 0x4dbef3
mov eax, dword [0x4f7050]
push eax
push 0
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 8]
push eax
call sub.user32.dll_MapVirtualKeyExA
mov esi, eax
shl esi, 0x10
or esi, 0x1000000
jmp 0x4dbf0d
mov eax, dword [0x4f7050]
push eax
push 0
mov eax, dword [ebp + 8]
movzx eax, byte [eax - 8]
push eax
call sub.user32.dll_MapVirtualKeyExA
mov esi, eax
shl esi, 0x10
test esi, esi
je 0x4dbf77
push 0
call sub.user32.dll_GetKeyboardLayout
mov ebx, eax
cmp ebx, dword [0x4f7050]
je 0x4dbf2f
push 0
mov eax, dword [0x4f7050]
push eax
call sub.user32.dll_ActivateKeyboardLayout
push pe_nt_image_headers32
lea eax, [ebp - 0x104]
push eax
push esi
call sub.user32.dll_GetKeyNameTextA
mov eax, edi
lea edx, [ebp - 0x104]
mov ecx, pe_nt_image_headers32
call fcn.00404938
cmp ebx, dword [0x4f7050]
je 0x4dbf77
cmp byte [0x4f7054], 0
je 0x4dbf6f
mov eax, dword [0x4f7050]
push eax
call sub.user32.dll_UnloadKeyboardLayout
push 0
push ebx
call sub.user32.dll_ActivateKeyboardLayout
mov eax, dword [edi]
call fcn.00404988
dec eax
jg 0x4dbfaa
lea ecx, [ebp - 4]
lea edx, [ebp - 2]
mov eax, dword [ebp + 8]
mov eax, dword [eax - 8]
call fcn.004db92c
mov ax, word [ebp - 4]
call fcn.004db960
test al, al
je 0x4dbfaa
mov edx, edi
mov ax, word [ebp - 4]
call fcn.004db974
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4dd9ac
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffde4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x21c], ecx
mov dword [ebp - 0x218], ecx
mov dword [ebp - 0x214], ecx
mov dword [ebp - 0x210], ecx
mov dword [ebp - 0x20c], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ddc0c
push dword fs:[eax]
mov dword fs:[eax], esp
cmp ebx, 1
jl 0x4dda0f
lea edx, [ebp - 0x20c]
mov eax, dword [ebp - 4]
call fcn.004dd4c4
mov eax, dword [ebp - 0x20c]
mov edx, ebx
call fcn.0040ddac
cmp al, 1
jne 0x4dda0f
dec ebx
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 4]
call fcn.004dd78c
test al, al
je 0x4ddb9b
cmp dword [ebp - 8], 0
jge 0x4dda2d
xor eax, eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
inc ebx
lea edx, [ebp - 0x210]
mov eax, dword [ebp - 4]
call fcn.004dd4c4
mov eax, dword [ebp - 0x210]
call fcn.00404988
cmp ebx, eax
jge 0x4dda77
lea edx, [ebp - 0x214]
mov eax, dword [ebp - 4]
call fcn.004dd4c4
mov eax, dword [ebp - 0x214]
mov al, byte [eax + ebx - 1]
mov edx, dword [0x4f51c0]
and eax, 0xff
bt dword [edx], eax
jae 0x4dda77
inc ebx
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x228]
cmp eax, dword [ebp - 8]
jg 0x4dda8b
mov dword [ebp - 8], eax
mov ebx, dword [ebp - 8]
mov ecx, ebx
mov edx, ebx
mov eax, dword [ebp - 4]
call fcn.004dd988
cmp ebx, dword [ebp - 8]
je 0x4ddb8d
lea eax, [ebp - 0x108]
push eax
call sub.user32.dll_GetKeyboardState
mov edx, pe_nt_image_headers32
lea eax, [ebp - 0x208]
mov byte [eax], 0
inc eax
dec edx
jne 0x4ddab7
mov byte [ebp - 0x1f8], 0x81
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f4844]
mov byte [ebp + eax - 0x208], 0x81
lea eax, [ebp - 0x208]
push eax
call sub.user32.dll_SetKeyboardState
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
xor eax, eax
push ebp
push 0x4ddb7a
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f4844]
push eax
push pe_nt_image_headers32
mov eax, dword [ebp - 4]
call fcn.0046d828
push eax
call sub.user32.dll_SendMessageA
push 1
mov eax, dword [ebp - 4]
mov si, 0xffc8
call fcn.00403a60
and eax, 0x7f
movzx eax, word [eax*2 + 0x4f4844]
push eax
push 0x101
mov eax, dword [ebp - 4]
call fcn.0046d828
push eax
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddb81
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 0
ret
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [eax + 0x230], edx
jmp 0x4ddbee
cmp dword [ebp - 8], 0
jge 0x4ddba6
xor eax, eax
mov dword [ebp - 8], eax
lea edx, [ebp - 0x218]
mov eax, dword [ebp - 4]
call fcn.004dd4c4
mov eax, dword [ebp - 0x218]
call fcn.00404988
cmp eax, dword [ebp - 8]
jg 0x4ddbe0
lea edx, [ebp - 0x21c]
mov eax, dword [ebp - 4]
call fcn.004dd4c4
mov eax, dword [ebp - 0x21c]
call fcn.00404988
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.004dd988
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddc13
lea eax, [ebp - 0x21c]
mov edx, 5
call fcn.004046ec
ret
Function at 0x4e9f78
Capabilities:
Delete service
Query service configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
xor edx, edx
mov dword [ebp - 0x18], edx
xor eax, eax
push ebp
push 0x4ea090
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
xor eax, eax
mov dword [ebp - 8], eax
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4ea073
push dword fs:[eax]
mov dword fs:[eax], esp
push 0xf003f
push 0
push 0
call sub.advapi32.dll_OpenSCManagerA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4e9fd3
call fcn.004040e4
jmp 0x4ea07a
push 0xf01ff
lea edx, [ebp - 0x18]
mov eax, dword [0x4f4a9c]
call fcn.004066a4
mov eax, dword [ebp - 0x18]
call fcn.00404b88
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_OpenServiceA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x4ea007
call fcn.004040e4
jmp 0x4ea07a
lea eax, [ebp - 0x14]
push eax
push 0
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_QueryServiceConfigA
mov eax, dword [ebp - 0x14]
call fcn.00408a88
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_DeleteService
test eax, eax
jne 0x4ea037
call fcn.004040e4
jmp 0x4ea07a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea07a
cmp dword [ebp - 0xc], 0
je 0x4ea053
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 8], 0
je 0x4ea062
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x10], 0
je 0x4ea072
xor edx, edx
mov eax, dword [ebp - 0x10]
call fcn.00402b34
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea097
lea eax, [ebp - 0x18]
call fcn.004046c8
ret
Function at 0x44c661
Capabilities:
Copy file
Move file

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x438
push ebx
mov bl, byte [esp + 0x448]
lea eax, [esp + 0x230]
call fcn.0040ff50
mov ecx, dword [esp + 0x444]
lea eax, [esp + 0x24]
call fcn.0040ff50
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x234]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x44c6e0
test bl, bl
je 0x44c709
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x234]
push eax
call fcn.0041455e
add esp, 8
test eax, eax
je 0x44c6d6
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x234]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov al, 1
pop ebx
add esp, 0x438
ret
lea eax, [esp + 0x230]
push eax
call fcn.00438396
add esp, 4
test al, al
je 0x44c709
lea ecx, [esp + 0x24]
push ecx
call fcn.00438396
add esp, 4
test al, al
je 0x44c713
test bl, bl
jne 0x44c735
xor al, al
pop ebx
add esp, 0x438
ret
lea edx, [esp + 0x24]
push edx
call fcn.00438037
add esp, 4
test al, al
je 0x44c709
lea eax, [esp + 0x24]
push eax
call fcn.00438396
add esp, 4
test al, al
je 0x44c709
lea ecx, [esp + 0x230]
push 0x481e48
push ecx
call fcn.00412518
lea edx, [esp + 0x238]
push edx
call fcn.004143ca
lea edx, [esp + 0x30]
xor ecx, ecx
push edx
mov word [esp + eax*2 + 0x242], cx
call fcn.004143ca
xor ecx, ecx
mov word [esp + eax*2 + 0x36], cx
lea edx, [esp + 0x240]
lea eax, [esp + 0x34]
mov dword [esp + 0x1c], edx
add esp, 0x10
mov dword [esp + 0x10], eax
xor eax, eax
lea edx, [esp + 4]
mov ecx, 0x614
push edx
mov dword [esp + 0x1e], eax
mov dword [esp + 0x22], eax
mov dword [esp + 0x1a], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], 2
mov word [esp + 0x18], cx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
sete al
pop ebx
add esp, 0x438
ret
Function at 0x44c7c1
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xca8
mov ecx, dword [ebp + 8]
push ebx
push esi
lea eax, [esp + 0x10]
mov byte [esp + 0xf], 0
call fcn.0040ff50
lea eax, [esp + 0x10]
push eax
call fcn.00438396
add esp, 4
test al, al
je 0x44c803
lea ecx, [esp + 0x10]
push 0x481e48
push ecx
call fcn.00412518
add esp, 8
lea edx, [esp + 0xaa0]
push edx
lea eax, [esp + 0x894]
push eax
lea ecx, [esp + 0x478]
push ecx
lea edx, [esp + 0x68c]
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00415060
add esp, 0x14
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov bl, 1
cmp esi, 0xffffffff
je 0x44c8d7
nop
cmp bl, 1
jne 0x44c8d7
test byte [esp + 0x220], 0x10
jne 0x44c8b1
lea eax, [esp + 0x680]
push eax
lea ecx, [esp + 0x14]
push ecx
mov byte [esp + 0x17], bl
call fcn.00412546
lea edx, [esp + 0x478]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00412518
lea ecx, [esp + 0x25c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00412518
add esp, 0x18
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp eax, 1
jne 0x44c8c8
lea ecx, [esp + 0x220]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x44c851
xor bl, bl
jmp 0x44c851
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov al, byte [esp + 0xf]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454826
Capabilities:
Copy file
Delete file
Enumerate files on windows
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x12d4
call fcn.00426210
mov ecx, dword [ebp + 8]
push ebx
push esi
push edi
lea eax, [esp + 0x430]
xor bl, bl
call fcn.0040ff50
mov ecx, dword [ebp + 0xc]
lea eax, [esp + 0x640]
call fcn.0040ff50
lea eax, [esp + 0x640]
push eax
lea ecx, [esp + 0x434]
push ecx
call fcn.0044c8e8
lea edx, [esp + 0x438]
push edx
mov byte [esp + 0x1b], al
call fcn.00438396
add esp, 0xc
test al, al
je 0x45489b
lea eax, [esp + 0x430]
push 0x481e48
push eax
call fcn.00412518
add esp, 8
lea ecx, [esp + 0x640]
push ecx
call fcn.00438396
add esp, 4
test al, al
je 0x4548c4
lea edx, [esp + 0x640]
push 0x481e48
push edx
call fcn.00412518
add esp, 8
lea eax, [esp + 0xec0]
push eax
lea ecx, [esp + 0x10d4]
push ecx
lea edx, [esp + 0xcb8]
push edx
lea eax, [esp + 0xaac]
push eax
lea ecx, [esp + 0x440]
push ecx
call fcn.00415060
add esp, 0x14
lea edx, [esp + 0x850]
push edx
lea eax, [esp + 0x434]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
mov byte [esp + 0xe], 1
cmp esi, 0xffffffff
je 0x454a80
mov edi, dword [sym.imp.KERNEL32.dll_CopyFileW]
cmp byte [esp + 0xe], 1
jne 0x454a80
test byte [esp + 0x850], 0x10
jne 0x454a60
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x644]
push edx
lea eax, [esp + 0xec8]
push eax
lea ecx, [esp + 0x10dc]
push ecx
lea edx, [esp + 0x88c]
push edx
call fcn.004381f2
add esp, 0x14
lea eax, [esp + 0xaa0]
push eax
lea ecx, [esp + 0x14]
push ecx
call fcn.00412546
lea edx, [esp + 0xcb8]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.00412518
lea ecx, [esp + 0x88c]
push ecx
lea edx, [esp + 0x24]
push edx
call fcn.00412518
lea eax, [esp + 0x238]
push eax
call fcn.004383f4
add esp, 0x1c
test al, al
je 0x4549de
cmp byte [ebp + 0x10], 0
je 0x454a37
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
je 0x454a47
lea eax, [esp + 0x220]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp byte [ebp + 0x14], 1
jne 0x454a22
cmp byte [esp + 0xf], 0
jne 0x454a00
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileW]
jmp 0x454a33
push 0
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
je 0x454a37
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x454a33
push 0
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x18]
push ecx
call edi
test eax, eax
jne 0x454a5e
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
test eax, eax
je 0x454a37
mov bl, 1
lea ecx, [esp + 0x850]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x454920
mov byte [esp + 0xe], al
jmp 0x454920
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret