joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40603a
Capabilities:
Get file size

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameW]
push ebp
push esi
mov esi, dword [esp + 0x14]
push edi
test esi, esi
mov dword [0x7a55e8], 0x55004e
mov dword [0x7a55ec], 0x4c
mov edi, 0x400
mov ebp, 0x7a55e8
je 0x406090
push 1
push 0
push esi
call fcn.00405ee4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x4061af
cmp eax, edi
jg 0x4061af
mov esi, 0x7a5de8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x4061af
cmp eax, edi
jg 0x4061af
push esi
push ebp
push str._ls_ls_r_n
push 0x7a51e8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a8a74]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.0040642b
push 4
push 0xc0000000
push esi
call fcn.00405ee4
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x18], ebp
je 0x4061af
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4061a8
push edi
push esi
push ebp
call fcn.00405f67
test eax, eax
je 0x4061a8
push str._Rename__r_n
push esi
call fcn.00405e49
test eax, eax
jne 0x406146
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
add edi, 0xa
jmp 0x40617b
add eax, 0xa
push 0x40a580
push eax
call fcn.00405e49
mov ebp, eax
test ebp, ebp
je 0x406177
lea ecx, [esi + edi]
lea eax, [ecx + ebx]
jmp 0x406168
mov dl, byte [ecx]
mov byte [eax], dl
dec eax
dec ecx
cmp ecx, ebp
ja 0x406162
sub ebp, esi
inc ebp
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x40617d
mov ebp, dword [esp + 0x18]
mov eax, edi
push ebx
add eax, esi
push 0x7a51e8
push eax
call fcn.00405e9f
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
add edi, ebx
push edi
push esi
push ebp
call fcn.00405f96
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x4061b4
Capabilities:
Move file

