joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4018f6
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.00401831
mov esi, eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
pop ecx
cmp eax, ebx
je 0x401915
and byte [eax], bl
cmp esi, ebx
jne 0x401920
xor eax, eax
jmp 0x401a24
xor edi, edi
inc edi
push edi
push dword [ebp + 0x14]
call dword [sym.imp.MSVCRT.dll_calloc]
pop ecx
cmp eax, ebx
pop ecx
mov dword [ebp - 0x10], eax
jne 0x40194c
push 0x30
push ebx
push str.Out_of_memory
push ebx
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
call dword [sym.imp.MSVCRT.dll_exit]
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp - 0xc], edi
xor edi, edi
test eax, eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], ebx
jle 0x401a07
or dword [ebp - 8], 0xffffffff
mov eax, dword [ebp + 8]
lea esi, [ebx + eax]
mov al, byte [esi]
cmp al, 0x22
jne 0x40198e
cmp dword [ebp - 4], 0
jne 0x401988
inc dword [ebp - 8]
mov dword [ebp - 4], 1
jmp 0x4019c7
and dword [ebp - 4], 0
jmp 0x4019c7
cmp dword [ebp - 4], 0
jne 0x4019c7
movsx eax, al
push eax
call dword [sym.imp.MSVCRT.dll_isspace]
test eax, eax
pop ecx
jne 0x4019b1
cmp dword [ebp - 0xc], 1
jne 0x4019b1
inc dword [ebp - 8]
and dword [ebp - 0xc], eax
jmp 0x4019c7
movsx eax, byte [esi]
push eax
call dword [sym.imp.MSVCRT.dll_isspace]
test eax, eax
pop ecx
je 0x4019c7
mov dword [ebp - 0xc], 1
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 8]
jne 0x4019fd
cmp dword [ebp - 4], 1
je 0x4019e6
cmp dword [ebp - 0xc], 0
je 0x4019e6
cmp dword [ebp - 4], 0
jne 0x4019fd
cmp byte [esi], 0x22
jne 0x4019fd
cmp edi, dword [ebp + 0x14]
jge 0x4019f6
mov ecx, dword [ebp - 0x10]
mov al, byte [esi]
mov byte [edi + ecx], al
inc edi
jmp 0x4019fd
mov eax, dword [ebp - 0x10]
and byte [edi + eax], 0
inc ebx
cmp ebx, dword [ebp - 0x14]
jl 0x40196a
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 0x10]
call fcn.004017f5
push dword [ebp - 0x10]
call dword [sym.imp.MSVCRT.dll_free]
mov eax, dword [ebp + 0x10]
add esp, 0x10
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401a5c
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1008
call fcn.00402b30
push ebx
mov ebx, dword [ebp + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov dword [ebp + 8], eax
push 0x1000
lea eax, [ebp - 0x1008]
push 0
push eax
call sub.MSVCRT.dll_memset
push dword [ebp + 8]
lea eax, [ebp - 0x1008]
push ebx
push eax
call sub.MSVCRT.dll_memcpy
xor ecx, ecx
add esp, 0x18
cmp dword [ebp + 8], ecx
mov dword [ebp - 4], ecx
jle 0x401b06
push esi
push edi
lea edi, [ebp - 0x1008]
mov esi, ebx
sub edi, ebx
cmp dword [ebp + 8], 1
jle 0x401af7
test ecx, ecx
je 0x401af7
mov al, byte [esi]
cmp al, 0x5c
je 0x401ac7
cmp al, 0x2f
jne 0x401af7
cmp byte [ebx], 0x5c
jne 0x401ad1
cmp ecx, 1
je 0x401af7
cmp byte [ebx + 1], 0x3a
jne 0x401adc
cmp ecx, 2
je 0x401af7
and byte [edi + esi], 0
lea eax, [ebp - 0x1008]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
mov dword [ebp - 8], eax
mov al, byte [esi]
mov byte [edi + esi], al
mov ecx, dword [ebp - 4]
inc ecx
inc esi
cmp ecx, dword [ebp + 8]
mov dword [ebp - 4], ecx
jl 0x401ab3
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
leave
ret

Function at 0x401b0c
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1144
call fcn.00402b30
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x401c49
cmp dword [ebp + 0xc], 1
jne 0x401c40
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyA]
push edi
push dword [ebp + 8]
lea eax, [ebp - 0x1144]
push eax
call esi
mov ebx, 0x1000
lea eax, [ebp - 0x1144]
push ebx
push eax
call fcn.00401a29
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatA]
pop ecx
pop ecx
lea eax, [ebp - 0x1144]
push 0x404040
push eax
call edi
lea eax, [ebp - 0x144]
mov dword [ebp + 0xc], 1
push eax
lea eax, [ebp - 0x1144]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x401c34
cmp dword [ebp + 0xc], 1
jne 0x401c34
lea eax, [ebp - 0x118]
push 0x40403c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401c1c
lea eax, [ebp - 0x118]
push 0x404038
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpiA]
test eax, eax
je 0x401c1c
push dword [ebp + 8]
lea eax, [ebp - 0x1144]
push eax
call esi
lea eax, [ebp - 0x1144]
push ebx
push eax
call fcn.00401a29
pop ecx
lea eax, [ebp - 0x118]
pop ecx
push eax
lea eax, [ebp - 0x1144]
push eax
call edi
test byte [ebp - 0x144], 0x10
lea eax, [ebp - 0x1144]
je 0x401c15
push 1
push eax
call fcn.00401b0c
pop ecx
pop ecx
jmp 0x401c1c
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x144]
push eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
mov dword [ebp + 0xc], eax
jmp 0x401b99
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FindClose]
pop edi
pop esi
pop ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
xor eax, eax
leave
ret
Function at 0x401f52
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push dword [esp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
cmp byte [eax + esi - 1], 0x5c
mov edi, 0x404034
je 0x401f78
push edi
push esi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push str.racer_temp
push esi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
cmp byte [eax + esi - 1], 0x5c
je 0x401f9c
push edi
push esi
call sub.MSVCRT.dll_strcat
pop ecx
pop ecx
push dword [esp + 0xc]
push esi
call sub.MSVCRT.dll_strcat
pop ecx
xor eax, eax
pop ecx
pop edi
inc eax
pop esi
ret

Function at 0x4025f9
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
inc eax
neg eax
sbb eax, eax
and eax, ecx
ret
Function at 0x401c57
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x401c66
pop dword [ebp - 0x38]
mov eax, 0xd9193f6b
add eax, 0x2726dcfb
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x4591fd43
sub dword [ebp - 0x48], 0xf73fb7f8
mov dword [ebp - 0x44], 0xe0372493
sub dword [ebp - 0x44], 0xae03d84e
mov dword [ebp - 0x40], 0x5074dda7
sub dword [ebp - 0x40], 0x4289979
mov dword [ebp - 0x3c], 0x6a8c25e0
sub dword [ebp - 0x3c], 0x6a8c25e0
lea eax, [ebp - 0x48]
push eax
mov eax, sym.imp.kernel32.dll_GetModuleHandleA
add eax, dword [ebp - 0x38]
call dword [eax]
mov dword [ebp - 0x48], 0x35ad8be6
sub dword [ebp - 0x48], 0xc13b2290
mov dword [ebp - 0x44], 0x4276d063
sub dword [ebp - 0x44], 0x10a6eee
mov dword [ebp - 0x40], 0x29d0b03b
sub dword [ebp - 0x40], 0xc66143cf
mov dword [ebp - 0x3c], 0xa6f67149
add dword [ebp - 0x3c], 0x59098eb7
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, 0xf6ef39aa
sub eax, 0xf6af097e
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x37a5a
push 0
call eax
mov ecx, 0x86d1352
sub ecx, 0x86cc6a8
mov esi, eax
mov edi, 0x1d89ea0d
sub edi, 0x1d497a0d
add edi, dword [ebp - 0x38]
mov ebx, 0x8b913148
add ebx, 0x7d45a507
mov dword [ebp - 0x20], 0x499fdc7d
mov edx, dword [edi]
sub dword [ebp - 0x30], 0x2a60f7ec
add edx, ebx
mov dword [ebp - 0x1c], 0x12dcac15
mov dword [esi], edx
xor dword [ebp - 0x14], ecx
add esi, 0x10d7a35f
sub esi, 0x10d7a35b
add edi, 0x8a174bae
sub edi, 0x8a174baa
loop 0x401d83
add eax, 0xabdb075f
add eax, 0x54261e1c
xor ebx, ebx
add ebx, eax
add eax, 0x853fb424
add eax, 0x7ac04be1
mov ecx, 0x5e63316
add ecx, 0xfa59ccea
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

Function at 0x401fb2
Capabilities:
Delete file
Move file

Disassembly:
mov ecx, 0x404f28
jmp fcn.0040170c

Function at 0x401ff6
Capabilities:
Check if file exists
Delete directory
Get file attributes

Disassembly:
push esi
mov esi, 0x404f28
push esi
call dword [sym.imp.kernel32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x402013
push esi
call dword [sym.imp.kernel32.dll_RemoveDirectoryW]
test eax, eax
je 0x402018
push 1
pop eax
pop esi
ret
call fcn.00401fb2
pop esi
ret
Function at 0x404be0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14
mov dword [ebp - 0x10], eax
push 0x4b3d5d
mov eax, dword [eax + 8]
push eax
call sub.msvcrt.dll_fopen
add esp, 0x10
mov esi, eax
test eax, eax
je 0x404ca8
sub esp, 0xc
xor ebx, ebx
push 0x1000
call fcn.00496770
mov edx, dword [ebp - 0x10]
add esp, 0x10
test byte [esi + 0xc], 0x10
mov dword [edx + 0x10], eax
jne 0x404c7b
mov edi, 0x1000
jmp 0x404c5a
mov eax, edi
mov edx, dword [ebp - 0x10]
sub eax, ebx
push esi
push eax
push 1
mov ecx, dword [edx + 0x10]
mov eax, ebx
add eax, ecx
push eax
call sub.msvcrt.dll_fread
mov edx, dword [esi + 0xc]
add esp, 0x10
test dl, 0x20
jne 0x404c95
add ebx, eax
and edx, 0x10
jne 0x404c7b
cmp ebx, edi
jne 0x404c30
lea edi, [ebx + ebx]
push eax
push eax
mov eax, dword [ebp - 0x10]
push edi
mov eax, dword [eax + 0x10]
push eax
call fcn.004966d0
mov edx, dword [ebp - 0x10]
add esp, 0x10
mov dword [edx + 0x10], eax
jmp 0x404c30
mov edx, dword [ebp - 0x10]
sub esp, 0xc
mov dword [edx + 0xc], ebx
push esi
call sub.msvcrt.dll_fclose
add esp, 0x10
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x10]
push esi
push esi
mov ebx, dword [eax + 8]
push ebx
push str._s:_fread_failed
call fcn.0041f940
call sub.msvcrt.dll__errno
sub esp, 0xc
mov eax, dword [eax]
push eax
call sub.msvcrt.dll_strerror
add esp, 0xc
push eax
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 8]
push eax
push str.cannot_open:__s:__s
call fcn.0041f940
lea esi, [esi]
Function at 0x404cd0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x28
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], edx
push eax
call fcn.0041f190
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x404d00
mov dword [0x4e0018], 1
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
lea eax, [eax + 2]
push eax
call fcn.00496770
pop esi
mov ecx, dword [ebp - 0x14]
mov edi, eax
pop eax
push 0x4b3d85
push ecx
call sub.msvcrt.dll_fopen
add esp, 0x10
mov esi, eax
test eax, eax
je 0x404ec0
push eax
push ebx
push 1
push edi
call sub.msvcrt.dll_fread
add esp, 0x10
test eax, eax
je 0x404d42
test byte [esi + 0xc], 0x20
je 0x404d52
push eax
push eax
mov eax, dword [ebp - 0x14]
push eax
push str._s:_fread_failed
call fcn.0041f940
sub esp, 0xc
push esi
call sub.msvcrt.dll_fclose
mov byte [edi + ebx], 0xa
mov byte [edi + ebx + 1], 0
mov dl, byte [edi]
add esp, 0x10
test dl, dl
je 0x404cf8
mov eax, edi
mov dword [ebp - 0x10], 1
cmp dl, 0xa
je 0x404d93
jg 0x404e41
lea ecx, [edi + 1]
test dl, dl
mov dword [ebp - 0x1c], ecx
je 0x404da6
inc edi
mov dl, byte [edi]
cmp dl, 0xa
jne 0x404d7b
lea edx, [edi + 1]
mov byte [edi], 0
mov dword [ebp - 0x1c], edx
cmp byte [edi + 1], 0xd
je 0x404e9a
mov dl, byte [eax]
cmp dl, 0x20
je 0x404e2b
cmp dl, 9
je 0x404e2b
mov ebx, eax
mov esi, eax
jmp 0x404dce
cmp dl, 9
je 0x404dd3
cmp dl, 0xa
je 0x404e08
cmp dl, 0xd
je 0x404e08
test dl, dl
je 0x404e08
inc ebx
mov dl, byte [ebx]
cmp dl, 0x20
jne 0x404db8
cmp dl, 0xa
je 0x404e08
cmp dl, 0xd
je 0x404e08
test dl, dl
je 0x404e08
mov dl, byte [ebx + 1]
cmp dl, 0x20
je 0x404e84
cmp dl, 9
je 0x404e84
cmp dl, 0xa
je 0x404e08
cmp dl, 0xd
je 0x404e08
test dl, dl
jne 0x404ea5
mov byte [ebx], 0
cmp esi, ebx
jb 0x404e78
mov dl, byte [edi + 1]
mov eax, dword [ebp - 0x1c]
test dl, dl
je 0x404cf8
mov ecx, dword [ebp - 0x10]
mov edi, eax
inc ecx
mov dword [ebp - 0x10], ecx
jmp 0x404d76
mov esi, eax
lea esi, [esi]
inc esi
mov dl, byte [esi]
cmp dl, 0x20
je 0x404e30
cmp dl, 9
je 0x404e30
mov ebx, esi
jmp 0x404dce
cmp dl, 0xd
je 0x404e57
cmp dl, 0x23
jne 0x404d8b
mov byte [edi], 0
jmp 0x404d8b
lea ecx, [edi + 1]
mov byte [edi], 0
mov dword [ebp - 0x1c], ecx
cmp byte [edi + 1], 0xa
jne 0x404da6
mov edi, dword [ebp - 0x1c]
mov edx, edi
inc edx
mov dword [ebp - 0x1c], edx
jmp 0x404da6
mov edx, dword [ebp - 0x18]
mov eax, esi
call fcn.00401880
jmp 0x404e0f
mov eax, ebx
mov dl, byte [eax + 2]
inc eax
cmp dl, 0x20
je 0x404e86
cmp dl, 9
jne 0x404df6
jmp 0x404e86
mov edi, edx
inc edx
mov dword [ebp - 0x1c], edx
jmp 0x404da6
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x14]
push eax
push str._s:_d:_Ignoring_rubbish_found_on_this_line
call fcn.0041f170
add esp, 0x10
jmp 0x404e08
call sub.msvcrt.dll__errno
sub esp, 0xc
mov edx, dword [eax]
push edx
call sub.msvcrt.dll_strerror
add esp, 0xc
push eax
mov eax, dword [ebp - 0x14]
push eax
push str.cannot_open__s:__s
call fcn.0041f940
lea esi, [esi]
lea edi, [edi]
Function at 0x41ee20
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 4
mov eax, dword [ebp + 8]
call fcn.0041ed70
sub esp, 0xc
push eax
call sub.msvcrt.dll__mktemp
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x41ee48
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
sub esp, 0xc
push eax
call sub.msvcrt.dll__mkdir
add esp, 0x10
test eax, eax
sete al
and eax, 0xff
neg eax
and ebx, eax
mov eax, ebx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x420010
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
sub eax, 0x10
mov dword [eax + 0x10], edx
mov dword [ebp + 0x10], eax
mov eax, dword [ebp + 8]
mov dword [ebp + 0xc], edx
add eax, 0x48
mov dword [ebp + 8], eax
pop ebp
jmp 0x42b690
push ebp
xor edx, edx
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
mov edi, dword [eax + 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
mov eax, dword [esi + 8]
div edi
mov eax, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, dword [edx]
test eax, eax
jne 0x42b6c8
jmp 0x42b731
mov edx, eax
mov eax, dword [eax]
test eax, eax
je 0x42b731
cmp esi, eax
jne 0x42b6c0
mov eax, dword [esi]
xor ebx, ebx
mov dword [edx], eax
mov edx, dword [ebp + 0xc]
mov dword [esi + 4], edx
mov ecx, edx
mov al, byte [edx]
inc ecx
test al, al
je 0x42b6ff
xor edx, edx
mov dl, al
lea eax, [edx + ebx]
shl edx, 0x11
add eax, edx
xor edx, edx
mov ebx, eax
shr ebx, 2
xor ebx, eax
mov al, byte [ecx]
mov dl, al
inc ecx
test al, al
jne 0x42b6e5
mov eax, dword [ebp + 0xc]
sub ecx, eax
lea eax, [ecx - 1]
lea edx, [eax + ebx]
shl eax, 0x11
add edx, eax
mov eax, edx
shr eax, 2
xor eax, edx
xor edx, edx
mov dword [esi + 8], eax
div edi
mov eax, dword [ebp - 0x10]
lea edx, [eax + edx*4]
mov eax, dword [edx]
mov dword [esi], eax
mov dword [edx], esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
push eax
push str.bfd_hash_rename
push 0x243
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.27_bfd_hash.c
call fcn.00424440
lea esi, [esi]
lea edi, [edi]
Function at 0x4255c0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ebp + 0x10]
mov ebx, ecx
mov edx, dword [ebp + 8]
add ebx, eax
xor edx, 0xffffffff
cmp ecx, ebx
jae 0x4255f0
mov al, byte [ecx]
inc ecx
xor eax, edx
shr edx, 8
and eax, 0xff
xor edx, dword [eax*4 + 0x4b9500]
cmp ecx, ebx
jne 0x4255d8
xor edx, 0xffffffff
pop ebx
mov eax, edx
pop ebp
ret

