joyce8/EMBER2024-capa huggingface dataset:
Function at 0x466d00
Capabilities:
Hash data with md5

Disassembly:
mov eax, ecx
xor ecx, ecx
mov dword [eax], 0x47d478
mov dword [eax + 8], ecx
mov dword [eax + 4], ecx
mov dword [eax + 0xc], 0x67452301
mov dword [eax + 0x10], 0xefcdab89
mov dword [eax + 0x14], 0x98badcfe
mov dword [eax + 0x18], 0x10325476
ret

Function at 0x466d50
Capabilities:
Encode data using base64

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x466d5b
pop ecx
ret
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [esi + eax - 3]
lea ecx, [eax + 2]
mov eax, 0xaaaaaaab
mul ecx
shr edx, 1
lea edx, [edx*4 + 1]
push edx
call dword [sym.imp.MSVCR71.dll_malloc]
add esp, 4
test eax, eax
jne 0x466d8d
pop edi
or eax, 0xffffffff
pop esi
pop ecx
ret
push ebp
xor ebp, ebp
cmp esi, edi
jae 0x466df8
movzx ecx, byte [esi]
movzx edx, byte [esi + 1]
shl ecx, 0x18
shl edx, 0x10
or ecx, edx
inc esi
xor edx, edx
mov dh, byte [esi + 1]
inc esi
add ebp, 4
or ecx, edx
mov edx, ecx
shr edx, 0x1a
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
shl ecx, 6
mov edx, ecx
shr edx, 0x1a
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], dl
inc esi
shl ecx, 6
inc eax
mov edx, ecx
shr edx, 0x1a
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
shr ecx, 0x14
inc eax
mov byte [eax], dl
and ecx, 0x3f
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
inc eax
mov byte [eax], cl
inc eax
cmp esi, edi
jb 0x466d94
add edi, 3
xor edx, edx
xor ecx, ecx
cmp esi, edi
jae 0x466e31
push ebx
mov ebx, edi
mov ecx, 0x18
sub ebx, esi
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x10], ebx
movzx ebx, byte [esi]
shl ebx, cl
mov ecx, dword [esp + 0x1c]
sub ecx, 8
mov dword [esp + 0x1c], ecx
or edx, ebx
inc esi
cmp esi, edi
jb 0x466e15
mov ecx, dword [esp + 0x10]
pop ebx
lea esi, [ecx*8]
test esi, esi
jl 0x466e4f
mov ecx, edx
shr ecx, 0x1a
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
shl edx, 6
jmp 0x466e52
mov byte [eax], 0x3d
inc eax
inc ebp
cmp esi, 6
jl 0x466e6c
mov ecx, edx
shr ecx, 0x1a
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
shl edx, 6
jmp 0x466e6f
mov byte [eax], 0x3d
inc eax
inc ebp
cmp esi, 0xc
jl 0x466e89
mov ecx, edx
shr ecx, 0x1a
mov cl, byte [ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
shl edx, 6
jmp 0x466e8c
mov byte [eax], 0x3d
inc eax
inc ebp
cmp esi, 0x12
jl 0x466eb3
mov ecx, dword [esp + 0x1c]
shr edx, 0x1a
mov dl, byte [edx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], dl
inc eax
inc ebp
mov byte [eax], 0
sub eax, ebp
mov dword [ecx], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ecx
ret
mov ecx, dword [esp + 0x1c]
mov byte [eax], 0x3d
inc eax
inc ebp
mov byte [eax], 0
sub eax, ebp
mov dword [ecx], eax
mov eax, ebp
pop ebp
pop edi
pop esi
pop ecx
ret
Function at 0x466ed0
Capabilities:
Decode data using base64 via dword translation table

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
push edi
mov edi, dword [esp + 0x18]
xor eax, eax
test edi, edi
mov dword [esi], eax
jbe 0x466fcc
mov ebx, dword [esp + 0x14]
lea esp, [esp]
movsx ecx, byte [eax + ebx]
mov cl, byte [ecx + 0x47d4c8]
inc eax
cmp eax, edi
jae 0x466f06
cmp cl, 0xff
je 0x466ef0
jmp 0x466f10
cmp cl, 0xff
je 0x466fcc
nop
movsx edx, byte [eax + ebx]
mov dl, byte [edx + 0x47d4c8]
inc eax
cmp eax, edi
jae 0x466f26
cmp dl, 0xff
je 0x466f10
jmp 0x466f2f
cmp dl, 0xff
je 0x466fcc
mov ebp, dword [esp + 0x1c]
mov bl, dl
sar bl, 4
shl cl, 2
and bl, 3
or bl, cl
mov ecx, dword [esi]
mov byte [ecx + ebp], bl
mov ecx, dword [esi]
mov ebx, dword [esp + 0x14]
inc ecx
mov dword [esi], ecx
mov ebp, ecx
mov cl, byte [eax + ebx]
inc eax
cmp cl, 0x3d
je 0x466fcc
cmp eax, edi
movsx ecx, cl
mov cl, byte [ecx + 0x47d4c8]
jae 0x466f6d
cmp cl, 0xff
je 0x466f50
jmp 0x466f72
cmp cl, 0xff
je 0x466fcc
mov bl, cl
sar bl, 2
shl dl, 4
and bl, 0xf
or bl, dl
mov edx, dword [esp + 0x1c]
mov byte [edx + ebp], bl
mov edx, dword [esi]
mov ebx, dword [esp + 0x14]
inc edx
mov dword [esi], edx
mov ebp, edx
mov dl, byte [eax + ebx]
inc eax
cmp dl, 0x3d
je 0x466fcc
cmp eax, edi
movsx edx, dl
mov dl, byte [edx + 0x47d4c8]
jae 0x466fae
cmp dl, 0xff
je 0x466f91
jmp 0x466fb3
cmp dl, 0xff
je 0x466fcc
shl cl, 6
or cl, dl
mov edx, dword [esp + 0x1c]
mov byte [edx + ebp], cl
mov edx, dword [esi]
inc edx
cmp eax, edi
mov dword [esi], edx
jb 0x466ef0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret

Function at 0x4676f0
Capabilities:
Hash data using sha1

Disassembly:
mov dword [ecx + 4], 0
mov dword [ecx], 0
mov dword [ecx + 8], 0x67452301
mov dword [ecx + 0xc], 0xefcdab89
mov dword [ecx + 0x10], 0x98badcfe
mov dword [ecx + 0x14], 0x10325476
mov dword [ecx + 0x18], 0xc3d2e1f0
ret

Function at 0x467950
Capabilities:
Hash data using sha1

Disassembly:
mov eax, ecx
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
mov dword [eax + 0x18], 0xc3d2e1f0
ret
Function at 0x403cb8
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a2018]
jne 0x403cc2
repz ret
jmp fcn.00404271

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

Disassembly:
mov eax, 0x54
call fcn.00460a40
mov eax, dword [0x4a2018]
xor eax, esp
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x58]
push ebx
push ebp
mov ebp, dword [esp + 0x64]
push edi
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], eax
mov byte [esp + 0x14], 0x41
xor edi, edi
call fcn.00422760
lea edx, [esp + 0x18]
push 8
push edx
call fcn.004230f0
lea eax, [esp + 0x30]
push eax
call fcn.00422760
add esp, 0x10
xor ebx, ebx
test ebp, ebp
jg 0x411894
lea eax, [esp + 0x38]
push 0x14
push eax
call fcn.00422480
lea ecx, [esp + 0x1c]
push ecx
call fcn.00422960
lea edx, [esp + 0x30]
push edx
call fcn.00422960
add esp, 0x10
pop edi
pop ebp
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.00403cb8
add esp, 0x54
ret
mov edi, dword [esp + 0x34]
add edi, 1
cmp edi, 0x10
mov dword [esp + 0x34], edi
ja 0x4119ce
test edi, edi
jbe 0x4118bb
mov ecx, dword [esp + 0x10]
push edi
push ecx
lea edx, [esp + 0x54]
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
add byte [esp + 0x10], 1
push 0
call fcn.0041d150
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00422840
push edi
lea ecx, [esp + 0x5c]
push ecx
lea edx, [esp + 0x38]
push edx
call fcn.004228d0
mov eax, dword [esi + 0xbc]
mov ecx, dword [eax + 0x10]
push ecx
add eax, 0x14
push eax
lea edx, [esp + 0x44]
push edx
call fcn.004228d0
mov eax, dword [esi + 0x58]
push 0x20
add eax, 0x98
push eax
lea ecx, [esp + 0x50]
push ecx
call fcn.004228d0
mov edx, dword [esi + 0x58]
push 0x20
add edx, 0xb8
push edx
lea eax, [esp + 0x5c]
push eax
call fcn.004228d0
push 0
lea ecx, [esp + 0x78]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.004228e0
add esp, 0x48
push 0
call fcn.0041d650
push eax
lea eax, [esp + 0x1c]
push eax
call fcn.00422840
mov eax, dword [esi + 0xbc]
mov ecx, dword [eax + 0x10]
push ecx
add eax, 0x14
push eax
lea edx, [esp + 0x28]
push edx
call fcn.004228d0
push 0x14
lea eax, [esp + 0x54]
push eax
lea ecx, [esp + 0x34]
push ecx
call fcn.004228d0
add esp, 0x24
lea edi, [ebx + 0x10]
cmp edi, ebp
push 0
jle 0x4119a8
lea edx, [esp + 0x3c]
push edx
lea eax, [esp + 0x1c]
push eax
call fcn.004228e0
mov eax, dword [esp + 0x18]
mov ecx, ebp
sub ecx, ebx
push ecx
lea edx, [esp + 0x48]
push edx
push eax
call sub.MSVCR90.dll_memcpy
add esp, 0x18
jmp 0x4119ba
mov ecx, dword [esp + 0x10]
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.004228e0
add esp, 0xc
add dword [esp + 0xc], 0x10
mov ebx, edi
cmp ebx, ebp
jl 0x411890
jmp 0x411854
push 0x9d
push str.._ssl_s3_enc.c
push 0x44
push 0xee
push 0x14
call fcn.00416680
mov ecx, dword [esp + 0x70]
add esp, 0x14
pop edi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.00403cb8
add esp, 0x54
ret
Function at 0x412fa0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
mov eax, 4
call fcn.00460a40
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, edx
mov eax, ecx
cdq
sub eax, edx
mov esi, eax
and ecx, 1
sar esi, 1
lea eax, [esi + edi]
add esi, ecx
mov ecx, dword [esp + 0x20]
push ebx
push ecx
mov ecx, dword [esp + 0x1c]
push esi
push edi
mov edi, dword [esp + 0x2c]
mov edx, ebp
mov dword [esp + 0x1c], eax
call fcn.00412d40
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x28]
push ebx
push edx
push esi
mov esi, dword [esp + 0x44]
push eax
mov edx, esi
call fcn.00412d40
add esp, 0x20
test ebx, ebx
jle 0x41301d
mov ecx, esi
mov eax, ebp
sub ecx, ebp
mov esi, ebx
lea esp, [esp]
mov dl, byte [ecx + eax]
xor byte [eax], dl
add eax, 1
sub esi, 1
jne 0x413010
pop edi
pop esi
pop ebp
pop ecx
ret

Function at 0x417110
Capabilities:
Access the windows event log

Disassembly:
mov eax, 0x108
call fcn.00460a40
mov eax, dword [0x4a2018]
xor eax, esp
mov dword [esp + 0x104], eax
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x417175
push eax
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x417175
mov ecx, dword [esp + 0x10c]
lea eax, [esp + 0x110]
push eax
push ecx
call sub.MSVCR90.dll___iob_func
add eax, 0x40
push eax
call sub.MSVCR90.dll_vfprintf
add esp, 0xc
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00403cb8
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 sub.MSVCR90.dll__vsnprintf
add esp, 0x10
mov byte [esp + 0x103], 0
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp eax, 0x80000000
jae 0x417204
call fcn.00417030
test eax, eax
je 0x417204
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.00403cb8
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.00403cb8
add esp, 0x108
ret

Function at 0x417570
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
xor esi, esi
test edx, edx
je 0x4175b9
mov al, byte [edx]
test al, al
je 0x4175b9
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]
add edx, 1
xor esi, ecx
test al, al
jne 0x417587
mov eax, esi
shr eax, 0x10
pop edi
xor eax, esi
pop esi
ret
xor eax, eax
pop esi
ret
Function at 0x4183f0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call sub.WS2_32.dll_WSASetLastError
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edi, dword [esp + 0xc]
mov edx, dword [edi + 0x1c]
push 0
push eax
push ecx
push edx
call sub.WS2_32.dll_send
push 0xf
push edi
mov esi, eax
call fcn.00417bf0
add esp, 8
test esi, esi
jg 0x41844b
je 0x41842a
cmp esi, 0xffffffff
jne 0x41844b
call sub.WS2_32.dll_WSAGetLastError
cmp eax, 4
je 0x418440
cmp eax, 0xb
je 0x418440
cmp eax, 0x2733
jne 0x41844b
push 0xa
push edi
call fcn.00417c10
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x41f6d0
Capabilities:
Query environment variable

Disassembly:
mov eax, 0x10
call fcn.00460a40
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x14]
push ebx
mov ebx, dword [esi + 0x20]
push ebp
shr eax, 6
push edi
xor ebp, ebp
and eax, 1
push str.OPENSSL_ALLOW_PROXY_CERTS
mov dword [esp + 0x14], ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov dword [esp + 0x10], 0xffffffff
call sub.MSVCR90.dll_getenv
add esp, 4
test eax, eax
je 0x41f71b
mov dword [esp + 0x18], 1
cmp dword [esi + 0x48], ebp
jle 0x41f8d7
mov ecx, dword [esi + 0x4c]
push ebp
push ecx
call fcn.00416ce0
mov edx, dword [esi + 0x14]
add esp, 8
test byte [edx + 0x14], 0x10
mov edi, eax
jne 0x41f762
test dword [edi + 0x28], 0x200
je 0x41f762
push esi
push 0
mov dword [esi + 0x5c], 0x22
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41f8dc
cmp dword [esp + 0x18], 0
jne 0x41f78f
test dword [edi + 0x28], 0x400
je 0x41f78f
push esi
push 0
mov dword [esi + 0x5c], 0x28
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41f8dc
push edi
call fcn.0041b3b0
mov ecx, dword [esp + 0x10]
add esp, 4
cmp ecx, 0xffffffff
je 0x41f7c4
test ecx, ecx
je 0x41f7b7
test eax, eax
je 0x41f7d6
mov edx, dword [esi + 0x14]
test byte [edx + 0x14], 0x20
je 0x41f7f7
cmp eax, 1
jmp 0x41f7d4
test eax, eax
je 0x41f7f7
mov dword [esi + 0x5c], 0x25
jmp 0x41f7dd
mov edx, dword [esi + 0x14]
test byte [edx + 0x14], 0x20
je 0x41f7f7
cmp eax, 1
je 0x41f7f7
test eax, eax
je 0x41f7f7
mov dword [esi + 0x5c], 0x18
push esi
push 0
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41f8dc
mov ecx, dword [esp + 0xc]
mov eax, dword [esi + 0x14]
mov eax, dword [eax + 0x18]
test eax, eax
jle 0x41f842
xor edx, edx
test ecx, ecx
setg dl
push edx
push eax
push edi
call fcn.0041b7c0
add esp, 0xc
test eax, eax
je 0x41f825
mov ecx, dword [esi + 0x14]
test byte [ecx + 0x14], 0x20
je 0x41f842
cmp eax, 1
je 0x41f842
push esi
push 0
mov dword [esi + 0x5c], 0x1a
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41f8dc
cmp ebp, 1
jle 0x41f87c
test byte [edi + 0x28], 0x20
jne 0x41f87c
mov eax, dword [edi + 0x20]
cmp eax, 0xffffffff
je 0x41f87c
mov edx, dword [esp + 0x14]
lea eax, [eax + edx + 1]
cmp dword [esp + 0x10], eax
jle 0x41f87c
push esi
push 0
mov dword [esi + 0x5c], 0x19
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41f8dc
mov eax, dword [edi + 0x28]
test al, 0x20
jne 0x41f888
add dword [esp + 0x10], 1
test eax, 0x400
je 0x41f8c3
mov eax, dword [edi + 0x24]
cmp eax, 0xffffffff
je 0x41f8b4
cmp ebp, eax
jle 0x41f8b4
push esi
push 0
mov dword [esi + 0x5c], 0x26
mov dword [esi + 0x58], ebp
mov dword [esi + 0x60], edi
call ebx
add esp, 8
test eax, eax
je 0x41f8dc
add dword [esp + 0x14], 1
mov dword [esp + 0xc], 0
jmp 0x41f8cb
mov dword [esp + 0xc], 1
add ebp, 1
cmp ebp, dword [esi + 0x48]
jl 0x41f724
mov eax, 1
pop edi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4223a0
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 sub.MSVCR90.dll_fopen
mov edi, eax
add esp, 8
test edi, edi
jne 0x422436
push 0x7e
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.00416680
push 0x474634
push esi
push 0x47e614
push ebx
push str.fopen_
push 5
call fcn.00416890
add esp, 0x2c
call sub.MSVCR90.dll__errno
cmp dword [eax], 2
jne 0x422418
push 0x81
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.00416680
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.00416680
add esp, 0x14
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0x4ace88
call fcn.00418130
mov esi, eax
add esp, 4
test esi, esi
jne 0x422458
push edi
call sub.MSVCR90.dll_fclose
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push esi
call fcn.00417bf0
push edi
push 1
push 0x6a
push esi
call fcn.00417f00
add esp, 0x18
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x423550
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.00460a40
mov eax, dword [0x4a2018]
xor eax, esp
mov dword [esp + 0x88], eax
mov eax, dword [esp + 0xa0]
mov ecx, dword [esp + 0x94]
push ebx
mov ebx, dword [esp + 0xa0]
push ebp
push esi
mov esi, dword [esp + 0x9c]
mov dword [esp + 0xc], eax
xor eax, eax
test ebx, ebx
push edi
mov dword [esp + 0x14], ecx
je 0x42359f
mov eax, 1
mov dword [esi], ebx
jmp 0x4235a1
mov ebx, dword [esi]
test ecx, ecx
je 0x423668
push ebx
call fcn.004230e0
mov edi, eax
add esp, 4
cmp edi, 0x80
jle 0x4235d0
push str.j____int_sizeof_ctx__key_
push 0x54
push str..cryptohmachmac.c
call fcn.00417230
add esp, 0xc
mov ebp, dword [esp + 0xa8]
cmp edi, ebp
jge 0x423609
mov ecx, dword [esp + 0x10]
push ecx
lea edi, [esi + 4]
push ebx
push edi
call fcn.00422840
mov edx, dword [esp + 0x20]
push ebp
push edx
push edi
call fcn.004228d0
lea ebp, [esi + 0x34]
push ebp
lea eax, [esi + 0x38]
push eax
push edi
call fcn.004228e0
add esp, 0x24
jmp 0x423644
cmp ebp, 0x80
jbe 0x423625
push str.len_0__len__int_sizeof_ctx__key_
push 0x5e
push str..cryptohmachmac.c
call fcn.00417230
add esp, 0xc
mov ecx, dword [esp + 0x14]
push ebp
push ecx
lea edx, [esi + 0x38]
push edx
call sub.MSVCR90.dll_memcpy
mov eax, dword [esp + 0xb4]
lea ebp, [esi + 0x34]
add esp, 0xc
mov dword [ebp], eax
mov ebp, dword [ebp]
cmp ebp, 0x80
je 0x42366c
mov ecx, 0x80
sub ecx, ebp
push ecx
lea edx, [esi + ebp + 0x38]
push 0
push edx
call sub.MSVCR90.dll_memset
add esp, 0xc
jmp 0x42366c
test eax, eax
je 0x4236e5
xor eax, eax
mov edi, edi
mov cl, byte [esi + eax + 0x38]
xor cl, 0x36
mov byte [esp + eax + 0x18], cl
add eax, 1
cmp eax, 0x80
jl 0x423670
mov ebp, dword [esp + 0x10]
push ebp
lea edi, [esi + 0x14]
push ebx
push edi
call fcn.00422840
push ebx
call fcn.004230e0
push eax
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.004228d0
add esp, 0x1c
xor eax, eax
jmp 0x4236b0
mov cl, byte [esi + eax + 0x38]
xor cl, 0x5c
mov byte [esp + eax + 0x18], cl
add eax, 1
cmp eax, 0x80
jl 0x4236b0
push ebp
lea edi, [esi + 0x24]
push ebx
push edi
call fcn.00422840
push ebx
call fcn.004230e0
push eax
lea edx, [esp + 0x2c]
push edx
push edi
call fcn.004228d0
add esp, 0x1c
lea eax, [esi + 0x14]
push eax
add esi, 4
push esi
call fcn.004229d0
mov ecx, dword [esp + 0xa0]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00403cb8
add esp, 0x8c
ret
Function at 0x436a40
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0xc8
call fcn.00460a40
push ebx
push ebp
push esi
lea eax, [ecx + 0x54]
lea esi, [ecx + 0x14]
mov ecx, dword [esi + 0x3c]
push edi
lea ebp, [esp + 0x58]
lea edi, [esp + 0x98]
xor ebx, ebx
sub ebp, eax
sub edi, eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ecx
sub esi, eax
mov edx, dword [eax]
mov ecx, dword [esp + 0xdc]
movzx ecx, byte [ebx + ecx]
mov dword [eax + ebp - 0x40], edx
xor edx, ecx
mov dword [eax + ebp], ecx
xor ecx, dword [esp + 0x10]
mov dword [edi + eax], edx
mov edx, dword [ecx*4 + str._.C]
xor dword [esi + eax], edx
mov ecx, dword [esi + eax]
add ebx, 1
add eax, 4
cmp ebx, 0x10
mov dword [esp + 0x10], ecx
jl 0x436a72
xor ecx, ecx
xor edx, edx
nop
xor eax, eax
jmp 0x436ac0
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x18], ecx
mov ecx, dword [esp + eax*4 + 0x18]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x1c], ecx
mov ecx, dword [esp + eax*4 + 0x1c]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x20], ecx
mov ecx, dword [esp + eax*4 + 0x20]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x24], ecx
mov ecx, dword [esp + eax*4 + 0x24]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x28], ecx
mov ecx, dword [esp + eax*4 + 0x28]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x2c], ecx
mov ecx, dword [esp + eax*4 + 0x2c]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x30], ecx
mov ecx, dword [esp + eax*4 + 0x30]
mov ecx, dword [ecx*4 + str._.C]
xor dword [esp + eax*4 + 0x34], ecx
mov ecx, dword [esp + eax*4 + 0x34]
add eax, 8
cmp eax, 0x30
jl 0x436ac0
add ecx, edx
add edx, 1
and ecx, 0xff
cmp edx, 0x12
jl 0x436ab0
mov edi, dword [esp + 0x14]
lea edx, [esp + 0x18]
push 0xc0
mov ecx, 0x10
lea esi, [esp + 0x1c]
push edx
rep movsd dword es:[edi], dword [esi]
call fcn.00422480
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc8
ret
Function at 0x437120
Capabilities:
Encode data using xor

Disassembly:
mov eax, 0x30
call fcn.00460a40
mov eax, dword [0x4a2018]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x38]
push ebx
mov ebx, dword [esp + 0x40]
lea ecx, [ebx - 1]
cmp ecx, 0x7f
push edi
mov edi, dword [esp + 0x4c]
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x48]
ja 0x4372e6
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.00437bf0
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 0x4371c7
test ebp, ebp
jle 0x437214
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]
add ecx, 1
sub ebp, 1
mov byte [esi + ecx - 1], al
mov byte [ebx + ecx - 1], al
jne 0x4371b0
jmp 0x437210
xor esi, esi
test ebp, ebp
jle 0x437214
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 0x4371f4
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]
add esi, 1
cmp esi, ebp
mov byte [eax + ecx], bl
jl 0x4371f0
mov ebx, dword [esp + 0x4c]
mov ecx, ebx
and ecx, 0x80000007
jns 0x437223
dec ecx
or ecx, 0xfffffff8
inc ecx
mov eax, ebx
cdq
and edx, 7
add eax, edx
sar eax, 3
test ecx, ecx
mov dword [esp + 0x14], ecx
jne 0x437266
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.00403cb8
add esp, 0x30
ret
mov dl, 8
sub dl, cl
mov byte [esp + 0x13], dl
add edi, 1
lea esi, [esp + eax + 0x1d]
mov ebp, 4
lea ebx, [ebx]
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 0x437280
pop esi
pop ebp
mov ecx, dword [esp + 0x34]
pop edi
pop ebx
xor ecx, esp
call fcn.00403cb8
add esp, 0x30
ret