joyce8/EMBER2024-capa huggingface dataset:
Function at 0x5aa8d2
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x696ba8
call fcn.006783e4
push ecx
push ebx
push esi
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x10], esi
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
lea ecx, [esi + 0x18]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.Scintilla::Internal::ListBoxX.0
mov dword [esi + 0xc], 0xa
mov dword [esi + 0x10], ebx
mov dword [esi + 0x14], ebx
call fcn.005e72fa
mov ecx, dword [ebp - 0xc]
xorps xmm0, xmm0
mov dword [esi + 0x28], ebx
mov eax, esi
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov byte [esi + 0x44], bl
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x58], ebx
mov dword [esi + 0x60], ebx
mov dword [esi + 0x64], ebx
mov dword [esi + 0x6c], ebx
mov dword [esi + 0x48], 9
mov dword [esi + 0x50], 8
mov dword [esi + 0x5c], 0x60
mov dword [esi + 0x68], 1
movups xmmword [esi + 0x70], xmm0
movups xmmword [esi + 0x80], xmm0
movups xmmword [esi + 0x90], xmm0
movups xmmword [esi + 0xa0], xmm0
mov dword [esi + 0xb0], ebx
mov byte [esi + 0xb8], bl
mov byte [esi + 0xc0], bl
mov byte [esi + 0xc8], bl
mov byte [esi + 0xd0], bl
mov dword [esi + 0xd4], ebx
mov dword [esi + 0xd8], 0x40000
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x5aab15
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x69675d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
movd xmm0, dword [ebp + 0xc]
xor eax, eax
movd xmm1, dword [ebp + 0x10]
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
lea ecx, [ebp - 0x24]
cvtdq2ps xmm0, xmm0
push ecx
push esi
mov dword [edi + 4], vtable.Scintilla::Internal::SurfaceD2D.1.0
lea ebx, [edi + 0x14]
mov dword [edi + 8], eax
mov byte [edi + 0xc], al
mov dword [edi + 0x10], eax
mov dword [ebx], eax
mov byte [edi + 0x18], al
mov dword [edi + 0x28], 0x60
cvtdq2ps xmm1, xmm1
mov dword [edi], vtable.Scintilla::Internal::SurfaceD2D.0
mov dword [edi + 0x1c], eax
mov dword [edi + 0x20], eax
mov dword [edi + 0x24], 0xf
mov dword [edi + 0x2c], 1
mov dword [edi + 0x30], eax
mov dword [edi + 0x34], eax
mov eax, dword [esi]
movss dword [ebp - 0x1c], xmm0
movss dword [ebp - 0x18], xmm1
call dword [eax + 0xc8]
push ebx
push 0
mov ecx, dword [eax]
mov eax, dword [esi]
mov dword [ebp - 0x14], ecx
lea ecx, [ebp - 0x14]
push ecx
push 0
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x10], 3
push ecx
push esi
call dword [eax + 0x30]
test eax, eax
js 0x5aabe0
mov eax, dword [ebx]
mov ecx, edi
push eax
mov dword [edi + 0x10], eax
call fcn.005b0725
mov eax, dword [edi + 0x10]
push eax
mov ecx, dword [eax]
call dword [ecx + 0xc0]
mov byte [edi + 0x18], 1
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x18]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x1c]
mov dword [edi + 0x28], eax
mov eax, edi
mov dword [edi + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x5ab5a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
push ebx
push ebp
push esi
push edi
sub esp, 0x20
lea eax, [esp + 0x58]
mov ebp, ecx
lea esi, [esp + 0x74]
mov dword [esp + 0x44], ebp
push 8
pop ecx
mov edi, esp
rep movsd dword es:[edi], dword [esi]
push eax
call fcn.005a7dcd
mov esi, eax
lea edi, [esp + 0x4c]
add esp, 0x24
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x30]
sub edi, dword [esp + 0x28]
mov ebx, dword [esp + 0x34]
sub ebx, dword [esp + 0x2c]
mov dword [esp + 0x18], edi
mov dword [esp + 0x20], ebx
test edi, edi
jle 0x5ab74e
push ebx
push edi
push dword [ebp + 0xc]
lea ecx, [esp + 0x44]
call fcn.005aa5fd
cmp dword [esp + 0x38], 0
je 0x5ab743
cmp dword [esp + 0x3c], 0
je 0x5ab743
cmp dword [esp + 0x4c], 0
je 0x5ab743
cvttsd2si ebp, qword [esp + 0x74]
cmp ebx, edi
mov eax, edi
cmovl eax, ebx
cdq
sub eax, edx
sar eax, 1
add eax, 0xfffffffe
push dword [esp + 0x7c]
cmp eax, ebp
cmovl ebp, eax
mov dword [esp + 0x78], ebp
call fcn.005b20e1
push dword [esp + 0x88]
mov dword [esp + 0x18], eax
call fcn.005b20e1
pop ecx
xor edx, edx
mov dword [esp + 0x18], eax
pop ecx
test ebx, ebx
jle 0x5ab6b2
mov eax, dword [esp + 0x44]
mov ebp, dword [esp + 0x4c]
shl eax, 2
mov dword [esp + 0x1c], eax
xor ecx, ecx
test edi, edi
jle 0x5ab6a7
mov esi, ebp
test ecx, ecx
je 0x5ab695
lea eax, [edi - 1]
cmp ecx, eax
je 0x5ab695
test edx, edx
je 0x5ab695
lea eax, [ebx - 1]
cmp edx, eax
mov eax, dword [esp + 0x10]
jne 0x5ab699
mov eax, dword [esp + 0x14]
mov dword [esi], eax
inc ecx
add esi, 4
cmp ecx, edi
jl 0x5ab67b
mov eax, dword [esp + 0x1c]
inc edx
add ebp, eax
cmp edx, ebx
jl 0x5ab673
mov ebp, dword [esp + 0x74]
xor esi, esi
test ebp, ebp
jle 0x5ab6f4
mov edi, dword [esp + 0x74]
lea eax, [esi + 1]
xor ebp, ebp
mov dword [esp + 0x10], eax
test eax, eax
jle 0x5ab6e6
mov edi, eax
push 0
push esi
push ebp
lea ecx, [esp + 0x44]
call fcn.005b0d07
inc ebp
dec esi
cmp ebp, edi
jl 0x5ab6cb
mov edi, dword [esp + 0x74]
mov eax, dword [esp + 0x10]
mov esi, eax
cmp esi, edi
jl 0x5ab6bc
mov edi, dword [esp + 0x18]
mov ebp, dword [esp + 0x74]
xor esi, esi
inc esi
cmp ebp, esi
jle 0x5ab71c
mov ebx, dword [esp + 0x14]
lea edi, [ebp - 1]
push ebx
push edi
push esi
lea ecx, [esp + 0x44]
call fcn.005b0d07
inc esi
dec edi
cmp esi, ebp
jl 0x5ab702
mov edi, dword [esp + 0x18]
mov ebx, dword [esp + 0x20]
push dword [0x6b8358]
mov eax, dword [esp + 0x28]
push ebx
push edi
push 0
push 0
push dword [esp + 0x4c]
push ebx
push edi
push dword [esp + 0x4c]
push dword [esp + 0x4c]
push dword [eax + 0xc]
call dword [sym.imp.GDI32.dll_GdiAlphaBlend]
lea ecx, [esp + 0x38]
call fcn.005aae59
jmp 0x5ab76d
push dword [esp + 0x84]
mov ecx, ebp
call fcn.005ab8f2
push dword [ebp + 0x1c]
lea eax, [esp + 0x2c]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_FrameRect]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x40
ret 0x40
Function at 0x5c50fc
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x5c5258
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x5c5258
cmp ecx, 0x29
jne 0x5c5163
cmp dword [esi + 0x10], 0
jne 0x5c5258
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x5c5260
cmp ecx, 0x5d
jne 0x5c5144
test dword [edi], edx
je 0x5c5250
movzx eax, byte [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.005c43c1
mov ecx, esi
call fcn.005c8cf6
mov ecx, esi
call fcn.005c8d77
mov al, 1
jmp 0x5c5103
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x5c5177
push 5
lea ecx, [esi + 0x24]
call fcn.005c8cb8
jmp 0x5c5151
cmp ecx, 0x5c
jne 0x5c51c2
mov ecx, esi
call fcn.005c8cf6
test byte [edi], 0x80
je 0x5c51b9
mov al, byte [esi + 0x48]
cmp al, 0x62
jne 0x5c51a2
push 4
lea ecx, [esi + 0x24]
call fcn.005c8cb8
mov ecx, esi
call fcn.005c8cf6
jmp 0x5c515f
cmp al, 0x42
jne 0x5c51b9
push 4
lea ecx, [esi + 0x24]
call fcn.005c8cb8
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x5c5199
mov ecx, esi
call fcn.005c53dd
jmp 0x5c5158
cmp ecx, 0x5b
jne 0x5c51e5
mov ecx, esi
call fcn.005c8cf6
mov ecx, esi
call fcn.005c5b98
push 4
push 0x5d
mov ecx, esi
call fcn.005c79c7
jmp 0x5c5158
cmp ecx, 0x28
jne 0x5c5212
mov ecx, esi
call fcn.005c8cf6
mov ecx, esi
call fcn.005c9a8d
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.005c79c7
test bl, bl
je 0x5c515f
jmp 0x5c5158
cmp ecx, 0x5e
jne 0x5c521e
push 2
jmp 0x5c5191
cmp ecx, 0x24
jne 0x5c522a
push 3
jmp 0x5c5191
cmp ecx, 0x2a
je 0x5c5254
cmp ecx, 0x2b
je 0x5c5254
cmp ecx, 0x3f
je 0x5c5254
cmp ecx, 0x7b
je 0x5c5254
cmp ecx, 0x7d
jne 0x5c5137
test dword [edi], edx
je 0x5c525c
jmp 0x5c5144
push 4
jmp 0x5c5262
push 0xa
jmp 0x5c5262
pop edi
pop esi
pop ebx
ret
push 6
jmp 0x5c5262
push 5
mov ecx, esi
call fcn.005c795f
int3
Function at 0x5c526a
Capabilities:
Parse credit card information

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
xor al, al
mov ecx, dword [esi + 0x4c]
cmp ecx, 0xffffffff
je 0x5c53cb
mov edx, 0x10000000
cmp ecx, 0x7c
je 0x5c53cb
cmp ecx, 0x29
jne 0x5c52d1
cmp dword [esi + 0x10], 0
jne 0x5c53cb
lea edi, [esi + 0x50]
test dword [edi], edx
je 0x5c53d3
cmp ecx, 0x5d
jne 0x5c52b2
test dword [edi], edx
je 0x5c53c3
movzx eax, word [esi + 0x48]
lea ecx, [esi + 0x24]
push eax
call fcn.005c4420
mov ecx, esi
call fcn.005c8d24
mov ecx, esi
call fcn.005c8e3c
mov al, 1
jmp 0x5c5271
lea edi, [esi + 0x50]
cmp ecx, 0x2e
jne 0x5c52e5
push 5
lea ecx, [esi + 0x24]
call fcn.005c8cb8
jmp 0x5c52bf
cmp ecx, 0x5c
jne 0x5c5335
mov ecx, esi
call fcn.005c8d24
test byte [edi], 0x80
je 0x5c532c
movzx eax, word [esi + 0x48]
mov ecx, eax
cmp eax, 0x62
jne 0x5c5314
push 4
lea ecx, [esi + 0x24]
call fcn.005c8cb8
mov ecx, esi
call fcn.005c8d24
jmp 0x5c52cd
cmp ecx, 0x42
jne 0x5c532c
push 4
lea ecx, [esi + 0x24]
call fcn.005c8cb8
mov eax, dword [esi + 0x28]
xor dword [eax + 8], 1
jmp 0x5c530b
mov ecx, esi
call fcn.005c5485
jmp 0x5c52c6
cmp ecx, 0x5b
jne 0x5c5358
mov ecx, esi
call fcn.005c8d24
mov ecx, esi
call fcn.005c5be1
push 4
push 0x5d
mov ecx, esi
call fcn.005c79e2
jmp 0x5c52c6
cmp ecx, 0x28
jne 0x5c5385
mov ecx, esi
call fcn.005c8d24
mov ecx, esi
call fcn.005c9b10
push 5
push 0x29
mov ecx, esi
mov bl, al
call fcn.005c79e2
test bl, bl
je 0x5c52cd
jmp 0x5c52c6
cmp ecx, 0x5e
jne 0x5c5391
push 2
jmp 0x5c5303
cmp ecx, 0x24
jne 0x5c539d
push 3
jmp 0x5c5303
cmp ecx, 0x2a
je 0x5c53c7
cmp ecx, 0x2b
je 0x5c53c7
cmp ecx, 0x3f
je 0x5c53c7
cmp ecx, 0x7b
je 0x5c53c7
cmp ecx, 0x7d
jne 0x5c52a5
test dword [edi], edx
je 0x5c53cf
jmp 0x5c52b2
push 4
jmp 0x5c53d5
push 0xa
jmp 0x5c53d5
pop edi
pop esi
pop ebx
ret
push 6
jmp 0x5c53d5
push 5
mov ecx, esi
call fcn.005c795f
int3

Function at 0x5cbd9a
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x6976ae
call fcn.006783e4
sub esp, 0x14
push ebx
mov ebx, ecx
xor eax, eax
mov dword [ebp - 0x10], ebx
push esi
push edi
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
mov dword [ebp - 4], eax
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], eax
or dword [ebx + 0x18], 0xffffffff
lea esi, [ebp - 0x20]
sub esp, 0x10
mov dword [ebp - 0x20], eax
mov edi, esp
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x14], eax
mov dword [ebx + 0x1c], eax
or dword [ebx + 0x20], 0xffffffff
movsd dword es:[edi], dword [esi]
mov dword [ebx + 0x24], eax
mov byte [ebp - 4], 1
mov dword [ebx + 0x28], eax
movsd dword es:[edi], dword [esi]
mov word [ebx + 0x2c], ax
mov dword [ebx + 0x30], 1
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.005cbf13
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret
Function at 0x5e740a
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push edi
mov edi, dword [esp + 0x14]
test edi, edi
je 0x5e748d
mov eax, dword [esp + 0xc]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1c]
lea ebp, [eax + 1]
mov dword [esp + 0x10], 0xff
lea ecx, [esi + 1]
sub esi, eax
mov dword [esp + 0x20], ecx
mov bl, byte [ecx + 2]
xor edx, edx
movzx eax, byte [esi + ebp - 1]
movzx ecx, bl
imul eax, ecx
div dword [esp + 0x10]
xor edx, edx
mov byte [ebp + 1], al
mov eax, dword [esp + 0x20]
movzx eax, byte [eax]
imul eax, ecx
div dword [esp + 0x10]
xor edx, edx
mov byte [ebp], al
lea ebp, [ebp + 4]
mov eax, dword [esp + 0x20]
movzx eax, byte [eax + 1]
imul eax, ecx
mov ecx, 0xff
mov byte [ebp - 2], bl
div ecx
mov ecx, dword [esp + 0x20]
add ecx, 4
mov byte [ebp - 5], al
mov dword [esp + 0x20], ecx
sub edi, 1
jne 0x5e7433
pop esi
pop ebp
pop ebx
pop edi
pop ecx
ret
Function at 0x5f1581
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
mov eax, 0x698684
call fcn.006783e4
push ecx
push esi
mov esi, ecx
xor ecx, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], vtable.Scintilla::Internal::LineLayout.0
mov dword [esi + 8], ecx
mov eax, dword [ebp + 8]
or dword [esi + 0x14], 0xffffffff
mov dword [esi + 0xc], ecx
mov dword [esi + 0x10], eax
mov dword [esi + 0x18], ecx
mov dword [esi + 0x1c], ecx
mov dword [esi + 0x20], ecx
mov dword [esi + 0x24], ecx
mov word [esi + 0x28], cx
mov dword [esi + 0x2c], ecx
mov dword [ebp - 4], ecx
mov dword [esi + 0x30], ecx
mov dword [esi + 0x34], ecx
mov dword [esi + 0x38], ecx
xor eax, eax
mov word [esi + 0x3c], ax
mov dword [esi + 0x40], ecx
push dword [ebp + 0xc]
xorps xmm0, xmm0
mov byte [ebp - 4], 4
mov ecx, esi
mov dword [esi + 0x44], 0x7ffffff
mov dword [esi + 0x48], 1
movsd qword [esi + 0x50], xmm0
call fcn.005f274f
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8

Function at 0x5f1e59
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push esi
push edi
push dword [esp + 0x18]
mov esi, 0x811c9dc5
push dword [esp + 0x18]
push esi
call fcn.005c79fd
add esp, 0xc
mov edi, eax
xor edx, edx
movzx ecx, byte [esp + edx + 0xc]
xor ecx, esi
imul esi, ecx, 0x1000193
inc edx
cmp edx, 4
jb 0x5f1e75
movzx ecx, byte [esp + 0x10]
lea eax, [esi + esi]
xor eax, ecx
xor eax, edi
pop edi
pop esi
ret
Function at 0x6004d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x600655
cmp dword [esi + 0x20], 0
je 0x600655
cmp dword [esi + 0x24], 0
je 0x600655
mov eax, dword [esi + 0x1c]
test eax, eax
je 0x600655
cmp dword [eax], esi
jne 0x600655
mov eax, dword [eax + 4]
cmp eax, 0x2a
je 0x600535
cmp eax, 0x39
je 0x600535
cmp eax, 0x45
je 0x600535
cmp eax, 0x49
je 0x600535
cmp eax, 0x5b
je 0x600535
cmp eax, 0x67
je 0x600535
cmp eax, 0x71
je 0x600535
cmp eax, 0x29a
jne 0x600655
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 0x60056e
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 0x600590
call fcn.00602fe0
jmp 0x600595
call fcn.00602d60
add esp, 0xc
mov dword [esi + 0x30], eax
mov dword [edi + 0x28], 0xfffffffe
push edi
call fcn.00603950
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.0052bb00
mov eax, dword [esi + 0x84]
add esp, 0x10
lea ecx, [eax + eax*2]
movzx eax, word [ecx*4 + 0x6bfc72]
mov dword [esi + 0x80], eax
movzx eax, word [ecx*4 + 0x6bfc70]
mov dword [esi + 0x8c], eax
movzx eax, word [ecx*4 + 0x6bfc74]
mov dword [esi + 0x90], eax
xor eax, eax
movzx ecx, word [ecx*4 + 0x6bfc76]
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 0x6070f0
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 0x607112
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret
mov eax, dword [ebp + 0x44]
test byte [eax + 0x66], 8
jne 0x607149
mov ecx, dword [ebp + 0x4c]
mov eax, dword [ebp + 0x48]
test ecx, ecx
jg 0x607149
jl 0x60712c
cmp eax, 0xc
jae 0x607149
push ecx
push eax
push str.Truncated_Zip_encrypted_body:_only__jd_bytes_available
push 0x2a
push ebx
call fcn.00611960
add esp, 0x14
mov eax, 0xffffffe2
pop ebp
pop ebx
add esp, 0x1c
ret
push 0
push 0xc
push ebx
call fcn.0060d4b0
add esp, 0xc
mov dword [esp + 0x14], eax
test eax, eax
jne 0x607179
push str.Truncated_ZIP_file_data
push 0x2a
push ebx
call fcn.00611960
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.00617950
mov ebx, eax
add esp, 4
test ebx, ebx
je 0x607261
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 0x6071a5
mov dword [edi], 0x12345678
mov dword [edi + 4], 0x23456789
mov dword [edi + 8], 0x34567890
sub esi, ecx
je 0x607218
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.00602fe0
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.00602fe0
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x6071c4
push 0xc
lea eax, [esp + 0x24]
push eax
push 0xc
push dword [esp + 0x28]
push edi
call fcn.00608650
mov ecx, dword [ebp + 0x44]
add esp, 0x14
mov al, byte [esp + 0x2b]
cmp al, byte [ecx + 0x6b]
je 0x607293
mov esi, dword [esp + 0x18]
cmp esi, 0x2710
jg 0x60728c
push dword [esp + 0x30]
inc esi
mov dword [esp + 0x1c], esi
call fcn.00617950
mov ebx, eax
add esp, 4
test ebx, ebx
jne 0x6071a0
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.00611960
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 0x607271
mov ebx, dword [esp + 0x30]
push 0
push 0xc
push ebx
call fcn.0060d4d0
mov eax, dword [ebp + 0x44]
add esp, 0xc
mov byte [ebp + 0x1e40], 1
test byte [eax + 0x66], 8
jne 0x6072bc
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.006086e0
add esp, 4
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret
Function at 0x608650
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 0x6086de
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.00602fe0
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.00602fe0
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x608673
pop edi
pop ebp
pop ebx
pop esi
ret
Function at 0x60cb60
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 0x60cc04
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.00602fe0
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.00602fe0
add esp, 0x18
lea ebx, [ebx + 1]
not eax
mov dword [edi + 8], eax
sub esi, 1
jne 0x60cb90
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 0x619ad0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebp
mov ebp, dword [esp + 0x10]
push esi
xor esi, esi
push edi
mov edi, dword [esp + 0x14]
test ebp, 0xffff7fff
jne 0x619bab
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x619b4a
call ebx
cmp eax, 3
jne 0x619b31
push edi
call fcn.00619ed0
mov esi, eax
add esp, 4
test esi, esi
jne 0x619b25
call fcn.0051fee0
pop edi
pop esi
pop ebp
mov dword [eax], 0x16
or eax, 0xffffffff
pop ebx
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x619b4a
call ebx
push eax
call fcn.00619a10
push esi
call fcn.0067b82e
add esp, 8
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x619ba3
push 0
push 0x2000001
push 3
push 0
push 0
push 0
test esi, esi
je 0x619b6a
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
jmp 0x619b71
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push esi
mov edi, eax
call fcn.0067b82e
add esp, 4
cmp edi, 0xffffffff
jne 0x619b93
call ebx
push eax
call fcn.00619a10
add esp, 4
or eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
push 0
push edi
call fcn.00522149
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
ret
test esi, esi
jne 0x619c3f
push dword [esp + 0x1c]
push ebp
push edi
call fcn.00689f37
mov esi, eax
add esp, 0xc
test esi, esi
jns 0x619cc6
call fcn.0051fee0
cmp dword [eax], 0xd
jne 0x619c1e
test ebp, 0x100
je 0x619c1e
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x619bf4
call ebx
push eax
call fcn.00619a10
add esp, 4
or eax, 0xffffffff
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x619c0b
call fcn.0051fee0
pop edi
pop esi
pop ebp
mov dword [eax], 0x15
or eax, 0xffffffff
pop ebx
ret
call fcn.0051fee0
pop edi
pop esi
pop ebp
mov dword [eax], 0xd
or eax, 0xffffffff
pop ebx
ret
call fcn.0051fee0
cmp dword [eax], 2
jne 0x619cc6
push edi
call fcn.00619ed0
mov esi, eax
add esp, 4
test esi, esi
je 0x619b12
push dword [esp + 0x1c]
push ebp
push esi
call fcn.00689fbd
mov edi, eax
add esp, 0xc
test edi, edi
jns 0x619cb6
call fcn.0051fee0
cmp dword [eax], 0xd
jne 0x619cb6
test ebp, 0x100
je 0x619cb6
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x619c8c
call ebx
push eax
call fcn.00619a10
add esp, 4
push esi
call fcn.0067b82e
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
test al, 0x10
je 0x619cab
call fcn.0051fee0
push esi
mov dword [eax], 0x15
call fcn.0067b82e
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
call fcn.0051fee0
mov dword [eax], 0xd
push esi
call fcn.0067b82e
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
ret
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret