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

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40426a
cmp dword [ebp + 0x10], 1
je 0x404242
cmp dword [ebp + 0x10], 2
je 0x404242
push 0xd
pop eax
jmp 0x40426a
mov eax, dword [ebp - 4]
test edi, edi
je 0x404264
test eax, eax
je 0x40425f
test al, 1
jne 0x40423d
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x404264
jmp 0x40423d
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc

Function at 0x40459f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0xa0]
sub esp, 0x120
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0x9c], eax
cmp dword [0x40c278], 0
je 0x4045ca
mov eax, dword [0x40c274]
jmp 0x404626
push 0x11c
lea eax, [ebp - 0x80]
push 0
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
lea eax, [ebp - 0x80]
push eax
mov dword [ebp - 0x80], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
xor ecx, ecx
inc ecx
cmp dword [ebp - 0x70], 2
jne 0x404619
cmp dword [ebp - 0x7c], 6
jne 0x404619
cmp dword [ebp - 0x78], 0
jne 0x404619
cmp byte [ebp + 0x9a], cl
jne 0x404619
cmp word [ebp + 0x94], 0
jne 0x404619
mov eax, ecx
jmp 0x40461b
xor eax, eax
mov dword [0x40c274], eax
mov dword [0x40c278], ecx
mov ecx, dword [ebp + 0x9c]
xor ecx, ebp
call fcn.00406bd0
add ebp, 0xa0
leave
ret

Function at 0x4047ac
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edi, 0x104
push edi
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x404842
cmp eax, edi
ja 0x404842
xor eax, eax
push esi
push eax
mov word [ebp - 0x414], ax
lea eax, [ebp - 0x412]
push eax
call sub.MSVCR100.dll_memset
push ebx
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x414]
push 0x409b2c
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x1c
lea eax, [ebp - 0x414]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x404844
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bd0
leave
ret
Function at 0x4049d1
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push esi
push edi
push 0x44
xor esi, esi
lea eax, [ebp - 0x58]
push esi
push eax
call sub.MSVCR100.dll_memset
xor eax, eax
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
xor eax, eax
add esp, 0xc
mov word [ebp - 0x28], ax
lea eax, [ebp - 4]
xor edi, edi
push eax
inc edi
push 0x2000000
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x404a4a
cmp dword [ebp + 8], esi
je 0x404a4a
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push esi
push esi
push 0x8000008
push esi
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_CreateProcessAsUserW]
cmp eax, esi
jne 0x404a4e
xor eax, eax
jmp 0x404a6c
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
mov eax, edi
pop edi
pop esi
leave
ret

Function at 0x404c7c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0xf8c]
mov eax, 0x100c
call fcn.00406cb0
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0xf88], eax
push esi
mov esi, dword [ebp + 0xf9c]
push edi
mov edi, dword [ebp + 0xf94]
xor eax, eax
push 0x7fe
push eax
mov word [ebp + 0x788], ax
lea eax, [ebp + 0x78a]
push eax
call sub.MSVCR100.dll_memset
push edi
push str.SOFTWAREClassesCLSID_sInprocServer32
lea eax, [ebp + 0x788]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x1c
lea eax, [ebp - 0x7c]
push eax
push 0x20019
neg esi
push 0
lea eax, [ebp + 0x788]
sbb esi, esi
push eax
add esi, reloc.OLEAUT32.dll_SysReAllocString
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
pop edi
pop esi
test eax, eax
je 0x404d12
xor ecx, ecx
cmp eax, 2
sete cl
jmp 0x404d81
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x78]
push eax
push 0x409e94
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x800
call dword [sym.imp.ADVAPI32.dll_RegQueryValueW]
push dword [ebp - 0x7c]
test eax, eax
je 0x404d40
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x404d83
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [ebp + 0xf98]
lea ecx, [ebp - 0x78]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404d75
test dx, dx
je 0x404d71
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404d75
add eax, 4
add ecx, 4
test dx, dx
jne 0x404d4f
xor eax, eax
jmp 0x404d7a
sbb eax, eax
sbb eax, 0xffffffff
xor ecx, ecx
test eax, eax
setne cl
mov eax, ecx
mov ecx, dword [ebp + 0xf88]
xor ecx, ebp
call fcn.00406bd0
add ebp, 0xf8c
leave
ret
Function at 0x404f97
Capabilities:
Query environment variable

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
je 0x404fb8
push dword [esp + 0xc]
push dword [esp + 0xc]
push 0x409fac
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x404fb8
inc esi
mov eax, esi
pop esi
ret

Function at 0x405ef1
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x208
lea ebp, [esp - 4]
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp + 0x208], eax
push 0x10
mov eax, 0x407d39
call fcn.00406bdf
push 0x40a044
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.MSVCR100.dll__wdupenv_s]
add esp, 0xc
test eax, eax
jne 0x405fcf
push dword [ebp - 0x18]
call dword [sym.imp.MSVCR100.dll_free]
cmp dword [0x40c258], 0
pop ecx
je 0x405f4e
xor eax, eax
inc eax
jmp 0x405fd1
lea eax, [ebp]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
cmp eax, esi
ja 0x405fcf
test eax, eax
je 0x405fcf
lea eax, [ebp]
push eax
lea ecx, [ebp - 0x10]
call fcn.00401fcd
and dword [ebp - 4], 0
push str.JavaDeployReg.log
lea ecx, [ebp - 0x14]
call fcn.00401fcd
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.00404161
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x405f9f
call fcn.004039c2
mov esi, dword [ebp - 0x10]
test esi, esi
je 0x405faa
mov eax, dword [esi]
jmp 0x405fac
xor eax, eax
push 0x40a0f0
push eax
push 0x40c258
call dword [sym.imp.MSVCR100.dll__wfopen_s]
add esp, 0xc
test eax, eax
je 0x405ff4
test esi, esi
je 0x405fcf
mov ecx, esi
call fcn.004039c2
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x208]
xor ecx, ebp
call fcn.00406bd0
add ebp, 0x20c
leave
ret
test esi, esi
je 0x405f46
mov ecx, esi
call fcn.004039c2
jmp 0x405f46
Function at 0x4062a5
Capabilities:
Get common file path

Disassembly:
push 0x14
mov eax, 0x407d61
call fcn.00406c12
mov esi, dword [ebp + 8]
xor eax, eax
xor edi, edi
xor ebx, ebx
mov word [esi], ax
mov dword [ebp - 4], edi
call fcn.0040469c
test eax, eax
je 0x4062d0
call fcn.00406296
mov ebx, eax
push 0x104
push esi
push ebx
push edi
push 0x4089bc
call dword [sym.imp.SHELL32.dll_SHGetFolderPathEx]
mov esi, eax
cmp esi, edi
jge 0x40632b
push esi
push str.Error:_08x_in_SHGetFolderPathEx_FOLDERID_LocalAppDataLow__0__hToken__pPath__MAX_PATH_
call fcn.0040698a
pop ecx
pop ecx
push edi
push esi
call fcn.004077b0
mov ecx, dword [ebp - 0x18]
mov esi, dword [ecx + 4]
mov dword [ebp - 0x14], esi
call fcn.0040669a
push eax
push esi
push 0x40902c
call fcn.0040698a
or dword [ebp - 4], 0xffffffff
add esp, 0xc
mov eax, 0x406324
ret
cmp ebx, edi
je 0x406336
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x4063e7
push dword [ebp + 8]
mov dword [ebp - 4], 2
push edi
push edi
push 0x1a
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x406393
push esi
push str.Error:_08x_in_SHGetFolderPathW_NULL__CSIDL_APPDATA__NULL__0__pPath_
jmp 0x4062ef
or dword [ebp - 4], 0xffffffff
cmp esi, edi
jge 0x4063e7
push 1
push 0x1a
push dword [ebp + 8]
mov dword [ebp - 4], 4
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov esi, eax
cmp esi, edi
jge 0x4063e7
push esi
push str.Error:_08x_in_SHGetSpecialFolderPathW_NULL__pPath__CSIDL_APPDATA__TRUE_
jmp 0x4062ef
mov eax, esi
call fcn.00406c7e
ret
Function at 0x4067c6
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1044
call fcn.00406cb0
mov eax, dword [0x40c148]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
mov esi, 0x7fe
push esi
push eax
mov word [ebp - 0x1044], ax
lea eax, [ebp - 0x1042]
push eax
call sub.MSVCR100.dll_memset
push ebx
push edi
push 0xffffffffffffffff
lea eax, [ebp - 0x1044]
push 0x400
push eax
call dword [sym.imp.MSVCR100.dll__vsnwprintf_s]
add esp, 0x20
test eax, eax
jns 0x406828
xor eax, eax
mov word [ebp - 0x846], ax
xor eax, eax
push 0x3e
push eax
mov word [ebp - 0x44], ax
lea eax, [ebp - 0x42]
push eax
call sub.MSVCR100.dll_memset
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.00406744
push 0x40a350
lea eax, [ebp - 0x44]
push 0x20
push eax
call dword [sym.imp.MSVCR100.dll_wcscat_s]
xor eax, eax
push esi
push eax
mov word [ebp - 0x844], ax
lea eax, [ebp - 0x842]
push eax
call sub.MSVCR100.dll_memset
add esp, 0x2c
mov eax, edi
push 2
lea edx, [eax + 2]
pop ebx
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x406878
sub eax, edx
sar eax, 1
cmp eax, 6
jbe 0x4068c8
mov ecx, 0x40a354
lea eax, [edi + eax*2 - 0xc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4068ba
test dx, dx
je 0x4068b6
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4068ba
add eax, 4
add ecx, 4
test dx, dx
jne 0x406894
xor eax, eax
jmp 0x4068bf
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4068c8
xor esi, esi
inc esi
jmp 0x4068ca
xor esi, esi
lea eax, [ebp - 0x44]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, ebx
test cx, cx
jne 0x4068d0
sub eax, edx
sar eax, 1
mov edi, eax
mov eax, str.Error:
test esi, esi
jne 0x4068ee
mov eax, 0x40a374
lea ecx, [ebp - 0x1044]
push ecx
push eax
lea esi, [edi + edi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.P:_04d_T:_04d__s_s
mov eax, 0x3ff
sub eax, edi
push 0xffffffffffffffff
push eax
lea eax, [ebp + esi - 0x844]
push eax
call dword [sym.imp.MSVCR100.dll__snwprintf_s]
add esp, 0x20
test eax, eax
jns 0x406940
xor eax, eax
movzx ecx, word [eax + 0x40a3a0]
mov word [ebp + eax - 0x4e], cx
add eax, ebx
test cx, cx
jne 0x40692d
push esi
lea eax, [ebp - 0x44]
push eax
lea eax, [ebp - 0x844]
push eax
call sub.MSVCR100.dll_memcpy
lea edi, [ebp - 0x844]
add esp, 0xc
sub edi, 2
mov ax, word [edi + 2]
add edi, ebx
test ax, ax
jne 0x40695d
lea eax, [ebp - 0x844]
mov esi, 0x40a3a8
push eax
movsd dword es:[edi], dword [esi]
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00406bd0
leave
ret

Function at 0x406bd0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40c148]
jne 0x406bda
repz ret
jmp fcn.0040711e
Function at 0x401cd0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_strlen]
mov ebx, eax
xor eax, eax
test ebx, ebx
je 0x401d28
cmp byte [esi + ebx - 1], 0xa
je 0x401cfc
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x24]
xchg dword [0x4030d8], eax
mov dword [esp], 2
call dword [sym.imp.ucrtbase.dll___acrt_iob_func]
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], esi
call dword [sym.imp.ucrtbase.dll_fwrite]
add esp, 0x10
pop ebx
pop esi
pop ebp
ret

Function at 0x401ed0
Capabilities:
Accept command line arguments
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x58
call dword [sym.imp.kernel32.dll_GetCommandLineW]
mov ebx, eax
movzx eax, word [eax]
test ax, ax
je 0x401f5b
cmp ax, 9
je 0x401f48
cmp ax, 0x20
je 0x401f48
mov dword [ebp - 0x54], 0
xor edi, edi
nop
cmp ax, 0x5c
je 0x401fb0
cmp ax, 0x22
je 0x401fc0
mov dword [ebp - 0x54], 0
movzx eax, word [ebx + 2]
add ebx, 2
test ax, ax
je 0x401f5b
cmp ax, 9
sete cl
cmp ax, 0x20
mov esi, ecx
sete cl
mov edx, esi
or dl, cl
je 0x401f00
test edi, 1
jne 0x401f00
lea esi, [esi]
movzx eax, word [ebx + 2]
add ebx, 2
cmp ax, 9
je 0x401f48
cmp ax, 0x20
je 0x401f48
lea eax, [ebp - 0x50]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetStartupInfoW]
sub esp, 4
test byte [ebp - 0x24], 1
je 0x401fd8
movzx esi, word [ebp - 0x20]
mov dword [esp], 0
call dword [sym.imp.kernel32.dll_GetModuleHandleW]
sub esp, 4
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], eax
call sym._wWinMain_16
sub esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
inc dword [ebp - 0x54]
jmp 0x401f1b
and dword [ebp - 0x54], 1
jne 0x401f14
xor edi, 1
jmp 0x401f1b
mov eax, 1
mov esi, 1
mov word [ebp - 0x20], ax
jmp 0x401f74

Function at 0x401ff0
Capabilities:
Get process heap flags
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov dword [esp], 1
call sym.__configure_wide_argv
call sym.__initialize_wide_environment
call sym.___p___argc
mov esi, dword [eax]
call sym.___p___wargv
mov edi, dword [eax]
call sym.__get_initial_wide_environment
mov ebx, eax
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 8]
mov edx, dword [eax + 0x3c]
cmp word [eax + edx + 0x5c], 2
sete al
movzx eax, al
inc eax
mov dword [esp], eax
call sym.__set_app_type
mov dword [esp + 8], ebx
mov dword [esp + 4], edi
mov dword [esp], esi
call sym._wmain
mov dword [esp], eax
call sym._exit
nop
nop
nop
nop
nop
Function at 0x4017c0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x318]
push esi
push edi
push eax
push 0x20019
push 0
push str.SYSTEMCurrentControlSetEnumUSB
push 0x80000002
call ebx
test eax, eax
jne 0x401958
push 0x104
push eax
lea eax, [ebp - 0x310]
push eax
call fcn.004050d0
add esp, 0xc
mov dword [ebp - 0x320], 0x104
lea eax, [ebp - 0x344]
mov dword [ebp - 0x314], 0
push eax
lea eax, [ebp - 0x328]
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x310]
push eax
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x314]
test eax, eax
je 0x401947
xor edi, edi
test eax, eax
je 0x401947
nop dword [eax]
nop word [eax + eax]
lea eax, [ebp - 0x344]
mov dword [ebp - 0x324], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x324]
push eax
lea eax, [ebp - 0x208]
push eax
push edi
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
jne 0x40193a
lea eax, [ebp - 0x208]
push eax
push str.SYSTEMCurrentControlSetEnumUSB
lea eax, [ebp - 0x108]
push str._s_s
push eax
call fcn.00401050
add esp, 0x10
lea eax, [ebp - 0x31c]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call ebx
test eax, eax
jne 0x40193a
mov ecx, dword [ebp - 0x31c]
lea edx, [ebp - 0x108]
call fcn.00401970
push dword [ebp - 0x31c]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, 1
je 0x401958
inc edi
cmp edi, dword [ebp - 0x314]
jb 0x4018a0
push dword [ebp - 0x318]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call fcn.00402450
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040bd
mov esp, ebp
pop ebp
ret
Function at 0x401970
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34c
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x104
lea eax, [ebp - 0x310]
mov dword [ebp - 0x324], edx
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x328], edi
call fcn.004050d0
add esp, 0xc
mov dword [ebp - 0x31c], 0x104
lea eax, [ebp - 0x348]
mov dword [ebp - 0x314], 0
push eax
lea eax, [ebp - 0x32c]
push eax
lea eax, [ebp - 0x330]
push eax
lea eax, [ebp - 0x334]
push eax
lea eax, [ebp - 0x338]
push eax
lea eax, [ebp - 0x33c]
push eax
lea eax, [ebp - 0x340]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
lea eax, [ebp - 0x31c]
push eax
lea eax, [ebp - 0x310]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyA]
mov eax, dword [ebp - 0x314]
test eax, eax
je 0x401ad3
xor esi, esi
test eax, eax
je 0x401ad3
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
nop dword [eax + eax]
lea eax, [ebp - 0x348]
mov dword [ebp - 0x320], 0xff
push eax
push 0
push 0
push 0
lea eax, [ebp - 0x320]
push eax
lea eax, [ebp - 0x108]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x401ac6
lea eax, [ebp - 0x108]
push eax
push dword [ebp - 0x324]
lea eax, [ebp - 0x208]
push str._s_s
push eax
call fcn.00401050
add esp, 0x10
lea eax, [ebp - 0x318]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x208]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ac6
mov ecx, dword [ebp - 0x318]
call fcn.00401b00
push dword [ebp - 0x318]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp edi, 1
je 0x401ae6
mov edi, dword [ebp - 0x328]
inc esi
cmp esi, dword [ebp - 0x314]
jb 0x401a30
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004040bd
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040bd
mov esp, ebp
pop ebp
ret
Function at 0x402450
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x4114
call fcn.00414350
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [ebp - 0x4108]
push esi
push edi
mov edi, 0x3c
mov esi, 0x57fdc4
sub edi, eax
cmp byte [esi], 0
je 0x40254d
push esi
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318
lea eax, [ebp - 0x108]
push str._s_sConnection
push eax
call fcn.00401050
add esp, 0x10
lea eax, [ebp - 0x4110]
push eax
push 0x20019
push 0
lea eax, [ebp - 0x108]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40254d
mov byte [ebp - 0x4108], al
lea eax, [ebp - 0x410c]
push eax
lea eax, [ebp - 0x4108]
mov dword [ebp - 0x410c], 0x3fff
push eax
push 0
push 0
push str.Name
push dword [ebp - 0x4110]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402531
mov eax, dword [ebp - 0x410c]
cmp eax, 0x3fff
jae 0x402570
mov byte [ebp + eax - 0x4108], 0
lea edx, [edi + esi]
lea eax, [ebp - 0x4108]
mov cl, byte [eax]
lea eax, [eax + 1]
mov byte [edx + eax - 1], cl
test cl, cl
jne 0x402522
jmp 0x402545
lea eax, [ebp - 0x108]
push eax
push str.GetInterfaceNames:_error_for___s__n
call fcn.00404060
add esp, 8
push dword [ebp - 0x4110]
call ebx
add esi, 0x384
cmp esi, 0x6df6c4
jl 0x402482
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004040bd
mov esp, ebp
pop ebp
ret
call fcn.004041f1
int3
Function at 0x402a30
Capabilities:
Create service
Persist via windows service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x110
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Qualcomm_MTU_Service
push str.Installing:__s_n
call fcn.00404060
add esp, 8
push 2
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x402b50
push 0x105
lea eax, [ebp - 0x110]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov esi, eax
lea eax, [ebp - 0x110]
push eax
push str.Installing_Module_Path:___s__n
call fcn.00404060
lea eax, [esi - 1]
add esp, 8
mov esi, dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp eax, 0x103
ja 0x402b30
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x110]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push str.Qualcomm_MTU_Service
push 0x41c41c
push edi
call dword [sym.imp.ADVAPI32.dll_CreateServiceA]
test eax, eax
je 0x402b04
push eax
call esi
push str.Qualcomm_MTU_Service
push str.Installed:__s_n
call fcn.00404060
add esp, 8
push edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004040bd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Qualcomm_MTU_Service
push str.CreateService_failure:___s__error__d_n
call fcn.00404060
add esp, 0xc
push edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004040bd
mov esp, ebp
pop ebp
ret
push str.Error:_failed_to_obtain_service_path._n
call fcn.00404060
add esp, 4
push edi
call esi
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004040bd
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.Qualcomm_MTU_Service
push str.OpenSCManager_failure:___s__error__d_n
call fcn.00404060
mov ecx, dword [ebp - 4]
add esp, 0xc
xor ecx, ebp
pop edi
pop esi
call fcn.004040bd
mov esp, ebp
pop ebp
ret

Function at 0x402b80
Capabilities:
Delete service
Query service status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x41f004]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push str.Qualcomm_MTU_Service
push str.Uninstalling:__s_n
call fcn.00404060
add esp, 8
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov edi, eax
test edi, edi
je 0x402c09
push 0x10004
push 0x41c41c
push edi
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
je 0x402c02
lea eax, [ebp - 0x20]
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x402bfb
cmp dword [ebp - 0x1c], 1
jne 0x402bfb
push esi
call dword [sym.imp.ADVAPI32.dll_DeleteService]
push str.Qualcomm_MTU_Service
push str.Uninstalled:__s_n
call fcn.00404060
add esp, 8
push esi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004040bd
mov esp, ebp
pop ebp
ret