joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4efcc8
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, esp
sub esp, 0x1c
push edi
push ebp
mov ebp, eax
push ebx
mov dword [esi - 8], ecx
mov dword [esi - 4], edx
cmp dword [esi - 8], 0
jne 0x4efcf3
mov ecx, 0x172
mov edx, 0x4efeb8
mov eax, 0x4efef4
call fcn.004047a4
mov edx, dword [esi - 8]
mov eax, ebp
call fcn.004f0074
mov dword [esi - 0x10], 0xa
lea ebx, [esi - 0x1c]
mov eax, pe_nt_image_headers32
call fcn.00403288
mov byte [esi - 9], al
mov edi, dword [ebp + 0x10]
and edi, 0xffff
or edi, 2
mov eax, edi
xor eax, 1
imul edi
mov edx, dword [ebp + 8]
shr eax, 8
mov edi, eax
mov al, byte [esi - 9]
call fcn.004ed4c8
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
and eax, 0xff
add dword [ebp + 0xc], eax
imul edx, dword [ebp + 0xc], 0x8088405
inc edx
mov dword [ebp + 0xc], edx
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 0xc]
shr eax, 0x18
call fcn.004ed4c8
mov dword [ebp + 0x10], eax
mov eax, edi
xor al, byte [esi - 9]
mov byte [ebx], al
inc ebx
dec dword [esi - 0x10]
jne 0x4efd07
mov eax, ebp
mov edx, dword [esi - 8]
call fcn.004f0074
lea edi, [esi - 0x1c]
mov dword [esi - 0x10], 0xa
mov ebx, dword [ebp + 0x10]
and ebx, 0xffff
or ebx, 2
mov eax, ebx
xor eax, 1
imul ebx
mov edx, dword [ebp + 8]
shr eax, 8
mov ebx, eax
mov al, byte [edi]
call fcn.004ed4c8
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
and eax, 0xff
add dword [ebp + 0xc], eax
imul eax, dword [ebp + 0xc], 0x8088405
inc eax
mov dword [ebp + 0xc], eax
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
shr eax, 0x18
call fcn.004ed4c8
mov dword [ebp + 0x10], eax
mov edx, ebx
xor byte [edi], dl
inc edi
dec dword [esi - 0x10]
jne 0x4efd82
mov dl, byte [esi + 0xa]
mov byte [esi - 9], dl
mov edi, dword [ebp + 0x10]
and edi, 0xffff
or edi, 2
mov eax, edi
xor eax, 1
imul edi
shr eax, 8
mov edi, eax
mov al, byte [esi - 9]
mov edx, dword [ebp + 8]
call fcn.004ed4c8
mov ebx, eax
mov dword [ebp + 8], ebx
and ebx, 0xff
add dword [ebp + 0xc], ebx
imul edx, dword [ebp + 0xc], 0x8088405
inc edx
mov dword [ebp + 0xc], edx
mov eax, edx
mov edx, dword [ebp + 0x10]
shr eax, 0x18
call fcn.004ed4c8
mov dword [ebp + 0x10], eax
mov ebx, edi
xor bl, byte [esi - 9]
mov byte [esi - 0x12], bl
mov bl, byte [esi + 0xb]
mov byte [esi - 9], bl
mov edi, dword [ebp + 0x10]
and edi, 0xffff
or edi, 2
mov eax, edi
xor eax, 1
imul edi
shr eax, 8
mov edx, dword [ebp + 8]
mov edi, eax
mov al, byte [esi - 9]
call fcn.004ed4c8
mov edx, eax
mov dword [ebp + 8], edx
and edx, 0xff
add dword [ebp + 0xc], edx
imul edx, dword [ebp + 0xc], 0x8088405
inc edx
mov eax, edx
mov dword [ebp + 0xc], edx
shr eax, 0x18
mov edx, dword [ebp + 0x10]
call fcn.004ed4c8
mov dword [ebp + 0x10], eax
mov edx, edi
xor dl, byte [esi - 9]
mov byte [esi - 0x11], dl
mov byte [ebp + 4], 1
mov edi, dword [esi - 0x1c]
mov eax, dword [esi - 4]
mov dword [eax], edi
mov ebx, dword [esi - 0x18]
mov dword [eax + 4], ebx
mov edx, dword [esi - 0x14]
mov dword [eax + 8], edx
pop ebx
pop ebp
pop edi
mov esp, esi
pop esi
ret 4
Function at 0x4eff28
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov ebx, edx
push esi
push edi
push ebp
mov ebp, ecx
add esp, 0xfffffff0
lea esi, [esp + 4]
mov dword [esp], eax
mov eax, dword [esp]
cmp byte [eax + 4], 0
jne 0x4eff57
mov ecx, 0x1dd
mov edx, 0x4efff8
mov eax, 0x4f0034
call fcn.004047a4
dec ebp
or ebp, ebp
mov edi, dword [esp]
mov edi, dword [edi + 8]
mov dword [esi], edi
mov edi, dword [esp]
mov edi, dword [edi + 0xc]
mov dword [esi + 4], edi
mov edi, ebx
mov edx, dword [esp]
mov edx, dword [edx + 0x10]
mov dword [esi + 8], edx
jl 0x4effcb
inc ebp
mov bl, byte [edi]
mov edx, ebx
mov eax, dword [esi + 8]
and eax, 0xffff
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
shr ecx, 8
mov eax, ebx
xor dl, cl
mov byte [edi], dl
mov edx, dword [esi]
call fcn.004ed4c8
mov dword [esi], eax
mov eax, dword [esi]
and eax, 0xff
add dword [esi + 4], eax
imul ebx, dword [esi + 4], 0x8088405
inc ebx
mov dword [esi + 4], ebx
mov edx, dword [esi + 8]
mov eax, ebx
shr eax, 0x18
call fcn.004ed4c8
inc edi
mov dword [esi + 8], eax
dec ebp
jne 0x4eff79
mov eax, dword [esi]
mov edi, dword [esp]
mov dword [edi + 8], eax
mov eax, dword [esi + 4]
mov ebx, dword [esp]
mov dword [ebx + 0xc], eax
mov edx, dword [esi + 8]
mov eax, dword [esp]
sub esp, 0xfffffff0
mov dword [eax + 0x10], edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4f0074
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
push ebp
push ebx
push ecx
mov esi, eax
push edi
mov dword [esp], edx
mov dword [esi + 8], 0x12345678
mov dword [esi + 0xc], 0x23456789
mov dword [esi + 0x10], 0x34567890
mov eax, dword [esp]
call fcn.00404b00
mov ecx, eax
or ecx, ecx
jle 0x4f00e2
mov ebx, 1
mov eax, dword [esp]
mov edx, dword [esi + 8]
mov al, byte [eax + ebx - 1]
call fcn.004ed4c8
mov ebp, eax
mov dword [esi + 8], ebp
and ebp, 0xff
add dword [esi + 0xc], ebp
imul edi, dword [esi + 0xc], 0x8088405
inc edi
mov dword [esi + 0xc], edi
mov eax, edi
shr eax, 0x18
mov edx, dword [esi + 0x10]
call fcn.004ed4c8
inc ebx
dec ecx
mov dword [esi + 0x10], eax
jne 0x4f00a6
pop edi
pop ecx
pop ebx
pop ebp
pop esi
ret
Function at 0x4f6098
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
test dl, dl
je 0x4f60b4
add esp, 0xfffffff0
call fcn.00403d5c
mov dword [ebp - 8], ecx
mov ebx, eax
mov byte [ebp - 1], dl
mov esi, dword [ebp + 8]
mov eax, dword [ebp - 8]
call fcn.00404ce8
push ebp
xor edx, edx
push 0x4f61a9
push dword fs:[edx]
mov dword fs:[edx], esp
xor edx, edx
mov eax, ebx
call fcn.004039c8
mov byte [ebx + 8], 0
mov eax, dword [ebp - 8]
call fcn.004ec0bc
test al, al
je 0x4f6109
push esi
push 0
mov eax, dword [ebx + 0x28]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4f4788]
call fcn.004f4d44
mov dword [ebx + 4], eax
jmp 0x4f6122
push esi
push 1
mov eax, dword [ebx + 0x28]
push eax
mov ecx, dword [ebp - 8]
mov dl, 1
mov eax, dword [0x4f4788]
call fcn.004f4d44
mov dword [ebx + 4], eax
mov edx, dword [ebx + 4]
mov dword [edx + 0x34], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x64]
mov dword [edx + 0x30], eax
mov dword [edx + 0x3c], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0x1c]
mov dword [edx + 0x38], eax
xor edx, edx
mov dword [ebx + 0x38], edx
lea eax, [ebx + 0xc]
mov byte [ebx + 0x3e], 1
mov edx, dword [ebp - 8]
call fcn.0040489c
xor eax, eax
mov dword [ebx + 0x94], ebx
mov edx, dword [ebx]
mov edx, dword [edx + 0x34]
mov dword [ebx + 0x90], edx
lea edx, [ebp - 0x10]
mov byte [ebx + 0x44], 0
mov word [ebx + 0x3c], si
call fcn.00402bdc
lea edx, [ebp - 0xc]
mov eax, dword [ebp - 0x10]
call fcn.00409dbc
mov edx, dword [ebp - 0xc]
mov eax, ebx
call fcn.004f76a0
mov eax, ebx
call fcn.004f6f18
xor eax, eax
pop edi
pop edx
pop ecx
mov dword fs:[eax], edi
push 0x4f61b0
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.0040486c
ret

Function at 0x4f77b4
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
mov ebx, eax
xor eax, eax
push edi
push ebp
push 0x4f7868
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 0x34], dl
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x4f77e0
call fcn.004039f8
xor ecx, ecx
mov dword [ebx + 0x38], ecx
cmp byte [ebx + 0x34], 0
je 0x4f7852
cmp dword [ebx + 0x30], 0
je 0x4f7852
xor ecx, ecx
push ebp
push 0x4f7827
push dword fs:[ecx]
mov dword fs:[ecx], esp
push 0xffff
mov ecx, dword [ebx + 0x30]
mov dl, 1
mov eax, dword [0x419c20]
call fcn.0041ee78
mov dword [ebx + 0x38], eax
mov edx, dword [ebx + 0xc]
mov cl, 6
mov eax, ebx
call fcn.004f6fc4
xor eax, eax
pop ecx
pop edx
pop edx
mov dword fs:[eax], ecx
jmp 0x4f7852
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4f786f
lea eax, [ebp - 4]
call fcn.00404848
ret
Function at 0x500fe4
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push edi
push ebx
mov edi, eax
push esi
push ebp
mov ebp, ecx
dec ebp
test ebp, ebp
jl 0x50105a
mov esi, edx
inc ebp
mov ax, word [edi + 0xc]
or ax, 2
movzx edx, ax
xor ax, 1
movzx eax, ax
imul edx, eax
shr edx, 8
xor byte [esi], dl
mov edx, dword [edi + 4]
mov al, byte [esi]
call fcn.004ed4c8
mov edx, eax
mov dword [edi + 4], edx
and edx, 0xff
add dword [edi + 8], edx
imul eax, dword [edi + 8], 0x8088405
inc eax
mov dword [edi + 8], eax
shr eax, 0x18
xor al, byte [edi + 0xc]
and eax, 0xff
mov edx, dword [0x542014]
mov eax, dword [edx + eax*4]
mov edx, dword [edi + 0xc]
shr edx, 8
and edx, 0xffffff
xor eax, edx
mov dword [edi + 0xc], eax
inc esi
dec ebp
jne 0x500ff4
pop ebp
pop esi
pop ebx
pop edi
ret

Function at 0x5010ec
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov edi, eax
mov eax, dword [edi + 0x38]
call fcn.0041e95c
xor ebx, ebx
mov dword [esp + 4], eax
mov byte [esp], 0
jmp 0x501183
mov eax, edi
call fcn.005010a8
mov eax, dword [edi + 0x38]
xor ecx, ecx
mov edx, dword [esp + 4]
mov esi, dword [eax]
call dword [esi + 0x10]
lea edx, [edi + 0x10]
mov ecx, 0xc
mov eax, dword [edi + 0x38]
mov ebx, dword [eax]
call dword [ebx + 8]
xor esi, esi
mov eax, edi
call fcn.00501060
lea edx, [edi + 4]
xor byte [edi + esi + 0x10], al
mov al, byte [edi + esi + 0x10]
call fcn.005011b0
inc esi
cmp esi, 0xc
jne 0x50112f
cmp byte [edi + 0x20], 0
je 0x50115d
mov al, byte [edi + 0x1b]
cmp al, byte [edi + 0x1f]
sete bl
jmp 0x501173
mov al, byte [edi + 0x1b]
cmp al, byte [edi + 0x1f]
jne 0x50116d
mov al, byte [edi + 0x1a]
cmp al, byte [edi + 0x1e]
je 0x501171
xor ebx, ebx
jmp 0x501173
mov bl, 1
or bl, bl
jne 0x501180
lea edx, [edi + 0x30]
mov eax, edi
mov ecx, dword [eax]
call dword [ecx]
inc byte [esp]
or bl, bl
jne 0x501193
mov al, byte [esp]
cmp al, byte [edi + 0x34]
jb 0x501108
or bl, bl
jne 0x5011a8
mov dl, 1
mov eax, dword [0x4e99fc]
call fcn.004eab34
call fcn.004041c4
mov eax, ebx
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x5011b0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push ebx
mov ebx, eax
push esi
mov eax, ebx
mov ebx, edx
push edi
mov edx, dword [ebx]
call fcn.004ed4c8
mov esi, eax
mov dword [ebx], esi
and esi, 0xff
add dword [ebx + 4], esi
imul esi, dword [ebx + 4], 0x8088405
inc esi
mov eax, esi
mov dword [ebx + 4], esi
shr eax, 0x18
mov edx, dword [ebx + 8]
call fcn.004ed4c8
mov dword [ebx + 8], eax
pop edi
pop esi
pop ebx
ret
Function at 0x502f6c
Capabilities:
Access peb ldr_data

Disassembly:
push edi
mov edi, esp
add esp, 0xfffffff4
push ebx
push esi
mov ebx, eax
mov esi, edx
push ebp
xor ebp, ebp
mov dword [edi - 4], ecx
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x10]
test al, al
je 0x502fa7
lea ecx, [ebx + 4]
mov dl, 1
push ecx
mov eax, dword [edi + 8]
push eax
push 1
mov ecx, dword [ebx + 0xb8]
mov eax, dword [0x500eb4]
call fcn.00500f24
mov ebp, eax
or ebp, ebp
je 0x502fd4
mov edx, dword [ebx + 0xf0]
mov dword [ebp + 0x28], edx
mov eax, dword [ebx + 0xf4]
mov dword [ebp + 0x2c], eax
lea eax, [ebp + 0x30]
mov edx, dword [ebx + 0xb8]
call fcn.0040489c
mov al, byte [ebx + 0xbc]
mov byte [ebp + 0x34], al
mov eax, dword [edi - 4]
mov dl, 1
lea ecx, [ebx + 4]
push eax
push ebp
mov eax, dword [0x5017c8]
call fcn.0050185c
mov dword [edi - 0xc], eax
push edi
xor eax, eax
push 0x5030be
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, esi
call fcn.004fa7c0
mov edx, dword [edi - 0xc]
mov byte [edx + 0x20], al
mov eax, esi
mov edx, dword [eax]
call dword [edx]
mov edx, dword [edi - 0xc]
mov dword [edx + 0x14], eax
mov eax, esi
mov edx, dword [eax]
call dword [edx + 0x1c]
mov edx, dword [edi - 0xc]
mov dword [edx + 0xc], eax
mov eax, esi
call fcn.004fa7ac
mov edx, dword [edi - 0xc]
mov byte [edx + 0x18], al
mov eax, esi
call fcn.004fa884
mov edx, dword [edi - 0xc]
mov byte [edx + 0x21], al
mov edx, dword [edi - 0xc]
mov eax, dword [ebx + 0x90]
mov dword [edx + 0x28], eax
mov eax, dword [ebx + 0x94]
mov dword [edx + 0x2c], eax
mov edx, dword [ebx + 0x100]
mov eax, dword [edi - 0xc]
mov dword [eax + 0x30], edx
mov edx, dword [ebx + 0x104]
mov dword [eax + 0x34], edx
mov eax, dword [edi - 0xc]
mov dword [eax + 0x40], ebx
cmp byte [ebx + 0x44], 0
je 0x50309d
mov edx, dword [ebx + 0xc]
mov eax, dword [edi - 0xc]
sub eax, 0xffffffc4
call fcn.0040489c
mov edx, dword [edi - 0xc]
mov ax, word [ebx + 0xaa]
mov word [edx + 0x44], ax
mov eax, dword [edi - 0xc]
mov byte [eax + 0x39], 1
mov ax, word [ebx + 0x3c]
mov edx, dword [edi - 0xc]
mov word [edx + 0x46], ax
mov eax, dword [edi - 0xc]
call fcn.00501934
mov dword [edi - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5030c5
mov eax, dword [edi - 0xc]
call fcn.004039f8
ret
Function at 0x508e54
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, esp
add esp, 0xffffffa8
push ebp
mov ebp, eax
xor eax, eax
push ebx
push edi
push esi
push 0x508f25
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [esi - 4], 0x103
lea eax, [esi - 0x48]
push eax
call sub.kernel32.dll_GetStartupInfoA_1
lea eax, [esi - 0x58]
push eax
lea eax, [esi - 0x48]
push eax
push 0
push 0
push 0x20
mov eax, dword [0x542658]
cmp byte [eax], 1
cmc
sbb eax, eax
push eax
push 0
push 0
mov eax, ebp
call fcn.00404cf8
push eax
push 0
call sub.kernel32.dll_CreateProcessA
or eax, eax
je 0x508f1b
mov dword [esi - 4], 0x103
push esi
xor eax, eax
push 0x508f14
push dword fs:[eax]
mov dword fs:[eax], esp
jmp 0x508ed8
push 0x3e8
call sub.kernel32.dll_Sleep_1
cmp byte [0x541444], 0
jne 0x508ee7
push 0xa
mov eax, dword [esi - 0x58]
push eax
call sub.kernel32.dll_WaitForSingleObject
test eax, eax
jne 0x508ec5
lea eax, [esi - 4]
push eax
mov eax, dword [esi - 0x58]
push eax
call sub.kernel32.dll_GetExitCodeProcess
pop edx
pop ecx
xor eax, eax
pop ecx
mov dword fs:[eax], edx
push 0x508f1b
mov eax, dword [esi - 0x54]
push eax
call sub.kernel32.dll_CloseHandle_1
mov eax, dword [esi - 0x58]
push eax
call sub.kernel32.dll_CloseHandle_1
ret
pop edx
xor ebx, ebx
pop eax
pop ecx
mov dword fs:[ebx], edx
jmp 0x508f3b
pop edi
pop ebx
pop ebp
mov esp, esi
mov eax, dword [esi - 4]
pop esi
ret
Function at 0x509b40
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebx
push edi
push esi
push ebp
add esp, 0xffffffa4
mov dword [esp + 4], ecx
mov dword [esp], edx
mov ecx, 0x30
mov edi, 0x5415a8
mov edx, dword [esp]
lea esi, [esp + 0xc]
xor ebx, ebx
mov bl, byte [edi]
mov bl, byte [eax + ebx - 1]
xor bl, byte [edx]
mov byte [esi], bl
inc esi
inc edx
inc edi
dec ecx
jne 0x509b5f
mov edi, 1
mov esi, 0x5416b0
mov ebp, edi
dec ebp
mov ebx, ebp
add ebx, ebx
shl ebp, 2
lea ebx, [ebx + ebx*2]
xor edx, edx
mov dl, byte [esp + ebx + 0xc]
mov ecx, edx
add ecx, ecx
movzx eax, byte [esp + ebx + 0xe]
xor edx, edx
mov dl, byte [esp + ebx + 0x11]
add ecx, edx
xor edx, edx
mov dl, byte [esp + ebx + 0xd]
shl edx, 3
shl eax, 2
add edx, eax
movzx eax, byte [esp + ebx + 0xf]
add eax, eax
add edx, eax
movzx ebx, byte [esp + ebx + 0x10]
add edx, ebx
mov dword [esp + 8], edx
mov eax, 1
mov edx, eax
dec edx
je 0x509bd9
dec edx
je 0x509bfd
dec edx
je 0x509c21
dec edx
je 0x509c44
jmp 0x509c5d
mov edx, dword [esp + 8]
mov ebx, ecx
add ebx, ebx
lea ebx, [esi + ebx*8]
mov bl, byte [ebx + edx - 0x40]
and bl, 8
lea edx, [eax + ebp]
and ebx, 0xff
shr ebx, 3
mov byte [esp + edx + 0x3b], bl
jmp 0x509c5d
mov edx, ecx
add edx, edx
mov ebx, dword [esp + 8]
lea edx, [esi + edx*8]
mov dl, byte [edx + ebx - 0x40]
lea ebx, [eax + ebp]
and dl, 4
and edx, 0xff
shr edx, 2
mov byte [esp + ebx + 0x3b], dl
jmp 0x509c5d
mov ebx, dword [esp + 8]
mov edx, ecx
add edx, edx
lea edx, [esi + edx*8]
mov dl, byte [edx + ebx - 0x40]
lea ebx, [eax + ebp]
and dl, 2
and edx, 0xff
shr edx, 1
mov byte [esp + ebx + 0x3b], dl
jmp 0x509c5d
mov ebx, ecx
mov edx, dword [esp + 8]
add ebx, ebx
lea ebx, [esi + ebx*8]
mov bl, byte [ebx + edx - 0x40]
and bl, 1
lea edx, [eax + ebp]
mov byte [esp + edx + 0x3b], bl
inc eax
cmp eax, 5
jne 0x509bc6
inc edi
add esi, 0x40
cmp edi, 9
jne 0x509b7b
mov ecx, 0x20
mov eax, 0x5415d8
mov edx, dword [esp + 4]
xor ebx, ebx
mov bl, byte [eax]
mov bl, byte [esp + ebx + 0x3b]
mov byte [edx], bl
inc edx
inc eax
dec ecx
jne 0x509c82
add esp, 0x5c
pop ebp
pop esi
pop edi
pop ebx
ret

Function at 0x509cbc
Capabilities:
Encrypt data using des

Disassembly:
push ebx
push edi
mov edi, eax
xor eax, eax
push esi
mov al, dl
push ecx
mov dword [esp], ecx
mov bl, byte [eax + 0x54165f]
or bl, bl
jbe 0x509ced
lea eax, [edi + 0x3e0]
call fcn.00509c9c
lea eax, [edi + 0x3fc]
call fcn.00509c9c
dec bl
jne 0x509cd3
mov cl, 0x30
mov esi, 0x541630
mov eax, dword [esp]
mov dl, byte [esi]
cmp dl, 0x1c
ja 0x509d0f
and edx, 0xff
mov dl, byte [edi + edx + 0x3df]
mov byte [eax], dl
jmp 0x509d1e
and edx, 0xff
mov dl, byte [edi + edx + 0x3df]
mov byte [eax], dl
inc eax
inc esi
dec cl
jne 0x509cf7
pop esi
pop esi
pop edi
pop ebx
ret
Function at 0x509d2c
Capabilities:
Encode data using xor
Encrypt data using des
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffbdc
push ebx
push esi
mov bl, 1
push edi
mov edi, eax
mov dword [ebp - 8], ecx
mov dword [ebp - 4], edx
lea esi, [ebp - 0x421]
mov eax, edi
mov edx, ebx
call fcn.00509ad4
inc ebx
mov byte [esi], al
inc esi
cmp bl, 0x41
jne 0x509d48
mov bl, 0x1c
mov edi, 0x5415f8
lea esi, [ebp - 0x41]
mov eax, dword [ebp - 8]
mov dl, byte [edi]
call fcn.00509ad4
mov byte [esi], al
mov eax, dword [ebp - 8]
mov dl, byte [edi + 0x1c]
call fcn.00509ad4
mov byte [esi + 0x1c], al
inc esi
inc edi
dec bl
jne 0x509d64
lea esi, [ebp - 0x3a1]
mov bl, 1
mov ecx, esi
lea eax, [ebp - 0x421]
mov edx, ebx
call fcn.00509cbc
inc ebx
sub esi, 0xffffffd0
cmp bl, 0x11
jne 0x509d8c
mov bl, 1
mov edx, 0x541528
lea esi, [ebp - 0xa1]
cmp bl, 0x20
ja 0x509dc5
xor eax, eax
mov al, byte [edx]
mov al, byte [ebp + eax - 0x422]
mov byte [esi], al
jmp 0x509dd2
xor eax, eax
mov al, byte [edx]
mov al, byte [ebp + eax - 0x422]
mov byte [esi], al
inc ebx
inc esi
inc edx
cmp bl, 0x41
jne 0x509db1
lea edi, [ebp - 0x3a1]
mov byte [ebp - 9], 1
cmp byte [ebp + 8], 0
je 0x509dfc
mov edx, edi
lea eax, [ebp - 0x81]
lea ecx, [ebp - 0x61]
call fcn.00509b40
jmp 0x509e24
mov eax, 0x11
xor edx, edx
lea ecx, [ebp - 0x61]
mov dl, byte [ebp - 9]
sub eax, edx
mov esi, eax
add esi, esi
lea eax, [ebp - 0x81]
lea esi, [esi + esi*2]
lea edx, [ebp + esi*8 - 0x3d1]
call fcn.00509b40
mov bl, 0x20
lea eax, [ebp - 0xa1]
mov dl, byte [eax]
xor byte [eax + 0x40], dl
inc eax
dec bl
jne 0x509e2c
lea esi, [ebp - 0x81]
push edi
mov ecx, 8
lea edi, [ebp - 0xa1]
rep movsd dword es:[edi], dword [esi]
lea edi, [ebp - 0x81]
lea esi, [ebp - 0x61]
pop eax
push eax
mov ecx, 8
rep movsd dword es:[edi], dword [esi]
pop edi
inc byte [ebp - 9]
add edi, 0x30
cmp byte [ebp - 9], 0x11
jne 0x509de4
mov bl, 0x40
mov esi, 0x541568
lea edi, [ebp - 0x3e1]
mov dl, byte [esi]
cmp dl, 0x20
ja 0x509e92
and edx, 0xff
mov dl, byte [ebp + edx - 0x82]
mov byte [edi], dl
jmp 0x509ea1
and edx, 0xff
mov dl, byte [ebp + edx - 0xc2]
mov byte [edi], dl
inc edi
inc esi
dec bl
jne 0x509e7a
lea esi, [ebp - 0x3e1]
mov bl, 1
mov eax, dword [ebp - 4]
mov cl, byte [esi]
mov edx, ebx
call fcn.00509afc
inc ebx
inc esi
cmp bl, 0x41
jne 0x509eaf
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x50acf4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, eax
push ebp
push esi
mov esi, 8
push edi
sub esp, 0xc
mov dword [esp], edx
mov dl, byte [ebx]
mov edi, ecx
mov byte [esp + 4], dl
shl edx, 7
mov al, byte [ebx + 1]
and dl, 0xff
xor ecx, ecx
mov cl, al
shr ecx, 1
or dl, cl
mov byte [esp + 5], dl
mov dl, byte [ebx + 2]
shl eax, 6
and al, 0xff
xor ecx, ecx
mov cl, dl
shr ecx, 2
or al, cl
shl edx, 5
mov byte [esp + 6], al
mov al, byte [ebx + 3]
and dl, 0xff
xor ecx, ecx
mov cl, al
shr ecx, 3
or dl, cl
shl eax, 4
mov byte [esp + 7], dl
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 4]
shr edx, 4
or al, dl
mov byte [esp + 8], al
mov al, byte [ebx + 4]
shl eax, 3
and al, 0xff
xor ecx, ecx
mov cl, byte [ebx + 5]
shr ecx, 5
or al, cl
mov byte [esp + 9], al
mov al, byte [ebx + 5]
shl eax, 2
and al, 0xff
xor edx, edx
mov dl, byte [ebx + 6]
shr edx, 6
or al, dl
mov byte [esp + 0xa], al
mov al, byte [ebx + 6]
add eax, eax
and al, 0xff
mov byte [esp + 0xb], al
lea eax, [esp + 4]
mov ebx, 1
mov ecx, ebx
xor ebp, ebp
xor edx, edx
mov dl, byte [eax]
shl edx, cl
mov ecx, edx
xor ecx, ebp
and ecx, 1
inc ebx
cmp ebx, 8
mov edx, ecx
jne 0x50ada0
mov ecx, edx
mov bl, byte [eax]
and bl, 0xfe
or bl, cl
mov byte [eax], bl
inc eax
dec esi
jne 0x50ad9b
mov edx, 8
mov eax, edi
call fcn.00404e84
push 1
mov eax, edi
call fcn.00404d50
lea ecx, [esp + 8]
mov edx, eax
mov eax, dword [esp + 4]
call fcn.00509d2c
sub esp, 0xfffffff4
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x529cc0
Capabilities:
Capture screenshot

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffeec
push ebx
push edi
push esi
xor edx, edx
mov dword [ebp - 0x114], edx
mov dword [ebp - 0x110], edx
mov ebx, eax
xor edi, edi
push ebp
push 0x529e2d
push dword fs:[edi]
mov dword fs:[edi], esp
mov byte [ebx + 0x214], 1
push 0xff
lea eax, [ebp - 0x10c]
push eax
mov eax, dword [ebx + 0x210]
call fcn.00447ed4
push eax
call sub.user32.dll_GetClassNameA
lea ecx, [ebp - 0x110]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00404ab0
mov eax, dword [ebp - 0x110]
mov edx, 0x529e48
call fcn.00404c44
je 0x529d78
lea ecx, [ebp - 0x114]
lea edx, [ebp - 0x10c]
mov ecx, pe_nt_image_headers32
call fcn.00404ab0
mov eax, dword [ebp - 0x114]
mov edx, 0x529e60
call fcn.00404c44
je 0x529d78
push 0x541
push 0
push 0
mov eax, dword [ebx + 0x210]
call fcn.00447ed4
push eax
call sub.user32.dll_RedrawWindow
mov byte [ebx + 0x214], 0
mov eax, dword [ebx + 0x210]
call fcn.00447ed4
push eax
call sub.user32.dll_GetDC
push 0
mov esi, eax
call sub.gdi32.dll_CreateCompatibleDC
mov edi, eax
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x48]
push eax
push esi
call sub.gdi32.dll_CreateCompatibleBitmap
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
push edi
call sub.gdi32.dll_SelectObject
mov dword [ebp - 4], eax
push 0xcc0020
mov eax, dword [ebx + 0x178]
push eax
mov eax, dword [ebx + 0x174]
push eax
push esi
mov eax, dword [ebx + 0x4c]
push eax
mov eax, dword [ebx + 0x48]
push eax
push 0
push 0
push edi
call sub.gdi32.dll_BitBlt
mov eax, dword [ebp - 8]
lea edx, [ebp - 0xc]
xor ecx, ecx
call fcn.00528378
mov ebx, eax
mov eax, dword [ebp - 4]
push eax
push edi
call sub.gdi32.dll_SelectObject
mov eax, dword [ebp - 8]
push eax
call sub.gdi32.dll_DeleteObject
push edi
call sub.gdi32.dll_DeleteDC
push esi
push 0
call sub.user32.dll_ReleaseDC
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x529e34
mov edx, 2
lea eax, [ebp - 0x114]
call fcn.0040486c
ret
Function at 0x534aec
Capabilities:
Get geographical location
Identify system language via api

Disassembly:
push esi
mov esi, esp
sub esp, 0x6c
push ebx
push ebp
push edi
mov dword [esi - 4], eax
cmp dword [0x541fe8], 0
je 0x534b11
mov eax, dword [esi - 4]
mov edx, dword [0x541fe8]
call fcn.0040489c
jmp 0x534b8b
xor ecx, ecx
push esi
push 0x534b5d
push dword fs:[ecx]
mov dword fs:[ecx], esp
lea eax, [esi - 0x69]
xor ecx, ecx
mov edx, 0x65
call fcn.00403268
push 0x64
lea eax, [esi - 0x69]
push eax
push 0x59
call sub.kernel32.dll_GetUserDefaultUILanguage
push eax
call sub.kernel32.dll_GetLocaleInfoA_1
mov ebx, 0x541fe8
lea edx, [esi - 0x69]
mov ecx, 0x65
call fcn.00404ab0
xor eax, eax
pop edi
pop edx
pop ecx
mov dword fs:[eax], edi
jmp 0x534b7d
mov eax, dword [esi - 4]
mov edx, dword [0x541fe8]
call fcn.0040489c
pop edi
pop ebp
pop ebx
mov esp, esi
pop esi
ret