joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e4124
Capabilities:
Hash data with md5

Disassembly:
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
xor edx, edx
mov dword [eax + 0x10], edx
xor edx, edx
mov dword [eax + 0x14], edx
add eax, 0x18
xor ecx, ecx
mov edx, 0x40
call fcn.00404c08
ret

Function at 0x4e502c
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x10], ecx
mov esi, edx
mov ebx, eax
lea eax, [ebp - 0xc]
mov edx, dword [0x40d3a4]
call fcn.004081e0
xor eax, eax
push ebp
push 0x4e5176
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x5a8ba0], 0
jne 0x4e5080
mov ecx, dword [0x5abb8c]
mov dl, 1
mov eax, dword [0x40eab8]
call fcn.0041a67c
call fcn.00405fb0
lea eax, [ebp - 0x24]
xor ecx, ecx
mov edx, 0x10
call fcn.00404c08
mov eax, ebx
call fcn.00407210
mov dword [ebp - 0x20], eax
push esi
mov esi, 0x4e5184
lea edi, [ebp - 0x34]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop esi
lea eax, [ebp - 0x34]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
call fcn.0040a53c
xor eax, eax
mov dword [ebp - 4], eax
mov eax, ebx
test eax, eax
je 0x4e50c7
sub eax, 4
mov eax, dword [eax]
shr eax, 1
test eax, eax
jle 0x4e511c
mov dword [ebp - 0x14], 0x20
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x54]
push eax
call sub.kernel32.dll_GetComputerNameW
test eax, eax
je 0x4e5115
lea eax, [ebp - 0x58]
mov edx, ebx
call fcn.004076c0
mov eax, dword [ebp - 0x58]
push eax
lea eax, [ebp - 0x5c]
lea edx, [ebp - 0x54]
mov ecx, 0x10
call fcn.00407658
mov eax, dword [ebp - 0x5c]
pop edx
call fcn.00413ae0
test eax, eax
jne 0x4e5115
mov ebx, 0x15
jmp 0x4e5121
mov ebx, 0x10
jmp 0x4e5121
mov ebx, 0x15
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 0x24]
push eax
push ebx
push 0
push esi
call dword [0x5a8ba0]
call fcn.004e4e98
mov eax, dword [ebp - 4]
call fcn.004e4e98
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 8]
call fcn.0040a554
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4e517d
lea eax, [ebp - 0x5c]
mov edx, 2
call fcn.00407440
lea eax, [ebp - 0xc]
mov edx, dword [0x40d3a4]
call fcn.004082b8
ret
Function at 0x4e9f90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x4e9fa8
add esp, 0xfffffff0
call fcn.00405a0c
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x4ea0c2
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.0040428c
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x4ea0ac
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.004e4e98
xor eax, eax
push ebp
push 0x4ea099
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.004e4e98
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.004076c0
jmp 0x4ea06a
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.00407d08
mov eax, dword [ebx + 4]
call fcn.004077c8
dec eax
jle 0x4ea07e
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x4ea058
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea0a0
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4ea0c9
lea eax, [ebp - 4]
call fcn.00407044
ret

Function at 0x506ac0
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x5b23bc
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x506ae2
shr eax, 1
xor eax, 0xedb88320
jmp 0x506ae4
shr eax, 1
dec edx
jne 0x506ad0
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x506ac9
mov byte [0x5b27bc], 1
pop esi
pop ebx
ret

Function at 0x506b00
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x5b27bc], 0
jne 0x506b17
call fcn.00506ac0
mov eax, edi
dec eax
test eax, eax
jl 0x506b3f
inc eax
xor edx, edx
movzx ecx, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x5b23bc]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x506b21
mov eax, ebx
pop edi
pop esi
pop ebx
ret
Function at 0x5098e8
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe0
push ebx
push esi
push edi
mov dword [ebp - 8], ecx
mov ebx, eax
xor eax, eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebx + 0x14]
movzx edx, byte [eax + 0x461]
movzx ecx, dl
cmp ecx, 6
ja case.0x509982.0
jmp dword [ecx*4 + 0x50991b]
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x50994d
sub dl, 8
je 0x50995c
jmp case.0x509982.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x509590
jmp case.0x509982.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5095e8
jmp case.0x509982.0
movzx ecx, byte [eax + 0x460]
cmp ecx, 0x10
ja case.0x509982.0
movzx ecx, byte [ecx + 0x509989]
jmp dword [ecx*4 + 0x50999a]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x509694
jmp case.0x509982.0
cmp dl, 3
jne 0x5099c7
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5096ec
jmp case.0x509982.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5096a8
jmp case.0x509982.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x509730
jmp case.0x509982.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x5099f2
sub dl, 8
je 0x5099fe
jmp case.0x509982.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x50975c
jmp case.0x509982.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5097c8
jmp case.0x509982.0
movzx edx, byte [eax + 0x460]
sub dl, 8
je 0x509a1d
sub dl, 8
je 0x509a29
jmp case.0x509982.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x509884
jmp case.0x509982.0
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], 0x5098ac
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 - 0x10], esi
mov esi, dword [eax + 0x454]
mov dword [ebp - 0xc], esi
add edx, dword [eax + 0x44c]
mov dword [ebp - 0x14], edx
mov esi, ecx
test esi, esi
jb 0x509acb
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 - 8]
mov eax, ebx
call fcn.00508a94
test eax, eax
je 0x509acb
mov eax, ebx
call fcn.00509ad4
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 0x14]
push eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
lea edx, [eax + 1]
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x1c]
call dword [ebp - 0x20]
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 - 0x10], eax
sub dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x18]
add dword [ebp - 0xc], eax
dec esi
jne 0x509a64
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x509ad4
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 0x509b05
dec al
je 0x509b40
dec al
je 0x509b85
dec al
je 0x509bee
jmp 0x509c78
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x509c78
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 0x509b15
jmp 0x509c78
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x509c78
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 0x509b50
jmp 0x509c78
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x509c78
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 0x509bb4
xor ebp, ebp
jmp 0x509bc4
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 0x509bcd
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 0x509b95
jmp 0x509c78
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x509c78
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 0x509c47
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.00506b48
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 0x509c02
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x57a21c
Capabilities:
Check for software breakpoints

Disassembly:
push ebx
mov ebx, eax
cmp dword [ebx + 0x14], 0xca
jne 0x57a24a
mov eax, ebx
call fcn.0057acd0
cmp dword [ebx + 0x40], 0
je 0x57a243
mov dword [ebx + 0x14], 0xcf
mov eax, 1
pop ebx
ret
mov dword [ebx + 0x14], 0xcb
cmp dword [ebx + 0x14], 0xcb
jne 0x57a2bb
mov edx, dword [ebx + 0x1b4]
cmp dword [edx + 0x10], 0
je 0x57a2ad
cmp dword [ebx + 8], 0
je 0x57a26c
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 0x57a27e
xor eax, eax
pop ebx
ret
cmp eax, 2
je 0x57a2ad
cmp dword [ebx + 8], 0
je 0x57a25f
cmp eax, 3
je 0x57a291
dec eax
jne 0x57a25f
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 0x57a25f
mov edx, dword [ebx + 0x140]
add dword [eax + 8], edx
jmp 0x57a25f
mov ecx, dword [ebx + 0x90]
mov dword [ebx + 0x98], ecx
jmp 0x57a2d9
cmp dword [ebx + 0x14], 0xcc
je 0x57a2d9
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.0057a2e4
pop ebx
ret

Function at 0x58ad90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdf0
push ebx
xor edx, edx
mov dword [ebp - 0x210], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x58ae24
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x20a]
push eax
push 0
push 0
push 0x801c
push 0
call sub.shell32.dll_SHGetFolderPathW
lea eax, [ebp - 0x210]
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407658
cmp dword [ebp - 0x210], 0
jne 0x58adf9
mov ecx, 0x58ae3c
mov dl, 1
mov eax, dword [0x40eab8]
call fcn.0041a548
mov eax, ebx
lea edx, [ebp - 0x20a]
mov ecx, 0x105
call fcn.00407658
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x58ae2b
lea eax, [ebp - 0x210]
call fcn.00407438
ret
Function at 0x5966dc
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbc0
push ebx
push esi
push edi
xor edx, edx
mov dword [ebp - 4], edx
mov dword [ebp - 8], edx
mov edi, eax
xor eax, eax
push ebp
push 0x596835
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0xc], eax
xor edx, edx
mov eax, 2
call fcn.004e481c
mov esi, eax
cmp esi, 0xffffffff
je 0x59681a
mov dword [ebp - 0x238], 0x22c
lea edx, [ebp - 0x238]
mov eax, esi
call fcn.004e483c
test eax, eax
je 0x5967fd
mov eax, dword [ebp - 0x230]
push eax
push 0
push 0x100411
call sub.kernel32.dll_OpenProcess
mov ebx, eax
test ebx, ebx
je 0x5967e8
lea eax, [ebp - 4]
lea edx, [ebp - 0x214]
mov ecx, 0x104
call fcn.00407658
lea eax, [ebp - 8]
xor edx, edx
call fcn.0040749c
push 0x104
lea ecx, [ebp - 0x440]
xor edx, edx
mov eax, ebx
call fcn.0050e440
test eax, eax
jbe 0x5967a2
lea eax, [ebp - 8]
lea edx, [ebp - 0x440]
mov ecx, 0x104
call fcn.00407658
mov edx, dword [ebp - 4]
mov eax, edi
call fcn.004138d0
test al, al
jne 0x5967be
mov edx, dword [ebp - 8]
mov eax, edi
call fcn.004138d0
test al, al
je 0x5967e2
inc dword [ebp - 0xc]
push 0
push ebx
call sub.kernel32.dll_TerminateProcess
test eax, eax
je 0x5967e8
jmp 0x5967d6
push 0x64
call sub.kernel32.dll_Sleep_2
push 0
push ebx
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x5967cf
push ebx
call sub.kernel32.dll_CloseHandle_1
lea edx, [ebp - 0x238]
mov eax, esi
call fcn.004e485c
test eax, eax
jne 0x59673d
push esi
call sub.kernel32.dll_CloseHandle_1
cmp dword [ebp - 0xc], 0
je 0x596818
mov eax, edi
call fcn.005965a4
test al, al
je 0x596818
xor ebx, ebx
jmp 0x59681a
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59683c
lea eax, [ebp - 8]
mov edx, 2
call fcn.00407440
ret

Function at 0x596f88
Capabilities:
Encrypt data using des

Disassembly:
push ebx
mov ecx, edx
and cl, 0x20
mov ebx, edx
and bl, 0x1e
movzx ebx, bl
shr ebx, 1
or cl, bl
and dl, 1
shl edx, 4
or cl, dl
mov edx, ecx
movzx edx, dl
movzx eax, al
add eax, eax
add eax, eax
add eax, eax
lea eax, [eax*8 + 0x5ab89c]
movzx eax, byte [eax + edx]
and al, 0xf
pop ebx
ret

Function at 0x596fc0
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
mov ebx, edx
test ebx, ebx
js 0x596fd8
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x596fd1
mov eax, esp
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
xor ecx, ecx
mov edx, 7
call fcn.00404c08
xor edx, edx
mov eax, 0x5aba9c
movzx ebx, byte [eax]
mov ecx, ebx
and cl, 7
movzx ecx, cl
push ecx
mov ecx, 7
pop esi
sub ecx, esi
mov esi, 1
shl esi, cl
movzx ecx, bl
shr ecx, 3
mov ebx, dword [ebp - 4]
movzx ecx, byte [ebx + ecx]
and esi, ecx
je 0x59703f
mov ecx, edx
and ecx, 7
push ecx
mov ecx, 7
pop ebx
sub ecx, ebx
mov bl, 1
shl bl, cl
mov ecx, edx
shr ecx, 3
mov esi, dword [ebp - 8]
or byte [esi + ecx], bl
inc edx
inc eax
cmp edx, 0x38
jne 0x596ff6
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0xc]
mov esp, ebp
pop ebp
ret 4
Function at 0x597280
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
mov ebx, dword [ebp + 0x10]
test ebx, ebx
js 0x597299
shr ebx, 2
mov esi, dword [ecx + ebx*4]
dec ebx
push esi
jns 0x597292
mov ecx, esp
mov ebx, edx
test ebx, ebx
js 0x5972ab
shr ebx, 2
mov esi, dword [eax + ebx*4]
dec ebx
push esi
jns 0x5972a4
mov eax, esp
mov dword [ebp - 4], ecx
push 5
lea ecx, [ebp - 0xa]
call fcn.00596e78
mov ebx, 6
mov eax, dword [ebp - 4]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
xor byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x5972c5
movzx eax, byte [ebp - 0xa]
movzx edx, al
shr edx, 2
mov byte [ebp - 0x12], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 9]
movzx ecx, dl
shr ecx, 4
or al, cl
mov byte [ebp - 0x11], al
and dl, 0xf
add edx, edx
add edx, edx
movzx eax, byte [ebp - 8]
movzx ecx, al
shr ecx, 6
or dl, cl
mov byte [ebp - 0x10], dl
and al, 0x3f
mov byte [ebp - 0xf], al
movzx eax, byte [ebp - 7]
movzx edx, al
shr edx, 2
mov byte [ebp - 0xe], dl
and al, 3
shl eax, 4
movzx edx, byte [ebp - 6]
shr edx, 4
or al, dl
mov byte [ebp - 0xd], al
movzx eax, byte [ebp - 6]
and al, 0xf
add eax, eax
add eax, eax
movzx edx, byte [ebp - 5]
shr edx, 6
or al, dl
mov byte [ebp - 0xc], al
movzx eax, byte [ebp - 5]
and al, 0x3f
mov byte [ebp - 0xb], al
xor ebx, ebx
lea esi, [ebp - 0x12]
mov eax, ebx
movzx edx, byte [esi]
call fcn.00596f88
mov byte [esi], al
inc ebx
inc esi
cmp ebx, 8
jne 0x59734d
mov ebx, 4
lea eax, [ebp - 0x12]
lea edx, [ebp - 0xa]
movzx ecx, byte [eax]
shl ecx, 4
or cl, byte [eax + 1]
mov byte [edx], cl
inc edx
add eax, 2
dec ebx
jne 0x59736b
lea eax, [ebp - 0xa]
mov edx, 5
call fcn.00596f08
mov ebx, 4
lea eax, [ebp - 0xa]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [eax]
mov byte [edx], cl
inc edx
inc eax
dec ebx
jne 0x597395
mov esi, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x18]
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5973ac
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov ebx, ecx
test ebx, ebx
js 0x5973c5
shr ebx, 2
mov esi, dword [edx + ebx*4]
dec ebx
push esi
jns 0x5973be
mov edx, esp
mov dword [ebp - 4], edx
mov ebx, eax
mov dword [ebp - 8], 8
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 0xc]
movzx edx, byte [eax]
mov byte [ecx], dl
inc ecx
inc eax
dec dword [ebp - 8]
jne 0x5973d9
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00596d78
test bl, bl
jne 0x5974b3
mov dword [ebp - 8], 0x10
mov dword [ebp - 0x14], 0x5b29ac
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x597411
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x597426
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov eax, dword [ebp - 0x14]
mov ecx, eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00597280
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
movzx ebx, byte [edx]
xor bl, byte [esi]
mov byte [ecx], bl
inc ecx
inc esi
inc edx
dec eax
jne 0x597459
add dword [ebp - 0x14], 6
dec dword [ebp - 8]
jne 0x597406
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ecx, [ebp - 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x59747d
mov eax, 4
mov edx, dword [ebp + 0xc]
movzx ecx, byte [edx]
mov byte [edx + 4], cl
inc edx
dec eax
jne 0x59748f
mov eax, 4
lea edx, [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
movzx ebx, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
dec eax
jne 0x5974a4
jmp 0x597574
cmp bl, 1
jne 0x597574
mov dword [ebp - 8], 0xfffffff0
mov ebx, 0x5b2a06
mov eax, 4
mov edx, dword [ebp + 0xc]
lea esi, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [esi], cl
inc esi
inc edx
dec eax
jne 0x5974d3
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
movzx ecx, byte [edx]
mov byte [edx - 4], cl
inc edx
dec eax
jne 0x5974e8
push 5
lea eax, [ebp - 0x10]
push eax
push 3
mov ecx, ebx
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00597280
mov eax, 4
lea edx, [ebp - 0xc]
lea esi, [ebp - 0x10]
mov ecx, dword [ebp + 0xc]
add ecx, 4
mov dword [ebp - 0x18], ecx
movzx ecx, byte [edx]
xor cl, byte [esi]
mov edi, dword [ebp - 0x18]
mov byte [edi], cl
inc dword [ebp - 0x18]
inc esi
inc edx
dec eax
jne 0x59751b
sub ebx, 6
inc dword [ebp - 8]
jne 0x5974c8
mov eax, 4
mov edx, dword [ebp + 0xc]
add edx, 4
lea ebx, [ebp - 0xc]
movzx ecx, byte [edx]
mov byte [ebx], cl
inc ebx
inc edx
dec eax
jne 0x597543
mov eax, 4
mov ebx, dword [ebp + 0xc]
movzx edx, byte [ebx]
mov byte [ebx + 4], dl
inc ebx
dec eax
jne 0x597555
mov eax, 4
lea ebx, [ebp - 0xc]
mov edx, dword [ebp + 0xc]
movzx ecx, byte [ebx]
mov byte [edx], cl
inc edx
inc ebx
dec eax
jne 0x59756a
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
call fcn.00596df8
mov edi, dword [ebp - 0x24]
mov esi, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret 8
Function at 0x598178
Capabilities:
Create process on windows
Create thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff98
push ebx
xor ebx, ebx
mov dword [ebp - 0xc], ebx
mov ebx, ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00407430
mov eax, dword [ebp - 8]
call fcn.00407430
xor eax, eax
push ebp
push 0x598314
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 0xc]
mov eax, dword [0x5b2d88]
call fcn.00414e4c
lea eax, [ebp - 0x58]
xor ecx, ecx
mov edx, 0x44
call fcn.00404c08
mov dword [ebp - 0x58], 0x44
mov dword [ebp - 0x2c], 1
mov word [ebp - 0x28], bx
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0x58]
push eax
mov eax, dword [ebp - 0xc]
call fcn.004074d4
push eax
push 0
push 0x30
push 0xffffffffffffffff
push 0
push 0
mov eax, dword [ebp - 4]
call fcn.004074d4
push eax
push 0
call sub.kernel32.dll_CreateProcessW
test eax, eax
jne 0x598213
mov dword [ebp - 0x10], 0xffffffff
jmp 0x5982f9
lea eax, [ebp - 0x14]
push eax
push 0
push 0
push 0x598830
push 0
push 0
call sub.kernel32.dll_CreateThread_1
mov eax, dword [0x5b2a0c]
call fcn.004d9020
push 0x80
push 0xffffffffffffffec
mov eax, dword [0x5ac1f0]
mov eax, dword [eax]
mov eax, dword [eax + 0x170]
push eax
call sub.user32.dll_SetWindowLongW
mov ebx, 0x3e9
mov eax, dword [0x5ac1f0]
mov eax, dword [eax]
call fcn.004dd9d8
push 1
call sub.kernel32.dll_Sleep_2
dec ebx
jne 0x598252
mov edx, 0x10
mov eax, dword [ebp - 8]
call fcn.00414a98
mov edx, dword [0x5b2a0c]
mov dword [edx + 0x3b4], eax
push 0xff
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x68]
push eax
push 1
call sub.user32.dll_MsgWaitForMultipleObjects
mov ebx, eax
test ebx, ebx
je 0x5982da
cmp ebx, 0x102
je 0x5982da
mov eax, dword [0x5b2a0c]
cmp byte [eax + 0x3ac], 0
je 0x5982c9
push 0
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_TerminateProcess
push 0xffffffffffffffff
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_WaitForSingleObject
jmp 0x5982da
dec ebx
jl 0x598281
mov eax, dword [0x5ac1f0]
mov eax, dword [eax]
call fcn.004dd9d8
jmp 0x598281
lea eax, [ebp - 0x10]
push eax
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_GetExitCodeProcess
mov eax, dword [ebp - 0x68]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [ebp - 0x64]
push eax
call sub.kernel32.dll_CloseHandle_1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x59831b
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.00407440
ret