joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468350
Capabilities:
Check for time delay via gettickcount

Disassembly:
sub esp, 8
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [eax], 0
call fcn.00468f10
mov esi, dword [esp + 0x1c]
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.00468f40
mov ebx, dword [esp + 0x40]
add esp, 0x10
cmp eax, ebx
jg 0x46840a
mov edi, dword [esp + 0x28]
mov ebp, dword [esp + 0x24]
lea ebx, [ebx]
mov edx, ebx
sub edx, eax
mov eax, dword [esp + 0x20]
push edx
push 0xffffffffffffffff
push eax
call fcn.00467ca0
add esp, 0xc
test eax, eax
jle 0x46842d
mov edx, dword [esp + 0x20]
lea ecx, [esp + 0x14]
push ecx
push edi
push ebp
push edx
call fcn.004522f0
add esp, 0x10
cmp eax, 0x51
je 0x4683e9
test eax, eax
jne 0x468430
mov eax, dword [esp + 0x14]
cmp edi, eax
je 0x468417
test eax, eax
je 0x46842d
sub edi, eax
add ebp, eax
add dword [esp + 0x10], eax
call fcn.00468f10
mov ecx, dword [esi + 0xc4]
push ecx
mov ecx, dword [esi + 0xc0]
push ecx
push edx
push eax
call fcn.00468f40
add esp, 0x10
cmp eax, ebx
jle 0x4683a0
pop edi
pop esi
pop ebp
mov eax, 0x1c
pop ebx
add esp, 8
ret
mov edx, dword [esp + 0x10]
mov ecx, dword [esp + 0x2c]
pop edi
pop esi
add eax, edx
pop ebp
mov dword [ecx], eax
xor eax, eax
pop ebx
add esp, 8
ret
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret

Function at 0x46c200
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push 0
push 0
push eax
push ecx
push 0
push 0
call fcn.00435dec
add esp, 0x18
test eax, eax
je 0x46c223
cmp eax, 0xffffffff
jne 0x46c225
xor eax, eax
ret

Function at 0x46c260
Capabilities:
Check for time delay via gettickcount

Disassembly:
mov eax, dword [esp + 4]
push ebx
mov ebx, dword [eax + 0x2c]
push esi
push edi
mov edi, dword [ebx]
mov esi, dword [edi + 0x1dc]
test esi, esi
jne 0x46c279
mov esi, dword [eax + 0x28]
mov ecx, dword [eax + 0x24]
mov edx, dword [eax + 0x20]
push ecx
push edx
call fcn.00468f10
push edx
push eax
call fcn.00468f40
add esp, 0x10
sub esi, eax
cmp dword [edi + 0x1d4], 0
je 0x46c2c6
mov eax, dword [ebx + 0xbc]
mov ecx, dword [ebx + 0xb8]
push eax
push ecx
call fcn.00468f10
push edx
push eax
call fcn.00468f40
mov ecx, dword [edi + 0x1d4]
sub ecx, eax
add esp, 0x10
cmp esi, ecx
mov eax, ecx
jge 0x46c2c8
mov eax, esi
pop edi
pop esi
pop ebx
ret
Function at 0x46cc10
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 0x14]
lea eax, [ecx + eax*2 + 0xc]
push edi
push eax
call dword [0x527c1c]
mov edi, eax
add esp, 4
test edi, edi
jne 0x46cc35
pop edi
pop esi
pop ecx
ret
lea eax, [edi + 0xc]
mov dword [edi], esi
mov dword [edi + 4], eax
mov edx, dword [esi + 0xc]
push ebx
add edx, eax
push ebp
mov ebp, dword [esp + 0x20]
mov dword [edi + 8], edx
cmp ebp, dword [esi + 0x10]
jbe 0x46cc7c
push eax
mov eax, dword [esi]
call eax
mov ecx, dword [esp + 0x20]
mov edx, dword [edi + 4]
mov eax, dword [esi + 4]
push ebp
push ecx
push edx
call eax
mov ebx, dword [edi + 8]
mov ecx, dword [edi + 4]
add ebx, dword [esi + 0xc]
mov edx, dword [esi + 8]
push ecx
push ebx
call edx
mov ebp, dword [esi + 0x14]
add esp, 0x18
jmp 0x46cc80
mov ebx, dword [esp + 0x1c]
mov eax, dword [edi + 4]
mov ecx, dword [esi]
push eax
call ecx
mov edx, dword [edi + 8]
mov eax, dword [esi]
push edx
call eax
add esp, 8
mov dword [esp + 0x10], 0
test ebp, ebp
jbe 0x46ccde
mov dword [esp + 0x10], ebp
mov cl, byte [ebx]
xor cl, 0x36
mov byte [esp + 0x18], cl
mov eax, dword [edi + 4]
mov ecx, dword [esi + 4]
push 1
lea edx, [esp + 0x1c]
push edx
push eax
call ecx
mov dl, byte [ebx]
xor dl, 0x5c
mov byte [esp + 0x24], dl
mov ecx, dword [edi + 8]
mov edx, dword [esi + 4]
push 1
lea eax, [esp + 0x28]
push eax
push ecx
inc ebx
call edx
add esp, 0x18
sub ebp, 1
jne 0x46cca3
mov eax, dword [esp + 0x10]
pop ebp
pop ebx
cmp eax, dword [esi + 0x10]
jae 0x46cd21
lea esp, [esp]
mov ecx, dword [edi + 4]
mov edx, dword [esi + 4]
push 1
push 0x4f16bc
push ecx
call edx
mov eax, dword [edi + 8]
mov ecx, dword [esi + 4]
push 1
push 0x4f16bd
push eax
call ecx
mov eax, dword [esp + 0x20]
inc eax
add esp, 0x18
mov dword [esp + 8], eax
cmp eax, dword [esi + 0x10]
jb 0x46ccf0
mov eax, edi
pop edi
pop esi
pop ecx
ret

Function at 0x46df60
Capabilities:
Read file on windows

Disassembly:
push ebp
push edi
xor ecx, ecx
mov edi, eax
mov eax, dword [esi]
cmp dword [eax + 4], 2
sete cl
mov ebp, ecx
test ebp, ebp
je 0x46df84
mov edx, dword [eax + 8]
mov eax, dword [esi + 0xc]
push edx
push ebx
push 1
push edi
call eax
jmp 0x46dfb5
cmp dword [esi + 8], 0
jne 0x46dfa8
mov ecx, dword [eax + 8]
push 0x4f17b4
push ecx
call fcn.00470a4d
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x46dfa8
pop edi
or eax, 0xffffffff
pop ebp
ret
mov edx, dword [esi + 8]
push edx
push ebx
push 1
push edi
call fcn.00436f88
mov edi, eax
add esp, 0x10
test edi, edi
je 0x46dfc2
cmp edi, ebx
jbe 0x46dfdb
test ebp, ebp
jne 0x46dfd5
mov eax, dword [esi + 8]
push eax
call fcn.00436b57
add esp, 4
mov dword [esi + 8], ebp
mov ecx, dword [esi]
mov edx, dword [ecx]
mov dword [esi], edx
mov eax, edi
pop edi
pop ebp
ret
Function at 0x474b80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xffffffc0
mov eax, 0x474
call fcn.00434640
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x470], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esp + 0x3c], 0
test esi, esi
jne 0x474bc7
xor eax, eax
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x470]
xor ecx, esp
call fcn.00431c7a
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x48]
push eax
push esi
call fcn.004da62c
add esp, 8
test eax, eax
jl 0x474bb0
mov eax, 8
call fcn.00434640
fldz
fstp qword [esp]
lea ecx, [esp + 0x50]
push 0x30
push ecx
call fcn.004749f0
mov ebx, dword [ebp + 0xc]
add esp, 0x10
test ebx, ebx
je 0x474bb0
push 0x4f17b4
push esi
call fcn.00470a4d
add esp, 8
mov dword [esp + 0x40], eax
test eax, eax
je 0x474ca1
jmp 0x474c24
mov eax, dword [esp + 0x40]
test ebx, ebx
jle 0x474c32
cmp ebx, 0x400
mov esi, ebx
jl 0x474c37
mov esi, 0x400
push eax
push esi
lea edx, [esp + 0x80]
push 1
push edx
call fcn.00436f88
mov edi, eax
add esp, 0x10
mov dword [esp + 0x44], edi
test edi, edi
jle 0x474c85
fild dword [esp + 0x44]
mov eax, 8
call fcn.00434640
lea eax, [esp + 0x80]
fstp qword [esp]
push esi
push eax
call fcn.004749f0
add dword [esp + 0x4c], edi
add esp, 0x10
test ebx, ebx
jle 0x474c20
sub ebx, esi
test ebx, ebx
jg 0x474c20
mov ecx, dword [esp + 0x40]
push ecx
call fcn.00436b57
lea edx, [esp + 0x7c]
push 0x400
push edx
call fcn.00482180
add esp, 0xc
mov ecx, dword [esp + 0x47c]
mov eax, dword [esp + 0x3c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00431c7a
mov esp, ebp
pop ebp
ret
Function at 0x480160
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], ecx
mov dword [eax + 0x14], ecx
mov dword [eax + 0x58], ecx
lea eax, [ecx + 1]
ret
Function at 0x484db0
Capabilities:
Access the windows event log

Disassembly:
mov eax, pe_nt_image_headers32
call fcn.00434640
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x484e15
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x484e15
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call fcn.00439984
add eax, 0x40
push eax
call fcn.004dab1b
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00431c7a
add esp, 0x108
ret
mov eax, dword [esp + 0x10c]
lea edx, [esp + 0x110]
push edx
push eax
lea ecx, [esp + 0xc]
push 0xff
push ecx
call fcn.004704fc
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x484ea4
call fcn.00484cd0
test eax, eax
jle 0x484ea4
push esi
push str.OPENSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
push 0
mov esi, eax
lea eax, [esp + 8]
push eax
push 0
push 1
push 0
push 0
push 0
push 1
lea edx, [esp + 0x28]
push esi
mov dword [esp + 0x28], edx
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.00431c7a
add esp, 0x108
ret
push 0x10
push str.OpenSSL:_FATAL
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00431c7a
add esp, 0x108
ret

Function at 0x48a7c0
Capabilities:
Check if file exists

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
push edi
push esi
push ebx
call fcn.00470a4d
mov edi, eax
add esp, 8
test edi, edi
jne 0x48a856
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0047a540
push 0x4fa674
push esi
push 0x4fa670
push ebx
push str.fopen_
push 5
call fcn.0047a740
add esp, 0x2c
call fcn.00434449
cmp dword [eax], 2
jne 0x48a838
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0047a540
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x83
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0047a540
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x531424
call fcn.004760c0
mov esi, eax
add esp, 4
test esi, esi
jne 0x48a878
push edi
call fcn.00436b57
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.00475b40
push edi
push 1
push 0x6a
push esi
call fcn.00475ea0
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret

Function at 0x48cc70
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x48ccb7
mov al, byte [edx]
test al, al
je 0x48ccb7
push edi
mov edi, 0x100
movsx eax, al
or eax, edi
mov ecx, eax
shr ecx, 2
xor ecx, eax
and ecx, 0xf
add edi, 0x100
rol esi, cl
mov ecx, eax
imul ecx, eax
mov al, byte [edx + 1]
inc edx
xor esi, ecx
test al, al
jne 0x48cc87
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4abd00
Capabilities:
Encode data using base64

Disassembly:
mov ecx, dword [esp + 4]
push ebp
push edi
mov edi, dword [esp + 0x14]
xor ebp, ebp
test edi, edi
jle 0x4abde3
push esi
mov esi, dword [esp + 0x14]
lea esp, [esp]
cmp edi, 3
movzx edx, byte [esi]
jl 0x4abd7e
movzx eax, byte [esi + 1]
shl edx, 8
or edx, eax
movzx eax, byte [esi + 2]
shl edx, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx + 1], al
inc ecx
mov eax, edx
shr eax, 6
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
and edx, 0x3f
mov dl, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
jmp 0x4abdd0
shl edx, 0x10
cmp edi, 2
jne 0x4abd8f
movzx eax, byte [esi + 1]
shl eax, 8
or edx, eax
mov eax, edx
shr eax, 0x12
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], al
mov eax, edx
shr eax, 0xc
and eax, 0x3f
movzx eax, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc ecx
mov byte [ecx], al
inc ecx
cmp edi, 1
jne 0x4abdbd
lea edx, [edi + 0x3c]
jmp 0x4abdca
shr edx, 6
and edx, 0x3f
movzx edx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [ecx], dl
inc ecx
mov byte [ecx], 0x3d
sub edi, 3
inc ecx
add ebp, 4
add esi, 3
test edi, edi
jg 0x4abd20
pop esi
pop edi
mov eax, ebp
mov byte [ecx], 0
pop ebp
ret
Function at 0x4aeee0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x20
call fcn.00434640
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x34]
push ebx
mov ebx, dword [esp + 0x34]
push ebp
mov ebp, dword [esp + 0x30]
dec ebp
lea edx, [ebp - 0x29]
cmp ebx, edx
push edi
mov edi, dword [esp + 0x30]
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], ecx
jle 0x4aef45
push 0x2d
push str..crypto_rsa_rsa_oaep.c
push 0x6e
push 0x79
push 4
call fcn.0047a540
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00431c7a
add esp, 0x20
ret
cmp ebp, 0x29
jge 0x4aef73
push 0x33
push str..crypto_rsa_rsa_oaep.c
push 0x78
push 0x79
push 4
call fcn.0047a540
add esp, 0x14
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00431c7a
add esp, 0x20
ret
push esi
mov byte [edi], 0
lea esi, [edi + 1]
push 0
add edi, 0x15
call fcn.0048c890
mov ecx, dword [esp + 0x18]
push eax
mov eax, dword [esp + 0x50]
push 0
push edi
push eax
push ecx
call fcn.004852d0
mov edx, ebp
sub edx, ebx
sub edx, 0x29
push edx
lea eax, [edi + 0x14]
push 0
push eax
call fcn.004344a0
mov edx, dword [esp + 0x34]
mov ecx, edi
sub ecx, ebx
lea eax, [ecx + ebp]
push ebx
mov byte [eax - 0x15], 1
push edx
add eax, 0xffffffec
push eax
call fcn.0043ab90
push 0x14
push esi
call fcn.00474a60
add esp, 0x38
test eax, eax
jle 0x4af005
push 0x48
add ebp, 0xffffffec
push str..crypto_rsa_rsa_oaep.c
push ebp
call fcn.0047ab70
mov ebx, eax
add esp, 0xc
mov dword [esp + 0x14], ebx
test ebx, ebx
jne 0x4af01a
push 0x4b
push str..crypto_rsa_rsa_oaep.c
push 0x41
push 0x79
push 4
call fcn.0047a540
add esp, 0x14
pop esi
pop edi
pop ebp
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x1c]
xor ecx, esp
call fcn.00431c7a
add esp, 0x20
ret
call fcn.0048c890
push eax
push 0x14
push esi
push ebp
push ebx
call fcn.004aeda0
add esp, 0x14
test ebp, ebp
jle 0x4af042
mov eax, edi
sub ebx, edi
mov ecx, ebp
mov dl, byte [ebx + eax]
xor byte [eax], dl
inc eax
sub ecx, 1
jne 0x4af037
call fcn.0048c890
push eax
push ebp
push edi
lea eax, [esp + 0x24]
push 0x14
push eax
call fcn.004aeda0
lea ecx, [esp + 0x2c]
lea edi, [esp + 0x2d]
lea ebp, [esp + 0x2e]
lea edx, [esp + 0x2f]
sub ecx, esi
sub edi, esi
sub ebp, esi
sub edx, esi
lea ebx, [esp + 0x30]
add esp, 0x14
sub ebx, esi
mov eax, esi
mov dword [esp + 0x10], ebx
mov esi, 4
movzx ebx, byte [ecx + eax]
xor byte [eax], bl
movzx ebx, byte [edi + eax]
xor byte [eax + 1], bl
movzx ebx, byte [eax + ebp]
xor byte [eax + 2], bl
movzx ebx, byte [edx + eax]
xor byte [eax + 3], bl
mov ebx, dword [esp + 0x10]
movzx ebx, byte [ebx + eax]
xor byte [eax + 4], bl
add eax, 5
sub esi, 1
jne 0x4af082
mov ecx, dword [esp + 0x14]
push ecx
call fcn.0047ad20
mov ecx, dword [esp + 0x30]
add esp, 4
lea eax, [esi + 1]
pop esi
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00431c7a
add esp, 0x20
ret
Function at 0x4af6d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 0x14]
cmp dword [esp + 0x18], esi
jne 0x4af79c
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
cmp al, 0x6a
je 0x4af6f1
cmp al, 0x6b
jne 0x4af79c
lea edx, [ecx + 1]
cmp al, 0x6b
jne 0x4af75d
add esi, 0xfffffffd
xor ecx, ecx
test esi, esi
jle 0x4af711
mov al, byte [edx]
inc edx
cmp al, 0xba
je 0x4af711
cmp al, 0xbb
jne 0x4af73a
inc ecx
cmp ecx, esi
jl 0x4af701
sub esi, ecx
test ecx, ecx
jne 0x4af760
push 0x8a
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.0047a540
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
push 0x81
push str..crypto_rsa_rsa_x931.c
push 0x8a
push 0x80
push 4
call fcn.0047a540
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
add esi, 0xfffffffe
cmp byte [esi + edx], 0xcc
je 0x4af789
push 0x93
push str..crypto_rsa_rsa_x931.c
push 0x8b
push 0x80
push 4
call fcn.0047a540
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
mov eax, dword [esp + 8]
push esi
push edx
push eax
call fcn.0043ab90
add esp, 0xc
mov eax, esi
pop esi
ret
push 0x72
push str..crypto_rsa_rsa_x931.c
push 0x89
push 0x80
push 4
call fcn.0047a540
add esp, 0x14
or eax, 0xffffffff
pop esi
ret
Function at 0x4b52c0
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.00434640
mov eax, dword [0x526a28]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x40]
lea ecx, [ebx - 1]
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
cmp ecx, 0x7f
ja 0x4b547c
mov edx, dword [edi]
mov ecx, dword [edi + 4]
push ebp
push esi
push eax
mov dword [esp + 0x20], edx
mov edx, dword [edi + 8]
mov dword [esp + 0x24], ecx
mov ecx, dword [edi + 0xc]
push edi
push edi
mov dword [esp + 0x30], edx
mov dword [esp + 0x34], ecx
call fcn.004b5d90
lea eax, [ebx + 7]
cdq
and edx, 7
add eax, edx
mov ebp, eax
add esp, 0xc
sar ebp, 3
cmp dword [esp + 0x58], 0
je 0x4b5365
test ebp, ebp
jle 0x4b53b2
mov ecx, dword [esp + 0x44]
mov ebx, dword [esp + 0x14]
mov edx, edi
lea esi, [esp + 0x2c]
sub edx, ecx
sub esi, ecx
sub ebx, ecx
lea esp, [esp]
mov al, byte [edx + ecx]
xor al, byte [ecx]
inc ecx
sub ebp, 1
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x4b5350
jmp 0x4b53ae
xor esi, esi
test ebp, ebp
jle 0x4b53b2
mov edx, dword [esp + 0x44]
lea eax, [esp + 0x2c]
mov ecx, eax
sub edx, eax
mov eax, dword [esp + 0x14]
mov ebx, edi
sub ebx, ecx
sub eax, ecx
mov dword [esp + 0x18], ebx
mov dword [esp + 0x14], eax
jmp 0x4b5394
mov ebx, dword [esp + 0x18]
lea ecx, [esp + esi + 0x2c]
mov al, byte [edx + ecx]
mov bl, byte [ebx + ecx]
xor bl, al
mov byte [ecx], al
mov eax, dword [esp + 0x14]
inc esi
cmp esi, ebp
mov byte [eax + ecx], bl
jl 0x4b5390
mov ebx, dword [esp + 0x4c]
mov ecx, ebx
and ecx, reloc.OLEAUT32.dll_VariantInit
jns 0x4b53c1
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
mov dword [esp + 0x14], ecx
test ecx, ecx
jne 0x4b5404
mov ecx, dword [esp + eax + 0x1c]
mov edx, dword [esp + eax + 0x20]
lea eax, [esp + eax + 0x1c]
mov dword [edi], ecx
mov ecx, dword [eax + 8]
mov dword [edi + 4], edx
mov edx, dword [eax + 0xc]
pop esi
mov dword [edi + 8], ecx
pop ebp
mov dword [edi + 0xc], edx
pop edi
pop ebx
mov ecx, dword [esp + 0x2c]
xor ecx, esp
call fcn.00431c7a
add esp, 0x30
ret
mov dl, 8
sub dl, cl
mov byte [esp + 0x13], dl
inc edi
lea esi, [esp + eax + 0x1d]
mov ebp, 4
movzx edx, byte [esi - 1]
mov al, byte [esi]
shl dl, cl
movzx ecx, byte [esp + 0x13]
mov bl, al
shr bl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
movzx ecx, byte [esp + 0x13]
or dl, bl
mov byte [edi - 1], dl
mov dl, byte [esi + 1]
mov bl, dl
shr bl, cl
mov ecx, dword [esp + 0x14]
shl dl, cl
movzx ecx, byte [esp + 0x13]
or al, bl
mov byte [edi], al
mov al, byte [esi + 2]
mov bl, al
shr bl, cl
movzx ecx, byte [esp + 0x13]
or dl, bl
mov byte [edi + 1], dl
movzx edx, byte [esi + 3]
shr dl, cl
mov ecx, dword [esp + 0x14]
shl al, cl
add esi, 4
add edi, 4
or dl, al
sub ebp, 1
mov byte [edi - 2], dl
jne 0x4b5416
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
pop edi
pop ebx
xor ecx, esp
call fcn.00431c7a
add esp, 0x30
ret
Function at 0x4b5b40
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push ebx
mov ebx, dword [esp + 0x10]
push ebx
push eax
push ecx
call fcn.004b5610
add esp, 0xc
test eax, eax
jl 0x4b5d88
mov edx, dword [ebx + 0xf0]
add edx, edx
push esi
add edx, edx
xor esi, esi
push edi
test edx, edx
jle 0x4b5bbd
lea ecx, [ebx + edx*4 + 8]
lea eax, [ebx + 8]
push ebp
lea ebx, [ebx]
mov ebp, dword [ecx - 8]
mov edi, dword [eax - 8]
mov dword [eax - 8], ebp
mov ebp, dword [ecx - 4]
mov dword [ecx - 8], edi
mov edi, dword [eax - 4]
mov dword [eax - 4], ebp
mov ebp, dword [ecx]
mov dword [ecx - 4], edi
mov edi, dword [eax]
mov dword [eax], ebp
mov ebp, dword [ecx + 4]
mov dword [ecx], edi
mov edi, dword [eax + 4]
mov dword [eax + 4], ebp
mov dword [ecx + 4], edi
add esi, 4
sub edx, 4
add eax, 0x10
sub ecx, 0x10
cmp esi, edx
jl 0x4b5b80
pop ebp
mov edx, 1
cmp dword [ebx + 0xf0], edx
jle 0x4b5d84
lea eax, [ebx + 2]
mov ecx, dword [eax + 0xe]
movzx edi, byte [eax + 0xf]
mov edi, dword [edi*4 + 0x505db0]
add eax, 0x10
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x505db0]
and esi, 0xff
mov esi, dword [esi*4 + 0x5069b0]
and edi, 0xff
xor esi, dword [edi*4 + 0x5071b0]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x505db0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5075b0]
movzx ecx, byte [eax]
mov ecx, dword [ecx*4 + 0x505db0]
movzx edi, byte [eax + 3]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x506db0]
mov ecx, dword [eax + 2]
mov dword [eax - 2], esi
mov edi, dword [edi*4 + 0x505db0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x505db0]
and esi, 0xff
mov esi, dword [esi*4 + 0x5069b0]
and edi, 0xff
xor esi, dword [edi*4 + 0x5071b0]
movzx edi, byte [eax + 4]
mov edi, dword [edi*4 + 0x505db0]
and edi, 0xff
xor esi, dword [edi*4 + 0x506db0]
movzx edi, byte [eax + 7]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x505db0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5075b0]
mov ecx, dword [eax + 6]
mov dword [eax + 2], esi
mov edi, dword [edi*4 + 0x505db0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x505db0]
and esi, 0xff
mov esi, dword [esi*4 + 0x5069b0]
and edi, 0xff
xor esi, dword [edi*4 + 0x5071b0]
movzx edi, byte [eax + 8]
mov edi, dword [edi*4 + 0x505db0]
and edi, 0xff
xor esi, dword [edi*4 + 0x506db0]
movzx edi, byte [eax + 0xb]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x505db0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5075b0]
mov ecx, dword [eax + 0xa]
mov dword [eax + 6], esi
mov edi, dword [edi*4 + 0x505db0]
mov esi, ecx
shr esi, 0x18
mov esi, dword [esi*4 + 0x505db0]
and esi, 0xff
mov esi, dword [esi*4 + 0x5069b0]
and edi, 0xff
xor esi, dword [edi*4 + 0x5071b0]
movzx edi, byte [eax + 0xc]
mov edi, dword [edi*4 + 0x505db0]
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x505db0]
and edi, 0xff
xor esi, dword [edi*4 + 0x506db0]
and ecx, 0xff
xor esi, dword [ecx*4 + 0x5075b0]
inc edx
mov dword [eax + 0xa], esi
cmp edx, dword [ebx + 0xf0]
jl 0x4b5bd1
pop edi
xor eax, eax
pop esi
pop ebx
ret