joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4f4ed9
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004e1fd0
mov eax, dword [0x68d008]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.004333db
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4f4f1b
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4f5077
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004e2700
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x6a4370]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00437ee1
mov ecx, dword [esi*4 + 0x6a4370]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4f5070
cmp eax, dword [edi + ecx + 0x24]
jne 0x4f5070
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4f5070
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00437ee1
add esp, 0x14
test edx, edx
jl 0x4f5070
jg 0x4f4fe6
test eax, eax
jb 0x4f5070
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4f5070
jl 0x4f5000
cmp dword [ebp - 0x1008], eax
ja 0x4f5070
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4f501e
test ebx, ebx
je 0x4f5057
cmp ecx, edi
jae 0x4f5057
mov al, byte [ecx]
cmp al, 0xd
jne 0x4f5038
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4f5044
cmp byte [ecx + 1], 0xa
jne 0x4f5044
inc ecx
jmp 0x4f5044
movzx eax, al
movsx eax, byte [eax + 0x68d7a8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4f501e
cmp edx, ebx
jne 0x4f501e
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4f5075
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004192c5
leave
ret
Function at 0x4f7bc0
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004f7b3c
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4f7d38
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4f7d38
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4f7ce7
jg 0x4f7c19
test eax, eax
je 0x4f7cdd
push 1
push 0x1000
call fcn.0042bfe4
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4f7c3f
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4f7cd4
push 0x8000
push ebx
call fcn.00424214
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4f7c6b
jg 0x4f7c66
cmp ecx, 0x1000
jb 0x4f7c6b
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00434e47
add esp, 0x10
cmp eax, 0xffffffff
je 0x4f7cb0
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4f7c66
jl 0x4f7c97
test ecx, ecx
jne 0x4f7c58
push dword [ebp - 0xc]
push ebx
call fcn.00424214
push esi
call fcn.0042b742
add esp, 0xc
xor edi, edi
jmp 0x4f7d49
cmp byte [edi + 0x24], 0
je 0x4f7cc7
cmp dword [edi + 0x20], 5
jne 0x4f7cc7
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4f7cd2
mov edi, dword [edi + 0x18]
jmp 0x4f7cd4
xor edi, edi
push esi
call fcn.0042b742
pop ecx
jmp 0x4f7d49
test ecx, ecx
jg 0x4f7ca9
jl 0x4f7ce7
test eax, eax
jae 0x4f7ca9
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00437eff
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4f7d0a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4f7ca9
jmp 0x4f7d41
push ebx
call fcn.0042f185
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4f7ca9
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4f7d49
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4f7d46
mov edi, dword [edi + 0x18]
jmp 0x4f7d49
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00437eff
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x501a6e
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x68d008]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x6a70c8], 0
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
je 0x501b6f
push 0x800
lea eax, [ebp - 0x804]
push 0
push eax
call fcn.0041ab50
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.005013bb
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.004160b0
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 0x501b5a
mov eax, esi
cmp esi, edi
jae 0x501b7d
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.004192c5
leave
ret
call fcn.00419af0
int3

Function at 0x504288
Capabilities:
Get common file path

Disassembly:
push 0x248
mov eax, 0x60a01d
call fcn.004e1c06
mov esi, dword [ebp + 8]
xor edi, edi
mov dword [ebp - 0x254], esi
mov ecx, esi
push 0x653c2c
mov dword [ebp - 4], edi
mov dword [ebp - 0x250], edi
call fcn.004166a5
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.0041ab50
add esp, 0xc
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
je 0x504336
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x234]
call fcn.0040ab57
lea eax, [ebp - 0x234]
mov dword [ebp - 4], ebx
push eax
lea eax, [ebp - 0x24c]
push eax
call fcn.005165b0
pop ecx
pop ecx
push eax
mov ecx, esi
call fcn.0041296c
lea ecx, [ebp - 0x24c]
call fcn.004fd0c2
lea ecx, [ebp - 0x234]
call fcn.00504375
mov eax, esi
call fcn.004e1bb5
ret
Function at 0x5135ac
Capabilities:
Get file version info

Disassembly:
push 0x10c
mov eax, 0x60c46d
call fcn.004e1c06
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.0051334b
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 0x513618
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], 0xf
mov byte [esi], bl
jmp 0x51379f
lea eax, [ebp - 0x110]
push eax
push edi
mov ecx, eax
call fcn.00512a6f
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 0x513607
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x104]
push eax
push 0x653c04
push dword [ebp - 0x110]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x513607
mov eax, dword [ebp - 0x104]
movzx eax, word [eax + 0x14]
push eax
lea eax, [ebp - 0x88]
push eax
call fcn.00501322
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.00501322
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.00501322
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.00501322
mov edi, 0x654dd4
mov byte [ebp - 4], 5
push edi
lea eax, [ebp - 0x40]
push eax
lea eax, [ebp - 0x100]
push eax
call fcn.00506378
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 6
push ecx
push eax
lea eax, [ebp - 0xe8]
push eax
call fcn.0050632d
push edi
push eax
lea eax, [ebp - 0xd0]
mov byte [ebp - 4], 7
push eax
call fcn.00506378
add esp, 0x44
lea ecx, [ebp - 0x70]
mov byte [ebp - 4], 8
push ecx
push eax
lea eax, [ebp - 0xb8]
push eax
call fcn.0050632d
push edi
push eax
lea eax, [ebp - 0xa0]
mov byte [ebp - 4], 9
push eax
call fcn.00506378
lea ecx, [ebp - 0x88]
mov byte [ebp - 4], 0xa
push ecx
push eax
push esi
call fcn.0050632d
add esp, 0x24
lea ecx, [ebp - 0xa0]
call fcn.004fd0c2
lea ecx, [ebp - 0xb8]
call fcn.004fd0c2
lea ecx, [ebp - 0xd0]
call fcn.004fd0c2
lea ecx, [ebp - 0xe8]
call fcn.004fd0c2
lea ecx, [ebp - 0x100]
call fcn.004fd0c2
lea ecx, [ebp - 0x40]
call fcn.004fd0c2
lea ecx, [ebp - 0x58]
call fcn.004fd0c2
lea ecx, [ebp - 0x70]
call fcn.004fd0c2
lea ecx, [ebp - 0x88]
call fcn.004fd0c2
lea ecx, [ebp - 0x28]
call fcn.00504375
lea ecx, [ebp - 0x110]
call fcn.00455376
mov eax, esi
call fcn.004e1bb5
ret
Function at 0x5137ba
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x68d008]
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.0041ab50
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.004166a5
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004192c5
leave
ret

Function at 0x51383a
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x68d008]
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.0041ab50
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 str.SOFTWAREMicrosoftWindows_NTCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegGetValueA]
lea eax, [ebp - 0x108]
mov ecx, esi
push eax
call fcn.004166a5
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004192c5
leave
ret
Function at 0x5141fa
Capabilities:
Query or enumerate registry value

Disassembly:
push pe_nt_image_headers32
mov eax, 0x60c72d
call fcn.004e1c06
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.0053157a
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.005145b7
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0x1c], eax
lea eax, [ebp - 0x128]
push eax
call fcn.00514658
pop ecx
push eax
mov ecx, esi
call fcn.0041296c
lea ecx, [ebp - 0x128]
call fcn.004fd0c2
mov esi, 0x100
lea eax, [ebp - 0x110]
push esi
push 0
push eax
call fcn.0041ab50
mov dword [ebp - 0x12c], esi
mov esi, dword [str.Unknown_Manufacturer]
push esi
call fcn.005f3750
add esp, 0x10
mov ecx, ebx
push eax
push esi
call fcn.00414210
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 0x51433a
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.004166a5
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 6
push eax
mov ecx, ebx
call fcn.004750c5
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
call fcn.004fd0c2
cmp dword [0x68e42c], 4
jl 0x514366
cmp dword [ebx + 0x14], 0x10
jb 0x51434b
mov ebx, dword [ebx]
call fcn.005015f0
push ebx
push str.Device_Manufacturer_s
call fcn.0050180c
push eax
push 4
call fcn.00501a6e
add esp, 0x10
mov esi, dword [str.Unknown_Model]
push esi
mov dword [ebp - 0x12c], 0x100
call fcn.005f3750
pop ecx
push eax
push esi
mov ecx, edi
call fcn.00414210
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 0x5143e4
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.004166a5
lea eax, [ebp - 0x128]
mov byte [ebp - 4], 7
push eax
mov ecx, edi
call fcn.004750c5
lea ecx, [ebp - 0x128]
mov byte [ebp - 4], 5
call fcn.004fd0c2
cmp dword [0x68e42c], 4
jl 0x514410
cmp dword [edi + 0x14], 0x10
jb 0x5143f5
mov edi, dword [edi]
call fcn.005015f0
push edi
push str.Device_Model_s
call fcn.0050180c
push eax
push 4
call fcn.00501a6e
add esp, 0x10
call fcn.0051451c
mov ecx, dword [ebp - 0x130]
mov dword [ecx + 0x20], eax
mov eax, ecx
call fcn.004e1bb5
ret 4
Function at 0x5145b7
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 0x5145f8
sub eax, 5
je 0x5145f4
sub eax, 1
je 0x5145ef
sub eax, 3
je 0x5145ef
xor eax, eax
leave
ret
push 2
pop eax
leave
ret
push 3
jmp 0x5145f1
xor eax, eax
inc eax
leave
ret

Function at 0x514eaa
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x609485
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x68d008]
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.00515180
lea ecx, [edi + 0xa8]
call fcn.00514e56
lea esi, [edi + 0xa0]
mov ecx, esi
call fcn.005155d3
push 0xc
push dword [esi]
call fcn.0048b5e8
pop ecx
pop ecx
lea esi, [edi + 0x98]
mov ecx, esi
call fcn.005155d3
push 0xc
push dword [esi]
call fcn.0048b5e8
lea esi, [edi + 0x3c]
lea eax, [esi + 0x30]
push eax
call fcn.004d2b1b
push esi
call fcn.004d0305
lea eax, [edi + 0xc]
push eax
call fcn.004d0305
add esp, 0x14
cmp dword [edi + 8], 0
jne 0x514f47
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
leave
ret
call fcn.00425d31
int3
Function at 0x516020
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 0x516171
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 0x516171
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 0x51609f
lea eax, [ecx + 0x2400]
cmp ax, si
ja 0x516180
mov eax, edx
lea ebx, [ecx - 0xdc00]
shl eax, 0xa
or ebx, eax
mov cl, byte [ebp - 1]
cmp ebx, 0x80
jae 0x5160bc
mov dl, bl
xor eax, eax
jmp 0x5160ec
mov ebx, eax
lea eax, [ecx + 0x2800]
cmp ax, si
ja 0x51608e
add ebx, 0xffff2840
mov cl, 1
shl ebx, 0xa
mov byte [ebp - 1], cl
jmp 0x516091
mov edx, ebx
cmp ebx, 0x800
jae 0x5160d1
shr edx, 6
xor eax, eax
or dl, 0xc0
inc eax
jmp 0x5160ec
cmp ebx, 0x10000
jae 0x5160e3
shr edx, 0xc
or dl, 0xe0
push 2
jmp 0x5160eb
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 0x516171
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 0x516122
cmp ecx, 3
jae 0x516129
mov eax, dword [edi]
mov byte [eax], dl
inc dword [edi]
dec esi
test esi, esi
jle 0x516148
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 0x516130
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 0x516049
xor eax, eax
cmp dword [ebp + 0xc], ecx
sete al
pop edi
pop esi
pop ebx
leave
ret 0x1c
push 2
pop eax
jmp 0x516179
Function at 0x52e015
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x68d008]
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 0x52e185
cmp dword [ebx + 0x10], 0x20
jne 0x52e185
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 0x52e073
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0052ea76
pop ecx
cmp al, 0xff
je 0x52e185
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 0x52e069
jmp 0x52e0cc
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x52e0a6
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0052ea76
pop ecx
cmp al, 0xff
je 0x52e185
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 0x52e09c
jmp 0x52e103
cmp dword [ebx + 0x14], 0x10
mov eax, ebx
jb 0x52e0dd
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0052ea76
pop ecx
cmp al, 0xff
je 0x52e185
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 0x52e0d3
xor al, al
mov cl, 1
mov byte [ebp - 0xd], al
mov byte [ebp - 0xe], cl
cmp edi, 0x20
jge 0x52e164
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 0x52e12e
mov eax, dword [ebx]
movzx eax, byte [eax + edi]
push eax
call fcn.0052ea76
pop ecx
mov cl, byte [ebp - 0xd]
shl cl, 4
add cl, al
cmp byte [ebp - 0xe], 1
mov byte [ebp - 0xd], cl
je 0x52e158
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 0x52e11d
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 0x52e18b
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.004192c5
leave
ret
Function at 0x533029
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x34
mov eax, 0x60fa38
call fcn.004e1c06
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x40]
push eax
call fcn.004166a5
lea eax, [ebp - 0x40]
xor ebx, ebx
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ebx
push eax
call fcn.00516575
pop ecx
pop ecx
lea ecx, [ebp - 0x40]
call fcn.004fd0c2
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 0x53307a
test al, 0x10
jne 0x53307a
mov bl, 1
lea ecx, [ebp - 0x28]
call fcn.00504375
mov al, bl
call fcn.004e1bb5
ret
Function at 0x54acc3
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 0x54acd5
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 0x54ad1a
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 0x54ad8e
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 0x54ad97
pop esi
ret

Function at 0x54b351
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 0x54b368
pop edi
pop esi
mov dword [ecx], ebx
pop ebx
pop ebp
ret 8