joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47f4b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x60
mov ecx, dword [esp + 0x80]
mov esi, dword [esp + 0x78]
test ecx, ecx
je 0x47f57c
xor eax, eax
cmp ecx, 0x30
ja 0x47f673
movsd xmm0, qword [esi + 0x28]
mov eax, dword [esp + 0x7c]
xor edx, edx
cmp ecx, 0x20
movsd qword [esp + 0x28], xmm0
movsd xmm0, qword [esi + 0x20]
movsd qword [esp + 0x20], xmm0
movsd xmm0, qword [esi + 0x18]
movsd qword [esp + 0x18], xmm0
movsd xmm0, qword [esi + 0x10]
movsd qword [esp + 0x10], xmm0
movsd xmm0, qword [esi]
movsd xmm1, qword [esi + 8]
movsd qword [esp + 8], xmm1
movsd qword [esp], xmm0
jb 0x47f560
mov edx, ecx
xor esi, esi
and edx, 0xffffffe0
nop word [eax + eax]
movups xmm0, xmmword [eax + esi]
movups xmm2, xmmword [esp + esi]
movups xmm1, xmmword [eax + esi + 0x10]
movups xmm3, xmmword [esp + esi + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [esp + esi], xmm2
movups xmmword [esp + esi + 0x10], xmm3
add esi, 0x20
cmp edx, esi
jne 0x47f530
cmp edx, ecx
jne 0x47f560
mov esi, esp
jmp 0x47f57c
mov esi, esp
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, byte [eax + edx]
xor byte [esp + edx], bl
inc edx
cmp ecx, edx
jne 0x47f570
mov edi, dword [esp + 0x74]
lea ebx, [esp + 0x30]
mov eax, dword [edi + 0x108]
lea ebp, [edi + 0xfc]
bswap eax
inc eax
bswap eax
mov dword [edi + 0x108], eax
push edi
push ebx
push ebp
call dword [edi + 0xf4]
add esp, 0xc
mov eax, dword [edi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [edi + 0x108], eax
lea eax, [esp + 0x40]
push edi
push eax
push ebp
call dword [edi + 0xf4]
add esp, 0xc
mov eax, dword [edi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [edi + 0x108], eax
lea eax, [esp + 0x50]
push edi
push eax
push ebp
call dword [edi + 0xf4]
add esp, 0xc
movups xmm0, xmmword [esi]
movups xmm1, xmmword [esp + 0x30]
xorps xmm1, xmm0
movups xmm0, xmmword [esp + 0x40]
movups xmmword [esp + 0x30], xmm1
movups xmm1, xmmword [esi + 0x10]
xorps xmm1, xmm0
movups xmmword [esp + 0x40], xmm1
movups xmm0, xmmword [esi + 0x20]
movups xmm1, xmmword [esp + 0x50]
xorps xmm1, xmm0
movups xmmword [esp + 0x50], xmm1
push edi
push 0x100
push ebx
call fcn.00454bf0
add esp, 0xc
mov dword [edi + 0xf4], fcn.00455180
mov dword [edi + 0xf8], 0
mov eax, 1
movsd xmm0, qword [esp + 0x50]
movsd xmm1, qword [esp + 0x58]
movsd qword [edi + 0x104], xmm1
movsd qword [edi + 0xfc], xmm0
mov dword [edi + 0x114], 0
mov dword [edi + 0x110], 1
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x47f680
Capabilities:
Encode data using xor

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0x30
mov ebp, dword [esp + 0x44]
xor eax, eax
cmp ebp, 0x30
ja 0x47f79e
mov eax, dword [ecx + 0x108]
mov edi, edx
mov esi, ecx
lea ebx, [ecx + 0xfc]
bswap eax
inc eax
bswap eax
mov dword [ecx + 0x108], eax
mov eax, esp
push ecx
push eax
push ebx
call dword [ecx + 0xf4]
add esp, 0xc
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
lea eax, [esp + 0x10]
push esi
push eax
push ebx
call dword [esi + 0xf4]
add esp, 0xc
mov eax, dword [esi + 0x108]
bswap eax
inc eax
bswap eax
mov dword [esi + 0x108], eax
lea eax, [esp + 0x20]
push esi
push eax
push ebx
call dword [esi + 0xf4]
add esp, 0xc
test ebp, ebp
je 0x47f75c
xor eax, eax
cmp ebp, 0x1f
jbe 0x47f750
mov eax, ebp
xor ecx, ecx
and eax, 0xffffffe0
nop word cs:[eax + eax]
nop dword [eax]
movups xmm0, xmmword [edi + ecx]
movups xmm2, xmmword [esp + ecx]
movups xmm1, xmmword [edi + ecx + 0x10]
movups xmm3, xmmword [esp + ecx + 0x10]
xorps xmm2, xmm0
xorps xmm3, xmm1
movups xmmword [esp + ecx], xmm2
movups xmmword [esp + ecx + 0x10], xmm3
add ecx, 0x20
cmp eax, ecx
jne 0x47f720
cmp eax, ebp
je 0x47f75c
nop dword [eax]
movzx ecx, byte [edi + eax]
xor byte [esp + eax], cl
inc eax
cmp ebp, eax
jne 0x47f750
push esi
push 0x100
lea eax, [esp + 8]
push eax
call fcn.00454bf0
add esp, 0xc
mov dword [esi + 0xf4], fcn.00455180
mov dword [esi + 0xf8], 0
lea eax, [esp + 0x20]
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
mov eax, 1
movsd qword [ebx], xmm0
movsd qword [ebx + 8], xmm1
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x497813
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 0x497826
jmp 0x49795a
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.004b98f8
cmp eax, 1
jne 0x497952
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 0x49789e
mov byte [edx], al
add edx, 1
sub ebx, 1
mov ecx, edx
and ecx, 2
test ecx, ecx
je 0x4978b0
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 0x4978ca
mov word [edx], ax
add edx, 2
and ebx, 1
mov ecx, ebx
test ecx, ecx
je 0x4978d8
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.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x497908
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 0x49791f
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x497904
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x49793d
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.msvcrt.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 0x4988e6
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], 0x49875b
mov dword [esp], 0x53e2f4
call fcn.00497ead
mov eax, dword [0x53c384]
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 0x49892d
mov eax, dword [ebp - 0x20]
jmp 0x498a78
call fcn.0049771c
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x498944
cmp dword [ebp - 0x20], 0
jne 0x49894e
mov eax, 0
jmp 0x498a78
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.00497813
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 0x498a20
call sub.msvcrt.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 [0x53c384]
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 0x498a75
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x498b3c
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.004988e6
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.0049877e
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x498b95
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
call sub.msvcrt.dll_longjmp
mov eax, dword [0x53c384]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x498cbf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x498c27
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x498be4
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00497630
mov dword [ebp - 0x10], 0
mov eax, dword [0x53c384]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x498cbf
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x498c57
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x498cbf
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.00497630
mov dword [ebp - 0x10], 0
mov eax, dword [0x53c384]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax
Function at 0x49fbf0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x49fd9e
cmp byte [ebx], 0
je 0x49fd68
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x49fd80
test al, 0x10
je 0x49fd68
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.msvcrt.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x49fc54
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x49fd8f
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x49fce3
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x49fce3
cmp al, 0x5c
je 0x49fce3
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x49fce5
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x49fd60
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x49fd60
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x49fd60
Function at 0x4a4c30
Capabilities:
Initialize winsock library

Disassembly:
cmp byte [0x53e330], 0
mov al, 1
je 0x4a4c3c
ret
sub esp, 0x190
mov eax, esp
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
sete al
sete byte [0x53e330]
add esp, 0x190
ret

Function at 0x4a4d20
Capabilities:
Get local ipv4 addresses
Get socket information

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x88
mov eax, dword [ebp + 8]
lea ecx, [esp + 4]
mov dword [esp + 4], pe_nt_image_headers32
lea edx, [esp + 8]
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_getsockname]
mov ecx, eax
mov eax, 0xffffffff
test ecx, ecx
jne 0x4a4d62
movzx eax, word [esp + 0xa]
push eax
call dword [sym.imp.WS2_32.dll_ntohs]
movzx eax, ax
mov esp, ebp
pop ebp
ret

Function at 0x4a4da0
Capabilities:
Connect socket
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x40
mov esi, 0xffffffff
call fcn.004a4c30
test al, al
je 0x4a4e6f
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xorps xmm0, xmm0
mov dword [esp + 0xc], 0
lea edi, [esp + 0x30]
movaps xmmword [esp + 0x10], xmm0
movaps xmmword [esp + 0x20], xmm0
mov dword [esp + 0x18], eax
push ecx
push 0x526df8
push 0x10
push edi
call fcn.004cb1b0
add esp, 0x10
lea eax, [esp + 0xc]
lea ecx, [esp + 0x10]
push eax
push ecx
push edi
push esi
call dword [sym.imp.WS2_32.dll_getaddrinfo]
test eax, eax
mov eax, dword [esp + 0xc]
jne 0x4a4e44
test eax, eax
je 0x4a4e44
push dword [eax + 0xc]
push dword [eax + 8]
push dword [eax + 4]
call dword [sym.imp.WS2_32.dll_socket]
mov esi, eax
cmp eax, 0xffffffff
mov eax, dword [esp + 0xc]
je 0x4a4e56
push dword [eax + 0x10]
push dword [eax + 0x18]
push esi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4a4e59
push dword [esp + 0xc]
jmp 0x4a4e4e
mov esi, 0xffffffff
test eax, eax
je 0x4a4e6f
push eax
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
jmp 0x4a4e6f
push eax
jmp 0x4a4e64
push esi
call dword [sym.imp.WS2_32.dll_closesocket]
push dword [esp + 0xc]
call dword [sym.imp.WS2_32.dll_freeaddrinfo]
mov esi, 0xffffffff
mov eax, esi
lea esp, [ebp - 8]
pop esi
pop edi
pop ebp
ret
Function at 0x4a5110
Capabilities:
Encode data using xor

Disassembly:
push ebx
push edi
push esi
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x4a51e3
mov edx, dword [esp + 0x14]
mov esi, dword [esp + 0x10]
xor edi, edi
cmp ecx, 7
mov eax, 0
jbe 0x4a51d0
movdqa xmm2, xmmword [0x526e00]
mov edi, ecx
pxor xmm0, xmm0
xor eax, eax
pxor xmm1, xmm1
and edi, 0xfffffff8
nop
movd xmm3, dword [esi + eax]
movd xmm4, dword [esi + eax + 4]
movd xmm5, dword [edx + eax]
movd xmm6, dword [edx + eax + 4]
add eax, 8
cmp edi, eax
punpcklbw xmm3, xmm0
punpcklbw xmm4, xmm0
punpcklbw xmm5, xmm0
punpcklbw xmm6, xmm0
punpcklwd xmm3, xmm0
punpcklwd xmm5, xmm0
punpcklwd xmm4, xmm0
punpcklwd xmm6, xmm0
pxor xmm5, xmm3
pxor xmm6, xmm4
pand xmm5, xmm2
pand xmm6, xmm2
por xmm0, xmm5
por xmm1, xmm6
jne 0x4a5150
por xmm1, xmm0
cmp edi, ecx
pshufd xmm0, xmm1, 0x4e
por xmm0, xmm1
pshufd xmm1, xmm0, 0xe5
por xmm1, xmm0
movd eax, xmm1
je 0x4a51e5
nop word cs:[eax + eax]
nop dword [eax]
movzx ebx, byte [edx + edi]
xor bl, byte [esi + edi]
inc edi
movzx ebx, bl
or eax, ebx
cmp ecx, edi
jne 0x4a51d0
jmp 0x4a51e5
xor eax, eax
pop esi
pop edi
pop ebx
ret

Function at 0x4a51f0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4a5221
mov edx, dword [esp + 8]
mov eax, 0x811c9dc5
nop word cs:[eax + eax]
nop dword [eax]
movzx esi, byte [edx]
inc edx
xor esi, eax
imul eax, esi, 0x1000193
dec ecx
jne 0x4a5210
pop esi
ret
mov eax, 0x811c9dc5
pop esi
ret

Function at 0x4a66b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
push ebx
push edi
push esi
push eax
mov edi, dword [esp + 0x18]
test edi, edi
je 0x4a675b
cmp dword [edi + 4], 0
je 0x4a675b
push 0
call sym.fastboot.exe_CRYPTO_get_thread_local
add esp, 4
mov esi, eax
test eax, eax
je 0x4a6767
cmp dword [edi + 4], 0
je 0x4a67a4
xor ebx, ebx
xor ebp, ebp
mov dword [esp], edi
mov edi, dword [edi]
push dword [esi + ebx + 4]
call sym.fastboot.exe_OPENSSL_free
add esp, 4
mov dword [esi + ebx + 4], 0
mov dword [esi + ebx], 0
mov dword [esi + ebx + 0xc], 0
mov dword [esi + ebx + 8], 0
mov eax, dword [edi + ebx]
mov dword [esi + ebx], eax
mov eax, dword [edi + ebx + 4]
test eax, eax
je 0x4a6738
push eax
call sym.fastboot.exe_OPENSSL_strdup
add esp, 4
mov dword [esi + ebx + 4], eax
mov eax, dword [edi + ebx + 8]
inc ebp
mov dword [esi + ebx + 8], eax
movzx eax, word [edi + ebx + 0xc]
mov edi, dword [esp]
mov word [esi + ebx + 0xc], ax
add ebx, 0x10
mov eax, dword [edi + 4]
cmp ebp, eax
jb 0x4a66f0
dec eax
jmp 0x4a67a9
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
jmp sym.fastboot.exe_ERR_clear_error
push 0x10c
call sym.fastboot.exe_OPENSSL_malloc
add esp, 4
test eax, eax
je 0x4a67b9
mov esi, eax
push 0x10c
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4a67d0
push esi
push 0
call sym.fastboot.exe_CRYPTO_set_thread_local
add esp, 0xc
test eax, eax
jne 0x4a66df
jmp 0x4a67b9
mov eax, 0xffffffff
mov dword [esi + 0x100], eax
mov dword [esi + 0x104], 0xf
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4aa790
Capabilities:
Parse pe header

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov esi, ecx
mov eax, dword [ecx]
mov ecx, dword [ecx + 4]
mov edx, ecx
sub edx, eax
je 0x4aa7ea
movsx edi, byte [eax]
cmp edi, 0x4a
je 0x4aa819
cmp edi, 0x4c
je 0x4aa7f8
cmp edi, 0x58
jne 0x4aa7ea
inc eax
mov ecx, esi
mov dword [esi], eax
call fcn.004ad020
mov ecx, eax
xor eax, eax
test ecx, ecx
je 0x4aa97f
mov edx, dword [esi]
cmp edx, dword [esi + 4]
je 0x4aa97f
cmp byte [edx], 0x45
jne 0x4aa97f
inc edx
mov eax, ecx
mov dword [esi], edx
jmp 0x4aa97f
mov ecx, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004a8bf0
cmp edx, 2
jb 0x4aa8e4
cmp byte [eax + 1], 0x5a
jne 0x4aa8e4
add eax, 2
mov ecx, esi
mov dword [esi], eax
call fcn.004a8230
jmp 0x4aa7c0
inc eax
lea edi, [esi + 0x14]
mov dword [esi], eax
mov edx, dword [esi + 0xc]
sub edx, dword [esi + 8]
sar edx, 2
mov dword [esp], edx
mov dword [esp + 8], edi
cmp eax, ecx
jne 0x4aa852
jmp 0x4aa85b
lea eax, [ebp + 4]
mov dword [esi + 0xc], eax
mov dword [ebp], edi
mov eax, dword [esi]
mov ecx, dword [esi + 4]
cmp eax, ecx
je 0x4aa85b
cmp byte [eax], 0x45
je 0x4aa8f9
mov ecx, esi
call fcn.004aa790
test eax, eax
je 0x4aa8f2
mov ebp, dword [esi + 0xc]
mov edi, eax
cmp ebp, dword [esi + 0x10]
jne 0x4aa840
mov ecx, dword [esi + 8]
sub ebp, ecx
cmp dword [esp + 8], ecx
lea eax, [ebp + ebp]
je 0x4aa8a0
push eax
push ecx
call sub.msvcrt.dll_realloc
add esp, 8
mov ebx, eax
test eax, eax
mov dword [esi + 8], eax
jne 0x4aa8cc
jmp 0x4aa987
mov dword [esp + 4], ecx
push eax
call sub.msvcrt.dll_malloc
add esp, 4
test eax, eax
je 0x4aa987
mov ebx, eax
test ebp, ebp
je 0x4aa8c9
push ebp
push dword [esp + 8]
push ebx
call sub.msvcrt.dll_memmove
add esp, 0xc
mov dword [esi + 8], ebx
mov eax, ebp
sar ebp, 1
sar eax, 2
lea ecx, [ebx + ebp*4]
lea ebp, [ebx + eax*4]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ecx
jmp 0x4aa840
mov ecx, esi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
jmp fcn.004ae3e0
xor eax, eax
jmp 0x4aa97f
inc eax
mov ebp, dword [esp]
mov ecx, esi
mov dword [esi], eax
mov edx, dword [esi + 8]
shl ebp, 2
add edx, ebp
push dword [esi + 0xc]
call fcn.004b2fc0
add esp, 4
add ebp, dword [esi + 8]
mov edi, eax
mov ebx, edx
mov dword [esi + 0xc], ebp
mov ebp, dword [esi + 0x116c]
mov ecx, dword [ebp + 4]
lea eax, [ecx + 0x10]
cmp eax, 0xff8
jb 0x4aa955
push 0x1000
call sub.msvcrt.dll_malloc
add esp, 4
test eax, eax
je 0x4aa987
mov dword [eax], ebp
xor ecx, ecx
mov ebp, eax
mov dword [eax + 4], 0
mov dword [esi + 0x116c], eax
add ecx, 0x10
mov dword [ebp + 4], ecx
mov ecx, dword [esi + 0x116c]
mov edx, dword [ecx + 4]
mov dword [ecx + edx - 4], 0x101011c
mov dword [ecx + edx - 8], 0x52a0c4
lea eax, [ecx + edx - 8]
mov dword [ecx + edx + 4], ebx
mov dword [ecx + edx], edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0043e5e0
nop dword [eax]
Function at 0x4c4509
Capabilities:
Read file on windows

Disassembly:
push ebp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ecx + 0x64]
lea ebx, [ecx + 0x54]
mov esi, ecx
xor edi, edi
mov dword [esp + 4], ebx
mov dword [esp], eax
nop dword [eax + eax]
cmp dword [esi + 0x58], 0
jne 0x4c44ed
mov eax, dword [esi + 0x4c]
test eax, eax
je 0x4c4486
cmp eax, 0xfffffffb
jne 0x4c458d
cmp dword [esi + 0x34], 0
jne 0x4c451b
mov dword [esp + 8], edi
mov edi, dword [esi + 0x18]
mov ebx, dword [esi + 0x20]
xor ebp, ebp
nop dword [eax]
mov eax, edi
mov ecx, 0x40000000
sub eax, ebp
cmp eax, 0x40000000
cmovae eax, ecx
lea ecx, [ebx + ebp]
push eax
push ecx
push dword [esi + 0x10]
call sub.msvcrt.dll__read
add esp, 0xc
test eax, eax
jle 0x4c44cd
add ebp, eax
cmp ebp, edi
jb 0x4c44a0
jmp 0x4c44da
js 0x4c4571
mov dword [esi + 0x34], 1
add dword [esi + 0x58], ebp
mov eax, dword [esi + 0x20]
mov edi, dword [esp + 8]
mov ebx, dword [esp + 4]
mov dword [esi + 0x54], eax
je 0x4c451b
push 0
push ebx
call fcn.0044ec70
add esp, 8
mov edi, eax
lea eax, [eax + 4]
cmp eax, 6
ja case.0x4c4502.1
jmp dword [eax*4 + 0x52b940]
mov eax, dword [esi + 0x64]
cmp edi, 1
je 0x4c452e
test eax, eax
jne 0x4c4470
jmp 0x4c452e
push str.unexpected_end_of_file
push 0xfffffffffffffffb
push esi
call fcn.004a2640
add esp, 0xc
mov eax, dword [esi + 0x64]
mov ecx, dword [esp]
sub ecx, eax
mov dword [esi], ecx
mov eax, dword [esi + 0x60]
sub eax, ecx
mov dword [esi + 4], eax
xor eax, eax
cmp edi, 1
jne 0x4c4592
mov dword [esi + 0x2c], 0
jmp 0x4c4592
push str.internal_error:_inflate_stream_corrupt
push 0xfffffffffffffffe
jmp 0x4c4584
push str.out_of_memory
push 0xfffffffffffffffc
jmp 0x4c4584
mov eax, dword [esi + 0x6c]
mov ecx, str.compressed_data_error
test eax, eax
cmovne ecx, eax
push ecx
push 0xfffffffffffffffd
jmp 0x4c4584
call dword [sym.imp.msvcrt.dll__errno]
push dword [eax]
call sub.msvcrt.dll_strerror
add esp, 4
push eax
push 0xffffffffffffffff
push esi
call fcn.004a2640
add esp, 0xc
mov eax, 0xffffffff
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret