joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51c5a3
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
lea eax, [esp + 0x10]
push ebx
push esi
push eax
push dword [esp + 0x78]
xor esi, esi
mov ebx, esi
call dword [sym.imp.USER32.dll_GetIconInfo]
test eax, eax
je 0x51c73a
push dword [esp + 0x28]
call fcn.0051d369
test eax, eax
je 0x51c5e3
push dword [esp + 0x24]
mov ebx, dword [esp + 0x2c]
call dword [sym.imp.GDI32.dll_DeleteObject]
jmp 0x51c73a
push edi
push esi
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x51c727
push ebp
mov ebp, dword [sym.imp.GDI32.dll_GetObjectW]
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x51c71f
push 0x2c
lea eax, [esp + 0x50]
push esi
push eax
call fcn.004d6ec0
mov eax, dword [esp + 0x44]
add esp, 0xc
mov dword [esp + 0x50], eax
mov eax, dword [esp + 0x3c]
mov dword [esp + 0x54], eax
xor eax, eax
push 0x20
inc eax
mov dword [esp + 0x50], 0x28
mov word [esp + 0x5c], ax
pop eax
push esi
push esi
mov word [esp + 0x62], ax
lea eax, [esp + 0x1c]
push eax
push esi
lea eax, [esp + 0x5c]
mov dword [esp + 0x6c], esi
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebx, eax
mov dword [esp + 0x1c], ebx
test ebx, ebx
je 0x51c71f
mov esi, dword [sym.imp.GDI32.dll_SelectObject]
push ebx
push edi
call esi
push 2
xor eax, eax
push eax
push eax
push dword [esp + 0x48]
push dword [esp + 0x48]
push dword [esp + 0x90]
push eax
push eax
push edi
call dword [sym.imp.USER32.dll_DrawIconEx]
push dword [esp + 0x2c]
push edi
call esi
lea eax, [esp + 0x34]
push eax
push 0x18
push dword [esp + 0x38]
call ebp
cmp eax, 0x18
jne 0x51c71f
mov ebp, dword [esp + 0x38]
xor esi, esi
mov edx, dword [esp + 0x3c]
mov eax, ebp
shl eax, 2
mov dword [esp + 0x10], eax
test edx, edx
jle 0x51c71f
mov eax, dword [sym.imp.GDI32.dll_GetPixel]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x14]
mov ecx, edx
sub ecx, esi
add eax, 3
dec ecx
xor ebx, ebx
imul ecx, dword [esp + 0x10]
add eax, ecx
mov dword [esp + 0x7c], eax
test ebp, ebp
jle 0x51c716
push esi
push ebx
push edi
call dword [esp + 0x24]
mov ecx, dword [esp + 0x7c]
test eax, eax
setne al
dec al
mov byte [ecx], al
add ecx, 4
mov ebp, dword [esp + 0x38]
inc ebx
mov dword [esp + 0x7c], ecx
cmp ebx, ebp
jl 0x51c6ee
mov edx, dword [esp + 0x3c]
inc esi
cmp esi, edx
jl 0x51c6d1
mov ebx, dword [esp + 0x1c]
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop ebp
push dword [esp + 0x28]
mov esi, dword [sym.imp.GDI32.dll_DeleteObject]
call esi
push dword [esp + 0x2c]
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
add esp, 0x68
ret 4
Function at 0x51cfca
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebp
xor ebp, ebp
cmp dword [0x696618], ebp
je 0x51d1b0
push ebx
mov ebx, dword [esp + 0x60]
push edi
test ebx, ebx
je 0x51cfea
mov edi, ebx
jmp 0x51cffc
push 0
call dword [sym.imp.GDI32.dll_CreateCompatibleDC]
mov edi, eax
test edi, edi
je 0x51d1ae
lea eax, [esp + 0x18]
push eax
push 0x18
push dword [esp + 0x68]
call dword [sym.imp.GDI32.dll_GetObjectW]
test eax, eax
je 0x51d1a3
mov ebp, dword [esp + 0x1c]
lea eax, [esp + 0x30]
push esi
mov esi, dword [esp + 0x24]
push 0x2c
push 0
push eax
mov dword [esp + 0x20], ebp
call fcn.004d6ec0
add esp, 0xc
mov dword [esp + 0x34], 0x28
xor eax, eax
mov dword [esp + 0x38], ebp
inc eax
mov dword [esp + 0x3c], esi
mov word [esp + 0x40], ax
xor ecx, ecx
push 0x20
pop eax
push ecx
push ecx
mov word [esp + 0x4a], ax
lea eax, [esp + 0x18]
push eax
push ecx
lea eax, [esp + 0x44]
mov dword [esp + 0x54], ecx
push eax
push edi
call dword [sym.imp.GDI32.dll_CreateDIBSection]
mov ebp, eax
mov dword [esp + 0x18], ebp
test ebp, ebp
je 0x51d1a2
push 0
lea eax, [esp + 0x38]
push eax
push dword [esp + 0x18]
push esi
push 0
push dword [esp + 0x78]
push edi
call dword [sym.imp.GDI32.dll_GetDIBits]
imul esi, dword [esp + 0x14]
test esi, esi
jle 0x51d1a2
cmp dword [esp + 0x6c], 0
je 0x51d14f
mov ebp, dword [esp + 0x10]
push 0xa
pop ebx
movzx ecx, byte [ebp + 1]
xor edx, edx
movzx eax, byte [ebp + 2]
lea eax, [eax + ecx*2]
movzx ecx, byte [ebp]
imul eax, eax, 3
add eax, ecx
div ebx
mov cl, al
cmp cl, 0x40
jae 0x51d0e3
movzx eax, cl
sub eax, 0x40
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax + 0x40]
jmp 0x51d0f9
cmp cl, 0xc0
jbe 0x51d0f9
movzx eax, cl
sub eax, 0xc0
imul eax, eax, 7
cdq
idiv ebx
lea ecx, [eax - 0x40]
movzx eax, byte [ebp + 3]
movd xmm1, eax
cvtdq2ps xmm1, xmm1
movzx eax, cl
movd xmm0, eax
divss xmm1, dword [0x6356d8]
cvtdq2ps xmm0, xmm0
mulss xmm1, xmm0
cvttss2si ecx, xmm1
mov byte [ebp], cl
mov eax, dword [esp + 0x10]
mov byte [eax + 1], cl
mov ecx, dword [esp + 0x10]
mov al, byte [ecx]
mov byte [ecx + 2], al
mov ebp, dword [esp + 0x10]
add ebp, 4
mov dword [esp + 0x10], ebp
sub esi, 1
jne 0x51d0b3
mov ebx, dword [esp + 0x68]
mov ebp, dword [esp + 0x18]
jmp 0x51d1a2
mov edx, dword [esp + 0x10]
mov al, byte [edx + 3]
cmp al, 0xff
jae 0x51d196
movzx ecx, al
movzx eax, byte [edx]
imul ecx, eax
shr ecx, 8
mov byte [edx], cl
mov edx, dword [esp + 0x10]
movzx eax, byte [edx + 1]
movzx ecx, byte [edx + 3]
imul ecx, eax
shr ecx, 8
mov byte [edx + 1], cl
mov edx, dword [esp + 0x10]
movzx ecx, byte [edx + 3]
movzx eax, byte [edx + 2]
imul ecx, eax
shr ecx, 8
mov byte [edx + 2], cl
mov edx, dword [esp + 0x10]
add edx, 4
mov dword [esp + 0x10], edx
sub esi, 1
jne 0x51d153
pop esi
test ebx, ebx
jne 0x51d1ae
push edi
call dword [sym.imp.GDI32.dll_DeleteDC]
pop edi
pop ebx
mov eax, ebp
pop ebp
add esp, 0x50
ret 0xc
Function at 0x51e350
Capabilities:
Write file on windows

Disassembly:
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov eax, dword [edi]
test eax, eax
je 0x51e388
push 0
lea ecx, [esp + 0x10]
push ecx
push esi
push dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x51e383
xor eax, eax
cmp dword [esp + 0xc], esi
pop edi
sete al
pop esi
ret
pop edi
xor eax, eax
pop esi
ret
mov eax, dword [edi + 4]
add eax, dword [edi + 8]
push esi
push dword [esp + 0x14]
push eax
call fcn.004da640
add dword [edi + 8], esi
add esp, 0xc
mov eax, 1
pop edi
pop esi
ret
Function at 0x51ecde
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x3c]
xor ebx, ebx
cmp esi, 1
je 0x51ed0e
cmp esi, 2
je 0x51ed0e
cmp esi, 4
je 0x51ed0e
cmp esi, 8
je 0x51ed0e
cmp esi, 0x18
je 0x51ed0e
cmp esi, 0x20
je 0x51ed0e
xor eax, eax
jmp 0x51eedb
mov ecx, dword [0x69663c]
push ebp
push edi
xor edi, edi
mov dword [esp + 0x10], edi
test ecx, ecx
jle 0x51eed7
mov edx, dword [esp + 0x28]
mov eax, dword [edi*4 + 0x6976f8]
cmp dword [eax], edx
je 0x51ed41
inc edi
mov dword [esp + 0x10], edi
cmp edi, ecx
jl 0x51ed28
jmp 0x51eed7
cmp dword [esp + 0x38], 0x20
jne 0x51eeae
mov eax, dword [eax + 8]
test eax, eax
je 0x51ed81
cmp esi, 0x20
je 0x51ed5d
cmp esi, 0xffffffff
jne 0x51ed81
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call eax
jmp 0x51eed5
mov eax, dword [esp + 0x2c]
inc eax
imul ebp, eax, 3
and ebp, 0xfffffffc
mov eax, ebp
mov dword [esp + 0x14], ebp
imul eax, dword [esp + 0x30]
push eax
push 0
push dword [0x694170]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esp + 0x18], eax
test eax, eax
je 0x51eed7
mov ebx, dword [esp + 0x30]
test ebx, ebx
jle 0x51ee79
mov edx, dword [esp + 0x24]
mov ecx, eax
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x38], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ecx
mov esi, edx
test eax, eax
jle 0x51ee58
mov ebp, ecx
mov edi, eax
mov ecx, 0xff
movzx eax, byte [esi + 2]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 2], al
movzx eax, byte [esi + 1]
sub eax, ecx
movzx ecx, byte [esi + 3]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp + 1], al
movzx eax, byte [esi]
lea esi, [esi + 4]
sub eax, ecx
movzx ecx, byte [esi - 1]
imul eax, ecx
mov ecx, 0xff
add eax, 0xfe01
cdq
idiv ecx
mov byte [ebp], al
lea ebp, [ebp + 3]
sub edi, 1
jne 0x51ede7
mov ebp, dword [esp + 0x14]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x30]
add edx, dword [esp + 0x34]
add ecx, ebp
sub dword [esp + 0x24], 1
mov dword [esp + 0x30], edx
mov dword [esp + 0x38], ecx
jne 0x51edd4
mov esi, dword [esp + 0x44]
mov edi, dword [esp + 0x10]
mov eax, dword [edi*4 + 0x6976f8]
push esi
push dword [esp + 0x44]
mov esi, dword [esp + 0x20]
push dword [esp + 0x44]
push ebp
push ebx
push dword [esp + 0x40]
push esi
push dword [esp + 0x3c]
call dword [eax + 4]
push esi
push 0
push dword [0x694170]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x51eed7
cmp dword [esp + 0x38], 0x18
jne 0x51eed7
push esi
push dword [esp + 0x44]
push dword [esp + 0x44]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x40]
push dword [esp + 0x3c]
push dword [esp + 0x3c]
call dword [eax + 4]
mov ebx, eax
pop edi
mov eax, ebx
pop ebp
pop esi
pop ebx
add esp, 0xc
ret 0x28
Function at 0x522729
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push dword [0x69664c]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
jne 0x52278a
push esi
push dword [0x696648]
push 8
push dword [0x694170]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edi, eax
push edi
push dword [0x69664c]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov esi, dword [0x696644]
jmp 0x52277a
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x522778
mov eax, dword [esi + 8]
add eax, edi
push eax
call ecx
pop ecx
mov esi, dword [esi]
test esi, esi
jne 0x522768
push edi
push 0x5226c7
call fcn.005dd64e
pop esi
mov eax, dword [esp + 8]
add eax, edi
pop edi
ret 4

Function at 0x522794
Capabilities:
Allocate thread local storage
Get thread local storage value
Set thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x14]
mov ecx, edi
and ecx, 3
je 0x5227aa
push 4
pop eax
sub eax, ecx
add edi, eax
mov esi, dword [0x696648]
mov ebx, dword [sym.imp.KERNEL32.dll_TlsSetValue]
test esi, esi
jne 0x5227e3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
push edi
push 8
push dword [0x694170]
mov dword [0x69664c], eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
push eax
push dword [0x69664c]
call ebx
mov esi, dword [0x696648]
lea eax, [edi + esi]
push eax
push dword [0x69664c]
mov dword [0x696648], eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push eax
push 8
push dword [0x694170]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ebp, eax
push ebp
push dword [0x69664c]
call ebx
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x1c]
test edi, edi
jne 0x522822
test ebx, ebx
je 0x522843
push 0x14
push 0x696644
call fcn.00523089
pop ecx
pop ecx
mov dword [eax], esi
mov dword [eax + 4], edi
mov dword [eax + 8], ebx
test edi, edi
je 0x522843
lea ecx, [esi + ebp]
push ecx
call edi
pop ecx
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret 0xc

Function at 0x523210
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
push dword [0x68fa88]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push edi
dec dword [eax + 0x19c]
mov ecx, dword [eax + 0x19c]
mov esi, dword [eax + ecx*4 + 0xc]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
ret

Function at 0x523250
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
dec dword [edx + 0x19c]
mov ecx, dword [edx + 0x19c]
mov eax, dword [edx + ecx*4 + 0xc]
mov dword [edx + 8], eax
ret

Function at 0x523280
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
dec dword [eax + 0x19c]
mov ecx, dword [eax + 0x19c]
mov ecx, dword [eax + ecx*4 + 0xc]
mov dword [eax + 8], ecx
mov eax, dword [eax]
add eax, ecx
ret
Function at 0x5232b0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, eax
dec dword [edx + 0x19c]
mov ecx, dword [edx + 0x19c]
mov eax, dword [edx + ecx*4 + 0xc]
add eax, dword [edx]
ret

Function at 0x5232e0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edx, dword [eax + 0x19c]
mov ecx, dword [eax + 8]
mov dword [eax + edx*4 + 0xc], ecx
inc dword [eax + 0x19c]
ret

Function at 0x523300
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov edi, eax
mov ebp, dword [esp + 0x14]
mov esi, dword [edi + 8]
mov ecx, dword [ebp]
sub esi, ebx
lea eax, [esi + 0xa]
push eax
test ecx, ecx
jne 0x523339
push ecx
push dword [0x697788]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
jmp 0x523348
push ecx
push 0
push dword [0x697788]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov ecx, eax
shr esi, 1
mov dword [ebp], ecx
mov eax, dword [edi]
push esi
add eax, ebx
push eax
push ecx
call fcn.005237d0
mov dword [edi + 8], ebx
pop edi
pop esi
pop ebp
pop ebx
ret 8

Function at 0x5233c0
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
add dword [eax + 8], 2
ret

Function at 0x5234f0
Capabilities:
Get thread local storage value

Disassembly:
push esi
push edi
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
push dword [esp + 0x10]
mov esi, dword [esp + 0x18]
mov edi, eax
mov ecx, dword [edi]
add ecx, esi
push ecx
push dword [esp + 0x14]
call fcn.005f3f19
add esp, 0xc
mov dword [edi + 8], esi
pop edi
pop esi
ret 0xc

Function at 0x5236b0
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push ebp
push esi
push edi
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ebx, dword [esp + 0x18]
mov esi, eax
cmp ebx, 0xffffffff
jne 0x5236ce
mov ebx, dword [esi + 8]
mov eax, dword [esp + 0x14]
mov edx, dword [esi + 4]
mov ecx, dword [esi + 8]
lea ebp, [eax + eax]
add ecx, ebp
lea eax, [edx - 4]
cmp ecx, eax
jl 0x5236f2
lea eax, [ecx + 0x4000]
mov dword [esi + 4], eax
add eax, 0xa
jmp 0x52370d
cmp edx, 0x100000
jle 0x523720
cmp ecx, 0x100000
jge 0x523707
mov ecx, 0x100000
mov dword [esi + 4], ecx
lea eax, [ecx + 0xa]
push eax
push dword [esi]
push 0
push dword [0x697788]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov dword [esi], eax
lea eax, [ebx + ebp]
mov dword [esi + 8], eax
mov eax, dword [esi]
pop edi
pop esi
pop ebp
add eax, ebx
pop ebx
ret 8

Function at 0x523740
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [esp + 4]
neg ecx
add ecx, ecx
add dword [eax + 8], ecx
ret 4
Function at 0x523760
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, eax
mov eax, dword [esp + 4]
mov edx, dword [ecx]
cmp eax, edx
jb 0x523787
mov ecx, dword [ecx + 8]
add ecx, edx
cmp eax, ecx
ja 0x523787
sub eax, edx
inc eax
ret 4
xor eax, eax
ret 4

Function at 0x523790
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov ecx, dword [eax]
mov eax, dword [esp + 4]
dec eax
add eax, ecx
ret 4

Function at 0x523810
Capabilities:
Get thread local storage value

Disassembly:
push dword [0x68fa88]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov eax, dword [eax]
add eax, dword [esp + 4]
ret 4
Function at 0x525680
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x525805
cmp dword [esi + 0x20], 0
je 0x525805
cmp dword [esi + 0x24], 0
je 0x525805
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x525805
cmp dword [eax], esi
jne 0x525805
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x5256e5
cmp eax, 0x39
je 0x5256e5
cmp eax, 0x45
je 0x5256e5
cmp eax, 0x49
je 0x5256e5
cmp eax, 0x5b
je 0x5256e5
cmp eax, 0x67
je 0x5256e5
cmp eax, 0x71
je 0x5256e5
cmp eax, 0x29a
jne 0x525805
push edi
mov edi, dword [esi + 0x1c]
mov dword [esi + 0x14], 0
mov dword [esi + 8], 0
mov dword [esi + 0x18], 0
mov dword [esi + 0x2c], 2
mov ecx, dword [edi + 0x18]
mov eax, dword [edi + 8]
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], eax
test ecx, ecx
jns 0x52571e
neg ecx
mov dword [edi + 0x18], ecx
cmp ecx, 2
mov eax, 0x2a
push 0
mov edx, 0x39
cmove eax, edx
push 0
mov dword [edi + 4], eax
push 0
jne 0x525740
call fcn.0052a140
jmp 0x525745
call fcn.00529d80
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.00528610
mov esi, dword [esi + 0x1c]
xor edx, edx
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 0x4c]
add eax, eax
mov dword [esi + 0x3c], eax
mov eax, dword [esi + 0x44]
mov word [eax + ecx*2 - 2], dx
mov eax, dword [esi + 0x4c]
lea eax, [eax*2 - 2]
push eax
push edx
push dword [esi + 0x44]
call fcn.004d6ec0
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x635812]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x635810]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x635814]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x635816]
pop edi
mov dword [esi + 0x7c], ecx
mov dword [esi + 0x6c], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x74], 0
mov dword [esi + 0x16b4], 0
mov dword [esi + 0x78], 2
mov dword [esi + 0x60], 2
mov dword [esi + 0x68], 0
mov dword [esi + 0x48], 0
pop esi
ret
mov eax, 0xfffffffe
pop esi
ret
Function at 0x52daa0
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0x1c]
cmp dword [esp + 0x14], esi
cmovb esi, dword [esp + 0x14]
test esi, esi
je 0x52db44
push ebx
mov ebx, dword [esp + 0x1c]
push ebp
mov ebp, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
sub ebp, ebx
mov dword [esp + 0x10], esi
nop dword [eax]
mov eax, dword [edi + 8]
mov dl, byte [ebx + ebp]
or eax, 2
mov ecx, eax
mov byte [esp + 0x28], dl
xor ecx, 1
imul ecx, eax
lea eax, [esp + 0x28]
push 1
push eax
shr ecx, 8
xor cl, dl
mov byte [ebx], cl
mov eax, dword [edi]
not eax
push eax
call fcn.0052a140
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x30], al
lea eax, [esp + 0x30]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.0052a140
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x52dad0
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
xor eax, eax
pop esi
pop ecx
ret
Function at 0x52f810
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
sub esp, 0x1c
push ebx
mov ebx, dword [esp + 0x24]
push ebp
mov eax, dword [ebx + 0x440]
mov ebp, dword [eax]
cmp byte [ebp + 0x1e40], 0
je 0x52f832
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebp + 0x44]
test byte [eax + 0x66], 8
jne 0x52f869
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
test ecx, ecx
jg 0x52f869
jl 0x52f84c
cmp eax, 0xc
jae 0x52f869
push ecx
push eax
push str.Truncated_Zip_encrypted_body:_only__jd_bytes_available
push 0x2a
push ebx
call fcn.00538f10
add esp, 0x14
mov eax, 0xffffffe2
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0xc
push ebx
call fcn.00536620
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x52f899
push str.Truncated_ZIP_file_data
push 0x2a
push ebx
call fcn.00538f10
add esp, 0xc
mov eax, 0xffffffe2
pop ebp
pop ebx
add esp, 0x1c
ret
push esi
push edi
xor esi, esi
push ebx
mov dword [esp + 0x1c], esi
call fcn.00542250
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x52f981
lea edi, [ebp + 0x1e34]
nop word [eax + eax]
mov esi, ebx
lea ecx, [esi + 1]
mov al, byte [esi]
inc esi
test al, al
jne 0x52f8c5
mov dword [edi], 0x12345678
mov dword [edi + 4], 0x23456789
mov dword [edi + 8], 0x34567890
sub esi, ecx
je 0x52f938
mov al, byte [ebx]
mov byte [esp + 0x10], al
lea eax, [esp + 0x10]
push 1
push eax
mov eax, dword [edi]
not eax
push eax
call fcn.0052a140
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x27], al
lea eax, [esp + 0x27]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.0052a140
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x52f8e4
push 0xc
lea eax, [esp + 0x24]
push eax
push 0xc
push dword [esp + 0x28]
push edi
call fcn.00531010
mov ecx, dword [ebp + 0x44]
add esp, 0x14
mov al, byte [esp + 0x2b]
cmp al, byte [ecx + 0x6b]
je 0x52f9b3
mov esi, dword [esp + 0x18]
cmp esi, 0x2710
jg 0x52f9ac
push dword [esp + 0x30]
inc esi
mov dword [esp + 0x1c], esi
call fcn.00542250
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x52f8c0
test esi, esi
mov eax, str.Incorrect_passphrase
mov ecx, str.Passphrase_required_for_this_entry
cmovle eax, ecx
push eax
push 0xffffffffffffffff
push dword [esp + 0x38]
call fcn.00538f10
add esp, 0xc
mov eax, 0xffffffe7
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
push str.Too_many_incorrect_passphrases
jmp 0x52f991
mov ebx, dword [esp + 0x30]
push 0
push 0xc
push ebx
call fcn.00536640
mov eax, dword [ebp + 0x44]
add esp, 0xc
mov byte [ebp + 0x1e40], 1
test byte [eax + 0x66], 8
jne 0x52f9dc
add dword [ebp + 0x48], 0xfffffff4
adc dword [ebp + 0x4c], 0xffffffff
add dword [ebp + 0x50], 0xc
push ebx
adc dword [ebp + 0x54], 0
mov dword [ebp + 0x1e2c], 0
call fcn.005311b0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x531010
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, dword [esp + 0x18]
cmp dword [esp + 0x10], esi
cmovb esi, dword [esp + 0x10]
test esi, esi
je 0x53109e
push ebx
mov ebx, dword [esp + 0x18]
push ebp
mov ebp, dword [esp + 0x14]
push edi
mov edi, dword [esp + 0x14]
sub ebp, ebx
mov eax, dword [edi + 8]
or eax, 2
mov ecx, eax
xor ecx, 1
imul ecx, eax
lea eax, [esp + 0x24]
push 1
push eax
shr ecx, 8
xor cl, byte [ebx + ebp]
mov byte [ebx], cl
mov eax, dword [edi]
not eax
mov byte [esp + 0x2c], cl
push eax
call fcn.0052a140
not eax
mov dword [edi], eax
movzx eax, al
add eax, dword [edi + 4]
imul eax, eax, 0x8088405
push 1
inc eax
mov dword [edi + 4], eax
shr eax, 0x18
mov byte [esp + 0x2c], al
lea eax, [esp + 0x2c]
push eax
mov eax, dword [edi + 8]
not eax
push eax
call fcn.0052a140
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x531033
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x539130
Capabilities:
Create new key via cryptacquirecontext
Generate random numbers via winapi

Disassembly:
push ecx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
lea eax, [esp + 4]
push 0xf0000000
push 1
push 0
push 0
push eax
call esi
test eax, eax
jne 0x539176
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x80090016
jne 0x53916e
push 8
push 1
push 0
push 0
lea eax, [esp + 0x14]
push eax
call esi
test eax, eax
jne 0x539176
mov eax, 0xffffffe7
pop esi
pop ecx
ret
push dword [esp + 0xc]
push dword [esp + 0x14]
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
push 0
push dword [esp + 8]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_CryptReleaseContext]
xor ecx, ecx
mov eax, 0xffffffe7
test esi, esi
pop esi
cmovne eax, ecx
pop ecx
ret