joyce8/EMBER2024-capa huggingface dataset:
Function at 0xcd8172
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
pushal
mov edx, dword [ebp + 8]
mov ax, word [edx]
cmp ax, 0x5a4d
jne 0xcd81a1
mov eax, dword [edx + 0x3c]
add edx, eax
mov eax, dword [edx]
cmp eax, 0x4550
jne 0xcd81a1
add edx, 4
mov dword [ebp - 4], edx
popal
mov eax, dword [ebp - 4]
leave
ret 8
popal
sub eax, eax
leave
ret 8

Function at 0xcd8dff
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 4
mov ecx, 3
mov edx, 1
push ecx
push dword [ebp + 8]
call fcn.00cd8f04
rol eax, 8
push dword [ebp + 0xc]
push eax
call fcn.00cd8f20
push edx
push dword [ebp + 0x10]
push eax
call fcn.00cd8eec
inc edx
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00cd8f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00cd8ecb
push ecx
push dword [ebp + 8]
call fcn.00cd8f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00cd8f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00cd8ecb
push ecx
push dword [ebp + 8]
call fcn.00cd8f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00cd8f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00cd8ecb
push ecx
push dword [ebp + 8]
call fcn.00cd8f04
mov ebx, eax
push ecx
sub ecx, 3
push ecx
push dword [ebp + 8]
call fcn.00cd8f04
pop ecx
xor eax, ebx
inc ecx
push ecx
push dword [ebp + 8]
push eax
call fcn.00cd8ecb
cmp ecx, 0x2b
jne 0xcd8e0f
leave
ret 0xc

Function at 0xcda4b4
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
pushal
mov byte [ebp - 0x118], 0x42
mov byte [ebp - 0x117], 0x72
mov byte [ebp - 0x116], 0x75
mov byte [ebp - 0x115], 0x74
mov byte [ebp - 0x114], 0x65
mov byte [ebp - 0x113], 0x66
mov byte [ebp - 0x112], 0x6f
mov byte [ebp - 0x111], 0x72
mov byte [ebp - 0x110], 0x63
mov byte [ebp - 0x10f], 0x69
mov byte [ebp - 0x10e], 0x6e
mov byte [ebp - 0x10d], 0x67
mov byte [ebp - 0x10c], 0x20
mov byte [ebp - 0x10b], 0x4b
mov byte [ebp - 0x10a], 0x65
mov byte [ebp - 0x109], 0x79
mov byte [ebp - 0x108], 0
mov eax, 1
lea edi, [ebp - 0x14]
mov ecx, 0x10
mov al, 0
mov byte [edi], al
inc edi
dec ecx
jne 0xcda544
mov eax, dword [ebp + 8]
push 4
push 0x3000
push 0x43b210
push 0
call dword [eax + 0x20]
test eax, eax
je 0xcda5d6
mov dword [ebp - 4], eax
mov edi, eax
mov esi, dword [ebp + 0xc]
mov ecx, 0x43b210
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0xc]
push dword [ebp + 0xc]
push 0x43b210
call fcn.00cda3fa
push 0x43b210
push dword [ebp + 0xc]
call fcn.00cd81a8
test eax, eax
jne 0xcda5b8
mov esi, dword [ebp - 4]
mov edi, dword [ebp + 0xc]
mov ecx, 0x43b210
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x14]
push eax
call fcn.00cda5dd
test eax, eax
je 0xcda5d6
jmp 0xcda574
mov eax, dword [ebp + 8]
push 0x8000
push 0
push dword [ebp - 4]
call dword [eax + 0x28]
test eax, eax
je 0xcda5d6
popal
mov eax, 1
leave
ret 8
popal
sub eax, eax
leave
ret 8
Function at 0xcda60b
Capabilities:
Terminate process

Disassembly:
call fcn.00cda618
push 0
call dword [sym.imp.KERNEL32.DLL_ExitProcess]
Function at 0x4013e0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4013f9
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x40140d
pop esi
pop edi
xor eax, eax
pop ebx
ret
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x40142e
cmp esi, eax
jae 0x401407
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401420
cmp esi, eax
jae 0x401407
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4051e0
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
test eax, eax
push ebx
mov ebx, ecx
push ebp
mov dword [esp + 8], ebx
je 0x4051f4
mov byte [eax], 0
mov ebp, dword [esp + 0x10]
test ebp, ebp
jne 0x405204
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 0xc
test eax, eax
jne 0x40527c
push esi
push edi
push 0x201
mov esi, 0x200
call fcn.0045d558
add esp, 4
mov edi, eax
mov eax, dword [ebx + 4]
push eax
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebx, eax
lea ecx, [ebx + 2]
cmp ecx, esi
jb 0x405268
push edi
add esi, 0x200
call fcn.0045d55d
lea edx, [esi + 1]
push edx
call fcn.0045d558
mov edi, eax
mov eax, dword [esp + 0x18]
mov ecx, dword [eax + 4]
add esp, 8
push ecx
push esi
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
mov ebx, eax
lea edx, [ebx + 2]
cmp edx, esi
jae 0x405234
push edi
call fcn.0045d55d
add esp, 4
pop edi
pop esi
pop ebp
lea eax, [ebx + 2]
pop ebx
pop ecx
ret 0xc
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
push ecx
push edx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionA]
pop ebp
pop ebx
pop ecx
ret 0xc

Function at 0x4052a0
Capabilities:
Read .ini file

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
push ebp
mov ebp, ecx
jne 0x405322
push ebx
push esi
push edi
push 0x201
mov esi, 0x200
call fcn.0045d558
add esp, 4
mov edi, eax
mov eax, dword [ebp + 4]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ebx, eax
lea ecx, [ebx + 2]
cmp ecx, esi
jb 0x40530f
jmp 0x4052e0
push edi
add esi, 0x200
call fcn.0045d55d
lea edx, [esi + 1]
push edx
call fcn.0045d558
add esp, 8
mov edi, eax
mov eax, dword [ebp + 4]
push eax
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
mov ebx, eax
lea ecx, [ebx + 2]
cmp ecx, esi
jae 0x4052e0
push edi
call fcn.0045d55d
add esp, 4
pop edi
pop esi
lea eax, [ebx + 2]
pop ebx
pop ebp
ret 8
mov edx, dword [ebp + 4]
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileSectionNamesA]
pop ebp
ret 8
Function at 0x405380
Capabilities:
Read .ini file

Disassembly:
push ecx
mov eax, dword [esp + 8]
test eax, eax
push ebx
push ebp
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
je 0x405439
mov ebp, dword [esp + 0x1c]
test ebp, ebp
je 0x405439
push 0x201
mov esi, 0x200
call fcn.0045d558
mov edi, eax
mov eax, dword [esp + 0x24]
add esp, 4
test eax, eax
jne 0x4053c4
mov eax, 0x492e6c
mov ecx, dword [ebx + 4]
mov edx, dword [esp + 0x18]
mov ebx, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
push ecx
push 0x200
push edi
push eax
push ebp
push edx
call ebx
inc eax
cmp eax, 0x200
jb 0x40542f
jmp 0x4053f0
push edi
add esi, 0x200
call fcn.0045d55d
lea eax, [esi + 1]
push eax
call fcn.0045d558
mov edi, eax
mov eax, dword [esp + 0x28]
add esp, 8
test eax, eax
jne 0x405417
mov eax, 0x492e6c
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx + 4]
push edx
push esi
push edi
push eax
mov eax, dword [esp + 0x28]
push ebp
push eax
call ebx
inc eax
cmp eax, esi
jae 0x4053f0
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
mov edi, dword [esp + 0x20]
test edi, edi
jne 0x405456
push 1
call fcn.0045d558
add esp, 4
pop edi
pop esi
pop ebp
mov byte [eax], 0
pop ebx
pop ecx
ret 0xc
mov eax, edi
lea edx, [eax + 1]
jmp 0x405460
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x405460
sub eax, edx
inc eax
push eax
call fcn.0045d558
mov esi, eax
add esp, 4
mov ecx, edi
sub esi, edi
lea esp, [esp]
mov dl, byte [ecx]
mov byte [esi + ecx], dl
inc ecx
test dl, dl
jne 0x405480
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x407700
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x110
mov eax, dword [0x4ba8b4]
mov ecx, dword [esp + 0x118]
mov edx, dword [esp + 0x114]
push esi
mov dword [esp + 0x110], eax
lea eax, [esp + 4]
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x407774
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x120]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x110]
mov eax, esi
pop esi
call fcn.0043d9f4
add esp, 0x110
ret 0xc

