joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45c700
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x45f1f0
push ebp
mov ebp, dword [esp + 0x10]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.0045f400
add esp, 0xc
test eax, eax
js 0x45f3f9
mov eax, dword [ebp + 0xf0]
push ebx
push esi
push edi
lea edi, [eax*4]
xor ebx, ebx
test edi, edi
jle 0x45f276
lea esi, [ebp + 8]
lea esi, [esi + edi*4]
lea eax, [ebp + 8]
nop dword [eax]
mov edx, dword [eax - 8]
lea eax, [eax + 0x10]
mov ecx, dword [esi - 8]
lea esi, [esi - 0x10]
mov dword [eax - 0x18], ecx
add ebx, 4
mov ecx, dword [esi + 0xc]
sub edi, 4
mov dword [esi + 8], edx
mov edx, dword [eax - 0x14]
mov dword [eax - 0x14], ecx
mov ecx, dword [esi + 0x10]
mov dword [esi + 0xc], edx
mov edx, dword [eax - 0x10]
mov dword [eax - 0x10], ecx
mov ecx, dword [esi + 0x14]
mov dword [esi + 0x10], edx
mov edx, dword [eax - 0xc]
mov dword [eax - 0xc], ecx
mov dword [esi + 0x14], edx
cmp ebx, edi
jl 0x45f230
mov eax, dword [ebp + 0xf0]
mov edi, 1
cmp eax, edi
jle 0x45f3f4
lea esi, [ebp + 4]
movzx eax, byte [esi + 0xd]
lea esi, [esi + 0x10]
mov edx, dword [esi - 4]
inc edi
movzx ecx, byte [eax*4 + 0x4f6248]
mov eax, edx
shr eax, 0x18
mov ecx, dword [ecx*4 + 0x4f7648]
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f6e48]
movzx eax, byte [esi - 2]
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f7248]
movzx eax, dl
mov edx, dword [esi]
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f7a48]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi - 4], ecx
movzx ecx, byte [eax*4 + 0x4f6248]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4f7248]
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f7648]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f6e48]
movzx eax, dl
mov edx, dword [esi + 4]
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f7a48]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi], ecx
movzx ecx, byte [eax*4 + 0x4f6248]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4f7248]
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f7648]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f6e48]
movzx eax, dl
mov edx, dword [esi + 8]
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f7a48]
mov eax, edx
shr eax, 0x10
movzx eax, al
mov dword [esi + 4], ecx
movzx ecx, byte [eax*4 + 0x4f6248]
mov eax, edx
shr eax, 8
movzx eax, al
mov ecx, dword [ecx*4 + 0x4f7248]
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f7648]
mov eax, edx
shr eax, 0x18
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f6e48]
movzx eax, dl
movzx eax, byte [eax*4 + 0x4f6248]
xor ecx, dword [eax*4 + 0x4f7a48]
mov dword [esi + 8], ecx
cmp edi, dword [ebp + 0xf0]
jl 0x45f286
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x45fbf0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x1c
call fcn.0045c6a0
mov ecx, dword [esp + 0x30]
push ebx
mov ebx, dword [esp + 0x28]
push ebp
push esi
mov esi, dword [esp + 0x34]
mov ebp, ecx
push edi
cmp esi, 0x10
jb 0x45fc74
mov eax, esi
shr eax, 4
mov dword [esp + 0x38], eax
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
sub ebp, dword [esp + 0x10]
mov edi, ebx
sub edi, dword [esp + 0x10]
mov edx, 4
mov ecx, dword [eax + ebp]
lea eax, [eax + 4]
xor ecx, dword [eax - 4]
mov dword [edi + eax - 4], ecx
sub edx, 1
jne 0x45fc31
push dword [esp + 0x3c]
push ebx
push ebx
call dword [esp + 0x50]
mov eax, dword [esp + 0x1c]
mov ebp, ebx
add eax, 0x10
add esp, 0xc
sub esi, 0x10
mov dword [esp + 0x10], eax
add ebx, 0x10
sub dword [esp + 0x38], 1
jne 0x45fc22
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x38], esi
jmp 0x45fc7c
mov eax, dword [esp + 0x30]
mov dword [esp + 0x10], eax
test esi, esi
je 0x45fda6
mov esi, ebx
mov dword [esp + 0x14], ebp
sub dword [esp + 0x14], eax
lea ecx, [eax + 1]
sub esi, eax
lea edi, [ebx + 2]
mov dword [esp + 0x20], esi
xor edx, edx
mov esi, 1
sub esi, eax
mov dword [esp + 0x24], esi
mov esi, 2
sub esi, eax
mov eax, ebp
sub eax, ebx
mov dword [esp + 0x28], esi
mov esi, dword [esp + 0x38]
mov dword [esp + 0x18], eax
mov eax, ebx
not eax
mov dword [esp + 0x1c], eax
cmp edx, esi
jae 0x45fd3b
mov al, byte [ecx - 1]
xor al, byte [edx + ebp]
mov byte [edi - 2], al
mov eax, dword [esp + 0x1c]
add eax, edi
cmp eax, esi
jae 0x45fd35
mov eax, dword [esp + 0x14]
mov esi, dword [esp + 0x20]
mov al, byte [ecx + eax]
xor al, byte [ecx]
mov byte [ecx + esi], al
mov eax, dword [esp + 0x24]
mov esi, dword [esp + 0x38]
add eax, ecx
cmp eax, esi
jae 0x45fd30
mov eax, dword [esp + 0x18]
mov al, byte [eax + edi]
xor al, byte [ecx + 1]
mov byte [edi], al
mov eax, dword [esp + 0x28]
add eax, ecx
cmp eax, esi
jae 0x45fd2b
mov al, byte [ecx + 2]
add ecx, 4
xor al, byte [edx + ebp + 3]
add edx, 4
mov byte [edi + 1], al
add edi, 4
cmp edx, 0x10
jb 0x45fcc6
jmp 0x45fd62
add edx, 3
jmp 0x45fd36
add edx, 2
jmp 0x45fd36
inc edx
cmp edx, 0x10
jae 0x45fd62
mov esi, dword [esp + 0x18]
lea ecx, [edx + ebx]
mov edi, 0x10
sub edi, edx
nop dword [eax]
mov al, byte [ecx + esi]
lea ecx, [ecx + 1]
mov byte [ecx - 1], al
sub edi, 1
jne 0x45fd50
mov esi, dword [esp + 0x38]
push dword [esp + 0x3c]
push ebx
push ebx
call dword [esp + 0x50]
add esp, 0xc
mov ebp, ebx
cmp esi, 0x10
jbe 0x45fd93
mov eax, dword [esp + 0x10]
sub esi, 0x10
add eax, 0x10
mov dword [esp + 0x38], esi
add ebx, 0x10
mov dword [esp + 0x10], eax
test esi, esi
jne 0x45fc84
movups xmm0, xmmword [ebp]
mov eax, dword [esp + 0x40]
pop edi
pop esi
pop ebp
movups xmmword [eax], xmm0
pop ebx
add esp, 0x1c
ret
movups xmm0, xmmword [ebp]
pop edi
pop esi
pop ebp
movups xmmword [ecx], xmm0
pop ebx
add esp, 0x1c
ret
Function at 0x460b80
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.0045c6a0
mov eax, dword [0x53e01c]
xor eax, esp
mov dword [esp + 0x104], eax
push esi
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov esi, eax
test esi, esi
je 0x460c1f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x460c1f
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.00409290
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004c9193
add esp, 0x1c
or ecx, 0xffffffff
test eax, eax
cmovs eax, ecx
lea ecx, [esp + 4]
push 0
push ecx
test eax, eax
mov ecx, 0x100
cmovs eax, ecx
push eax
lea eax, [esp + 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045b5b0
add esp, 0x108
ret
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0xff
push eax
call fcn.00409290
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.004c9193
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.00460a40
test eax, eax
jle 0x460cb3
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x460cc7
push 0
lea eax, [esp + 0xc]
mov dword [esp + 8], eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop esi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.0045b5b0
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x108]
pop esi
xor ecx, esp
call fcn.0045b5b0
add esp, 0x108
ret
Function at 0x4719a0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x471a69
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4719c1
cmp al, 0x6b
jne 0x471a69
inc ecx
cmp al, 0x6b
jne 0x471a2b
add esi, 0xfffffffd
xor eax, eax
test esi, esi
jle 0x4719e2
nop
mov dl, byte [ecx]
inc ecx
cmp dl, 0xba
je 0x4719e2
cmp dl, 0xbb
jne 0x471a0b
inc eax
cmp eax, esi
jl 0x4719d0
sub esi, eax
test eax, eax
jne 0x471a2e
push 0x83
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.00461f80
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x7b
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.00461f80
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + ecx], 0xcc
je 0x471a57
push 0x8b
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.00461f80
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push esi
push ecx
push dword [esp + 0x10]
call fcn.004bf020
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x70
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.00461f80
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x480c50
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.00480d20
mov edi, eax
add esp, 8
test edi, edi
jne 0x480ce1
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00461f80
push 0x5102d0
push esi
push 0x5102d4
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.00461700
add esp, 0x2c
call fcn.004c1ffc
cmp dword [eax], 2
je 0x480cbf
call fcn.004c1ffc
cmp dword [eax], 6
je 0x480cbf
lea eax, [edi + 2]
mov ecx, 0xb8
jmp 0x480cc9
mov eax, 0x80
mov ecx, 0xb6
push ecx
push str..crypto_bio_bss_file.c
push eax
push 0x6d
push 0x20
call fcn.00461f80
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x53e504
call fcn.0045dd70
mov esi, eax
add esp, 4
test esi, esi
jne 0x480d02
push edi
call fcn.004d1473
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.0045d9a0
push edi
push 1
push 0x6a
push esi
call fcn.0045d9d0
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret

Function at 0x4827c0
Capabilities:
Encode data using base64

Disassembly:
mov eax, 4
call fcn.0045c6a0
push esi
mov esi, dword [esp + 0x14]
xor ecx, ecx
mov dword [esp + 4], ecx
test esi, esi
jle 0x4828c3
mov edx, dword [esp + 0xc]
push ebx
push ebp
push edi
mov edi, dword [esp + 0x1c]
inc edi
nop dword [eax]
movzx eax, byte [edi - 1]
cmp esi, 3
jb 0x482848
movzx ecx, byte [edi]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + 0x5104b8]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x5104b8]
mov byte [edx + 1], cl
mov ecx, eax
and ecx, 0x3f
shr eax, 6
add edx, 2
and eax, 0x3f
mov bl, byte [ecx + 0x5104b8]
mov ecx, edx
mov al, byte [eax + 0x5104b8]
jmp 0x482894
shl eax, 0x10
cmp esi, 2
jne 0x482858
movzx ecx, byte [edi]
shl ecx, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x12
movzx ecx, byte [ecx + 0x5104b8]
mov byte [edx], cl
mov ecx, eax
shr ecx, 0xc
and ecx, 0x3f
movzx ecx, byte [ecx + 0x5104b8]
mov byte [edx + 1], cl
add edx, 2
mov ecx, edx
cmp esi, 1
jne 0x482886
mov al, 0x3d
jmp 0x482892
shr eax, 6
and eax, 0x3f
mov al, byte [eax + 0x5104b8]
mov bl, 0x3d
lea ebp, [ecx + 2]
mov byte [edx], al
mov byte [ecx + 1], bl
sub esi, 3
mov ecx, dword [esp + 0x10]
add edi, 3
add ecx, 4
mov edx, ebp
mov dword [esp + 0x10], ecx
test esi, esi
jg 0x4827f0
pop edi
mov byte [ebp], 0
mov eax, ecx
pop ebp
pop ebx
pop esi
pop ecx
ret
mov eax, dword [esp + 0xc]
pop esi
mov byte [eax], cl
mov eax, ecx
pop ecx
ret
Function at 0x491870
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.0045c6a0
mov eax, dword [0x53e01c]
xor eax, esp
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push ebx
mov dword [esp + 0xc], eax
xor ebx, ebx
mov eax, dword [esp + 0x7c]
push ebp
mov ebp, dword [esp + 0x78]
push esi
mov dword [esp + 0x10], eax
xor esi, esi
mov dword [eax], ebx
lea eax, [esp + 0x1c]
push edi
mov edi, dword [esp + 0x8c]
push eax
call fcn.00483e70
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.00483cd0
add esp, 0xc
test eax, eax
je 0x491972
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.00483890
add esp, 0xc
test eax, eax
je 0x491972
lea eax, [esp + 0x20]
push eax
call fcn.00483ad0
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x491990
push edi
call fcn.00466ff0
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.00492bf0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x491972
push esi
call fcn.004932f0
add esp, 4
test eax, eax
jle 0x491972
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00492960
add esp, 0x18
test eax, eax
jle 0x491972
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.00493200
add esp, 0x14
test eax, eax
jle 0x491972
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.00492b90
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0045b5b0
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x4919a8
cmp dword [edi], edx
je 0x4919d2
inc eax
add ecx, 4
cmp eax, 4
jl 0x491995
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.00461f80
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0045b5b0
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x491a06
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.00461f80
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.0045b5b0
add esp, 0x6c
ret
push dword [edi + 0x14]
mov ecx, dword [esp + 0x18]
push ecx
push dword [esp + 0x20]
lea ecx, [esp + 0x44]
push dword [esp + 0x28]
push ecx
push dword [esi]
call eax
mov ecx, dword [esp + 0x90]
add esp, 0x18
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045b5b0
add esp, 0x6c
ret
Function at 0x49ebc0
Capabilities:
Encode data using xor

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x10c], 0xffffffff
jne 0x49ebd2
xor eax, eax
pop edi
ret
push ebp
push esi
push edi
call fcn.0047f820
mov ecx, dword [esp + 0x1c]
add esp, 4
mov ebp, dword [esp + 0x14]
mov esi, eax
mov dword [ecx], esi
test ebp, ebp
je 0x49ec95
mov ecx, dword [edi + 0x10c]
push ebx
cmp ecx, esi
jne 0x49ec26
test esi, esi
jle 0x49ec74
mov edx, ebp
lea ecx, [edi + 0x8c]
mov ebx, esi
nop word [eax + eax]
mov al, byte [ecx + 0x60]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x49ec10
jmp 0x49ec74
sub eax, ecx
mov byte [ecx + edi + 0xec], 0x80
cmp eax, 1
jle 0x49ec4a
dec eax
push eax
lea eax, [edi + 0xed]
add eax, ecx
push 0
push eax
call fcn.004beec0
add esp, 0xc
test esi, esi
jle 0x49ec74
mov edx, ebp
lea ecx, [edi + 0xac]
mov ebx, esi
nop dword [eax + eax]
mov al, byte [ecx + 0x40]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub ebx, 1
jne 0x49ec60
push esi
push ebp
push ebp
push edi
call fcn.004812a0
add esp, 0x10
pop ebx
test eax, eax
jne 0x49ec95
push esi
push ebp
call fcn.0046c700
add esp, 8
xor eax, eax
pop esi
pop ebp
pop edi
ret
pop esi
pop ebp
mov eax, 1
pop edi
ret

