joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48ae10
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
mov edi, ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 0xc]
mov edx, dword [0x575010]
xor edx, ebp
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x20]
push 3
push ecx
push eax
push edx
call fcn.00471c20
add esp, 0x10
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x48af63
mov esi, dword [ebp - 0x20]
mov dword [edi], esi
mov dword [edi + 4], eax
mov dword [ebp - 0x14], 0
push 0x800
push 0
push 0x5602f0
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
test eax, eax
mov dword [ebp - 0x30], eax
je 0x48ae90
push 0x560340
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48aea0
mov ecx, eax
call dword [section..00cfg]
lea eax, [ebp - 0x14]
push eax
push esi
call ecx
jmp 0x48ae9b
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.SHELL32.dll_CommandLineToArgvW]
mov dword [ebp - 0x24], eax
jmp 0x48aea7
mov dword [ebp - 0x24], 0
mov esi, dword [ebp - 0x14]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
test esi, esi
je 0x48af17
mov dword [ebp - 0x2c], edi
shl esi, 2
cmp esi, 0x55555555
jae 0x48afb7
lea edi, [esi + esi*2]
push edi
call fcn.00507d96
add esp, 4
mov ebx, eax
mov dword [ebp - 0x20], eax
add eax, edi
mov dword [ebp - 0x18], eax
xor edi, edi
mov dword [ebp - 0x28], ebx
test ebx, ebx
je 0x48af9c
mov ecx, ebx
mov eax, dword [ebp - 0x24]
push dword [eax + edi]
call fcn.0042edc8
add ebx, 0xc
add edi, 4
cmp esi, edi
jne 0x48aef0
mov dword [ebp - 0x1c], ebx
mov edi, dword [ebp - 0x2c]
jmp 0x48af20
xor ebx, ebx
mov dword [ebp - 0x28], 0
mov ecx, edi
lea eax, [ebp - 0x20]
push eax
call fcn.0048a980
mov dword [edi], 0
mov dword [edi + 4], 0
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, dword [ebp - 0x30]
test eax, eax
je 0x48af4f
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov edi, dword [ebp - 0x28]
test edi, edi
je 0x48af63
cmp ebx, edi
jne 0x48af86
push edi
call fcn.00507dc6
add esp, 4
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 8
mov ebx, esi
cmp esi, edi
je 0x48af5a
lea esi, [ebx - 0xc]
cmp byte [ebx - 1], 0
jns 0x48af80
push dword [ebx - 0xc]
call fcn.00507dc6
add esp, 4
jmp 0x48af80
push str.null_pointer_given_to_construct_at
push str.__location___nullptr
push 0x25
push str....._buildtools_third_partylibc_trunkinclude__memoryconstruct_at.h
push str._s:_d:_assertion__s_failed:__s
call fcn.0043403c
lea ecx, [ebp - 0x20]
call fcn.0042e0b0
int3
Function at 0x48beb0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov dword [ebp - 0x2c], ecx
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
movzx eax, byte [0x57aef0]
and eax, 1
neg eax
cmp eax, 0xfffffffd
je 0x48bfb4
mov dword [ebp - 0x28], edx
xor esi, esi
jmp 0x48bf0b
test bl, bl
js 0x48bf90
inc esi
movzx eax, byte [0x57aef0]
xor eax, 3
cmp esi, eax
jae 0x48bfb4
mov dword [ebp - 0x1c], 0xffffffff
mov dword [ebp - 0x18], 0xffffffff
mov dword [ebp - 0x14], 0xffffffff
lea edi, [ebp - 0x1c]
mov ecx, edi
push dword [esi*8 + 0x5602b4]
push dword [esi*8 + 0x5602b0]
call fcn.00447574
movzx ebx, byte [ebp - 0x11]
test bl, bl
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
mov edx, edi
mov dword [ebp - 0x20], ecx
cmovs edx, ecx
mov ecx, ebx
mov dword [ebp - 0x24], eax
cmovs ecx, eax
mov edi, dword [ebp - 0x28]
cmp edi, ecx
mov eax, ecx
cmovb eax, edi
test eax, eax
js 0x48bfca
cmp ecx, edi
ja 0x48bef0
test ecx, ecx
je 0x48bfa0
xor eax, eax
nop dword [eax]
mov edi, dword [ebp - 0x2c]
movzx edi, word [edi + eax*2]
cmp di, word [edx + eax*2]
jne 0x48bef0
inc eax
cmp ecx, eax
jne 0x48bf70
jmp 0x48bfa0
push dword [ebp - 0x20]
call fcn.00507dc6
add esp, 4
jmp 0x48bef8
test bl, bl
jns 0x48bfb6
push dword [ebp - 0x20]
call fcn.00507dc6
add esp, 4
mov ebx, dword [ebp - 0x24]
jmp 0x48bfb6
xor ebx, ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
mov eax, ebx
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret
int3

