joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402000
Capabilities:
Access peb ldr_data
Get process heap force flags

Disassembly:
mov eax, 0x423657
call fcn.00423508
sub esp, 0x10
push ebx
mov ebx, ecx
xor edx, edx
mov dword [ebp - 0x14], ebx
push esi
mov dword [ebp - 0x10], edx
lea esi, [ebx + 0x10]
mov dword [ebx], 0x430004
mov dword [esi], 0x430068
push edi
mov dword [ebx + 0x68], vtable.std::basic_ios_wchar_t__struct_std::char_traits_wchar_t__.0
mov dword [ebp - 4], edx
lea edi, [ebx + 0x18]
mov eax, dword [ebx]
mov dword [ebp - 0x10], 1
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_istream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
push ecx
push edi
lea eax, [ecx - 0x18]
mov dword [ecx + ebx - 4], eax
mov eax, dword [ebx]
mov dword [ebx + 8], edx
mov dword [ebx + 0xc], edx
mov ecx, dword [eax + 4]
add ecx, ebx
call fcn.004049ae
mov dword [ebp - 0x18], esi
mov eax, dword [esi]
mov eax, dword [eax + 4]
mov dword [esi + eax], vtable.std::basic_ostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [esi]
mov ecx, dword [eax + 4]
lea eax, [ecx - 8]
mov dword [ecx + esi - 4], eax
mov eax, dword [ebx]
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_iostream_wchar_t__struct_std::char_traits_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
lea eax, [ecx - 0x20]
mov dword [ecx + ebx - 4], eax
mov dword [ebp - 4], 5
mov eax, dword [ebx]
push 8
mov eax, dword [eax + 4]
mov dword [ebx + eax], vtable.std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov eax, dword [ebx]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x18], edi
lea eax, [ecx - 0x68]
mov dword [ecx + ebx - 4], eax
mov dword [edi], vtable.std::basic_streambuf_wchar_t__struct_std::char_traits_wchar_t__.0
call fcn.0040678a
pop ecx
mov esi, eax
push 1
mov byte [ebp - 4], 6
call fcn.00405792
mov dword [esi + 4], eax
xor edx, edx
lea eax, [edi + 4]
mov dword [edi + 0x34], esi
mov dword [edi + 0xc], eax
lea eax, [edi + 0x14]
mov dword [edi + 0x1c], eax
lea eax, [edi + 0x18]
mov dword [edi + 0x20], eax
lea eax, [edi + 0x24]
pop ecx
mov dword [edi + 0x2c], eax
lea ecx, [edi + 8]
lea eax, [edi + 0x28]
mov dword [edi + 0x10], ecx
mov dword [edi + 0x30], eax
mov dword [ecx], edx
mov eax, dword [edi + 0x20]
mov dword [eax], edx
mov eax, dword [edi + 0x30]
mov dword [eax], edx
mov eax, dword [edi + 0xc]
mov dword [eax], edx
mov eax, dword [edi + 0x1c]
mov dword [eax], edx
mov eax, dword [edi + 0x2c]
mov dword [eax], edx
mov ecx, dword [ebp - 0xc]
mov eax, ebx
mov dword [edi], vtable.std::basic_stringbuf_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__.0
mov dword [edi + 0x38], edx
mov dword [edi + 0x3c], edx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x423179
Capabilities:
Get common file path
Get uefi variable
Identify system language via api

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x442ef8
sub esp, 0x438
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x42318a
push ebx
sub ecx, edx
xor ebx, ebx
push esi
cmp ecx, 0x6817c
jne 0x4231ec
mov eax, dword [0x442ef0]
cmp eax, 0xcac
jne 0x4231d2
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreA]
lea eax, [ebp - 0x438]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesExA]
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_ReadConsoleInputA]
mov eax, dword [0x442ef0]
cmp eax, 0x95b
jne 0x4231e5
lea eax, [ebp - 4]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_IsProcessInJob]
push ebx
call fcn.00406a2d
pop ecx
mov esi, ebx
cmp dword [0x442ef0], 0x83c
jne 0x423202
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetMailslotInfo]
cmp esi, 0x2f0d9
jle 0x42323c
cmp dword [ebp - 0x18], 0x7758df14
je 0x42323c
cmp dword [ebp - 4], 0x8a5fd66
je 0x42323c
cmp dword [ebp - 0x14], 0x6b524f2
jne 0x423245
inc esi
cmp esi, 0x39aea2
jl 0x4231ee
mov eax, dword [0x442ef0]
mov esi, ebx
cmp esi, 0x202ef
cmove eax, dword [0x4338c0]
mov dword [0x442ef0], eax
cmp eax, 0x2e2
jne 0x423283
push ebx
lea eax, [ebp - 0x438]
push eax
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFirmwareEnvironmentVariableA]
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov eax, dword [0x442ef0]
inc esi
cmp esi, 0x2cb25f
jl 0x42324c
add eax, 0x620e5
push 0x42ff60
mov dword [0x442ef0], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x45f834], eax
mov esi, ebx
mov dword [0x45f838], 0x61636f4c
mov dword [0x45f83d], 0x6f6c6c41
mov byte [0x45f83c], 0x6c
mov word [0x45f841], 0x63
cmp esi, 0x50ff8
jne 0x4232e6
push dword [0x442ef0]
push ebx
call dword [sym.imp.KERNEL32.dll_LocalAlloc]
mov dword [0x45e004], eax
inc esi
cmp esi, 0x1ce062
jl 0x4232cc
mov edx, dword [0x442ef4]
mov eax, ebx
cmp eax, 0x3e214
cmove edx, dword [0x4338b4]
inc eax
cmp eax, 0x15a446
jl 0x4232f7
mov esi, ebx
mov dword [0x442ef4], edx
cmp dword [0x442ef0], ebx
jbe 0x42333e
push ecx
call fcn.00423393
mov cl, byte [eax + esi - 0x7b]
mov eax, dword [0x45e004]
mov byte [eax + esi], cl
inc esi
cmp esi, dword [0x442ef0]
jae 0x42333e
mov edx, dword [0x442ef4]
jmp 0x42331b
mov esi, ebx
cmp dword [0x442ef0], 0xf7d
jne 0x423352
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
cmp esi, 0x3a7e8
jne 0x42336a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x45f834], eax
cmp dword [0x442ef0], 0x120b
jne 0x423384
lea eax, [ebp - 0x438]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
inc esi
cmp esi, 0x21ce4e
jl 0x423340
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4233ec
Capabilities:
Create directory
Decrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x434
cmp dword [0x442ef0], 0x54a
push ebx
push esi
mov esi, ecx
push edi
mov edi, edx
mov dword [ebp - 0x14], esi
mov ebx, dword [esi]
jne 0x42342c
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetFileTime]
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_OpenJobObjectW]
cmp dword [0x442ef0], 0x1261
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
jne 0x423446
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
cmp dword [0x442ef0], 0x1239
jne 0x423469
xor eax, eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExA]
xor eax, eax
push eax
push eax
push eax
push eax
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov eax, dword [edi]
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 4]
mov dword [ebp - 0x18], eax
mov eax, dword [edi + 8]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0xc]
mov edi, 0xc6ef3720
push 0x20
mov dword [ebp - 0x28], eax
pop esi
mov ecx, ebx
shr ecx, 5
add ecx, eax
mov eax, ebx
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edi + ebx]
xor ecx, eax
sub edx, ecx
mov eax, edx
mov dword [ebp - 4], edx
shl eax, 4
add eax, dword [ebp - 0xc]
mov dword [ebp - 0x20], eax
mov eax, edx
shr eax, 5
cmp dword [0x442ef0], 0xb0b
mov dword [ebp - 0x10], eax
jne 0x4234dc
push 0
lea eax, [ebp - 0x430]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
add eax, dword [ebp - 0x18]
lea ecx, [edi + edx]
xor eax, ecx
add edi, 0x61c88647
xor eax, dword [ebp - 0x20]
sub ebx, eax
mov eax, dword [ebp - 0x28]
sub esi, 1
jne 0x42348b
mov esi, dword [ebp - 0x14]
pop edi
mov dword [esi], ebx
mov dword [esi + 4], edx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002d230
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
pushal
call 0x1002d23f
pop dword [ebp - 0x34]
mov eax, 0xbf8c2845
sub eax, 0xaf895606
sub dword [ebp - 0x34], eax
mov dword [ebp - 0x44], 0xd4d17c27
add dword [ebp - 0x44], 0x7980c924
mov dword [ebp - 0x40], 0x2fddad87
add dword [ebp - 0x40], 0x2559ebe
mov dword [ebp - 0x3c], 0x3645fde1
add dword [ebp - 0x3c], 0x1606464d
mov dword [ebp - 0x38], 0xdb99b6f3
add dword [ebp - 0x38], 0x2466490d
lea eax, [ebp - 0x44]
push eax
mov eax, 0x5bf1c9a3
add eax, 0xb412a725
add eax, dword [ebp - 0x34]
call dword [eax]
mov dword [ebp - 0x44], 0xdf3c1526
add dword [ebp - 0x44], 0x95365430
mov dword [ebp - 0x40], 0x3b06495c
sub dword [ebp - 0x40], 0xf999e7e7
mov dword [ebp - 0x3c], 0x8481b835
add dword [ebp - 0x3c], 0xdeedb437
mov dword [ebp - 0x38], 0x9c98d879
add dword [ebp - 0x38], 0x63672787
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 0x3da0a
push 0
call eax
mov ecx, 0x3f80b07c
add ecx, 0xc07f8462
mov ebx, eax
mov esi, 0x10063000
add esi, dword [ebp - 0x34]
mov edx, 0xc28ee803
sub edx, 0x2bfcb46c
add dword [ebp - 8], 0xdf3daabb
mov edi, dword [esi]
sub dword [ebp - 0x20], edx
xor edi, edx
xor dword [ebp - 0xc], esi
mov dword [ebx], edi
sub dword [ebp - 0x18], ebx
add ebx, 0x6c443178
sub ebx, 0x6c443174
add esi, 0x1c0d2815
sub esi, 0x1c0d2811
loop 0x1002d356
add eax, 0xb1bcab1f
add eax, 0x4e441b2c
xor ebx, ebx
add ebx, eax
add eax, 0x67496678
sub eax, 0x67496673
mov ecx, 0xe6258a66
sub ecx, 0xd6258a66
add ecx, dword [ebp - 0x34]
call ebx
leave
ret
Function at 0x419934c
Capabilities:
Create process on windows

Disassembly:
push ebx
push esi
add esp, 0xffffffa8
mov esi, edx
mov ebx, eax
mov dword [esp], 0xffffffff
lea eax, [esp + 4]
xor ecx, ecx
mov edx, 0x44
call sub.rtl60.bpl__System__FillChar_qqrpvic
mov dword [esp + 4], 0x44
mov dword [esp + 0x30], 1
mov word [esp + 0x34], si
lea eax, [esp + 0x48]
push eax
lea eax, [esp + 8]
push eax
push 0
push 0
push 0x20
push 0
push 0
push 0
mov eax, ebx
call sub.rtl60.bpl__System__LStrToPChar_qqrx17System_AnsiString
push eax
push 0
call sub.kernel32.dll_CreateProcessA
test eax, eax
je 0x41993f0
push 0xffffffffffffffff
mov eax, dword [esp + 0x4c]
push eax
call sub.user32.dll_WaitForInputIdle
push 0xffffffffffffffff
mov eax, dword [esp + 0x4c]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x41993dc
push esp
mov eax, dword [esp + 0x4c]
push eax
call sub.kernel32.dll_GetExitCodeProcess
test eax, eax
jne 0x41993dc
mov dword [esp], 0xffffffff
mov eax, dword [esp + 0x4c]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp + 0x48]
push eax
call sub.kernel32.dll_CloseHandle
mov eax, dword [esp]
add esp, 0x58
pop esi
pop ebx
ret
Function at 0x9c2058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.009c21a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, pe_nt_image_headers32
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x9c207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9c206a
add dl, dl
jne 0x9c2089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9c20dc
xor eax, eax
add dl, dl
jne 0x9c2096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x9c217d
add dl, dl
jne 0x9c20a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9c20b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9c20bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9c20c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x9c20d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x9c2075
mov eax, 1
add dl, dl
jne 0x9c20ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x9c20f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9c20e1
sub eax, ebx
mov ebx, 1
jne 0x9c2128
mov ecx, 1
add dl, dl
jne 0x9c210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9c2119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9c2105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9c2075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x9c213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x9c214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x9c2136
cmp eax, 0x7d00
jae 0x9c216d
cmp eax, 0x500
jb 0x9c2168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9c2075
cmp eax, 0x7f
ja 0x9c2170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x9c2075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x9c219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x9c2075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401e30
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [0x42d084]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x120], 0
mov dword [ebp - 0x11c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x124], 0
mov dword [ebp - 0x128], 0
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x12c], eax
lea ecx, [ebp - 0x11c]
push ecx
push 0xf003f
push 0
mov edx, dword [str.SoftwareXrplatform]
push edx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401f11
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ad38
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
mov ecx, dword [str.SoftwareXrplatform]
push ecx
push 0x42ad44
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
push 0x42ad60
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 1
call fcn.004150dc
jmp 0x402060
mov ecx, dword [ebp - 0x11c]
mov dword [ebp - 0x124], ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
mov ecx, dword [str.GuestsAndroidNetworkRedirect]
push ecx
mov edx, dword [ebp - 0x124]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x401fb6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ad88
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
push str.Cannot_create_redirect_subkey
mov ecx, dword [str.._Xrnetwk.log]
push ecx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 0x42adb4
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 1
call fcn.004150dc
jmp 0x402060
mov eax, dword [ebp - 4]
mov dword [ebp - 0x124], eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push str._s__d
lea eax, [ebp - 0x118]
push eax
call fcn.00402620
add esp, 0x10
push 4
lea ecx, [ebp - 0x12c]
push ecx
push 4
push 0
lea edx, [ebp - 0x118]
push edx
mov eax, dword [ebp - 0x124]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x402060
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ade4
mov ecx, dword [str.._Xrnetwk.log]
push ecx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
push str.Cannot_write_redirect_rule
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 0x42ae0c
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 1
call fcn.004150dc
cmp dword [ebp - 0x11c], 0
je 0x402076
mov ecx, dword [ebp - 0x11c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x402086
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004149ef
mov esp, ebp
pop ebp
ret
Function at 0x4020a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x1c], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [str.SoftwareXrplatform]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x40210c
lea edx, [ebp - 0x14]
push edx
lea eax, [ebp - 4]
push eax
push 0
push 0x20019
push 0
push 0
push 0
mov ecx, dword [str.Monitors]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x18], eax
jmp 0x402171
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ae34
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
mov ecx, dword [str.SoftwareXrplatform]
push ecx
push 0x42ae40
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
push 0x42ae5c
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 1
call fcn.004150dc
jmp 0x4021b0
cmp dword [ebp - 0x18], 0
jne 0x4021b0
mov dword [ebp - 0x10], 4
lea ecx, [ebp - 0x10]
push ecx
lea edx, [ebp - 8]
push edx
lea eax, [ebp - 0xc]
push eax
push 0
push str.Android
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4021b0
cmp dword [ebp - 0xc], 4
jne 0x4021b0
mov edx, dword [ebp - 8]
mov dword [ebp - 0x20], edx
cmp dword [ebp - 0x1c], 0
je 0x4021c0
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], 0
je 0x4021d0
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x42f668], 0
mov eax, dword [ebp - 0x20]
mov esp, ebp
pop ebp
ret
Function at 0x4021f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], 0
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
mov ecx, dword [str.SoftwareXrplatform]
push ecx
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402255
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0x14]
push eax
push 0
push 0x20019
push 0
push 0
push 0
mov ecx, dword [str.GuestsAndroidNetwork0]
push ecx
mov edx, dword [ebp - 0x1c]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov dword [ebp - 0x18], eax
jmp 0x4022ba
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x42ae8c
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
mov ecx, dword [str.SoftwareXrplatform]
push ecx
push 0x42ae98
mov edx, dword [str.._Xrnetwk.log]
push edx
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0x10
push 0x42aeb4
mov eax, dword [str.._Xrnetwk.log]
push eax
call fcn.004063b0
push eax
call fcn.00406470
add esp, 0xc
push 1
call fcn.004150dc
jmp 0x402304
cmp dword [ebp - 0x18], 0
jne 0x402304
mov dword [ebp - 0xc], 4
lea ecx, [ebp - 0xc]
push ecx
lea edx, [ebp - 4]
push edx
lea eax, [ebp - 8]
push eax
push 0
push str.AllowRemoteConnections
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x402304
cmp dword [ebp - 8], 4
jne 0x402304
xor edx, edx
cmp dword [ebp - 4], 0
setne dl
mov dword [0x42f668], edx
jmp 0x40232e
cmp dword [ebp - 0x1c], 0
je 0x402314
mov eax, dword [ebp - 0x1c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x14], 0
je 0x402324
mov ecx, dword [ebp - 0x14]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x42f668], 0
mov esp, ebp
pop ebp
ret
Function at 0x4034a0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [eax + 4], ecx
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
mov dword [edx + 8], eax
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x403511
mov ecx, dword [ebp - 4]
cmp dword [ecx + 8], 0
je 0x403511
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
push edx
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
test eax, eax
jne 0x4034fa
jmp 0x403511
mov eax, dword [ebp - 4]
add eax, 0xc
push eax
push 0x40
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x4072a0
Capabilities:
Get hostname
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x42d084]
xor eax, ebp
mov dword [ebp - 8], eax
push str.AIWAN_HOST_IPADDR
call fcn.00415dcf
add esp, 4
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4072e3
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WS2_32.dll_inet_addr]
mov dword [0x42f3e8], eax
cmp dword [0x42f3e8], 0xffffffff
je 0x4072e3
jmp 0x40732b
push 0x100
lea ecx, [ebp - 0x108]
push ecx
call dword [sym.imp.WS2_32.dll_gethostname]
test eax, eax
jge 0x4072fb
jmp 0x40732b
lea edx, [ebp - 0x108]
push edx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov dword [ebp - 0x10c], eax
cmp dword [ebp - 0x10c], 0
jne 0x407319
jmp 0x40732b
mov eax, dword [ebp - 0x10c]
mov ecx, dword [eax + 0xc]
mov edx, dword [ecx]
mov eax, dword [edx]
mov dword [0x42f3e8], eax
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.004149ef
mov esp, ebp
pop ebp
ret

Function at 0x407430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], 0
xor eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
push 0
push 0
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x4074b8
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x40748c
mov dword [ebp - 0x1c], 1
jmp 0x4074b8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
jne 0x4074b8
push 1
mov eax, dword [ebp + 0x14]
push eax
lea ecx, [ebp - 0x14]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
test eax, eax
je 0x4074b8
mov dword [ebp - 0x1c], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 4], 0
je 0x4074d1
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret