joyce8/EMBER2024-capa huggingface dataset:
Function at 0x55bd40
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x627714
mov eax, dword fs:[0]
push eax
sub esp, 0xc
mov eax, dword [0x659af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [edi + 0xebc], 0
lea esi, [edi + 0xebc]
jne 0x55be39
mov dword [ebp - 0x14], 0
call fcn.0055d1f0
push eax
lea ecx, [ebp - 0x14]
call fcn.00530590
cmp byte [esi], 0
mov dword [ebp - 4], 0
jne 0x55be31
cmp dword [edi + 0xec0], 0
jne 0x55bdd9
push 4
call fcn.006084b7
add esp, 4
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x55bdd1
mov ecx, eax
mov dword [eax], 0
call fcn.00530560
jmp 0x55bdd3
xor eax, eax
mov dword [edi + 0xec0], eax
mov dword [ebp - 0x18], esi
mov ecx, edi
mov byte [ebp - 4], 2
mov byte [0x656f20], 0xf0
call fcn.00573110
test al, al
jne 0x55be01
lea ecx, [ebp - 0x14]
mov byte [esi], 1
call fcn.00530600
xor al, al
jmp 0x55be3b
mov ecx, edi
mov dword [ebp - 4], 2
call fcn.0055bfa0
call fcn.005807a0
test al, al
jne 0x55be20
push 1
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push 0
call fcn.0057f610
mov ecx, eax
call fcn.00580690
mov byte [esi], 1
lea ecx, [ebp - 0x14]
call fcn.00530600
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00608a00
mov esp, ebp
pop ebp
ret

Function at 0x56be20
Capabilities:
Read file via mapping

Disassembly:
push esi
push dword [esp + 0xc]
mov esi, ecx
push dword [esp + 0xc]
call fcn.0056be60
mov ecx, dword [esi + 0x18]
cmp ecx, 0xffffffff
je 0x56be56
push 0
push 0
push 0
push 6
push ecx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
test eax, eax
jne 0x56be51
xor al, al
pop esi
ret 8
mov dword [esi + 0x14], eax
mov al, 1
pop esi
ret 8
Function at 0x578170
Capabilities:
Get session user name

Disassembly:
push ebp
lea ebp, [esp - 0x134]
sub esp, 0x134
push 0xffffffffffffffff
push 0x62adb6
mov eax, dword fs:[0]
push eax
push ecx
mov eax, dword [0x659af8]
xor eax, ebp
mov dword [ebp + 0x130], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x13c]
mov dword [ebp - 0x10], 0
xorps xmm0, xmm0
mov dword [ebp - 4], 0
lea ecx, [ebp + 4]
movq qword [ebp + 4], xmm0
mov dword [ebp + 0xc], 0
call fcn.0052bd80
push 0x101
lea eax, [ebp + 0x2c]
mov dword [ebp - 0x10], 1
push 0
push eax
call fcn.0060a6d0
add esp, 0xc
mov dword [ebp], 0x101
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2c]
push eax
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
test eax, eax
je 0x57828d
mov eax, dword [ebp]
dec eax
mov dword [ebp + 0x24], 0
mov dword [ebp + 0x28], 0xf
mov byte [ebp + 0x14], 0
push eax
lea eax, [ebp + 0x2c]
mov byte [ebp - 4], 1
push eax
lea ecx, [ebp + 0x10]
mov dword [ebp + 0x10], 0x498708
call fcn.00524db0
lea eax, [ebp + 4]
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp + 0x10]
call fcn.00525ed0
mov edx, dword [ebp + 0x28]
mov byte [ebp - 4], 0
mov dword [ebp + 0x10], 0x498708
cmp edx, 0x10
jb 0x57828d
mov ecx, dword [ebp + 0x14]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x57827f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57833c
push edx
push ecx
call fcn.006084e7
add esp, 8
mov byte [ebp - 4], 0
lea ecx, [ebp + 4]
call fcn.0052be60
mov edx, eax
mov dword [ebp + 0x24], 0
mov ecx, edx
mov dword [ebp + 0x28], 0xf
mov byte [ebp + 0x14], 0
lea esi, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x5782b0
sub ecx, esi
push ecx
push edx
lea ecx, [ebp + 0x14]
call fcn.004c82a0
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 4
push eax
lea eax, [edi + 0x1d0]
push eax
call fcn.005b05e0
mov edx, dword [ebp + 0x28]
add esp, 8
mov byte [ebp - 4], 0
cmp edx, 0x10
jb 0x578312
mov ecx, dword [ebp + 0x14]
inc edx
mov eax, ecx
mov byte [ebp - 4], 5
cmp edx, 0x1000
jb 0x578308
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x578341
push edx
push ecx
call fcn.006084e7
add esp, 8
lea ecx, [ebp + 4]
call fcn.004c0e80
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp + 0x130]
xor ecx, ebp
call fcn.00608a00
lea esp, [ebp + 0x134]
pop ebp
ret
call fcn.00540ccc
call fcn.00540ccc
int3
Function at 0x5792b0
Capabilities:
Encode data using xor
Query environment variable

Disassembly:
sub esp, 0x108
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
mov edi, ecx
mov al, byte [edi + 0x1f0]
test al, al
jne 0x57948b
push ebx
push esi
push 0x100
xor ebx, ebx
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0060a6d0
add esp, 0xc
lea eax, [esp + 0x10]
push 0x100
push eax
push 0x4aa080
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xcb
je 0x579487
test esi, esi
je 0x579487
cmp esi, 0x20
jae 0x579487
mov ecx, 0x4aa08c
lea eax, [esp + 0x10]
nop
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x579350
test dl, dl
je 0x57934c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x579350
add eax, 2
add ecx, 2
test dl, dl
jne 0x579330
xor eax, eax
jmp 0x579355
sbb eax, eax
or eax, 1
test eax, eax
je 0x579487
mov ecx, 0x4aa094
lea eax, [esp + 0x10]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x579386
test dl, dl
je 0x579382
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x579386
add eax, 2
add ecx, 2
test dl, dl
jne 0x579366
xor eax, eax
jmp 0x57938b
sbb eax, eax
or eax, 1
test eax, eax
je 0x579487
mov ecx, 0x4aa09c
lea eax, [esp + 0x10]
nop dword [eax]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x5793c0
test dl, dl
je 0x5793bc
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x5793c0
add eax, 2
add ecx, 2
test dl, dl
jne 0x5793a0
xor eax, eax
jmp 0x5793c5
sbb eax, eax
or eax, 1
test eax, eax
je 0x579487
push 8
lea eax, [esp + 0x14]
push 0x4aa0a4
push eax
call fcn.00544470
add esp, 0xc
test eax, eax
jne 0x57943f
lea eax, [esp + 0xc]
mov dword [esp + 0xc], ebx
push eax
lea eax, [esp + 0x14]
push 0x4aa0b0
push eax
call fcn.00588890
add esp, 0xc
cmp eax, 1
jne 0x579421
mov eax, dword [esp + 0xc]
inc eax
and eax, 0x800000ff
jns 0x579418
dec eax
or eax, 0xffffff00
inc eax
movzx ebx, byte [eax + 0x4a9c18]
jmp 0x57945b
xor edx, edx
test esi, esi
je 0x579462
movsx ecx, byte [esp + edx + 0x10]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x4a9c18]
cmp edx, esi
jb 0x579427
jmp 0x57945b
xor edx, edx
test esi, esi
je 0x579462
movsx ecx, byte [esp + edx + 0x10]
inc edx
movzx eax, bx
xor ecx, eax
movzx ebx, byte [ecx + 0x4a9c18]
cmp edx, esi
jb 0x579445
xor eax, eax
cmp ax, bx
jne 0x579467
mov ebx, 0xff
pop esi
mov byte [edi + 0x1f0], bl
mov al, bl
pop ebx
pop edi
mov ecx, dword [esp + 0x104]
xor ecx, esp
call fcn.00608a00
add esp, 0x108
ret
pop esi
xor al, al
pop ebx
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.00608a00
add esp, 0x108
ret
Function at 0x57e340
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62b6f5
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x659af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [ebp - 0x38]
xorps xmm0, xmm0
mov dword [ebp - 0x3c], edi
movq qword [ebp - 0x38], xmm0
mov dword [ebp - 0x30], 0
call fcn.0052bd80
push 0x8010
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004c7da0
push 0x8000
mov esi, eax
mov dword [ebp - 0x18], 0x8000
push 0
push esi
mov dword [ebp - 0x14], 0x800f
call fcn.0060a6d0
mov byte [esi + 0x8000], 0
add esp, 0xc
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x2c], 0x498708
cmp dword [ebp - 0x14], 0x10
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
cmovae eax, esi
mov byte [ebp - 4], 2
push eax
push 0x4a9d18
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
jne 0x57e488
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.0052bc90
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0x498708
cmp edx, 0x10
jb 0x57e451
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
mov byte [ebp - 4], 3
cmp edx, 0x1000
jb 0x57e447
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x57e4e7
push edx
push ecx
call fcn.006084e7
add esp, 8
lea ecx, [ebp - 0x38]
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0xf
mov byte [ebp - 0x28], 0
call fcn.004c0e80
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00608a00
mov esp, ebp
pop ebp
ret
push 0
push eax
lea ecx, [ebp - 0x28]
call fcn.004c9e90
lea eax, [ebp - 0x38]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00525ed0
lea eax, [ebp - 0x38]
mov ecx, edi
push eax
call fcn.0052bc90
mov edx, dword [ebp - 0x14]
mov byte [ebp - 4], 0
mov dword [ebp - 0x2c], 0x498708
cmp edx, 0x10
jb 0x57e451
mov ecx, dword [ebp - 0x28]
inc edx
mov eax, ecx
mov byte [ebp - 4], 4
cmp edx, 0x1000
jb 0x57e447
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x57e447
call fcn.00540ccc
int3
Function at 0x5807a0
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62bb4d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x659af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [0x657020], 0xffffffff
jne 0x58082b
mov dword [ebp - 0x14], 0
call fcn.00584dd0
push eax
lea ecx, [ebp - 0x14]
call fcn.00530590
cmp dword [0x657020], 0xffffffff
mov dword [ebp - 4], 0
je 0x580805
lea ecx, [ebp - 0x14]
mov bl, 1
call fcn.00530600
mov al, bl
jmp 0x58082d
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
cmp eax, 0xffffffff
jne 0x58081e
lea ecx, [ebp - 0x14]
xor bl, bl
call fcn.00530600
mov al, bl
jmp 0x58082d
lea ecx, [ebp - 0x14]
mov dword [0x657020], eax
call fcn.00530600
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00608a00
mov esp, ebp
pop ebp
ret
Function at 0x589e20
Capabilities:
Query service status

Disassembly:
sub esp, 0x20
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x1c], eax
imul ecx, dword [esp + 0x24], 0x3e8
mov eax, 0x51eb851f
push ebx
push ebp
push esi
push reloc.WS2_32.dll_accept
mul ecx
push 0
mov esi, edx
xor bh, bh
push 0
shr esi, 5
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerA]
mov ebp, eax
test ebp, ebp
je 0x589edf
push edi
push closesocket
push 0x4aa16c
push ebp
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov edi, eax
test edi, edi
je 0x589ed7
mov bl, byte [esp + 0x38]
nop dword [eax]
lea eax, [esp + 0x10]
mov dword [esp + 0x28], 0
xorps xmm0, xmm0
push eax
push edi
movups xmmword [esp + 0x18], xmm0
movq qword [esp + 0x28], xmm0
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
je 0x589ed0
mov eax, dword [esp + 0x14]
cmp eax, 2
je 0x589ebd
cmp eax, 4
je 0x589ece
test bl, bl
jne 0x589ed0
test esi, esi
je 0x589ed0
dec esi
push 0x64
call fcn.00530550
add esp, 4
cmp dword [esp + 0x14], 4
jne 0x589e80
mov bh, 1
push edi
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
push ebp
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
pop edi
mov ecx, dword [esp + 0x28]
mov al, bh
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00608a00
add esp, 0x20
ret 8
Function at 0x589f00
Capabilities:
Check if process is running under wine
Get file version info

