joyce8/EMBER2024-capa huggingface dataset:
Function at 0x423a20
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [ebp + 0x18]
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x14]
mov dword [esp], eax
mov eax, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov esi, eax
test eax, eax
jne 0x423a75
jmp 0x423ae9
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
call edi
mov dword [eax], 5
call edi
cmp dword [eax], 4
jne 0x423ae9
mov dword [esp + 8], 0
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x20], 0
mov eax, dword [esp]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x1c], eax
push dword [esp + 0xc]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__get_osfhandle]
add esp, 4
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
push ecx
push esi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x423a60
mov ecx, dword [esp + 8]
cmp ecx, 0xffffffff
mov edi, dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
je 0x423a6e
add ebx, ecx
mov eax, esi
sub eax, ecx
mov edx, ecx
sar edx, 0x1f
add dword [esp], ecx
adc dword [esp + 4], edx
test ecx, ecx
jg 0x423a46
test esi, esi
sete al
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x424010
Capabilities:
Terminate process

Disassembly:
push edi
push esi
push eax
mov edi, dword [esp + 0x10]
lea eax, [esp + 0x14]
mov dword [esp], eax
mov esi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call esi
add esp, 4
push 0x55fe88
push eax
call fcn.0040de00
add esp, 8
push 2
call esi
add esp, 4
push dword [esp]
push edi
push eax
call fcn.0040ef90
add esp, 0xc
push 2
call esi
add esp, 4
push 0x55fe9a
push eax
call fcn.0040de00
add esp, 8
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [eax]
Function at 0x463640
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
mov byte [esp + 0xc], 8
mov dword [esp + 0xd], 0x746f6f62
mov dword [esp + 8], 0
mov byte [esp], 0xe
mov dword [esp + 1], 0x746f6f42
mov dword [esp + 4], 0x676e6974
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x4636ef
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, esp
push edx
call dword [eax + 0x18]
lea eax, [esp + 0xc]
mov ecx, esi
push 0
push ebx
push edi
push eax
call fcn.00463d40
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x4636ef
mov edi, eax
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
call dword [eax + 0x18]
test byte [esp], 1
je 0x4636d1
push dword [esp + 8]
call fcn.0041a380
add esp, 4
test byte [esp + 0xc], 1
je 0x4636e4
push dword [esp + 0x14]
call fcn.0041a380
add esp, 4
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
ret 8
call fcn.0040e230
nop word cs:[eax + eax]
nop

Function at 0x463f60
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebx
push edi
push esi
sub esp, 0x1c
mov esi, ecx
mov dword [esp + 0x14], 0
mov byte [esp + 0xc], 0xc
mov dword [esp + 0xd], 0x6f626572
mov word [esp + 0x11], 0x746f
mov byte [esp + 0x13], 0
mov dword [esp + 8], 0
mov byte [esp], 0x12
mov dword [esp + 1], 0x6f626552
mov dword [esp + 5], 0x6e69746f
mov byte [esp + 9], 0x67
mov ecx, dword [ecx + 0x20]
test ecx, ecx
je 0x464018
mov ebx, dword [esp + 0x30]
mov edi, dword [esp + 0x2c]
mov eax, dword [ecx]
mov edx, esp
push edx
call dword [eax + 0x18]
lea eax, [esp + 0xc]
mov ecx, esi
push 0
push ebx
push edi
push eax
call fcn.00463d40
mov dword [esp + 0x18], eax
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x464018
mov edi, eax
mov eax, dword [ecx]
lea edx, [esp + 0x18]
push edx
call dword [eax + 0x18]
test byte [esp], 1
je 0x463ffa
push dword [esp + 8]
call fcn.0041a380
add esp, 4
test byte [esp + 0xc], 1
je 0x46400d
push dword [esp + 0x14]
call fcn.0041a380
add esp, 4
mov eax, edi
add esp, 0x1c
pop esi
pop edi
pop ebx
ret 8
call fcn.0040e230
nop dword [eax]
Function at 0x4673e0
Capabilities:
Write file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
xor edi, edi
cmp dword [ecx + 0x40], 0
je 0x46758e
mov esi, ecx
mov ecx, dword [ecx + 0x44]
test ecx, ecx
je 0x467598
mov eax, dword [esi + 0x54]
test al, 0x10
jne 0x467431
test al, 8
je 0x46758c
mov eax, dword [esi + 0x4c]
mov dword [esp], eax
cmp byte [esi + 0x5a], 0
je 0x4674d0
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
mov eax, ecx
sar eax, 0x1f
xor ebx, ebx
jmp 0x46753c
mov eax, dword [esi + 0x18]
cmp eax, dword [esi + 0x14]
je 0x46744b
mov eax, dword [esi]
mov ecx, esi
push 0xffffffffffffffff
call dword [eax + 0x34]
cmp eax, 0xffffffff
je 0x467556
lea eax, [esi + 0x48]
mov dword [esp + 8], eax
nop word cs:[eax + eax]
nop dword [eax]
mov dword [esp + 4], 0
mov eax, dword [esi + 0x20]
mov ecx, dword [esi + 0x44]
mov edx, dword [esi + 0x34]
add edx, eax
mov edi, dword [ecx]
lea ebx, [esp + 4]
push ebx
push edx
push eax
push dword [esp + 0x14]
call dword [edi + 0x14]
mov ebx, eax
mov ebp, dword [esp + 4]
mov eax, dword [esi + 0x20]
sub ebp, eax
push dword [esi + 0x40]
push ebp
push 1
push eax
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fwrite
add esp, 0x10
mov edi, 0xffffffff
cmp eax, ebp
jne 0x46758e
cmp ebx, 1
je 0x467460
cmp ebx, 2
je 0x46758e
push dword [esi + 0x40]
call sub.api_ms_win_crt_stdio_l1_1_0.dll_fflush
add esp, 4
test eax, eax
jne 0x46758e
jmp 0x46758c
mov eax, dword [ecx]
call dword [eax + 0x18]
mov edx, dword [esi + 0x24]
mov edi, dword [esi + 0x28]
sub edi, edx
test eax, eax
jle 0x4674fc
mov edx, edi
sar edx, 0x1f
mov ecx, dword [esi + 0x10]
sub ecx, dword [esi + 0xc]
imul ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, edi
adc eax, edx
xor ebx, ebx
jmp 0x46753c
mov eax, dword [esi + 0xc]
cmp eax, dword [esi + 0x10]
je 0x467533
mov ebx, edi
sar ebx, 0x1f
mov ecx, dword [esi + 0x44]
sub eax, dword [esi + 8]
mov ebp, dword [ecx]
push eax
push edx
push dword [esi + 0x20]
lea eax, [esp + 0xc]
push eax
call dword [ebp + 0x20]
mov ecx, dword [esi + 0x24]
add eax, dword [esi + 0x20]
sub ecx, eax
mov eax, ecx
sar eax, 0x1f
add ecx, edi
adc eax, ebx
mov bl, 1
jmp 0x46753c
mov eax, edi
sar eax, 0x1f
xor ebx, ebx
mov ecx, edi
xor edx, edx
neg ecx
sbb edx, eax
push 1
push edx
push ecx
push dword [esi + 0x40]
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll__fseeki64]
add esp, 0x10
test eax, eax
je 0x46755d
mov edi, 0xffffffff
jmp 0x46758e
test bl, bl
je 0x467567
mov eax, dword [esp]
mov dword [esi + 0x48], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x28], eax
mov dword [esi + 0x24], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x54], 0
xor edi, edi
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004679d0
int3
Function at 0x46e530
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.0046df00

Function at 0x46eb10
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x340
mov esi, dword [ebp + 8]
lea eax, [esp + 0x36]
push 0x304
push 0
push eax
call sub.api_ms_win_crt_string_l1_1_0.dll_memset
add esp, 0xc
xorps xmm0, xmm0
movaps xmmword [esp + 0x10], xmm0
mov word [esp + 0x20], 0
mov dword [esp + 4], 0
mov dword [esp], 0
mov byte [esp + 8], 0
xor ebx, ebx
test esi, esi
je 0x46ec15
lea eax, [esp + 0x10]
push eax
push dword [esi]
call dword [sym.imp.AdbWinApi.dll_AdbGetUsbDeviceDescriptor]
add esp, 8
test al, al
je 0x46ec15
mov eax, esp
push eax
push dword [esi]
call dword [sym.imp.AdbWinApi.dll_AdbGetUsbInterfaceDescriptor]
add esp, 8
test al, al
je 0x46ec15
cmp byte [esp + 4], 2
jne 0x46ec15
mov edi, dword [ebp + 0xc]
mov eax, dword [esp + 0x18]
mov dword [esp + 0x2c], eax
mov al, byte [esp + 0x14]
mov byte [esp + 0x30], al
movzx eax, word [esp + 0x15]
mov word [esp + 0x31], ax
mov al, byte [esp + 5]
mov byte [esp + 0x33], al
movzx eax, word [esp + 6]
mov word [esp + 0x34], ax
mov byte [esp + 0x38], 1
mov dword [esp + 0xc], 0x100
lea eax, [esp + 0x39]
lea ecx, [esp + 0xc]
push 1
push ecx
push eax
push dword [esi]
call dword [sym.imp.AdbWinApi.dll_AdbGetSerialNumber]
add esp, 0x10
test al, al
jne 0x46ebf4
mov byte [esp + 0x39], 0
mov byte [esp + 0x239], 0
mov byte [esp + 0x139], 0
lea eax, [esp + 0x2c]
push eax
call edi
add esp, 4
xor ebx, ebx
test eax, eax
sete bl
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4940f0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x353], 0
mov byte [ebp - 0x352], 0xda
and byte [ebp - 0x351], 0
mov byte [ebp - 0x350], 0x62
mov byte [ebp - 0x34f], 0x40
mov byte [ebp - 0x34e], 0x51
mov byte [ebp - 0x34d], 0x75
mov byte [ebp - 0x34c], 0x57
mov byte [ebp - 0x34b], 0x4a
mov byte [ebp - 0x34a], 0x46
mov byte [ebp - 0x349], 0x40
mov byte [ebp - 0x348], 0x56
mov byte [ebp - 0x347], 0x56
mov byte [ebp - 0x346], 0x6d
mov byte [ebp - 0x345], 0x40
mov byte [ebp - 0x344], 0x44
mov byte [ebp - 0x343], 0x55
mov byte [ebp - 0x342], 0x25
lea eax, [ebp - 0x354]
push eax
call fcn.004938e6
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.0049389b
add esp, 0xc
mov dword [ebp - 0x68c], eax
call dword [ebp - 0x68c]
mov dword [ebp - 0x674], eax
mov dword [ebp - 0x384], 4
and byte [ebp - 0x334], 0
push 0x40
pop ecx
xor eax, eax
lea edi, [ebp - 0x333]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov dword [ebp - 0x670], 4
and byte [ebp - 0x3c4], 0
invalid
movsd dword es:[edi], dword [esi]
Function at 0x497f80
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 0x497fb8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x497fae
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x497fba
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x497fa0
xor eax, eax
pop ebx
pop esi
ret
Function at 0x49dd40
Capabilities:
Get system information on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, dword [ebp + 0x14]
mov edi, dword [ebp + 0x10]
mov ebx, dword [ebp + 0xc]
mov al, byte [0x587940]
test al, al
je 0x49de44
push dword [0x58793c]
push dword [0x587938]
push esi
push edi
call fcn.00532070
add esp, 0x10
mov dword [esp + 0xc], eax
sub edi, eax
sbb esi, 0
mov eax, dword [ebp + 0x1c]
and eax, 2
add eax, 2
push 0
push 0
push 0
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
test eax, eax
je 0x49ddf2
mov ebx, eax
mov eax, dword [ebp + 0x18]
mov ecx, dword [esp + 0xc]
add eax, ecx
mov ecx, dword [ebp + 0x1c]
test cl, 2
mov ecx, 4
mov edx, 0xf001f
cmove edx, ecx
push eax
push edi
push esi
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
je 0x49de2c
mov esi, eax
push 0x10
call fcn.0041a1e0
add esp, 4
mov dword [eax], esi
mov ecx, dword [ebp + 0x18]
mov dword [eax + 4], ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, ecx
jmp 0x49de3c
cmp dword [ebp + 0x18], 0
jne 0x49de33
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3ee
jne 0x49de33
push 0x10
call fcn.0041a1e0
add esp, 4
mov dword [eax], 0x56a2bb
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax + 0xc], 0
jmp 0x49dde9
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp + 8]
mov dword [eax], 0
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
push 0x587940
call fcn.0049c0a0
add esp, 4
test eax, eax
je 0x49dd62
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
mov dword [esp + 0x30], 0
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [esp + 0x2c]
mov dword [0x587938], eax
mov dword [0x58793c], 0
push 0x587940
call fcn.0049c210
add esp, 4
jmp 0x49dd62
Function at 0x4a02e0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebx
push edi
push esi
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x10]
not eax
test ebx, ebx
je 0x4a035e
mov ecx, dword [esp + 0x14]
test bl, 1
jne 0x4a0303
mov edx, ebx
cmp ebx, 1
jne 0x4a0320
jmp 0x4a035e
lea edx, [ebx - 1]
movzx esi, byte [ecx]
add ecx, 1
movzx edi, al
xor edi, esi
shr eax, 8
xor eax, dword [edi*4 + 0x56a458]
cmp ebx, 1
je 0x4a035e
xor esi, esi
nop word cs:[eax + eax]
nop dword [eax]
movzx edi, byte [ecx + esi]
movzx ebx, al
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x56a458]
movzx edi, byte [ecx + esi + 1]
movzx ebx, al
xor ebx, edi
shr eax, 8
xor eax, dword [ebx*4 + 0x56a458]
add esi, 2
cmp edx, esi
jne 0x4a0330
not eax
pop esi
pop edi
pop ebx
ret

Function at 0x4a0370
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
mov esi, dword [esp + 0x1c]
test esi, esi
je 0x4a03ad
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x14]
xor ebp, ebp
nop word cs:[eax + eax]
mov eax, esi
sub eax, ebp
push eax
push edi
push ebx
call sub.api_ms_win_crt_stdio_l1_1_0.dll__read
add esp, 0xc
test eax, eax
js 0x4a03b1
je 0x4a03bf
add edi, eax
add ebp, eax
cmp ebp, esi
jb 0x4a0390
xor eax, eax
jmp 0x4a03c4
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__errno]
mov ecx, eax
xor eax, eax
sub eax, dword [ecx]
jmp 0x4a03c4
mov eax, 0xffffffea
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4ad110
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
cmp eax, 0x80
je 0x4ad129
cmp eax, 0x100
je 0x4ad129
cmp eax, 0xc0
jne 0x4ad12e
jmp fcn.004acd30
mov eax, 0xfffffffe
ret
Function at 0x4b0d50
Capabilities:
Encode data using xor

Disassembly:
cmp dword [esp + 0x10], 1
jne 0x4b0d6c
push dword [esp + 0xc]
push dword [esp + 0xc]
push dword [esp + 0xc]
call fcn.004ac5d0
add esp, 0xc
ret
jmp fcn.004ac970
Function at 0x4eaf80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov ecx, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
xorps xmm0, xmm0
movaps xmmword [esp + 0x20], xmm0
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp], xmm0
test ecx, ecx
je 0x4eb06e
xor eax, eax
cmp ecx, 0x30
ja 0x4eb09e
mov eax, dword [ebp + 0x10]
movups xmm0, xmmword [edx + 0x20]
movaps xmmword [esp + 0x20], xmm0
movups xmm0, xmmword [edx]
movups xmm1, xmmword [edx + 0x10]
movaps xmmword [esp + 0x10], xmm1
movaps xmmword [esp], xmm0
xor esi, esi
cmp ecx, 8
jb 0x4eb050
xor esi, esi
cmp ecx, 0x10
jb 0x4eb01e
mov esi, ecx
and esi, 0xfffffff0
movups xmm0, xmmword [eax]
xorps xmm0, xmmword [esp]
movaps xmmword [esp], xmm0
cmp esi, 0x10
je 0x4eb015
movups xmm0, xmmword [eax + 0x10]
xorps xmm0, xmmword [esp + 0x10]
movaps xmmword [esp + 0x10], xmm0
cmp esi, 0x20
je 0x4eb015
movups xmm0, xmmword [eax + 0x20]
xorps xmm0, xmmword [esp + 0x20]
movaps xmmword [esp + 0x20], xmm0
cmp esi, ecx
je 0x4eb04c
test cl, 8
je 0x4eb050
mov edx, esi
mov esi, ecx
and esi, 0xfffffff8
nop word cs:[eax + eax]
nop
movsd xmm0, qword [eax + edx]
movsd xmm1, qword [esp + edx]
xorps xmm1, xmm0
movlps qword [esp + edx], xmm1
add edx, 8
cmp esi, edx
jne 0x4eb030
cmp esi, ecx
jne 0x4eb050
mov edx, esp
jmp 0x4eb06e
mov edx, esp
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, byte [eax + esi]
xor byte [esp + esi], bl
add esi, 1
cmp ecx, esi
jne 0x4eb060
mov esi, dword [ebp + 8]
mov ecx, esi
push 0x30
call fcn.004eb0b0
add esp, 4
test eax, eax
je 0x4eb09c
mov dword [esi + 0x114], 0
mov dword [esi + 0x110], 1
mov eax, 1
jmp 0x4eb09e
xor eax, eax
lea esp, [ebp - 8]
pop esi
pop ebx
pop ebp
ret
Function at 0x4ebaa0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [esp + 0x30]
test eax, eax
je 0x4ebac5
cmp eax, 0xa
ja 0x4ebad6
push 0xcb
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x7e
jmp 0x4ebbad
push 0xc2
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push pe_nt_image_headers32
jmp 0x4ebbad
mov edx, dword [esp + 0x2c]
movzx ecx, byte [edx]
add ecx, 0xffffffff
mov dword [esp + 4], ecx
movzx ecx, byte [edx + 1]
xor ecx, 2
add ecx, 0xffffffff
mov dword [esp], ecx
add eax, 0xfffffffe
and eax, 0xfffffffe
mov dword [esp + 8], eax
mov esi, 0xffffffff
mov ecx, 2
xor ebp, ebp
mov edx, 0
nop dword [eax]
mov eax, ecx
xor eax, ebp
mov edi, dword [esp + 0x2c]
cmp byte [edi + ecx], 0
mov ebx, 0
cmove ebx, esi
cmove esi, edx
and ebx, eax
xor ebx, ebp
lea eax, [ecx + 1]
xor eax, ebx
cmp byte [edi + ecx + 1], 0
mov ebp, 0
cmove ebp, esi
cmove esi, edx
and ebp, eax
xor ebp, ebx
cmp ecx, dword [esp + 8]
lea ecx, [ecx + 2]
jne 0x4ebb10
mov eax, dword [esp + 0x2c]
mov ebx, dword [esp + 0x30]
test bl, 1
je 0x4ebb73
mov edx, ecx
xor edx, ebp
xor edi, edi
cmp byte [eax + ecx], 0
mov ecx, 0
cmove ecx, esi
cmove esi, edi
and ecx, edx
xor ebp, ecx
lea ecx, [ebp - 0xa]
mov edx, ebp
not edx
test ecx, edx
js 0x4ebb9e
mov ecx, dword [esp]
and ecx, dword [esp + 4]
jns 0x4ebb9e
cmp esi, 0xffffffff
je 0x4ebb9e
add ebp, 1
sub ebx, ebp
cmp ebx, dword [esp + 0x28]
jbe 0x4ebbc3
push 0xf8
jmp 0x4ebba3
push 0xf0
push str.external_boringssl_src_crypto_fipsmodule_rsa_padding.c
push 0x89
push 0
push 4
call sym.fastboot.exe_ERR_put_error
add esp, 0x14
xor eax, eax
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
test ebx, ebx
je 0x4ebbd7
add eax, ebp
push ebx
push eax
push dword [esp + 0x28]
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
add esp, 0xc
mov eax, dword [esp + 0x24]
mov dword [eax], ebx
mov eax, 1
jmp 0x4ebbbb
Function at 0x5295f3
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
jne 0x529606
jmp 0x52973a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.0054b798
cmp eax, 1
jne 0x529732
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea edx, [ebp - 0x4f]
mov ebx, 0x43
mov eax, 0
mov ecx, edx
and ecx, 1
test ecx, ecx
je 0x52967e
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x529690
mov word [edx], ax
add edx, 2
sub ebx, 2
mov ecx, ebx
shr ecx, 2
mov edi, edx
rep stosd dword es:[edi], eax
mov edx, edi
mov ecx, ebx
and ecx, 2
test ecx, ecx
je 0x5296aa
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x5296b8
mov byte [edx], al
add edx, 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.api_ms_win_crt_convert_l1_1_0.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x5296e8
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x5296ff
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x5296e4
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x52971d
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x52a6c6
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x52a53b
mov dword [esp], 0x588414
call fcn.00529c8d
mov eax, dword [0x586490]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x52a70d
mov eax, dword [ebp - 0x20]
jmp 0x52a858
call fcn.005294fc
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x52a724
cmp dword [ebp - 0x20], 0
jne 0x52a72e
mov eax, 0
jmp 0x52a858
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.005295f3
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x52a800
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x586490]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x52a855
call sub.api_ms_win_crt_runtime_l1_1_0.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret