joyce8/EMBER2024-capa huggingface dataset:
Function at 0x551320
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x1c], 8
push ebx
mov ebx, dword [eax + 0x18]
push esi
lea esi, [eax + 8]
mov dword [ebp - 4], ecx
push edi
jb 0x55133b
mov esi, dword [esi]
xor edx, edx
mov edi, 0x811c9dc5
add ebx, ebx
je 0x551357
movzx ecx, byte [esi + edx]
inc edx
xor ecx, edi
imul edi, ecx, 0x1000193
cmp edx, ebx
jb 0x551346
mov edx, dword [ebp - 4]
mov ecx, dword [edx + 0x18]
and ecx, edi
lea esi, [ecx*8]
mov ecx, dword [edx + 0xc]
add ecx, esi
cmp dword [ecx + 4], eax
jne 0x55138d
cmp dword [ecx], eax
jne 0x551385
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [edx + 0xc]
mov eax, dword [edx + 4]
mov dword [esi + ecx + 4], eax
jmp 0x551395
mov eax, dword [eax + 4]
mov dword [ecx + 4], eax
jmp 0x551395
cmp dword [ecx], eax
jne 0x551398
mov eax, dword [eax]
mov dword [ecx], eax
mov eax, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
lea ecx, [edx + 4]
push eax
push esi
call fcn.005513b0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x5535d0
Capabilities:
Create thread

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0xa0], 0
jne 0x55361a
cmp dword [esi + 8], 0
je 0x5535fa
push str.already_initialized
push str.EPSUIManager::Init
push 3
call fcn.00587c13
add esp, 0xc
mov al, 1
pop esi
ret
lea ecx, [esi + 0x2c]
call fcn.00559820
test al, al
jne 0x55361e
push str.could_not_init_UIProxy
push str.EPSUIManager::Init
push 1
call fcn.00587c13
add esp, 0xc
xor al, al
pop esi
ret
lea eax, [esi + 0x14]
push eax
push 0
push 0
push 0x555f20
push 0
push 0
call fcn.005de265
add esp, 0x18
mov dword [esi + 8], eax
test eax, eax
jne 0x5535f6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.could_not_start_UI_thread__error__d_
push str.EPSUIManager::Init
push 1
call fcn.00587c13
add esp, 0x10
xor al, al
pop esi
ret
Function at 0x559a40
Capabilities:
Link many functions at runtime

Disassembly:
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push edi
mov edi, ecx
push str.ZDxInit
push dword [edi + 4]
call esi
push str.ZDxExit
push dword [edi + 4]
mov dword [edi + 8], eax
call esi
push str.ZDxOpenConnection
push dword [edi + 4]
mov dword [edi + 0xc], eax
call esi
push str.ZDxCloseConnection
push dword [edi + 4]
mov dword [edi + 0x10], eax
call esi
push str.ZDxOpenService
push dword [edi + 4]
mov dword [edi + 0x14], eax
call esi
push str.ZDxCloseService
push dword [edi + 4]
mov dword [edi + 0x18], eax
call esi
push str.ZDxStartSink
push dword [edi + 4]
mov dword [edi + 0x1c], eax
call esi
push str.ZDxStopSink
push dword [edi + 4]
mov dword [edi + 0x20], eax
call esi
push str.ZDxStartService
push dword [edi + 4]
mov dword [edi + 0x24], eax
call esi
push str.ZDxStopService
push dword [edi + 4]
mov dword [edi + 0x28], eax
call esi
push str.ZDxPopCall
push dword [edi + 4]
mov dword [edi + 0x2c], eax
call esi
push str.ZDxReply
push dword [edi + 4]
mov dword [edi + 0x30], eax
call esi
push str.ZDxAdvise
push dword [edi + 4]
mov dword [edi + 0x34], eax
call esi
push str.ZDxUpdate
push dword [edi + 4]
mov dword [edi + 0x38], eax
call esi
push str.ZDxBuildItemV
push dword [edi + 4]
mov dword [edi + 0x3c], eax
call esi
push str.ZDxCreateMap
push dword [edi + 4]
mov dword [edi + 0x40], eax
call esi
push str.ZDxCreateList
push dword [edi + 4]
mov dword [edi + 0x44], eax
call esi
push str.ZDxAddItem
push dword [edi + 4]
mov dword [edi + 0x48], eax
call esi
push str.ZDxReleaseItem
push dword [edi + 4]
mov dword [edi + 0x4c], eax
call esi
mov dword [edi + 0x50], eax
push str.ZDxGetAssoc
push dword [edi + 4]
call esi
push str.ZDxGetNth
push dword [edi + 4]
mov dword [edi + 0x54], eax
call esi
push str.ZDxGetNthKey
push dword [edi + 4]
mov dword [edi + 0x58], eax
call esi
push str.ZDxGetLen
push dword [edi + 4]
mov dword [edi + 0x5c], eax
call esi
push str.ZDxCopyStr
push dword [edi + 4]
mov dword [edi + 0x60], eax
call esi
push str.ZDxCall
push dword [edi + 4]
mov dword [edi + 0x64], eax
call esi
push str.ZDxCreateStr
push dword [edi + 4]
mov dword [edi + 0x70], eax
call esi
push str.ZDxGetBool
push dword [edi + 4]
mov dword [edi + 0x6c], eax
call esi
mov dword [edi + 0x68], eax
pop edi
pop esi
ret
Function at 0x56e200
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x344
mov eax, dword [0x6ba394]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, ecx
mov dword [ebp - 0x31c], 0xa
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x320], eax
push edi
mov edi, edx
mov dword [eax + 0x19204], 0
mov edx, dword [ebp + 0xc]
test edx, edx
mov dword [ebp - 0x340], 0xf4240
lea eax, [edx - 1]
cmovle eax, ecx
mov dword [ebp - 0x324], eax
mov eax, dword [ebp + 8]
mov ecx, eax
and ecx, 1
mov dword [ebp - 0x328], ecx
mov ecx, eax
and ecx, 2
and eax, 4
mov dword [ebp - 0x330], ecx
mov dword [ebp + 8], eax
xor ecx, ecx
xor esi, esi
xor ebx, ebx
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x32c], esi
cmp dword [ebp - 0x328], ecx
je 0x56e2a6
lea esi, [ebp - 0x318]
mov dword [ebp - 0x314], edi
mov dword [ebp - 0x32c], esi
mov dword [ebp - 0x318], 1
cmp dword [ebp - 0x330], ecx
je 0x56e2c4
lea ebx, [ebp - 0x214]
mov dword [ebp - 0x210], edi
mov dword [ebp - 0x214], 1
test eax, eax
je 0x56e2e4
lea ecx, [ebp - 0x110]
mov dword [ebp - 0x10c], edi
mov dword [ebp - 0x334], ecx
mov dword [ebp - 0x110], 1
test edx, edx
jg 0x56e313
mov eax, 0xbce4217d
imul edx
sar edx, 0x12
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x33c], eax
mov eax, dword [ebp + 0xc]
neg eax
cdq
idiv dword [ebp - 0x340]
mov dword [ebp - 0x338], edx
jmp 0x56e327
mov dword [ebp - 0x33c], 1
mov dword [ebp - 0x338], 0
lea eax, [ebp - 0x33c]
push eax
push ecx
push ebx
push esi
lea eax, [edi + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
test esi, esi
jns 0x56e379
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov ecx, dword [ebp - 0x320]
mov dword [ecx + 0x19204], eax
cmp eax, 0x2714
jne 0x56e37f
mov edx, dword [ebp - 0x31c]
mov eax, edx
dec edx
test eax, eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x31c], edx
mov edx, dword [ebp + 0xc]
jg 0x56e270
jmp 0x56e37f
mov ecx, dword [ebp - 0x320]
mov edx, dword [ebp - 0x324]
mov eax, edx
dec edx
mov dword [ebp - 0x324], edx
test eax, eax
jle 0x56e3a0
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
test esi, esi
je 0x56e270
test esi, esi
jle 0x56e40c
mov eax, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
xor esi, esi
cmp dword [ebp - 0x328], esi
je 0x56e3cb
push dword [ebp - 0x32c]
push edi
call eax
test eax, eax
mov ecx, 1
mov eax, dword [sym.imp.WS2_32.dll___WSAFDIsSet]
cmovne esi, ecx
cmp dword [ebp - 0x330], 0
je 0x56e3df
push ebx
push edi
call eax
test eax, eax
je 0x56e3df
or esi, 2
cmp dword [ebp + 8], 0
je 0x56e418
push dword [ebp - 0x334]
push edi
call dword [sym.imp.WS2_32.dll___WSAFDIsSet]
test eax, eax
je 0x56e418
or esi, 4
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.005b168a
mov esp, ebp
pop ebp
ret
jne 0x56e418
mov dword [ecx + 0x19204], 0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005b168a
mov esp, ebp
pop ebp
ret
Function at 0x579590
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, edx
test esi, esi
jne 0x5795cd
lea esi, [ebx + 2]
mov eax, 0x55555556
imul esi
mov eax, edx
shr eax, 0x1f
add eax, edx
lea edx, [eax*4 + 1]
call fcn.005707d0
mov esi, eax
test esi, esi
jne 0x5795cd
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], esi
mov byte [esi], 0
test edi, edi
jne 0x5795e0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp ebx, 2
jle 0x579654
lea ecx, [ebx - 3]
mov eax, 0xaaaaaaab
mul ecx
mov ecx, edx
shr ecx, 1
inc ecx
lea eax, [ecx*4]
sub eax, ecx
neg eax
add ebx, eax
mov dword [ebp + 0xc], ebx
mov ebx, ecx
nop word [eax + eax]
movzx eax, byte [edi]
mov edx, 4
movzx ecx, byte [edi + 1]
shl eax, 8
or eax, ecx
movzx ecx, byte [edi + 2]
shl eax, 8
or eax, ecx
nop word [eax + eax]
mov ecx, eax
dec edx
and ecx, 0x3f
shr eax, 6
mov cl, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi], cl
test edx, edx
jg 0x579630
add esi, 4
add edi, 3
sub ebx, 1
jne 0x579610
mov ebx, dword [ebp + 0xc]
mov byte [esi], 0
test ebx, ebx
jle 0x5796cd
xor ecx, ecx
xor edx, edx
test ebx, ebx
jle 0x579688
mov edx, ebx
mov dword [ebp + 8], ebx
nop dword [eax + eax]
movzx eax, byte [edi]
lea edi, [edi + 1]
shl ecx, 8
or ecx, eax
sub edx, 1
jne 0x579670
cmp ebx, 3
jge 0x579698
mov edx, dword [ebp + 8]
mov eax, 3
sub eax, edx
nop
shl ecx, 8
sub eax, 1
jne 0x579690
mov edx, 4
nop dword [eax]
mov eax, ecx
dec edx
and eax, 0x3f
shr ecx, 6
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [edx + esi], al
test edx, edx
jg 0x5796a0
mov ecx, 3
cmp ebx, ecx
jge 0x5796c9
nop
mov byte [ecx + esi], 0x3d
dec ecx
cmp ecx, ebx
jg 0x5796c0
mov byte [esi + 4], 0
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x57a680
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x602818
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6ba394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
movsd qword [ebp - 0x38], xmm1
movsd qword [ebp - 0x40], xmm0
xorps xmm2, xmm2
comisd xmm2, xmm0
ja 0x57a749
comisd xmm0, xmmword [0x680bc8]
ja 0x57a749
push 0x63f3e0
lea ecx, [ebp - 0x28]
call fcn.004347d0
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0
push eax
call fcn.0058d837
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x57a6f2
mov eax, dword [eax]
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
push ecx
lea ecx, [ebp - 0x50]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov ecx, dword [ebp - 0x14]
mov esi, eax
cmp ecx, 8
jb 0x57a71c
inc ecx
push ecx
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00434bd0
test esi, esi
jne 0x57a727
movsd xmm0, qword [ebp - 0x38]
jmp 0x57a74c
mov edx, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
call fcn.005f7e20
divsd xmm0, qword [0x680bc8]
mulsd xmm0, qword [ebp - 0x40]
mulsd xmm0, qword [0x680b80]
jmp 0x57a74c
movaps xmm0, xmm1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b168a
mov esp, ebp
pop ebp
ret
Function at 0x57ab40
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61c428
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6ba394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0x13
xor eax, eax
mov dword [ebp - 0x14], 7
push str.MaintenanceTaskMgr_
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004346a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
cmp esi, 8
push 0
cmovae eax, dword [ebp - 0x28]
push eax
call fcn.0041d7f0
cmp eax, 0xffffffff
je 0x57ac50
mov eax, dword [ebp + 0x20]
cmp dword [eax + 0x288], 3
jne 0x57ac4c
push 0xffffffffffffffff
push dword [ebp - 0x18]
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.0041a980
push 0x66ed10
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.0041a910
test eax, eax
je 0x57ac34
push 0x66ed6c
lea ecx, [ebp - 0x40]
call fcn.0041a910
test eax, eax
je 0x57ac34
push 0x66d4e0
lea ecx, [ebp - 0x40]
call fcn.0041a910
test eax, eax
je 0x57ac34
cmp dword [ebp - 0x2c], 8
lea eax, [ebp - 0x40]
cmovae eax, dword [ebp - 0x40]
push eax
push str.Action_mode__ws_is_unknown
push str.EfrPolicy::TranslateStringToGeneralFeatureActionMode
push 1
call fcn.00587c13
add esp, 0x10
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x57ac49
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00434bd0
mov esi, dword [ebp - 0x14]
mov bl, 1
jmp 0x57ac52
xor bl, bl
cmp esi, 8
jb 0x57ac66
lea eax, [esi + 1]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00434bd0
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x57ac8f
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00434bd0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b168a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x57acb0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61c460
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6ba394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 9
xor eax, eax
mov dword [ebp - 0x14], 7
push str.ARSilent_
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004346a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
mov ebx, dword [ebp - 0x18]
cmp esi, 8
push ebx
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call fcn.0041d7f0
cmp eax, 0xffffffff
je 0x57ad89
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.0041a980
push 0x67e290
lea ecx, [ebp - 0x40]
call fcn.0041a910
test eax, eax
jne 0x57ad55
mov byte [edi + 0x64], 1
mov bl, 1
jmp 0x57ad6f
push 0x67e2cc
lea ecx, [ebp - 0x40]
call fcn.0041a910
test eax, eax
jne 0x57ad6d
mov byte [edi + 0x64], al
mov bl, 1
jmp 0x57ad6f
xor bl, bl
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x57ad84
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00434bd0
mov esi, dword [ebp - 0x14]
jmp 0x57ad8b
xor bl, bl
cmp esi, 8
jb 0x57ad9f
lea eax, [esi + 1]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00434bd0
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x57adc8
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00434bd0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b168a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x57adf0
Capabilities:
Reference sql statements

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x61c460
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x6ba394]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 0x20]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x28]
push 0xe
xor eax, eax
mov dword [ebp - 0x14], 7
push str.UrlReputation_
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
call fcn.004346a0
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
mov esi, dword [ebp - 0x14]
lea ecx, [ebp + 8]
mov ebx, dword [ebp - 0x18]
cmp esi, 8
push ebx
cmovae eax, dword [ebp - 0x28]
push 0
push eax
call fcn.0041d7f0
cmp eax, 0xffffffff
je 0x57aec9
push 0xffffffffffffffff
push ebx
lea eax, [ebp - 0x40]
push eax
lea ecx, [ebp + 8]
call fcn.0041a980
push 0x67e290
lea ecx, [ebp - 0x40]
call fcn.0041a910
test eax, eax
jne 0x57ae95
mov byte [edi + 0x68], 1
mov bl, 1
jmp 0x57aeaf
push 0x67e2cc
lea ecx, [ebp - 0x40]
call fcn.0041a910
test eax, eax
jne 0x57aead
mov byte [edi + 0x68], al
mov bl, 1
jmp 0x57aeaf
xor bl, bl
mov eax, dword [ebp - 0x2c]
cmp eax, 8
jb 0x57aec4
inc eax
lea ecx, [ebp - 0x40]
push eax
push dword [ebp - 0x40]
call fcn.00434bd0
mov esi, dword [ebp - 0x14]
jmp 0x57aecb
xor bl, bl
cmp esi, 8
jb 0x57aedf
lea eax, [esi + 1]
push eax
push dword [ebp - 0x28]
lea ecx, [ebp - 0x28]
call fcn.00434bd0
mov ecx, dword [ebp + 0x1c]
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], 0
mov word [ebp - 0x28], ax
cmp ecx, 8
jb 0x57af08
inc ecx
push ecx
push dword [ebp + 8]
lea ecx, [ebp + 8]
call fcn.00434bd0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005b168a
mov esp, ebp
pop ebp
ret 0x1c
Function at 0x584690
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
xor edi, edi
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x584898
cmp dword [esi + 0x6af90], 3
jb 0x584708
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
and ecx, 0x7fff
and edx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebx, ebx
je 0x584745
mov eax, dword [esi + 0x6af84]
sub eax, ebx
cmp eax, 0x7efa
ja 0x584745
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x58472f
mov dword [esi + 0x6afa0], eax
mov edx, ebx
mov ecx, esi
call fcn.00584360
mov ecx, dword [esi + 0x6af90]
mov edi, eax
cmp edi, ecx
cmova edi, ecx
mov ecx, esi
cmp edi, 3
jb 0x584818
mov edx, dword [esi + 0x6af84]
lea eax, [edi - 3]
sub edx, dword [esi + 0x6af88]
push eax
call fcn.00583b50
sub dword [esi + 0x6af90], edi
add esp, 4
mov dword [ebp - 4], eax
cmp edi, dword [esi + 0x6af98]
ja 0x5847df
cmp dword [esi + 0x6af90], 3
jb 0x5847df
dec edi
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
and edx, 0x7fff
xor ecx, eax
and ecx, 0x7fff
mov dword [esi + 0x6af7c], ecx
mov ebx, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebx
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
sub edi, 1
jne 0x584783
mov eax, dword [ebp - 4]
jmp 0x584837
add dword [esi + 0x6af84], edi
xor edi, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [ebp - 4]
jmp 0x58483d
mov eax, dword [esi + 0x6af84]
xor edx, edx
movzx eax, byte [eax + esi + 0x1af70]
push eax
call fcn.00583b50
add esp, 4
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x584878
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x584855
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x584857
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 0
push eax
call fcn.005839a0
mov eax, dword [esi + 0x6af84]
add esp, 8
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x58488b
mov ecx, esi
call fcn.00584530
cmp dword [esi + 0x6af90], 0
jne 0x5846b3
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x5848ac
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x5848ae
xor edx, edx
mov eax, dword [esi + 0x6af84]
sub eax, ecx
mov ecx, esi
push 1
push eax
call fcn.005839a0
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x585590
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
test edx, edx
jne 0x58559b
xor eax, eax
pop ebp
ret
push esi
mov esi, dword [ebp + 8]
not ecx
cmp esi, 8
jb 0x585657
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63ed70]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63ed70]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63ed70]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63ed70]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63ed70]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63ed70]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63ed70]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63ed70]
sub edi, 1
jne 0x5855b0
pop edi
test esi, esi
je 0x58567a
nop dword [eax + eax]
movzx eax, byte [edx]
lea edx, [edx + 1]
xor eax, ecx
shr ecx, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x63ed70]
sub esi, 1
jne 0x585660
not ecx
mov eax, ecx
pop esi
pop ebp
ret
Function at 0x585ad0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg
Hash data with crc32
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
mov edi, dword [ebp + 8]
cmp byte [esi + 0x2d], 0
je 0x585ba8
mov eax, dword [esi + 0x3c]
mov ebx, dword [ebp + 0xc]
test eax, eax
je 0x585b04
cmp dword [esi + 0x40], ebx
jae 0x585b04
push eax
call fcn.005b1ce6
add esp, 4
mov dword [esi + 0x3c], 0
cmp dword [esi + 0x3c], 0
jne 0x585b1c
lea eax, [ebx + ebx]
push eax
call fcn.005b1ceb
add esp, 4
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], ebx
push ebx
push edi
push dword [esi + 0x3c]
call fcn.005ca980
xor edx, edx
add esp, 0xc
mov dword [ebp + 8], edx
test ebx, ebx
je 0x585ba5
mov eax, dword [esi + 0x3c]
mov ecx, dword [esi + 0x30]
shr ecx, 8
mov bl, byte [edx + eax]
mov edx, dword [esi + 0x38]
mov edi, edx
movsx eax, bl
and edi, 0xfffd
xor eax, dword [esi + 0x30]
or edi, 2
movzx eax, al
mov eax, dword [eax*4 + 0x63ed70]
xor eax, ecx
mov ecx, edi
mov dword [esi + 0x30], eax
xor ecx, 1
movzx eax, al
add eax, dword [esi + 0x34]
imul eax, eax, 0x8088405
imul ecx, edi
inc eax
mov dword [esi + 0x34], eax
shr eax, 0x18
xor eax, edx
shr ecx, 8
movzx eax, al
xor cl, bl
shr edx, 8
xor edx, dword [eax*4 + 0x63ed70]
mov dword [esi + 0x38], edx
mov edx, dword [ebp + 8]
mov eax, dword [esi + 0x3c]
mov byte [edx + eax], cl
inc edx
mov dword [ebp + 8], edx
cmp edx, dword [ebp + 0xc]
jb 0x585b32
mov edi, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x585be6
mov edx, dword [esi + 0x24]
mov ebx, dword [ebp + 0xc]
lea eax, [edx + ebx]
cmp eax, dword [esi + 0x28]
jb 0x585bcd
pop edi
mov dword [esi + 0x14], 0x30000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
push ebx
add ecx, edx
push edi
push ecx
call fcn.005ca980
add esp, 0xc
mov eax, ebx
add dword [esi + 0x24], ebx
pop edi
pop esi
pop ebx
pop ebp
ret 8
mov eax, dword [esi + 4]
test eax, eax
je 0x585c08
push 0
lea ecx, [ebp + 8]
push ecx
push dword [ebp + 0xc]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
pop ebp
ret 8
pop edi
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop esi
pop ebx
pop ebp
ret 8
Function at 0x585fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
mov edx, dword [edi + 0x84]
test edx, edx
je 0x586043
mov ecx, dword [edi + 0x8c]
mov ebx, dword [edi + 0x88]
cmp ecx, ebx
jae 0x58608b
mov esi, dword [ebp + 8]
lea eax, [ecx + edx]
sub ebx, ecx
cmp ebx, dword [ebp + 0xc]
cmova ebx, dword [ebp + 0xc]
push ebx
push eax
push esi
call fcn.005ca980
mov ecx, dword [edi + 0x78]
mov edx, esi
add dword [edi + 0x8c], ebx
add dword [edi + 0x74], ebx
push ebx
call fcn.00585590
add esp, 0x10
mov dword [edi + 0x78], eax
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov eax, dword [edi + 0x7c]
test eax, eax
je 0x586084
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 4]
push 0
push ecx
push dword [ebp + 0xc]
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x58608b
mov esi, dword [ebp - 4]
mov edx, ebx
mov ecx, dword [edi + 0x78]
add dword [edi + 0x74], esi
push esi
call fcn.00585590
add esp, 4
mov dword [edi + 0x78], eax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [edi + 0x14], 0x1000000
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 8