joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b6388
Capabilities:
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd8
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404258
mov eax, dword [ebp - 8]
call fcn.00404258
xor eax, eax
push ebp
push 0x4b645c
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404268
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4b643a
push 0x14
mov eax, dword [ebp - 8]
call fcn.00404268
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x4b6434
xor eax, eax
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push 0
push esi
call sub.advapi32.dll_StartServiceA
test eax, eax
je 0x4b642e
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b642e
jmp 0x4b6428
mov edi, dword [ebp - 0x14]
mov eax, dword [ebp - 0x10]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x28]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b642e
cmp edi, dword [ebp - 0x14]
ja 0x4b642e
cmp dword [ebp - 0x24], 4
jne 0x4b6409
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x24], 4
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6463
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e48
ret

Function at 0x4b646c
Capabilities:
Query service status
Stop service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffdc
push ebx
push esi
push edi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404258
mov eax, dword [ebp - 8]
call fcn.00404258
xor eax, eax
push ebp
push 0x4b653b
push dword fs:[eax]
mov dword fs:[eax], esp
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404268
push eax
call sub.advapi32.dll_OpenSCManagerA
mov ebx, eax
test ebx, ebx
jbe 0x4b6519
push 0x24
mov eax, dword [ebp - 8]
call fcn.00404268
push eax
push ebx
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x4b6513
lea eax, [ebp - 0x24]
push eax
push 1
push esi
call sub.advapi32.dll_ControlService
test eax, eax
je 0x4b650d
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b650d
jmp 0x4b6507
mov edi, dword [ebp - 0x10]
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_Sleep
lea eax, [ebp - 0x24]
push eax
push esi
call sub.advapi32.dll_QueryServiceStatus
test eax, eax
je 0x4b650d
cmp edi, dword [ebp - 0x10]
ja 0x4b650d
cmp dword [ebp - 0x20], 1
jne 0x4b64e8
push esi
call sub.advapi32.dll_CloseServiceHandle
push ebx
call sub.advapi32.dll_CloseServiceHandle
cmp dword [ebp - 0x20], 1
sete bl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b6542
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e48
ret
Function at 0x4b654c
Capabilities:
Modify service

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404258
mov eax, dword [ebp - 8]
call fcn.00404258
xor eax, eax
push ebp
push 0x4b65f6
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
push 1
push 0
mov eax, dword [ebp - 4]
call fcn.00404268
push eax
call sub.advapi32.dll_OpenSCManagerA
mov edi, eax
test edi, edi
jbe 0x4b65db
push 2
mov eax, dword [ebp - 8]
call fcn.00404268
push eax
push edi
call sub.advapi32.dll_OpenServiceA
mov esi, eax
test esi, esi
jbe 0x4b65d5
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0xc]
push eax
push 0xffffffffffffffff
push esi
call sub.advapi32.dll_ChangeServiceConfigA
test eax, eax
je 0x4b65cf
mov bl, 1
push esi
call sub.advapi32.dll_CloseServiceHandle
push edi
call sub.advapi32.dll_CloseServiceHandle
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b65fd
lea eax, [ebp - 8]
mov edx, 2
call fcn.00403e48
ret
Function at 0x4b791c
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov esi, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b7a58
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4b7a70
mov dl, 4
mov eax, dword [ebp - 4]
call fcn.004b8e98
mov eax, dword [ebp - 4]
call fcn.004b8728
xor edx, edx
push ebp
push 0x4b7a3b
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4b79da
test si, si
jne 0x4b798c
mov eax, dword [ebp - 8]
call fcn.00409a80
mov esi, eax
cmp esi, 0xffff
jbe 0x4b798c
call fcn.00402ff8
movzx ebx, si
push 0
push ebx
movzx eax, si
sub eax, ebx
mov edx, dword [ebp - 8]
lea eax, [edx + eax]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4b79da
cmp eax, 0xffffffff
jle 0x4b79bb
sub ebx, eax
jmp 0x4b79ca
lea ecx, [ebp - 0xc]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004b8dcc
test ebx, ebx
je 0x4b79da
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4b798f
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4b7a25
mov eax, dword [ebp - 4]
mov byte [eax + 0x10088], 0
mov ecx, 0x4b7a88
mov dl, 1
mov eax, dword [0x4b6e3c]
call fcn.0040bc8c
call fcn.00403854
mov eax, dword [ebp - 4]
cmp word [eax + 0x10282], 0
je 0x4b7a25
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7a42
mov eax, dword [ebp - 4]
call fcn.004b8780
ret
Function at 0x4b7b9c
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4b7d32
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x4b7d48
lea edx, [ebp - 0xc]
movzx eax, si
call fcn.0040932c
push dword [ebp - 0xc]
push 0x4b7d58
lea eax, [ebp - 8]
mov edx, 3
call fcn.00404164
mov ecx, dword [ebp - 8]
mov dl, 8
mov eax, ebx
call fcn.004b8e98
test si, si
jne 0x4b7c3d
push 2
push 0x10000
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
cmp eax, 0xffffffff
jne 0x4b7c2c
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, ebx
call fcn.004b8dcc
mov eax, dword [ebp - 4]
call fcn.00403e24
jmp 0x4b7c93
mov esi, eax
cmp esi, 0xffff
jbe 0x4b7c93
call fcn.00402ff8
jmp 0x4b7c93
push 2
push 0x10000
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
movzx edx, si
cmp eax, edx
jge 0x4b7c93
test eax, eax
jne 0x4b7c6d
mov eax, dword [ebp - 4]
call fcn.00403e24
jmp 0x4b7d17
inc eax
jne 0x4b7c7e
lea ecx, [ebp - 0x14]
mov dx, 0x2733
mov eax, ebx
call fcn.004b8dcc
mov eax, dword [0x535040]
mov eax, dword [eax]
call fcn.004505b4
cmp byte [ebx + 0x10088], 0
je 0x4b7c3d
cmp byte [ebx + 0x10088], 0
jne 0x4b7ce2
movzx edi, si
mov edx, edi
mov eax, dword [ebp - 4]
call fcn.004043d8
push 0
push edi
mov eax, dword [ebp - 4]
call fcn.00404274
mov edx, 1
dec edx
cmp edx, dword [eax - 4]
jb 0x4b7cc4
call fcn.00402ff8
inc edx
lea eax, [eax + edx - 1]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
mov edx, dword [ebp - 4]
xchg edx, eax
call fcn.004043d8
jmp 0x4b7d17
mov byte [ebx + 0x10088], 0
mov ecx, 0x4b7d64
mov dl, 1
mov eax, dword [0x4b6e3c]
call fcn.0040bc8c
call fcn.00403854
cmp word [ebx + 0x10282], 0
je 0x4b7d17
mov edx, ebx
mov eax, dword [ebx + 0x10284]
call dword [ebx + 0x10280]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b7d39
lea eax, [ebp - 0x14]
mov edx, 4
call fcn.00403e48
ret
Function at 0x4b8150
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.00404258
xor eax, eax
push ebp
push 0x4b830d
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4b8324
mov dl, 8
mov eax, dword [ebp - 4]
call fcn.004b8e98
push 0
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x40fedc]
call fcn.00413840
mov dword [ebp - 0xc], eax
xor edx, edx
push ebp
push 0x4b829d
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
jne 0x4b8261
mov eax, dword [ebp - 4]
lea edx, [eax + 0x24]
mov ecx, 0x10000
mov eax, dword [ebp - 0xc]
mov ebx, dword [eax]
call dword [ebx + 4]
mov esi, eax
mov ebx, esi
push 0
push ebx
mov eax, esi
sub eax, ebx
cmp eax, 0x10000
jbe 0x4b81e5
call fcn.00402ff8
mov edx, dword [ebp - 4]
lea eax, [edx + eax + 0x24]
push eax
mov eax, dword [ebp - 4]
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_send
test eax, eax
je 0x4b8261
cmp eax, 0xffffffff
jle 0x4b8232
sub ebx, eax
mov edx, dword [ebp - 4]
add dword [edx + 0x10084], eax
mov eax, dword [ebp - 4]
cmp word [eax + 0x100c2], 0
je 0x4b8241
mov edi, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [edi + 0x100c4]
call dword [edi + 0x100c0]
jmp 0x4b8241
lea ecx, [ebp - 0x10]
mov dx, 0x2733
mov eax, dword [ebp - 4]
call fcn.004b8dcc
mov eax, dword [0x535040]
mov eax, dword [eax]
call fcn.004505b4
test ebx, ebx
je 0x4b8261
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4b81d2
mov eax, dword [ebp - 0xc]
call fcn.004135b8
mov ebx, eax
mov eax, dword [ebp - 0xc]
call fcn.004135d4
cmp ebx, eax
je 0x4b8287
mov eax, dword [ebp - 4]
cmp byte [eax + 0x10088], 0
je 0x4b81ab
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b82a4
mov eax, dword [ebp - 0xc]
call fcn.004030bc
ret
Function at 0x4b8cd4
Capabilities:
Create tcp socket
Create udp socket

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push ebp
push 0x4b8da0
push dword fs:[eax]
mov dword fs:[eax], esp
mov ecx, 0x4b8db4
mov dl, 4
mov eax, ebx
call fcn.004b8e98
mov byte [ebx + 0x10290], 0
mov si, word [ebx + 0x10288]
cmp si, 0xffff
je 0x4b8d8a
movzx eax, si
push eax
call sub.wsock32.dll_closesocket
test eax, eax
jne 0x4b8d7c
test byte [ebx + 0x20], 8
jne 0x4b8d39
cmp word [ebx + 0x1004a], 0
je 0x4b8d39
mov edx, ebx
mov eax, dword [ebx + 0x1004c]
call dword [ebx + 0x10048]
cmp byte [ebx + 0x10089], 0
jne 0x4b8d8a
push 0
push 1
push 2
call sub.wsock32.dll_socket
mov esi, eax
cmp esi, 0xffff
jbe 0x4b8d5c
call fcn.00402ff8
mov word [ebx + 0x10288], si
push 0x3d
push 0x465
mov eax, dword [ebx + 0x1028c]
push eax
movzx eax, si
push eax
call sub.wsock32.dll_WSAAsyncSelect
jmp 0x4b8d8a
lea ecx, [ebp - 4]
mov dx, 0x2733
mov eax, ebx
call fcn.004b8dcc
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b8da7
lea eax, [ebp - 4]
call fcn.00403e24
ret

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

Disassembly:
push ebx
mov ebx, eax
mov ecx, 0x4b8f7c
mov dl, 8
mov eax, ebx
call fcn.004b8e98
push 2
push 1
lea eax, [ebx + 0x24]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
test eax, eax
jle 0x4b8f6e
mov al, 1
pop ebx
ret
xor eax, eax
pop ebx
ret

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

Disassembly:
push ebx
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4b8f93
mov eax, dword [esp + 0x10000]
mov ebx, eax
mov ecx, 0x4b8fe0
mov dl, 8
mov eax, ebx
call fcn.004b8e98
push 0
push 0x10000
lea eax, [esp + 8]
push eax
movzx eax, word [ebx + 0x10288]
push eax
call sub.wsock32.dll_recv
add esp, 0x10004
pop ebx
ret

Function at 0x4b9218
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
mov edi, esp
mov dword [edi], 0x10
push edi
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_getsockname
push dword [esp + 8]
call sub.wsock32.dll_inet_ntoa
mov ebx, eax
xor eax, eax
mov dword [edi], eax
xor eax, eax
mov edx, dword [edi]
cmp byte [ebx + edx], 0x2e
jne 0x4b925b
mov edx, dword [edi]
mov byte [ebx + edx], 0x2c
inc eax
inc dword [edi]
cmp eax, 3
jl 0x4b924c
mov edx, esi
mov eax, ebx
call fcn.00409cc8
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x4b9274
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebx
push esi
add esp, 0xffffffdc
mov esi, edx
mov dword [esp], 0x10
push esp
lea edx, [esp + 8]
push edx
movzx eax, word [eax + 0x10288]
push eax
call sub.wsock32.dll_getsockname
push esi
mov bx, word [esp + 0xa]
mov eax, ebx
and ax, 0xff
movzx eax, ax
mov dword [esp + 0x18], eax
mov byte [esp + 0x1c], 0
shr bx, 8
movzx eax, bx
mov dword [esp + 0x20], eax
mov byte [esp + 0x24], 0
lea edx, [esp + 0x18]
mov ecx, 1
mov eax, 0x4b92e0
call fcn.0040a210
add esp, 0x24
pop esi
pop ebx
ret
Function at 0x4c95bc
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
test dl, dl
je 0x4c95d3
add esp, 0xfffffff0
call fcn.004033fc
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x4c9759
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, ebx
call fcn.004182dc
mov dword [ebx + 0x90], 0xffffffff
xor eax, eax
mov dword [ebx + 0xe4], eax
mov byte [ebx + 0x24], 1
mov byte [ebx + 0x84], 1
xor eax, eax
mov dword [ebx + 0x44], eax
mov byte [ebx + 0x94], 0
xor eax, eax
mov dword [ebx + 0x48], eax
mov dl, 1
mov eax, dword [0x4c38fc]
call fcn.0040308c
mov dword [ebx + 0x74], eax
lea edx, [ebp - 8]
mov eax, dword [0x535148]
call fcn.00405f30
mov eax, dword [ebp - 8]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4c2078]
call fcn.004c8000
mov esi, eax
mov dword [ebx + 0x78], esi
mov byte [esi + 4], 0
mov byte [esi + 0x2c], 1
lea edx, [ebp - 0xc]
mov eax, dword [0x535094]
call fcn.00405f30
mov eax, dword [ebp - 0xc]
push eax
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4c2078]
call fcn.004c8000
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x40f7dc]
call fcn.0040308c
mov dword [ebx + 0x30], eax
mov dl, 1
mov eax, dword [0x40f7dc]
call fcn.0040308c
mov dword [ebx + 0x7c], eax
mov dword [ebx + 0x28], 0x80000000
mov byte [ebx + 0x64], 1
mov word [ebx + 0x38], 0
mov ecx, ebx
mov dl, 1
mov eax, dword [0x4c3474]
call fcn.004c8734
mov dword [ebx + 0x58], eax
lea edx, [ebx + 0x70]
mov eax, dword [0x535198]
call fcn.00405f30
lea edx, [ebx + 0x60]
mov eax, dword [0x535134]
call fcn.00405f30
mov dl, 1
mov eax, dword [0x40f7dc]
call fcn.0040308c
mov dword [ebx + 0x3c], eax
xor eax, eax
mov dword [ebx + 0x68], eax
mov dl, 1
mov eax, dword [0x40f7dc]
call fcn.0040308c
mov dword [ebx + 0x54], eax
mov al, byte [0x4c9780]
mov byte [ebx + 0x95], al
mov dword [ebx + 0x40], 0xffffffff
mov dword [ebx + 0x50], 0xffffffff
mov byte [ebx + 0xea], 1
mov byte [ebx + 0xe8], 1
mov byte [ebx + 0xeb], 0
lea eax, [ebx + 0xe0]
call fcn.00403e24
mov al, byte [0x4c9784]
mov byte [ebx + 0x9c], al
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c9760
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00403e48
ret

Function at 0x4dc5c8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
mov bl, byte [0x4dc600]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dc5de
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dc5ed
or bl, 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4dc5fc
or bl, 2
mov eax, ebx
pop ebx
ret

Function at 0x4dcc18
Capabilities:
Hide graphical window

Disassembly:
mov eax, dword [0x535040]
mov eax, dword [eax]
mov eax, dword [eax + 0x38]
test eax, eax
je 0x4dcc45
mov edx, dword [0x535040]
xor edx, edx
call fcn.0044a4e4
push 0
mov eax, dword [0x535040]
mov eax, dword [eax]
mov eax, dword [eax + 0x24]
push eax
call sub.user32.dll_ShowWindow
ret
Function at 0x4dd2c4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 6]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp edx, dword [ebp + 0xc]
jne 0x4dd30b
test edx, edx
jbe 0x4dd307
movzx ebx, word [ebp - 2]
shr ebx, 8
xor bl, byte [eax]
mov byte [ecx], bl
mov bl, byte [eax]
add bl, byte [ebp - 2]
and ebx, 0xff
imul bx, word [ebp - 6]
add bx, word [ebp - 4]
mov word [ebp - 2], bx
inc eax
inc ecx
dec edx
jne 0x4dd2df
mov al, 1
jmp 0x4dd30d
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 8

Function at 0x4dd318
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push esi
push edi
mov esi, dword [ebp + 8]
lea edi, [ebp - 6]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
cmp edx, dword [ebp + 0xc]
jne 0x4dd360
mov esi, eax
mov eax, ecx
test edx, edx
jbe 0x4dd35c
movzx ecx, word [ebp - 2]
shr ecx, 8
xor cl, byte [esi]
mov byte [eax], cl
add cl, byte [ebp - 2]
and ecx, 0xff
imul cx, word [ebp - 6]
add cx, word [ebp - 4]
mov word [ebp - 2], cx
inc esi
inc eax
dec edx
jne 0x4dd336
mov al, 1
jmp 0x4dd362
xor eax, eax
pop edi
pop esi
pop ecx
pop ecx
pop ebp
ret 8
Function at 0x4ddb34
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x118], ebx
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ddd11
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x114]
push eax
push 0xff
call sub.kernel32.dll_GetLogicalDriveStringsA
lea eax, [ebp - 0x10]
call fcn.00403e24
lea eax, [ebp - 0x14]
call fcn.00403e24
xor edi, edi
mov esi, 0x101
lea ebx, [ebp - 0x114]
cmp byte [ebx], 0
je 0x4ddbb8
lea eax, [ebp - 0x118]
mov dl, byte [ebx]
call fcn.00403fcc
mov edx, dword [ebp - 0x118]
lea eax, [ebp - 0x14]
call fcn.004040ac
jmp 0x4ddcd8
cmp dword [ebp - 8], 0xffffffff
jne 0x4ddbdb
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4ddd28
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404164
jmp case.0x4ddbf2.0
mov eax, dword [ebp - 0x14]
call fcn.00404268
push eax
call sub.kernel32.dll_GetDriveTypeA
cmp eax, 6
ja case.0x4ddbf2.0
jmp dword [eax*4 + 0x4ddbf9]
cmp dword [ebp - 8], 0
jne case.0x4ddbf2.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4ddd28
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404164
jmp case.0x4ddbf2.0
cmp dword [ebp - 8], 1
jne case.0x4ddbf2.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4ddd28
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404164
jmp case.0x4ddbf2.0
cmp dword [ebp - 8], 2
jne case.0x4ddbf2.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4ddd28
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404164
jmp case.0x4ddbf2.0
cmp dword [ebp - 8], 3
jne case.0x4ddbf2.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4ddd28
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404164
jmp case.0x4ddbf2.0
cmp dword [ebp - 8], 4
jne case.0x4ddbf2.0
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push 0x4ddd28
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.00404164
cmp edi, dword [ebp - 4]
jne 0x4ddcc9
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x14]
call fcn.00403e78
jmp 0x4ddceb
lea eax, [ebp - 0x14]
call fcn.00403e24
inc edi
cmp byte [ebx + 1], 0
je 0x4ddce0
inc ebx
dec esi
jne 0x4ddb93
mov eax, dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
call fcn.00403e78
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ddd18
lea eax, [ebp - 0x118]
call fcn.00403e24
lea eax, [ebp - 0x14]
mov edx, 2
call fcn.00403e48
ret

Function at 0x4dede8
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404258
xor eax, eax
push ebp
push 0x4dee3c
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [ebp - 4]
call fcn.00404268
mov ebx, eax
push ebx
call sub.kernel32.dll_SetFileAttributesA
push ebx
call sub.kernel32.dll_DeleteFileA_1
neg eax
sbb eax, eax
neg eax
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4dee43
lea eax, [ebp - 4]
call fcn.00403e24
ret

Function at 0x4def54
Capabilities:
Acquire debug privileges

Disassembly:
mov eax, 0x4def60
call fcn.004deecc
ret
Function at 0x4df398
Capabilities:
Extract resource via kernel32 functions
Persist via windows service
Set registry value
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
push esi
push edi
xor eax, eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4df591
push dword fs:[eax]
mov dword fs:[eax], esp
call fcn.004df190
mov ebx, eax
test bl, bl
jne 0x4df56e
mov eax, 0x4df5a4
mov dword [ebp - 8], eax
push 0xa
push 1
push 0
call sub.kernel32.dll_FindResourceA
mov esi, eax
push esi
push 0
call sub.kernel32.dll_LoadResource
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x20], eax
push esi
push 0
call sub.kernel32.dll_SizeofResource
mov edi, eax
lea edx, [ebp - 0x28]
mov eax, 0x4df5c0
call fcn.004df11c
mov edx, dword [ebp - 0x28]
mov eax, 0x5374dc
call fcn.00403e78
mov eax, dword [0x5374dc]
call fcn.004dede8
push 0
push 1
push 2
push 0
push 0
push 0x40000000
mov eax, dword [0x5374dc]
call fcn.00404268
push eax
call sub.kernel32.dll_CreateFileA_1
mov esi, eax
cmp esi, 0xffffffff
je 0x4df56e
test esi, esi
je 0x4df56e
push 0
lea eax, [ebp - 0x14]
push eax
push edi
mov eax, dword [ebp - 0x20]
push eax
push esi
call sub.kernel32.dll_WriteFile_1
test eax, eax
je 0x4df56e
cmp edi, dword [ebp - 0x14]
jne 0x4df56e
push esi
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 4]
mov ecx, dword [0x5374dc]
mov edx, 0x4df5d0
call fcn.004040f0
mov dword [ebp - 0x10], 3
mov dword [ebp - 0xc], 1
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x24]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x30]
mov edx, dword [ebp - 8]
call fcn.00403fdc
mov ecx, dword [ebp - 0x30]
lea eax, [ebp - 0x2c]
mov edx, 0x4df5e0
call fcn.004040f0
mov eax, dword [ebp - 0x2c]
call fcn.00404268
push eax
push 0x80000002
call sub.advapi32.dll_RegCreateKeyExA
push 4
lea eax, [ebp - 0x1c]
push eax
push 4
push 0
push 0x4df604
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 4]
call fcn.004040a4
push eax
lea eax, [ebp - 4]
call fcn.00404274
push eax
push 2
push 0
push 0x4df614
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
lea eax, [ebp - 0x10]
push eax
push 4
push 0
push 0x4df620
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegSetValueExA
push 4
lea eax, [ebp - 0xc]
push eax
push 4
push 0
push 0x4df628
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegSetValueExA
mov eax, dword [ebp - 0x24]
push eax
call sub.advapi32.dll_RegCloseKey_1
call fcn.004df1dc
mov ebx, eax
call fcn.004df2c0
mov eax, 0x4df5c0
call fcn.004dede8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df598
lea eax, [ebp - 0x30]
mov edx, 3
call fcn.00403e48
lea eax, [ebp - 4]
call fcn.00403e24
ret
Function at 0x4df8ec
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x4df95e
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebp - 1], 0
mov eax, ebx
call fcn.004df8dc
test al, al
jne 0x4df948
lea edx, [ebp - 8]
mov eax, ebx
call fcn.004df68c
push ebx
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x4df948
cmp ebx, 0xffffffff
je 0x4df948
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
push ebx
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 1], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4df965
lea eax, [ebp - 8]
call fcn.00403e24
ret