joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b99c0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x4b99ed
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x4b99ed
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4baa76
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x5266dc
push str.FlsAlloc
push 0x1f
call fcn.004baf29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4baaaa
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
jmp 0x4baab0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4baaf4
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsGetValue
push 0x526700
push str.FlsGetValue
push 0x21
call fcn.004baf29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bab2b
push dword [ebp + 8]
mov ecx, esi
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x4bab33
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x526714
push str.FlsSetValue
push 0x22
call fcn.004baf29
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bab6d
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [section..00cfg]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x4bebd7
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x18], eax
call fcn.004ba2aa
add eax, 0x50
lea edi, [ebp - 0x10]
mov dword [ebp - 0x14], eax
xor eax, eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
call fcn.004ba2aa
lea ecx, [ebp - 0x10]
xor edx, edx
mov dword [eax + 0x34c], ecx
lea ecx, [esi + 0x80]
mov eax, dword [ebp - 0x14]
mov dword [eax], esi
lea edi, [eax + 4]
mov dword [edi], ecx
test ecx, ecx
je 0x4bec4e
cmp word [ecx], dx
je 0x4bec4e
mov eax, dword [0x5270d4]
push edi
dec eax
push eax
push 0x526fc0
call fcn.004bedc7
mov eax, dword [ebp - 0x14]
add esp, 0xc
xor edx, edx
mov dword [ebp - 0x10], edx
mov eax, dword [eax]
test eax, eax
je 0x4becc1
cmp word [eax], dx
je 0x4becc1
mov eax, dword [edi]
test eax, eax
je 0x4bec72
cmp word [eax], dx
je 0x4bec72
lea eax, [ebp - 0x10]
push eax
call fcn.004bee28
jmp 0x4bec7b
lea eax, [ebp - 0x10]
push eax
call fcn.004bf123
cmp dword [ebp - 0x10], 0
pop ecx
jne 0x4beceb
mov eax, dword [0x526fbc]
push dword [ebp - 0x14]
dec eax
push eax
push 0x526cb0
call fcn.004bedc7
add esp, 0xc
test al, al
je 0x4beceb
mov eax, dword [edi]
xor edi, edi
test eax, eax
je 0x4becb6
cmp word [eax], di
je 0x4becb6
lea eax, [ebp - 0x10]
push eax
call fcn.004bee28
pop ecx
jmp 0x4beced
lea eax, [ebp - 0x10]
push eax
call fcn.004bf123
jmp 0x4becb3
mov eax, dword [edi]
test eax, eax
je 0x4becd8
cmp word [eax], dx
je 0x4becd8
lea eax, [ebp - 0x10]
push eax
call fcn.004bf265
pop ecx
jmp 0x4beceb
mov dword [ebp - 0x10], 0x104
call dword [sym.imp.KERNEL32.dll_GetUserDefaultLCID]
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], eax
xor edi, edi
cmp dword [ebp - 0x10], 0
je 0x4bedb6
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x100]
neg esi
sbb esi, esi
and esi, eax
push esi
call fcn.004bf357
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x4bedb6
movzx ecx, si
push ecx
call dword [sym.imp.KERNEL32.dll_IsValidCodePage]
test eax, eax
je 0x4bedb6
push 1
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_IsValidLocale]
test eax, eax
je 0x4bedb6
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4bed43
mov dword [eax], esi
mov eax, dword [ebp - 0x14]
push edi
push 0x55
add eax, 0x250
push eax
push dword [ebp - 0xc]
call fcn.004bad6c
test ebx, ebx
je 0x4bedb1
push edi
push 0x55
lea eax, [ebx + 0x120]
push eax
push dword [ebp - 0xc]
call fcn.004bad6c
push 0x40
push ebx
push 0x1001
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4bedb6
push 0x40
lea eax, [ebx + 0x80]
push eax
push 0x1002
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4bedb6
push 0xa
push 0x10
lea ecx, [ebx + 0x100]
push ecx
push esi
call fcn.004c7d2b
add esp, 0x10
xor eax, eax
inc eax
jmp 0x4bedb8
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0403
leave
ret
Function at 0x4bf45d
Capabilities:
Get geographical location

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.004ba2aa
mov esi, dword [ebp + 8]
mov edi, eax
push 2
lea eax, [ebp - 4]
mov ecx, esi
push eax
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x4bf4cc
cmp esi, dword [ebp - 4]
je 0x4bf4c7
cmp dword [ebp + 0xc], 0
je 0x4bf4c7
mov esi, dword [edi + 0x50]
lea ecx, [esi + 2]
mov ax, word [esi]
add esi, 2
test ax, ax
jne 0x4bf4a4
push dword [edi + 0x50]
sub esi, ecx
sar esi, 1
call fcn.004bf526
pop ecx
xor ecx, ecx
cmp eax, esi
setne cl
mov eax, ecx
jmp 0x4bf4ce
xor eax, eax
inc eax
jmp 0x4bf4ce
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x4bf875
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4bf8c0
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004bf9eb
test al, al
jne 0x4bf8ba
sub edx, 2
cmp edx, edi
jne 0x4bf8a0
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4bf8e2
lea eax, [edi + 2]
cmp edx, eax
je 0x4bf8e2
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004bf7c1
add esp, 0x10
jmp 0x4bf9dc
push esi
lea ecx, [ebp - 0x255]
call fcn.004bf9eb
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4bf925
push dword [ebp - 0x25c]
jmp 0x4bf8d2
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4bf962
cmp word [ebp - 0x226], 0
je 0x4bf983
cmp word [ebp - 0x226], ax
jne 0x4bf962
cmp word [ebp - 0x224], 0
je 0x4bf983
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004bf7c1
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4bf9cf
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4bf93c
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4bf9b7
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4bf9dc
push 0x4bfa10
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004b6b50
add esp, 0x10
jmp 0x4bf9ac
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a0403
leave
ret
Function at 0x4c0b86
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4c0c23
push ebx
push esi
call fcn.004c0c74
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004c0a8a
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c0bd0
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c0c22
push edi
push eax
call fcn.00424de0
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4c0bf0
call fcn.00464780
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4c0c21
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004c0a8a
add esp, 0x20
test eax, eax
jne 0x4c0c0f
push edi
call fcn.00464780
jmp 0x4c0c17
push ebx
call fcn.00464780
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4c0c26
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4c0c37
pop esi
ret
push ebx
push edi
push esi
call fcn.004c0c74
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00424de0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4c0c5f
push ebx
push esi
push edi
call fcn.004a3290
add esp, 0xc
push 0
call fcn.00464780
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4c0cb6
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c0f21

Function at 0x4c2c13
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x4c2c56
call fcn.004af173
mov dword [eax], 0xf
call fcn.004af160
mov dword [eax], 0xd
call fcn.004b0920
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a0403
leave
ret
test eax, eax
jne 0x4c2c5d
inc eax
jmp 0x4c2c4a
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x4c2c48
xor eax, eax
cmp ecx, 1
setne al
jmp 0x4c2c4a
Function at 0x4df2b0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 8
mov esi, ecx
mov edi, dword [ebp + 8]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
cmp byte [ecx + 4], 0
je 0x4df316
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
test eax, eax
je 0x4df31a
mov bl, 1
cmp byte [ebp + 0xc], 0
je 0x4df300
cmp byte [esi + 4], 0
je 0x4df366
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
add esp, 8
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov eax, dword [esi]
jmp 0x4df2d4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp byte [esi + 4], 0
je 0x4df340
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push 0xea60
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x4df344
xor ebx, ebx
jmp 0x4df300
mov eax, dword [esi]
jmp 0x4df32c
mov dword [ebp - 0x14], 0xffffffff
cmp byte [esi + 4], 0
je 0x4df36a
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x14]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov bl, 1
jmp 0x4df300
mov eax, dword [esi]
jmp 0x4df2f4
mov eax, dword [esi]
jmp 0x4df357
Function at 0x4df740
Capabilities:
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x50
mov edi, dword [ebp + 8]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [esp + 0x48], eax
xor eax, eax
dec eax
lea esi, [esp + 0x10]
mov dword [esi + 0x34], eax
mov dword [esi + 0x30], eax
pcmpeqd xmm0, xmm0
movdqa xmmword [esi + 0x20], xmm0
movdqa xmmword [esi + 0x10], xmm0
movdqa xmmword [esi], xmm0
mov ebx, esp
push 0x1ca
push str....._base_files_file_util_win.cc
push str.DeleteFileAfterReboot
push ebx
call fcn.00467470
add esp, 0x10
mov ecx, esi
push 0
push ebx
call fcn.0046d9f0
mov al, byte [edi + 0xb]
test al, al
jns 0x4df7b1
cmp dword [edi + 4], 0x103
jbe 0x4df7b1
xor ebx, ebx
jmp 0x4df7c7
test al, al
jns 0x4df7b7
mov edi, dword [edi]
push 4
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
setne bl
lea ecx, [esp + 0x10]
call fcn.0046da70
mov ecx, dword [esp + 0x48]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4e00a0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov bl, 1
cmp dword [0x54f844], 0
je 0x4e00d8
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
mov esi, dword [0x54f830]
test esi, esi
je 0x4e0172
test byte [0x54bbd0], 1
je 0x4e00c1
cmp byte [esi + 0xb], 0
jns 0x4e00f7
mov esi, dword [esi]
sub esp, 0x1c
movaps xmm0, xmmword [0x534950]
movups xmmword [esp + 4], xmm0
mov dword [esp], esi
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x54f844], eax
inc eax
cmp eax, 1
ja 0x4e00c1
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.004a3810
add esp, 0xc
mov word [esi - 2], 0
lea edi, [ebp - 0x218]
push edi
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
add eax, 0xfffffefb
cmp eax, 0xfffffefc
jae 0x4e0212
xor ebx, ebx
jmp 0x4e00c1
push 0xc
call fcn.0049f91a
add esp, 4
mov esi, eax
lea edi, [ebp - 0x218]
push 0x208
push 0xff
push edi
call fcn.004a3810
add esp, 0xc
push 0x104
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
dec eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.004c9cf0
movzx eax, byte [esi + 0xb]
mov ecx, esi
test al, al
jns 0x4e01c7
mov eax, dword [esi + 4]
mov ecx, dword [esi]
test eax, eax
jne 0x4e01e4
mov ecx, esi
push 9
push str.debug.log
call fcn.004208b0
mov dword [0x54f830], esi
jmp 0x4e00e6
lea edi, [eax + eax]
test edi, edi
je 0x4e01cb
lea edx, [edi - 2]
cmp word [ecx + edi - 2], 0x5c
mov edi, edx
jne 0x4e01e7
cmp edx, 0xfffffffe
je 0x4e01cb
sar edx, 1
cmp eax, edx
jbe 0x4e02b2
inc edx
mov ecx, esi
push edx
call fcn.004dfea0
jmp 0x4e01cb
mov esi, dword [0x54f830]
push edi
call fcn.004b7fa7
add esp, 4
mov ecx, esi
push eax
push edi
call fcn.004205a0
mov ecx, dword [0x54f830]
call fcn.004dd380
cmp word [eax], 0x5c
je 0x4e024d
mov ecx, dword [0x54f830]
push 1
push 0x5349aa
call fcn.004208b0
mov ecx, dword [0x54f830]
push 9
push str.debug.log
call fcn.004208b0
mov eax, dword [0x54f830]
cmp byte [eax + 0xb], 0
jns 0x4e026c
mov eax, dword [eax]
sub esp, 0x1c
movaps xmm0, xmmword [0x534950]
movups xmmword [esp + 4], xmm0
mov dword [esp], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x80
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [0x54f844], eax
inc eax
cmp eax, 1
ja 0x4e00c1
mov dword [0x54f844], 0
jmp 0x4e016b
mov ecx, esi
call fcn.004c9cc0
int3
Function at 0x4efee0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ecx + 4]
mov esi, dword [eax + 4]
xor edx, edx
cmp edi, esi
jge 0x4eff06
mov eax, dword [eax]
xor edx, edx
mov ebx, edi
or edx, dword [eax + ebx*4]
inc ebx
cmp esi, ebx
jne 0x4efefe
cmp esi, edi
jge 0x4eff16
mov eax, dword [ecx]
mov ebx, esi
or edx, dword [eax + ebx*4]
inc ebx
cmp edi, ebx
jne 0x4eff0e
cmp edi, esi
cmovl esi, edi
test esi, esi
jle 0x4eff35
mov edi, dword [ecx]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
xor eax, eax
mov ecx, dword [ebx + eax*4]
xor ecx, dword [edi + eax*4]
or edx, ecx
inc eax
cmp esi, eax
jne 0x4eff28
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
mov eax, dword [ebp + 8]
xor ecx, dword [eax + 0xc]
xor eax, eax
or ecx, edx
sete al
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f9d10
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov dword [ebp - 0x64], edx
mov eax, ecx
mov edx, dword [ebp + 0x10]
mov ecx, dword [0x54a010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
lea ecx, [edx + 4]
mov esi, ecx
shr esi, 5
mov dword [ebp - 0x5c], eax
mov ebx, dword [eax + 0xc]
xor eax, eax
mov edi, 0
mov dword [ebp - 0x58], ebx
cmp esi, ebx
jae 0x4f9d56
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + esi*4]
shr edi, cl
shl edi, 5
and edi, 0x20
lea ecx, [edx + 3]
mov esi, ecx
shr esi, 5
cmp esi, dword [ebp - 0x58]
jae 0x4f9d71
mov eax, dword [ebp + 0xc]
mov eax, dword [eax + esi*4]
shr eax, cl
shl eax, 4
and eax, 0x10
or eax, edi
lea ecx, [edx + 2]
mov ebx, ecx
shr ebx, 5
xor edi, edi
mov esi, 0
cmp ebx, dword [ebp - 0x58]
jae 0x4f9d95
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + ebx*4]
shr esi, cl
shl esi, 3
and esi, 8
or eax, esi
lea ecx, [edx + 1]
mov esi, ecx
shr esi, 5
cmp esi, dword [ebp - 0x58]
jae 0x4f9db2
mov edi, dword [ebp + 0xc]
mov edi, dword [edi + esi*4]
shr edi, cl
shl edi, 2
and edi, 4
or eax, edi
mov ecx, edx
shr ecx, 5
xor esi, esi
cmp ecx, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x64]
jae 0x4f9dd2
mov esi, dword [ebp + 0xc]
mov esi, dword [esi + ecx*4]
mov ecx, edx
shr esi, cl
add esi, esi
and esi, 2
or eax, esi
test edx, edx
je 0x4f9df5
dec edx
mov esi, edx
shr esi, 5
xor ecx, ecx
cmp esi, dword [ebp - 0x58]
jae 0x4f9df3
mov ecx, dword [ebp + 0xc]
mov esi, dword [ecx + esi*4]
xor ecx, ecx
bt esi, edx
setb cl
or eax, ecx
mov edi, dword [ebp + 8]
mov esi, eax
mov ecx, eax
shr ecx, 5
lea eax, [ecx - 1]
neg ecx
and eax, esi
xor esi, 0x3f
mov dword [ebp - 0x60], ecx
and esi, ecx
or esi, eax
mov eax, esi
shr eax, 1
and esi, 1
add esi, eax
push 0xcc
push 0
push ebx
call fcn.004a3810
add esp, 0xc
mov dword [ebp - 0x58], esi
not esi
mov dword [ebp - 0x68], esi
xor esi, esi
mov eax, esi
xor eax, dword [ebp - 0x58]
dec eax
and eax, dword [ebp - 0x68]
sar eax, 0x1f
push ebx
push edi
push eax
push ebx
push dword [ebp - 0x5c]
call fcn.004f7130
add esp, 0x14
inc esi
add edi, 0xcc
cmp esi, 0x11
jne 0x4f9e33
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x54]
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
mov dword [eax + 0x40], 0xffffffff
add ebx, 0x44
push ebx
push eax
mov esi, dword [ebp - 0x5c]
push esi
call fcn.004f8f00
add esp, 0xc
mov esi, dword [esi + 0x28]
test esi, esi
mov ecx, dword [ebp - 0x60]
je 0x4f9eb9
mov eax, ecx
mov dword [ebp - 0x5c], eax
not ecx
xor edx, edx
mov eax, esi
mov esi, dword [ebp + edx*4 - 0x54]
and esi, dword [ebp - 0x5c]
mov edi, dword [ebx + edx*4]
and edi, ecx
or edi, esi
mov esi, eax
mov dword [ebx + edx*4], edi
inc edx
cmp eax, edx
jne 0x4f9e9f
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x504830
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov ebx, edx
mov eax, dword [ebp + 8]
xorps xmm0, xmm0
movups xmmword [eax + 0x50], xmm0
movups xmmword [eax + 0x40], xmm0
movups xmmword [eax + 0x30], xmm0
movups xmmword [eax + 0x20], xmm0
movups xmmword [eax + 0x10], xmm0
movups xmmword [eax], xmm0
add eax, 0x20
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], ecx
lea eax, [ecx - 1]
mov dword [ebp - 0x14], eax
xor esi, esi
mov edi, esi
xor edi, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
mov edx, edi
push ecx
push ebx
call fcn.00504770
add esp, 8
lea eax, [ebx + 0x20]
mov ecx, dword [ebp - 0x18]
mov edx, edi
push ecx
push eax
call fcn.00504770
add esp, 8
inc esi
add ebx, 0x40
cmp esi, 0xf
jne 0x504869
mov ecx, dword [ebp + 8]
add ecx, 0x40
mov edx, dword [ebp - 0x10]
push 0x53d018
push ecx
call fcn.00504770
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x509370
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
push esi
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov esi, eax
sub esi, edx
cmp esi, 4
je 0x50934d
cmp edx, eax
je 0x509352
add eax, 0xfffffffc
mov dword [ecx + 8], eax
pop esi
pop ebp
ret 4
push str.vector::pop_back_called_on_an_empty_vector
push str._empty__
push 0x651
push str....._buildtools_third_partylibc_trunkinclude_vector
push str._s:_d:_assertion__s_failed:__s
call fcn.004cb230
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x509393
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x50938d
mov dword [eax + 8], ecx
push ecx
call fcn.0049f94a
add esp, 4
pop ebp
jmp fcn.0049f94a
pop ebp
ret
Function at 0x511ce0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x58
mov edi, dword [ebp + 0x24]
mov ebx, dword [ebp + 0x20]
mov esi, dword [ebp + 0xc]
mov eax, dword [0x54a010]
xor eax, ebp
mov dword [ebp - 0x10], eax
test ebx, ebx
jne 0x511d07
call fcn.004f5740
mov ebx, eax
test edi, edi
cmove edi, ebx
push ebx
call fcn.0043dbd0
add esp, 4
lea ecx, [eax*2 + 2]
cmp ecx, esi
jbe 0x511d4b
push 0x62
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x7e
push 0
push 4
call fcn.0050d790
add esp, 0x14
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a0403
mov eax, edi
add esp, 0x58
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x60], edi
lea edx, [eax + eax]
mov edi, edx
not edi
lea ecx, [esi + edi]
dec ecx
cmp ecx, dword [ebp + 0x14]
jae 0x511d69
push 0x68
push str....._third_party_boringssl_srccrypto_rsa_extra_rsa_crypt.c
push 0x72
jmp 0x511d29
dec esi
or edx, 1
cmp esi, edx
jae 0x511d75
push 0x6d
jmp 0x511d22
mov edx, dword [ebp + 0x1c]
mov ecx, dword [ebp + 8]
mov byte [ecx], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
add ecx, eax
inc ecx
xor eax, eax
push eax
push ebx
push eax
mov dword [ebp - 0x5c], ecx
push ecx
push edx
push dword [ebp + 0x18]
call fcn.0043dbe0
add esp, 0x18
test eax, eax
je 0x511eb0
mov ebx, esi
mov ecx, dword [ebp + 0x14]
sub ebx, ecx
add edi, ebx
mov eax, dword [ebp - 0x54]
mov edx, dword [ebp - 0x5c]
je 0x511dd0
mov eax, dword [ebp - 0x54]
add eax, edx
push edi
push 0
push eax
mov edi, edx
call fcn.004a3810
mov eax, dword [ebp - 0x54]
mov edx, edi
mov ecx, dword [ebp + 0x14]
add esp, 0xc
mov edi, eax
not eax
add ebx, eax
mov byte [edx + ebx], 1
inc dword [ebp - 0x58]
test ecx, ecx
je 0x511df8
lea eax, [edx + esi]
sub eax, ecx
sub eax, edi
push ecx
push dword [ebp + 0x10]
push eax
call fcn.004a3290
mov edi, dword [ebp - 0x54]
add esp, 0xc
push edi
push dword [ebp - 0x58]
call fcn.00478f80
add esp, 8
test eax, eax
je 0x511eb0
mov ebx, esi
sub ebx, edi
push ebx
call fcn.0047b2e0
add esp, 4
test eax, eax
je 0x511eb0
mov edi, eax
push dword [ebp - 0x60]
push dword [ebp - 0x54]
push dword [ebp - 0x58]
mov dword [ebp - 0x64], ebx
push ebx
push eax
call fcn.00440350
add esp, 0x14
test eax, eax
mov ebx, edi
je 0x511eb2
cmp esi, dword [ebp - 0x54]
mov esi, dword [ebp - 0x5c]
mov edi, dword [ebp - 0x64]
je 0x511e5f
cmp edi, 1
mov eax, edi
adc eax, 0
xor ecx, ecx
mov dl, byte [ebx + ecx]
xor byte [esi + ecx], dl
inc ecx
cmp eax, ecx
jne 0x511e54
pcmpeqd xmm0, xmm0
lea eax, [ebp - 0x50]
movdqu xmmword [eax + 0x30], xmm0
movdqu xmmword [eax + 0x20], xmm0
movdqu xmmword [eax + 0x10], xmm0
movdqu xmmword [eax], xmm0
push dword [ebp - 0x60]
push edi
push esi
mov esi, dword [ebp - 0x54]
push esi
push eax
call fcn.00440350
add esp, 0x14
test eax, eax
mov edi, 0
je 0x511eb4
xor edi, edi
inc edi
test esi, esi
je 0x511eb4
mov edx, esi
xor eax, eax
mov esi, dword [ebp - 0x58]
mov cl, byte [ebp + eax - 0x50]
xor byte [esi + eax], cl
inc eax
cmp edx, eax
jne 0x511ea2
jmp 0x511eb4
xor ebx, ebx
xor edi, edi
push ebx
call fcn.0047b330
add esp, 4
jmp 0x511d37