Disassembly:
push 5
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x4061d7
push dword [esp + 8]
push dword [esp + 8]
call fcn.0040603a
pop ecx
pop ecx
inc dword [0x7a8b10]
ret 8
Function at 0x4062bc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
mov dword [ebp - 4], 0x800
and eax, 0x100
or eax, 0x20019
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0040625b
mov esi, dword [ebp + 0x14]
test eax, eax
jne 0x40632c
lea eax, [ebp - 4]
push edi
push eax
lea eax, [ebp + 0xc]
push esi
push eax
push 0
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp + 0x18]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
and word [esi + 0x7fe], 0
test edi, edi
pop edi
jne 0x40632c
cmp dword [ebp + 0xc], 1
je 0x406330
cmp dword [ebp + 0xc], 2
je 0x406330
and word [esi], 0
pop esi
leave
ret 0x14
Function at 0x406773
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x406797
xor eax, eax
test eax, eax
je 0x4067aa
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4067aa
xor ecx, ecx
jmp 0x4067ad
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4068d0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x7a65ec], 0
push esi
jne 0x406907
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4068e1
mov dword [ecx*4 + 0x7a65e8], eax
inc ecx
cmp ecx, 0x100
jl 0x4068dc
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406938
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x7a65e8]
xor eax, esi
inc ecx
dec edx
jne 0x40691a
pop edi
not eax
pop esi
ret 0xc

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
nop
mov ecx, 0x568a4fd4
nop
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0x133c6b76
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219
Function at 0x407f80
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6000]
push edi
or ebp, 0xffffffff
jmp 0x407fa2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x407fa9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x407f98
mov eax, 1
add ebx, ebx
jne 0x407fbb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x407fb0
jne 0x407fcc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407fb0
xor ecx, ecx
sub eax, 3
jb 0x407fe0
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x408052
mov ebp, eax
add ebx, ebx
jne 0x407feb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x407ff8
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x40801c
inc ecx
add ebx, ebx
jne 0x408008
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x407ffd
jne 0x408019
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x407ffd
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x40803c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x40802d
jmp 0x407f9e
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x40803c
add edi, ecx
jmp 0x407f9e
pop esi
mov edi, esi
mov ecx, 0x8f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x40805a
cmp byte [edi], 0
jne 0x40805a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x40805f
lea edi, [esi + 0x5000]
mov eax, dword [edi]
or eax, eax
je 0x4080d7
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x8d64]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x8ddc]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x40808c
mov ecx, edi
jns 0x4080bb
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x8de4]
or eax, eax
je 0x4080d1
mov dword [ebx], eax
add ebx, 4
jmp 0x4080a9
call dword [esi + 0x8de0]
mov ebp, dword [esi + 0x8de8]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x217]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x40810b
sub esp, 0xffffff80
jmp 0x402130

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
call 0x43000c
nop
nop
nop
nop
nop
pop eax
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
popal
jmp int.00401219
Function at 0x10001df0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6c
mov eax, dword [0x10014018]
xor eax, ebp
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x5c], ecx
cmp dword [ebp + 8], 0
je 0x10001e13
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10001e1d
mov eax, 5
jmp 0x10001f8f
cmp dword [ebp + 0xc], 0
je 0x10001e2d
mov edx, dword [ebp + 0xc]
movsx eax, byte [edx]
test eax, eax
jne 0x10001e37
mov eax, 5
jmp 0x10001f8f
movzx ecx, byte [ebp + 0x10]
push ecx
push 0
call fcn.1000bb60
add esp, 8
push 0
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.10005610
mov ecx, eax
call fcn.10006da0
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
mov edx, dword [ebp - 0x60]
add edx, 1
mov dword [ebp - 0x64], edx
mov eax, dword [ebp - 0x60]
mov cl, byte [eax]
mov byte [ebp - 0x65], cl
add dword [ebp - 0x60], 1
cmp byte [ebp - 0x65], 0
jne 0x10001e6e
mov edx, dword [ebp - 0x60]
sub edx, dword [ebp - 0x64]
mov dword [ebp - 0x6c], edx
mov eax, dword [ebp - 0x6c]
mov dword [ebp - 4], eax
push 0
push 0
push 0xffffffffffffffff
mov ecx, dword [ebp + 8]
push ecx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000d8c5
add esp, 4
mov dword [ebp - 0x54], eax
mov eax, dword [ebp - 0x54]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 8]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0x10]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp + 8]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp dword [ebp - 0xc], 2
je 0x10001f0e
cmp dword [ebp - 0xc], 4
jne 0x10001f56
push 0
push 0x194
call fcn.1000bb60
add esp, 8
push 1
push 1
mov ecx, dword [ebp - 0x5c]
call sym.AdbManager.dll_public:_int___thiscall_CAdbClient::GetFreeSpaceSize_enum_emStorageType__bool_
mov dword [ebp - 0x4c], eax
lea ecx, [ebp - 0x48]
push ecx
mov edx, dword [ebp - 0x10]
push edx
call dword [sym.imp.MSVCR100.dll__wstat64i32]
add esp, 8
test eax, eax
je 0x10001f56
mov eax, dword [ebp - 0x34]
mov dword [ebp - 0x50], eax
mov ecx, dword [ebp - 0x4c]
cmp ecx, dword [ebp - 0x50]
jge 0x10001f56
mov dword [ebp - 0xc], 6
mov edx, dword [ebp - 0x5c]
movzx eax, byte [edx + 1]
test eax, eax
je 0x10001f72
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x5c]
mov byte [edx + 1], 0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x58], eax
mov ecx, dword [ebp - 0x58]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1000d8d6
mov esp, ebp
pop ebp
ret 0xc
Function at 0x10001fa0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
mov eax, dword [0x10014018]
xor eax, ebp
mov dword [ebp - 8], eax
mov dword [ebp - 0x428], ecx
cmp dword [ebp + 8], 0
jne 0x10001fc9
mov eax, 5
jmp 0x100021ec
movzx eax, byte [ebp + 0xc]
push eax
push 0
call fcn.1000bb60
add esp, 8
mov ecx, dword [ebp + 8]
add ecx, 4
call fcn.10003cf0
mov dword [ebp - 0x410], eax
mov ecx, dword [ebp + 8]
add ecx, 0x20
call fcn.10003cf0
mov dword [ebp - 0x40c], eax
mov byte [ebp - 0x408], 0
push 0x3ff
push 0
lea ecx, [ebp - 0x407]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
mov edx, dword [ebp - 0x40c]
push edx
mov eax, dword [ebp - 0x410]
push eax
push str.Test_ImportLocalPath___s__RemotePath___s
lea ecx, [ebp - 0x408]
push ecx
call fcn.10004c20
add esp, 0x10
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x40c]
push eax
mov ecx, dword [ebp - 0x410]
push ecx
call fcn.10005610
mov ecx, eax
call fcn.10006da0
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x1000208b
push 0
push 0x19a
call fcn.1000bb60
add esp, 8
cmp dword [ebp + 8], 0
je 0x10002089
mov edx, dword [ebp + 8]
mov dword [edx + 0x60], 4
push 1
mov ecx, dword [ebp + 8]
call fcn.10001170
jmp 0x100020a5
cmp dword [ebp + 8], 0
je 0x100020a5
mov eax, dword [ebp + 8]
mov dword [eax + 0x60], 3
push 1
mov ecx, dword [ebp + 8]
call fcn.10001170
mov ecx, dword [ebp - 0x428]
movzx edx, byte [ecx + 1]
test edx, edx
je 0x100021e9
mov eax, dword [ebp - 0x410]
mov dword [ebp - 0x42c], eax
mov ecx, dword [ebp - 0x42c]
add ecx, 1
mov dword [ebp - 0x430], ecx
mov edx, dword [ebp - 0x42c]
mov al, byte [edx]
mov byte [ebp - 0x431], al
add dword [ebp - 0x42c], 1
cmp byte [ebp - 0x431], 0
jne 0x100020d2
mov ecx, dword [ebp - 0x42c]
sub ecx, dword [ebp - 0x430]
mov dword [ebp - 0x438], ecx
mov edx, dword [ebp - 0x438]
mov dword [ebp - 0x418], edx
push 0
push 0
push 0xffffffffffffffff
mov eax, dword [ebp - 0x410]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x41c], eax
mov eax, dword [ebp - 0x41c]
add eax, 1
xor ecx, ecx
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.1000d8c5
add esp, 4
mov dword [ebp - 0x420], eax
mov eax, dword [ebp - 0x420]
mov dword [ebp - 0x414], eax
mov ecx, dword [ebp - 0x41c]
lea edx, [ecx + ecx + 2]
push edx
push 0
mov eax, dword [ebp - 0x414]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov ecx, dword [ebp - 0x41c]
push ecx
mov edx, dword [ebp - 0x414]
push edx
push 0xffffffffffffffff
mov eax, dword [ebp - 0x410]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebp - 0x428]
mov byte [ecx + 2], 0
mov edx, dword [ebp - 0x414]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov eax, dword [ebp - 0x414]
mov dword [ebp - 0x424], eax
mov ecx, dword [ebp - 0x424]
push ecx
call dword [sym.imp.MSVCR100.dll_void___cdecl_operator_delete___void__]
add esp, 4
mov dword [ebp - 0x414], 0
mov edx, dword [ebp - 0x428]
mov byte [edx + 1], 0
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 8]
xor ecx, ebp
call fcn.1000d8d6
mov esp, ebp
pop ebp
ret 8
Function at 0x10002c90
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], ecx
cmp dword [ebp + 8], 0
je 0x10002ca9
mov eax, dword [ebp + 8]
movsx ecx, byte [eax]
test ecx, ecx
jne 0x10002cb3
mov eax, 5
jmp 0x10002d6e
mov dword [ebp - 4], 0
mov dword [ebp - 8], str.ls__data_app____data_local_tmp_AppList.log
mov dword [ebp - 0xc], str.su__c___ls__data_app____data_local_tmp_AppList.log_
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x10002ce1
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov byte [0x100140a0], 0
push 1
push 0x1001138c
mov ecx, dword [ebp - 0x10]
call sym.AdbManager.dll_public:_bool___thiscall_CAdbClient::ShellCommand_char_const___bool_
mov byte [0x100140a0], 1
movzx ecx, byte [ebp + 0xc]
push ecx
push 0
call fcn.1000bb60
add esp, 8
push 0
mov edx, dword [ebp - 0xc]
push edx
mov ecx, dword [ebp - 0x10]
call sym.AdbManager.dll_public:_bool___thiscall_CAdbClient::ShellCommand_char_const___bool_
movzx eax, al
test eax, eax
jne 0x10002d37
push 0
mov ecx, dword [ebp - 8]
push ecx
mov ecx, dword [ebp - 0x10]
call sym.AdbManager.dll_public:_bool___thiscall_CAdbClient::ShellCommand_char_const___bool_
movzx edx, al
test edx, edx
je 0x10002d4f
push 0
mov eax, dword [ebp + 8]
push eax
push str._data_local_tmp_AppList.log
mov ecx, dword [ebp - 0x10]
call sym.AdbManager.dll_public:_enum_emError___thiscall_CAdbClient::PullFile_char_const___char_const___bool_
mov dword [ebp - 4], eax
jmp 0x10002d56
mov dword [ebp - 4], 3
cmp dword [ebp - 4], 0
je 0x10002d6b
push 0
push 0x199
call fcn.1000bb60
add esp, 8
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret 8
Function at 0x10003950
Capabilities:
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1824
call fcn.1000e340
mov eax, dword [0x10014018]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x1824], ecx
push 0x400
call fcn.1000d8c5
add esp, 4
mov dword [ebp - 0x1820], eax
mov eax, dword [ebp - 0x1820]
mov dword [ebp - 0x80c], eax
mov ecx, dword [ebp - 0x80c]
mov byte [ecx], 0
xor edx, edx
mov word [ebp - 0x1010], dx
push 0x7fe
push 0
lea eax, [ebp - 0x100e]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x1818], cx
push 0x7fe
push 0
lea edx, [ebp - 0x1816]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x808], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x806]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x808]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x1010]
push eax
push 0
push 0x10011520
lea ecx, [ebp - 0x808]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea edx, [ebp - 0x1010]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x1014], eax
cmp dword [ebp - 0x1014], 0
je 0x10003a80
mov ecx, dword [ebp - 0x1824]
mov byte [ecx], 1
push 1
mov ecx, dword [ebp - 0x1824]
call sym.AdbManager.dll_public:_int___thiscall_CAdbClient::GetLastError_bool_
mov dword [ebp - 0x181c], eax
push 0
push 0
push 0x400
mov edx, dword [ebp - 0x80c]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x1010]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8d6
mov esp, ebp
pop ebp
ret 4
Function at 0x10003aa0
Capabilities:
Check if file exists
Copy file
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x192c
call fcn.1000e340
mov eax, dword [0x10014018]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x192c], ecx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x10003ad3
mov eax, dword [ebp + 8]
jmp 0x10003c49
mov ecx, dword [ebp - 0x192c]
mov byte [ecx + 2], 1
push 0x400
call fcn.1000d8c5
add esp, 4
mov dword [ebp - 0x1924], eax
mov edx, dword [ebp - 0x1924]
mov dword [ebp - 0x114], edx
push 0xfde9
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x110]
call fcn.10003d80
mov ecx, dword [ebp - 0x110]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x10003c2c
xor edx, edx
mov word [ebp - 0x1118], dx
push 0x7fe
push 0
lea eax, [ebp - 0x1116]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
xor ecx, ecx
mov word [ebp - 0x1920], cx
push 0x7fe
push 0
lea edx, [ebp - 0x191e]
push edx
call sub.MSVCR100.dll_memset
add esp, 0xc
xor eax, eax
mov word [ebp - 0x918], ax
push 0x7fe
push 0
lea ecx, [ebp - 0x916]
push ecx
call sub.MSVCR100.dll_memset
add esp, 0xc
lea edx, [ebp - 0x918]
push edx
push 0x400
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x1118]
push eax
push 0
push str.file
lea ecx, [ebp - 0x918]
push ecx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea edx, [ebp - 0x1118]
push edx
mov eax, dword [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x111c], eax
cmp dword [ebp - 0x111c], 0
je 0x10003c06
mov ecx, dword [ebp - 0x192c]
mov byte [ecx + 1], 1
push 0
push 0
push 0x400
mov edx, dword [ebp - 0x114]
push edx
push 0xffffffffffffffff
lea eax, [ebp - 0x1118]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
jmp 0x10003c2c
push 0
push 0
push 0x400
mov ecx, dword [ebp - 0x114]
push ecx
push 0xffffffffffffffff
mov edx, dword [ebp - 0x110]
push edx
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov eax, dword [ebp - 0x114]
mov dword [ebp - 0x1928], eax
lea ecx, [ebp - 0x110]
call fcn.10003db0
mov eax, dword [ebp - 0x1928]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1000d8d6
mov esp, ebp
pop ebp
ret 4
Function at 0x10007970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
jne 0x10007981
xor eax, eax
jmp 0x10007a23
movzx eax, word [0x100253e8]
test eax, eax
jne 0x100079ca
push 0x104
push 0x100253e8
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x100079a6
xor eax, eax
jmp 0x10007a23
push 0x5c
push 0x100253e8
call fcn.10007910
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x100079c2
xor eax, eax
jmp 0x10007a23
xor ecx, ecx
mov edx, dword [ebp - 4]
mov word [edx], cx
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x100079ec
push 0x100253e8
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_wcscpy_s]
add esp, 0xc
jmp 0x10007a0b
mov ecx, dword [ebp + 8]
push ecx
push 0x100253e8
push str._s_s
mov edx, dword [ebp + 0x10]
push edx
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
add esp, 0x14
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10007a1e
xor eax, eax
jmp 0x10007a23
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x10007fa0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov dword [ebp - 0x18], 0
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x60], 0x44
push 0x40
push 0
lea eax, [ebp - 0x5c]
push eax
call sub.MSVCR100.dll_memset
add esp, 0xc
mov dword [ebp - 0x14], 0
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], ecx
lea edx, [ebp - 0x60]
push edx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov eax, dword [ebp + 0x10]
neg eax
sbb eax, eax
and eax, 5
mov word [ebp - 0x30], ax
mov dword [ebp - 0x34], 1
lea ecx, [ebp - 0x14]
push ecx
lea edx, [ebp - 0x60]
push edx
mov eax, dword [ebp + 0x14]
push eax
push 0
push 0
push 0
push 0
push 0
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x1000802d
xor eax, eax
jmp 0x1000806c
push 0xffffffffffffffff
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea ecx, [ebp - 4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp + 0x18], 0
je 0x10008069
mov edx, dword [ebp + 0x18]
mov eax, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret