joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4bcb30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x52a758
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x571720]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
push 0x202
push dword [0x5727d0]
lea ecx, [ebp - 0x20]
mov dword [ebp - 4], 0
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.004bc720
test eax, eax
je 0x4bcc58
mov esi, dword [ebp - 0x18]
mov edi, dword [0x5727d0]
mov dword [ebp - 0x10], 0
test esi, esi
je 0x4bcc03
cmp dword [esi], 0
je 0x4bcbf6
push str.Advapi32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
jne 0x4bcbc3
mov eax, 1
jmp 0x4bcc24
push str.RegCreateKeyTransactedW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4bcbfc
push 0
push dword [esi]
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call eax
jmp 0x4bcc24
cmp dword [esi + 4], 0
jne 0x4bcc03
mov eax, 1
jmp 0x4bcc24
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push 0
push 0x20206
push 0
push 0
push 0
push edi
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4bcc4e
mov ecx, dword [ebp - 0x20]
test ecx, ecx
je 0x4bcc36
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], 0x200
test eax, eax
je 0x4bcc5b
xor ebx, ebx
jmp 0x4bccff
mov esi, dword [ebp - 0x20]
xor ebx, ebx
jmp 0x4bccff
mov esi, dword [ebp - 0x20]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov eax, dword [edi]
cmp dword [eax - 0xc], 0
je 0x4bccb8
mov ecx, dword [ebx]
test ecx, ecx
je 0x4bcd1e
push ecx
push eax
call fcn.0050027a
add esp, 8
test eax, eax
je 0x4bccb8
mov edx, dword [edi]
test edx, edx
je 0x4bccb8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bcc90
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push str.m2_old
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebx]
test edx, edx
jne 0x4bccc3
lea eax, [edx + 0xd]
jmp 0x4bccf8
mov ecx, edx
lea edi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4bccd0
sub ecx, edi
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edx
push 1
push 0
push 0x548f84
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
xor ebx, ebx
test eax, eax
sete bl
test esi, esi
je 0x4bcd0a
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.0040645f
int3
Function at 0x4be320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4be391
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x4be35f
cmp eax, 2
jne 0x4be37b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x4be38b
test ecx, ecx
je 0x4be386
test cl, 1
jne 0x4be37b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x4be38b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x4c0ff5
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop ebp
ret
Function at 0x5157f0
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
mov edx, dword [ebp + 0xc]
push ebx
sar ecx, 6
push esi
push edi
imul edi, eax, 0x30
mov eax, dword [ecx*4 + 0x57dfd8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x515831
cmp byte [edx], 0xa
jne 0x515831
or byte [eax + edi + 0x28], 4
jmp 0x515836
and byte [eax + edi + 0x28], 0xfb
lea eax, [edx + ecx]
mov ebx, edx
mov dword [ebp - 8], eax
mov esi, edx
cmp edx, eax
jae 0x515927
mov al, byte [ebx]
cmp al, 0x1a
je 0x515908
cmp al, 0xd
je 0x51585f
mov byte [esi], al
inc esi
inc ebx
jmp 0x5158fd
lea eax, [ebx + 1]
cmp eax, dword [ebp - 8]
jae 0x51587f
cmp byte [eax], 0xa
jne 0x515874
push 2
mov byte [esi], 0xa
pop eax
jmp 0x51587a
xor eax, eax
mov byte [esi], 0xd
inc eax
add ebx, eax
inc esi
jmp 0x5158fd
push 0
mov ebx, eax
lea eax, [ebp - 0x14]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5158f6
cmp dword [ebp - 0x14], 0
je 0x5158f6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x57dfd8]
test byte [eax + edi + 0x28], 0x48
je 0x5158cd
mov dl, byte [ebp - 1]
cmp dl, 0xa
jne 0x5158bd
mov byte [esi], dl
jmp 0x5158f9
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x57dfd8]
mov byte [eax + edi + 0x2a], dl
jmp 0x5158f9
cmp byte [ebp - 1], 0xa
jne 0x5158df
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x5158df
mov byte [esi], 0xa
jmp 0x51587c
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0050b990
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x5158fa
mov byte [esi], 0xd
inc esi
mov edx, dword [ebp + 0xc]
cmp ebx, dword [ebp - 8]
jb 0x515848
jmp 0x515927
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x57dfd8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x515922
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x515927
mov cl, byte [ebx]
mov byte [esi], cl
inc esi
sub esi, edx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x515932
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
and eax, 0x3f
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
sar ecx, 6
imul edi, eax, 0x30
mov dword [ebp - 8], ecx
push 0xa
mov eax, dword [ecx*4 + 0x57dfd8]
pop ebx
mov edx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], edx
mov edx, dword [ebp + 0xc]
test esi, esi
je 0x515976
cmp word [edx], bx
jne 0x515976
or byte [edi + eax + 0x28], 4
jmp 0x51597b
and byte [edi + eax + 0x28], 0xfb
lea eax, [edx + esi*2]
mov ebx, edx
mov dword [ebp - 0xc], eax
mov esi, edx
cmp edx, eax
jae 0x515acf
mov dword [ebp - 0x10], 0xd
movzx eax, word [ebx]
cmp eax, 0x1a
je 0x515aaf
cmp ax, word [ebp - 0x10]
je 0x5159b4
mov word [esi], ax
add esi, 2
add ebx, 2
jmp 0x515aa4
lea eax, [ebx + 2]
cmp eax, dword [ebp - 0xc]
jae 0x5159da
push 0xa
pop ecx
cmp word [eax], cx
jne 0x5159ca
push ecx
pop eax
push 4
jmp 0x5159cf
push 0xd
pop eax
push 2
mov word [esi], ax
pop eax
add ebx, eax
jmp 0x515a9e
push 0
mov ebx, eax
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x515a95
cmp dword [ebp - 0x18], 0
je 0x515a95
mov ecx, dword [ebp - 8]
push 0xa
mov eax, dword [ecx*4 + 0x57dfd8]
test byte [edi + eax + 0x28], 0x48
pop eax
je 0x515a61
mov dx, word [ebp - 4]
cmp dx, ax
jne 0x515a25
mov word [esi], ax
jmp 0x515a59
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ecx*4 + 0x57dfd8]
mov word [ebp - 0x20], dx
push 0xa
mov byte [edi + eax + 0x2a], dl
mov ecx, dword [ecx*4 + 0x57dfd8]
mov al, byte [ebp - 0x1f]
pop edx
mov byte [edi + ecx + 0x2b], al
mov ecx, dword [ebp - 8]
mov eax, dword [ecx*4 + 0x57dfd8]
mov byte [edi + eax + 0x2c], dl
mov edx, dword [ebp + 0xc]
add esi, 2
jmp 0x515aa4
cmp word [ebp - 4], ax
jne 0x515a76
mov edx, dword [ebp + 0xc]
cmp esi, edx
jne 0x515a76
mov word [esi], ax
add esi, 2
jmp 0x515aa4
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0050b990
mov edx, dword [ebp + 0xc]
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x515aa1
jmp 0x515a98
mov edx, dword [ebp + 0xc]
push 0xd
pop eax
mov word [esi], ax
add esi, 2
mov ecx, dword [ebp - 8]
cmp ebx, dword [ebp - 0xc]
jb 0x515994
jmp 0x515acf
mov ecx, dword [ecx*4 + 0x57dfd8]
mov al, byte [edi + ecx + 0x28]
test al, 0x40
jne 0x515ac6
or al, 2
mov byte [edi + ecx + 0x28], al
jmp 0x515acf
mov cx, word [ebx]
mov word [esi], cx
add esi, 2
sub esi, edx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x51ba82
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0051b724
Function at 0x407e90
Capabilities:
Create directory

Disassembly:
push esi
push ebx
push eax
mov eax, 0x2010
call fcn.0040ee4c
sub esp, eax
mov eax, dword [esp + eax]
mov esi, eax
mov eax, dword [0x429080]
test eax, eax
je 0x407f30
xor ebx, ebx
test eax, eax
jg 0x407ecb
jmp 0x407ee8
add ebx, 1
cmp dword [0x429080], ebx
jle 0x407ee8
mov eax, dword [ebx*4 + 0x428080]
mov dword [esp], esi
mov dword [esp + 4], eax
call sub.msvcrt.dll_wcscmp
test eax, eax
jne 0x407ec0
jmp 0x407f22
mov dword [esp], esi
call sub.msvcrt.dll_wcslen
cmp eax, 2
jne 0x407efc
cmp word [esi + 2], 0x3a
je 0x407f22
mov dword [esp + 4], 0
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
sub esp, 8
test eax, eax
je 0x407f78
mov ebx, dword [0x429080]
cmp ebx, 0x3ff
jle 0x407f90
mov eax, 1
add esp, 0x2014
pop ebx
pop esi
ret
mov ecx, 0x1000
mov edx, str._HOME_
lea eax, [esp + 0x10]
call fcn.00407710
test al, al
je 0x407fab
lea eax, [esp + 0x10]
mov ebx, dword [0x429080]
mov dword [esp], eax
call sub.msvcrt.dll__wcsdup
mov dword [ebx*4 + 0x428080], eax
mov eax, dword [0x429080]
add eax, 1
mov dword [0x429080], eax
jmp 0x407eb1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x407f14
xor eax, eax
jmp 0x407f27
mov dword [esp], esi
call sub.msvcrt.dll__wcsdup
add dword [0x429080], 1
mov dword [ebx*4 + 0x428080], eax
jmp 0x407f22
mov eax, str._HOME_
call fcn.00407dc0
lea esi, [esi]
lea esi, [esi]

Function at 0x408140
Capabilities:
Check if file exists
Delete file
Get file attributes
Move file
Terminate process

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x423040]
test eax, eax
je 0x408179
mov dword [esp + 4], 0x1388
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
sub esp, 8
test eax, eax
jne 0x408190
mov eax, dword [0x423040]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
cmp byte [0x426060], 0
jne 0x4081b0
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [0x423040]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
sub esp, 8
jmp 0x408168
mov edx, 0x414
lea edi, [esp + 0x12]
mov dword [esp + 0x12], 0
mov esi, dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [esp + 0x16], 3
mov ebx, 0x14
mov dword [esp + 0x1a], 0x426080
mov dword [esp + 0x1e], 0x41613a
mov word [esp + 0x22], dx
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x41613a
mov dword [esp], edi
call esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
sub esp, 4
jmp 0x408283
test al, 0x10
je 0x408182
mov dword [esp], 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, 0x414
sub esp, 4
mov dword [esp + 0x12], 0
mov dword [esp + 0x16], 3
mov dword [esp + 0x1a], 0x426080
mov dword [esp + 0x1e], 0x41613a
mov word [esp + 0x22], ax
mov dword [esp + 0x24], 0
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 0x41613a
mov dword [esp], edi
call esi
sub esp, 4
sub ebx, 1
je 0x408182
mov dword [esp], 0x426080
call ebp
sub esp, 4
cmp eax, 0xffffffff
jne 0x408218
add esp, 0x3c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x401c84
Capabilities:
Accept command line arguments
Query environment variable

Disassembly:
jmp 0x401c96
mov eax, dword [0x7c809f]
shl eax, 2
mov dword [0x7c80a3], eax
push edx
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
shr al, 1
and cl, byte [esi + 0x3b]
add byte [edx - 0x18], bl
pushal
dec ebp
cmp eax, dword [eax]
call fcn.007b6c30
push 0
call fcn.007b8800
pop ecx
push 0x7c8048
push 0
call sub.KERNEL32.DLL_GetModuleHandleA
mov dword [0x7c80a7], eax
push 0
jmp fcn.007c23b0
Function at 0x406980
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeb4
push esi
push edi
mov eax, 0x7c96ac
call fcn.007b7c14
xor edx, edx
mov dword [ebp - 0x28], edx
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x2c], eax
push 0x128
call fcn.007ae9f0
pop ecx
mov dword [ebp - 0x34], eax
push 0x224
call fcn.007ae9f0
pop ecx
mov dword [ebp - 0x38], eax
mov ecx, dword [ebp - 0x34]
mov dword [ecx], 0x128
mov eax, dword [ebp - 0x38]
mov dword [eax], 0x224
mov esi, 0x7c9210
lea edi, [ebp - 0x14c]
mov ecx, 0x41
rep movsd dword es:[edi], dword [esi]
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_Process32First
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
je 0x406aae
mov eax, dword [ebp - 0x34]
push dword [eax + 8]
push 8
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x30], eax
push dword [ebp - 0x38]
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_Module32First
push 0x100
lea edx, [ebp - 0x14c]
push edx
mov ecx, dword [ebp - 0x38]
add ecx, 0x120
push ecx
call sub.KERNEL32.DLL_GetLongPathNameA
mov eax, dword [ebp + 8]
mov dword [ebp - 0x44], eax
push dword [ebp - 0x44]
call fcn.007be17c
pop ecx
push eax
mov edx, dword [ebp - 0x34]
add edx, 0x24
mov dword [ebp - 0x40], edx
push dword [ebp - 0x40]
call fcn.007be17c
pop ecx
push eax
call fcn.007b7860
add esp, 8
test eax, eax
jne 0x406a96
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x48], ecx
push dword [ebp - 0x48]
call fcn.007be17c
pop ecx
push eax
lea eax, [ebp - 0x14c]
push eax
call fcn.007be17c
pop ecx
push eax
call fcn.007b7860
add esp, 8
test eax, eax
jne 0x406a96
mov edx, dword [ebp - 0x34]
mov ecx, dword [edx + 8]
mov dword [ebp - 0x28], ecx
push dword [ebp - 0x34]
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_Process32Next
mov dword [ebp - 0x3c], eax
cmp dword [ebp - 0x3c], 0
jne 0x4069fe
push dword [ebp - 0x2c]
call sub.KERNEL32.DLL_CloseHandle
push dword [ebp - 0x30]
call sub.KERNEL32.DLL_CloseHandle
mov eax, dword [ebp - 0x28]
mov edx, dword [ebp - 0x24]
mov dword fs:[0], edx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x406ad4
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
lea eax, [ebp - 4]
push eax
push 0xf01ff
call sub.KERNEL32.DLL_GetCurrentProcess
push eax
call sub.ADVAPI32.DLL_OpenProcessToken
test eax, eax
jne 0x406af4
jmp 0x406b4c
lea edx, [ebp - 0xc]
push edx
push 0x7c9412
push 0
call sub.ADVAPI32.DLL_LookupPrivilegeValueA
test eax, eax
jne 0x406b12
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
jmp 0x406b4c
mov dword [ebp - 0x1c], 1
mov ecx, dword [ebp - 0xc]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x10], 2
push 0
push 0
push 0x10
lea eax, [ebp - 0x1c]
push eax
push 0
push dword [ebp - 4]
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
test eax, eax
jne 0x406b4c
push dword [ebp - 4]
call sub.KERNEL32.DLL_CloseHandle
mov esp, ebp
pop ebp
ret
Function at 0x40d32c
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffec4
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
cmp dword [ebp - 8], 0
jne 0x40d34a
mov al, byte [ebp - 9]
jmp 0x40d3b4
push 0
push 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x13c], 0x128
lea edx, [ebp - 0x13c]
push edx
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_Process32First
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 0x11], cl
cmp byte [ebp - 0x11], 0
je 0x40d3b1
mov eax, dword [ebp - 0x134]
cmp eax, dword [ebp - 8]
jne 0x40d391
mov byte [ebp - 9], 1
jmp 0x40d3b1
lea edx, [ebp - 0x13c]
push edx
push dword [ebp - 0x10]
call sub.KERNEL32.DLL_Process32Next
test eax, eax
setne cl
and ecx, 1
mov byte [ebp - 0x11], cl
cmp byte [ebp - 0x11], 0
jne 0x40d380
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret
Function at 0x419120
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff9c
mov dword [ebp - 4], eax
push 0x44
push 0
lea eax, [ebp - 0x54]
push eax
call fcn.007b76df
add esp, 0xc
lea edx, [ebp - 0x64]
push edx
lea ecx, [ebp - 0x54]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push dword [ebp - 4]
push 0
call sub.KERNEL32.DLL_CreateProcessA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x41916f
jmp 0x419190
push dword [ebp - 0x60]
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebp - 0xc], eax
push 0xffffffffffffffff
push dword [ebp - 0x64]
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
sete al
and eax, 1
test eax, eax
je 0x419164
push dword [ebp - 0x64]
call sub.KERNEL32.DLL_CloseHandle
mov dword [ebp - 0x10], eax
mov esp, ebp
pop ebp
ret
Function at 0x42d734
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd28
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x34], eax
mov eax, 0x7d5c94
call fcn.007b7c14
mov word [ebp - 0x20], 0xc
lea eax, [ebp - 4]
call fcn.00402e20
inc dword [ebp - 0x14]
inc dword [ebp - 0x14]
mov word [ebp - 0x20], 0x18
mov word [ebp - 0x36], 0x101
lea edx, [ebp - 0x1d8]
push edx
mov cx, word [ebp - 0x36]
push ecx
call sub.WSOCK32.DLL_WSAStartup
push 0xff
lea eax, [ebp - 0x2d8]
push eax
call sub.WSOCK32.DLL_gethostname
lea edx, [ebp - 0x2d8]
push edx
call sub.WSOCK32.DLL_gethostbyname
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x3c]
mov eax, dword [ecx + 0xc]
mov edx, dword [eax]
push dword [edx]
call sub.WSOCK32.DLL_inet_ntoa
mov dword [ebp - 0x40], eax
mov word [ebp - 0x20], 0x24
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x48], ecx
lea eax, [ebp - 8]
xor ecx, ecx
mov edx, dword [ebp - 0x48]
call fcn.007c5314
inc dword [ebp - 0x14]
lea eax, [ebp - 8]
inc dword [ebp - 0x14]
mov dword [ebp - 0x44], eax
lea eax, [ebp - 4]
mov edx, dword [ebp - 0x44]
call fcn.007c54f4
sub dword [ebp - 0x14], 2
lea eax, [ebp - 8]
mov edx, 2
call fcn.00402554
call sub.WSOCK32.DLL_WSACleanup
mov word [ebp - 0x20], 0x30
lea edx, [ebp - 4]
mov eax, dword [ebp - 0xc]
call fcn.007c54f4
mov eax, dword [ebp - 0xc]
mov word [ebp - 0x20], 0x3c
push eax
sub dword [ebp - 0x14], 2
lea eax, [ebp - 4]
mov edx, 2
call fcn.00402554
pop eax
mov word [ebp - 0x20], 0x30
add dword [ebp - 0x14], 2
mov edx, dword [ebp - 0x30]
mov dword fs:[0], edx
mov esp, ebp
pop ebp
ret
Function at 0x4398c8
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffd0
push ebx
mov dword [ebp - 0x2c], edx
mov dword [ebp - 4], eax
mov eax, 0x7d85d8
call fcn.007b7c14
mov dword [ebp - 0xc], 9
cmp dword [ebp - 4], 0
je 0x4399db
mov word [ebp - 0x18], 0xc
mov edx, dword [ebp - 4]
mov ecx, dword [edx]
mov byte [ecx], 0
mov eax, dword [ebp - 4]
cmp dword [eax + 0x14], 0
je 0x43991b
mov edx, dword [ebp - 4]
push dword [edx + 0x14]
call fcn.007a2b38
pop ecx
mov ecx, dword [ebp - 4]
xor ebx, ebx
mov dword [ecx + 0x14], ebx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x20], 0
je 0x43995b
mov edx, dword [ebp - 4]
push dword [edx + 0x24]
call sub.KERNEL32.DLL_SetEvent
push 0x1f4
mov ecx, dword [ebp - 4]
push dword [ecx + 0x20]
call sub.KERNEL32.DLL_WaitForSingleObject
test eax, eax
je 0x439950
push 0
mov eax, dword [ebp - 4]
push dword [eax + 0x20]
call sub.KERNEL32.DLL_TerminateThread
mov edx, dword [ebp - 4]
push dword [edx + 0x20]
call sub.KERNEL32.DLL_CloseHandle
mov ecx, dword [ebp - 4]
add ecx, 0x34
push ecx
call sub.KERNEL32.DLL_DeleteCriticalSection
sub dword [ebp - 0xc], 2
mov eax, dword [ebp - 4]
add eax, 0x7c
mov edx, 2
call fcn.00402554
dec dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
add ecx, 0x50
mov dword [ebp - 0x30], ecx
push dword [ebp - 0x30]
call fcn.004399ec
pop ecx
sub dword [ebp - 0xc], 2
mov eax, dword [ebp - 4]
add eax, 0x30
mov edx, 2
call fcn.00402554
sub dword [ebp - 0xc], 2
mov eax, dword [ebp - 4]
add eax, 0x2c
mov edx, 2
call fcn.00402554
sub dword [ebp - 0xc], 2
mov eax, dword [ebp - 4]
add eax, 0x28
mov edx, 2
call fcn.00402554
test byte [ebp - 0x2c], 1
je 0x4399db
push dword [ebp - 4]
call fcn.007a2b38
pop ecx
mov ecx, dword [ebp - 0x28]
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x449bcc
Capabilities:
Check os version

Disassembly:
add esp, 0xfffffeec
mov dword [esp], 0x114
push esp
call sub.KERNEL32.DLL_GetVersionExW
cmp dword [esp + 0x10], 2
jne 0x449bf1
cmp dword [esp + 4], 5
jb 0x449bf1
mov al, 1
jmp 0x449bf3
xor eax, eax
add esp, 0x114
ret

Function at 0x44e5d8
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe4
push ebx
xor eax, eax
mov dword [ebp - 0x1c], eax
xor eax, eax
push ebp
push 0x44e661
push dword fs:[eax]
mov dword fs:[eax], esp
push 0x7e9f94
push 0x101
call sub.WSOCK32.DLL_WSAStartup
mov ebx, eax
test ebx, ebx
je 0x44e64b
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.004a7f60
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov byte [ebp - 0x14], 0x11
mov dword [ebp - 0x10], ebx
mov byte [ebp - 0xc], 0
mov eax, 0x44e67c
mov dword [ebp - 8], eax
mov byte [ebp - 4], 0x11
lea eax, [ebp - 0x18]
push eax
push 2
mov ecx, dword [0x7e8cd8]
mov dl, 1
mov eax, dword [0x44b9cc]
call fcn.004a90a8
call fcn.004c09e0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x44e668
lea eax, [ebp - 0x1c]
call fcn.004c1264
ret