joyce8/EMBER2024-capa huggingface dataset:
Function at 0x411c2c
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00407d40
mov eax, dword [0x417960]
push ebx
mov ebx, dword [ebp + 8]
push esi
xor esi, esi
cmp ebx, dword [0x41d660]
mov dword [ebp - 4], eax
jae 0x411d6f
mov eax, ebx
sar eax, 5
mov eax, dword [eax*4 + 0x41d680]
mov ecx, ebx
and ecx, 0x1f
test byte [eax + ecx*8 + 4], 1
je 0x411d6f
push 1
push esi
push ebx
call fcn.0040d6ed
add esp, 0xc
cmp eax, 0xffffffff
mov dword [ebp - 0x1008], eax
je 0x411d79
push 2
push esi
push ebx
call fcn.0040d6ed
add esp, 0xc
cmp eax, 0xffffffff
je 0x411d79
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x411d19
push 0x1000
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0040f460
push 0x8000
push ebx
call fcn.004122e5
add esp, 0x14
mov dword [ebp + 8], eax
mov eax, 0x1000
cmp edi, eax
jge 0x411cd8
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push ebx
call fcn.0040ea28
add esp, 0xc
cmp eax, 0xffffffff
je 0x411cf6
sub edi, eax
test edi, edi
jg 0x411ccd
jmp 0x411d0c
cmp dword [0x41d0d4], 5
jne 0x411d09
mov dword [0x41d0d0], 0xd
or esi, 0xffffffff
push dword [ebp + 8]
push ebx
call fcn.004122e5
pop ecx
pop ecx
jmp 0x411d59
jge 0x411d59
push 0
push dword [ebp + 0xc]
push ebx
call fcn.0040d6ed
push ebx
call fcn.0040fd02
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, 0xffffffff
jne 0x411d59
mov dword [0x41d0d0], 0xd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x41d0d4], eax
push 0
push dword [ebp - 0x1008]
push ebx
call fcn.0040d6ed
add esp, 0xc
mov eax, esi
pop edi
jmp 0x411d7c
mov dword [0x41d0d0], 9
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.0040982c
leave
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43000c
nop
nop
nop
pop eax
nop
nop
add eax, 0x403daa
nop
nop
sub eax, 0x403d50
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x402b6d
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x417084]
jne 0x402b77
repz ret
jmp fcn.00405d52

Function at 0x40c2c4
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x417084]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00407d61
and dword [ebp - 0x14], 0
cmp dword [0x418b58], 0
mov dword [ebp - 0x18], eax
jne 0x40c377
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x40c41f
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x40c41f
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x418b58], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x418b5c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x418b60], eax
call edi
push eax
call esi
mov dword [0x418b68], eax
test eax, eax
je 0x40c377
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x418b64], eax
mov eax, dword [0x418b64]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x40c3d0
cmp dword [0x418b68], ecx
je 0x40c3d0
push eax
call esi
push dword [0x418b68]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x40c3d0
test ebx, ebx
je 0x40c3d0
call edi
test eax, eax
je 0x40c3c7
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40c3c7
test byte [ebp - 8], 1
jne 0x40c3d0
or dword [ebp + 0x10], 0x200000
jmp 0x40c403
mov eax, dword [0x418b5c]
cmp eax, dword [ebp - 0x18]
je 0x40c403
push eax
call esi
test eax, eax
je 0x40c403
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40c403
mov eax, dword [0x418b60]
cmp eax, dword [ebp - 0x18]
je 0x40c403
push eax
call esi
test eax, eax
je 0x40c403
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x418b58]
call esi
test eax, eax
je 0x40c41f
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x40c421
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402b6d
leave
ret
Function at 0x40d020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x60], 0
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.004049e0
add esp, 0xc
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x34], 1
mov dword [ebp - 0x60], 0x44
mov dword [ebp - 0x58], str.winsta0default
mov dword [ebp - 0x34], 1
mov cx, word [ebp + 0x10]
mov word [ebp - 0x30], cx
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x60]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x40d0a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
jmp 0x40d0d3
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 8
lea eax, [ebp - 0xc]
push eax
push 0x102
push 0
push str.SystemCurrentControlSetServices_richdisk
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40d1b3
jmp 0x40d1d1
mov ecx, dword [ebp - 8]
push ecx
lea edx, [ebp + 8]
push edx
push 0xb
push 0
push str.MasterTime
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x40d1e1
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40d340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x250
mov eax, dword [0x417084]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x250], 0
mov dword [ebp - 0x110], 0
mov byte [ebp - 0x249], 0
mov eax, dword [ebp + 8]
push eax
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
lea ecx, [ebp - 0x248]
push ecx
call fcn.00402290
add esp, 0xc
lea edx, [ebp - 0x110]
push edx
push 0x20019
push 0
lea eax, [ebp - 0x248]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
je 0x40d3c0
mov al, byte [ebp - 0x249]
jmp 0x40d4a6
mov byte [ebp - 0x108], 0
push 0xff
push 0
lea ecx, [ebp - 0x107]
push ecx
call fcn.004049e0
add esp, 0xc
mov dword [ebp - 0x114], 0x100
mov dword [ebp - 0x10c], 0
lea edx, [ebp - 0x114]
push edx
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0x10c]
push ecx
push 0
push str.PnpInstanceID
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x250], eax
cmp dword [ebp - 0x250], 0
jne 0x40d493
lea eax, [ebp - 0x108]
push eax
call fcn.004022c0
add esp, 4
movsx ecx, byte [ebp - 0x108]
cmp ecx, 0x7b
je 0x40d48c
push 0x415740
lea edx, [ebp - 0x108]
push edx
call fcn.00402a50
add esp, 8
test eax, eax
jne 0x40d48c
push 0x415744
lea eax, [ebp - 0x108]
push eax
call fcn.00402a50
add esp, 8
test eax, eax
jne 0x40d48c
push str.COMPOSITEBUS
lea ecx, [ebp - 0x108]
push ecx
call fcn.00402a50
add esp, 8
test eax, eax
je 0x40d493
mov byte [ebp - 0x249], 1
mov edx, dword [ebp - 0x110]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x249]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402b6d
mov esp, ebp
pop ebp
ret

Function at 0x40d670
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4161b0
push 0x408580
mov eax, dword fs:[0]
push eax
add esp, 0xffffffe8
push ebx
push esi
push edi
mov eax, dword [0x417084]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 4], 0
lea eax, [ebp - 0x24]
push eax
push 0x20019
push 0
push 0x41569c
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x28], eax
cmp dword [ebp - 0x28], 0
je 0x40d6e2
jmp 0x40d702
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x1c]
push eax
push 0
push str.Server
mov ecx, dword [ebp - 0x24]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x28], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0040d710
jmp 0x40d721
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40d7a0
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x417084]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x118]
push ecx
call fcn.00404ba0
add esp, 8
push 0x5c
lea edx, [ebp - 0x118]
push edx
call fcn.00402a70
add esp, 8
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov byte [eax], 0
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x40d82f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 3
je 0x40d820
cmp dword [ebp - 0xc], 2
jne 0x40d82f
lea edx, [ebp - 0x118]
push edx
call fcn.0040d7a0
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x40d84e
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
test eax, eax
jne 0x40d84e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00402b6d
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00404950
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push ecx
push 0x102
push 0
push 0x415354
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40dd7e
jmp 0x40dd9c
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.PrinterList
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x40ddac
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00404950
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push ecx
push 0x102
push 0
push 0x415314
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40de0e
jmp 0x40de2c
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.DelayTaskByStrategy
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x40de3c
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40de50
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 8]
push eax
call fcn.00404950
add esp, 4
add eax, 1
mov dword [ebp - 8], eax
lea ecx, [ebp - 0xc]
push ecx
push 0x102
push 0
push 0x4152d4
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x40de9e
jmp 0x40debc
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ebp + 8]
push eax
push 1
push 0
push str.DelayTaskByGroup
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0xc], 0
je 0x40decc
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40dee0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 4
lea eax, [ebp - 0xc]
push eax
push 0x101
push 0
push 0x415294
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40df31
jmp 0x40df68
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.EnableAdjustTime
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40df5b
jmp 0x40df68
cmp dword [ebp - 0x18], 0
je 0x40df68
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x40df78
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret

Function at 0x40df80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 8], 4
lea eax, [ebp - 0xc]
push eax
push 0x101
push 0
push 0x41525c
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40dfd1
jmp 0x40e00b
lea ecx, [ebp - 8]
push ecx
lea edx, [ebp - 0x18]
push edx
lea eax, [ebp - 4]
push eax
push 0
push str.ClientFlag
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x40dffb
jmp 0x40e00b
cmp dword [ebp - 0x18], 0x52494348
jne 0x40e00b
mov dword [ebp - 0x10], 1
cmp dword [ebp - 0xc], 0
je 0x40e01b
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret
Function at 0x40e030
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jge 0x40e091
push 0
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_send]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40e07d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40e091
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x40e04a
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 8], 0
mov ecx, dword [ebp - 8]
cmp ecx, dword [ebp + 0x10]
jge 0x40e112
push 0
mov edx, dword [ebp + 0x10]
sub edx, dword [ebp - 8]
push edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.WS2_32.dll_recv]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jge 0x40e0ef
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov dword [ebp - 0xc], eax
jmp 0x40e112
cmp dword [ebp - 0x10], 0
jne 0x40e0fe
mov dword [ebp - 0xc], 0xd
jmp 0x40e112
mov edx, dword [ebp - 8]
add edx, dword [ebp - 0x10]
mov dword [ebp - 8], edx
mov eax, dword [ebp - 4]
add eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
jmp 0x40e0ba
mov eax, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40e430
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x417084]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x408]
push eax
call fcn.00404da0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402b6d
mov esp, ebp
pop ebp
ret

Function at 0x40e490
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x528
mov eax, dword [0x417084]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x514], 0xffffffff
mov dword [ebp - 0x528], 0
push 0x104
lea eax, [ebp - 0x510]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
lea ecx, [ebp - 0x510]
push ecx
call fcn.00402a70
add esp, 8
mov dword [ebp - 0x528], eax
mov edx, dword [ebp - 0x528]
mov byte [edx + 1], 0
push str.RdvTaskClient.log
lea eax, [ebp - 0x510]
push eax
call fcn.00404bb0
add esp, 8
lea ecx, [ebp - 0x524]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
mov edx, dword [ebp + 8]
push edx
movzx eax, word [ebp - 0x518]
push eax
movzx ecx, word [ebp - 0x51a]
push ecx
movzx edx, word [ebp - 0x51c]
push edx
movzx eax, word [ebp - 0x51e]
push eax
movzx ecx, word [ebp - 0x522]
push ecx
movzx edx, word [ebp - 0x524]
push edx
push str._d__.2d__.2d__.2d:_.2d:_.2d_____s__r_n
lea eax, [ebp - 0x408]
push eax
call fcn.00404c98
add esp, 0x24
push 0
push 0
push 4
push 0
push 1
push 0xc0000000
lea ecx, [ebp - 0x510]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x514], eax
cmp dword [ebp - 0x514], 0xffffffff
je 0x40e5ca
push 2
push 0
push 0
mov edx, dword [ebp - 0x514]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 4]
push eax
lea ecx, [ebp - 0x408]
push ecx
call fcn.00404950
add esp, 4
push eax
lea edx, [ebp - 0x408]
push edx
mov eax, dword [ebp - 0x514]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [ebp - 0x514]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402b6d
mov esp, ebp
pop ebp
ret 4
Function at 0x40e880
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x417084]
xor eax, ebp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
push 0x288
call fcn.0040548d
add esp, 4
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0x288
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
cmp eax, 0x6f
jne 0x40e8ea
mov edx, dword [ebp - 4]
push edx
call fcn.00404a5a
add esp, 4
mov eax, dword [ebp - 0xc]
push eax
call fcn.0040548d
add esp, 4
mov dword [ebp - 4], eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x40ea00
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
push 0x40
push 0
lea ecx, [ebp - 0x60]
push ecx
call fcn.004049e0
add esp, 0xc
mov dword [ebp - 0x64], 0
mov byte [ebp - 0x15], 0
cmp dword [ebp - 0x14], 0
je 0x40e9da
mov edx, dword [ebp - 0x14]
add edx, 8
push edx
call fcn.0040d340
add esp, 4
movzx eax, al
test eax, eax
je 0x40e98f
mov ecx, dword [ebp - 0x14]
add ecx, 0x1b0
push ecx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x68], eax
cmp dword [ebp - 0x68], 0
je 0x40e98d
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x190]
push eax
mov ecx, dword [ebp - 0x14]
add ecx, 0x194
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402d20
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x68]
mov dword [eax], ecx
mov byte [ebp - 0x15], 1
jmp 0x40e9da
jmp 0x40e9cd
mov edx, dword [ebp - 0x14]
mov eax, dword [edx + 0x190]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + 0x190]
push edx
mov eax, dword [ebp - 0x14]
add eax, 0x194
push eax
lea ecx, [ebp - 0x60]
push ecx
call fcn.00402d20
add esp, 0xc
mov edx, dword [ebp - 0x14]
add edx, 0x1b0
push edx
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x64], eax
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov dword [ebp - 0x14], ecx
jmp 0x40e926
movzx edx, byte [ebp - 0x15]
test edx, edx
jne 0x40e9fe
mov eax, dword [ebp - 8]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00402d20
add esp, 0xc
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x64]
mov dword [eax], ecx
jmp 0x40ea0e
mov edx, dword [ebp - 4]
push edx
call fcn.00404a5a
add esp, 4
jmp 0x40ea1a
mov eax, dword [ebp - 4]
push eax
call fcn.00404a5a
add esp, 4
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.00402b6d
mov esp, ebp
pop ebp
ret
Function at 0x40f6c0
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x417084]
xor eax, ebp
mov dword [ebp - 8], eax
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x408]
push eax
call fcn.00404da0
add esp, 0xc
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x408]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
lea edx, [ebp - 0x408]
push edx
call fcn.0040e490
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.00402b6d
mov esp, ebp
pop ebp
ret

Function at 0x40f720
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
lea eax, [ebp - 0xc]
push eax
push 0
push 0
push 0x40e600
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f75f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
jmp 0x40f769
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret