joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5204dd
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x913328]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x52051d
cmp byte [ebx], 0xa
jne 0x52051d
or byte [edi + eax + 0x28], 4
jmp 0x520522
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x520621
mov dl, byte [eax]
cmp dl, 0x1a
je 0x520604
inc eax
cmp dl, 0xd
je 0x52054e
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x520574
cmp eax, ecx
jae 0x520582
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x520536
jmp 0x520621
push 0
lea eax, [ebp - 0x10]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5205ff
cmp dword [ebp - 0x10], 0
je 0x5205ff
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x913328]
test byte [eax + edi + 0x28], 0x48
je 0x5205d9
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x5205c4
mov byte [esi], dl
jmp 0x5205d5
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x913328]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x520621
cmp byte [ebp - 1], 0xa
jne 0x5205e8
cmp esi, ebx
jne 0x5205e8
mov byte [esi], 0xa
jmp 0x520620
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.005211fd
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x520621
mov byte [esi], 0xd
jmp 0x520620
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x913328]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x52061e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x520621
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x52062a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x913328]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x520670
cmp word [ebx], dx
jne 0x520670
or byte [eax + edi + 0x28], 4
jmp 0x520675
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x5207d8
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x5207b8
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x5206b6
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x5206ec
cmp eax, edx
jae 0x5206fa
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x520691
jmp 0x5207d8
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x5207b3
cmp dword [ebp - 0x18], 0
je 0x5207b3
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x913328]
test byte [eax + edi + 0x28], 0x48
je 0x520789
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x52074d
mov word [esi], cx
jmp 0x520784
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x913328]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x913328]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x913328]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x5207d8
pop eax
cmp word [ebp - 4], ax
jne 0x520799
cmp esi, ebx
jne 0x520799
mov word [esi], ax
jmp 0x5207d5
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.005211fd
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x5207d8
push 0xd
pop eax
jmp 0x520794
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x913328]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x5207d2
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x5207d8
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x523e45
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x523ee2
push ebx
push esi
call fcn.00523e0e
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.0051bca1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x523e8f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x523ee1
push edi
push eax
call fcn.00518da2
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x523eaf
call fcn.00518d68
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x523ee0
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0051bca1
add esp, 0x20
test eax, eax
jne 0x523ece
push edi
call fcn.00518d68
jmp 0x523ed6
push ebx
call fcn.00518d68
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x523ee5
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x523ef6
pop esi
ret
push ebx
push edi
push esi
call fcn.00523e0e
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00518da2
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x523f1e
push ebx
push esi
push edi
call fcn.00500630
add esp, 0xc
push 0
call fcn.00518d68
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x524678
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00524193
Function at 0x528a03
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.0052897f
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x528b72
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x528b72
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x528b27
jg 0x528a5f
test eax, eax
je 0x528b1d
push 1
push 0x1000
call fcn.00518d0b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x528a82
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x528b14
push 0x8000
push ebx
call fcn.005182fe
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x528aab
jg 0x528aa6
cmp ecx, 0x1000
jb 0x528aab
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0051d066
add esp, 0x10
cmp eax, 0xffffffff
je 0x528af0
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x528aa6
jl 0x528ad7
test ecx, ecx
jne 0x528a98
push dword [ebp - 0xc]
push ebx
call fcn.005182fe
push esi
call fcn.00518d68
add esp, 0xc
xor ebx, ebx
jmp 0x528b80
cmp byte [edi + 0x24], 0
je 0x528b07
cmp dword [edi + 0x20], 5
jne 0x528b07
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x528b12
mov ebx, dword [edi + 0x18]
jmp 0x528b14
xor ebx, ebx
push esi
call fcn.00518d68
pop ecx
jmp 0x528b80
test ecx, ecx
jg 0x528ae9
jl 0x528b27
test eax, eax
jae 0x528ae9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.005211fd
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x528b47
cmp byte [edi + 0x1c], 0
je 0x528ae9
jmp 0x528b78
push ebx
call fcn.00524b01
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x528ae9
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x528b80
cmp byte [edi + 0x1c], 0
je 0x528b7d
mov ebx, dword [edi + 0x18]
jmp 0x528b80
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.005211fd
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x52a5d0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 0xc]
xor ecx, ecx
push ebx
xor bl, bl
test edx, edx
je 0x52a697
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x14]
cmp edx, 0x20
jb 0x52a674
push edi
mov eax, edx
mov edi, edx
and eax, 0x1f
xorps xmm3, xmm3
sub edi, eax
mov ebx, esi
movaps xmm2, xmm3
mov eax, ebp
sub ebx, ebp
nop word [eax + eax]
movups xmm0, xmmword [eax]
lea eax, [eax + 0x20]
movups xmm1, xmmword [ebx + eax - 0x20]
pxor xmm1, xmm0
movups xmm0, xmmword [eax - 0x10]
por xmm3, xmm1
movups xmm1, xmmword [esi + ecx + 0x10]
add ecx, 0x20
pxor xmm1, xmm0
por xmm2, xmm1
cmp ecx, edi
jb 0x52a610
por xmm2, xmm3
movaps xmm0, xmm2
psrldq xmm0, 8
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 4
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 2
por xmm2, xmm0
movaps xmm0, xmm2
psrldq xmm0, 1
por xmm2, xmm0
movd ebx, xmm2
pop edi
cmp ecx, edx
jae 0x52a690
sub esi, ebp
lea eax, [ecx + ebp]
sub edx, ecx
nop
mov cl, byte [eax + esi]
lea eax, [eax + 1]
xor cl, byte [eax - 1]
or bl, cl
sub edx, 1
jne 0x52a680
pop esi
pop ebp
movzx eax, bl
pop ebx
ret
movzx eax, bl
pop ebx
ret

Function at 0x52a7e0
Capabilities:
Access the windows event log
Write file on windows

Disassembly:
mov eax, 0x108
call fcn.004ff310
mov eax, dword [0x62acc0]
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 0x52a87f
push esi
call dword [sym.imp.KERNEL32.dll_GetFileType]
test eax, eax
je 0x52a87f
lea eax, [esp + 0x114]
push eax
push 0
push dword [esp + 0x118]
lea eax, [esp + 0x14]
push 0x100
push eax
call fcn.00407c10
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0050d86d
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.004fe8dc
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.00407c10
mov ecx, dword [eax]
push dword [eax + 4]
or ecx, 1
push ecx
call fcn.0050d86d
add esp, 0x1c
mov byte [esp + 0x107], 0
call fcn.0052a6a0
test eax, eax
jle 0x52a913
push str.OpenSSL
push 0
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
test esi, esi
je 0x52a927
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.004fe8dc
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.004fe8dc
add esp, 0x108
ret
Function at 0x52b5c0
Capabilities:
Send data
Send data on socket

Disassembly:
push esi
push edi
push 0
call dword [sym.imp.WSOCK32.dll_WSASetLastError]
mov edi, dword [esp + 0xc]
push 0
push dword [esp + 0x18]
push dword [esp + 0x18]
push dword [edi + 0x1c]
call dword [sym.imp.WSOCK32.dll_send]
push 0xf
push edi
mov esi, eax
call fcn.0052ade0
add esp, 8
test esi, esi
jg 0x52b617
je 0x52b5f9
cmp esi, 0xffffffff
jne 0x52b617
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
push eax
call fcn.0052b850
add esp, 4
test eax, eax
je 0x52b617
push 0xa
push edi
call fcn.0052b4e0
add esp, 8
pop edi
mov eax, esi
pop esi
ret
Function at 0x5373b0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x6c
call fcn.004ff310
mov eax, dword [0x62acc0]
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.0052f180
lea eax, [esp + 0x24]
push ebp
push eax
call fcn.0052efe0
add esp, 0xc
test eax, eax
je 0x5374b2
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x28]
push eax
call fcn.0052ecc0
add esp, 0xc
test eax, eax
je 0x5374b2
lea eax, [esp + 0x20]
push eax
call fcn.0052ef20
mov esi, dword [ebp]
add esp, 4
test byte [esi + 0xc], 4
je 0x5374d0
push edi
call fcn.005302d0
push ebx
push edi
mov dword [esp + 0x1c], eax
call fcn.00537ae0
mov esi, eax
add esp, 0xc
test esi, esi
je 0x5374b2
push esi
call fcn.00538300
add esp, 4
test eax, eax
jle 0x5374b2
push dword [ebp]
push ebx
push 1
push 0xf8
push 0xffffffffffffffff
push esi
call fcn.00537890
add esp, 0x18
test eax, eax
jle 0x5374b2
push dword [esp + 0x1c]
lea eax, [esp + 0x3c]
push eax
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x24]
push esi
call fcn.00538220
add esp, 0x14
test eax, eax
jle 0x5374b2
mov ecx, dword [esp + 0x14]
mov ebx, 1
mov eax, dword [esp + 0x10]
mov dword [ecx], eax
push esi
call fcn.00537a80
add esp, 4
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004fe8dc
add esp, 0x6c
ret
xor eax, eax
lea ecx, [esi + 0x2c]
mov edx, dword [ecx]
test edx, edx
je 0x5374e8
cmp dword [edi], edx
je 0x537512
inc eax
add ecx, 4
cmp eax, 4
jl 0x5374d5
push 0x7b
push str..cryptoevpp_sign.c
push 0x6e
push 0x6b
push 6
call fcn.0052dd20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004fe8dc
add esp, 0x6c
ret
mov eax, dword [esi + 0x24]
test eax, eax
jne 0x537546
push 0x80
push str..cryptoevpp_sign.c
push 0x68
push 0x6b
push 6
call fcn.0052dd20
add esp, 0x14
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004fe8dc
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.004fe8dc
add esp, 0x6c
ret
Function at 0x53f850
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 0xc]
push edi
push esi
push dword [esp + 0x10]
call fcn.0053f940
mov edi, eax
add esp, 8
test edi, edi
jne 0x53f8e8
push 0xaf
push str..crypto_bio_bss_file.c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 1
push 2
call fcn.0052dd20
push 0x5a44bc
push esi
push 0x5f926c
push dword [esp + 0x2c]
push str.fopen_
push 5
call fcn.0052d410
add esp, 0x2c
call fcn.00512d3a
cmp dword [eax], 2
jne 0x53f8cb
push 0xb2
push str..crypto_bio_bss_file.c
push 0x80
push 0x6d
push 0x20
call fcn.0052dd20
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0xb4
push str..crypto_bio_bss_file.c
push 2
push 0x6d
push 0x20
call fcn.0052dd20
add esp, 0x14
xor eax, eax
pop edi
pop esi
ret
push 0x62ca8c
call fcn.0052b1b0
mov esi, eax
add esp, 4
test esi, esi
jne 0x53f909
push edi
call fcn.0051161a
add esp, 4
xor eax, eax
pop edi
pop esi
ret
push 0
push esi
call fcn.0052ade0
push edi
push 1
push 0x6a
push esi
call fcn.0052ae10
add esp, 0x18
mov eax, esi
pop edi
pop esi
ret
Function at 0x543f80
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
mov eax, 0x8c
call fcn.004ff310
mov eax, dword [0x62acc0]
xor eax, esp
mov dword [esp + 0x88], eax
mov edx, dword [esp + 0xa0]
xor eax, eax
push ebx
mov ebx, dword [esp + 0x9c]
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0x9c]
push edi
mov edi, dword [esp + 0xac]
mov dword [esp + 0x10], edx
test edi, edi
je 0x543fe6
cmp edi, dword [esi]
je 0x543fdd
test ebp, ebp
je 0x544060
test ebx, ebx
js 0x544060
mov eax, 1
mov dword [esi], edi
jmp 0x543fec
mov edi, dword [esi]
test edi, edi
je 0x544060
test ebp, ebp
je 0x54417b
push edi
call fcn.00537370
add esp, 4
mov dword [esp + 0x14], eax
cmp eax, 0x80
jle 0x544020
push str.j____int_sizeof_ctx__key_
push 0x74
push str..cryptohmachmac.c
call fcn.0052a940
mov eax, dword [esp + 0x20]
add esp, 0xc
cmp eax, ebx
jge 0x54407b
push dword [esp + 0x10]
lea eax, [esi + 4]
push edi
push eax
call fcn.0052ed60
add esp, 0xc
test eax, eax
je 0x544060
push ebx
push ebp
lea ebx, [esi + 4]
push ebx
call fcn.0052ef10
add esp, 0xc
test eax, eax
je 0x544060
lea ebp, [esi + 0x4c]
push ebp
lea eax, [esi + 0x50]
push eax
push ebx
call fcn.0052ecc0
add esp, 0xc
test eax, eax
jne 0x544097
xor eax, eax
mov ecx, dword [esp + 0x98]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004fe8dc
add esp, 0x8c
ret
cmp ebx, 0x80
ja 0x544060
push ebx
lea eax, [esi + 0x50]
push ebp
push eax
call fcn.00500630
lea ebp, [esi + 0x4c]
add esp, 0xc
mov dword [ebp], ebx
mov ecx, dword [ebp]
cmp ecx, 0x80
je 0x5440ba
mov eax, 0x80
sub eax, ecx
push eax
lea eax, [esi + 0x50]
add eax, ecx
push 0
push eax
call fcn.00500bb0
add esp, 0xc
mov edx, dword [esp + 0x10]
xor ecx, ecx
mov al, byte [esi + ecx + 0x50]
xor al, 0x36
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x5440c0
push edx
lea ebx, [esi + 0x1c]
push edi
push ebx
call fcn.0052ed60
add esp, 0xc
test eax, eax
je 0x544060
push edi
call fcn.00537370
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0052ef10
add esp, 0x10
test eax, eax
je 0x544060
xor ecx, ecx
nop dword [eax + eax]
mov al, byte [esi + ecx + 0x50]
xor al, 0x5c
mov byte [esp + ecx + 0x18], al
inc ecx
cmp ecx, 0x80
jl 0x544110
push dword [esp + 0x10]
lea ebx, [esi + 0x34]
push edi
push ebx
call fcn.0052ed60
add esp, 0xc
test eax, eax
je 0x544060
push edi
call fcn.00537370
push eax
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0052ef10
add esp, 0x10
test eax, eax
je 0x544060
lea eax, [esi + 0x1c]
push eax
lea eax, [esi + 4]
push eax
call fcn.0052efe0
add esp, 8
test eax, eax
je 0x544060
mov eax, 1
jmp 0x544062
test eax, eax
je 0x544159
jmp 0x5440be
Function at 0x5678e0
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
mov ecx, dword [esp + 8]
push ebx
mov ebx, dword [esp + 8]
push ebp
mov ebp, dword [esp + 0x18]
push esi
push edi
mov edi, 0x80
mov byte [ebx], 0
cmp ecx, edi
cmovg ecx, edi
test ebp, ebp
jg 0x567908
mov ebp, 0x400
jmp 0x567912
mov eax, 0x400
cmp ebp, eax
cmovg ebp, eax
test ecx, ecx
jle 0x567934
sub dword [esp + 0x1c], ebx
mov edx, ebx
mov ebx, dword [esp + 0x1c]
mov esi, ecx
mov al, byte [ebx + edx]
lea edx, [edx + 1]
mov byte [edx - 1], al
sub esi, 1
jne 0x567922
mov ebx, dword [esp + 0x14]
movzx edx, byte [ebx + ecx - 1]
cmp ecx, edi
jge 0x567959
mov esi, ebx
sub esi, ecx
movzx eax, byte [esi + ecx]
add eax, edx
movzx eax, al
movzx edx, byte [eax + 0x607510]
mov byte [ecx + ebx], dl
inc ecx
cmp ecx, edi
jl 0x567941
lea eax, [ebp + 7]
mov edx, 0xff
sar eax, 3
neg ebp
sub edi, eax
mov dword [esp + 0x14], eax
movzx eax, byte [edi + ebx]
lea esi, [edi + ebx]
and ebp, 7
mov ecx, ebp
sar edx, cl
and edx, eax
movzx ecx, byte [edx + 0x607510]
mov byte [esi], cl
test edi, edi
je 0x5679a8
mov edx, dword [esp + 0x14]
nop dword [eax]
movzx eax, byte [esi + edx - 1]
lea esi, [esi - 1]
xor eax, ecx
movzx ecx, byte [eax + 0x607510]
mov byte [esi], cl
sub edi, 1
jne 0x567990
lea esi, [ebx + 0xfc]
mov edi, 0x40
lea edx, [ebx + 0x7e]
movzx ecx, byte [edx + 1]
lea esi, [esi - 4]
movzx eax, byte [edx]
lea edx, [edx - 2]
shl ecx, 8
or ecx, eax
movzx eax, cx
mov dword [esi + 4], eax
sub edi, 1
jne 0x5679b6
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x568600
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
jmp 0x5690f0
push ebp
mov ebp, dword [esp + 0x10]
push ebp
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.005692f0
add esp, 0xc
test eax, eax
js 0x5692e0
push ebx
push esi
push edi
mov edi, dword [ebp + 0xf0]
xor ebx, ebx
shl edi, 2
test edi, edi
jle 0x569170
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 0x569130
mov edi, 1
cmp dword [ebp + 0xf0], edi
jle 0x5692db
lea esi, [ebp + 2]
mov edx, dword [esi + 0xe]
lea esi, [esi + 0x10]
mov eax, edx
inc edi
shr eax, 0x18
movzx ecx, byte [eax*4 + 0x607a60]
movzx eax, byte [esi - 1]
mov ecx, dword [ecx*4 + 0x608660]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x608e60]
movzx eax, dl
mov edx, dword [esi + 2]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x609260]
movzx eax, byte [esi]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x608a60]
mov eax, edx
shr eax, 0x18
mov dword [esi - 2], ecx
movzx ecx, byte [eax*4 + 0x607a60]
movzx eax, byte [esi + 3]
mov ecx, dword [ecx*4 + 0x608660]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x608e60]
movzx eax, byte [esi + 4]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x608a60]
movzx eax, dl
mov edx, dword [esi + 6]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x609260]
mov eax, edx
shr eax, 0x18
mov dword [esi + 2], ecx
movzx ecx, byte [eax*4 + 0x607a60]
movzx eax, byte [esi + 7]
mov ecx, dword [ecx*4 + 0x608660]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x608e60]
movzx eax, byte [esi + 8]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x608a60]
movzx eax, dl
mov edx, dword [esi + 0xa]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x609260]
mov eax, edx
shr eax, 0x18
mov dword [esi + 6], ecx
movzx ecx, byte [eax*4 + 0x607a60]
movzx eax, byte [esi + 0xb]
mov ecx, dword [ecx*4 + 0x608660]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x608e60]
movzx eax, byte [esi + 0xc]
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x608a60]
movzx eax, dl
movzx eax, byte [eax*4 + 0x607a60]
xor ecx, dword [eax*4 + 0x609260]
mov dword [esi + 0xa], ecx
cmp edi, dword [ebp + 0xf0]
jl 0x569184
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret