joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001e4cb
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xd4
push esi
push edi
xor edi, edi
push 0xc8
lea eax, [ebp - 0xd4]
push edi
push eax
mov dword [ebp - 8], edi
call fcn.10031000
add esp, 0xc
lea eax, [ebp - 4]
mov dword [ebp - 8], 1
mov dword [ebp - 0xc], 0x64
push eax
push str.SOFTWAREMicrosoftRasCurrent
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], edi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0xd4]
push eax
lea eax, [ebp - 8]
push eax
push edi
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
mov al, byte [ebp + 0xb]
push edi
mov ecx, esi
mov byte [esi], al
call fcn.1000418b
lea eax, [ebp - 0xd4]
push eax
call fcn.10031058
pop ecx
push eax
lea eax, [ebp - 0xd4]
push eax
mov ecx, esi
call fcn.10004232
mov eax, esi
pop edi
pop esi
leave
ret

Function at 0x1001e69c
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push str.SOFTWAREMicrosoftRasCurrent
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 4], 0
je 0x1001e6df
lea eax, [ebp + 8]
push 4
push eax
push 4
push 0
push str.Reason
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
leave
ret

Function at 0x1001e6e1
Capabilities:
Create thread

Disassembly:
mov eax, 0x100ccd6c
call fcn.10030644
push ecx
push ebx
push esi
push edi
mov esi, 0x200
xor ebx, ebx
push esi
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call fcn.100c0da0
mov edi, eax
push esi
push ebx
push edi
call fcn.10031000
mov eax, dword [ebp + 8]
add esp, 0x10
cmp eax, ebx
je 0x1001e71a
mov eax, dword [eax]
jmp 0x1001e71c
xor eax, eax
push 0xfa
push eax
push edi
call fcn.100317ef
add esp, 0xc
lea eax, [ebp - 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
push ebx
push edi
mov edi, 0x1000
push 0x1001e771
push edi
push ebx
call esi
lea eax, [ebp - 0x10]
push eax
push ebx
push dword [ebp + 0xc]
push 0x1001e834
push edi
push ebx
call esi
mov ecx, dword [ebp + 8]
pop edi
pop esi
cmp ecx, ebx
pop ebx
je 0x1001e765
call fcn.10002801
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
leave
ret
Function at 0x1002453b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2ef4
call fcn.10031830
push esi
push edi
mov esi, 0x7d0
xor edi, edi
push esi
lea eax, [ebp - 0xfb4]
push edi
push eax
call fcn.10031000
push esi
lea eax, [ebp - 0x1f54]
push edi
push eax
call fcn.10031000
push esi
lea eax, [ebp - 0x2ef4]
push edi
push eax
call fcn.10031000
add esp, 0x24
lea eax, [ebp - 4]
push eax
push 0xf003f
push edi
push dword [ebp + 8]
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0x10]
mov dword [ebp - 8], 1
push eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
sub esp, 0x10
lea eax, [ebp + 0xb]
mov ecx, esp
mov dword [ebp + 8], esp
push eax
push str.prohibitipsec
mov dword [ebp - 0x10], 4
call fcn.10003536
lea eax, [ebp - 0xc]
push eax
call fcn.10020042
add esp, 0x14
mov ecx, eax
call fcn.10003ab9
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 0xc]
mov esi, eax
cmp ecx, edi
je 0x100245f2
call fcn.10002801
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
neg eax
sbb eax, eax
pop esi
not eax
and eax, dword [ebp - 8]
leave
ret 8

Function at 0x10027b2d
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
push ebx
push esi
push edi
mov edi, dword [0x10109910]
push dword [ebp + 0xc]
mov esi, ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
test ebx, ebx
je 0x10027b69
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push ebx
push edi
mov dword [ebp + 0xc], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x10027b6d
xor al, al
jmp 0x10027bb6
push dword [ebp + 0xc]
call fcn.100c0da0
push dword [ebp + 0xc]
mov dword [esi + 0x4214], eax
push edi
push eax
call fcn.10030860
push 4
lea eax, [esi + 0x4210]
push dword [esi + 0x4214]
push eax
call fcn.10030860
mov eax, dword [esi + 0x4214]
push 0x4200
add eax, 4
add esi, 0x10
push eax
push esi
call fcn.10030860
add esp, 0x28
mov al, 1
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1002936b
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x100293a9
call fcn.100c76cf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x100293a9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x100293c0
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x100293c0
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x10040f11
Capabilities:
Create process on windows
Create process suspended

Disassembly:
mov eax, 0x100cece7
call fcn.10030644
sub esp, 0x878
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x10], ebx
mov eax, dword [0x100fd4c0]
mov dword [ebp - 4], 2
mov dword [ebp - 0x14], eax
push 0x100fba24
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.100c1130
lea eax, [ebp - 0x18]
mov byte [ebp - 4], 4
push eax
lea eax, [ebp + 0xc]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100c12a6
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 5
push ecx
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.100c12a6
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 6
call fcn.100c11ae
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 5
call fcn.100c1067
lea ecx, [ebp - 0x20]
mov byte [ebp - 4], 4
call fcn.100c1067
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 3
call fcn.100c1067
push 0xc
lea eax, [ebp - 0x30]
pop esi
push esi
push ebx
push eax
call fcn.10031000
push 1
mov dword [ebp - 0x30], esi
pop esi
lea eax, [ebp - 0x84]
push 0x44
push ebx
push eax
mov dword [ebp - 0x28], esi
call fcn.10031000
push 0x10
lea eax, [ebp - 0x40]
push ebx
push eax
call fcn.10031000
mov eax, dword [ebp - 0x14]
add esp, 0x24
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x58], esi
mov word [ebp - 0x54], bx
push dword [eax - 8]
lea ecx, [ebp - 0x14]
call fcn.100c14ac
push eax
lea eax, [ebp - 0x884]
push eax
call fcn.10031161
pop ecx
lea eax, [ebp - 0x40]
pop ecx
push eax
lea eax, [ebp - 0x84]
push eax
push ebx
push ebx
push 0x20
push esi
push ebx
lea eax, [ebp - 0x884]
push ebx
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
push 0x2710
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x100fd4c0]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 7
call fcn.100c0dd4
mov dword [ebp - 0x10], esi
lea ecx, [ebp - 0x1c]
mov byte [ebp - 4], 3
call fcn.100c1067
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.100c1067
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], 1
call fcn.100c1067
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.100c1067
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x1004108c
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x100ced1c
call fcn.10030644
sub esp, 0x6c
push ebx
lea eax, [ebp - 0x78]
push esi
xor ebx, ebx
push eax
push ebx
push ebx
call sub.iphlpapi.dll_GetBestRoute
mov al, byte [ebp + 0xb]
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x30], al
call fcn.10002424
mov esi, str.count
push esi
call fcn.10030730
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.100036bc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], ebx
call fcn.1006f1f1
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 0xd], al
call fcn.10002424
cmp byte [ebp - 0xd], bl
je 0x1004110e
mov ecx, dword [ebp + 8]
push esi
call fcn.100420b1
mov esi, eax
push 2
mov ecx, esi
call fcn.1006e74a
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jle 0x10041264
push edi
mov edi, dword [sym.imp.WSOCK32.dll_inet_addr]
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push str.net_d
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 4], 1
cmp ecx, ebx
je 0x10041149
call fcn.1000886e
jmp 0x1004114b
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x30]
mov al, byte [esi]
mov byte [ebp - 0x30], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0x30]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x1004118f
mov eax, 0x100d6d1c
push eax
call edi
mov dword [ebp - 0x78], eax
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.10002424
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x100411b6
call fcn.10002801
mov dword [ebp - 0x1c], ebx
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push str.mask_d
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 4], 3
cmp ecx, ebx
je 0x100411de
call fcn.1000886e
jmp 0x100411e0
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x40]
mov al, byte [esi]
mov byte [ebp - 0x40], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x10041224
mov eax, 0x100d6d1c
push eax
call edi
mov dword [ebp - 0x74], eax
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.10002424
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x1004124b
call fcn.10002801
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x78]
push eax
call sub.iphlpapi.dll_CreateIpForwardEntry
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x10041121
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10041674
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x100cee14
call fcn.10030644
sub esp, 0x6c
mov al, byte [ebp + 0xb]
push ebx
xor ebx, ebx
push esi
push ebx
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], ebx
mov byte [ebp - 0x30], al
call fcn.10002424
mov esi, str.count
push esi
call fcn.10030730
pop ecx
push eax
push esi
lea ecx, [ebp - 0x30]
call fcn.100036bc
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 4], ebx
call fcn.1006f1f1
or dword [ebp - 4], 0xffffffff
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 0xd], al
call fcn.10002424
cmp byte [ebp - 0xd], bl
je 0x100416eb
mov ecx, dword [ebp + 8]
push esi
call fcn.100420b1
mov esi, eax
push 2
mov ecx, esi
call fcn.1006e74a
mov eax, dword [esi]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
jle 0x1004184e
push edi
mov edi, dword [sym.imp.WSOCK32.dll_inet_addr]
push dword [ebp - 0x14]
lea eax, [ebp - 0x1c]
push str.net_d
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 4], 1
cmp ecx, ebx
je 0x10041726
call fcn.1000886e
jmp 0x10041728
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x30]
mov al, byte [esi]
mov byte [ebp - 0x30], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0x30]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0x2c]
mov byte [ebp - 4], 2
cmp eax, ebx
jne 0x1004176c
mov eax, 0x100d6d1c
push eax
call edi
mov dword [ebp - 0x78], eax
push 1
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 1
call fcn.10002424
mov ecx, dword [ebp - 0x1c]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x10041793
call fcn.10002801
mov dword [ebp - 0x1c], ebx
lea eax, [ebp - 0x78]
push eax
push ebx
push dword [ebp - 0x78]
call sub.iphlpapi.dll_GetBestRoute
push dword [ebp - 0x14]
lea eax, [ebp - 0x20]
push str.mask_d
push eax
call fcn.100598b6
add esp, 0xc
mov ecx, dword [eax]
mov dword [ebp - 4], 3
cmp ecx, ebx
je 0x100417c8
call fcn.1000886e
jmp 0x100417ca
xor eax, eax
mov ecx, dword [ebp + 8]
push eax
call fcn.100420b1
mov esi, eax
push 4
mov ecx, esi
call fcn.1006e74a
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x40]
mov al, byte [esi]
mov byte [ebp - 0x40], al
call fcn.10002424
push dword [0x100d6d18]
lea ecx, [ebp - 0x40]
push ebx
push esi
call fcn.10003585
mov eax, dword [ebp - 0x3c]
mov byte [ebp - 4], 4
cmp eax, ebx
jne 0x1004180e
mov eax, 0x100d6d1c
push eax
call edi
mov dword [ebp - 0x74], eax
push 1
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 3
call fcn.10002424
mov ecx, dword [ebp - 0x20]
or dword [ebp - 4], 0xffffffff
cmp ecx, ebx
je 0x10041835
call fcn.10002801
mov dword [ebp - 0x20], ebx
lea eax, [ebp - 0x78]
push eax
call sub.iphlpapi.dll_DeleteIpForwardEntry
inc dword [ebp - 0x14]
mov eax, dword [ebp - 0x14]
cmp eax, dword [ebp - 0x18]
jl 0x100416fe
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x10041bff
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov dx, word [0x10109648]
push esi
push edi
mov ecx, 0x82
xor eax, eax
lea edi, [ebp - 0x20e]
and dword [ebp - 4], eax
mov word [ebp - 0x210], dx
rep stosd dword es:[edi], eax
mov ecx, 0x89
lea edi, [ebp - 0x436]
mov word [ebp - 0x438], dx
push 0x105
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
test eax, eax
jbe 0x10041c88
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x438]
push str._skernel32.dll
push eax
call fcn.10030f8c
add esp, 0xc
test eax, eax
jle 0x10041c88
lea eax, [ebp - 0x438]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x10041c95
push str.kernel32.dll
call esi
mov edi, eax
test edi, edi
je 0x10041cce
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x10041cc3
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x10041cc3
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x10041cd1
test edi, edi
je 0x10041cce
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x100433a1
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x22c
push ebx
push esi
xor ebx, ebx
push edi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
lea eax, [ebp - 0x22c]
push eax
push edi
mov dword [ebp - 0x22c], 0x22c
call sub.KERNEL32.dll_Process32FirstW
push dword [ebp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x208]
push eax
call esi
test eax, eax
je 0x10043403
lea eax, [ebp - 0x22c]
push eax
push edi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
je 0x10043409
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push eax
jmp 0x100433e0
mov ebx, dword [ebp - 0x224]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, ebx
pop esi
pop ebx
leave
ret

Function at 0x10043417
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
push 0
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0xc]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 4
inc esi
push 0x1000
push esi
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov edi, eax
test edi, edi
mov dword [ebp + 8], edi
je 0x1004347c
lea eax, [ebp - 4]
push eax
push esi
push dword [ebp + 0xc]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x1004347c
cmp dword [ebp - 4], esi
je 0x1004348a
push 0x4000
push esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
and dword [ebp - 0x14], 0
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
lea eax, [ebp - 0x14]
xor edi, edi
push eax
push edi
push dword [ebp + 8]
push dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push edi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
cmp eax, edi
mov dword [ebp + 0xc], eax
je 0x10043483
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0x4000
push esi
push dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
mov dword [ebp - 0xc], edi
xor eax, eax
lea edi, [ebp - 8]
stosd dword es:[edi], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
push dword [ebp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push ebx
call esi
cmp dword [ebp - 0xc], 0
jne 0x100434fd
cmp dword [ebp - 8], 0
je 0x10043483
push 1
pop eax
jmp 0x10043485
Function at 0x10043502
Capabilities:
Create process on windows

Disassembly:
mov eax, 0x100cf314
call fcn.10030644
sub esp, 0x44
push ebx
push esi
lea eax, [ebp + 8]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], 2
mov dword [ebp - 0x50], 0x3c
mov dword [ebp - 0x4c], 0x4008040
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], 0x100fb344
call fcn.100c0dd4
lea eax, [ebp + 0xc]
lea ecx, [ebp - 0x10]
push eax
mov byte [ebp - 4], 3
call fcn.100c0dd4
mov eax, dword [ebp - 0x14]
mov byte [ebp - 4], 4
mov dword [ebp - 0x40], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x3c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x50]
push eax
mov dword [ebp - 0x30], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov esi, dword [ebp - 0x18]
cmp esi, ebx
je 0x100435af
cmp byte [ebp + 0x18], bl
je 0x100435af
push 0x7530
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor esi, esi
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 3
call fcn.100c1067
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 2
call fcn.100c1067
lea ecx, [ebp + 8]
mov byte [ebp - 4], 1
call fcn.100c1067
lea ecx, [ebp + 0xc]
mov byte [ebp - 4], bl
call fcn.100c1067
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x10]
call fcn.100c1067
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x100435fa
Capabilities:
Create thread
Inject thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
push dword [ebp + 8]
push edi
push 0x2a
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push dword [ebp + 0xc]
mov dword [ebp + 8], eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
push 4
inc esi
push 0x1000
push esi
push edi
push dword [ebp + 8]
mov dword [ebp - 0xc], esi
call dword [sym.imp.KERNEL32.dll_VirtualAllocEx]
mov ebx, eax
cmp ebx, edi
mov dword [ebp - 0x10], ebx
je 0x100436f8
lea eax, [ebp - 8]
push eax
push esi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
test eax, eax
je 0x100436f8
cmp dword [ebp - 8], esi
je 0x10043676
push 0x4000
push esi
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
jmp 0x100436f8
lea eax, [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CreateRemoteThread]
push eax
push edi
push ebx
push dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push edi
push edi
push dword [ebp + 8]
call esi
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push 0xffffffffffffffff
push eax
mov dword [ebp + 0xc], eax
call edi
mov ebx, dword [sym.imp.KERNEL32.dll_GetExitCodeThread]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
call ebx
push 0x4000
push dword [ebp - 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_VirtualFreeEx]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x14]
push eax
xor eax, eax
push eax
push dword [ebp - 4]
push dword [sym.imp.KERNEL32.dll_FreeLibrary]
push eax
push eax
push dword [ebp + 8]
call esi
mov esi, eax
push 0xffffffffffffffff
push esi
call edi
lea eax, [ebp - 4]
push eax
push esi
call ebx
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 1
pop edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10046703
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
push 0x114
lea eax, [ebp - 0x118]
push 0
push eax
mov dword [ebp - 4], 1
call fcn.10031000
add esp, 0xc
lea eax, [ebp - 0x118]
mov dword [ebp - 0x118], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x1004674e
push 1
pop eax
jmp 0x1004675f
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.10053702
mov eax, dword [ebp - 4]
pop ecx
pop ecx
leave
ret 4
Function at 0x10046f17
Capabilities:
Get routing table
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor edi, edi
lea eax, [ebp - 4]
push edi
push eax
push edi
mov dword [ebp - 4], edi
call sub.iphlpapi.dll_GetIpForwardTable
mov eax, dword [ebp - 4]
push 0x3c
xor edx, edx
pop ecx
div ecx
imul eax, eax, 0x3c
push eax
call fcn.100c0da0
pop ecx
mov esi, eax
lea eax, [ebp - 4]
push edi
push eax
push esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp dword [esi], edi
mov dword [ebp - 8], edi
jbe 0x10046f9f
push ebx
lea ebx, [esi + 4]
mov eax, dword [ebp + 0xc]
cmp eax, edi
jle 0x10046f91
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
push edi
call fcn.10030730
test eax, eax
pop ecx
jbe 0x10046f84
push edi
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp dword [ebx], eax
jne 0x10046f84
push ebx
call sub.iphlpapi.dll_DeleteIpForwardEntry
add edi, 0x80
dec dword [ebp - 0xc]
jne 0x10046f68
xor edi, edi
inc dword [ebp - 8]
add ebx, 0x38
mov eax, dword [ebp - 8]
cmp eax, dword [esi]
jb 0x10046f5b
pop ebx
push esi
call fcn.100c0dc9
pop ecx
pop edi
mov al, 1
pop esi
leave
ret 0xc
Function at 0x1004de06
Capabilities:
Get routing table

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
xor ebx, ebx
push edi
lea eax, [ebp - 8]
push ebx
push eax
mov dword [ebp - 0xc], ecx
push ebx
mov dword [ebp - 8], ebx
call sub.iphlpapi.dll_GetIpForwardTable
mov eax, dword [ebp - 8]
push 0x3c
xor edx, edx
pop ecx
div ecx
imul eax, eax, 0x3c
push eax
call fcn.100c0da0
pop ecx
mov edi, eax
lea eax, [ebp - 8]
push ebx
push eax
push edi
call sub.iphlpapi.dll_GetIpForwardTable
cmp dword [edi], ebx
mov dword [ebp - 4], ebx
jbe 0x1004de77
lea esi, [edi + 0x28]
cmp dword [esi - 0x24], ebx
lea ecx, [esi - 0x24]
jne 0x1004de6a
mov eax, dword [esi]
cmp eax, 1
jne 0x1004de6a
add eax, 0x19
push ecx
mov dword [esi], eax
call sub.iphlpapi.dll_SetIpForwardEntry
inc dword [ebp - 4]
add esi, 0x38
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jb 0x1004de50
push 0x40
lea eax, [ebp - 0x10c]
pop edi
push edi
push str.0.0.0.0
push eax
call fcn.10037280
mov esi, str.128.0.0.0
push edi
lea eax, [ebp - 0xcc]
push esi
push eax
call fcn.10037280
push edi
lea eax, [ebp - 0x8c]
push esi
push eax
call fcn.10037280
push edi
lea eax, [ebp - 0x4c]
push esi
push eax
call fcn.10037280
mov ecx, dword [ebp - 0xc]
add esp, 0x30
lea eax, [ebp - 0x10c]
push eax
push 2
push 1
call fcn.100464d9
pop edi
pop esi
pop ebx
leave
ret