joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f1f92
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0x10
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [esi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x4f20fb
mov eax, ecx
xor ebx, ebx
mov dword [ebp - 8], eax
inc ebx
mov edx, dword [ebp + 0x1c]
mov ecx, eax
cmp dword [esi], edx
je 0x4f20fb
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edi, word [edx]
cmp bx, di
jae 0x4f2011
lea eax, [ecx + 0x2400]
mov edx, 0x3ff
cmp ax, dx
ja 0x4f210a
mov eax, edi
lea edx, [ecx - 0xdc00]
shl eax, 0xa
or edx, eax
mov cl, byte [ebp - 1]
cmp edx, 0x80
jae 0x4f2033
mov bl, dl
xor edi, edi
jmp 0x4f2063
mov edx, eax
lea eax, [ecx + 0x2800]
mov ecx, 0x3ff
cmp ax, cx
ja 0x4f2000
add edx, 0xffff2840
mov cl, bl
shl edx, 0xa
mov byte [ebp - 1], cl
jmp 0x4f2003
mov ebx, edx
cmp edx, 0x800
jae 0x4f2048
shr ebx, 6
xor edi, edi
or bl, 0xc0
inc edi
jmp 0x4f2063
cmp edx, 0x10000
jae 0x4f205a
shr ebx, 0xc
or bl, 0xe0
push 2
jmp 0x4f2062
shr ebx, 0x12
or bl, 0xf0
push 3
pop edi
movzx eax, cl
mov ecx, dword [ebp - 8]
xor eax, 1
add eax, eax
cmp edi, 3
cmovb eax, edi
mov dword [ebp - 0x10], eax
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [esi]
cmp eax, dword [ebp - 0xc]
jl 0x4f20fb
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
jne 0x4f209f
cmp edi, 3
jb 0x4f209f
mov ebx, dword [ebp - 0xc]
jmp 0x4f20a8
mov eax, dword [esi]
mov byte [eax], bl
inc dword [esi]
mov ebx, dword [ebp - 0x10]
mov eax, dword [esi]
mov dword [ebp - 8], eax
test ebx, ebx
je 0x4f20d0
imul ecx, edi, 6
mov edi, dword [ebp - 8]
sub ecx, 6
mov eax, edx
dec ebx
shr eax, cl
and al, 0x3f
or al, 0x80
mov byte [edi], al
inc dword [esi]
mov eax, dword [esi]
mov dword [ebp - 8], eax
test ebx, ebx
jg 0x4f20b4
xor ebx, ebx
shr edx, 0xa
inc ebx
movzx eax, dx
cmp byte [ebp - 1], 0
mov ecx, ebx
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 8], eax
cmp ecx, dword [ebp + 0x10]
jne 0x4f1fbe
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x4f2103

Function at 0x4f7889
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 2
lea eax, [ebp - 4]
push eax
push 0x20000001
push str._x_sys_default_locale
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoEx]
mov esi, dword [ebp + 0xc]
neg eax
sbb eax, eax
xor ecx, ecx
and eax, dword [ebp - 4]
push ecx
push ecx
push esi
push eax
push dword [ebp + 8]
mov dword [ebp - 4], eax
push ecx
push 0x1300
call dword [sym.imp.KERNEL32.dll_FormatMessageA]
push eax
push dword [esi]
call fcn.004f7865
pop esi
leave
ret 8
Function at 0x506100
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x50612d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x50612d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x50fc6e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6e8eb0], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x50fd6f
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0042af50
add esp, 0xc
lea eax, [ebp - 0x814]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
movsx eax, byte [esi + str._EWID]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
push eax
movzx eax, word [ebp - 0x806]
push eax
movzx eax, word [ebp - 0x808]
push eax
movzx eax, word [ebp - 0x80a]
push eax
movzx eax, word [ebp - 0x80c]
push eax
movzx eax, word [ebp - 0x80e]
push eax
movzx eax, word [ebp - 0x812]
push eax
movzx eax, word [ebp - 0x814]
push eax
lea eax, [ebp - 0x804]
push str._04u__02u__02u__02u:_02u:_02u._03u_T_u___c____s_
push eax
call fcn.0050f5bb
mov esi, eax
mov edi, 0x800
lea eax, [ebp + 0x14]
mov ecx, edi
push eax
push 0
push dword [ebp + 0x10]
sub ecx, esi
push ecx
lea ecx, [ebp - 0x804]
add ecx, esi
push ecx
call fcn.004221e0
add esi, eax
lea ecx, [edi - 2]
add esp, 0x44
mov eax, esi
cmp esi, ecx
cmova eax, ecx
inc esi
mov byte [ebp + eax - 0x804], 0xa
lea eax, [edi - 1]
cmp esi, eax
ja 0x50fd5a
mov eax, esi
cmp esi, edi
jae 0x50fd7d
mov byte [ebp + eax - 0x804], 0
lea eax, [ebp - 0x804]
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.00429dd5
leave
ret
call fcn.0042a6e2
int3

Function at 0x512478
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x630510
call fcn.00429e48
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x254], esi
mov ecx, esi
push 0x68d398
mov dword [ebp - 4], edi
mov dword [ebp - 0x250], edi
call fcn.004227cf
push 0x20a
xor ebx, ebx
mov dword [ebp - 4], edi
lea eax, [ebp - 0x21c]
inc ebx
push edi
push eax
mov dword [ebp - 0x250], ebx
call fcn.0042af50
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x512526
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.00411838
lea eax, [ebp - 0x234]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.005246b0
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.00458bad
lea ecx, [ebp - 0x24c]
call fcn.0050b302
lea ecx, [ebp - 0x234]
call fcn.00512565
mov eax, esi
call fcn.00429df7
ret
Function at 0x5216ac
Capabilities:
Get file version info

Disassembly:
push 0x10c
mov eax, 0x6326ae
call fcn.00429e48
mov esi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x104], esi
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
mov dword [ebp - 0x108], ebx
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.0052144b
pop ecx
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x114]
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 1
cmovae eax, dword [ebp - 0x28]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jne 0x521718
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x52189f
lea eax, [ebp - 0x110]
push eax
push edi
mov ecx, eax
call fcn.00520b6f
push dword [ebp - 0x110]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push edi
cmovae eax, dword [ebp - 0x28]
push ebx
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x521707
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x68d3d8
push dword [ebp - 0x110]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x521707
mov eax, dword [ebp - 0x104]
movzx eax, word [eax + 0x14]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.0050f522
mov eax, dword [ebp - 0x104]
mov byte [ebp - 4], 2
movzx eax, word [eax + 0x16]
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.0050f522
mov eax, dword [ebp - 0x104]
mov byte [ebp - 4], 3
movzx eax, word [eax + 0x10]
push eax
lea eax, [ebp - 0x58]
push eax
call fcn.0050f522
mov eax, dword [ebp - 0x104]
mov byte [ebp - 4], 4
movzx eax, word [eax + 0x12]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.0050f522
mov edi, 0x68fc5c
mov byte [ebp - 4], 5
push edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00514552
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.00514507
push edi
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 7
push eax
call fcn.00514552
add esp, 0x44
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.00514507
push edi
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 9
push eax
call fcn.00514552
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xa
push ecx
push eax
push esi
call fcn.00514507
add esp, 0x24
lea ecx, [ebp - 0xa0]
call fcn.0050b302
lea ecx, [ebp - 0xb8]
call fcn.0050b302
lea ecx, [ebp - 0xd0]
call fcn.0050b302
lea ecx, [ebp - 0xe8]
call fcn.0050b302
lea ecx, [ebp - 0x100]
call fcn.0050b302
lea ecx, [ebp - 0x40]
call fcn.0050b302
lea ecx, [ebp - 0x58]
call fcn.0050b302
lea ecx, [ebp - 0x70]
call fcn.0050b302
lea ecx, [ebp - 0x88]
call fcn.0050b302
lea ecx, [ebp - 0x28]
call fcn.00512565
lea ecx, [ebp - 0x110]
call fcn.004195f2
mov eax, esi
call fcn.00429df7
ret
Function at 0x5218ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
mov dword [ebp - 0x10c], esi
push edi
push 0
push eax
call fcn.0042af50
add esp, 0xc
mov dword [ebp - 0x10c], edi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 2
push str.CommercialId
push str.SOFTWAREMicrosoftWindowsCurrentVersionPoliciesDataCollection
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004227cf
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00429dd5
leave
ret

Function at 0x52193a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
mov dword [ebp - 0x10c], esi
push edi
push 0
push eax
call fcn.0042af50
add esp, 0xc
mov dword [ebp - 0x10c], edi
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0
push 0x10002
push str.BuildLabEx
push 0x6788e8
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004227cf
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00429dd5
leave
ret
Function at 0x5222fa
Capabilities:
Query or enumerate registry value

Disassembly:
push pe_nt_image_headers32
mov eax, 0x63292f
call fcn.00429e48
mov edi, ecx
mov dword [ebp - 0x130], edi
mov dword [ebp - 0x12c], edi
mov dword [ebp - 0x134], edi
xor eax, eax
mov dword [edi], vtable.Microsoft::Applications::Events::PlatformAbstraction::DeviceInformationImpl.0
push 0xf
pop ebx
mov dword [edi + 0x14], eax
mov dword [edi + 0x18], ebx
mov dword [ebp - 4], eax
mov byte [edi + 4], al
lea ecx, [edi + 0x24]
mov byte [ebp - 4], 1
call fcn.0053f4fa
lea esi, [edi + 0x68]
xor ecx, ecx
mov dword [esi + 0x10], ecx
mov dword [esi + 0x14], ebx
mov byte [esi], cl
lea ebx, [edi + 0x80]
push 0xf
pop eax
mov dword [ebx + 0x10], ecx
mov dword [ebx + 0x14], eax
mov byte [ebx], cl
add edi, 0x98
mov dword [edi + 0x10], ecx
mov dword [edi + 0x14], eax
mov byte [edi], cl
mov eax, dword [ebp - 0x130]
mov byte [ebp - 4], 5
mov dword [eax + 0xb0], ecx
call fcn.005226b7
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0x1c], eax
lea eax, [ebp - 0x128]
push eax
call fcn.00522758
pop ecx
push eax
mov ecx, esi
call fcn.00458bad
lea ecx, [ebp - 0x128]
call fcn.0050b302
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.0042af50
mov dword [ebp - 0x12c], esi
mov esi, dword [str.Unknown_Manufacturer]
push esi
call fcn.00610e70
add esp, 0x10
mov ecx, ebx
push eax
push esi
call fcn.00459eea
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 2
push str.SystemManufacturer
push str.SYSTEMCurrentControlSetControlSystemInformation
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x52243a
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.004227cf
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.0046ff0c
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
call fcn.0050b302
cmp dword [0x6cf42c], 4
jl 0x522466
cmp dword [ebx + 0x14], 0x10
jb 0x52244b
mov ebx, dword [ebx]
call fcn.0050f7f0
push ebx
push str.Device_Manufacturer_s
call fcn.0050fa0c
push eax
push 4
call fcn.0050fc6e
add esp, 0x10
mov esi, dword [str.Unknown_Model]
push esi
mov dword [ebp - 0x12c], 0x100
call fcn.00610e70
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00459eea
lea eax, [ebp - 0x12c]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 2
push str.SystemProductName
push str.SYSTEMCurrentControlSetControlSystemInformation
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
test eax, eax
jne 0x5224e4
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.004227cf
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.0046ff0c
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
call fcn.0050b302
cmp dword [0x6cf42c], 4
jl 0x522510
cmp dword [edi + 0x14], 0x10
jb 0x5224f5
mov edi, dword [edi]
call fcn.0050f7f0
push edi
push str.Device_Model_s
call fcn.0050fa0c
push eax
push 4
call fcn.0050fc6e
add esp, 0x10
call fcn.0052261c
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0x20], eax
mov eax, ecx
call fcn.00429df7
ret 4
Function at 0x5226b7
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push edi
push 9
pop ecx
xor eax, eax
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
movzx eax, word [ebp - 0x24]
pop edi
sub eax, 0
je 0x5226f8
sub eax, 5
je 0x5226f4
sub eax, 1
je 0x5226ef
sub eax, 3
je 0x5226ef
xor eax, eax
leave
ret
push 2
pop eax
leave
ret
push 3
jmp 0x5226f1
xor eax, eax
inc eax
leave
ret

Function at 0x522faa
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x62fa96
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x6ce008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [edi], vtable.Microsoft::Applications::Events::PlatformAbstraction::WorkerThread.0
call fcn.00523280
lea ecx, [edi + 0xa8]
call fcn.00522f56
lea esi, [edi + 0xa0]
mov ecx, esi
call fcn.005236d3
push 0xc
push dword [esi]
call fcn.004863c6
pop ecx
pop ecx
lea esi, [edi + 0x98]
mov ecx, esi
call fcn.005236d3
push 0xc
push dword [esi]
call fcn.004863c6
lea esi, [edi + 0x3c]
lea eax, [esi + 0x30]
push eax
call fcn.004f6feb
push esi
call fcn.004f47d5
lea eax, [edi + 0xc]
push eax
call fcn.004f47d5
add esp, 0x14
cmp dword [edi + 8], 0
jne 0x523047
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
call fcn.00433b48
int3
Function at 0x524120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0x14]
sub esp, 0xc
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 0x20]
mov dword [ecx], eax
mov eax, dword [ebp + 0x18]
mov dword [edi], eax
mov ecx, dword [ecx]
cmp ecx, dword [ebp + 0x10]
je 0x524271
mov eax, ecx
mov dword [ebp - 0xc], eax
mov edx, dword [ebp + 0x1c]
xor ebx, ebx
inc ebx
mov esi, 0x3ff
mov ecx, eax
cmp dword [edi], edx
je 0x524271
mov edx, dword [ebp + 8]
movzx ecx, word [eax]
mov eax, ecx
mov byte [ebp - 1], 0
movzx edx, word [edx]
cmp bx, dx
jae 0x52419f
lea eax, [ecx + 0x2400]
cmp ax, si
ja 0x524280
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x5241bc
mov dl, bl
xor eax, eax
jmp 0x5241ec
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, si
ja 0x52418e
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x524191
mov edx, ebx
cmp ebx, 0x800
jae 0x5241d1
shr edx, 6
xor eax, eax
or dl, 0xc0
inc eax
jmp 0x5241ec
cmp ebx, 0x10000
jae 0x5241e3
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x5241eb
shr edx, 0x12
or dl, 0xf0
push 3
pop eax
movzx esi, cl
mov ecx, dword [ebp - 0xc]
xor esi, 1
add esi, esi
mov dword [ebp - 8], eax
cmp eax, 3
cmovb esi, eax
mov eax, dword [ebp + 0x1c]
sub eax, dword [edi]
inc esi
cmp eax, esi
jl 0x524271
mov eax, ecx
mov ecx, dword [ebp + 0x14]
add eax, 2
cmp byte [ebp - 1], 0
mov dword [ecx], eax
mov ecx, dword [ebp - 8]
jne 0x524222
cmp ecx, 3
jae 0x524229
mov eax, dword [edi]
mov byte [eax], dl
inc dword [edi]
dec esi
test esi, esi
jle 0x524248
imul ecx, ecx, 6
mov eax, dword [edi]
sub ecx, 6
mov edx, ebx
dec esi
shr edx, cl
and dl, 0x3f
or dl, 0x80
mov byte [eax], dl
inc dword [edi]
test esi, esi
jg 0x524230
xor ecx, ecx
shr ebx, 0xa
inc ecx
movzx eax, bx
cmp byte [ebp - 1], 0
cmovne ecx, eax
mov eax, dword [ebp + 8]
mov word [eax], cx
mov eax, dword [ebp + 0x14]
mov ecx, dword [eax]
mov eax, ecx
mov dword [ebp - 0xc], eax
cmp ecx, dword [ebp + 0x10]
jne 0x524149
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x524279
Function at 0x53bf65
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6ce008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor ecx, ecx
push esi
mov esi, dword [ebp + 8]
xor eax, eax
mov dword [ebp - 0x14], ebx
mov ebx, dword [ebp + 0xc]
push edi
mov dword [esi], ecx
mov dword [esi + 4], eax
mov dword [esi + 8], ecx
mov dword [esi + 0xc], ecx
cmp dword [ebx + 0x10], eax
je 0x53c0d5
cmp dword [ebx + 0x10], 0x20
jne 0x53c0d5
xorps xmm0, xmm0
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x1c], ecx
mov edi, ecx
mov dword [ebp - 0x20], ecx
movlpd qword [ebp - 0xc], xmm0
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x53bfc3
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0053c9c6
pop ecx
cmp al, 0xff
je 0x53c0d5
mov ecx, dword [ebp - 0x18]
shl ecx, 4
movzx eax, al
add ecx, eax
inc edi
mov dword [ebp - 0x18], ecx
cmp edi, 8
jl 0x53bfb9
jmp 0x53c01c
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x53bff6
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0053c9c6
pop ecx
cmp al, 0xff
je 0x53c0d5
mov ecx, dword [ebp - 0x1c]
shl ecx, 4
movzx eax, al
add cx, ax
inc edi
movzx ecx, cx
mov dword [ebp - 0x1c], ecx
cmp edi, 0xc
jl 0x53bfec
jmp 0x53c053
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x53c02d
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0053c9c6
pop ecx
cmp al, 0xff
je 0x53c0d5
mov ecx, dword [ebp - 0x20]
shl ecx, 4
movzx eax, al
add cx, ax
inc edi
movzx ecx, cx
mov dword [ebp - 0x20], ecx
cmp edi, 0x10
jl 0x53c023
xor al, al
mov cl, 1
mov byte [ebp - 0xd], al
mov byte [ebp - 0xe], cl
cmp edi, 0x20
jge 0x53c0b4
lea eax, [ebp - 0xc]
mov dword [ebp - 0x14], eax
mov al, cl
xor al, 1
cmp dword [ebx + 0x14], 0x10
mov byte [ebp - 0xf], al
mov eax, ebx
jb 0x53c07e
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0053c9c6
pop ecx
mov cl, byte [ebp - 0xd]
shl cl, 4
add cl, al
cmp byte [ebp - 0xe], 1
mov byte [ebp - 0xd], cl
je 0x53c0a8
mov edx, dword [ebp - 0x14]
xor al, al
mov byte [ebp - 0xd], al
mov byte [edx], cl
inc edx
mov dword [ebp - 0x14], edx
mov cl, byte [ebp - 0xf]
inc edi
mov byte [ebp - 0xe], cl
cmp edi, 0x20
jl 0x53c06d
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0xc]
mov dword [esi], eax
mov eax, dword [ebp - 0x1c]
mov word [esi + 4], ax
mov eax, dword [ebp - 0x20]
mov word [esi + 6], ax
mov dword [esi + 8], ecx
mov ecx, dword [ebp - 8]
mov dword [esi + 0xc], ecx
jmp 0x53c0db
mov eax, dword [ebp - 0x14]
mov byte [eax], 1
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00429dd5
leave
ret
Function at 0x540fa9
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x34
mov eax, 0x6357c4
call fcn.00429e48
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push eax
call fcn.004227cf
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.00524675
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.0050b302
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x540ffa
test al, 0x10
jne 0x540ffa
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00512565
mov al, bl
call fcn.00429df7
ret
Function at 0x558b33
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x558b45
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x558b8a
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x558bfe
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
lea edx, [ecx + 8]
mov esi, 0x270
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub esi, 1
jne 0x558c07
pop esi
ret

Function at 0x5591c1
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
push ebx
push esi
xor esi, esi
mov dword [ecx + 4], edx
push edi
inc esi
lea edi, [ecx + 8]
mov ebx, 0x270
mov eax, edx
shr eax, 0x1e
xor edx, eax
imul edx, dword [ebp + 0xc]
add edx, esi
inc esi
mov dword [edi], edx
lea edi, [edi + 4]
cmp esi, ebx
jl 0x5591d8
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8