joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4b36c0
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
mov byte [ebp - 9], cl
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b37c8
push dword fs:[eax]
mov dword fs:[eax], esp
mov dl, 1
mov eax, dword [0x49b918]
call fcn.0042d6e4
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x4b37a6
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 9], 0
je 0x4b3728
lea edx, [ebp - 0x14]
mov eax, 0x4b36b8
call fcn.00406ae4
mov edx, dword [ebp - 0x14]
mov cl, 1
mov eax, dword [ebp - 0x10]
call fcn.0042d824
mov byte [ebp - 0xa], al
jmp 0x4b3752
mov edx, 0x80000002
mov eax, dword [ebp - 0x10]
call fcn.0042d7c0
lea edx, [ebp - 0x18]
mov eax, 0x4b36b0
call fcn.00406ae4
mov edx, dword [ebp - 0x18]
mov cl, 1
mov eax, dword [ebp - 0x10]
call fcn.0042d824
mov byte [ebp - 0xa], al
cmp byte [ebp - 0xa], 0
je 0x4b3790
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x10]
call fcn.0049bdf8
mov eax, dword [ebp - 8]
call fcn.00405190
push eax
mov eax, dword [ebp - 4]
call fcn.00405190
push eax
call sub.kernel32.dll_SetEnvironmentVariableW
push 0x4b37d8
push 0
push 0x1a
push 0xffff
call sub.user32.dll_SendMessageA
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b37ad
mov eax, dword [ebp - 0x10]
call fcn.0040394c
ret

Function at 0x4b37ec
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push eax
mov eax, 0x10
add esp, 0xfffff004
push eax
dec eax
jne 0x4b37f5
mov eax, dword [ebp - 4]
add esp, 0xffffffec
push ebx
xor ebx, ebx
mov dword [ebp - 0x10018], ebx
mov dword [ebp - 0xc], ecx
mov byte [ebp - 5], dl
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4b3902
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [ebp - 5], 0
je 0x4b3870
push 0x7fff
lea eax, [ebp - 0x10014]
push eax
mov eax, dword [ebp - 4]
call fcn.00405190
push eax
call sub.kernel32.dll_GetEnvironmentVariableW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x4b3866
mov eax, dword [ebp - 0xc]
lea edx, [ebp - 0x10014]
mov ecx, 0x8000
call fcn.004050f8
jmp 0x4b38e9
mov eax, dword [ebp - 0xc]
call fcn.00404f4c
jmp 0x4b38e9
mov dl, 1
mov eax, dword [0x49b918]
call fcn.0042d6e4
mov dword [ebp - 0x14], eax
xor eax, eax
push ebp
push 0x4b38e2
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, 0x80000002
mov eax, dword [ebp - 0x14]
call fcn.0042d7c0
lea edx, [ebp - 0x10018]
mov eax, 0x4b37e4
call fcn.00406ae4
mov edx, dword [ebp - 0x10018]
mov cl, 1
mov eax, dword [ebp - 0x14]
call fcn.0042d824
test al, al
je 0x4b38cc
mov ecx, dword [ebp - 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 0x14]
call fcn.0049ba70
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b38e9
mov eax, dword [ebp - 0x14]
call fcn.0040394c
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4b3909
lea eax, [ebp - 0x10018]
call fcn.0040479c
ret
Function at 0x4b67ac
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x4b67da
mov eax, ebx
call fcn.004b7260
cmp dword [ebx + 0x40], 0
je 0x4b67d3
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x4b684b
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x4b683d
cmp dword [ebx + 8], 0
je 0x4b67fc
mov eax, ebx
mov edx, dword [eax + 8]
call dword [edx]
mov eax, ebx
mov edx, dword [eax + 0x1b4]
call dword [edx]
test eax, eax
jne 0x4b680e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x4b683d
cmp dword [ebx + 8], 0
je 0x4b67ef
cmp eax, 3
je 0x4b6821
dec eax
jne 0x4b67ef
mov edx, dword [ebx + 8]
inc dword [edx + 4]
mov ecx, dword [edx + 4]
mov eax, dword [ebx + 8]
cmp ecx, dword [eax + 8]
jl 0x4b67ef
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x4b67ef
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x4b6869
cmp dword [ebx + 0x14], 0xcc
je 0x4b6869
mov eax, dword [ebx]
mov dword [eax + 0x14], 0x14
mov edx, dword [ebx + 0x14]
mov dword [eax + 0x18], edx
mov eax, ebx
mov edx, dword [eax]
call dword [edx]
mov eax, ebx
call fcn.004b6874
pop ebx
ret

Function at 0x4daf14
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
mov dword [ebp - 4], eax
mov al, byte [0x4daf5c]
mov byte [ebp - 5], al
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4daf35
or byte [ebp - 5], 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4daf45
or byte [ebp - 5], 4
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x4daf55
or byte [ebp - 5], 2
mov al, byte [ebp - 5]
pop ecx
pop ecx
pop ebp
ret

Function at 0x4ed618
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
xor edx, edx
mov dword [ebp - 0x14], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4ed682
push dword fs:[eax]
mov dword fs:[eax], esp
push 6
lea eax, [ebp - 0xf]
push eax
push 0x1004
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xf]
mov ecx, 7
call fcn.00404a1c
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP
mov edx, eax
pop eax
call fcn.00409e04
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ed689
lea eax, [ebp - 0x14]
call fcn.0040479c
ret
Function at 0x51b448
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee4
xor ecx, ecx
mov dword [ebp - 0x11c], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00404c5c
xor eax, eax
push ebp
push 0x51b512
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
mov eax, dword [0x521c7c]
mov eax, dword [eax]
mov eax, dword [eax + 0x30]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jbe 0x51b4ec
push 0xff
lea eax, [ebp - 0x115]
push eax
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetWindowTextA
lea edx, [ebp - 0x11c]
lea eax, [ebp - 0x115]
call fcn.0040aa58
mov edx, dword [ebp - 0x11c]
mov eax, dword [ebp - 4]
call fcn.00404db0
test eax, eax
je 0x51b4d8
mov eax, dword [ebp - 0x10]
cmp eax, dword [ebp - 8]
je 0x51b4d8
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0xc], eax
jmp 0x51b4f1
push 2
mov eax, dword [ebp - 0x10]
push eax
call sub.user32.dll_GetWindow
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
ja 0x51b490
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x51b519
lea eax, [ebp - 0x11c]
call fcn.0040479c
lea eax, [ebp - 4]
call fcn.0040479c
ret
Function at 0x56b6cc
Capabilities:
Terminate process

Disassembly:
push ebx
push edi
mov edi, dword [esp + 0xc]
test edi, edi
jne 0x56b6db
mov edi, 1
push edi
call fcn.005b3f44
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x56b72f
push esi
call fcn.005b69ad
mov esi, eax
call fcn.0057240c
mov ecx, dword [esi]
mov dword [eax], ecx
mov eax, dword [esp + 0x14]
mov esi, eax
and esi, 8
je 0x56b712
mov edx, dword [0x1009c730]
mov dword [0x1009c72c], edx
test al, 0x18
je 0x56b723
push edi
push 0x24
push 5
call fcn.0057489c
add esp, 0xc
test esi, esi
pop esi
je 0x56b74a
push 1
call fcn.005b6138
test byte [esp + 0x10], 0x20
je 0x56b74a
mov ecx, edi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
pop edi
mov eax, ebx
pop ebx
ret
Function at 0x5704ec
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
push edi
je 0x570641
cmp byte [esi], 0
je 0x570634
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
lea eax, [edi + 8]
mov dword [esp + 0x10], eax
mov eax, esi
mov dword [esp + 0x14], ebx
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x570522
sub eax, ecx
push eax
lea ecx, [esp + 0x24]
push esi
push ecx
call fcn.0057041c
push 8
lea edx, [esp + 0x28]
push edi
push edx
call fcn.0057041c
mov ecx, dword [esp + 0x38]
mov eax, dword [esp + 0x30]
xor eax, ecx
xor edx, edx
mov ecx, 0x3fffffff
div ecx
mov edi, dword [esp + 0x3c]
mov eax, dword [esp + 0x34]
xor eax, edi
add esp, 0x18
mov esi, edx
xor edx, edx
div ecx
mov ecx, dword [ebp + 0xc]
mov eax, dword [esp + 0x10]
cmp ecx, eax
mov edi, edx
jae 0x5705dc
sub eax, ecx
mov dword [esp + 0x10], eax
lea eax, [edi + esi*2]
add eax, esi
xor edx, edx
mov ecx, 0x3fffffff
div ecx
mov esi, edx
lea eax, [edi + esi + 0x21]
xor edx, edx
div ecx
test esi, esi
mov dword [esp + 0x18], esi
fild dword [esp + 0x18]
mov edi, edx
jge 0x5705a9
fadd qword [0x10088838]
fmul qword [0x10089a30]
sub esp, 8
fmul qword [0x10089a28]
fstp qword [esp]
call fcn.005b688c
fadd qword [0x10089a20]
add esp, 8
call fcn.005b4c24
mov byte [ebx], al
mov eax, dword [esp + 0x10]
inc ebx
dec eax
mov dword [esp + 0x10], eax
jne 0x57057d
lea eax, [edi + esi*2]
add eax, esi
xor edx, edx
mov ecx, 0x3fffffff
div ecx
test edx, edx
mov dword [esp + 0x18], edx
fild dword [esp + 0x18]
jge 0x5705fc
fadd qword [0x10088838]
fmul qword [0x10089a30]
sub esp, 8
fmul qword [0x10089a28]
fstp qword [esp]
call fcn.005b688c
add esp, 8
call fcn.005b4c24
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x57062a
xor byte [ecx], al
inc ecx
cmp ecx, ebx
jne 0x570623
mov byte [ebx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp + 8]
mov byte [edx], 0
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 8]
pop edi
pop esi
mov byte [eax], 0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x570aec
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x90
lea eax, [esp + 0x28]
push esi
push eax
call fcn.0058aeac
mov edx, dword [esp + 0xa4]
mov eax, edx
add esp, 4
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x570b0c
sub eax, esi
push eax
push edx
lea ecx, [esp + 0x34]
push ecx
call fcn.0058b6dc
lea edx, [esp + 0x10]
push edx
lea eax, [esp + 0x3c]
push eax
call fcn.0058b67c
lea ecx, [esp + 0x40]
push ecx
call fcn.0058aeac
push 0x14
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x4c]
push eax
call fcn.0058b6dc
lea ecx, [esp + 0x3c]
push ecx
lea edx, [esp + 0x54]
push edx
call fcn.0058b67c
lea eax, [esp + 0x58]
push eax
call fcn.0058aeac
mov ecx, dword [esp + 0xcc]
push 0x14
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.0058b6dc
push 0x14
lea eax, [esp + 0x58]
push eax
lea ecx, [esp + 0x70]
push ecx
call fcn.0058b6dc
mov esi, dword [esp + 0xe0]
add esp, 0x48
lea edx, [esp + 0x2c]
push esi
push edx
call fcn.0058b67c
lea ecx, [esi + 0x14]
add esp, 8
cmp esi, ecx
mov eax, esi
jae 0x570bc2
push ebx
push edi
lea edi, [esp + 0xc]
sub edi, esi
mov bl, byte [eax]
mov dl, byte [edi + eax]
xor bl, dl
mov byte [eax], bl
inc eax
cmp eax, ecx
jb 0x570bb2
pop edi
pop ebx
pop esi
add esp, 0x90
ret

Function at 0x5830ac
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
test ebx, ebx
jbe 0x5830ee
push ebp
mov ebp, dword [esp + 0x1c]
push edi
mov ecx, dword [esp + 0x1c]
push 0xfeedbeef
call fcn.0059758c
push 0xfeedbeef
mov ecx, ebp
mov edi, eax
call fcn.0059758c
mov dl, byte [eax]
mov cl, byte [edi]
xor cl, dl
mov edx, dword [esp + 0x14]
mov byte [esi + edx], cl
inc esi
cmp esi, ebx
jb 0x5830be
pop edi
pop ebp
pop esi
pop ebx
ret
Function at 0x586ffc
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x10]
push esi
lea esi, [ebx + 0x10]
push edi
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esp + 0x14]
cmp edx, 0x40
mov byte [ebx + 0xc], 0
ja 0x587031
mov edi, dword [ebx]
mov esi, dword [esp + 0x10]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x58704d
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push edx
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebx]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, 0x10
mov edi, dword [ebx]
mov ecx, 0x40
sub ecx, edx
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov edi, edi
mov ecx, dword [ebx]
mov dl, byte [ecx + eax]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx], dl
mov edx, dword [ebx]
lea ecx, [edx + eax]
xor byte [ecx], 0x36
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 1]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx + 1], dl
mov edx, dword [ebx]
lea ecx, [edx + eax + 1]
xor byte [ecx], 0x36
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 2]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx + 2], dl
mov edx, dword [ebx]
lea ecx, [edx + eax + 2]
xor byte [ecx], 0x36
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 3]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx + 3], dl
mov edx, dword [ebx]
lea ecx, [edx + eax + 3]
mov dl, byte [ecx]
xor dl, 0x36
add eax, 4
cmp eax, 0x40
mov byte [ecx], dl
jb 0x58706c
pop edi
pop esi
pop ebx
ret 8
Function at 0x58710c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x10]
push esi
lea esi, [ebx + 0x10]
push edi
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esp + 0x14]
cmp edx, 0x40
mov byte [ebx + 0xc], 0
ja 0x587141
mov edi, dword [ebx]
mov esi, dword [esp + 0x10]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x58715d
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push edx
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebx]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, 0x14
mov edi, dword [ebx]
mov ecx, 0x40
sub ecx, edx
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov edi, edi
mov ecx, dword [ebx]
mov dl, byte [ecx + eax]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx], dl
mov edx, dword [ebx]
lea ecx, [edx + eax]
xor byte [ecx], 0x36
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 1]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx + 1], dl
mov edx, dword [ebx]
lea ecx, [edx + eax + 1]
xor byte [ecx], 0x36
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 2]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx + 2], dl
mov edx, dword [ebx]
lea ecx, [edx + eax + 2]
xor byte [ecx], 0x36
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 3]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx + 3], dl
mov edx, dword [ebx]
lea ecx, [edx + eax + 3]
mov dl, byte [ecx]
xor dl, 0x36
add eax, 4
cmp eax, 0x40
mov byte [ecx], dl
jb 0x58717c
pop edi
pop esi
pop ebx
ret 8
Function at 0x58721c
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x10]
push esi
lea esi, [ebx + 0x10]
push edi
mov ecx, esi
call dword [eax + 0xc]
mov edx, dword [esp + 0x14]
cmp edx, 0x40
mov byte [ebx + 0xc], 0
ja 0x587251
mov edi, dword [ebx]
mov esi, dword [esp + 0x10]
mov ecx, edx
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
jmp 0x58726d
mov ecx, dword [esp + 0x10]
mov eax, dword [esi]
push edx
push ecx
mov ecx, esi
call dword [eax + 4]
mov eax, dword [ebx]
mov edx, dword [esi]
push eax
mov ecx, esi
call dword [edx + 8]
mov edx, 0x14
mov edi, dword [ebx]
mov ecx, 0x40
sub ecx, edx
add edi, edx
mov edx, ecx
shr ecx, 2
xor eax, eax
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor eax, eax
mov edi, edi
mov ecx, dword [ebx]
mov dl, byte [ecx + eax]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx], dl
mov edx, dword [ebx]
lea ecx, [edx + eax]
xor byte [ecx], 0x36
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 1]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx + 1], dl
mov edx, dword [ebx]
lea ecx, [edx + eax + 1]
xor byte [ecx], 0x36
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 2]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx + 2], dl
mov edx, dword [ebx]
lea ecx, [edx + eax + 2]
xor byte [ecx], 0x36
mov ecx, dword [ebx]
mov dl, byte [ecx + eax + 3]
mov ecx, dword [ebx + 4]
xor dl, 0x5c
mov byte [eax + ecx + 3], dl
mov edx, dword [ebx]
lea ecx, [edx + eax + 3]
mov dl, byte [ecx]
xor dl, 0x36
add eax, 4
cmp eax, 0x40
mov byte [ecx], dl
jb 0x58728c
pop edi
pop esi
pop ebx
ret 8

Function at 0x58aeac
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov word [eax + 0x24], cx
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
mov dword [eax + 0x1c], ecx
mov dword [eax + 0x20], ecx
xor eax, eax
ret
Function at 0x59a12c
Capabilities:
Hash data with md5

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

Function at 0x59a8bc
Capabilities:
Hash data using sha1

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

Function at 0x59bdcc
Capabilities:
Hash data using sha1

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

Function at 0x59fa1c
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [eax]
mov eax, dword [esp + 8]
push ebx
push ebp
push esi
mov esi, dword [eax]
push edi
add ecx, 0x40
mov edi, 8
mov ebx, dword [ecx - 8]
mov eax, esi
ror eax, 4
xor eax, ebx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1008c588]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1008c788]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1008c988]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1008cb88]
mov eax, dword [ecx - 4]
xor edx, ebx
xor eax, esi
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1008c688]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1008c888]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1008ca88]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1008cc88]
xor edx, ebx
mov ebx, dword [ecx]
mov eax, edx
ror eax, 4
xor eax, ebx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1008c588]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1008c788]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1008c988]
and eax, 0x3f
mov ebp, dword [eax*4 + 0x1008cb88]
mov eax, dword [ecx + 4]
xor ebx, ebp
xor esi, ebx
xor eax, edx
mov ebx, eax
shr ebx, 0x18
and ebx, 0x3f
mov ebx, dword [ebx*4 + 0x1008c688]
mov ebp, eax
shr ebp, 0x10
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1008c888]
mov ebp, eax
shr ebp, 8
and ebp, 0x3f
xor ebx, dword [ebp*4 + 0x1008ca88]
and eax, 0x3f
xor ebx, dword [eax*4 + 0x1008cc88]
xor esi, ebx
add ecx, 0x10
dec edi
jne 0x59fa34
mov ecx, dword [esp + 0x14]
mov dword [ecx], edx
mov edx, dword [esp + 0x18]
pop edi
mov dword [edx], esi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x5aac7c
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebp
push esi
mov esi, ecx
mov eax, dword [esi + 0xc]
push edi
mov edi, dword [eax]
mov ecx, edi
and cl, 0x3f
neg cl
mov eax, edi
mov edx, edi
mov dword [esp + 0x10], edi
sbb ecx, ecx
neg ecx
sub eax, ecx
shr edx, 6
sub eax, edx
mov ecx, eax
neg ecx
and cl, 3
neg cl
lea edx, [eax + eax*2]
sbb ecx, ecx
neg ecx
shr edx, 2
add ecx, edx
push ecx
mov ecx, esi
call fcn.00588f2c
xor ebp, ebp
cmp edi, 3
mov dword [esp + 0x14], ebp
jbe 0x5aae0d
push ebx
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 1]
mov dword [eax + 0xc], edx
mov eax, dword [eax + 4]
mov cl, byte [ecx + eax]
mov eax, dword [esi + 0xc]
mov edx, dword [eax + 0xc]
lea edi, [edx + 1]
mov dword [eax + 0xc], edi
mov eax, dword [eax + 4]
mov dl, byte [edx + eax]
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0xc]
mov byte [esp + 0x11], dl
lea edx, [edi + 1]
mov dword [eax + 0xc], edx
mov eax, dword [eax + 4]
mov dl, byte [edi + eax]
mov eax, dword [esi + 0xc]
mov edi, dword [eax + 0xc]
lea ebx, [edi + 1]
mov dword [eax + 0xc], ebx
mov eax, dword [eax + 4]
mov al, byte [edi + eax]
xor bl, bl
cmp cl, bl
je 0x5aae0c
cmp dl, 0x3d
mov byte [esp + 0x12], bl
mov byte [esp + 0x13], bl
jne 0x5aad38
mov byte [esp + 0x12], 1
cmp al, 0x3d
jne 0x5aad41
mov byte [esp + 0x13], 1
cmp dl, 0x3d
movzx edi, byte [esp + 0x11]
mov bl, byte [edi + 0x1008cef5]
movzx ecx, cl
mov cl, byte [ecx + 0x1008cef5]
mov byte [esp + 0x11], bl
jne 0x5aad62
xor dl, dl
jmp 0x5aad6b
movzx edx, dl
mov dl, byte [edx + 0x1008cef5]
cmp al, 0x3d
jne 0x5aad73
xor bl, bl
jmp 0x5aad7c
movzx eax, al
mov bl, byte [eax + 0x1008cef5]
mov al, dl
shl al, 6
or al, bl
mov bl, byte [esp + 0x11]
shl cl, 2
shr bl, 4
or bl, cl
mov ecx, dword [esi + 4]
mov byte [ecx + ebp], bl
mov cl, byte [esp + 0x12]
inc ebp
test cl, cl
jne 0x5aadb1
mov cl, byte [esp + 0x11]
shl cl, 4
shr dl, 2
or dl, cl
mov ecx, dword [esi + 4]
mov byte [ecx + ebp], dl
inc ebp
mov cl, byte [esp + 0x13]
test cl, cl
jne 0x5aae0c
mov edx, dword [esi + 4]
mov edi, dword [esp + 0x14]
mov byte [edx + ebp], al
mov eax, dword [esp + 0x18]
sub edi, 4
inc ebp
inc eax
test al, 0xf
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], eax
jne 0x5aae01
mov eax, dword [esi + 0xc]
mov ecx, dword [eax + 0xc]
lea edx, [ecx + 1]
mov dword [eax + 0xc], edx
mov eax, dword [eax + 4]
mov dl, byte [ecx + eax]
dec edi
cmp dl, 0xd
mov dword [esp + 0x14], edi
jne 0x5aae01
mov eax, dword [esi + 0xc]
inc dword [eax + 0xc]
mov eax, edi
dec eax
mov dword [esp + 0x14], eax
cmp dword [esp + 0x14], 3
ja 0x5aacd0
pop ebx
mov eax, dword [esi]
cmp ebp, eax
je 0x5aae2c
mov ecx, dword [esi + 4]
push 1
push ebp
push eax
push ecx
lea ecx, [esi + 8]
push ecx
call fcn.005880dc
add esp, 0x14
mov dword [esi + 4], eax
mov dword [esi], ebp
mov ecx, dword [esi + 0xc]
push esi
call fcn.005b0b9c
pop edi
pop esi
pop ebp
add esp, 0xc
ret