Function at 0x48ecb8
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20c
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x216]
push 0x206
push 0xff
push eax
call fcn.0050bb40
add esp, 0xc
mov edi, 0xfffffff4
lea ebx, [ebp - 0x218]
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
mov eax, dword [edi + 0x560420]
mov word [ebp - 0x218], 0
push 0x104
push ebx
push eax
call esi
lea ecx, [eax - 1]
cmp ecx, 0x102
ja 0x48ed2c
push dword [ebp + 8]
push eax
push ebx
call fcn.0048ec56
add esp, 0xc
test al, al
jne 0x48ed35
add edi, 4
jne 0x48ecf8
xor ebx, ebx
jmp 0x48ed37
mov bl, 1
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
mov eax, ebx
add esp, 0x20c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x48f0ee
Capabilities:
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x218
mov eax, dword [0x575010]
xor eax, ebp
mov dword [ebp - 0x10], eax
lea esi, [ebp - 0x216]
push 0x206
push 0xff
push esi
call fcn.0050bb40
add esp, 0xc
mov word [esi - 2], 0
lea edi, [ebp - 0x218]
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
xor eax, eax
dec eax
lea esi, [ebp - 0x224]
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov ecx, esi
push edi
call fcn.0042edc8
mov ecx, esi
push 0xa
push str.usp10.dll
call fcn.004676c0
cmp byte [eax + 0xb], 0
jns 0x48f164
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp byte [ebp - 0x219], 0
jns 0x48f184
push dword [ebp - 0x224]
call fcn.00507dc6
add esp, 4
cmp esi, 0xffffffff
setne bl
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
mov eax, ebx
add esp, 0x218
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x491a80
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov edi, dword [ebp + 8]
mov eax, dword [0x575010]
xor eax, ebp
mov dword [esp + 0x28], eax
test edi, edi
je 0x491c4d
cmp dword [0x577cf8], 0xe69e32f3
jne 0x491c50
mov ecx, 0x308
add ecx, dword [edi + 0xc]
mov byte [esp + 0xf], 0xff
movzx eax, byte [edi + 2]
push eax
mov dword [esp + 8], ecx
push ecx
call fcn.00485220
add esp, 8
movzx ebx, ax
shl ebx, 5
lea esi, [edi + ebx]
add esi, 0x48
add edi, 0x40
push edi
call dword [sym.imp.KERNEL32.dll_TryAcquireSRWLockExclusive]
test al, al
jne 0x491af2
mov ecx, edi
call fcn.00492440
mov dword [esp + 8], edi
mov eax, dword [esi]
mov edi, dword [eax]
test edi, edi
je 0x491bc8
mov byte [esp + 0xf], 0
mov edx, dword [edi]
test edx, edx
je 0x491b3e
mov ecx, dword [ebp + 8]
add ecx, 0x48
mov ebx, dword [ecx + ebx + 0xc]
mov ecx, edx
bswap ecx
mov esi, ecx
xor esi, edi
cmp esi, 0x1fffff
ja 0x491c19
mov esi, ecx
and esi, 0x1fc000
je 0x491c19
prefetcht0 byte [ecx]
jmp 0x491b40
xor ecx, ecx
mov dword [eax], ecx
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 2]
and edx, 0x3ffe
and ecx, 0xffffc001
or ecx, edx
mov dword [eax + 0xc], ecx
mov esi, dword [ebp + 8]
mov eax, dword [eax + 8]
mov ecx, dword [esi + 0x117c]
add ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x1180]
mov dword [esi + 0x117c], ecx
cmp eax, ecx
cmova ecx, eax
mov dword [esi + 0x1180], ecx
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_ReleaseSRWLockExclusive]
mov ecx, edi
push esi
call fcn.00491c70
push edi
push dword [0x57af14]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [0x579028]
mov ecx, dword fs:[0x2c]
mov eax, dword [ecx + eax*4]
mov dword [eax + 0xa0], edi
mov ecx, dword [esp + 0x28]
xor ecx, ebp
call fcn.00508d63
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
lea eax, [esp + 0xf]
mov ecx, esi
push eax
push 0x4000
push dword [esp + 0xc]
push 2
mov esi, dword [ebp + 8]
push esi
call fcn.004ce310
test eax, eax
je 0x491c46
mov edi, eax
mov ecx, eax
and ecx, 0xffe00000
mov edx, eax
shr edx, 9
and edx, 0xfe0
lea eax, [edx + ecx]
movzx ecx, byte [edx + ecx + 0x101e]
and ecx, 0x3f
shl ecx, 5
sub eax, ecx
add eax, 0x1000
jmp 0x491b5c
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x10], xmm0
lea esi, [esp + 0x10]
mov ecx, esi
push 0
push edx
push str.first
call fcn.004853a0
push esi
call fcn.0042a680
add esp, 4
mov ecx, ebx
call fcn.00492210
xor edi, edi
jmp 0x491b7f
int3
int3
Function at 0x492710
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x70
mov esi, ecx
mov eax, dword [0x575010]
xor eax, ebp
mov dword [esp + 0x68], eax
mov eax, dword [ecx + 0x1174]
mov ebx, dword [ecx + 0x1178]
add ebx, eax
mov eax, dword [ecx + 0x116c]
mov ecx, ebx
sub ecx, eax
cmp ecx, 0x40000001
jb 0x492751
push dword [ebp + 8]
call fcn.004d49c0
mov dword [esp + 0xc], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [esp + 0xc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_IsWow64Process]
mov eax, dword [esp + 0xc]
test eax, eax
mov ecx, 0x40000000
mov edi, 0xaf000000
cmove edi, ecx
mov dword [esp + 0x58], eax
mov dword [esp + 0x5c], 0
mov dword [esp + 0x54], 0x365f776f
mov dword [esp + 0x50], 0x775f7369
lea eax, [esp + 0x50]
push eax
call fcn.0042a680
add esp, 4
cmp ebx, edi
jbe 0x4927b1
push ebx
call fcn.004d49f0
mov dword [esp + 0x48], ebx
mov dword [esp + 0x4c], 0
mov dword [esp + 0x44], 0x657a69
mov dword [esp + 0x40], 0x735f6176
lea eax, [esp + 0x40]
push eax
call fcn.0042a680
add esp, 4
mov eax, dword [esi + 0x117c]
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], 0
mov dword [esp + 0x34], 0x20200063
mov dword [esp + 0x30], 0x6f6c6c61
lea eax, [esp + 0x30]
push eax
call fcn.0042a680
add esp, 4
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x20], xmm0
mov eax, dword [esi + 0x116c]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], 0
mov dword [esp + 0x24], 0x20007469
mov dword [esp + 0x20], 0x6d6d6f63
lea eax, [esp + 0x20]
push eax
call fcn.0042a680
add esp, 4
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], 0
mov dword [esp + 0x14], 0x20202000
mov dword [esp + 0x10], 0x657a6973
lea eax, [esp + 0x10]
push eax
call fcn.0042a680
add esp, 4
mov ecx, dword [0x588a48]
test ecx, ecx
je 0x492884
call dword [section..00cfg]
push esi
call ecx
add esp, 4
push esi
call fcn.0049bde0
int3

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

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
je 0x49609f
pop ebp
jmp fcn.00495c20
cmp dword [ebp + 0x10], 0
jne 0x4960aa
call fcn.004da560
xor eax, eax
pop ebp
ret

Function at 0x4963a0
Capabilities:
Compute adler32 checksum

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.004960b0
Function at 0x49ff20
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xc
mov eax, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
cmp edx, eax
mov esi, eax
mov dword [ebp - 0x10], edx
cmovb esi, edx
test esi, esi
je 0x49ff9b
xor edx, edx
xor edi, edi
mov dword [ebp - 0x14], esi
nop word cs:[eax + eax]
mov dword [ebp - 0x18], edx
mov eax, dword [ebx + edi*4]
mov edx, ecx
mov ecx, dword [ecx + edi*4]
mov esi, ecx
xor esi, eax
mov ebx, ecx
sub ebx, eax
lea eax, [esi - 1]
xor ebx, ecx
or ebx, esi
not esi
and eax, esi
sar eax, 0x1f
xor ebx, ecx
mov ecx, edx
sar ebx, 0x1f
mov esi, ebx
not ebx
and ebx, 1
or ebx, esi
mov esi, eax
and esi, dword [ebp - 0x18]
not eax
and eax, ebx
mov ebx, dword [ebp + 8]
or eax, esi
mov esi, dword [ebp - 0x14]
inc edi
mov edx, eax
cmp esi, edi
jne 0x49ff50
jmp 0x49ff9d
xor eax, eax
mov edx, dword [ebp - 0x10]
mov esi, dword [ebp + 0xc]
cmp edx, esi
jae 0x49ffce
xor ecx, ecx
nop dword [eax]
or ecx, dword [ebx + edx*4]
inc edx
cmp esi, edx
jne 0x49ffb0
mov edx, ecx
not edx
dec ecx
and ecx, edx
sar ecx, 0x1f
mov edx, ecx
and edx, eax
not ecx
or ecx, edx
mov eax, ecx
jmp 0x49ffff
jbe 0x49ffff
xor edi, edi
nop word cs:[eax + eax]
or edi, dword [ecx + esi*4]
inc esi
cmp edx, esi
jne 0x49ffe0
mov edx, edi
not edx
dec edi
and edi, edx
sar edi, 0x1f
mov edx, edi
and edx, eax
not edi
and edi, 1
or edi, edx
mov eax, edi
add esp, 0xc
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x4a0140
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 0x4a0168
mov eax, dword [eax]
xor edx, edx
mov ebx, edi
nop
or edx, dword [eax + ebx*4]
inc ebx
cmp esi, ebx
jne 0x4a0160
cmp esi, edi
jge 0x4a0178
mov eax, dword [ecx]
mov ebx, esi
or edx, dword [eax + ebx*4]
inc ebx
cmp edi, ebx
jne 0x4a0170
cmp edi, esi
cmovl esi, edi
test esi, esi
jle 0x4a019d
mov edi, dword [ecx]
mov eax, dword [ebp + 0xc]
mov ebx, dword [eax]
xor eax, eax
nop word [eax + eax]
mov ecx, dword [ebx + eax*4]
xor ecx, dword [edi + eax*4]
or edx, ecx
inc eax
cmp esi, eax
jne 0x4a0190
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 0x4a5510
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov eax, dword [edx + 4]
test eax, eax
je 0x4a5553
mov edi, edx
mov ebx, dword [edx]
xor edx, edx
xor esi, esi
nop dword [eax + eax]
or esi, dword [ebx + edx*4]
inc edx
cmp eax, edx
jne 0x4a5530
test esi, esi
je 0x4a5553
test eax, eax
jle 0x4a5545
test byte [ebx], 1
jne 0x4a5575
push 0xa8
push str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
push 0x68
jmp 0x4a555f
push 0xa4
push str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
push 0x69
push 0
push 3
call fcn.004dc3c0
add esp, 0x14
xor eax, eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
cmp dword [edi + 0xc], 0
je 0x4a5589
push 0xac
push str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
push 0x6d
jmp 0x4a555f
cmp eax, 0x801
jb 0x4a55ba
xor edx, edx
mov esi, 0x800
nop word [eax + eax]
or edx, dword [ebx + esi*4]
inc esi
cmp eax, esi
jne 0x4a55a0
test edx, edx
je 0x4a55ba
push 0xb0
push str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
push 0x66
jmp 0x4a555f
mov dword [ebp - 0x10], ecx
lea ebx, [ecx + 0x14]
cmp ebx, edi
je 0x4a55fe
push eax
push ebx
call fcn.0049f2e0
add esp, 8
test eax, eax
je 0x4a5645
mov eax, dword [edi + 4]
lea ecx, [eax*4]
test ecx, ecx
je 0x4a55f0
push ecx
push dword [edi]
push dword [ebx]
call fcn.0050b5c0
add esp, 0xc
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x18], eax
mov eax, dword [edi + 0xc]
mov dword [ecx + 0x20], eax
mov edi, ebx
test edi, edi
je 0x4a5645
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov ecx, eax
sar ecx, 0x1f
and ecx, eax
mov esi, eax
nop word cs:[eax + eax]
test esi, esi
jle 0x4a5656
mov edx, dword [ebx]
lea edi, [esi - 1]
cmp dword [edx + esi*4 - 4], 0
mov esi, edi
je 0x4a5620
inc edi
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], edi
mov ecx, dword [edx]
cmp edi, 2
jb 0x4a566b
mov edx, dword [edx + 4]
jmp 0x4a566d
push 0xb6
push str....._third_party_boringssl_srccrypto_fipsmodule_bnmontgomery.c
push 0x44
jmp 0x4a555f
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x18], ecx
test eax, eax
js 0x4a5667
mov dword [edx + 0x20], 0
mov eax, dword [ebx]
mov ecx, dword [eax]
xor edx, edx
xor eax, eax
mov esi, 1
mov edi, 0x40
mov dword [ebp - 0x18], 0
xor ebx, ebx
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x20], ecx
mov dword [ebp - 0x1c], edx
nop
mov dword [ebp - 0x24], edi
and esi, 1
neg esi
mov edi, 0
sbb edi, edi
mov edx, dword [ebp - 0x1c]
and edx, edi
and esi, ecx
mov ecx, edx
xor ecx, eax
and edx, eax
mov eax, esi
xor eax, dword [ebp - 0x14]
and esi, dword [ebp - 0x14]
shrd eax, ecx, 1
shr ecx, 1
add esi, eax
adc edx, ecx
mov ecx, dword [ebp - 0x20]
and edi, 0x80000000
shrd dword [ebp - 0x18], ebx, 1
shr ebx, 1
or ebx, edi
mov edi, dword [ebp - 0x24]
mov dword [ebp - 0x14], esi
mov eax, edx
dec edi
jne 0x4a5690
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
mov dword [eax + 0x28], ecx
mov dword [eax + 0x2c], ebx
mov eax, 1
jmp 0x4a556d
Function at 0x4a8080
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x1d0
mov ebx, dword [ebp + 0xc]
mov eax, dword [0x575010]
xor eax, ebp
mov dword [esp + 0x1c8], eax
test ebx, ebx
je 0x4a831e
mov esi, dword [ebp + 0x10]
mov edi, dword [ebp + 8]
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmmword [esp + 0x1a0], xmm0
call fcn.004dcca0
lea ecx, [esp + 0x1a0]
test eax, eax
je 0x4a80ec
pxor xmm0, xmm0
movdqa xmmword [esp + 0x1b0], xmm0
movdqa xmmword [esp + 0x1a0], xmm0
jmp 0x4a80f7
push 0x20
push ecx
call fcn.004dccd0
add esp, 8
xor eax, eax
nop dword [eax]
movzx ecx, byte [esi + eax]
xor byte [esp + eax + 0x1a0], cl
inc eax
cmp eax, 0x20
jne 0x4a8100
lea eax, [esp + 0x78]
push 0x128
push 0xff
push eax
call fcn.0050bb40
add esp, 0xc
push 1
call fcn.004dbc80
add esp, 4
test eax, eax
je 0x4a8156
mov esi, eax
add eax, 0x120
mov dword [esp + 4], eax
cmp dword [esi + 0x120], 0xfff
jbe 0x4a820b
jmp 0x4a8219
push 0x128
call fcn.004c8820
add esp, 4
test eax, eax
je 0x4a817d
mov esi, eax
push 0x4b5160
push eax
push 1
call fcn.004dbd20
add esp, 0xc
test eax, eax
jne 0x4a8181
lea esi, [esp + 0x78]
mov dword [esi + 0x124], 0
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
pxor xmm0, xmm0
movdqa xmmword [esp + 0x30], xmm0
movdqa xmmword [esp + 0x20], xmm0
movdqa xmmword [esp + 0x10], xmm0
lea eax, [esp + 0x40]
push 0x30
push eax
call fcn.004dccd0
add esp, 8
lea eax, [esp + 0x10]
push 0
push eax
lea eax, [esp + 0x48]
push eax
push esi
call fcn.004b4990
add esp, 0x10
test eax, eax
je 0x4a8334
lea eax, [esi + 0x120]
mov dword [esp + 4], eax
mov dword [esi + 0x120], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x118], 0
mov eax, dword [esi + 0x118]
or eax, dword [esi + 0x11c]
je 0x4a8288
pcmpeqd xmm0, xmm0
movdqa xmmword [esp + 0x60], xmm0
movdqa xmmword [esp + 0x50], xmm0
movdqa xmmword [esp + 0x40], xmm0
lea eax, [esp + 0x40]
push 0x30
push eax
call fcn.004dccd0
add esp, 8
mov ecx, esi
lea edx, [esp + 0x40]
push 0x30
call fcn.004b4c40
add esp, 4
test eax, eax
je 0x4a8334
mov dword [esi + 0x110], 1
mov dword [esi + 0x114], 0
mov eax, dword [esp + 4]
mov dword [eax], 0
mov dword [esi + 0x11c], 0
mov dword [esi + 0x118], 0
cmp ebx, 0x10000
mov ecx, 0x10000
cmovb ecx, ebx
push 0x20
lea eax, [esp + 0x1a4]
push eax
mov dword [esp + 0x14], ecx
push ecx
push edi
mov dword [esp + 0x18], esi
push esi
call fcn.004b4f30
add esp, 0x14
test eax, eax
je 0x4a8334
mov eax, dword [esp + 4]
inc dword [eax]
mov eax, dword [esp + 0xc]
sub ebx, eax
je 0x4a8306
add edi, eax
nop word [eax + eax]
cmp ebx, 0x10000
mov esi, 0x10000
cmovb esi, ebx
push 0
lea eax, [esp + 0x1a4]
push eax
push esi
push edi
push dword [esp + 0x18]
call fcn.004b4f30
add esp, 0x14
test eax, eax
je 0x4a8334
add edi, esi
mov eax, dword [esp + 4]
inc dword [eax]
sub ebx, esi
jne 0x4a82d0
lea eax, [esp + 0x78]
cmp dword [esp + 8], eax
jne 0x4a831e
push 0x118
push eax
call fcn.004c88b0
add esp, 8
mov ecx, dword [esp + 0x1c8]
xor ecx, ebp
call fcn.00508d63
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.0051a568
int3
Function at 0x4b55b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x5c
mov esi, dword [ebp + 0x24]
mov eax, dword [ebp + 0x20]
mov edi, dword [ebp + 0xc]
mov ecx, dword [0x575010]
xor ecx, ebp
mov dword [ebp - 0x10], ecx
test eax, eax
jne 0x4b55e8
push 0x4a90a0
push 0x585818
call fcn.004dba90
add esp, 8
mov eax, 0x58581c
test esi, esi
cmove esi, eax
mov ebx, dword [eax + 4]
lea ecx, [ebx*2 + 2]
cmp ecx, edi
jbe 0x4b5609
push 0x147
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x7e
jmp 0x4b5628
mov dword [ebp - 0x68], esi
lea ecx, [ebx + ebx]
mov esi, ecx
not esi
lea edx, [edi + esi]
dec edx
cmp edx, dword [ebp + 0x14]
jae 0x4b564a
push 0x14d
push str....._third_party_boringssl_srccrypto_fipsmodule_rsapadding.c
push 0x72
push 0
push 4
call fcn.004dc3c0
add esp, 0x14
xor edi, edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00508d63
mov eax, edi
add esp, 0x5c
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x64], ebx
dec edi
or ecx, 1
cmp edi, ecx
jae 0x4b565c
push 0x152
jmp 0x4b5600
mov edx, dword [ebp + 0x18]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x54], ecx
mov byte [ecx], 0
mov ebx, dword [ebp - 0x64]
add ebx, ecx
inc ebx
sub esp, 4
push eax
push 0
mov dword [ebp - 0x58], ebx
push ebx
push dword [ebp + 0x1c]
push edx
call fcn.004a8dc0
add esp, 0x18
test eax, eax
je 0x4b579f
mov edx, edi
mov ebx, dword [ebp + 0x14]
sub edx, ebx
add esi, edx
mov eax, dword [ebp - 0x64]
mov ecx, dword [ebp - 0x58]
je 0x4b56b9
mov ebx, eax
add eax, ecx
push esi
push 0
push eax
mov esi, edx
call fcn.0050bb40
mov eax, ebx
mov edx, esi
mov ebx, dword [ebp + 0x14]
mov ecx, dword [ebp - 0x58]
add esp, 0xc
mov esi, eax
not eax
add edx, eax
mov byte [ecx + edx], 1
inc dword [ebp - 0x54]
test ebx, ebx
je 0x4b56de
lea eax, [ecx + edi]
sub eax, ebx
sub eax, esi
push ebx
push dword [ebp + 0x10]
push eax
call fcn.0050b5c0
add esp, 0xc
push 0x5652a8
push esi
push dword [ebp - 0x54]
call fcn.004a8080
add esp, 0xc
mov ebx, edi
sub ebx, esi
push ebx
call fcn.004c8820
add esp, 4
test eax, eax
je 0x4b579f
mov dword [ebp - 0x60], eax
mov ecx, eax
mov dword [ebp - 0x5c], ebx
mov edx, ebx
push dword [ebp - 0x68]
push esi
push dword [ebp - 0x54]
call fcn.004b57c0
add esp, 0xc
test eax, eax
je 0x4b57b1
cmp edi, esi
mov edi, dword [ebp - 0x58]
mov ebx, dword [ebp - 0x60]
je 0x4b574c
mov eax, dword [ebp - 0x5c]
cmp eax, 1
adc eax, 0
xor ecx, ecx
nop word [eax + eax]
movzx edx, byte [ebx + ecx]
xor byte [edi + ecx], dl
inc ecx
cmp eax, ecx
jne 0x4b5740
pcmpeqd xmm0, xmm0
movdqu xmmword [ebp - 0x20], xmm0
movdqu xmmword [ebp - 0x30], xmm0
movdqu xmmword [ebp - 0x40], xmm0
movdqu xmmword [ebp - 0x50], xmm0
lea ecx, [ebp - 0x50]
mov edx, esi
push dword [ebp - 0x68]
push dword [ebp - 0x5c]
push edi
call fcn.004b57c0
add esp, 0xc
test eax, eax
mov edi, 0
je 0x4b57a3
mov edi, 1
test esi, esi
je 0x4b57a3
xor eax, eax
mov edx, dword [ebp - 0x54]
nop
movzx ecx, byte [ebp + eax - 0x50]
xor byte [edx + eax], cl
inc eax
cmp esi, eax
jne 0x4b5790
jmp 0x4b57a3
xor ebx, ebx
xor edi, edi
push ebx
call fcn.004c8870
add esp, 4
jmp 0x4b5636
xor edi, edi
mov ebx, dword [ebp - 0x60]
jmp 0x4b57a3