Function at 0x4a2a60
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ecx, dword [edx + 4]
mov ebp, edx
push edi
cmp ecx, dword [ebx + 4]
mov edi, dword [esp + 0x10]
cmovge ebp, ebx
cmovge ebx, edx
mov eax, dword [ebx + 4]
cmp eax, dword [edi + 8]
jg 0x4a2a89
mov eax, edi
jmp 0x4a2a93
push eax
push edi
call fcn.00462cb0
add esp, 8
test eax, eax
jne 0x4a2a9b
pop edi
pop ebp
pop ebx
ret
push esi
xor esi, esi
cmp dword [ebp + 4], esi
jle 0x4a2ab9
mov eax, dword [ebp]
mov ecx, dword [ebx]
mov edx, dword [eax + esi*4]
mov eax, dword [edi]
xor edx, dword [ecx + esi*4]
mov dword [eax + esi*4], edx
inc esi
cmp esi, dword [ebp + 4]
jl 0x4a2aa3
mov eax, dword [ebx + 4]
cmp esi, eax
jge 0x4a2ad2
mov eax, dword [ebx]
mov ecx, dword [edi]
mov eax, dword [eax + esi*4]
mov dword [ecx + esi*4], eax
inc esi
mov eax, dword [ebx + 4]
cmp esi, eax
jl 0x4a2ac0
mov dword [edi + 4], eax
pop esi
test eax, eax
jle 0x4a2af5
mov edx, dword [edi]
add edx, 0xfffffffc
lea edx, [edx + eax*4]
mov ecx, dword [edx]
lea edx, [edx - 4]
test ecx, ecx
jne 0x4a2af0
dec eax
test eax, eax
jg 0x4a2ae2
mov dword [edi + 4], eax
test eax, eax
jne 0x4a2afe
mov dword [edi + 0xc], 0
pop edi
pop ebp
mov eax, 1
pop ebx
ret
Function at 0x4b4fd0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x70
call fcn.0045c6a0
mov eax, dword [0x53e01c]
xor eax, esp
mov dword [esp + 0x6c], eax
cmp dword [esp + 0x88], 0x40000000
mov eax, dword [esp + 0x7c]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x78]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x90]
push esi
mov dword [esp + 0xc], eax
mov dword [esp + 0x14], 0
ja 0x4b51a7
mov esi, dword [esp + 0x80]
cmp esi, 0x40000000
ja 0x4b51a7
cmp dword [esp + 0x88], 0x40000000
ja 0x4b51a7
push ebx
push edi
push eax
call fcn.004812f0
mov edi, eax
lea eax, [esp + 0x28]
push eax
call fcn.00483e70
push 0
push dword [esp + 0x20]
lea eax, [esp + 0x34]
mov ebx, 1
push eax
call fcn.00483910
push dword [esp + 0xa4]
lea eax, [esp + 0x3c]
mov dword [esp + 0x28], 0x1000000
push dword [esp + 0x30]
push eax
call fcn.00483ac0
add esp, 0x20
test eax, eax
je 0x4b5183
push 4
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00483ac0
add esp, 0xc
test eax, eax
je 0x4b5183
push dword [esp + 0x98]
lea eax, [esp + 0x28]
push dword [esp + 0x24]
push eax
call fcn.00483ac0
add esp, 0xc
test eax, eax
je 0x4b5183
push 0
cmp esi, edi
jb 0x4b514b
lea eax, [esp + 0x28]
push ebp
push eax
call fcn.00483810
add esp, 0xc
test eax, eax
je 0x4b5183
sub esi, edi
je 0x4b517b
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x2c]
add ebp, edi
push eax
inc ebx
call fcn.00483910
push dword [esp + 0x9c]
mov eax, ebx
mov byte [esp + 0x23], bl
push dword [esp + 0x28]
shr eax, 8
mov byte [esp + 0x26], al
mov eax, ebx
shr eax, 0x10
mov byte [esp + 0x25], al
mov eax, ebx
shr eax, 0x18
mov byte [esp + 0x24], al
lea eax, [esp + 0x38]
push eax
call fcn.00483ac0
add esp, 0x18
test eax, eax
jne 0x4b5097
jmp 0x4b5183
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00483810
add esp, 0xc
test eax, eax
je 0x4b5183
push esi
lea eax, [esp + 0x40]
push eax
push ebp
call fcn.004bf020
lea eax, [esp + 0x48]
push edi
push eax
call fcn.0046c700
add esp, 0x14
mov dword [esp + 0x1c], 1
lea eax, [esp + 0x24]
push eax
call fcn.00483ad0
mov eax, dword [esp + 0x20]
add esp, 4
pop edi
pop ebx
pop esi
pop ebp
mov ecx, dword [esp + 0x6c]
xor ecx, esp
call fcn.0045b5b0
add esp, 0x70
ret
mov ecx, dword [esp + 0x74]
xor eax, eax
pop esi
pop ebp
xor ecx, esp
call fcn.0045b5b0
add esp, 0x70
ret
Function at 0x4b5370
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x90
call fcn.0045c6a0
mov eax, dword [0x53e01c]
xor eax, esp
mov dword [esp + 0x8c], eax
mov edx, dword [esp + 0xa4]
xor ecx, ecx
push ebx
mov ebx, dword [esp + 0xa4]
mov dword [esp + 4], edx
push ebp
mov ebp, dword [esp + 0xa0]
mov dword [esp + 0x10], ebp
push esi
mov esi, dword [esp + 0xa0]
push edi
mov edi, dword [esp + 0xac]
mov eax, dword [esi]
test ebx, ebx
je 0x4b53dc
cmp ebx, eax
je 0x4b53d3
test ebp, ebp
je 0x4b5559
test edi, edi
js 0x4b5559
mov ecx, 1
mov dword [esi], ebx
jmp 0x4b53e6
test eax, eax
je 0x4b5559
mov ebx, eax
test ebp, ebp
je 0x4b5550
push ebx
call fcn.0047b610
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x4b541a
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.00460ce0
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, edi
jge 0x4b546b
push dword [esp + 0x10]
lea ebp, [esi + 4]
push ebx
push ebp
call fcn.00483910
add esp, 0xc
test eax, eax
je 0x4b5559
push edi
push dword [esp + 0x1c]
push ebp
call fcn.00483ac0
add esp, 0xc
test eax, eax
je 0x4b5559
lea eax, [esi + 0x4c]
push eax
lea eax, [esi + 0x50]
push eax
push ebp
call fcn.00483890
add esp, 0xc
test eax, eax
je 0x4b5559
mov edi, dword [esi + 0x4c]
jmp 0x4b5488
cmp edi, 0x80
ja 0x4b5559
push edi
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.004bf020
add esp, 0xc
mov dword [esi + 0x4c], edi
cmp edi, 0x80
je 0x4b54a8
mov eax, 0x80
sub eax, edi
push eax
lea eax, [esi + 0x50]
add eax, edi
push 0
push eax
call fcn.004beec0
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
nop
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x4b54b0
push edx
lea edi, [esi + 0x1c]
push ebx
push edi
call fcn.00483910
add esp, 0xc
test eax, eax
je 0x4b5559
push ebx
call fcn.0047b610
push eax
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00483ac0
add esp, 0x10
test eax, eax
je 0x4b5559
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x1c], al
inc ecx
cmp ecx, 0x80
jl 0x4b54f4
push dword [esp + 0x10]
lea edi, [esi + 0x34]
push ebx
push edi
call fcn.00483910
add esp, 0xc
test eax, eax
je 0x4b5559
push ebx
call fcn.0047b610
push eax
lea eax, [esp + 0x24]
push eax
push edi
call fcn.00483ac0
add esp, 0x10
test eax, eax
je 0x4b5559
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.00483cd0
add esp, 8
test eax, eax
je 0x4b5559
mov eax, 1
jmp 0x4b555b
test ecx, ecx
je 0x4b5535
jmp 0x4b54ac
xor eax, eax
mov ecx, dword [esp + 0x9c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0045b5b0
add esp, 0x90
ret
Function at 0x4b80c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 8
call fcn.0045c6a0
push ebx
mov ebx, dword [esp + 0x14]
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x20]
push edi
mov edi, dword [esp + 0x34]
mov edi, dword [edi]
mov dword [esp + 0x10], edi
test edi, edi
je 0x4b8109
mov ecx, dword [esp + 0x30]
nop dword [eax]
test esi, esi
je 0x4b8109
mov al, byte [edi + ecx]
dec esi
xor al, byte [ebp]
inc edi
mov byte [ebx], al
inc ebp
inc ebx
and edi, 0xf
mov dword [esp + 0x10], edi
jne 0x4b80f0
mov edx, dword [esp + 0x2c]
movzx ecx, byte [edx + 0xc]
movzx eax, byte [edx + 0xd]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xe]
shl ecx, 8
or ecx, eax
movzx eax, byte [edx + 0xf]
shl ecx, 8
or ecx, eax
mov dword [esp + 0x24], ecx
cmp esi, 0x10
jb 0x4b81da
nop dword [eax]
mov eax, esi
mov edx, ecx
shr eax, 4
xor edi, edi
add ecx, eax
cmp ecx, eax
cmovae edi, ecx
neg edx
mov dword [esp + 0x24], edi
cmp ecx, eax
mov edi, dword [esp + 0x2c]
push edi
push dword [esp + 0x2c]
cmovae edx, eax
push edx
push ebx
push ebp
mov dword [esp + 0x28], edx
call dword [esp + 0x4c]
mov edx, dword [esp + 0x38]
add esp, 0x14
mov eax, edx
mov byte [edi + 0xf], dl
shr eax, 0x18
mov byte [edi + 0xc], al
mov eax, edx
shr eax, 0x10
mov byte [edi + 0xd], al
mov eax, edx
shr eax, 8
mov byte [edi + 0xe], al
test edx, edx
jne 0x4b81b6
mov edx, 0xc
mov eax, 1
nop
movzx ecx, byte [edx + edi - 1]
dec edx
add eax, ecx
mov byte [edx + edi], al
shr eax, 8
test edx, edx
jne 0x4b81a0
mov edx, dword [esp + 0x24]
mov eax, dword [esp + 0x14]
mov ecx, edx
shl eax, 4
sub esi, eax
add ebx, eax
add ebp, eax
cmp esi, 0x10
jae 0x4b8140
mov edi, dword [esp + 0x10]
mov dword [esp + 0x24], edx
mov edx, dword [esp + 0x2c]
test esi, esi
je 0x4b8248
mov eax, dword [esp + 0x30]
xorps xmm0, xmm0
push edx
push dword [esp + 0x2c]
push 1
push eax
push eax
movups xmmword [eax], xmm0
call dword [esp + 0x4c]
mov ecx, dword [esp + 0x38]
add esp, 0x14
mov edx, dword [esp + 0x2c]
inc ecx
mov eax, ecx
shr eax, 0x18
mov byte [edx + 0xc], al
mov eax, ecx
shr eax, 0x10
mov byte [edx + 0xd], al
mov eax, ecx
shr eax, 8
mov byte [edx + 0xe], al
mov byte [edx + 0xf], cl
test ecx, ecx
jne 0x4b8229
push edx
call fcn.004b8290
add esp, 4
mov eax, dword [esp + 0x30]
sub ebp, eax
sub ebx, eax
lea ecx, [edi + eax]
add edi, esi
mov al, byte [ecx + ebp]
lea ecx, [ecx + 1]
xor al, byte [ecx - 1]
mov byte [ebx + ecx - 1], al
sub esi, 1
jne 0x4b8236
mov eax, dword [esp + 0x34]
mov dword [eax], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret