joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4923b0
Capabilities:
Enumerate pe sections

Disassembly:
push esi
push ebx
mov edx, dword [esp + 0xc]
mov ebx, dword [esp + 0x10]
add edx, dword [edx + 0x3c]
movzx esi, word [edx + 6]
movzx eax, word [edx + 0x14]
test esi, esi
lea eax, [edx + eax + 0x18]
je 0x4923e8
xor edx, edx
nop
mov ecx, dword [eax + 0xc]
cmp ecx, ebx
ja 0x4923de
add ecx, dword [eax + 8]
cmp ebx, ecx
jb 0x4923ea
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4923d0
xor eax, eax
pop ebx
pop esi
ret

Function at 0x493220
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0x1c
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
je 0x493254
mov dword [esp + 4], 0
mov dword [esp], eax
mov dword [0x4f5884], eax
call fcn.0049fbc0
test eax, eax
sete al
movzx eax, al
mov dword [0x4ac478], eax
add esp, 0x1c
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x493243

Function at 0x493360
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x3c
mov eax, dword [eax + 0xc]
mov edi, dword [esi + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [edx]
mov dword [ebp - 0x20], edi
jmp 0x49338c
mov dword [0x4f5888], ecx
mov eax, dword [ebx]
mov eax, dword [eax]
mov dword [ebx], eax
test eax, eax
je 0x493448
mov edi, dword [eax + 0x18]
mov eax, dword [ebp - 0x20]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 0x18], eax
mov eax, dword [esi]
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
call eax
test eax, eax
jne 0x4934a0
test edi, edi
je 0x49340b
mov eax, dword [esi]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 0x10], esi
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0xa
mov dword [esp], 1
call edi
cmp eax, 7
je 0x4934b0
cmp eax, 8
jne 0x4934a0
mov eax, dword [ebx]
mov ecx, dword [eax]
mov eax, dword [0x4ac478]
test eax, eax
js 0x493486
test eax, eax
je 0x493380
mov eax, dword [0x4f5884]
mov dword [esp + 4], ecx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
sub esp, 8
test eax, eax
jne 0x493386
call dword [sym.imp.KERNEL32.dll_GetLastError]
jmp 0x493386
mov eax, dword [esi]
mov edi, dword [ebp - 0x20]
mov edx, dword [esi + 4]
mov dword [esp + 0x14], ebx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], edx
mov dword [esp + 4], 0x1a
mov dword [esp], 1
call eax
test eax, eax
jne 0x4934a0
lea esp, [ebp - 0xc]
mov al, 5
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x24], ecx
call fcn.00493260
mov eax, dword [0x4ac478]
mov ecx, dword [ebp - 0x24]
jmp 0x493418
lea esp, [ebp - 0xc]
mov eax, 2
pop ebx
pop esi
pop edi
pop ebp
ret
lea esp, [ebp - 0xc]
mov eax, 7
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x4936c0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov eax, dword [0x4ac478]
mov ebx, dword [ebp + 8]
test eax, eax
js 0x4937a2
test eax, eax
mov edi, dword [0x4f5888]
jne 0x493740
test edi, edi
mov dword [ebp - 0x1c], edi
je 0x493733
mov eax, edi
lea esi, [ebp - 0x1c]
nop
mov ecx, dword [eax + 0x18]
test ecx, ecx
je 0x493727
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], ebx
mov eax, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 4], 1
mov dword [esp], 1
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
call ecx
cmp eax, 6
je 0x493770
cmp eax, 8
jne 0x493795
mov eax, dword [ebp - 0x1c]
mov eax, dword [eax]
test eax, eax
mov dword [ebp - 0x1c], eax
jne 0x4936f0
mov eax, 5
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov edi, dword [0x4f5884]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov edi, eax
mov dword [esp], esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
sub esp, 4
jmp 0x4936e3
mov eax, dword [ebp - 0x1c]
mov edx, esi
mov dword [ebx + 0xc], 0
mov dword [ebp - 0x1c], edi
mov dword [ebx + 0x10], eax
mov eax, ebx
call fcn.00493170
cmp eax, 7
jne 0x493738
mov eax, esi
call fcn.004932f0
lea esp, [ebp - 0xc]
mov eax, 3
pop ebx
pop esi
pop edi
pop ebp
ret
call fcn.00493260
mov eax, dword [0x4ac478]
jmp 0x4936d9

Function at 0x4938e0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x493920
mov edx, dword [0x4ac478]
test edx, edx
js 0x493964
test edx, edx
mov eax, dword [0x4f5888]
jne 0x493938
mov dword [ebp - 0x1c], eax
lea edx, [ebp - 0x1c]
mov eax, ebx
call fcn.00493360
cmp eax, 7
je 0x493930
call sub.msvcrt.dll_abort
lea esi, [esi]
mov dword [esp], ebx
call fcn.004936c0
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea eax, [ebp - 0x1c]
call fcn.004932f0
mov esi, dword [0x4f5884]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp], esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
mov dword [esp], edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
sub esp, 4
jmp 0x493906
call fcn.00493260
mov edx, dword [0x4ac478]
jmp 0x4938fd
Function at 0x496fb0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x12c
mov ebx, dword [ebp + 8]
call sub.msvcrt.dll__errno
test ebx, ebx
mov dword [eax], 0
je 0x49715e
cmp byte [ebx], 0
je 0x497128
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
sub esp, 4
cmp eax, 0xffffffff
je 0x497140
test al, 0x10
je 0x497128
lea edi, [ebp - 0x11c]
mov dword [esp + 4], ebx
mov ebx, edi
mov dword [esp + 8], 0x104
mov dword [esp], edi
call sub.msvcrt.dll__fullpath
mov edx, dword [ebx]
add ebx, 4
lea eax, [edx - 0x1010101]
not edx
and eax, edx
and eax, 0x80808080
je 0x497014
mov edx, eax
shr edx, 0x10
test eax, 0x8080
cmove eax, edx
lea edx, [ebx + 2]
cmove ebx, edx
add al, al
sbb ebx, 3
sub ebx, edi
lea eax, [ebx + 0x233]
mov dword [esp], eax
call sub.msvcrt.dll_malloc
test eax, eax
mov esi, eax
je 0x49714f
lea edx, [eax + 0x22c]
lea eax, [ebx + 1]
mov dword [esp], edx
mov dword [esp + 8], eax
mov dword [esp + 4], edi
mov dword [ebp - 0x12c], edx
call sub.msvcrt.dll_memcpy
mov edx, dword [ebp - 0x12c]
cmp byte [esi + 0x22c], 0
je 0x4970a3
movzx eax, byte [esi + ebx + 0x22b]
cmp al, 0x2f
je 0x4970a3
cmp al, 0x5c
je 0x4970a3
mov edi, 0x5c
mov word [edx + ebx], di
mov eax, edx
mov ecx, dword [eax]
add eax, 4
lea edx, [ecx - 0x1010101]
not ecx
and edx, ecx
and edx, 0x80808080
je 0x4970a5
mov ecx, edx
shr ecx, 0x10
test edx, 0x8080
cmove edx, ecx
lea ecx, [eax + 2]
cmove eax, ecx
add dl, dl
sbb eax, 3
mov edx, 0x2a
mov word [eax], dx
xor ecx, ecx
xor eax, eax
lea edx, [esi + 0x120]
xor ebx, ebx
mov word [esi + 0x11c], cx
mov edi, edx
mov ecx, 0x41
mov dword [esi + 0x224], 0xffffffff
mov dword [esi + 0x228], 0
mov dword [esi + 0x118], 0
mov word [esi + 0x11e], bx
rep stosd dword es:[edi], eax
mov eax, esi
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 0x14
lea esp, [ebp - 0xc]
xor eax, eax
pop ebx
pop esi
pop edi
pop ebp
ret
call sub.msvcrt.dll__errno
mov dword [eax], 2
xor eax, eax
jmp 0x497120
call sub.msvcrt.dll__errno
mov dword [eax], 0xc
xor eax, eax
jmp 0x497120
call sub.msvcrt.dll__errno
mov dword [eax], 0xe
xor eax, eax
jmp 0x497120
Function at 0x40f22e
Capabilities:
Create pipe

Disassembly:
push ebx
push esi
mov esi, ecx
push edi
xor edi, edi
cmp dword [esi + 0x84], edi
jne 0x40f2cb
push edi
xor ebx, ebx
mov dword [esi + 0x84], 2
inc ebx
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateMutexW]
mov dword [esi + 0x44], eax
test eax, eax
je 0x40f2cb
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_CreateEventW]
mov dword [esi + 0x9c], eax
test eax, eax
je 0x40f2cb
push 4
push 0xffffffffffffffff
push esi
push 0x40f9e5
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.kernel32.dll_RegisterWaitForSingleObject]
test eax, eax
je 0x40f2cb
lea eax, [esi + 0x20]
cmp dword [eax + 0x14], 8
jb 0x40f296
mov eax, dword [eax]
push dword [esi + 0x38]
push edi
push 0x40
push 0x40
push ebx
push 6
push 0x40080003
push eax
call dword [sym.imp.kernel32.dll_CreateNamedPipeW]
mov dword [esi + 0x3c], eax
cmp eax, 0xffffffff
je 0x40f2cb
push dword [esi + 0x9c]
call dword [sym.imp.kernel32.dll_SetEvent]
test eax, eax
jne 0x40f2d1
mov dword [esi + 0x84], ebx
xor al, al
pop edi
pop esi
pop ebx
ret
mov al, bl
jmp 0x40f2cd

Function at 0x413ca1
Capabilities:
Identify system language via api

Disassembly:
push ebx
mov ebx, ecx
push esi
test dl, dl
je 0x413cb1
call dword [sym.imp.kernel32.dll_GetSystemDefaultLangID]
jmp 0x413cb7
call dword [sym.imp.kernel32.dll_GetUserDefaultLangID]
xor edx, edx
movzx esi, ax
mov ecx, 0x409
push edi
mov edi, edx
mov eax, ecx
cmp si, ax
je 0x413cdf
inc edi
imul eax, edi, 0x1a
movzx eax, word [eax + 0x438830]
test ax, ax
jne 0x413cc6
mov esi, ecx
jmp 0x413ce2
movzx esi, si
pop edi
cmp cx, si
je 0x413cff
inc edx
imul eax, edx, 0x1a
movzx ecx, word [eax + 0x438830]
test cx, cx
jne 0x413ce3
mov eax, 0x437338
jmp 0x413d07
imul eax, edx, 0x1a
add eax, 0x438832
push eax
mov ecx, ebx
call main
pop esi
mov eax, ebx
pop ebx
ret

Function at 0x42403e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
pushal
call 0x42404d
pop dword [ebp - 0x48]
mov eax, 0x42404d
sub dword [ebp - 0x48], eax
push 0x40
push 0x1000
push 0x40846
push 0
mov eax, 0x2bfd0b38
sub eax, 0x2bba483c
add eax, dword [ebp - 0x48]
call dword [eax]
mov ecx, 0x3a4f
mov ebx, eax
mov esi, 0xe6df5807
add esi, 0x19652ff9
add esi, dword [ebp - 0x48]
mov edx, 0x91e2f1b0
mov edi, dword [esi]
sub dword [ebp - 0x34], ecx
sub edi, edx
xor dword [ebp - 0x14], esi
mov dword [ebx], edi
xor dword [ebp - 8], ebx
add ebx, 4
add esi, 0x4955fb45
add esi, 0xb6aa04bf
loop 0x42409b
add eax, 0x6d34fa5a
sub eax, 0x6d341e4b
xor ebx, ebx
add ebx, eax
add eax, 0xadf108b5
sub eax, 0xadf108b0
mov ecx, 0x400000
add ecx, dword [ebp - 0x48]
call ebx
leave
ret
Function at 0x587c1a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebx
push ebp
push esi
xor esi, esi
push edi
mov edi, ecx
mov eax, esi
movd xmm0, eax
pshufd xmm0, xmm0, 0
paddd xmm0, xmmword [0x46b1d0]
movups xmmword [edi + eax*4], xmm0
add eax, 4
cmp eax, 0x100
jl 0x587c24
mov ebp, dword [esp + 0x14]
mov ebx, esi
xor edx, edx
mov eax, ebx
div dword [esp + 0x18]
movzx eax, byte [edx + ebp]
add eax, dword [edi + ebx*4]
add esi, eax
and esi, 0x800000ff
jns 0x587c6a
dec esi
or esi, 0xffffff00
inc esi
mov cl, byte [edi + ebx*4]
mov eax, dword [edi + esi*4]
mov dword [edi + ebx*4], eax
inc ebx
movzx eax, cl
mov dword [edi + esi*4], eax
cmp ebx, 0x100
jl 0x587c49
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x587c89
Capabilities:
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x400
lea eax, [esp]
push ebx
push esi
push edi
push 0x400
push ecx
xor esi, esi
push eax
mov edi, esi
call fcn.005b6ab9
mov edx, dword [esp + 0x420]
add esp, 0xc
mov ebx, esi
add edx, 1
je 0x587d19
push ebp
mov ebp, dword [esp + 0x414]
inc esi
and esi, 0x800000ff
jns 0x587ccf
dec esi
or esi, 0xffffff00
inc esi
mov eax, dword [esp + esi*4 + 0x10]
add edi, eax
and edi, 0x800000ff
jns 0x587ce5
dec edi
or edi, 0xffffff00
inc edi
mov cl, al
mov eax, dword [esp + edi*4 + 0x10]
mov dword [esp + esi*4 + 0x10], eax
movzx eax, cl
mov dword [esp + edi*4 + 0x10], eax
mov ecx, dword [esp + esi*4 + 0x10]
add ecx, eax
and ecx, 0x800000ff
jns 0x587d0c
dec ecx
or ecx, 0xffffff00
inc ecx
mov al, byte [esp + ecx*4 + 0x10]
xor byte [ebx + ebp], al
inc ebx
cmp ebx, edx
jb 0x587cbe
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x400
ret 8
Function at 0x5916d1
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x30
push ebx
push ebp
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x38], ebx
je 0x591808
cmp byte [edi + 0x3d], bl
je 0x591808
call fcn.00584756
mov esi, eax
mov ecx, edi
mov eax, dword [edi]
push esi
call dword [eax + 0xc]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x1c]
mov dword [esp + 0x1c], esi
push eax
call fcn.0058ecda
pop ecx
pop ecx
test al, al
je 0x591727
xor al, al
jmp 0x59180a
push ebx
push 8
lea ecx, [esp + 0x30]
call fcn.00586ac5
lea ebp, [edi + 0x40]
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x1c]
push eax
lea ecx, [esp + 0x30]
call fcn.00583d75
mov ecx, eax
call fcn.00584c54
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.00583d35
add esi, eax
lea ecx, [esp + 0x2c]
push esi
lea eax, [esp + 0x1c]
push eax
call fcn.00583d75
mov ecx, eax
call fcn.00584c54
mov ecx, dword [edi + 0x38]
push eax
push ebp
call fcn.0058f05e
sub eax, ebx
je 0x59178f
sub eax, 1
je 0x591792
dec eax
sub eax, 1
jne 0x5917fb
inc eax
jmp 0x5917f9
mov byte [edi + 0x3d], bl
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x2c]
call fcn.00583d75
mov ecx, eax
call fcn.00584c54
mov esi, dword [esp + 0x1c]
sub esi, eax
je 0x5917d7
push dword [edi + 0x4c]
lea eax, [esp + 0x28]
push esi
push 1
push eax
lea ecx, [esp + 0x38]
call fcn.00583d75
mov ecx, eax
call fcn.00584c54
push eax
call fcn.005c06b5
add esp, 0x10
cmp esi, eax
jne 0x5917f7
cmp byte [edi + 0x3d], bl
je 0x5917f5
test esi, esi
jne 0x591736
push ebx
push 8
lea ecx, [esp + 0x30]
call fcn.0058430a
jmp 0x591736
mov bl, 1
mov al, bl
mov bl, al
lea ecx, [esp + 0x28]
call fcn.00583891
mov al, bl
jmp 0x59180a
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x59276b
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x28
push ebx
mov ebx, ecx
push ebp
push esi
push edi
mov esi, dword [ebx]
mov edx, dword [ebx + 0x3c]
movzx ebp, word [esi + 0x14]
add ebp, esi
mov eax, dword [ebp + 0x20]
mov ecx, eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x24], eax
call fcn.005925a2
lea edx, [ebp + 0x18]
mov dword [esp + 0x28], eax
mov ecx, ebx
call fcn.005926af
mov ebx, dword [ebp + 0x3c]
mov edi, eax
and dword [esp + 0x34], 0
xor eax, eax
inc eax
mov dword [esp + 0x2c], edi
add ebp, 0x40
mov dword [esp + 0x30], ebx
cmp ax, word [esi + 6]
mov esi, ecx
mov dword [esp + 0x20], eax
jae 0x59287d
mov eax, dword [ebp + 8]
mov ecx, eax
mov edx, dword [esi + 0x3c]
mov dword [esp + 0x1c], eax
call fcn.005925a2
mov edx, ebp
mov dword [esp + 0x14], eax
mov ecx, esi
call fcn.005926af
mov edx, dword [esp + 0x10]
mov ecx, eax
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], ecx
cmp dword [esp + 0x28], eax
je 0x592834
lea ecx, [edi + edx]
cmp ecx, eax
ja 0x592830
lea edx, [esp + 0x24]
mov ecx, esi
call fcn.005926ce
test eax, eax
je 0x59289a
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
mov ebx, dword [ebp + 0x24]
mov dword [esp + 0x10], edx
mov dword [esp + 0x24], edx
mov dword [esp + 0x28], eax
jmp 0x592858
mov ecx, dword [esp + 0x18]
mov eax, dword [ebp + 0x24]
mov edi, 0x2000000
test edi, eax
je 0x592848
test edi, ebx
je 0x592848
or ebx, eax
jmp 0x592850
or ebx, eax
and ebx, 0xfdffffff
mov edi, ecx
sub edi, edx
add edi, dword [esp + 0x1c]
mov eax, dword [esi]
add ebp, 0x28
mov ecx, dword [esp + 0x20]
inc ecx
mov dword [esp + 0x30], ebx
mov dword [esp + 0x2c], edi
movzx eax, word [eax + 6]
mov dword [esp + 0x20], ecx
cmp ecx, eax
jl 0x5927c7
xor eax, eax
inc eax
lea edx, [esp + 0x24]
mov dword [esp + 0x34], eax
mov ecx, esi
call fcn.005926ce
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret
xor eax, eax
jmp 0x592892
Function at 0x5a2207
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [ecx + 4]
xor eax, eax
xor edx, edx
movzx ecx, word [esi]
cmp ax, cx
jae 0x5a2232
movzx eax, dx
mov al, byte [eax + esi + 4]
cmp al, 0x13
je 0x5a2232
cmp al, 0xc0
je 0x5a2232
cmp al, 0xcc
je 0x5a2232
add edx, 2
cmp dx, cx
jb 0x5a2217
pop esi
ret

Function at 0x5a4ce1
Capabilities:
Encode data using xor

Disassembly:
push esi
push edi
mov edi, edx
mov edx, dword [esp + 0x10]
lea esi, [edi + 4]
push esi
call fcn.005a4c7e
mov edx, dword [esp + 0x10]
pop ecx
push 4
sub edx, edi
pop ecx
mov al, byte [edx + edi]
mov byte [edi], al
inc edi
sub ecx, 1
jne 0x5a4cfc
push 8
pop ecx
mov al, byte [esi + edx]
xor byte [esi], al
inc esi
sub ecx, 1
jne 0x5a4d0a
pop edi
pop esi
ret

Function at 0x5a6f65
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x5a6f7d
sub edx, ecx
mov eax, dword [edx + ecx]
xor dword [ecx], eax
lea ecx, [ecx + 4]
sub esi, 1
jne 0x5a6f70
pop esi
ret

Function at 0x5a6f7f
Capabilities:
Encode data using xor

Disassembly:
mov eax, ecx
or eax, edx
push esi
mov esi, dword [esp + 8]
or eax, esi
test al, 3
jne 0x5a6f9a
shr esi, 2
push esi
call fcn.005a6f65
pop ecx
pop esi
ret
test esi, esi
je 0x5a6fab
sub edx, ecx
mov al, byte [edx + ecx]
xor byte [ecx], al
inc ecx
sub esi, 1
jne 0x5a6fa0
pop esi
ret

Function at 0x5a6fad
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, dword [esp + 0x10]
xor eax, eax
mov esi, edx
mov ebx, ecx
test edi, edi
jle 0x5a6fd1
sub ebx, esi
movzx edx, byte [ebx + esi]
movzx ecx, byte [esi]
xor edx, ecx
or eax, edx
inc esi
sub edi, 1
jne 0x5a6fc0
pop edi
pop esi
pop ebx
ret
Function at 0x5aba3c
Capabilities:
Encode data using base64

Disassembly:
sub esp, 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x1c]
lea eax, [edx + 0x3f]
push esi
shr eax, 6
mov esi, edx
sub esi, eax
mov dword [esp + 0x10], edx
push edi
xor edi, edi
mov ebx, ecx
and dword [esp + 0x18], edi
inc esi
imul eax, esi, 3
shr eax, 2
cmp eax, dword [ebp]
jbe 0x5aba73
mov eax, 0xffffff53
jmp 0x5abc46
mov esi, dword [esp + 0x20]
cmp edx, 3
jbe 0x5abc34
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
lea edx, [esp + 0x18]
call fcn.005ab9de
add esp, 4
test eax, eax
jne 0x5abc2d
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
mov byte [esp + 0x13], cl
mov dword [esp + 0x18], eax
test cl, cl
je 0x5abc34
dec dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
mov ecx, ebx
call fcn.005ab9de
add esp, 4
test eax, eax
jne 0x5abc46
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x12], cl
mov ecx, ebx
push eax
call fcn.005ab9de
add esp, 4
test eax, eax
jne 0x5abc46
mov eax, dword [esp + 0x18]
mov cl, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
lea eax, [esp + 0x18]
mov byte [esp + 0x24], cl
mov ecx, ebx
push eax
call fcn.005ab9de
add esp, 4
test eax, eax
jne 0x5abc46
mov eax, dword [esp + 0x18]
mov dl, byte [esp + 0x13]
mov dh, byte [eax + ebx]
inc eax
dec dword [esp + 0x14]
mov dword [esp + 0x18], eax
cmp dl, 0x2b
jb 0x5abc26
mov cl, byte [esp + 0x12]
cmp cl, 0x2b
jb 0x5abc26
mov al, byte [esp + 0x24]
cmp al, 0x2b
jb 0x5abc26
cmp dh, 0x2b
jb 0x5abc26
cmp dl, 0x7a
ja 0x5abc26
cmp cl, 0x7a
ja 0x5abc26
cmp al, 0x7a
ja 0x5abc26
cmp dh, 0x7a
ja 0x5abc26
xor ecx, ecx
cmp al, 0x3d
setne cl
xor eax, eax
inc ecx
cmp dh, 0x3d
setne al
add ecx, edi
add eax, ecx
cmp eax, dword [ebp]
ja 0x5aba69
mov cl, byte [esp + 0x12]
movzx eax, dl
mov al, byte [eax + 0x467825]
mov byte [esp + 0x13], al
movzx eax, cl
mov ch, byte [eax + 0x467825]
mov al, byte [esp + 0x24]
cmp al, 0x3d
jne 0x5abbc9
xor cl, cl
jmp 0x5abbd2
movzx eax, al
mov cl, byte [eax + 0x467825]
cmp dh, 0x3d
jne 0x5abbdb
xor al, al
jmp 0x5abbe4
movzx eax, dh
mov al, byte [eax + 0x467825]
mov ah, byte [esp + 0x13]
mov dl, cl
shl dl, 6
or dl, al
shl ah, 2
mov al, ch
shr al, 4
or al, ah
mov byte [edi + esi], al
inc edi
cmp byte [esp + 0x24], 0x3d
je 0x5abc10
shr cl, 2
shl ch, 4
or cl, ch
mov byte [edi + esi], cl
inc edi
cmp dh, 0x3d
je 0x5abc34
mov byte [edi + esi], dl
inc edi
cmp dword [esp + 0x14], 3
ja 0x5aba80
jmp 0x5abc34
mov eax, 0xffffff66
jmp 0x5abc46
cmp eax, 0xffffff7c
jne 0x5abc46
test esi, esi
je 0x5abc41
cmp dword [ebp], edi
jbe 0x5abc41
mov byte [edi + esi], 0
mov dword [ebp], edi
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x5af342
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, ecx
test edi, edi
je 0x5af43c
cmp dword [esp + 0x14], 0
mov esi, dword [esp + 0x18]
jne 0x5af363
test esi, esi
jne 0x5af43c
cmp edx, 3
je 0x5af399
cmp edx, 4
je 0x5af399
cmp edx, 5
je 0x5af399
cmp edx, 6
je 0x5af399
cmp edx, 7
je 0x5af399
cmp edx, 8
je 0x5af399
cmp edx, 0xa
je 0x5af399
cmp edx, 0xb
je 0x5af399
cmp edx, 0xc
je 0x5af399
cmp edx, 0xd
jne 0x5af43c
xor ebx, ebx
mov byte [edi + 0x114], dl
push ecx
mov byte [edi + 0x115], bl
call fcn.005af325
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x5af441
cmp byte [edi + 0x114], 6
lea ecx, [edi + 0x70]
jne 0x5af43c
cmp esi, 0x40
ja 0x5af3df
cmp dword [esp + 0x14], ebx
je 0x5af408
push esi
push dword [esp + 0x18]
push ecx
call fcn.005b6ab9
add esp, 0xc
jmp 0x5af405
mov edx, dword [esp + 0x14]
mov ecx, edi
push esi
call fcn.005b4224
mov ebp, eax
pop ecx
test ebp, ebp
jne 0x5af438
lea edx, [edi + 0x70]
mov ecx, edi
call fcn.005b42ff
mov ebp, eax
test ebp, ebp
jne 0x5af438
push 0x20
pop esi
lea ecx, [edi + 0x70]
cmp esi, 0x40
jae 0x5af420
push 0x40
pop eax
sub eax, esi
push eax
lea eax, [ecx + esi]
push ebx
push eax
call fcn.005b7039
add esp, 0xc
mov al, byte [ebx + edi + 0x70]
xor al, 0x5c
mov byte [edi + ebx + 0xb0], al
xor byte [ebx + edi + 0x70], 0x36
inc ebx
cmp ebx, 0x40
jb 0x5af420
mov eax, ebp
jmp 0x5af441
mov eax, 0xffffff53
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x5b32c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xd4
push ebx
push ebp
push esi
xor ebx, ebx
xor esi, esi
push edi
inc ebx
inc esi
cmp dword [esp + 0xe8], 0
mov edi, ecx
push 0
cmovne ebx, dword [esp + 0xec]
mov ebp, edx
pop ecx
test bl, 0x1f
mov eax, ebx
push 0x37
push dword [esp + 0xf0]
setne cl
shr eax, 5
add eax, ecx
mov dword [esp + 0x18], eax
lea eax, [esp + 0x44]
push eax
call fcn.005b6ab9
and dword [esp + 0x20], 0
add esp, 0xc
cmp dword [esp + 0x10], 0
jbe 0x5b33fe
lea ecx, [esp + 0x74]
call fcn.005b433e
mov esi, eax
test esi, esi
jne 0x5b33fe
push 0x37
lea edx, [esp + 0x40]
lea ecx, [esp + 0x78]
call fcn.005b4224
mov esi, eax
pop ecx
test esi, esi
jne 0x5b33fe
lea edx, [esp + 0x1c]
lea ecx, [esp + 0x74]
call fcn.005b42ff
mov esi, eax
test esi, esi
jne 0x5b33fe
push 4
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
call fcn.005b6ab9
mov eax, dword [esp + 0x24]
add esp, 0xc
cmp dword [edi], 1
jbe 0x5b33a9
cmp eax, dword [edi + 4]
jne 0x5b33a9
cmp byte [edi + 0x76], 1
je 0x5b341c
mov edx, dword [esp + 0x10]
mov byte [edi + 0x76], 1
lea eax, [edx - 1]
cmp dword [esp + 0x14], eax
lea ecx, [edx + 1]
cmovne ecx, edx
mov dword [esp + 0x10], ecx
jmp 0x5b33b0
mov byte [edi + 0x76], 0
mov dword [edi + 4], eax
test ebp, ebp
je 0x5b33eb
test ebx, ebx
je 0x5b33eb
lea eax, [esp + 0x1c]
cmp ebx, 0x20
jb 0x5b33de
push 0x20
push eax
push ebp
call fcn.005b6ab9
add esp, 0xc
lea ecx, [esp + 0x3c]
sub ebx, 0x20
add ebp, 0x20
call fcn.005b32b1
jmp 0x5b33eb
push ebx
push eax
push ebp
call fcn.005b6ab9
add esp, 0xc
xor ebx, ebx
mov eax, dword [esp + 0x14]
inc eax
mov dword [esp + 0x14], eax
cmp eax, dword [esp + 0x10]
jl 0x5b331e
push 0x37
pop edx
lea ecx, [esp + 0x3c]
call fcn.0059d872
xor eax, eax
test esi, esi
setne al
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xd4
ret
push 3
pop eax
jmp 0x5b3411

Function at 0x5b3b18
Capabilities:
Hash data using sha256

Disassembly:
push esi
mov esi, ecx
test esi, esi
jne 0x5b3ac4
mov eax, 0xffffff53
pop esi
ret
push edi
push 0x20
xor edi, edi
push edi
push esi
call fcn.005b7039
add esp, 0xc
mov dword [esi + 0x60], edi
mov dword [esi + 0x64], edi
xor eax, eax
mov dword [esi + 0x68], edi
mov dword [esi], 0x6a09e667
pop edi
mov dword [esi + 4], 0xbb67ae85
mov dword [esi + 8], 0x3c6ef372
mov dword [esi + 0xc], 0xa54ff53a
mov dword [esi + 0x10], 0x510e527f
mov dword [esi + 0x14], 0x9b05688c
mov dword [esi + 0x18], 0x1f83d9ab
mov dword [esi + 0x1c], 0x5be0cd19
pop esi
ret
test ecx, ecx
jne 0x5b3b22
mov eax, 0xffffff53
ret
mov dword [ecx + 0x6c], edx
jmp 0x5b3ab6