joyce8/EMBER2024-capa huggingface dataset:
Function at 0x525b78
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x525bdc
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404e80
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.0040a684
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x525be3
lea eax, [ebp - 0xc]
call fcn.00404c00
ret
Function at 0x5383f8
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x53845c
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404e80
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.0040a684
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x538463
lea eax, [ebp - 0xc]
call fcn.00404c00
ret

Function at 0x5384fc
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push esi
push edi
add esp, 0xffffffec
mov esi, edx
lea edi, [esp + 8]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ebx, dword [esp + 8]
test ebx, ebx
je 0x538558
push esp
push 0x40
push 6
push ebx
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x538527
call fcn.0040f9b0
mov edx, dword [esp + 8]
lea eax, [esp + 0xc]
mov ecx, 6
call fcn.0040311c
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 4]
push eax
push 6
mov eax, dword [esp + 0x14]
push eax
call sub.kernel32.dll_VirtualProtect
test eax, eax
jne 0x538558
call fcn.0040f9b0
add esp, 0x14
pop edi
pop esi
pop ebx
ret

Function at 0x53d564
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push eax
call sub.kernel32.dll_GetFileAttributesA
cmp eax, 0xffffffff
je 0x53d573
test al, 0x10
je 0x53d576
xor eax, eax
ret
mov al, 1
ret

Function at 0x53d57c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
mov ebx, eax
xor eax, eax
push ebp
push 0x53d5dc
push dword fs:[eax]
mov dword fs:[eax], esp
cmp byte [0x60a358], 0
je 0x53d5b2
push ebx
call sub.kernel32.dll_GetFileAttributesW
cmp eax, 0xffffffff
je 0x53d5aa
test al, 0x10
je 0x53d5ae
xor ebx, ebx
jmp 0x53d5c6
mov bl, 1
jmp 0x53d5c6
lea eax, [ebp - 4]
mov edx, ebx
call fcn.00404e98
mov eax, dword [ebp - 4]
call fcn.0053d564
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x53d5e3
lea eax, [ebp - 4]
call fcn.00404c00
ret
Function at 0x55f760
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0
push 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x55f8e5
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, byte [ebx + 0x2be]
sub al, 2
jb 0x55f8ca
cmp byte [ebx + 0x2b0], 0
je 0x55f8ca
mov eax, dword [ebp - 4]
call fcn.0056b9b0
mov word [ebp - 6], ax
xor eax, eax
push ebp
push 0x55f8c3
push dword fs:[eax]
mov dword fs:[eax], esp
movzx eax, word [ebp - 6]
sub ax, 8
je 0x55f807
dec ax
je 0x55f7dd
sub ax, 0x12
jne 0x55f821
call fcn.00404624
jmp 0x55f8ca
cmp byte [ebx + 0x2b1], 0
je 0x55f8a9
mov eax, ebx
call fcn.0043a1e8
test al, al
je 0x55f8a9
xor edx, edx
mov eax, ebx
call fcn.0043a20c
jmp 0x55f8a9
mov eax, dword [esi]
call fcn.004055dc
mov edx, eax
mov eax, esi
mov ecx, 1
call fcn.004057d0
jmp 0x55f8a9
cmp byte [ebx + 0x2b1], 0
je 0x55f83e
mov eax, ebx
call fcn.0043a1e8
test al, al
jne 0x55f83e
mov dl, 1
mov eax, ebx
call fcn.0043a20c
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
sub eax, dword [edx]
cmp eax, 0x4e2
jb 0x55f856
mov eax, esi
call fcn.004053f0
call sub.kernel32.dll_GetTickCount
mov edx, dword [ebp + 8]
mov dword [edx], eax
push 0
push 1
lea eax, [ebp - 0x10]
movzx edx, word [ebp - 6]
call fcn.0040550c
mov ecx, dword [ebp - 0x10]
mov edx, dword [esi]
lea eax, [ebp - 0xc]
call fcn.00405648
mov ecx, dword [ebp - 0xc]
mov edx, edi
mov eax, ebx
call fcn.0055f574
test al, al
je 0x55f8a9
lea eax, [ebp - 0x14]
movzx edx, word [ebp - 6]
call fcn.0040550c
mov edx, dword [ebp - 0x14]
mov eax, esi
call fcn.004055e8
mov word [ebp - 6], 0
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55f8ca
mov eax, dword [ebp - 4]
movzx edx, word [ebp - 6]
call fcn.0056b9e4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x55f8ec
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405408
ret

Function at 0x5694e8
Capabilities:
Check os version

Disassembly:
add esp, 0xffffff6c
mov dword [esp], 0x94
push esp
call sub.kernel32.dll_GetVersionExA
cmp dword [esp + 4], 6
setae al
add esp, 0x94
ret

Function at 0x56950c
Capabilities:
Log keystrokes
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
mov ebx, edx
mov word [ebp - 2], ax
mov eax, ebx
call fcn.004053f0
push 0
movzx eax, byte [ebp - 2]
push eax
call sub.user32.dll_MapVirtualKeyW
shl eax, 0x10
test eax, eax
je 0x56955a
push 0x200
lea edx, [ebp - 0x202]
push edx
push eax
call sub.user32.dll_GetKeyNameTextW
mov eax, ebx
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004055a0
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x569560
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x50], ecx
mov dword [ebp - 0x54], ecx
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x44], ecx
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x48], ecx
mov ebx, edx
xor edx, edx
push ebp
push 0x5696ac
push dword fs:[edx]
mov dword fs:[edx], esp
push 0x20
lea edx, [ebp - 0x40]
push edx
and eax, 0x1ff
shl eax, 0x10
push eax
call sub.user32.dll_GetKeyNameTextW
mov esi, eax
lea edx, [ebp - 0x40]
mov eax, ebx
mov ecx, esi
call fcn.004054e8
lea eax, [ebp - 0x44]
push eax
lea edx, [ebp - 0x48]
mov eax, dword [ebx]
call fcn.00409d20
mov eax, dword [ebp - 0x48]
mov ecx, esi
dec ecx
mov edx, 2
call fcn.00405784
mov eax, dword [ebp - 0x44]
push eax
lea eax, [ebp - 0x4c]
push eax
mov eax, dword [ebx]
mov ecx, 1
mov edx, 1
call fcn.00405784
mov edx, dword [ebp - 0x4c]
mov eax, ebx
pop ecx
call fcn.00405648
mov edx, dword [ebx]
mov eax, 0x5696c0
call fcn.004058fc
test eax, eax
jle 0x569691
lea eax, [ebp - 0x50]
push eax
mov edx, dword [ebx]
mov eax, 0x5696c0
call fcn.004058fc
mov ecx, eax
mov eax, dword [ebx]
mov edx, 1
call fcn.00405784
push dword [ebp - 0x50]
lea eax, [ebp - 0x58]
push eax
mov edx, dword [ebx]
mov eax, 0x5696c0
call fcn.004058fc
mov edx, eax
inc edx
mov eax, dword [ebx]
mov ecx, 1
call fcn.00405784
mov eax, dword [ebp - 0x58]
lea edx, [ebp - 0x54]
call fcn.00409c88
push dword [ebp - 0x54]
lea eax, [ebp - 0x5c]
push eax
mov edx, dword [ebx]
mov eax, 0x5696c0
call fcn.004058fc
sub esi, eax
dec esi
push esi
mov edx, dword [ebx]
mov eax, 0x5696c0
call fcn.004058fc
mov edx, eax
add edx, 2
mov eax, dword [ebx]
pop ecx
call fcn.00405784
push dword [ebp - 0x5c]
mov eax, ebx
mov edx, 3
call fcn.004056b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5696b3
lea eax, [ebp - 0x5c]
mov edx, 7
call fcn.00405408
ret
Function at 0x5696c4
Capabilities:
Log keystrokes

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5697f4
push dword fs:[eax]
mov dword fs:[eax], esp
mov edi, ebx
and di, 0xff
movzx eax, di
cmp eax, 0x20
jge 0x569705
add eax, 0xfffffff8
sub eax, 2
jb 0x569738
sub eax, 3
je 0x569738
sub eax, 0xe
je 0x569738
jmp 0x56974c
add eax, 0xffffffe0
sub eax, 9
jb 0x56971f
add eax, 0xfffffffc
sub eax, 2
jb 0x56971f
add eax, 0xffffffbf
sub eax, 0x18
jb 0x569738
jmp 0x56974c
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyW
add eax, 0x100
mov edx, esi
call fcn.00569560
jmp 0x569755
push 0
movzx eax, di
push eax
call sub.user32.dll_MapVirtualKeyW
mov edx, esi
call fcn.00569560
jmp 0x569755
mov edx, esi
mov eax, edi
call fcn.0056950c
test bh, 0x20
je 0x569781
push 0
push 0x10
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 4]
call fcn.00569560
push dword [ebp - 4]
push 0x569808
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.004056b8
test bh, 0x80
je 0x5697ad
push 0
push 0x12
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 8]
call fcn.00569560
push dword [ebp - 8]
push 0x569808
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.004056b8
test bh, 0x40
je 0x5697d9
push 0
push 0x11
call sub.user32.dll_MapVirtualKeyW
lea edx, [ebp - 0xc]
call fcn.00569560
push dword [ebp - 0xc]
push 0x569808
push dword [esi]
mov eax, esi
mov edx, 3
call fcn.004056b8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5697fb
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00405408
ret
Function at 0x56a148
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x56a2da
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_GetKeyboardLayout
mov edx, dword [ebp - 8]
mov dword [edx + 0xbc], eax
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x64]
test esi, esi
jne 0x56a189
xor eax, eax
mov dword [ebp - 4], eax
jmp 0x56a1a6
mov edi, dword [esi + 0x6c]
test edi, edi
je 0x56a19c
mov eax, edi
call fcn.0044a73c
mov dword [ebp - 4], eax
jmp 0x56a1a6
mov eax, esi
call fcn.0044a73c
mov dword [ebp - 4], eax
mov eax, dword [0x603fc8]
cmp byte [eax], 0
je 0x56a2bf
mov eax, dword [ebp - 8]
cmp dword [eax + 0x64], 0
je 0x56a2bf
test ebx, ebx
je 0x56a2bf
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x1c]
and ax, word [0x56a2e8]
movzx edx, word [0x56a2ec]
cmp dx, ax
jne 0x56a2bf
mov eax, dword [ebp - 8]
cmp byte [eax + 0x3e], 0
je 0x56a2bf
push ebp
call fcn.00569fe8
pop ecx
test al, al
je 0x56a2bf
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 8]
call fcn.00569dd0
mov eax, dword [ebp - 8]
call fcn.0044d288
test eax, eax
jne 0x56a26d
mov eax, dword [ebp - 8]
cmp word [eax + 0x60], 0
je 0x56a26d
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x64]
test esi, esi
je 0x56a246
cmp dword [esi + 0x64], 0
jne 0x56a246
mov eax, dword [esi + 4]
mov edx, dword [0x44901c]
call fcn.00403e50
test al, al
jne 0x56a26d
push dword [ebp - 0xc]
push 0x56a2f4
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 8]
movzx eax, word [eax + 0x60]
call fcn.005696c4
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004056b8
push ebp
lea eax, [ebp - 0x14]
call fcn.0056a044
pop ecx
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 0xc]
call fcn.00405700
je 0x56a2bf
push ebp
mov eax, dword [ebp - 0xc]
call fcn.0056a0b8
pop ecx
mov eax, dword [ebp - 8]
mov esi, dword [eax + 0x64]
cmp esi, dword [ebx + 0x34]
je 0x56a29f
cmp dword [esi + 0x6c], 0
je 0x56a2bf
mov eax, ebx
mov edx, dword [0x44901c]
call fcn.00403e50
test al, al
je 0x56a2bf
cmp dword [ebx + 0x38], 0
je 0x56a2bf
mov eax, dword [ebx + 0x38]
push eax
call sub.user32.dll_DrawMenuBar
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x56a2e1
lea eax, [ebp - 0x14]
mov edx, 3
call fcn.00405408
ret

Function at 0x578108
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
xor edx, edx
mov dword [ebp - 0xc], edx
xor edx, edx
push ebp
push 0x57816c
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 7]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
lea eax, [ebp - 0xc]
lea edx, [ebp - 7]
mov ecx, 7
call fcn.00404e80
mov eax, dword [ebp - 0xc]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.0040a684
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x578173
lea eax, [ebp - 0xc]
call fcn.00404c00
ret
Function at 0x57eb84
Capabilities:
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov ebx, edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x57ec9b
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, ebx
xor edx, edx
call fcn.00405700
je 0x57ec85
mov eax, ebx
call fcn.00578490
mov eax, ebx
call fcn.004055dc
mov esi, eax
call fcn.00447914
mov edx, dword [eax]
call dword [edx + 0x18]
xor eax, eax
push ebp
push 0x57ec7e
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [esi + 2]
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x57ec66
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov edi, eax
xor eax, eax
push ebp
push 0x57ec5f
push dword fs:[eax]
mov dword fs:[eax], esp
test edi, edi
je 0x57ec48
mov eax, dword [ebp - 4]
movzx eax, byte [eax + 0x335]
mov byte [edi], al
inc edi
lea eax, [ebp - 0xc]
mov edx, ebx
call fcn.00404e98
mov eax, dword [ebp - 0xc]
call fcn.004050a0
lea ecx, [esi + 1]
mov edx, edi
call fcn.0040311c
mov eax, dword [ebp - 8]
push eax
mov eax, dword [0x60a438]
push eax
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57ec66
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57ec85
call fcn.00447914
mov edx, dword [eax]
call dword [edx + 0x14]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x57eca2
lea eax, [ebp - 0xc]
call fcn.00404c00
ret
Function at 0x5950c8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebx
push esi
push edi
mov ebx, eax
push ebp
push ecx
mov esi, dword [ebx + 0x2c]
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x74]
sub edi, dword [ebx + 0x6c]
jmp 0x5950f7
mov eax, dword [ebx + 0x2c]
sub eax, 0x106
add eax, esi
cmp eax, dword [ebx + 0x6c]
ja 0x595172
mov eax, dword [ebx + 0x38]
mov ebp, esi
mov edx, eax
mov ecx, esi
add edx, ebp
call fcn.00478458
sub dword [ebx + 0x70], esi
sub dword [ebx + 0x6c], esi
sub dword [ebx + 0x5c], ebp
mov eax, dword [ebx + 0x4c]
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x44]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x595140
mov cx, word [esp]
sub cx, si
jmp 0x595142
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x595129
mov eax, esi
mov edx, eax
add edx, edx
add edx, dword [ebx + 0x40]
sub edx, 2
movzx ecx, word [edx]
mov dword [esp], ecx
cmp esi, dword [esp]
ja 0x595168
mov cx, word [esp]
sub cx, si
jmp 0x59516a
xor ecx, ecx
mov word [edx], cx
dec eax
jne 0x595151
add edi, esi
mov ebp, dword [ebx]
cmp dword [ebp + 4], 0
je 0x59524f
mov edx, dword [ebx + 0x38]
mov ecx, edi
add edx, dword [ebx + 0x6c]
mov eax, ebp
add edx, dword [ebx + 0x74]
call fcn.00594e44
add dword [ebx + 0x74], eax
cmp dword [ebx + 0x74], 3
jb 0x5951be
mov ecx, dword [ebx + 0x38]
mov eax, dword [ebx + 0x6c]
movzx eax, byte [ecx + eax]
mov dword [ebx + 0x48], eax
mov ecx, dword [ebx + 0x58]
shl eax, cl
mov edx, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x6c]
movzx edx, byte [edx + ecx + 1]
xor eax, edx
and eax, dword [ebx + 0x54]
mov dword [ebx + 0x48], eax
mov eax, dword [ebx + 0x74]
cmp eax, 0x106
jae 0x5951d4
mov edx, dword [ebx]
cmp dword [edx + 4], 0
jne 0x5950d2
mov ecx, dword [ebx + 0x3c]
mov edx, dword [ebx + 0x16c0]
cmp ecx, edx
jbe 0x59524f
mov esi, dword [ebx + 0x6c]
add esi, eax
cmp esi, edx
jbe 0x595213
mov edi, ecx
sub edi, esi
cmp edi, 0x102
jbe 0x5951fb
mov edi, 0x102
mov eax, dword [ebx + 0x38]
add eax, esi
mov ecx, edi
xor edx, edx
call fcn.00478478
add edi, esi
mov dword [ebx + 0x16c0], edi
jmp 0x59524f
lea edx, [esi + 0x102]
mov eax, dword [ebx + 0x16c0]
cmp edx, eax
jbe 0x59524f
mov edi, edx
mov edx, dword [ebx + 0x3c]
sub edx, eax
sub edi, eax
cmp edi, edx
jbe 0x595239
mov edi, dword [ebx + 0x3c]
sub edi, dword [ebx + 0x16c0]
mov edx, dword [ebx + 0x38]
add edx, eax
mov eax, edx
mov ecx, edi
xor edx, edx
call fcn.00478478
add dword [ebx + 0x16c0], edi
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x59c130
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x60a454
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x59c152
shr eax, 1
xor eax, 0xedb88320
jmp 0x59c154
shr eax, 1
dec edx
jne 0x59c140
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x59c139
mov byte [0x60a854], 1
pop esi
pop ebx
ret

Function at 0x59c170
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x60a854], 0
jne 0x59c187
call fcn.0059c130
mov eax, edi
dec eax
test eax, eax
jl 0x59c1af
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x60a454]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x59c191
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x59ea84
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x59eb1e.0
jmp dword [ecx*4 + 0x59eab7]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x59eae9
sub dl, 8
je 0x59eaf8
jmp case.0x59eb1e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x59e730
jmp case.0x59eb1e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x59e788
jmp case.0x59eb1e.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x59eb1e.0
movzx ecx, byte [ecx + 0x59eb25]
jmp dword [ecx*4 + 0x59eb36]
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x59e834
jmp case.0x59eb1e.0
cmp dl, 3
jne 0x59eb63
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x59e888
jmp case.0x59eb1e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x59e844
jmp case.0x59eb1e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x59e8cc
jmp case.0x59eb1e.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x59eb8e
sub dl, 8
je 0x59eb9a
jmp case.0x59eb1e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x59e8f8
jmp case.0x59eb1e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x59e964
jmp case.0x59eb1e.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x59ebb9
sub dl, 8
je 0x59ebc5
jmp case.0x59eb1e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x59ea20
jmp case.0x59eb1e.0
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x18], 0x59ea48
mov edx, dword [eax + 0x468]
mov ecx, dword [ebx + 0x1c]
dec ecx
imul edx, ecx
mov esi, edx
add esi, dword [eax + 0x450]
mov dword [ebp - 0xc], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 8], esi
mov esi, edx
add esi, dword [eax + 0x44c]
mov dword [ebp - 0x10], esi
mov esi, ecx
test esi, esi
jb 0x59ec69
inc esi
mov eax, dword [ebx + 0x20]
inc eax
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [ebp + 8]
push eax
movzx eax, byte [ebx + 0x48]
mov ecx, dword [ebx + eax*4 + 0x40]
mov edx, dword [ebp - 4]
mov eax, ebx
call fcn.0059dc3c
test eax, eax
je 0x59ec69
mov eax, ebx
call fcn.0059ec74
mov eax, dword [ebp - 8]
push eax
mov eax, dword [ebp - 0x10]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
call dword [ebp - 0x18]
movzx eax, byte [ebx + 0x48]
xor al, 1
mov byte [ebx + 0x48], al
mov eax, dword [ebx + 0x14]
mov eax, dword [eax + 0x468]
sub dword [ebp - 0xc], eax
sub dword [ebp - 0x10], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 8], eax
dec esi
jne 0x59ec02
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x59ec74
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x59eca5
dec al
je 0x59ece0
dec al
je 0x59ed25
dec al
je 0x59ed8e
jmp 0x59ee18
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x59ee18
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x59ecb5
jmp 0x59ee18
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x59ee18
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x59ecf0
jmp 0x59ee18
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x59ee18
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x59ed54
xor ebp, ebp
jmp 0x59ed64
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x59ed6d
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x59ed35
jmp 0x59ee18
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x59ee18
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x59ede7
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0059c1b8
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x59eda2
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret