joyce8/EMBER2024-capa huggingface dataset:
Function at 0x568aa8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 0xd], 0
cmp dword [ebp + 8], 0
je 0x568b5d
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_FindResourceA
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x568b5d
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_LoadResource
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x568b5d
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_LockResource
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
push eax
call sub.kernel32.dll_FreeResource
cmp dword [ebp - 0x1c], 0
je 0x568b5d
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SizeofResource
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x568b5d
xor eax, eax
push ebp
push 0x568b53
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
call fcn.00420978
mov byte [ebp - 0xd], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x568b5d
mov al, byte [ebp - 0xd]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x569718
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffef4
push ebx
mov dword [ebp - 0x10c], ecx
mov dword [ebp - 0x108], edx
mov dword [ebp - 0x104], eax
push esi
push edi
mov esi, ecx
mov eax, esi
test eax, eax
je 0x569741
mov eax, dword [esi - 4]
push eax
push esi
mov esi, edx
mov ecx, esi
test ecx, ecx
je 0x56974e
mov ecx, dword [esi - 4]
add al, cl
inc eax
lea edi, [ebp - 0x100]
mov edx, eax
stosb byte es:[edi], al
mov al, cl
stosb byte es:[edi], al
rep movsb byte es:[edi], byte [esi]
pop esi
pop ecx
rep movsb byte es:[edi], byte [esi]
mov ecx, edx
std
dec edi
mov esi, edi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x56976c
cld
pop edi
pop esi
xor ecx, ecx
mov cl, byte [ebp - 0x100]
inc ecx
lea edx, [ebp - 0x100]
mov eax, dword [ebp - 0x104]
mov ebx, dword [eax]
call dword [ebx + 0xc]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x569794
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe74
push ebx
mov dword [ebp - 0x18c], ecx
mov dword [ebp - 0x188], edx
mov dword [ebp - 0x184], eax
lea edx, [ebp - 0x80]
mov ecx, 1
mov eax, dword [ebp - 0x184]
mov ebx, dword [eax]
call dword [ebx + 8]
xor ecx, ecx
mov cl, byte [ebp - 0x80]
lea edx, [ebp - 0x7f]
mov eax, dword [ebp - 0x184]
mov ebx, dword [eax]
call dword [ebx + 8]
push esi
push edi
xor eax, eax
lea esi, [ebp - 0x80]
lodsb al, byte [esi]
push esi
push eax
mov ecx, eax
mov edx, eax
mov edi, esi
xor dl, 0xeb
lodsb al, byte [esi]
xor al, dl
stosb byte es:[edi], al
loop 0x5697e9
pop eax
pop esi
lea edi, [ebp - 0x100]
mov cl, byte [esi]
inc ecx
sub eax, ecx
rep movsb byte es:[edi], byte [esi]
lea edi, [ebp - 0x180]
stosb byte es:[edi], al
mov ecx, eax
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, dword [ebp - 0x188]
lea edx, [ebp - 0x100]
call fcn.00404d7c
mov eax, dword [ebp - 0x18c]
lea edx, [ebp - 0x180]
call fcn.00404d7c
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x569f20
Capabilities:
Read data from internet
Read file on windows
Receive data

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 8]
cmp byte [eax - 0x1009], 0
je 0x569f75
push 0
mov eax, dword [ebp + 8]
add eax, 0xffffeff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1010]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x130]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x168]
push eax
call sub.kernel32.dll_ReadFile_1
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
jmp 0x569fb6
mov eax, dword [ebp + 8]
add eax, 0xffffeff8
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1010]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x130]
push eax
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0x1004]
mov eax, dword [eax + 0x164]
push eax
call sub.wininet.dll_InternetReadFile
cmp eax, 1
sbb eax, eax
inc eax
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
pop ecx
pop ebp
ret
Function at 0x56f434
Capabilities:
Write and execute a file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor ecx, ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x56f5b1
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push pe_nt_image_headers32
push 2
push 0
push 3
push 0x40000000
mov eax, dword [0x592af8]
call fcn.00404fec
push eax
call sub.kernel32.dll_CreateFileA_1
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x56f4fc
mov dl, 1
mov eax, dword [0x41be98]
call fcn.00403c1c
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x56f4ec
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
mov ecx, 0x56f5c0
mov edx, 0x56f5c0
mov eax, dword [0x590718]
call fcn.00568aa8
push 0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x10]
call fcn.00420748
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
push eax
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_WriteFile_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56f4f3
mov eax, dword [ebp - 0x10]
call fcn.00403c4c
ret
mov eax, dword [ebp - 4]
cmp byte [eax + 0x220], 0
jne 0x56f519
lea edx, [ebp - 0x18]
mov eax, dword [0x58ef8c]
mov eax, dword [eax]
call fcn.00467e08
jmp 0x56f533
mov eax, dword [ebp - 4]
cmp byte [eax + 0x220], 1
jne 0x56f533
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 4]
mov edx, dword [edx + 0x44]
call fcn.00404bb8
push 1
push dword [0x592af8]
push 0x56f5d0
push dword [ebp - 0x18]
push 0x56f5d0
push dword [ebp - 8]
lea eax, [ebp - 0x1c]
mov edx, 5
call fcn.00404eb4
mov eax, dword [ebp - 0x1c]
call fcn.00404fec
push eax
call sub.kernel32.dll_WinExec
mov eax, dword [ebp - 4]
mov byte [eax + 0x23c], 1
mov eax, dword [ebp - 4]
cmp word [eax + 0x1d2], 0
je 0x56f591
mov ebx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0x1d4]
call dword [ebx + 0x1d0]
jmp 0x56f596
call fcn.00568b6c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56f5b8
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404b44
ret
Function at 0x56fa48
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb8
xor eax, eax
mov dword [ebp - 0x144], eax
mov dword [ebp - 0x148], eax
mov dword [ebp - 0x140], eax
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x56fb99
push dword fs:[eax]
mov dword fs:[eax], esp
xor edx, edx
mov eax, 2
call fcn.0056f9a8
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x56fa94
mov byte [ebp - 1], 0
jmp 0x56fb73
mov dword [ebp - 0x13c], 0x128
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 8]
call fcn.0056f9c8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
sbb eax, eax
inc eax
test al, al
jne 0x56fb60
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 1], 0
jmp 0x56fb73
lea eax, [ebp - 0x140]
lea edx, [ebp - 0x118]
mov ecx, 0x104
call fcn.00404d88
mov eax, dword [ebp - 0x140]
lea edx, [ebp - 0x10]
call fcn.0040a0bc
lea edx, [ebp - 0x144]
mov eax, dword [ebp - 0x10]
call fcn.00409260
mov eax, dword [ebp - 0x144]
push eax
lea edx, [ebp - 0x148]
mov eax, 0x56fbb0
call fcn.005654e8
mov edx, dword [ebp - 0x148]
pop eax
call fcn.00404f38
jne 0x56fb4b
mov eax, dword [ebp - 0x134]
mov dword [ebp - 0x14], eax
push 1
mov eax, dword [ebp - 0x14]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
push eax
call sub.kernel32.dll_TerminateProcess
mov byte [ebp - 1], 1
jmp 0x56fb6a
mov byte [ebp - 1], 0
lea edx, [ebp - 0x13c]
mov eax, dword [ebp - 8]
call fcn.0056f9e8
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x56fad0
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56fba0
lea eax, [ebp - 0x148]
mov edx, 3
call fcn.00404b44
lea eax, [ebp - 0x10]
call fcn.00404b20
ret

Function at 0x56fbc0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x56fc57
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
lea edx, [ebp - 0x14]
mov eax, 0x56fc70
call fcn.005654e8
mov eax, dword [ebp - 0x14]
call fcn.00404fec
push eax
call sub.user32.dll_FindWindowA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x56fc3d
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call sub.user32.dll_GetWindowThreadProcessId_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 1], 1
jmp 0x56fc41
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56fc5e
lea eax, [ebp - 0x14]
call fcn.00404b20
ret
Function at 0x56fc88
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd4
xor eax, eax
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x56fdad
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
mov edx, 0x56fdc4
call fcn.00404bb8
lea eax, [ebp - 0x18]
mov edx, dword [ebp - 0x14]
mov dl, byte [edx + 3]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x1c]
call fcn.004031d0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dl, byte [edx]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x1c]
mov cl, 2
call fcn.004031a0
lea edx, [ebp - 0x1c]
lea eax, [ebp - 0x24]
call fcn.004031d0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dl, byte [edx + 2]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x24]
mov cl, 3
call fcn.004031a0
lea edx, [ebp - 0x24]
lea eax, [ebp - 0x2c]
call fcn.004031d0
lea eax, [ebp - 0x20]
mov edx, dword [ebp - 0x14]
mov dl, byte [edx + 1]
mov byte [eax + 1], dl
mov byte [eax], 1
lea edx, [ebp - 0x20]
lea eax, [ebp - 0x2c]
mov cl, 4
call fcn.004031a0
lea edx, [ebp - 0x2c]
lea eax, [ebp - 0x14]
call fcn.00404d7c
mov eax, dword [ebp - 0x14]
call fcn.00404fec
push eax
push 0
call sub.user32.dll_FindWindowA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x56fd93
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
call sub.user32.dll_GetWindowThreadProcessId_1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x10]
push eax
push 0
push 1
call sub.kernel32.dll_OpenProcess
mov dword [ebp - 0xc], eax
push 0
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_TerminateProcess
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_CloseHandle_1
mov byte [ebp - 1], 1
jmp 0x56fd97
mov byte [ebp - 1], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56fdb4
lea eax, [ebp - 0x14]
call fcn.00404b20
ret