Function at 0x408570
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x4849b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x80]
test eax, eax
jne 0x408676
push esi
call fcn.0045d6c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 8], esi
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0x104
or eax, ecx
mov dword [esp + 0x14], 0
jge 0x4085db
push 0x104
lea ecx, [esp + 0xc]
call fcn.00404140
mov esi, dword [esp + 8]
push 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test esi, esi
jne 0x4085ef
xor eax, eax
jmp 0x408603
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4085f4
sub eax, edx
js 0x408686
cmp eax, dword [esi - 8]
jg 0x408686
push edi
push 0xd
mov dword [esi - 0xc], eax
push 0x492e58
lea ecx, [esp + 0x14]
mov byte [eax + esi], 0
call fcn.00404a90
mov edi, dword [esp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40864b
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40864b
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [ebx + 0x80], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [edi - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x408675
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 8]
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
push 0x80070057
call fcn.004013c0
int3

Function at 0x408e60
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
xor ecx, ecx
test ebp, ebp
jle 0x408e8e
mov edi, edi
xor edx, edx
mov dh, byte [ecx + edi]
xor eax, eax
mov al, byte [ecx + edi + 1]
add ecx, 2
movzx edx, dx
and eax, 0xff
xor eax, edx
add esi, eax
cmp ecx, ebp
jl 0x408e70
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x408eb1
jmp 0x408ea0
and esi, 0xffff
add esi, eax
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x408ea0
mov eax, esi
pop esi
not eax
pop ebp
ret
Function at 0x408ec0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push esi
xor esi, esi
xor eax, eax
test ebp, ebp
jle 0x408eef
mov edi, edi
xor edx, edx
mov dh, byte [eax + edi]
xor ecx, ecx
mov cl, byte [eax + edi + 1]
add eax, 2
movzx edx, dx
and ecx, 0xff
xor ecx, edx
add esi, ecx
cmp eax, ebp
jl 0x408ed0
mov eax, esi
shr eax, 0x10
test eax, eax
je 0x408f11
jmp 0x408f00
and esi, 0xffff
add esi, eax
mov eax, esi
shr eax, 0x10
test eax, eax
jne 0x408f00
xor eax, eax
cmp si, 0xffff
pop esi
sete al
pop ebp
ret

Function at 0x408f20
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x1a4
mov eax, dword [0x4ba8b4]
mov dword [esp + 0x1a0], eax
lea eax, [esp + 0x10]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, 0xffffffff
jne 0x408f5c
xor al, al
mov ecx, dword [esp + 0x1a0]
call fcn.0043d9f4
add esp, 0x1a4
ret
lea ecx, [esp]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movzx edx, word [esp + 0xe]
push edx
call fcn.0043ebae
mov ecx, dword [esp + 0x1a4]
add esp, 4
mov al, 1
call fcn.0043d9f4
add esp, 0x1a4
ret

Function at 0x40a840
Capabilities:
Get routing table

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
lea eax, [esp + 0xc]
push eax
push edi
xor esi, esi
mov dword [esp + 0x14], edi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, 0x7a
jne 0x40a891
mov ecx, dword [esp + 8]
push ecx
call fcn.0043eebf
mov esi, eax
add esp, 4
cmp esi, edi
jne 0x40a885
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x40a8b6
push edi
lea eax, [esp + 0xc]
push eax
push esi
call sub.iphlpapi.dll_GetIpForwardTable
cmp eax, edi
je 0x40a8c6
cmp esi, edi
je 0x40a8a2
push esi
call fcn.0043eda7
add esp, 4
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a8c0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop edi
xor eax, eax
pop esi
pop ecx
ret
cmp dword [esi], edi
push ebx
push ebp
mov ebp, dword [esp + 0x18]
jbe 0x40a8e8
lea ebx, [esi + 4]
push ebp
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp dword [ebx], eax
je 0x40a916
mov eax, dword [esi]
inc edi
add ebx, 0x38
cmp edi, eax
jb 0x40a8d3
push esi
call fcn.0043eda7
lea eax, [ebp - 0x10]
add esp, 4
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a90b
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
pop ebx
pop edi
mov eax, 1
pop esi
pop ecx
ret
imul edi, edi, 0x38
lea eax, [edi + esi + 4]
push eax
call sub.iphlpapi.dll_DeleteIpForwardEntry
test eax, eax
je 0x40a8e8
lea eax, [ebp - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40a941
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
pop ecx
ret
Function at 0x40b210
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x484ad8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00406c50
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.004057a0
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x40b2a2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40db80
Capabilities:
Access peb ldr_data
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x484d10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
push ebp
push esi
push 0x4bb9a8
lea eax, [esp + 0x1c]
push str.Software_
push eax
call fcn.00406eb0
push 0x4944b0
push eax
lea ecx, [esp + 0x28]
push ecx
mov dword [esp + 0x48], 0
call fcn.00406df0
push 0x4bb9a8
push eax
lea edx, [esp + 0x30]
push edx
mov byte [esp + 0x54], 1
call fcn.0040b210
push 0x4944a4
push eax
lea eax, [esp + 0x38]
push eax
mov byte [esp + 0x60], 2
call fcn.00406df0
mov esi, dword [eax]
mov eax, dword [esp + 0x3c]
add eax, 0xfffffff0
or ebp, 0xffffffff
add esp, 0x30
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x30], 1
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc37
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov byte [esp + 0x30], 0
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc59
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov dword [esp + 0x30], ebp
lea ecx, [eax + 0xc]
mov edx, ebp
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40dc7a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
lea eax, [esp + 8]
push eax
push 0x20019
push 0
push esi
push SysFreeString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40dd2a
push edi
push 0x100
call fcn.0045d558
mov esi, eax
add esp, 4
xor eax, eax
mov ecx, 0x40
mov edi, esi
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x20]
push ecx
mov ecx, dword [esp + 0x10]
push esi
lea edx, [esp + 0x2c]
push edx
push eax
mov eax, dword [esp + 0x4c]
push eax
push ecx
mov dword [esp + 0x38], 0x100
mov dword [esp + 0x3c], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
pop edi
jne 0x40dd21
push esi
lea ecx, [esp + 0x28]
call fcn.0040d730
mov ecx, dword [esp + 0x3c]
push eax
mov dword [esp + 0x34], 3
call fcn.00406d40
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
mov dword [esp + 0x30], ebp
lea edx, [eax + 0xc]
lock xadd dword [edx], ebp
dec ebp
test ebp, ebp
jg 0x40dd21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push esi
call fcn.0045d55d
add esp, 4
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x28]
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x2c
ret
Function at 0x40dd50
Capabilities:
Create a process with modified i/o handles and window
Create pipe
Create process on windows
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x484d28
mov eax, dword fs:[0]
push eax
mov eax, 0x1070
mov dword fs:[0], esp
call fcn.0043e9c0
mov eax, dword [0x4ba8b4]
push ebx
xor ebx, ebx
push ebp
mov ebp, dword [esp + 0x1088]
mov dword [esp + 0x1074], eax
mov dword [esp + 0xc], ebx
push ebx
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x18]
push edx
mov dword [esp + 0x1090], ebx
mov dword [esp + 0x20], 0xc
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], 1
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
jne 0x40de00
push 0x492e6c
mov ecx, ebp
call fcn.00407060
mov eax, dword [esp + 0x108c]
add eax, 0xfffffff0
mov dword [esp + 0x1080], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40df21
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
jmp 0x40df21
push esi
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x28], 0x44
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov eax, dword [esp + 0xc]
mov esi, dword [esp + 0x1090]
mov dword [esp + 0x64], eax
mov dword [esp + 0x60], eax
mov word [esp + 0x54], bx
mov dword [esp + 0x50], 0x101
mov eax, dword [esi - 4]
mov ecx, 1
sub ecx, eax
mov eax, dword [esi - 8]
sub eax, 0xfff
or eax, ecx
jge 0x40de62
push 0xfff
lea ecx, [esp + 0x1094]
call fcn.00404140
mov esi, dword [esp + 0x1090]
lea ecx, [esp + 0x68]
push ecx
lea edx, [esp + 0x28]
push edx
push ebx
push ebx
push 0x20
push 1
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40dea9
push 0x492e6c
mov ecx, ebp
call fcn.00407060
lea eax, [esi - 0x10]
mov dword [esp + 0x1084], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jmp 0x40df16
mov eax, dword [esp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x7c]
rep stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
jmp 0x40ded0
mov eax, dword [esp + 0x14]
push ebx
lea ecx, [esp + 0x28]
push ecx
push 0xfff
lea edx, [esp + 0x88]
push edx
push eax
call edi
test eax, eax
jne 0x40ded0
lea ecx, [esp + 0x7c]
push ecx
mov ecx, ebp
call fcn.00407060
lea eax, [esi - 0x10]
mov dword [esp + 0x1088], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
pop edi
test ecx, ecx
jg 0x40df20
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
pop esi
mov ecx, dword [esp + 0x1078]
mov eax, ebp
pop ebp
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x1070]
pop ebx
call fcn.0043d9f4
add esp, 0x107c
ret
Function at 0x40e360
Capabilities:
Get local ipv4 addresses

Disassembly:
push 0xffffffffffffffff
push 0x484d70
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
xor ebx, ebx
push esi
mov dword [esp + 0x14], ebx
call fcn.0045d6c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0xc], eax
push 0x280
mov dword [esp + 0x24], ebx
call fcn.0043eebf
mov ebp, eax
add esp, 4
lea eax, [esp + 0x10]
push eax
push ebp
mov dword [esp + 0x18], 0x280
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
jne 0x40e3d4
push ebp
call fcn.0043eda7
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0043eebf
add esp, 8
mov ebp, eax
lea edx, [esp + 0x10]
push edx
push ebp
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, ebx
jne 0x40e50c
cmp ebp, ebx
push edi
mov edi, ebp
je 0x40e4d0
call fcn.0045d6c9
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x18], eax
lea ecx, [edi + 0x10c]
cmp ecx, ebx
mov byte [esp + 0x24], 1
jne 0x40e418
xor eax, eax
jmp 0x40e429
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x40e420
sub eax, esi
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.00406bb0
mov esi, dword [esp + 0x18]
cmp dword [esi - 0xc], ebx
jl 0x40e456
push str.TAP_Win
push esi
call fcn.0043e04d
add esp, 8
cmp eax, ebx
je 0x40e456
sub eax, esi
cmp eax, 0xffffffff
jne 0x40e480
mov edi, dword [edi]
lea eax, [esi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e476
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
cmp edi, ebx
jne 0x40e3f2
jmp 0x40e4d0
lea ecx, [esp + 0x10]
call fcn.004064d0
add edi, 0x1b0
push edi
lea eax, [esp + 0x14]
push 0x494f98
push eax
call fcn.00408290
add esp, 0xc
lea ecx, [esp + 0x10]
call fcn.0040b2c0
mov ecx, eax
call fcn.0040ad70
lea eax, [esi - 0x10]
mov byte [esp + 0x24], bl
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e4d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
push ebp
call fcn.0043eda7
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
push eax
call fcn.004057a0
mov esi, dword [esp + 0x34]
add eax, 0x10
mov dword [esi], eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
add esp, 8
mov dword [esp + 0x24], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
pop edi
jmp 0x40e536
mov esi, dword [esp + 0x28]
push 0x492e6c
mov ecx, esi
call fcn.00407060
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40e542
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret