joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408150
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags
Reference http user-agent string

Disassembly:
push 0xffffffffffffffff
push 0x4173a4
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.00415a80
lea ebp, [esi + 0xc]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.00415a80
lea ecx, [esi + 0x10]
mov byte [esp + 0x20], 1
call fcn.00415a80
lea ecx, [esi + 0x14]
mov byte [esp + 0x20], 2
call fcn.00415a80
lea ecx, [esi + 0x18]
mov byte [esp + 0x20], 3
call fcn.00415a80
lea ecx, [esi + 0x1c]
mov byte [esp + 0x20], 4
call fcn.00415a80
lea ecx, [esi + 0x20]
mov byte [esp + 0x20], 5
call fcn.00415a80
lea ecx, [esi + 0x24]
mov byte [esp + 0x20], 6
call fcn.00415a80
lea ecx, [esi + 0x358]
mov byte [esp + 0x20], 7
call fcn.00415a80
mov al, byte [esp + 0x13]
mov dword [esi + 0x368], edi
mov byte [esi + 0x364], al
mov dword [esi + 0x36c], edi
mov dword [esi + 0x370], edi
push 0x41ee18
mov ecx, ebx
mov byte [esp + 0x24], 9
mov dword [esi], 0x418c74
mov dword [esi + 0x350], edi
mov dword [esi + 0x34c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call sub.MFC42.DLL_CString::operator_1
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x24]
call sub.MFC42.DLL_CString::Empty
mov dword [esi + 0x398], edi
mov dword [esi + 0x3a0], edi
mov dword [esi + 0x388], edi
mov dword [esi + 0x39c], edi
mov dword [esi + 0x3a4], edi
mov dword [esi + 0x38c], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], edi
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x30], edi
mov dword [esi + 0x3a8], edi
mov dword [esi + 0x3ac], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x408e60
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x34c]
test eax, eax
jne 0x408e93
mov eax, dword [esi + 8]
push 0
push 0x41fbcc
push 0x41fbcc
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
jmp 0x408f21
cmp eax, 1
jne 0x408eb2
mov eax, dword [esi + 8]
push 0
push 0x41fbcc
push 0x41fbcc
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
jmp 0x408f21
mov eax, dword [esi + 0x248]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esi + 0x24c]
push eax
push edi
lea ecx, [esp + 0x18]
push 0x41ee6c
push ecx
call ebx
mov eax, dword [esi + 8]
mov ebp, dword [sym.imp.WININET.dll_InternetOpenA]
add esp, 0x10
lea edx, [esp + 0x10]
push 0
push 0x41fbcc
push edx
push 3
push eax
call ebp
test eax, eax
mov dword [esi + 0x3c], eax
jne 0x408f24
mov eax, dword [esi + 0x248]
lea ecx, [esp + 0x10]
push eax
push edi
push 0x41ee60
push ecx
call ebx
mov eax, dword [esi + 8]
add esp, 0x10
lea edx, [esp + 0x10]
push 0
push 0x41fbcc
push edx
push 3
push eax
call ebp
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x408f40
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
mov ecx, dword [esp + 0x418]
mov edx, dword [esp + 0x414]
push 0
push 0x400000
push 3
push 0
push 0
push ecx
push edx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, eax
test edx, edx
mov dword [esi + 0x40], edx
jne 0x408f89
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.00408de0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
mov eax, dword [esi + 0x350]
mov ebp, dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x408fc4
lea ebx, [esi + 0x48]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408fc4
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 0x2b
push edx
call ebp
test eax, eax
jne 0x408fc4
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x350]
test eax, eax
je 0x408fff
lea edx, [esi + 0x148]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x408fff
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov eax, dword [esi + 0x40]
not ecx
push ecx
push edx
push 0x2c
push eax
call ebp
test eax, eax
jne 0x408fff
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x409027
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.00408de0
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x400
ret 8
Function at 0x409680
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, ecx
push esi
push edi
mov eax, dword [ebp + 0x44]
test eax, eax
jne 0x40969a
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
mov edx, dword [esp + 0x14]
push ebx
mov ebx, dword [esp + 0x14]
mov ecx, edx
mov esi, ecx
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, esi
mov esi, dword [esp + 0x20]
and ecx, 3
rep stosb byte es:[edi], al
xor edi, edi
lea eax, [esp + 0x14]
mov dword [esi], edi
mov dword [esi + 4], edi
mov ecx, dword [ebp + 0x44]
push eax
push edx
push ebx
push ecx
mov dword [esp + 0x24], edi
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
pop ebx
jne 0x4096ea
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
xor eax, eax
pop ebp
ret 0x10
mov edx, dword [esp + 0x10]
mov eax, 1
mov dword [esi], edx
mov dword [esi + 4], edi
pop edi
pop esi
pop ebp
ret 0x10
Function at 0x409e40
Capabilities:
Access peb ldr_data
Get ntdll base address
Get process heap flags
Get process heap force flags
Reference http user-agent string

Disassembly:
push 0xffffffffffffffff
push 0x417502
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0x14], esi
lea ebx, [esi + 8]
mov ecx, ebx
call fcn.00415a80
lea ebp, [esi + 0xc]
xor edi, edi
mov ecx, ebp
mov dword [esp + 0x20], edi
call fcn.00415a80
lea ecx, [esi + 0x10]
mov byte [esp + 0x20], 1
call fcn.00415a80
lea ecx, [esi + 0x14]
mov byte [esp + 0x20], 2
call fcn.00415a80
lea ecx, [esi + 0x18]
mov byte [esp + 0x20], 3
call fcn.00415a80
lea ecx, [esi + 0x1c]
mov byte [esp + 0x20], 4
call fcn.00415a80
lea ecx, [esi + 0x20]
mov byte [esp + 0x20], 5
call fcn.00415a80
lea ecx, [esi + 0x24]
mov byte [esp + 0x20], 6
call fcn.00415a80
lea ecx, [esi + 0x358]
mov byte [esp + 0x20], 7
call fcn.00415a80
mov al, byte [esp + 0x13]
mov dword [esi + 0x368], edi
mov byte [esi + 0x364], al
mov dword [esi + 0x36c], edi
mov dword [esi + 0x370], edi
lea ecx, [esi + 0x39c]
mov byte [esp + 0x20], 9
call fcn.00415a80
push 0x41ee18
mov ecx, ebx
mov byte [esp + 0x24], 0xa
mov dword [esi], 0x418c90
mov dword [esi + 0x350], edi
mov dword [esi + 0x34c], edi
mov dword [esi + 0x44], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x3c], edi
call sub.MFC42.DLL_CString::operator_1
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x10]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x14]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x18]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x1c]
call sub.MFC42.DLL_CString::Empty
lea ecx, [esi + 0x20]
call sub.MFC42.DLL_CString::Empty
mov dword [esi + 0x3a0], edi
mov dword [esi + 0x388], edi
mov dword [esi + 0x3a4], edi
mov dword [esi + 0x3a8], edi
mov dword [esi + 0x38c], edi
mov ecx, dword [esp + 0x18]
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x3ac], edi
mov dword [esi + 0x3b0], edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x40a7a0
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
sub esp, 0x400
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x34c]
test eax, eax
jne 0x40a7d3
mov eax, dword [esi + 8]
push 0
push 0x41fbcc
push 0x41fbcc
push 1
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
jmp 0x40a865
cmp eax, 1
jne 0x40a7f2
mov eax, dword [esi + 8]
push 0
push 0x41fbcc
push 0x41fbcc
push 0
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
jmp 0x40a865
mov eax, dword [esi + 0x248]
mov ecx, dword [esi + 0x24]
mov ebx, dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esi + 0x24c]
push eax
push edi
push ecx
lea edx, [esp + 0x1c]
push 0x41efdc
push edx
call ebx
mov eax, dword [esi + 8]
mov ebp, dword [sym.imp.WININET.dll_InternetOpenA]
add esp, 0x14
lea ecx, [esp + 0x10]
push 0
push 0x41fbcc
push ecx
push 3
push eax
call ebp
test eax, eax
mov dword [esi + 0x3c], eax
jne 0x40a868
mov edx, dword [esi + 0x248]
lea eax, [esp + 0x10]
push edx
push edi
push 0x41ee60
push eax
call ebx
mov eax, dword [esi + 8]
add esp, 0x10
lea ecx, [esp + 0x10]
push 0
push 0x41fbcc
push ecx
push 3
push eax
call ebp
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x3c]
test eax, eax
jne 0x40a884
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
mov edx, dword [esp + 0x418]
mov ecx, dword [esp + 0x414]
push 0
push 0x400000
push 3
push 0
push 0
push edx
push ecx
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edx, eax
test edx, edx
mov dword [esi + 0x40], edx
jne 0x40a8cd
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.0040a980
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
mov eax, dword [esi + 0x350]
mov ebp, dword [sym.imp.WININET.dll_InternetSetOptionA]
test eax, eax
je 0x40a908
lea ebx, [esi + 0x48]
or ecx, 0xffffffff
mov edi, ebx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a908
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push ebx
push 0x2b
push edx
call ebp
test eax, eax
jne 0x40a908
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi + 0x350]
test eax, eax
je 0x40a943
lea edx, [esi + 0x148]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x40a943
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
push ecx
push edx
mov edx, dword [esi + 0x40]
push 0x2c
push edx
call ebp
test eax, eax
jne 0x40a943
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x40a96b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esi
call fcn.0040a980
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x400
ret 8
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x400
ret 8
Function at 0x40af80
Capabilities:
Read data from internet
Receive data

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x44]
test eax, eax
jne 0x40af96
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor eax, eax
pop esi
ret 0x10
mov edx, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0xc]
mov ecx, edx
push ebp
mov ebp, ecx
push edi
xor eax, eax
mov edi, ebx
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, ebp
mov ebp, 1
and ecx, 3
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x20]
xor eax, eax
mov dword [esp + 0x20], eax
mov dword [edi], eax
mov dword [edi + 4], eax
mov ecx, dword [esi + 0x44]
lea eax, [esp + 0x20]
push eax
push edx
push ebx
push ecx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
jne 0x40b027
xor ebp, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [esi + 0x398], 0xc8
jne 0x40b034
cmp eax, 0x2eff
jne 0x40b034
call sub.MFC42.DLL_AfxGetEmptyString
mov edx, dword [eax]
push ebx
lea ecx, [esp + 0x18]
mov dword [esp + 0x18], edx
call sub.MFC42.DLL_CString::operator_1
mov eax, dword [esp + 0x14]
mov ebp, 1
mov ecx, dword [eax - 8]
mov dword [esp + 0x20], ecx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::CString
mov edx, dword [esp + 0x20]
mov dword [edi], edx
mov dword [edi + 4], 0
mov eax, ebp
pop edi
pop ebp
pop ebx
pop esi
ret 0x10

Function at 0x40b4a0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov esi, ecx
call fcn.004090a0
mov ebp, dword [esp + 0x1c]
mov ecx, ebp
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x18]
lea ecx, [esi + 0x358]
push eax
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 0x10]
mov ebx, 1
push ecx
push 0
push esi
push 0x40b3d0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x40b502
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
xor ebx, ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, esi
call fcn.0040a980
mov ecx, esi
call fcn.00409040
test ebx, ebx
je 0x40b531
mov eax, dword [esi + 0x398]
cmp eax, 0xc8
je 0x40b531
cmp eax, 0xce
je 0x40b531
xor ebx, ebx
add esi, 0x39c
mov ecx, ebp
push esi
call sub.MFC42.DLL_CString::operator_2
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
pop ecx
ret 8
Function at 0x40b7f0
Capabilities:
Reference http user-agent string

Disassembly:
push 0xffffffffffffffff
push 0x41765b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x3cc
push ebx
push ebp
push esi
push edi
lea ecx, [esp + 0x24]
call fcn.00409e40
mov ebp, dword [esp + 0x3ec]
xor esi, esi
push ebp
lea ecx, [esp + 0x28]
mov dword [esp + 0x3e8], esi
call fcn.0040a0d0
mov eax, dword [esp + 0x3f8]
cmp eax, esi
je 0x40b84a
push eax
lea ecx, [esp + 0x3c4]
call sub.MFC42.DLL_CString::operator_1
push 0x41f134
push ebp
call dword [sym.imp.MSVCRT.dll__mbsstr]
add esp, 8
test eax, eax
je 0x40b86b
push 0x41f070
lea ecx, [esp + 0x30]
call sub.MFC42.DLL_CString::operator_1
mov edi, dword [esp + 0x3f4]
mov ebx, dword [esp + 0x3f0]
lea eax, [esp + 0x10]
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x24]
push ecx
lea eax, [esp + 0x24]
push edx
lea ecx, [esp + 0x24]
push eax
push ecx
push edi
push ebx
push 0x7530
push 1
push ebp
lea ecx, [esp + 0x4c]
call fcn.0040a410
test eax, eax
jne 0x40b8ea
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
inc esi
cmp esi, 2
jl 0x40b879
lea ecx, [esp + 0x24]
mov dword [esp + 0x3e4], 0xffffffff
call fcn.00409fb0
or eax, 0xffffffff
mov ecx, dword [esp + 0x3dc]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x3d8
ret
mov eax, dword [esp + 0x10]
mov edx, dword [esp + 0x400]
test eax, eax
mov dword [edx], eax
jbe 0x40b930
inc eax
push eax
call sub.MFC42.DLL_operatornew
mov edx, dword [esp + 0x400]
mov ecx, dword [esp + 0x14]
mov esi, dword [esp + 0x18]
mov edi, eax
mov dword [edx], eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [edx]
mov edx, dword [esp + 0x10]
mov byte [ecx + edx], 0
mov eax, dword [esp + 0x18]
push eax
call sub.MFC42.DLL_operatordelete
mov ecx, dword [esp + 0x18]
push ecx
call sub.MFC42.DLL_operatordelete
add esp, 8
lea ecx, [esp + 0x24]
mov dword [esp + 0x3e4], 0xffffffff
call fcn.00409fb0
xor eax, eax
jmp 0x40b8d1

Function at 0x40c450
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x417798
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push edi
mov edi, ecx
mov eax, dword [edi + 0x70]
test eax, eax
jne 0x40c4fa
push esi
lea ecx, [esp + 8]
call fcn.00415a80
push 0x104
push 0x104
lea ecx, [esp + 0x10]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::GetBuffer
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0xffffffffffffffff
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::ReleaseBuffer
push 0x41f13c
lea ecx, [esp + 0xc]
call fcn.00415e6a
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x40c4e1
push 0x6a
push esi
call dword [sym.imp.USER32.dll_LoadCursorA]
test eax, eax
je 0x40c4e1
push eax
call dword [sym.imp.USER32.dll_CopyIcon]
mov dword [edi + 0x70], eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea ecx, [esp + 8]
mov dword [esp + 0x14], 0xffffffff
call sub.MFC42.DLL_CString::CString
pop esi
mov ecx, dword [esp + 8]
pop edi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x40c510
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x40c572
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
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 eax, esi
pop esi
add esp, 0x10c
ret 0xc

Function at 0x40c780
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x208
mov eax, dword [esp + 0x20c]
push ebx
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
push ebp
push 0
push 0
push eax
push 0x41f47c
mov edi, ecx
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x40c872
lea ecx, [esp + 0x10]
push ecx
push 0x41f474
push 0x80000000
mov ecx, edi
call fcn.0040c510
test eax, eax
jne 0x40c872
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea edx, [esp + 0x10]
push 0x41f460
push edx
call ebx
lea eax, [esp + 0x10]
lea ecx, [esp + 0x10]
push eax
push ecx
push 0x80000000
mov ecx, edi
call fcn.0040c510
test eax, eax
jne 0x40c872
mov edi, dword [sym.imp.MSVCRT.dll__mbsstr]
lea edx, [esp + 0x10]
push 0x41f458
push edx
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c843
lea eax, [esp + 0x10]
push 0x41f454
push eax
call edi
mov esi, eax
add esp, 8
test esi, esi
jne 0x40c843
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0xf]
jmp 0x40c846
mov byte [esi], 0
push 0x41e1ec
push esi
call ebx
mov edx, dword [esp + 0x21c]
push edx
push esi
call ebx
lea eax, [esp + 0x10]
push ebp
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x208
ret 8
Function at 0x40c920
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x41f510
mov dword [esi], ebx
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
call ebp
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
cmp eax, ebx
mov dword [esi + 4], eax
je 0x40c977
push 0x41f4f4
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi + 4]
push 0x41f4e4
push eax
call edi
mov ecx, dword [esi + 4]
push 0x41f4d4
push ecx
mov dword [esi + 0xc], eax
call edi
mov dword [esi + 0x10], eax
cmp dword [esi + 8], ebx
je 0x40c986
cmp dword [esi + 0xc], ebx
je 0x40c986
cmp dword [esi + 0x10], ebx
jne 0x40c9cd
cmp dword [esi + 4], ebx
je 0x40c9cd
push 0x41f4c8
call ebp
cmp eax, ebx
mov dword [esi], eax
je 0x40c9cd
push 0x41f4ac
push eax
call edi
mov edx, dword [esi + 4]
push 0x41f49c
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push 0x41f490
push eax
call edi
mov ecx, dword [esi + 4]
push 0x41f484
push ecx
mov dword [esi + 0x1c], eax
call edi
mov dword [esi + 0x20], eax
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x40ca00
Capabilities:
Enumerate gui resources
Terminate process

Disassembly:
mov edx, dword [esp + 4]
lea eax, [esp + 4]
push esi
push eax
push edx
call fcn.0040caa0
mov esi, eax
test esi, esi
jne 0x40ca1c
mov al, 1
pop esi
ret 4
mov eax, dword [esp + 8]
push edi
push eax
push 0x40cd50
call dword [sym.imp.USER32.dll_EnumWindows]
push 0x1388
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x40ca5c
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, 1
pop edi
pop esi
sete al
ret 4
push esi
mov edi, 1
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp edi, edi
pop edi
pop esi
sete al
ret 4

Function at 0x40cd90
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
lea edx, [esp + 0x18]
rep stosd dword es:[edi], eax
mov word [esp + 0x48], ax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
lea ecx, [esp + 8]
mov dword [esp + 0x10], eax
push ecx
push edx
push eax
push eax
push eax
push eax
push eax
mov dword [esp + 0x30], eax
push eax
mov eax, dword [esp + 0x80]
mov dword [esp + 0x38], 0x44
push eax
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x40ce0f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret 4
mov eax, dword [esp + 8]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
pop edi
xor eax, eax
pop esi
add esp, 0x54
ret 4
Function at 0x40cf50
Capabilities:
Link many functions at runtime

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
mov esi, ecx
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor ebx, ebx
mov dword [esi + 4], eax
cmp eax, ebx
je 0x40cfdb
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x41f5d0
push eax
call edi
cmp eax, ebx
je 0x40cfed
push ebx
call eax
mov ecx, dword [esi + 4]
add esp, 4
push 0x41f5b4
push ecx
call edi
mov edx, dword [esi + 4]
push 0x41f594
push edx
mov dword [esi + 8], eax
call edi
mov dword [esi + 0xc], eax
mov eax, dword [esi + 4]
push 0x41f578
push eax
call edi
mov ecx, dword [esi + 4]
push 0x41f564
push ecx
mov dword [esi + 0x10], eax
call edi
mov edx, dword [esi + 4]
push 0x41f54c
push edx
mov dword [esi + 0x14], eax
call edi
mov dword [esi + 0x18], eax
mov eax, dword [esi + 4]
push 0x41f538
push eax
call edi
mov dword [esi + 0x1c], eax
pop edi
pop esi
pop ebx
ret 4
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
pop edi
pop esi
pop ebx
ret 4

Function at 0x40ebb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x417bf0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push esi
push edi
mov edi, ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CStringArray::CStringArray
mov esi, dword [esp + 0x34]
mov dword [esp + 0x28], 0
mov ecx, esi
call sub.MFC42.DLL_CString::Empty
mov eax, dword [esp + 0x30]
lea edx, [esp + 8]
push edx
lea edx, [esp + 0x10]
mov eax, dword [eax]
push edx
mov ecx, dword [eax - 8]
push ecx
push eax
mov ecx, edi
call fcn.0040edb0
test eax, eax
je 0x40ec58
lea eax, [esp + 0xc]
lea ecx, [esp + 0x34]
push eax
push ecx
mov ecx, edi
call fcn.0040efa0
push eax
mov ecx, esi
mov byte [esp + 0x2c], 1
call sub.MFC42.DLL_CString::operator_2
lea ecx, [esp + 0x34]
mov byte [esp + 0x28], 0
call sub.MFC42.DLL_CString::CString
mov edx, dword [esi]
mov eax, dword [edx - 8]
test eax, eax
je 0x40ec4d
mov eax, dword [edi + 0xc]
test eax, eax
je 0x40ec4d
push esi
call fcn.00415120
add esp, 4
push 0
push esi
call fcn.00415500
add esp, 8
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
call fcn.00415e88
mov ecx, dword [esp + 0x20]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x24
ret 8