Function at 0x572384
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x5723f4
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0x572404
push 0x572404
lea edx, [ebp - 0xc]
mov eax, dword [0x58e088]
call fcn.005725a8
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x572410
call fcn.00404e40
mov eax, dword [ebp - 8]
call fcn.00404fec
push eax
push 0x572418
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5723fb
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404b44
ret

Function at 0x572420
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
xor eax, eax
push ebp
push 0x572490
push dword fs:[eax]
mov dword fs:[eax], esp
push 5
push 0x5724a0
push 0x5724a0
lea edx, [ebp - 0xc]
mov eax, dword [0x58e08c]
call fcn.005725a8
mov ecx, dword [ebp - 0xc]
lea eax, [ebp - 8]
mov edx, 0x5724ac
call fcn.00404e40
mov eax, dword [ebp - 8]
call fcn.00404fec
push eax
push 0x5724b4
push 0
call sub.shell32.dll_ShellExecuteA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x572497
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.00404b44
ret
Function at 0x572ff8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fdc
xor eax, eax
push ebp
push 0x57313d
push dword fs:[eax]
mov dword fs:[eax], esp
call sub.kernel32.dll_IsDebuggerPresent_1
cmp al, 1
jne 0x573035
call fcn.0040e8e8
jmp 0x57311f
xor eax, eax
mov dword [ebp - 0x10], eax
cmp dword [ebp - 8], 0
je 0x573046
cmp dword [ebp - 8], 1
jne 0x57306a
push 5
push 0x573150
push 0x573150
mov eax, dword [ebp - 4]
call fcn.00404fec
push eax
push 0x573154
push 0
call sub.shell32.dll_ShellExecuteA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
ja 0x5730a0
cmp dword [ebp - 8], 0
je 0x57307c
cmp dword [ebp - 8], 2
jne 0x5730a0
push 5
push 0x573150
mov eax, dword [ebp - 4]
call fcn.00404fec
push eax
push 0x57315c
push 0x573154
push 0
call sub.shell32.dll_ShellExecuteA
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0x20
ja 0x573117
cmp dword [ebp - 8], 0
je 0x5730b2
cmp dword [ebp - 8], 3
jne 0x573117
xor eax, eax
push ebp
push 0x573108
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], 0xb
lea edx, [ebp - 0x1c]
xor ecx, ecx
mov eax, 0x573174
call fcn.0040ace8
push 5
push 0
mov eax, dword [ebp - 0x14]
call fcn.00404fec
push eax
push 0x573194
push 0x573154
push 0
call sub.shell32.dll_ShellExecuteA
mov dword [ebp - 0x10], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x573117
cmp dword [ebp - 0x10], 0x20
seta byte [ebp - 9]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x573144
lea eax, [ebp - 0x14]
call fcn.00404b20
lea eax, [ebp - 4]
call fcn.00404b20
ret

Function at 0x573a34
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404fec
push eax
call sub.kernel32.dll_GetFileAttributesA
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x573a5a
test byte [ebp - 0xc], 0x10
jne 0x573a5e
xor eax, eax
jmp 0x573a60
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x576dd4
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x10], 0xca
jne 0x576e02
mov eax, ebx
call fcn.0057788c
cmp dword [ebx + 0x3c], 0
je 0x576dfb
mov dword [ebx + 0x10], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x10], 0xcb
cmp dword [ebx + 0x10], 0xcb
jne 0x576e73
mov edx, dword [ebx + 0x1ac]
cmp dword [edx + 0x10], 0
je 0x576e65
cmp dword [ebx + 8], 0
je 0x576e24
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1ac]
call dword [edx]
test eax, eax
jne 0x576e36
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x576e65
cmp dword [ebx + 8], 0
je 0x576e17
cmp eax, 3
je 0x576e49
dec eax
jne 0x576e17
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 0x576e17
mov edx, dword [ebx + 0x138]
add dword [eax + 8], edx
jmp 0x576e17
mov ecx, dword [ebx + 0x8c]
mov dword [ebx + 0x94], ecx
jmp 0x576e91
cmp dword [ebx + 0x10], 0xcc
je 0x576e91
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x12
mov edx, dword [ebx + 0x10]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.00576e9c
pop ebx
ret
Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
nop
mov ecx, 0x64043e37
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x42e024
nop
nop
nop
nop
mov eax, section..text_1
nop
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x3476342d
nop
nop
nop
test eax, eax
nop
nop
je 0x42e084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
jne 0x42e06c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x403400
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416cb8
mov eax, dword fs:[0]
push eax
sub esp, 0x7c
push ebx
push esi
push edi
mov eax, dword [section..data]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
push ecx
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x4035a0
mov eax, dword [esi + 0x10]
push 4
push 0x3000
inc eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
test ebx, ebx
jne 0x403495
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.00401280
push eax
mov edx, str.Failed_to_allocate_memory_in_target_process._Error:
mov dword [ebp - 4], 2
lea ecx, [ebp - 0x3c]
call fcn.0040ca40
add esp, 4
mov byte [ebp - 4], 3
jmp 0x4035cc
mov eax, dword [esi + 0x10]
inc eax
cmp dword [esi + 0x14], 0xf
jbe 0x4034a1
mov esi, dword [esi]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
jne 0x4034f7
push 0x8000
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x54]
call fcn.00401280
push eax
mov edx, str.Failed_to_write_DLL_path_to_target_process._Error:
mov dword [ebp - 4], 4
lea ecx, [ebp - 0x3c]
call fcn.0040ca40
add esp, 4
mov byte [ebp - 4], 5
jmp 0x4035cc
push 0
push 0
push ebx
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push 0
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
mov esi, eax
test esi, esi
jne 0x40356a
push 0x8000
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x6c]
call fcn.00401280
push eax
mov edx, str.Failed_to_create_remote_thread_in_target_process._Error:
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x84]
call fcn.0040ca40
add esp, 4
push eax
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 7
call fcn.004012a0
push 0x41b014
lea eax, [ebp - 0x24]
jmp 0x4035dd
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x8000
push 0
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push edi
call esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, eax
lea ecx, [ebp - 0x3c]
call fcn.00401280
push eax
mov edx, str.Failed_to_open_target_process._Error:
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x54]
call fcn.0040ca40
add esp, 4
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp - 0x18]
call fcn.004012a0
push 0x41b014
lea eax, [ebp - 0x18]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x404150
Capabilities:
Query service status
Start service
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0xf003f
push 0
push 0
mov dword [ebp - 0x24], edx
mov esi, ecx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
cmp dword [esi + 0x14], 7
mov ebx, eax
jbe 0x404181
mov esi, dword [esi]
push 0x34
push esi
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov edi, eax
test edi, edi
jne 0x40419a
push ebx
call esi
lea eax, [ebp - 0x40]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
movups xmm0, xmmword [ebp - 0x40]
mov eax, dword [ebp - 0x28]
mov edx, str.stop
mov ecx, dword [ebp - 0x24]
movups xmmword [ebp - 0x20], xmm0
mov dword [ebp - 8], eax
movq xmm0, qword [ebp - 0x30]
movq qword [ebp - 0x10], xmm0
call fcn.0040d3a0
test al, al
je 0x4041ea
mov eax, dword [ebp - 0x3c]
cmp eax, 1
je 0x40421d
cmp eax, 3
je 0x40421d
lea eax, [ebp - 0x20]
push eax
push 1
push edi
call dword [sym.imp.ADVAPI32.dll_ControlService]
jmp 0x404213
mov ecx, dword [ebp - 0x24]
mov edx, str.start
call fcn.0040d3a0
test al, al
je 0x40421d
mov eax, dword [ebp - 0x3c]
cmp eax, 4
je 0x40421d
cmp eax, 2
je 0x40421d
push 0
push 0
push edi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40421d
push edi
call esi
push ebx
call esi
push edi
call esi
push ebx
call esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004153a7
mov esp, ebp
pop ebp
ret

Function at 0x4043d0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push 0x100
lea eax, [ebp - 0x204]
mov esi, ecx
push eax
mov dword [ebp - 0x208], esi
push str.USERNAME
mov dword [ebp - 0x208], esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
xorps xmm0, xmm0
movups xmmword [esi], xmm0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
test eax, eax
je 0x404449
lea ecx, [ebp - 0x204]
lea edx, [ecx + 2]
nop word [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404430
sub ecx, edx
lea eax, [ebp - 0x204]
sar ecx, 1
push ecx
push eax
jmp 0x404450
push 0
push 0x418790
mov ecx, esi
call fcn.0040dc70
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004153a7
mov esp, ebp
pop ebp
ret
Function at 0x404470
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x416ea7
mov eax, dword fs:[0]
push eax
sub esp, 0x214
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x214], edi
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [ebp - 0x21c], edi
xor eax, eax
mov dword [ebp - 0x220], 0
movups xmmword [edi], xmm0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
mov word [edi], ax
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], 7
mov dword [ebp - 0x220], 1
jbe 0x4044f4
mov edx, dword [edx]
lea eax, [ebp - 0x218]
push eax
push 0x20019
push 0
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4045c5
cmp dword [esi + 0x14], 7
mov dword [ebp - 0x214], 0x200
jbe 0x404528
mov esi, dword [esi]
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push esi
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4045b9
lea ecx, [ebp - 0x210]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x404554
sub ecx, edx
mov edx, dword [edi + 0x14]
sar ecx, 1
cmp ecx, edx
ja 0x4045a4
mov dword [ebp - 0x21c], edi
mov eax, edi
cmp edx, 7
jbe 0x40457f
mov eax, dword [edi]
mov dword [ebp - 0x21c], eax
lea esi, [ecx + ecx]
mov dword [edi + 0x10], ecx
push esi
lea ecx, [ebp - 0x210]
push ecx
push eax
call sub.VCRUNTIME140.dll_memmove
mov eax, dword [ebp - 0x21c]
add esp, 0xc
xor ecx, ecx
mov word [esi + eax], cx
jmp 0x4045b9
lea eax, [ebp - 0x210]
push eax
push dword [ebp - 0x214]
push ecx
mov ecx, edi
call fcn.0040d9d0
push dword [ebp - 0x218]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004153a7
mov esp, ebp
pop ebp
ret