joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4015e5
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
xor eax, eax
push ecx
push ecx
mov word [edi], ax
call fcn.00405f8d
pop ecx
inc eax
push eax
push edi
call fcn.00405eb4
add esp, 0xc
test eax, eax
jne 0x4017b9
push edi
call fcn.00405f8d
pop ecx
mov ebx, eax
push 0x5c
pop eax
cmp word [edi + ebx*2 - 2], ax
je 0x401639
mov word [edi + ebx*2], ax
inc ebx
xor eax, eax
mov word [edi + ebx*2], ax
push str.LMIR
push edi
call fcn.00405f8d
mov esi, eax
mov dword [esp], str.LMIR
call fcn.00405f8d
inc eax
pop ecx
add eax, esi
push eax
push edi
call fcn.00405f18
add esp, 0xc
test eax, eax
jne 0x4017b9
push str.LMIR
call fcn.00405f8d
pop ecx
push 4
pop ecx
cmp eax, ecx
ja 0x40167c
mov ecx, eax
lea eax, [ebp - 0x14]
add ebx, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetLocalTime]
movzx eax, word [ebp - 0xc]
lea edx, [edi + ebx*2]
imul ecx, eax, 0x3c
movzx eax, word [ebp - 0xa]
push 2
pop esi
push 0x2e
add ecx, eax
movzx eax, word [ebp - 8]
imul ecx, ecx, 0x3c
add ecx, eax
mov eax, ecx
shr eax, 0x10
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
shr eax, 0xc
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
shr eax, 8
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov eax, ecx
and ecx, 0xf
shr eax, 4
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
mov ax, word [ecx*2 + str.0123456789ABCDEF]
mov word [edx], ax
add edx, esi
xor eax, eax
mov word [edx], ax
add edx, esi
mov word [edx], ax
add edx, esi
mov word [edx], ax
add edx, esi
pop eax
push 0x74
mov word [edx], ax
add edx, esi
pop eax
push 0x6d
mov word [edx], ax
add edx, esi
pop eax
push 0x70
mov word [edx], ax
pop eax
mov word [edx + esi], ax
xor eax, eax
mov word [edx + esi + 2], ax
xor esi, esi
inc esi
mov eax, esi
shr eax, 8
and eax, 0xf
push str.LMIR
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xa], ax
mov eax, esi
shr eax, 4
and eax, 0xf
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xc], ax
mov eax, esi
and eax, 0xf
inc esi
mov ax, word [eax*2 + str.0123456789ABCDEF]
mov word [edi + ebx*2 + 0xe], ax
call fcn.00405f8d
pop ecx
mov ecx, ebx
sub ecx, eax
lea ecx, [edi + ecx*2]
call fcn.004013eb
test eax, eax
jne 0x4017b1
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4017ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4017b9
cmp esi, 0xfff
jb 0x401740
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403826
leave
ret
xor eax, eax
inc eax
jmp 0x4017bb
Function at 0x4017cf
Capabilities:
Create directory

Disassembly:
push ebx
push edi
push str.shell32.dll
mov ebx, edx
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40188a
push str.SHGetSpecialFolderPathW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x401883
push 0
push 0x1c
push ebx
push 0
call eax
test eax, eax
je 0x401883
push esi
push 0x41bb50
call fcn.00405f8d
mov dword [esp], 0x41bb50
push ebx
lea esi, [eax + 1]
call fcn.00405f8d
pop ecx
add eax, esi
push eax
push ebx
call fcn.00405f18
add esp, 0xc
push str.Applet
push ebx
call fcn.00405f8d
mov dword [esp], str.Applet
lea esi, [eax + 1]
call fcn.00405f8d
pop ecx
add eax, esi
push eax
push ebx
call fcn.00405f18
add esp, 0xc
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
test eax, eax
jne 0x401873
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x401883
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
push ebx
call fcn.00405f8d
pop ecx
jmp 0x40188c
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
pop edi
pop ebx
ret

Function at 0x40188f
Capabilities:
Set current directory

Disassembly:
push ecx
push esi
push edi
mov edi, ecx
mov esi, edx
xor eax, eax
mov edx, edi
push ecx
push ecx
mov word [edi], ax
mov word [esi], ax
call fcn.004017cf
pop ecx
pop ecx
test eax, eax
je 0x4018e7
cmp eax, 0x103
ja 0x4018e7
push esi
mov ecx, edi
call fcn.004015e5
pop ecx
test eax, eax
jne 0x4018c6
push 2
pop eax
jmp 0x4018ea
push esi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
test eax, eax
jne 0x4018e3
push edi
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
push esi
call fcn.004011c6
pop ecx
push 3
jmp 0x4018c3
xor eax, eax
jmp 0x4018ea
xor eax, eax
inc eax
pop edi
pop esi
pop ecx
ret

Function at 0x401a1f
Capabilities:
Check if file exists
Copy file
Get file attributes

Disassembly:
push esi
mov esi, str.LMI_Rescue_srv.exe
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401a36
xor eax, eax
inc eax
pop esi
ret
push 0
push esi
push str.LMI_Rescue.exe
call dword [sym.imp.KERNEL32.dll_CopyFileW]
neg eax
pop esi
sbb eax, eax
neg eax
ret
Function at 0x401d3e
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x20
pop eax
mov esi, edx
mov word [ebp - 0x418], ax
xor ebx, ebx
xor eax, eax
push ebx
push 0x80
cmp word [esi], bx
setne al
lea eax, [eax*2 + 2]
push eax
push ebx
push 1
push 0x40000000
push str.params.txt
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x401e40
push 2
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call fcn.00405f8d
mov ebx, eax
pop ecx
test ebx, ebx
je 0x401e39
push 0x410
lea eax, [ebp - 0x414]
push 0
push eax
call fcn.00404700
and dword [ebp - 0x420], 0
lea eax, [ebp - 0x414]
push ebx
push esi
push 0x410
push eax
lea eax, [ebp - 0x420]
push eax
call fcn.00408bb9
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
lea eax, [ebp - 0x41c]
add esp, 0x20
xor ebx, ebx
push ebx
push eax
push 1
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x414]
push eax
call fcn.004087e0
pop ecx
push eax
lea eax, [ebp - 0x414]
push eax
push edi
call esi
push ebx
lea eax, [ebp - 0x41c]
push eax
push 1
lea eax, [ebp - 0x418]
push eax
push edi
call esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00403826
leave
ret

Function at 0x401e4f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.logo.bmp
test ecx, ecx
je 0x401e6d
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401e6d
xor eax, eax
inc eax
jmp 0x401ee4
mov ecx, 0x2711
call fcn.00401a4c
test eax, eax
je 0x401ee4
mov ecx, dword [0x41f2cc]
mov eax, dword [0x41f2c8]
cmp ecx, 0x36
jb 0x401ece
mov edx, 0x4d42
cmp word [eax], dx
jne 0x401ece
cmp dword [eax + 2], ecx
jne 0x401ece
cmp dword [eax + 0xe], 0x28
je 0x401eac
cmp dword [eax + 0xe], 0x6c
je 0x401eac
cmp dword [eax + 0xe], 0x7c
jne 0x401ece
cmp dword [eax + 0x12], 0x4e
jne 0x401ece
cmp dword [eax + 0x16], 0x20
je 0x401ebe
cmp dword [eax + 0x16], 0xffffffe0
jne 0x401ece
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401ace
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401aa1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret

Function at 0x401ee7
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
xor edi, edi
mov esi, str.rescue.ico
test ecx, ecx
je 0x401f05
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x401f05
xor eax, eax
inc eax
jmp 0x401f39
mov ecx, 0x2716
call fcn.00401a4c
test eax, eax
je 0x401f37
push 1
push edi
mov edx, esi
xor ecx, ecx
call fcn.00401ace
pop ecx
pop ecx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
call fcn.00401aa1
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
pop esi
ret
Function at 0x403146
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc34
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push 0xf003f
xor esi, esi
push esi
push esi
call dword [0x41f2ec]
mov ebx, eax
test ebx, ebx
jne 0x403176
inc eax
jmp 0x4032a0
push edi
lea eax, [ebp - 0x20c]
mov edi, 0x104
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push 0x208
lea eax, [ebp - 0x61c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.00405f8d
pop ecx
mov ecx, eax
cmp ecx, 2
jle 0x4031f4
lea eax, [ecx + 2]
cmp eax, edi
jge 0x4031f4
push 0x5c
pop eax
cmp word [ebp + ecx*2 - 0x210], ax
je 0x4031f4
cmp word [ebp + ecx*2 - 0x20e], ax
jne 0x4031f4
mov word [ebp + ecx*2 - 0x20c], ax
lea ecx, [ecx*2 + 2]
cmp ecx, 0x208
jae 0x4032ae
xor eax, eax
mov word [ebp + ecx - 0x20c], ax
lea eax, [ebp - 0x20c]
push eax
push 0x41f740
lea eax, [ebp - 0x61c]
push eax
push str.__s___service__sid___s___wd___s_
lea eax, [ebp - 0xc34]
push 0x30c
push eax
call fcn.004018f4
add esp, 0x18
push 0xf01ff
push 0x41f540
push ebx
call dword [0x41f2d4]
mov edi, eax
test edi, edi
jne 0x403269
push esi
push esi
push 0x41c14c
push esi
push esi
lea eax, [ebp - 0xc34]
push eax
push 1
push 2
push 0x10
push 0xf01ff
push 0x41f340
push 0x41f540
push ebx
call dword [0x41f2e4]
mov edi, eax
test edi, edi
je 0x403296
push esi
push esi
push edi
call dword [0x41f2e0]
test eax, eax
jne 0x40328f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
je 0x40328c
cmp eax, 0x420
je 0x40328f
push 4
jmp 0x40328e
push 3
pop esi
push edi
call dword [0x41f2d8]
push ebx
call dword [0x41f2d8]
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403826
leave
ret
call fcn.00403958
int3

Function at 0x40340e
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.00414e20
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
push ecx
lea eax, [ebp - 0x2004]
push 0x1000
push eax
call fcn.00405eb4
lea eax, [ebp - 0x2004]
push eax
call fcn.00405f8d
push 0x5c
lea edi, [ebp - 0x2004]
pop ebx
lea edi, [edi + eax*2]
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.00404921
add esp, 0x18
test eax, eax
je 0x4034b1
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x2004]
push ebx
push eax
call fcn.00404921
pop ecx
pop ecx
test eax, eax
jne 0x403465
push esi
jmp 0x403496
push 0
lea eax, [ebp - 0x2004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test esi, esi
je 0x4034b0
mov word [esi], bx
lea eax, [ebp - 0x2004]
push eax
call fcn.00405f8d
lea esi, [ebp - 0x2004]
pop ecx
lea esi, [esi + eax*2]
cmp esi, edi
jne 0x403480
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.00403826
leave
ret
Function at 0x4034bf
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [0x41e004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
mov ebx, edx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp word [esi + eax*2 - 2], 0x5c
jne 0x4034e7
xor eax, eax
jmp 0x40353b
push edi
xor edi, edi
push edi
push 0x8000080
push 2
push edi
push edi
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40350b
push 0x52
jmp 0x403539
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 8]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x403530
cmp dword [ebp - 8], edi
jne 0x403530
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x40353a
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x1d
pop eax
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.00403826
leave
ret
Function at 0x403530
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 0x403611
lea edi, [ebp - 0x22c]
mov dword [esp + 4], edi
mov dword [esp], ebx
mov dword [ebp - 0x22c], 0x51ef3c
call fcn.0042f390
test al, al
je 0x40363f
mov ecx, esi
mov dword [esp], edi
call fcn.004e3ae0
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 0x4035b3
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 + 4], ebx
mov dword [esp], ecx
mov ecx, esi
call fcn.004e27e0
mov eax, dword [ebp - 0x22c]
lea ebx, [eax - 0xc]
sub esp, 8
cmp ebx, 0x51ef30
jne 0x40364b
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.0042ecc0
mov eax, dword [ebp - 0x22c]
mov dword [esp], str.cannot_retrieve_temporary_file_path:__s_n
mov dword [esp + 4], eax
call fcn.004117e0
mov dword [esp], str.cannot_convert_temporary_file_path_from_UTF_16_to_UTF_8
call fcn.00411840
sub eax, 4
call fcn.005150c0
test eax, eax
jg 0x403607
lea eax, [ebp - 0x22d]
mov ecx, ebx
mov dword [esp], eax
call fcn.004e2310
push eax
jmp 0x403607
Function at 0x411160
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 0x411248
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 0x4112a0
mov edx, dword [esi]
mov dword [ebp - 0x24], 0
mov dword [esi], eax
test edx, edx
je 0x4111e9
mov dword [esp], edx
mov ecx, esi
call fcn.004247b0
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 0x411222
mov dword [esp], eax
mov ecx, edi
call fcn.004247b0
sub esp, 4
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x411222
mov dword [esp], eax
lea ecx, [ebp - 0x20]
call fcn.004247b0
sub esp, 4
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x20], 0
test eax, eax
je 0x41123e
mov dword [esp], eax
lea ecx, [ebp - 0x24]
call fcn.004247b0
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.0042ecc0
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.0042a420
mov eax, dword [ebp - 0x1c]
lea ebx, [eax - 0xc]
cmp ebx, 0x51ef30
jne 0x411328
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.00411100
mov edx, dword [ebp - 0x3c]
test al, al
mov ebx, eax
jne 0x41134d
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.0042ecc0
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.0042a420
mov eax, dword [ebp - 0x1c]
lea esi, [eax - 0xc]
cmp esi, 0x51ef30
je 0x41120d
sub eax, 4
call fcn.00515d58
test eax, eax
jg 0x41120d
lea eax, [ebp - 0x2d]
mov ecx, esi
mov dword [esp], eax
call fcn.004e2310
push eax
jmp 0x41120d
sub eax, 4
call fcn.00515d58
test eax, eax
jg 0x41128e
lea eax, [ebp - 0x20]
mov ecx, ebx
mov dword [esp], eax
xor ebx, ebx
call fcn.004e2310
push edx
jmp 0x411290
mov eax, dword [ebp - 0x24]
jmp 0x4111cd
Function at 0x416fd0
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]
cmp byte [ebp + 0xc], 0
je 0x417016
mov dword [esp], str.ANDROID_SDK_HOME
call fcn.0042a5c0
test eax, eax
je 0x417016
lea edx, [ebp - 0x220]
mov ecx, ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call fcn.004e3a40
mov eax, ebx
sub esp, 8
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
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 0x4170c0
lea eax, [ebp - 0x224]
mov dword [esp + 4], eax
mov dword [esp], esi
mov dword [ebp - 0x224], 0x51ef3c
call fcn.0042f390
test al, al
je 0x4170e0
mov eax, dword [ebp - 0x224]
mov dword [ebp - 0x224], 0x51ef3c
mov dword [ebx], eax
mov eax, 0x51ef3c
lea ecx, [eax - 0xc]
cmp ecx, 0x51ef30
je 0x4170cf
cmp dword [0x5192a8], 0
jne 0x4171e2
mov edx, dword [eax - 4]
lea esi, [edx - 1]
mov dword [eax - 4], esi
mov eax, edx
test eax, eax
jg 0x4170cf
lea eax, [ebp - 0x228]
mov dword [esp], eax
call fcn.004e2310
push eax
jmp 0x4170cf
test byte [0x55503c], 1
jne 0x4170ee
mov dword [ebx], 0x51ef3c
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebx], 0x51ef3c
mov eax, dword [ebp - 0x224]
jmp 0x417085
call fcn.0042d960
cmp eax, 2
jg 0x4170c9
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.0042ecc0
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.0042e9a0
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0xfd
mov dword [esp], str.system_core_adb_adb_utils.cpp
call fcn.0042da30
mov ecx, esi
sub esp, 0x14
call fcn.0042dbb0
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.0050d650
mov ecx, esi
call fcn.0042dc40
mov ecx, dword [ebp - 0x224]
mov dword [esp], esi
sub ecx, 0xc
call fcn.004e2330
mov ecx, dword [ebp - 0x228]
sub ecx, 0xc
push edx
mov edx, dword [ebp - 0x244]
mov dword [esp], edx
call fcn.004e2330
mov eax, dword [ebp - 0x240]
push ecx
call eax
mov edx, dword [ebp - 0x23c]
mov dword [eax], edx
jmp 0x4170c9
or edx, 0xffffffff
lock xadd dword [eax - 4], edx
mov eax, edx
jmp 0x4170a8
Function at 0x4205d0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
test byte [0x55503c], 8
jne 0x42065b
mov dword [esp], 8
call fcn.00513a20
mov edx, dword [ebp + 8]
mov dword [eax], 0x420b10
mov dword [eax + 4], edx
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x4201d0
mov dword [esp + 4], 0
mov dword [esp], 0
call dword [sym.imp.msvcrt.dll__beginthreadex]
test eax, eax
je 0x420647
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], 0x527af4
mov dword [esp], str.cannot_create_local_socket__s_thread
call fcn.00411840
call fcn.0042d960
cmp eax, 2
jg 0x4205e2
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], 0x527af4
mov dword [esp + 4], str.transport:_local__s_init
call fcn.0042e9a0
mov ecx, ebx
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x13b
mov dword [esp], str.system_core_adb_transport_local.cpp
call fcn.0042da30
mov ecx, ebx
sub esp, 0x14
call fcn.0042dbb0
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.0050d650
mov ecx, ebx
call fcn.0042dc40
mov eax, dword [ebp - 0x1c]
mov dword [esp], ebx
lea ecx, [eax - 0xc]
call fcn.004e2330
push eax
call esi
mov dword [eax], edi
jmp 0x4205e2
Function at 0x426a10
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.00425aa0

Function at 0x426a30
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.00425aa0
Function at 0x4279a0
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov edx, str.adb_getsockname
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [ebp + 8]
call fcn.004233a0
test eax, eax
je 0x4279f0
cmp dword [eax], 0x529430
jne 0x4279f0
mov edx, dword [ebp + 0x10]
mov dword [esp + 8], edx
mov edx, dword [ebp + 0xc]
mov dword [esp + 4], edx
mov eax, dword [eax + 0xc]
mov dword [esp], eax
call dword [sym.imp.WS2_32.dll_getsockname]
sub esp, 0xc
cmp eax, 0xffffffff
je 0x427a14
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
test byte [0x55503c], 0x80
jne 0x427a37
mov ebx, dword [sym.imp.msvcrt.dll__errno]
call ebx
mov dword [eax], 9
lea esp, [ebp - 0xc]
mov eax, 0xffffffff
pop ebx
pop esi
pop edi
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
test byte [0x55503c], 0x80
mov ebx, eax
jne 0x427ad5
mov eax, ebx
call fcn.00423500
mov eax, 0xffffffff
jmp 0x4279e4
call fcn.0042d960
mov ebx, dword [sym.imp.msvcrt.dll__errno]
cmp eax, 2
jg 0x4279ff
call ebx
mov esi, dword [ebp + 8]
mov edi, dword [eax]
lea eax, [ebp - 0x1c]
mov dword [esp + 8], esi
lea esi, [ebp - 0x20]
mov dword [esp], eax
mov dword [esp + 4], str.adb_getsockname:_invalid_fd__d
call fcn.0042e9a0
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x45b
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, esi
sub esp, 0x14
call fcn.0042dbb0
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.0050d650
mov ecx, esi
call fcn.0042dc40
mov eax, dword [ebp - 0x1c]
mov dword [esp], esi
lea ecx, [eax - 0xc]
call fcn.004e2330
push ecx
call ebx
mov dword [eax], edi
jmp 0x4279ff
call fcn.0042d960
cmp eax, 2
lea esi, [esi]
jg 0x427a29
mov edi, dword [sym.imp.msvcrt.dll__errno]
call edi
mov eax, dword [eax]
mov dword [esp + 4], ebx
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x20]
mov dword [esp], eax
call fcn.0042ecc0
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x1c]
mov esi, dword [ebp + 8]
mov dword [esp], edx
mov dword [esp + 4], str.adb_getsockname:_setsockopt_on_fd__d_failed:__s_n
mov dword [esp + 0xc], eax
mov dword [esp + 8], esi
lea esi, [ebp - 0x24]
mov dword [ebp - 0x30], edx
call fcn.0042e9a0
mov ecx, esi
mov dword [esp + 0x10], 0xffffffff
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0x464
mov dword [esp], str.system_core_adb_sysdeps_win32.cpp
call fcn.0042da30
mov ecx, esi
sub esp, 0x14
call fcn.0042dbb0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ecx - 0xc]
mov dword [esp + 4], ecx
mov dword [esp], eax
mov dword [esp + 8], edx
call fcn.0050d650
mov ecx, esi
call fcn.0042dc40
mov ecx, dword [ebp - 0x1c]
mov dword [esp], esi
sub ecx, 0xc
call fcn.004e2330
mov edx, dword [ebp - 0x30]
mov esi, dword [ebp - 0x20]
lea ecx, [esi - 0xc]
push eax
mov dword [esp], edx
call fcn.004e2330
push edx
call edi
mov edi, dword [ebp - 0x2c]
mov dword [eax], edi
jmp 0x427a29