joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45d43a
Capabilities:
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x45d524
lea eax, [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp + 0x14]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0xc], eax
lea eax, [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 4]
movzx eax, byte [eax]
test eax, eax
je 0x45d4cc
mov eax, dword [ebp - 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
test eax, eax
je 0x45d4c4
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx eax, byte [eax]
test eax, eax
je 0x45d4c2
push 0x37ca
push 1
push 0x27f0
push 0xad5
push 1
push 1
push 0x122e
call fcn.00452fab
add esp, 0x1c
jmp 0x45d4ca
call dword [sym.imp.KERNEL32.dll_GetUserDefaultUILanguage]
jmp 0x45d522
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x28]
movzx eax, byte [eax]
test eax, eax
je 0x45d50f
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp - 0x34]
movzx eax, byte [eax]
test eax, eax
je 0x45d50d
push 1
push 0
push 0
push 1
push 0x72ec
call fcn.0045e434
add esp, 0x14
jmp 0x45d522
push 0
push 0
push 0x231f
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
jmp 0x45d53a
push 1
push 0xa5a
push 0
push 0x5e74
call fcn.00450f75
add esp, 0x10
mov esp, ebp
pop ebp
ret
Function at 0x492b86
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 0x4a7be0
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4bb7f0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00490a67
mov dword [ebp - 0x14], eax
cmp dword [0xabbd34], esi
jne 0x4a7cd3
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x4a7c60
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4a7db3
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x4a7db3
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4a7db3
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0xabbd34], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0xabbd38], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0xabbd3c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xabbd44], eax
test eax, eax
je 0x4a7cd0
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0xabbd40], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x4a7cf8
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4a7ceb
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x4a7d0d
push 4
pop eax
jmp 0x4a7db5
cmp dword [ebp - 0x14], esi
je 0x4a7d0d
push dword [0xabbd34]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x4a7cf2
mov eax, dword [0xabbd40]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x4a7d6b
cmp dword [0xabbd44], edi
je 0x4a7d6b
push eax
call ebx
push dword [0xabbd44]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x4a7d6b
test eax, eax
je 0x4a7d6b
call ecx
test eax, eax
je 0x4a7d60
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x4a7d60
test byte [ebp - 8], 1
jne 0x4a7d6b
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x4a7d9b
mov eax, dword [0xabbd38]
cmp eax, edi
je 0x4a7d98
push eax
call ebx
test eax, eax
je 0x4a7d98
call eax
mov esi, eax
test esi, esi
je 0x4a7d98
mov eax, dword [0xabbd3c]
cmp eax, edi
je 0x4a7d98
push eax
call ebx
test eax, eax
je 0x4a7d98
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0xabbd34]
call ebx
test eax, eax
je 0x4a7db3
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x4a7db5
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0048d99b
mov esp, ebp
pop ebp
ret
Function at 0x4186e4
Capabilities:
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [0x420010]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov ebx, ecx
mov byte [ebp - 0x1d], 1
xor edx, edx
mov eax, dword [ebx + 0x40]
test eax, eax
jne 0x41874d
mov eax, dword [ebx + 0x38]
sub eax, dword [ebx + 0x34]
push edx
push edx
push edx
push 0x26
push eax
push dword [ebx + 0x34]
lea eax, [ebp - 0x38]
push eax
push edx
push edx
push edx
push dword [ebx + 0x30]
call dword [sym.imp.ntdll.dll_NtQueryDirectoryFile]
test eax, eax
js 0x418739
cmp dword [ebp - 0x34], 0
je 0x418739
mov eax, dword [ebx + 0x34]
mov dword [ebx + 0x40], eax
jmp 0x41875a
push eax
call sub.ntdll.dll_RtlNtStatusToDosError
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor al, al
mov byte [ebp - 0x1d], al
jmp 0x41875d
mov ecx, dword [eax]
test ecx, ecx
je 0x418757
add eax, ecx
jmp 0x418734
mov dword [ebx + 0x40], edx
mov al, byte [ebp - 0x1d]
test al, al
je 0x4187de
mov ecx, dword [ebx + 0x40]
test ecx, ecx
je 0x4187cc
mov eax, dword [ecx + 0x3c]
shr eax, 1
push eax
lea eax, [ecx + 0x50]
push eax
lea ecx, [ebp - 0x1c]
call fcn.00418357
lea eax, [ebp - 0x1c]
push eax
lea ecx, [ebx + 8]
call fcn.0041845c
push 0
push 1
lea ecx, [ebp - 0x1c]
call fcn.00416140
mov ecx, dword [ebx + 0x40]
mov eax, dword [ecx + 0x48]
mov dword [ebp - 0x30], eax
mov eax, dword [ecx + 0x4c]
lea ecx, [ebp - 0x48]
and dword [ebp - 0x24], 0
mov dword [ebp - 0x2c], eax
mov eax, dword [ebx + 0x44]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00418f09
mov esi, eax
lea edi, [ebx + 0x20]
lea ecx, [ebp - 0x48]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.00418f49
mov ecx, ebx
call fcn.0041884b
push 0
pop edx
test al, al
je 0x418701
mov ecx, dword [ebp - 4]
mov al, byte [ebp - 0x1d]
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0040a985
mov esp, ebp
pop ebp
ret

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
push 4
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
nop
nop
cmp eax, 0
je 0x433072
nop
nop
nop
nop
mov ebx, 0x40de38
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
nop
div edi
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x6f460005
nop
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x433060
nop
nop
nop
nop
mov eax, section..data
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x4330d2
mov ebx, 0x4304d8
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0xfb4266a
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
loop 0x4330c0
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401070
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ecx
xor esi, esi
mov dword [ebp - 4], edx
mov dword [ebp - 8], eax
lea ebx, [edi - 2]
test ebx, ebx
jle 0x4010ff
mov edi, edx
nop
movzx ecx, byte [edi + esi]
shr ecx, 2
movzx ecx, byte [ecx + 0x440a10]
mov byte [eax], cl
movsx edx, byte [edi + esi]
movzx ecx, byte [edi + esi + 1]
and edx, 3
shr ecx, 4
shl edx, 4
or edx, ecx
movzx ecx, byte [edx + 0x440a10]
mov byte [eax + 1], cl
movsx ecx, byte [edi + esi + 1]
movzx edx, byte [edi + esi + 2]
and ecx, 0xf
shl ecx, 2
shr edx, 6
or edx, ecx
movzx ecx, byte [edx + 0x440a10]
mov byte [eax + 2], cl
movsx ecx, byte [edi + esi + 2]
add esi, 3
and ecx, 0x3f
movzx ecx, byte [ecx + 0x440a10]
mov byte [eax + 3], cl
add eax, 4
cmp esi, ebx
jl 0x401090
mov edi, dword [ebp + 8]
mov edx, dword [ebp - 4]
cmp esi, edi
jge 0x40116d
movzx ecx, byte [esi + edx]
shr ecx, 2
mov cl, byte [ecx + 0x440a10]
mov byte [eax], cl
lea ecx, [edi - 1]
cmp esi, ecx
jne 0x401132
movsx ecx, byte [esi + edx]
and ecx, 3
shl ecx, 4
mov cl, byte [ecx + 0x440a10]
mov byte [eax + 1], cl
mov byte [eax + 2], 0x3d
jmp 0x401166
movsx edx, byte [esi + edx]
mov edi, dword [ebp - 4]
and edx, 3
shl edx, 4
movzx ecx, byte [esi + edi + 1]
shr ecx, 4
or edx, ecx
movzx ecx, byte [edx + 0x440a10]
mov byte [eax + 1], cl
movsx ecx, byte [esi + edi + 1]
and ecx, 0xf
movzx ecx, byte [ecx*4 + 0x440a10]
mov byte [eax + 2], cl
mov byte [eax + 3], 0x3d
add eax, 4
pop edi
mov byte [eax], 0
sub eax, dword [ebp - 8]
pop esi
inc eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405160
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42dad6
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x44a064]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
push 8
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.0040ccb5
mov esi, eax
push 1
mov dword [ebp - 4], 0
call fcn.0040e14d
mov dword [esi + 4], eax
lea ecx, [edi + 8]
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
add esp, 8
lea eax, [edi + 0x14]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
mov dword [edi + 0x2c], eax
lea eax, [edi + 0x28]
mov dword [edi + 0x30], eax
mov dword [ecx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov eax, dword [edi + 0x30]
mov dword [eax], 0
mov eax, dword [edi + 0xc]
mov dword [eax], 0
mov eax, dword [edi + 0x1c]
mov dword [eax], 0
mov eax, dword [edi + 0x2c]
mov dword [eax], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x405e40
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor ecx, ecx
mov eax, ecx
shr eax, 1
test cl, 1
je 0x405e50
xor eax, 0xedb88320
test al, 1
je 0x405e5d
shr eax, 1
xor eax, 0xedb88320
jmp 0x405e5f
shr eax, 1
test al, 1
je 0x405e6c
shr eax, 1
xor eax, 0xedb88320
jmp 0x405e6e
shr eax, 1
test al, 1
je 0x405e7b
shr eax, 1
xor eax, 0xedb88320
jmp 0x405e7d
shr eax, 1
test al, 1
je 0x405e8a
shr eax, 1
xor eax, 0xedb88320
jmp 0x405e8c
shr eax, 1
test al, 1
je 0x405e99
shr eax, 1
xor eax, 0xedb88320
jmp 0x405e9b
shr eax, 1
test al, 1
je 0x405ea8
shr eax, 1
xor eax, 0xedb88320
jmp 0x405eaa
shr eax, 1
test al, 1
je 0x405eb7
shr eax, 1
xor eax, 0xedb88320
jmp 0x405eb9
shr eax, 1
mov dword [ecx*4 + 0x44f520], eax
inc ecx
cmp ecx, 0x100
jb 0x405e42
push esi
xor esi, esi
mov ecx, dword [esi + 0x44f520]
movzx eax, cl
shr ecx, 8
mov edx, dword [eax*4 + 0x44f520]
xor edx, ecx
mov dword [esi + 0x44f920], edx
movzx eax, dl
shr edx, 8
mov ecx, dword [eax*4 + 0x44f520]
xor ecx, edx
mov dword [esi + 0x44fd20], ecx
movzx eax, cl
shr ecx, 8
mov edx, dword [eax*4 + 0x44f520]
xor edx, ecx
mov dword [esi + 0x450120], edx
movzx eax, dl
shr edx, 8
mov ecx, dword [eax*4 + 0x44f520]
xor ecx, edx
mov dword [esi + 0x450520], ecx
movzx eax, cl
shr ecx, 8
mov edx, dword [eax*4 + 0x44f520]
xor edx, ecx
mov dword [esi + 0x450920], edx
movzx eax, dl
shr edx, 8
mov ecx, dword [eax*4 + 0x44f520]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x450d20], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x44f520]
xor edx, ecx
mov dword [esi + 0x451120], edx
movzx eax, dl
shr edx, 8
mov ecx, dword [eax*4 + 0x44f520]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x451520], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x44f520]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x451920], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x44f520]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x451d20], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x44f520]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x452120], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x44f520]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x452520], ecx
shr ecx, 8
mov edx, dword [eax*4 + 0x44f520]
xor edx, ecx
movzx eax, dl
mov dword [esi + 0x452920], edx
shr edx, 8
mov ecx, dword [eax*4 + 0x44f520]
xor ecx, edx
movzx eax, cl
mov dword [esi + 0x452d20], ecx
shr ecx, 8
xor ecx, dword [eax*4 + 0x44f520]
mov dword [esi + 0x453120], ecx
add esi, 4
cmp esi, 0x400
jb 0x405ed0
pop esi
ret
Function at 0x406020
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xedcba987
mov dword [ebp - 8], edx
push edi
mov edi, edx
cmp ebx, 0x10
jb 0x40614b
shr ebx, 4
mov dword [ebp - 0xc], ebx
push esi
mov ebx, dword [edi + 0xc]
mov ecx, dword [edi]
xor ecx, eax
mov esi, dword [edi + 4]
mov dword [ebp - 4], ecx
mov eax, ebx
shr eax, 0x10
movzx edx, al
mov eax, ebx
shr eax, 8
movzx ecx, al
mov eax, dword [edx*4 + 0x44f920]
mov edx, dword [edi + 8]
xor eax, dword [ecx*4 + 0x44fd20]
mov ecx, edx
shr ecx, 0x10
movzx ecx, cl
mov edi, dword [ebp - 4]
xor eax, dword [ecx*4 + 0x450920]
mov ecx, edx
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x450d20]
mov ecx, esi
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x451920]
mov ecx, esi
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x451d20]
mov ecx, edi
shr ecx, 0x10
movzx ecx, cl
xor eax, dword [ecx*4 + 0x452920]
mov ecx, edi
shr ecx, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x452d20]
mov ecx, ebx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x44f520]
mov ecx, edx
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x450520]
mov ecx, esi
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x451520]
mov ecx, edi
mov edi, dword [ebp - 8]
shr ecx, 0x18
xor eax, dword [ecx*4 + 0x452520]
movzx ecx, bl
mov ebx, dword [ebp + 8]
sub ebx, 0x10
mov dword [ebp + 8], ebx
xor eax, dword [ecx*4 + 0x450120]
movzx ecx, dl
xor eax, dword [ecx*4 + 0x451120]
mov ecx, dword [edi + 4]
add edi, 0x10
movzx ecx, cl
mov dword [ebp - 8], edi
xor eax, dword [ecx*4 + 0x452120]
mov ecx, dword [ebp - 4]
movzx ecx, cl
xor eax, dword [ecx*4 + 0x453120]
sub dword [ebp - 0xc], 1
jne 0x406045
pop esi
test ebx, ebx
je 0x40616a
nop
movzx ecx, byte [edi]
lea edi, [edi + 1]
movzx edx, al
xor edx, ecx
shr eax, 8
xor eax, dword [edx*4 + 0x44f520]
sub ebx, 1
jne 0x406150
pop edi
not eax
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x406180
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x20
mov eax, dword [0x44a064]
xor eax, esp
mov dword [esp + 0x1c], eax
lea eax, [esp]
push eax
push 0x28
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4061ca
lea eax, [esp + 4]
push eax
push 0x440df0
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x4061db
push dword [esp]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor al, al
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.0040cc96
mov esp, ebp
pop ebp
ret
mov eax, dword [esp + 4]
push 0
push 0
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x10]
push 0x10
mov dword [esp + 0x20], eax
lea eax, [esp + 0x18]
push eax
push 0
push dword [esp + 0x14]
mov dword [esp + 0x24], 1
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4061c1
mov ecx, dword [esp + 0x1c]
mov al, 1
xor ecx, esp
call fcn.0040cc96
mov esp, ebp
pop ebp
ret
Function at 0x406c30
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42ded8
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x44a064]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], 0
call fcn.00406ff0
mov dword [ebp - 0x30], eax
lea ecx, [ebp - 0x30]
mov dword [ebp - 4], 0
call fcn.00406e40
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
jne 0x406c9f
xorps xmm0, xmm0
movlpd qword [ebp - 0x40], xmm0
mov eax, dword [ebp - 0x3c]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x40]
mov dword [ebp - 0x28], eax
jmp 0x406d62
mov eax, dword [ebp - 0x30]
mov eax, dword [eax]
mov esi, dword [eax + 0x18]
mov edi, dword [eax + 0x1c]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
cmp ecx, 1
je 0x406d62
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [ebp - 0x24], eax
cmp eax, 0xffffffff
je 0x406d15
xorps xmm0, xmm0
mov eax, 2
movups xmmword [ebp - 0x20], xmm0
push 0x50
mov word [ebp - 0x20], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x1e], ax
call fcn.00406dd0
mov dword [ebp - 0x34], eax
test eax, eax
je 0x406d15
mov dword [ebp - 0x1c], eax
lea eax, [ebp - 0x20]
push 0x10
push eax
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
jne 0x406d1d
push dword [ebp - 0x24]
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x24], edi
jmp 0x406d62
mov esi, dword [ebp - 0x24]
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x20]
mov dword [ebp - 0x44], 0x10
push eax
push esi
call dword [sym.imp.WS2_32.dll_getsockname]
mov eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 0x34], eax
call dword [sym.imp.WS2_32.dll_closesocket]
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp - 0x30]
call fcn.00407060
mov eax, dword [ebp - 0x40]
mov ecx, dword [eax + 0x18]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x24], eax
mov edi, dword [ebp - 0x30]
lea ecx, [ebp - 0x30]
mov esi, dword [edi]
mov dword [ebp - 0x38], esi
call fcn.00406f20
push dword [ebp - 0x30]
call fcn.0040cce8
mov eax, dword [ebp - 0x28]
add esp, 4
mov edx, dword [ebp - 0x24]
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.0040cc96
mov esp, ebp
pop ebp
ret
Function at 0x406dd0
Capabilities:
Check for time delay via gettickcount
Resolve dns

Disassembly:
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov ebx, eax
call edi
sub eax, ebx
cmp eax, 0xfa0
jae 0x406e21
nop dword [eax + eax]
push 0x445f4c
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x406e27
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x64
mov esi, eax
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
call edi
sub eax, ebx
cmp eax, 0xfa0
jb 0x406df0
pop edi
pop esi
xor eax, eax
pop ebx
ret
mov eax, dword [eax + 0xc]
pop edi
pop esi
pop ebx
mov eax, dword [eax]
mov eax, dword [eax]
ret

Function at 0x406e40
Capabilities:
Get local ipv4 addresses
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push edi
push 0x288
mov dword [ebp - 0xc], ecx
mov dword [ebp - 4], 0x288
call fcn.00413688
mov edi, eax
add esp, 4
mov dword [ebp - 8], edi
test edi, edi
je 0x406ef8
mov esi, dword [sym.imp.IPHLPAPI.DLL_GetAdaptersInfo]
lea eax, [ebp - 4]
push eax
push edi
call esi
cmp eax, 0x6f
jne 0x406e98
push edi
call fcn.0041366d
push dword [ebp - 4]
call fcn.00413688
mov edi, eax
mov dword [ebp - 8], eax
add esp, 8
test edi, edi
je 0x406ef8
lea eax, [ebp - 4]
push eax
push edi
call esi
test eax, eax
jne 0x406ef8
mov esi, edi
test edi, edi
je 0x406ef8
mov edi, dword [ebp - 0xc]
push ebx
nop dword [eax]
mov eax, dword [esi + 0x198]
mov ebx, dword [esi + 0x194]
mov dword [ebp - 0xc], eax
lea eax, [esi + 0x1b0]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x406eee
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00407060
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x18], ebx
mov dword [eax + 0x1c], ecx
mov esi, dword [esi]
test esi, esi
jne 0x406eb0
mov edi, dword [ebp - 8]
pop ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test edi, edi
je 0x406f0d
push edi
call fcn.0041366d
add esp, 4
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x407700
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x238
mov eax, dword [0x44a064]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x234], eax
mov eax, dword [ebp + 0x10]
push 0x22c
mov dword [ebp - 0x238], eax
lea eax, [ebp - 0x230]
push 0
push eax
call fcn.00410e30
add esp, 0xc
push 0
push 2
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
jne 0x407760
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cc96
mov esp, ebp
pop ebp
ret 0xc
push ebx
push edi
lea eax, [ebp - 0x230]
mov dword [ebp - 0x230], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x4077bd
mov edi, dword [ebp + 0xc]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
nop word [eax + eax]
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x234]
call ebx
test eax, eax
jne 0x4077ab
cmp dword [ebp - 0x218], edi
je 0x4077d9
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32NextW]
test eax, eax
jne 0x407790
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0040cc96
mov esp, ebp
pop ebp
ret 0xc
mov ecx, dword [ebp - 0x238]
mov eax, dword [ebp - 0x228]
push esi
mov dword [ecx], eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop ebx
xor ecx, ebp
pop esi
call fcn.0040cc96
mov esp, ebp
pop ebp
ret 0xc