Function at 0x4256d0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
test eax, eax
je 0x4257f8
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x4257f8
test esi, esi
je 0x4257f8
push ebx
push ebx
push 0x4b9460
push esi
call fcn.00423890
xor edi, edi
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x425728
jmp 0x425811
push eax
push 0x4e04d0
push edi
call fcn.004255c0
add esp, 0xc
mov edi, eax
push ebx
push 0x2000
push 1
push 0x4e04d0
call sub.msvcrt.dll_fread
add esp, 0x10
test eax, eax
jne 0x425717
sub esp, 0xc
push ebx
call sub.msvcrt.dll_fclose
mov dword [esp], esi
call fcn.004a6cb0
mov dword [ebp - 0x10], eax
mov dword [esp], eax
call sub.msvcrt.dll_strlen
mov ebx, eax
lea esi, [eax + 4]
and esi, 0xfffffffc
lea eax, [esi + 4]
mov dword [ebp - 0x14], eax
mov dword [esp], eax
call fcn.0042d1f0
add esp, 0x10
xor edx, edx
mov dword [ebp - 0x18], eax
test eax, eax
je 0x425807
push ecx
push ebx
mov edx, dword [ebp - 0x10]
push edx
push eax
call sub.msvcrt.dll_memcpy
add esp, 0xc
mov edx, dword [ebp - 0x18]
mov eax, esi
add edx, ebx
sub eax, ebx
push eax
push 0
push edx
call sub.msvcrt.dll_memset
pop ebx
pop eax
mov eax, dword [ebp + 8]
mov edx, dword [eax + 4]
mov eax, dword [ebp - 0x18]
add eax, esi
push eax
push edi
call dword [edx + 0x30]
mov eax, dword [ebp - 0x14]
pop edx
pop ecx
push eax
push 0
push 0
mov eax, dword [ebp - 0x18]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.0041fec0
add esp, 0x20
mov edx, 1
test eax, eax
jne 0x425807
sub esp, 0xc
mov eax, dword [ebp - 0x18]
push eax
call fcn.004ae988
xor edx, edx
add esp, 0x10
mov eax, edx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push 5
call fcn.00424660
xor edx, edx
add esp, 0x10
lea esp, [ebp - 0xc]
mov eax, edx
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push 1
call fcn.00424660
xor edx, edx
add esp, 0x10
jmp 0x425807
Function at 0x42baf0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
xor ebx, ebx
mov eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], eax
lea edx, [edi + 1]
mov al, byte [edi]
test al, al
je 0x42bb3a
xor ecx, ecx
mov cl, al
lea esi, [esi]
lea eax, [ecx + ebx]
shl ecx, 0x11
add eax, ecx
xor ecx, ecx
mov ebx, eax
shr ebx, 2
xor ebx, eax
mov al, byte [edx]
mov cl, al
inc edx
test al, al
jne 0x42bb20
sub edx, edi
mov ecx, dword [ebp - 0x18]
dec edx
mov eax, edx
mov dword [ebp - 0x14], edx
shl edx, 0x11
add eax, ebx
add eax, edx
xor edx, edx
mov esi, eax
shr esi, 2
xor esi, eax
mov eax, esi
div dword [ecx + 0xc]
mov eax, dword [ecx]
mov ebx, dword [eax + edx*4]
test ebx, ebx
jne 0x42bb6b
jmp 0x42bb8d
mov ebx, dword [ebx]
test ebx, ebx
je 0x42bb8d
cmp esi, dword [ebx + 8]
jne 0x42bb65
push eax
push eax
push edi
mov eax, dword [ebx + 4]
push eax
call sub.msvcrt.dll_strcmp
add esp, 0x10
test eax, eax
jne 0x42bb65
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, dword [ebp - 0x1c]
xor ebx, ebx
test eax, eax
je 0x42bb83
mov eax, dword [ebp - 0x20]
test eax, eax
je 0x42bbd9
mov eax, dword [ebp - 0x18]
mov ecx, dword [eax + 8]
mov eax, dword [ebp - 0x14]
inc eax
mov dword [ebp - 0x10], eax
jne 0x42bbf1
mov eax, 8
cmp dword [ecx + 4], eax
jae 0x42bc01
push ebx
push ebx
push eax
push ecx
call fcn.004a6a50
add esp, 0x10
mov ebx, eax
test ebx, ebx
je 0x42bc15
push edx
mov eax, dword [ebp - 0x10]
push eax
push edi
push ebx
mov edi, ebx
call sub.msvcrt.dll_memcpy
add esp, 0x10
mov ecx, dword [ebp - 0x18]
mov dword [ebp + 0x10], esi
mov dword [ebp + 0xc], edi
mov dword [ebp + 8], ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0042b750
mov eax, dword [ebp - 0x14]
add eax, 8
and eax, 0xfffffff8
je 0x42bbb6
cmp dword [ecx + 4], eax
jb 0x42bbb6
mov ebx, dword [ecx]
mov edx, dword [ecx + 4]
add ebx, eax
sub edx, eax
mov dword [ecx], ebx
mov dword [ecx + 4], edx
mov ebx, dword [ecx]
sub ebx, eax
jmp 0x42bbc4
sub esp, 0xc
push 6
call fcn.00424660
add esp, 0x10
jmp 0x42bb83

Function at 0x42c260
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42c2a4
cld
mov edi, str.default
mov ecx, 8
mov esi, dword [ebp - 0x14]
repe cmpsb byte [esi], byte es:[edi]
jne 0x42c2c9
mov eax, dword [0x4afb14]
test eax, eax
je 0x42c2c0
test ebx, ebx
je 0x42c29c
or byte [ebx + 0x2b], 4
mov dword [ebx + 4], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
sub esp, 0xc
push str.GNUTARGET
call sub.msvcrt.dll_getenv
add esp, 0x10
mov dword [ebp - 0x14], eax
test eax, eax
jne 0x42c276
jmp 0x42c288
mov eax, dword [0x4afb10]
mov eax, dword [eax]
jmp 0x42c291
test ebx, ebx
je 0x42c2d1
and byte [ebx + 0x2b], 0xfb
mov eax, dword [ebp - 0x14]
call fcn.0042c1b0
test eax, eax
je 0x42c29c
test ebx, ebx
je 0x42c29c
mov dword [ebx + 4], eax
jmp 0x42c29c
Function at 0x42fd70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x1c
mov esi, dword [ebp + 0x14]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp + 0x10]
mov eax, dword [esi + 4]
mov edx, dword [ebp + 0xc]
mov dword [ebp - 0x20], ecx
cmp eax, 1
je 0x42fdb0
cmp eax, 2
je 0x42fdd0
push eax
push str._bfd_default_link_order
push 0x9c7
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.27_bfd_linker.c
call fcn.00424440
lea esi, [esi]
mov dword [ebp + 0xc], 0
mov dword [ebp + 8], esi
mov ecx, dword [ebp - 0x20]
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
jmp fcn.0042f9e0
mov eax, dword [ebp - 0x20]
test byte [eax + 0x15], 1
je 0x42fe4a
mov edi, dword [esi + 0xc]
mov ebx, 1
test edi, edi
je 0x42fe40
mov ecx, dword [esi + 0x14]
mov dword [ebp - 0x10], ecx
mov ebx, dword [esi + 0x10]
test ebx, ebx
je 0x42fe63
cmp edi, ebx
ja 0x42fea4
sub esp, 0xc
mov eax, dword [ebp - 0x1c]
mov ebx, dword [esi + 8]
push eax
call fcn.00424f40
imul eax, ebx
pop edx
xor edx, edx
pop ecx
push edi
push edx
push eax
mov edi, dword [ebp - 0x10]
push edi
mov ebx, dword [ebp - 0x20]
push ebx
mov ecx, dword [ebp - 0x1c]
push ecx
call fcn.0041fec0
mov ecx, dword [ebp - 0x10]
add esp, 0x20
mov ebx, eax
cmp dword [esi + 0x14], ecx
je 0x42fe40
sub esp, 0xc
push ecx
call fcn.004ae988
add esp, 0x10
lea esi, [esi]
lea esp, [ebp - 0xc]
mov eax, ebx
pop ebx
pop esi
pop edi
pop ebp
ret
push edi
push edi
push 0x9de
push str._usr_local_google_buildbot_src_android_gcc_toolchain_build_.._binutils_binutils_2.27_bfd_linker.c
call fcn.00423990
add esp, 0x10
jmp 0x42fdd9
push ebx
mov eax, dword [ebp - 0x1c]
mov ecx, dword [ebp - 0x20]
mov edx, dword [eax + 0x84]
mov eax, dword [ecx + 0x14]
shr eax, 4
and eax, 1
push eax
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ecx + 4]
mov ecx, dword [eax + 8]
test ecx, ecx
sete al
and eax, 0xff
push eax
push edi
call dword [edx + 0x2c]
add esp, 0x10
mov dword [ebp - 0x10], eax
test eax, eax
jne 0x42fdfa
xor ebx, ebx
jmp 0x42fe40
sub esp, 0xc
push edi
call fcn.0042d1f0
add esp, 0x10
test eax, eax
je 0x42fea0
mov dword [ebp - 0x10], eax
cmp ebx, 1
je 0x42ff02
sub edi, ebx
mov eax, ebx
neg eax
mov dword [ebp - 0x14], edi
mov edi, dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
jmp 0x42fed3
mov dword [ebp - 0x14], edx
push ecx
push ebx
mov edx, dword [esi + 0x14]
push edx
push edi
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 0x18]
mov edx, dword [ebp - 0x14]
add edi, ebx
add edx, eax
add esp, 0x10
lea eax, [edx + ebx]
cmp ebx, eax
jbe 0x42fed0
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x42ff20
mov edi, dword [esi + 0xc]
jmp 0x42fdfa
mov eax, dword [esi + 0x14]
mov al, byte [eax]
push edx
and eax, 0xff
push edi
push eax
mov ebx, dword [ebp - 0x10]
push ebx
call sub.msvcrt.dll_memset
add esp, 0x10
jmp 0x42fdfa
push eax
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [esi + 0x14]
push eax
push edi
call sub.msvcrt.dll_memcpy
add esp, 0x10
jmp 0x42fefa
Function at 0x4457d0
Capabilities:
Hash data using djb2

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, 0x1505
mov eax, dword [ebp + 8]
mov dl, byte [eax]
test dl, dl
je 0x4457fb
mov ecx, eax
mov eax, ebx
and edx, 0xff
shl eax, 5
add eax, edx
mov dl, byte [ecx + 1]
add ebx, eax
inc ecx
test dl, dl
jne 0x4457e4
mov eax, ebx
pop ebx
pop ebp
ret