joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005c90
Capabilities:
Find taskbar

Disassembly:
call fcn.10002320
mov ecx, eax
jmp 0x10005c90
sub esp, 0x20c
mov eax, dword [0x1003c360]
xor eax, esp
mov dword [esp + 0x208], eax
push ebp
push edi
push 0x206
lea eax, [esp + 0xe]
push 0
push eax
mov ebp, ecx
mov word [esp + 0x14], 0
call fcn.10013e10
mov eax, dword [ebp + 0x78]
add esp, 0xc
test eax, eax
je 0x10005cd1
push eax
call dword [sym.imp.GDI32.dll_DeleteObject]
push 0x100301e4
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0x190
push 0
push 0
push 0
push 0xc
call dword [sym.imp.GDI32.dll_CreateFontW]
push 0
push str.Shell_TrayWnd
mov dword [ebp + 0x78], eax
call dword [sym.imp.USER32.dll_FindWindowW]
mov edi, eax
test edi, edi
je 0x10005e33
push esi
push 0
push edi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
mov esi, eax
test esi, esi
je 0x10005e32
call fcn.1000b1ef
mov eax, dword [eax + 8]
push esi
push eax
push 0x10005c40
push 4
call dword [sym.imp.USER32.dll_SetWindowsHookExW]
test eax, eax
mov dword [ebp + 4], eax
je 0x10005e32
push ebx
push str.CHookManager::InstallHook
call fcn.100062d0
mov ebx, dword [sym.imp.USER32.dll_GetWindow]
add esp, 4
push 5
push edi
call ebx
mov esi, eax
test esi, esi
je 0x10005e31
mov edi, dword [sym.imp.USER32.dll_GetClassNameW]
push 0x104
lea ecx, [esp + 0x14]
push ecx
push esi
call edi
mov ecx, str.TrayNotifyWnd
lea eax, [esp + 0x10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10005dae
test dx, dx
je 0x10005daa
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10005dae
add eax, 4
add ecx, 4
test dx, dx
jne 0x10005d88
xor eax, eax
jmp 0x10005db3
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10005dc4
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x10005d72
jmp 0x10005e31
push 5
push esi
call ebx
mov esi, eax
test esi, esi
je 0x10005e31
nop
push 0x104
lea edx, [esp + 0x14]
push edx
push esi
call edi
mov ecx, str.TrayClockWClass
lea eax, [esp + 0x10]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10005e0c
test dx, dx
je 0x10005e08
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10005e0c
add eax, 4
add ecx, 4
test dx, dx
jne 0x10005de6
xor eax, eax
jmp 0x10005e11
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x10005e22
push 2
push esi
call ebx
mov esi, eax
test esi, esi
jne 0x10005dd0
jmp 0x10005e31
mov eax, dword [ebp + 4]
push eax
push 0
push 0
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
pop ebx
pop esi
mov ecx, dword [esp + 0x210]
pop edi
pop ebp
xor ecx, esp
call fcn.100131c3
add esp, 0x20c
ret
Function at 0x10005ef0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x10030330
push eax
push edi
mov ebp, ecx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x10005f25
push str.hResNULL
call fcn.100062d0
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push edi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
push edi
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push edi
push ebx
push eax
call fcn.10013e90
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
lea ecx, [esp + 0x14]
push ecx
push 1
push esi
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
mov ebx, dword [esp + 0x14]
push 0x10
call sub.gdiplus.dll_GdipAlloc
mov esi, eax
test esi, esi
je 0x10005fec
lea edi, [esi + 4]
push edi
push ebx
mov dword [esi], vtable.Gdiplus::Image.0
mov dword [edi], 0
call sub.gdiplus.dll_GdipLoadImageFromStream
lea edx, [esp + 0x18]
mov dword [esi + 8], eax
mov eax, dword [edi]
push edx
xor ebx, ebx
push eax
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageWidth
cmp eax, ebx
je 0x10005fb7
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0x18]
mov dword [ebp + 0x40], ecx
mov eax, dword [edi]
push edx
push eax
mov dword [esp + 0x20], ebx
call sub.gdiplus.dll_GdipGetImageHeight
cmp eax, ebx
je 0x10005fd6
mov dword [esi + 8], eax
mov ecx, dword [esp + 0x18]
pop ebx
pop edi
mov dword [ebp + 4], esi
pop esi
mov dword [ebp + 0x44], ecx
mov eax, 1
pop ebp
ret 8
push str.Image::FromStream_pStream__FALSE__
call fcn.100062d0
add esp, 4
pop ebx
pop edi
pop esi
xor eax, eax
pop ebp
ret 8
Function at 0x100062d0
Capabilities:
Check if file exists
Write file on windows

Disassembly:
sub esp, 0xc14
mov eax, dword [0x1003c360]
xor eax, esp
mov dword [esp + 0xc10], eax
push ebx
push esi
xor ebx, ebx
push 0x206
lea eax, [esp + 0x21e]
push ebx
push eax
mov word [esp + 0x224], bx
call fcn.10013e10
add esp, 0xc
xor eax, eax
jmp 0x10006310
movzx ecx, word [eax + str.C:log_]
mov word [esp + eax + 0x218], cx
add eax, 2
cmp cx, bx
jne 0x10006310
push 0x3e6
lea ecx, [esp + 0x836]
push ebx
push ecx
mov word [esp + 0x83c], bx
call fcn.10013e10
lea edx, [esp + 0x224]
push edx
lea eax, [esp + 0x430]
push 0x1002fff0
push eax
call fcn.10013bcc
push 0x206
lea ecx, [esp + 0x646]
push ebx
push ecx
mov word [esp + 0x64c], bx
call fcn.10013e10
push 0x206
lea edx, [esp + 0x3a]
push ebx
push edx
mov word [esp + 0x40], bx
call fcn.10013e10
add esp, 0x30
push 0x104
lea eax, [esp + 0x14]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea ecx, [esp + 0x10]
push 0x5c
push ecx
call fcn.10013dd3
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 8
lea edx, [esp + 0x420]
push edx
mov word [eax], bx
call esi
test eax, eax
je 0x1000650a
lea eax, [esp + 0x10]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100063d1
sub eax, edx
sar eax, 1
lea eax, [esp + eax*2 + 0x12]
lea edx, [esp + 0x628]
sub edx, eax
lea ecx, [ecx]
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
cmp cx, bx
jne 0x100063f0
push edi
lea eax, [esp + 0x62c]
push eax
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x42c]
push str._s_s.txt
push edx
call fcn.10013bcc
mov ecx, dword [esp + 0xc34]
lea eax, [esp + 0xc38]
push eax
push ecx
lea edx, [esp + 0x84c]
push 0x1f3
push edx
call fcn.10014b33
add esp, 0x20
lea eax, [esp + 0x424]
push eax
mov word [esp + 0xc1e], bx
xor edi, edi
call esi
test eax, eax
je 0x10006464
mov edi, 1
lea ecx, [esp + 0x424]
push 0x100303b0
push ecx
call fcn.10014a4e
mov esi, eax
add esp, 8
cmp esi, ebx
je 0x10006509
cmp edi, ebx
jne 0x100064a1
push esi
push 2
lea edx, [esp + 0x18]
push 1
push edx
mov dword [esp + 0x20], 0xfeff
call fcn.10014906
add esp, 0x10
lea eax, [esp + 0x834]
lea edx, [eax + 2]
jmp 0x100064b0
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x100064b0
sub eax, edx
sar eax, 1
push esi
add eax, eax
push eax
lea ecx, [esp + 0x83c]
push 1
push ecx
call fcn.10014906
push esi
push 2
lea edx, [esp + 0x24]
push 1
push edx
mov dword [esp + 0x2c], 0xd
call fcn.10014906
push esi
push 2
lea eax, [esp + 0x34]
push 1
push eax
mov dword [esp + 0x3c], 0xa
call fcn.10014906
push esi
call fcn.1001472b
add esp, 0x34
pop edi
mov ecx, dword [esp + 0xc18]
pop esi
pop ebx
xor ecx, esp
call fcn.100131c3
add esp, 0xc14
ret
Function at 0x10008afe
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x1003c360]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0x800
push ebx
push esi
mov esi, ecx
mov ebx, edx
lea eax, [ebp - 0xc]
jne 0x10008b3b
push 0x10030910
push 4
push eax
call fcn.10015a03
push eax
call fcn.10001040
add esp, 0x10
jmp 0x10008b4d
push 4
push eax
push 3
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x10008bb8
push edi
call fcn.10015aaa
mov edi, dword [eax]
call fcn.10015aaa
and dword [eax], 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push 0x111
mov esi, 0x112
lea eax, [ebp - 0x230]
push esi
push eax
call fcn.10013c7e
add esp, 0x18
mov ebx, eax
call fcn.10015aaa
cmp dword [eax], 0
je 0x10008b98
call fcn.10015aaa
push dword [eax]
call fcn.100082ab
pop ecx
jmp 0x10008b9f
call fcn.10015aaa
mov dword [eax], edi
cmp ebx, 0xffffffff
pop edi
je 0x10008bb8
cmp ebx, esi
jae 0x10008bb8
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
jmp 0x10008bba
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.100131c3
leave
ret
Function at 0x100131c3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x1003c360]
jne 0x100131cd
repz ret
jmp fcn.10018cb2

Function at 0x1001c2f2
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x1003c688]
je 0x1001c30d
inc edi
cmp edi, 0x17
jb 0x1001c2fe
cmp edi, 0x17
jae 0x1001c48d
push ebp
push 3
call fcn.10022710
cmp eax, 1
pop ecx
je 0x1001c459
push 3
call fcn.10022710
test eax, eax
pop ecx
jne 0x1001c341
cmp dword [0x1003f868], 1
je 0x1001c459
cmp ebx, 0xfc
je 0x1001c48c
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x1003fcb8
push ebp
call fcn.10017c21
add esp, 0xc
test eax, eax
je 0x1001c377
push esi
push esi
push esi
push esi
push esi
call fcn.10014be5
add esp, 0x14
push 0x104
mov esi, 0x1003fcd1
push esi
push 0
mov byte [0x1003fdd5], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1001c3bb
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.10017c21
add esp, 0xc
test eax, eax
je 0x1001c3bb
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.10014be5
add esp, 0x14
push esi
call fcn.10017c90
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x1001c400
push esi
call fcn.10017c90
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x1003ffcc
push 0x100322ec
sub ecx, eax
push ecx
push eax
call fcn.1001f836
add esp, 0x14
test eax, eax
je 0x1001c400
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.10014be5
add esp, 0x14
jmp 0x1001c402
xor esi, esi
push 0x100322e8
push ebx
push ebp
call fcn.1001f77d
add esp, 0xc
test eax, eax
je 0x1001c422
push esi
push esi
push esi
push esi
push esi
call fcn.10014be5
add esp, 0x14
push dword [edi*8 + 0x1003c68c]
push ebx
push ebp
call fcn.1001f77d
add esp, 0xc
test eax, eax
je 0x1001c444
push esi
push esi
push esi
push esi
push esi
call fcn.10014be5
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.10022553
add esp, 0xc
jmp 0x1001c48c
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x1001c48c
cmp ebp, 0xffffffff
je 0x1001c48c
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x1003c68c]
push dword [esi]
call fcn.10017c90
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x10022553
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.1001baae
xor ebx, ebx
cmp dword [0x100402f4], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x10022629
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10022709
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x10022709
push eax
call fcn.1001ba40
mov dword [esp], 0x10033504
push edi
mov dword [0x100402f4], eax
call esi
push eax
call fcn.1001ba40
mov dword [esp], 0x100334f0
push edi
mov dword [0x100402f8], eax
call esi
push eax
call fcn.1001ba40
mov dword [0x100402fc], eax
lea eax, [ebp - 0xc]
push eax
call fcn.10015e2b
test eax, eax
pop ecx
pop ecx
je 0x100225f7
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10014be5
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x10022629
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.1001ba40
cmp eax, ebx
pop ecx
mov dword [0x10040304], eax
je 0x10022629
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1001ba40
pop ecx
mov dword [0x10040300], eax
mov eax, dword [0x10040300]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x100226ae
cmp dword [0x10040304], ecx
je 0x100226ae
push eax
call fcn.1001bab7
push dword [0x10040304]
mov esi, eax
call fcn.1001bab7
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x100226ae
cmp edi, ebx
je 0x100226ae
call esi
cmp eax, ebx
je 0x1002267b
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1002267b
test byte [ebp - 0x18], 1
jne 0x100226ae
lea eax, [ebp - 0x10]
push eax
call fcn.10015e62
test eax, eax
pop ecx
je 0x10022696
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10014be5
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x100226a5
or dword [ebp + 0x10], 0x200000
jmp 0x100226e9
or dword [ebp + 0x10], 0x40000
jmp 0x100226e9
mov eax, dword [0x100402f8]
cmp eax, dword [ebp - 8]
je 0x100226e9
push eax
call fcn.1001bab7
cmp eax, ebx
pop ecx
je 0x100226e9
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x100226e9
mov eax, dword [0x100402fc]
cmp eax, dword [ebp - 8]
je 0x100226e9
push eax
call fcn.1001bab7
cmp eax, ebx
pop ecx
je 0x100226e9
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x100402f4]
call fcn.1001bab7
cmp eax, ebx
pop ecx
je 0x10022709
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1002270b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4017f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
push 2
mov dword [ebp - 0x230], 0x22c
call dword [sym.imp.KERNEL32.DLL_CreateToolhelp32Snapshot]
mov esi, eax
lea eax, [ebp - 0x230]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_Process32FirstW]
cmp eax, 1
jne 0x40186a
mov edi, dword [sym.imp.KERNEL32.DLL_Process32NextW]
lea eax, [ebp - 0x230]
push eax
push esi
call edi
cmp eax, 1
jne 0x40186a
lea eax, [ebp - 0x20c]
push 0x4156ec
push eax
call fcn.00403472
add esp, 8
test eax, eax
je 0x40187d
lea eax, [ebp - 0x230]
push eax
push esi
call edi
cmp eax, 1
je 0x401843
pop edi
or eax, 0xffffffff
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ab0
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x228]
push 0
push 0x1fffff
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402ab0
mov esp, ebp
pop ebp
ret

Function at 0x4018a0
Capabilities:
Extract resource via kernel32 functions
Set file attributes
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push 0xa
movzx eax, cx
mov edi, edx
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov esi, eax
push esi
push 0
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push esi
push 0
mov ebx, eax
call dword [sym.imp.KERNEL32.DLL_LoadResource]
push eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
push 0x80
push edi
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push edi
call dword [sym.imp.KERNEL32.DLL_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x401915
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
push eax
push ebx
push dword [ebp - 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WriteFile]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401940
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x34
mov eax, dword [0x417008]
xor eax, esp
mov dword [esp + 0x30], eax
mov edx, dword [ebp + 0x10]
xor eax, eax
push esi
mov dword [0x41957c], edx
mov dword [esp + 0x18], 7
mov dword [esp + 0x14], 0
mov word [esp + 4], ax
cmp word [edx], ax
jne 0x40197e
xor ecx, ecx
jmp 0x401992
mov ecx, edx
lea esi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401983
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0xc]
call fcn.00402530
lea edx, [esp + 4]
lea ecx, [esp + 0x1c]
call fcn.00401700
cmp dword [eax + 0x14], 0x10
jb 0x4019b2
mov eax, dword [eax]
push eax
push str.cmd_line___s
push 0
call fcn.004017e0
add esp, 0xc
cmp dword [esp + 0x30], 0x10
jb 0x4019d5
push dword [esp + 0x1c]
call fcn.00403266
add esp, 4
cmp dword [esp + 0x18], 8
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], 0
mov byte [esp + 0x1c], 0
jb 0x4019fd
push dword [esp + 4]
call fcn.00403266
add esp, 4
push str.com.WirelessMedia_Launcher.runningC3
push 1
push 0
call dword [sym.imp.KERNEL32.DLL_CreateMutexW]
mov esi, eax
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
je 0x401a42
push 6
push 0
call dword [sym.imp.ole32.dll_CoInitializeEx]
push 1
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
call fcn.004020a0
call fcn.00402020
call fcn.00401a60
call dword [sym.imp.ole32.dll_CoUninitialize]
push esi
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov ecx, dword [esp + 0x34]
xor eax, eax
pop esi
xor ecx, esp
call fcn.00402ab0
mov esp, ebp
pop ebp
ret 0x10
Function at 0x401de0
Capabilities:
Persist via run registry key
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
mov dword [ebp - 0x210], 0
push eax
push 0xf013f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x401f01
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
mov dword [ebp - 0x218], 1
mov dword [ebp - 0x214], 0x208
call fcn.0040a610
add esp, 0xc
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.Auto_Agent_WirelessMediaC3
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, 0x419370
lea eax, [ebp - 0x20c]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x401eac
test dx, dx
je 0x401ea8
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x401eac
add eax, 4
add ecx, 4
test dx, dx
jne 0x401e86
xor eax, eax
jmp 0x401eb1
sbb eax, eax
or eax, 1
test eax, eax
je 0x401f11
mov ecx, 0x419370
lea edx, [ecx + 2]
lea ecx, [ecx]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x401ec0
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push 0x419370
push 1
push 0
push str.Auto_Agent_WirelessMediaC3
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x401f11
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ab0
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov eax, 1
xor ecx, ebp
call fcn.00402ab0
mov esp, ebp
pop ebp
ret

Function at 0x401f30
Capabilities:
Check if file exists
Create directory
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push eax
call fcn.0040a610
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push 0x1c
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push str.WirelessMedia
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004035e0
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push str.WirelessMediaAutoServiceC3.exe
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.004035e0
lea eax, [ebp - 0x20c]
push eax
push 0x104
push 0x419370
call fcn.00403660
add esp, 0x18
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp eax, 1
jne 0x401fff
call fcn.00401d40
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push eax
push str.ExtractAutoService_DeleteFile_result___d
push 0
call fcn.004017e0
add esp, 0xc
lea edx, [ebp - 0x20c]
mov ecx, 0x6f
call fcn.004018a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402ab0
mov esp, ebp
pop ebp
ret
Function at 0x402020
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push str.Enter_LaunchAutoService
push 0
call fcn.004017e0
add esp, 8
call fcn.00401f30
test eax, eax
jne 0x402052
push str.ExtractAutoService_failed_
push eax
call fcn.004017e0
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
call fcn.00401de0
push 0x38
lea eax, [ebp - 0x38]
mov dword [ebp - 0x3c], 0x3c
push 0
push eax
call fcn.0040a610
add esp, 0xc
mov dword [ebp - 0x30], str.open
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x2c], 0x419370
mov dword [ebp - 0x38], pe_nt_image_headers32
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4020a0
Capabilities:
Check if file exists
Copy file
Create directory
Create shortcut via ishelllink
Delete file
Get common file path
Persist via lnk shortcut

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x630
mov eax, dword [0x417008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0
call dword [sym.imp.ole32.dll_CoInitialize]
lea eax, [ebp - 0x62c]
push eax
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push eax
call fcn.0040a610
add esp, 0xc
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push eax
lea eax, [ebp - 0x20e]
push eax
call fcn.0040a610
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 0x62c]
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
push str.WirelessMedia
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.004035e0
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.00403660
add esp, 0xc
lea eax, [ebp - 0x418]
push 0
push eax
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
push str.StartLinkC3.lnk
lea eax, [ebp - 0x418]
push 0x104
push eax
call fcn.004035e0
add esp, 0xc
lea eax, [ebp - 0x210]
push str.WirelessMedia.exe
push 0x104
push eax
call fcn.004035e0
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [ebp - 0x418]
add esp, 0xc
push eax
call edi
mov esi, dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp eax, 1
jne 0x4021b5
lea eax, [ebp - 0x418]
push eax
call esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x620], ax
lea eax, [ebp - 0x61e]
push eax
call fcn.0040a610
add esp, 0xc
lea eax, [ebp - 0x620]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x624]
push eax
push 0x4101e0
push 1
push 0
push 0x4101f0
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov eax, dword [ebp - 0x624]
lea edx, [ebp - 0x628]
push edx
push 0x410200
push eax
mov ecx, dword [eax]
call dword [ecx]
lea ecx, [ebp - 0x620]
call fcn.004022d0
cmp eax, 1
lea eax, [ebp - 0x210]
push eax
jne 0x402266
call edi
cmp eax, 1
jne 0x402240
lea eax, [ebp - 0x210]
push eax
call esi
push 0x32
call dword [sym.imp.KERNEL32.DLL_Sleep]
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x620]
push eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
lea edx, [ebp - 0x210]
jmp 0x40227c
call edi
cmp eax, 1
jne 0x402276
lea eax, [ebp - 0x210]
push eax
call esi
lea edx, [ebp - 0x620]
mov eax, dword [ebp - 0x624]
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 0x628]
lea edx, [ebp - 0x418]
push 0
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov eax, dword [ebp - 0x628]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp - 0x624]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00402ab0
mov esp, ebp
pop ebp
ret