joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1007dc25
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x10088330]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.1006ea44
mov dword [ebp - 0x14], eax
cmp dword [0x10675b8c], esi
jne 0x1007dd18
push 0x800
push esi
push 0x1000792c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x1007dca5
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1007ddf8
push esi
push esi
push 0x1000792c
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x1007ddf8
push 0x10007944
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1007ddf8
push eax
call ebx
push 0x10007950
push edi
mov dword [0x10675b8c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007960
push edi
mov dword [0x10675b90], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push 0x10007974
push edi
mov dword [0x10675b94], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10675b9c], eax
test eax, eax
je 0x1007dd15
push 0x10007990
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x10675b98], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x1007dd3d
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x1007dd30
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x1007dd52
push 4
pop eax
jmp 0x1007ddfa
cmp dword [ebp - 0x14], esi
je 0x1007dd52
push dword [0x10675b8c]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x1007dd37
mov eax, dword [0x10675b98]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x1007ddb0
cmp dword [0x10675b9c], edi
je 0x1007ddb0
push eax
call ebx
push dword [0x10675b9c]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x1007ddb0
test eax, eax
je 0x1007ddb0
call ecx
test eax, eax
je 0x1007dda5
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 0x1007dda5
test byte [ebp - 8], 1
jne 0x1007ddb0
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x1007dde0
mov eax, dword [0x10675b90]
cmp eax, edi
je 0x1007dddd
push eax
call ebx
test eax, eax
je 0x1007dddd
call eax
mov esi, eax
test esi, esi
je 0x1007dddd
mov eax, dword [0x10675b94]
cmp eax, edi
je 0x1007dddd
push eax
call ebx
test eax, eax
je 0x1007dddd
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x10675b8c]
call ebx
test eax, eax
je 0x1007ddf8
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x1007ddfa
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call main
mov esp, ebp
pop ebp
ret
Function at 0x10001cba
Capabilities:
Identify system language via api

Disassembly:
push esi
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLangID]
movzx edx, ax
xor eax, eax
mov ecx, 0x10037948
cmp dx, word [ecx]
je 0x10001ce0
add ecx, 0x34
inc eax
cmp ecx, 0x10038dcc
jl 0x10001ccd
jmp 0x10001cea
imul eax, eax, 0x34
movzx esi, word [eax + 0x10037930]
mov ax, si
pop esi
ret
Function at 0x10002999
Capabilities:
Extract resource via kernel32 functions

Disassembly:
jmp method.CDHtmlDialog.virtual_324
push 0x24
mov eax, 0x1003512e
call fcn.10021cf4
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [esi + 0x60]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi + 0x5c]
mov dword [ebp - 0x18], eax
call fcn.10005edf
mov edi, dword [eax + 0xc]
xor ebx, ebx
cmp dword [esi + 0x58], ebx
je 0x1000e5a9
call fcn.10005edf
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x58]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], ebx
je 0x1000e5ba
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], ebx
jne 0x1000e5c7
or eax, 0xffffffff
jmp 0x1000e71b
mov ecx, esi
call fcn.1000e096
mov dword [ebp - 0x14], eax
call fcn.10008682
and dword [ebp - 0x28], ebx
cmp dword [ebp - 0x14], ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
je 0x1000e645
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x1000e645
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x1000e645
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x2c], 1
call fcn.1000722e
mov ebx, eax
test ebx, ebx
mov dword [ebp - 0x24], ebx
je 0x1000e645
mov eax, dword [ebx]
mov ecx, ebx
call dword [eax + 0x120]
test eax, eax
je 0x1000e645
mov ecx, ebx
call fcn.1000ef89
test eax, eax
je 0x1000e645
push 0
mov ecx, ebx
call fcn.1000efa4
mov dword [ebp - 0x28], 1
and dword [ebp - 4], 0
push esi
call fcn.1000a0b1
push dword [ebp - 0x14]
call fcn.100085da
push edi
push eax
push dword [ebp - 0x1c]
mov ecx, esi
call fcn.1000e36e
xor edi, edi
cmp eax, edi
je 0x1000e6a2
test byte [esi + 0x3c], 0x10
je 0x1000e68c
push 4
pop edi
mov ecx, esi
call fcn.1000ee9a
test ax, 0x100
je 0x1000e682
push 5
pop edi
push edi
mov ecx, esi
call fcn.1000814b
xor edi, edi
cmp dword [esi + 0x20], edi
je 0x1000e6a2
push 0x97
push edi
push edi
push edi
push edi
push edi
mov ecx, esi
call fcn.1000f14e
or dword [ebp - 4], 0xffffffff
jmp 0x1000e6c5
cmp dword [ebp - 0x28], edi
je 0x1000e6d3
push 1
mov ecx, ebx
call fcn.1000efa4
cmp dword [ebp - 0x2c], edi
je 0x1000e6e3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], edi
je 0x1000e6fc
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x20]
jne 0x1000e6fc
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.1000e0d0
cmp dword [esi + 0x58], edi
je 0x1000e718
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x44]
call fcn.10021d99
ret
Function at 0x1000b1f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x1000b233
call fcn.10005edf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1000b233
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x1000b24e
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.1000adaa
test ebx, ebx
mov esi, eax
je 0x1000b24c
test edi, edi
je 0x1000b24c
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x1000e785
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x58], ebx
jne 0x1000e7a5
cmp dword [edi + 0x54], 0
jne 0x1000e7a5
movzx eax, bx
mov dword [edi + 0x54], eax
call fcn.10005edf
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.1000e74c
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x1000f45d
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x10034ab0
call fcn.10021cc1
mov esi, ecx
cmp dword [esi + 0x50], 0
jne 0x1000f482
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x1000f4ce
call fcn.10010366
push eax
lea ecx, [ebp - 0x10]
call fcn.10002d42
mov ecx, dword [esi + 0x50]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.1000b363
add esp, 0x10
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.1000278d
mov eax, esi
call fcn.10021d99
ret 8
Function at 0x1001a766
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
xor ebx, ebx
cmp dword [ebp + 0xc], ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
je 0x1001a7ac
call fcn.10005edf
mov esi, dword [eax + 0xc]
push 0xf0
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x1001a7ac
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
mov dword [ebp - 4], eax
je 0x1001a7ef
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
mov esi, dword [ebp + 8]
mov dword [ebp + 0xc], 1
je 0x1001a7d8
push dword [ebp + 0x10]
mov eax, dword [edi]
push ebx
push esi
mov ecx, edi
call dword [eax + 0x20]
cmp dword [ebp - 4], 0
mov dword [ebp + 0xc], eax
je 0x1001a7d8
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp dword [esi + 0x4c], 0
je 0x1001a7ec
mov ecx, dword [esi + 0x4c]
push dword [ebp + 0x10]
mov eax, dword [ecx]
call dword [eax + 0xa0]
mov eax, dword [ebp + 0xc]
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x100206d7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x10020704
call fcn.10022936
mov dword [eax], esi
call fcn.10022923
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.10022051
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x100206e0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10020733
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.10022949
pop ecx
call fcn.10022923
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x1002075a
test al, 1
je 0x1002075a
test byte [esp + 0xc], 2
je 0x1002075a
call fcn.10022936
mov dword [eax], 5
call fcn.10022923
mov dword [eax], 0xd
jmp 0x1002072a
xor eax, eax
pop esi
ret

Function at 0x10020bb3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10048784]
jne 0x10020bbd
repz ret
jmp fcn.1002551c
Function at 0x1002ec49
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.10024f89
xor ebx, ebx
cmp dword [0x1004c9b8], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x1002ed1e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x1002ec89
xor eax, eax
jmp 0x1002ede2
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x1002ec82
push eax
call fcn.10024f26
mov dword [esp], 0x1003e1dc
push edi
mov dword [0x1004c9b8], eax
call esi
push eax
call fcn.10024f26
mov dword [esp], 0x1003e1c8
push edi
mov dword [0x1004c9bc], eax
call esi
push eax
call fcn.10024f26
mov dword [0x1004c9c0], eax
lea eax, [ebp - 8]
push eax
call fcn.1002355e
test eax, eax
pop ecx
pop ecx
je 0x1002ecec
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10021f55
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x1002ed1e
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.10024f26
cmp eax, ebx
pop ecx
mov dword [0x1004c9c8], eax
je 0x1002ed1e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.10024f26
pop ecx
mov dword [0x1004c9c4], eax
mov eax, dword [0x1004c9c4]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x1002ed97
cmp dword [0x1004c9c8], esi
je 0x1002ed97
push eax
call fcn.10024f92
pop ecx
call eax
cmp eax, ebx
je 0x1002ed64
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x1004c9c8]
call fcn.10024f92
pop ecx
call eax
test eax, eax
je 0x1002ed64
test byte [ebp - 0x18], 1
jne 0x1002ed97
lea eax, [ebp - 0xc]
push eax
call fcn.10023595
test eax, eax
pop ecx
je 0x1002ed7f
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.10021f55
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x1002ed8e
or dword [ebp + 0x10], 0x200000
jmp 0x1002edc8
or dword [ebp + 0x10], 0x40000
jmp 0x1002edc8
mov eax, dword [0x1004c9bc]
cmp eax, esi
je 0x1002edc8
push eax
call fcn.10024f92
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x1002edc8
mov eax, dword [0x1004c9c0]
cmp eax, esi
je 0x1002edc8
push dword [ebp - 4]
push eax
call fcn.10024f92
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 [0x1004c9b8]
call fcn.10024f92
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100369a7
Capabilities:
Encode data using xor

Disassembly:
call 0x100369ac
mov ebp, esp
mov eax, dword [ebp]
sub eax, 0x369a7
sub eax, 5
push eax
add eax, 0x59000
mov dword [ebp], eax
pushal
mov ecx, 0x99e
mov edx, 0x79913825
mov bl, 0
xchg byte [ecx + eax], bl
or bl, bl
jne 0x100369e4
xor edx, 0x79931c5b
add edx, dword [ebp - 4]
mov dword [ebp], edx
jmp 0x100369ec
xor byte [ecx + eax - 1], dl
rol edx, 1
loop 0x100369e4
popal
pop eax
xor eax, eax
ret
Function at 0x403600
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x23c
lea ebx, [ebp - 0x220]
mov dword [ebp - 0x228], 0x2e626461
mov dword [ebp - 0x224], 0x676f6c
mov dword [esp + 4], ebx
mov dword [esp], 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
sub eax, 1
sub esp, 8
cmp eax, 0x102
ja 0x4036e1
lea edi, [ebp - 0x22c]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [ebp - 0x22c], 0x52bf9c
call fcn.004365c0
test al, al
je 0x40370f
mov ecx, esi
mov dword [esp], edi
call fcn.004ef610
lea ecx, [ebp - 0x228]
mov ebx, ecx
sub esp, 4
mov eax, dword [ebx]
add ebx, 4
lea edx, [eax - 0x1010101]
not eax
and edx, eax
and edx, 0x80808080
je 0x403683
mov eax, edx
shr eax, 0x10
test edx, 0x8080
cmove edx, eax
lea eax, [ebx + 2]
cmove ebx, eax
add dl, dl
sbb ebx, 3
sub ebx, ecx
mov dword [esp], ecx
mov ecx, esi
mov dword [esp + 4], ebx
call fcn.004ee310
mov eax, dword [ebp - 0x22c]
lea ecx, [eax - 0xc]
sub esp, 8
cmp ecx, 0x52bf90
jne 0x40371b
lea esp, [ebp - 0xc]
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x22c]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00435f00
mov eax, dword [ebp - 0x22c]
mov dword [esp], str.cannot_retrieve_temporary_file_path:__s_n
mov dword [esp + 4], eax
call fcn.00416650
mov dword [esp], str.cannot_convert_temporary_file_path_from_UTF_16_to_UTF_8
call fcn.004166b0
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4036d7
lea eax, [ebp - 0x22d]
mov dword [esp], eax
call fcn.004ede40
push eax
jmp 0x4036d7
Function at 0x415fd0
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, edx
push esi
mov esi, eax
push ebx
sub esp, 0x4c
lea eax, [ebp - 0x28]
mov dword [esp + 4], eax
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_CreatePipe]
sub esp, 0x10
test eax, eax
je 0x4160b8
mov edx, dword [ebp - 0x2c]
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
lea ecx, [edx - 1]
cmp ecx, 0xfffffffd
mov dword [ebp - 0x20], eax
mov eax, edx
mov dword [ebp - 0x24], edx
jbe 0x416110
mov edx, dword [esi]
mov dword [ebp - 0x24], 0
mov dword [esi], eax
test edx, edx
je 0x416059
mov dword [esp], edx
mov ecx, esi
call fcn.0042c4c0
sub esp, 4
mov eax, dword [edi]
mov ebx, 1
mov edx, dword [ebp - 0x20]
mov dword [ebp - 0x20], 0
test eax, eax
mov dword [edi], edx
je 0x416092
mov dword [esp], eax
mov ecx, edi
call fcn.0042c4c0
sub esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x416092
mov dword [esp], eax
lea ecx, [ebp - 0x20]
call fcn.0042c4c0
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x4160ae
mov dword [esp], eax
lea ecx, [ebp - 0x24]
call fcn.0042c4c0
sub esp, 4
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea edx, [ebp - 0x1c]
mov dword [esp], edx
mov dword [esp + 4], eax
call fcn.00435f00
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], str.Cannot_create_pipe:__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00431480
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x52bf90
jne 0x416196
xor ebx, ebx
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x3c], edx
call fcn.00415e10
mov edx, dword [ebp - 0x3c]
test al, al
mov ebx, eax
jne 0x4161b9
mov dword [ebp - 0x3c], edx
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x1c]
mov dword [esp], ecx
mov dword [esp + 4], eax
call fcn.00435f00
mov eax, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x3c]
mov dword [esp + 4], str.Cannot_make_handle_0x_p_non_inheritable:__s_n
mov dword [esp + 0xc], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], edx
add eax, 0x40
mov dword [esp], eax
call fcn.00431480
mov eax, dword [ebp - 0x1c]
lea ecx, [eax - 0xc]
cmp ecx, 0x52bf90
je 0x41607d
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x41607d
lea eax, [ebp - 0x2d]
mov dword [esp], eax
call fcn.004ede40
push eax
jmp 0x41607d
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x4160fe
lea eax, [ebp - 0x20]
xor ebx, ebx
mov dword [esp], eax
call fcn.004ede40
push edx
jmp 0x416100
mov eax, dword [ebp - 0x24]
jmp 0x41603d
Function at 0x41bdd0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x24c
mov ebx, dword [ebp + 8]
lea esi, [ebp - 0x220]
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x28
mov dword [esp], 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
sub esp, 0x14
test eax, eax
mov edi, eax
js 0x41be75
lea eax, [ebp - 0x224]
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [ebp - 0x224], 0x52bf9c
call fcn.004365c0
test al, al
je 0x41be67
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x224], 0x52bf9c
mov dword [ebx], eax
mov eax, 0x52bf9c
lea ecx, [eax - 0xc]
cmp ecx, 0x52bf90
jne 0x41bf85
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], 0x52bf9c
mov eax, dword [ebp - 0x224]
jmp 0x41be4e
test byte [0x56103c], 1
je 0x41bf75
call fcn.00435450
cmp eax, 2
jg 0x41bf75
mov eax, dword [sym.imp.msvcrt.dll__errno]
lea esi, [ebp - 0x22c]
mov dword [ebp - 0x240], eax
call eax
mov edx, dword [eax]
lea eax, [ebp - 0x228]
mov dword [esp + 4], edi
mov dword [esp], eax
mov dword [ebp - 0x23c], edx
call fcn.00435f00
mov eax, dword [ebp - 0x228]
lea edx, [ebp - 0x224]
mov dword [esp], edx
mov dword [esp + 4], str.SHGetFolderPathW_failed:__s
mov dword [ebp - 0x244], edx
mov dword [esp + 8], eax
call fcn.00435b60
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x112
mov dword [esp], str.system_core_adb_adb_utils.cpp
call fcn.00434b70
mov ecx, esi
sub esp, 0x14
call fcn.00434cf0
mov ecx, dword [ebp - 0x224]
mov edi, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edi
call fcn.0051a330
mov ecx, esi
call fcn.00434d50
mov ecx, dword [ebp - 0x224]
mov dword [esp], esi
sub ecx, 0xc
call fcn.004ede60
mov edx, dword [ebp - 0x244]
mov ecx, dword [ebp - 0x228]
sub ecx, 0xc
push eax
mov dword [esp], edx
call fcn.004ede60
mov eax, dword [ebp - 0x240]
push edx
call eax
mov edx, dword [ebp - 0x23c]
mov dword [eax], edx
mov dword [ebx], 0x52bf9c
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
test edx, edx
jg 0x41be5d
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.004ede40
push ecx
jmp 0x41be5d
Function at 0x426c20
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
test byte [0x56103c], 8
je 0x426c3c
call fcn.00435450
cmp eax, 2
jle 0x426cb5
mov dword [esp], 8
call fcn.00520de0
mov edx, dword [ebp + 8]
mov dword [eax], 0x4275f0
mov dword [eax + 4], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x426840
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
je 0x426ca1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CloseHandle]
sub esp, 4
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [esp + 4], 0x533a48
mov dword [esp], str.cannot_create_local_socket__s_thread
call fcn.004166b0
mov esi, dword [sym.imp.msvcrt.dll__errno]
lea ebx, [ebp - 0x20]
call esi
mov edi, dword [eax]
lea eax, [ebp - 0x1c]
mov dword [esp], eax
mov dword [esp + 8], 0x533a48
mov dword [esp + 4], str.transport:_local__s_init
call fcn.00435b60
mov ecx, ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x177
mov dword [esp], str.system_core_adb_transport_local.cpp
call fcn.00434b70
mov ecx, ebx
sub esp, 0x14
call fcn.00434cf0
mov edx, dword [ebp - 0x1c]
mov ecx, dword [edx - 0xc]
mov dword [esp + 4], edx
mov dword [esp], eax
mov dword [esp + 8], ecx
call fcn.0051a330
mov ecx, ebx
call fcn.00434d50
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
lea ecx, [eax - 0xc]
call fcn.004ede60
push eax
call esi
mov dword [eax], edi
jmp 0x426c3c
Function at 0x42d930
Capabilities:
Set socket configuration

Disassembly:
mov edx, dword [esp + 0xc]
mov ecx, 0x7f000001
mov eax, dword [esp + 4]
mov dword [esp + 4], edx
mov edx, dword [esp + 8]
jmp fcn.0042bc40

Function at 0x42d950
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
mov eax, dword [esp + 4]
mov dword [esp + 4], edx
mov edx, dword [esp + 8]
jmp fcn.0042bc40