Disassembly:
sub esp, 0x1c
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 0x18], eax
push esi
mov esi, ecx
cmp byte [esi + 8], 1
jne 0x589f2a
mov al, byte [esi + 9]
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00608a00
add esp, 0x1c
ret
mov eax, dword [0x499438]
mov dword [esp + 0x14], eax
mov ax, word [0x49943c]
push ebx
mov word [esp + 0x1c], ax
xor bl, bl
push ebp
lea eax, [esp + 0x14]
mov dword [esp + 0xc], 0
push eax
lea eax, [esp + 0x20]
mov dword [esp + 0x18], 0
push eax
mov dword [esp + 0x20], 0
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov ebp, eax
test ebp, ebp
je 0x589feb
xor edx, edx
mov ecx, ebp
add ecx, 0x32
push edi
setb dl
neg edx
or edx, ecx
push edx
call fcn.005440c0
mov edi, eax
add esp, 4
test edi, edi
je 0x589fea
push edi
push ebp
push dword [esp + 0x20]
lea eax, [esp + 0x2c]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x589fe1
lea eax, [esp + 0x1c]
push eax
lea eax, [esp + 0x14]
push eax
push 0x4aa128
push edi
call sub.VERSION.dll_VerQueryValueA
test eax, eax
je 0x589fe1
cmp dword [esp + 0x1c], 0
je 0x589fe1
push 4
push 0x4aa150
push dword [esp + 0x18]
call fcn.00544470
add esp, 0xc
movzx ebx, bl
test eax, eax
mov ecx, 1
cmove ebx, ecx
push edi
call fcn.00540e24
add esp, 4
pop edi
lea eax, [esp + 0x10]
push eax
push 1
push 0
push 0x4aa158
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x58a02e
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop ebp
pop ebx
mov byte [esi + 8], 1
mov al, 1
mov byte [esi + 9], 1
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00608a00
add esp, 0x1c
ret
mov byte [esi + 8], 1
cmp bl, 1
jne 0x58a04e
pop ebp
mov byte [esi + 9], bl
mov al, bl
pop ebx
pop esi
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.00608a00
add esp, 0x1c
ret
mov al, byte [esi + 9]
mov ecx, dword [esp + 0x24]
pop ebp
pop ebx
pop esi
xor ecx, esp
call fcn.00608a00
add esp, 0x1c
ret
Function at 0x595b80
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62db00
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x659af8]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0xac], ecx
mov esi, dword [ebp + 0xc]
mov ebx, dword [ebp + 8]
mov edi, dword [esi + 4]
mov edx, edi
mov ecx, dword [esi]
sub edx, ecx
cmp edx, 0x400
jbe 0x595bd3
lea edi, [ecx + 0x400]
jmp 0x595c11
jae 0x595c14
mov eax, dword [esi + 8]
sub eax, ecx
cmp eax, 0x400
jae 0x595bf9
lea eax, [ebp - 0xa5]
mov ecx, esi
push eax
push 0x400
call fcn.00505fa0
mov edi, dword [esi + 4]
jmp 0x595c14
mov ecx, 0x400
mov eax, edi
sub ecx, edx
push ecx
push 0
push eax
lea edi, [eax + ecx]
call fcn.0060a6d0
add esp, 0xc
mov dword [esi + 4], edi
mov ecx, dword [esi]
sub edi, ecx
cmp dword [ebx + 0x18], 0x10
mov dword [ebp - 0x14], edi
lea edi, [ebx + 4]
mov dword [ebp - 0x18], 0
mov eax, edi
jb 0x595c2f
mov eax, dword [edi]
lea edx, [ebp - 0x14]
push edx
push ecx
lea ecx, [ebp - 0x18]
push ecx
push 0
push eax
mov eax, dword [ebp - 0xac]
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp ebx, 0xea
jne 0x595c84
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00507130
cmp dword [edi + 0x14], 0x10
jb 0x595c66
mov edi, dword [edi]
lea eax, [ebp - 0x14]
push eax
push dword [esi]
lea eax, [ebp - 0x18]
push eax
mov eax, dword [ebp - 0xac]
push 0
push edi
push dword [eax + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
test ebx, ebx
jne 0x595c9a
cmp dword [ebp - 0x18], 3
jne 0x595cbf
push dword [ebp - 0x14]
mov ecx, esi
call fcn.00507130
jmp 0x595c9f
mov eax, dword [esi]
mov dword [esi + 4], eax
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00608a00
mov esp, ebp
pop ebp
ret 8
push 0x8c
lea ecx, [ebp - 0xa4]
call fcn.004c7d80
lea ecx, [ebp - 0xa4]
call fcn.0052c1a0
lea eax, [ebp - 0xa4]
mov dword [ebp - 4], 0
push eax
lea ecx, [ebp - 0x138]
call fcn.0052bee0
push 0x63d878
lea eax, [ebp - 0x138]
push eax
call fcn.00609d27
int3
Function at 0x597b30
Capabilities:
Set registry value

Disassembly:
sub esp, 8
mov eax, dword [0x659af8]
xor eax, esp
mov dword [esp + 4], eax
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
add edx, 4
mov dword [esp], eax
cmp dword [edx + 0x14], 0x10
jb 0x597b54
mov edx, dword [edx]
push 4
lea eax, [esp + 4]
push eax
push 4
push 0
push edx
push dword [ecx + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00608a00
add esp, 8
ret 8

Function at 0x597d50
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ecx
push ebx
push edi
mov edi, dword [esp + 0x18]
xor cl, cl
mov eax, edi
mov bh, 1
mov dword [esp + 8], eax
test edi, edi
je 0x597dac
push ebp
mov ebp, dword [esp + 0x14]
push esi
mov esi, dword [esp + 0x1c]
nop
movzx edx, bh
lea esi, [esi + 1]
inc bh
mov bl, byte [edx + ebp]
add cl, bl
mov byte [esp + 0x20], cl
movzx ecx, cl
mov al, byte [ecx + ebp]
mov byte [edx + ebp], al
mov byte [ecx + ebp], bl
movzx ecx, byte [edx + ebp]
add cl, bl
movzx ecx, cl
movzx ecx, byte [ecx + ebp]
xor byte [esi - 1], cl
mov cl, byte [esp + 0x20]
sub edi, 1
jne 0x597d70
mov eax, dword [esp + 0x10]
pop esi
pop ebp
pop edi
pop ebx
pop ecx
ret

Function at 0x597e20
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x14
push ebx
mov ebx, dword [ecx]
push ebp
mov ebp, dword [ecx + 8]
push esi
mov esi, dword [esp + 0x24]
push edi
movzx edi, word [ebp + ebx*4 + 0x14]
movzx eax, word [ebp + ebx*4 + 0x10]
movzx ecx, word [ebp + ebx*4 + 0x18]
shl edi, 0x10
or edi, eax
mov dword [esp + 0x20], ebx
movzx eax, word [ebp + ebx*4 + 0x1c]
xor edi, dword [esi]
shl eax, 0x10
or eax, ecx
lea ecx, [ebx - 1]
xor eax, edi
mov dword [esp + 0x18], ecx
xor eax, dword [esi + 4]
test ecx, ecx
js 0x597f0e
nop dword [eax + eax]
movzx ebx, word [ebp + ecx*4]
mov edx, eax
shr edx, 0x10
mov ecx, ebx
shr ecx, 8
mov si, dx
mov dword [esp + 0x14], ecx
shr si, 8
movzx ecx, si
xor dword [esp + 0x14], ecx
movzx ecx, dl
mov edx, dword [esp + 0x14]
xor edx, ecx
mov word [esp + 0x12], si
mov ecx, eax
mov dword [esp + 0x14], edx
shr ecx, 8
inc dl
xor cl, bl
xor cl, al
add cl, dl
rol cl, 2
mov dl, cl
mov dword [esp + 0x1c], ecx
add dl, byte [esp + 0x14]
rol dl, 2
lea ecx, [edx + 1]
add cl, byte [esp + 0x12]
rol cl, 2
movzx esi, cl
shl esi, 8
movzx ecx, dl
mov edx, dword [esp + 0x1c]
or esi, ecx
shl esi, 8
movzx ecx, dl
or esi, ecx
lea ecx, [edx + eax]
shl esi, 8
rol cl, 2
movzx ecx, cl
or esi, ecx
mov ecx, dword [esp + 0x18]
xor esi, edi
sub ecx, 1
mov edi, eax
mov dword [esp + 0x18], ecx
mov eax, esi
jns 0x597e70
mov ebx, dword [esp + 0x20]
mov esi, dword [esp + 0x28]
movzx edx, word [ebp + ebx*4 + 0xc]
movzx ecx, word [ebp + ebx*4 + 8]
shl edx, 0x10
or edx, ecx
movzx ecx, word [ebp + ebx*4]
xor edx, eax
xor edi, edx
movzx edx, word [ebp + ebx*4 + 4]
shl edx, 0x10
or edx, ecx
mov dword [esi + 4], edi
pop edi
xor edx, eax
mov dword [esi], edx
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4
Function at 0x597f50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 8
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov ebp, dword [eax + 4]
mov esi, ecx
mov ecx, dword [eax]
xor ebx, ebx
push edi
xor edi, edi
mov dword [esp + 0x10], ecx
mov eax, dword [esi]
cdq
sub eax, edx
sar eax, 1
add eax, 4
test eax, eax
jle 0x598032
nop dword [eax]
mov eax, ebp
xor eax, ebx
mov dword [esp + 0x1c], eax
mov eax, ecx
shr eax, 0x10
mov ebx, eax
movzx edx, al
shr ecx, 8
xor cl, byte [esp + 0x10]
shr ebx, 8
xor edx, ebx
inc bl
mov al, dl
xor al, byte [esp + 0x1c]
inc al
add cl, al
mov eax, dword [esp + 0x1c]
rol cl, 2
mov dword [esp + 0x14], ecx
mov ecx, eax
shr eax, 0x10
shr ecx, 8
xor cl, byte [esp + 0x14]
add cl, dl
mov dword [esp + 0x1c], eax
shr eax, 8
rol cl, 2
xor al, cl
add al, bl
mov ebx, dword [esp + 0x10]
rol al, 2
movzx edx, al
movzx eax, cl
mov ecx, dword [esp + 0x14]
shl edx, 8
or edx, eax
movzx eax, cl
xor cl, byte [esp + 0x1c]
add cl, byte [esp + 0x10]
shl edx, 8
or edx, eax
rol cl, 2
movzx eax, cl
shl edx, 8
or edx, eax
mov eax, dword [esi + 8]
movzx ecx, dx
mov dword [eax + edi*8], ecx
mov ecx, edx
mov eax, dword [esi + 8]
shr ecx, 0x10
mov dword [eax + edi*8 + 4], ecx
mov ecx, ebp
mov eax, dword [esi]
mov ebp, edx
cdq
inc edi
sub eax, edx
mov dword [esp + 0x10], ecx
sar eax, 1
add eax, 4
cmp edi, eax
jl 0x597f80
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret 4
Function at 0x598090
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
mov ebp, dword [esp + 0x38]
mov eax, ebp
push esi
shr eax, 3
mov esi, ecx
and ebp, 7
mov dword [esp + 0x10], esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0x40], ebp
je 0x5980ce
sub eax, 1
mov dword [esp + 0x10], eax
jne 0x5980ce
mov edx, dword [esp + 0x38]
mov ebx, dword [esp + 0x3c]
mov esi, dword [edx]
mov edi, dword [edx + 4]
jmp 0x598230
mov ebx, dword [esp + 0x3c]
test eax, eax
je 0x598220
mov dword [esp + 0x20], ebx
jmp 0x5980e4
mov esi, dword [esp + 0x14]
mov edi, dword [esi]
mov esi, dword [esi + 8]
mov ecx, dword [ebx]
mov edx, dword [ebx + 4]
mov dword [esp + 0x28], ecx
movzx ebp, word [esi + edi*4 + 0x14]
movzx eax, word [esi + edi*4 + 0x10]
shl ebp, 0x10
or ebp, eax
mov dword [esp + 0x2c], edx
movzx eax, word [esi + edi*4 + 0x1c]
xor ebp, ecx
movzx ecx, word [esi + edi*4 + 0x18]
shl eax, 0x10
or eax, ecx
mov dword [esp + 0x24], edi
xor eax, edx
mov dword [esp + 0x1c], esi
lea ecx, [edi - 1]
mov dword [esp + 0x3c], ebp
xor eax, ebp
mov dword [esp + 0x18], ecx
test ecx, ecx
js 0x5981c5
movzx ebx, word [esi + ecx*4]
mov ecx, eax
shr ecx, 0x10
mov esi, ebx
mov bp, cx
shr esi, 8
movzx ecx, cl
xor esi, ecx
shr bp, 8
movzx ecx, bp
xor esi, ecx
movzx edx, ax
movzx ecx, bl
shr edx, 8
xor edx, ecx
movzx ebx, al
movzx ecx, al
xor ecx, edx
inc ecx
add ecx, esi
rol cl, 2
movzx edi, cl
add ebx, edi
rol bl, 2
lea ecx, [edi + esi]
rol cl, 2
movzx edx, cl
movzx ecx, bp
mov ebp, eax
inc ecx
add ecx, edx
rol cl, 2
movzx esi, cl
shl esi, 8
or esi, edx
movzx ecx, bl
shl esi, 8
or esi, edi
shl esi, 8
or esi, ecx
mov ecx, dword [esp + 0x18]
xor esi, dword [esp + 0x3c]
sub ecx, 1
mov eax, esi
mov dword [esp + 0x3c], ebp
mov esi, dword [esp + 0x1c]
mov dword [esp + 0x18], ecx
jns 0x598135
mov ebx, dword [esp + 0x20]
mov edi, dword [esp + 0x24]
movzx edx, word [esi + edi*4 + 0xc]
movzx ecx, word [esi + edi*4 + 8]
shl edx, 0x10
or edx, ecx
movzx ecx, word [esi + edi*4]
xor edx, eax
xor ebp, edx
movzx edx, word [esi + edi*4 + 4]
mov esi, dword [esp + 0x28]
mov edi, dword [esp + 0x2c]
shl edx, 0x10
or edx, ecx
mov dword [ebx + 4], ebp
xor edx, eax
mov dword [ebx], edx
mov edx, dword [esp + 0x38]
mov eax, dword [edx]
xor dword [ebx], eax
mov eax, dword [edx + 4]
xor dword [ebx + 4], eax
add ebx, 8
sub dword [esp + 0x10], 1
mov dword [esp + 0x20], ebx
mov dword [edx], esi
mov dword [edx + 4], edi
jne 0x5980e0
mov ebp, dword [esp + 0x40]
jmp 0x59822c
mov edi, dword [esp + 0x30]
mov esi, dword [esp + 0x2c]
mov edx, dword [esp + 0x38]
test ebp, ebp
je 0x598274
mov ecx, dword [ebx + 4]
mov eax, dword [ebx]
mov dword [edx + 4], ecx
mov ecx, dword [esp + 0x14]
push ebx
mov dword [edx], eax
call fcn.00597e20
test ebp, ebp
je 0x598265
lea edx, [ebx + 8]
nop dword [eax + eax]
mov cl, byte [edx]
lea edx, [edx + 1]
mov al, byte [edx - 9]
xor al, cl
mov byte [edx - 1], al
mov byte [edx - 9], cl
sub ebp, 1
jne 0x598250
mov ecx, dword [esp + 0x14]
push ebx
call fcn.00597e20
xor dword [ebx], esi
xor dword [ebx + 4], edi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x24
ret 0xc