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

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43affe
push eax
mov dword fs:[0], esp
sub esp, 0x80
push ebx
push ebp
push esi
mov esi, ecx
push edi
cmp byte [esi + 4], 0xdb
je 0x407714
xor ebp, ebp
push ebp
call fcn.00403330
add esp, 4
jmp 0x407716
xor ebp, ebp
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x407730
mov cl, byte [esi + 5]
test cl, cl
jne 0x40772d
push eax
call fcn.0041a82b
add esp, 4
mov dword [esi + 8], ebp
lea ecx, [esp + 0x34]
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov byte [esi + 5], 0
call fcn.004025c0
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x9c], ebp
call fcn.00402860
mov edi, dword [esp + 0xa4]
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.00405bc0
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x40778e
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], eax
call fcn.00402680
xor al, al
jmp 0x407905
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x407803
test edi, edi
je 0x4077dd
lea ecx, [esp + 0x18]
call fcn.00403910
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.004040b0
mov esi, dword [edi]
lea ecx, [esp + 0x18]
call fcn.00419e00
push eax
mov ecx, edi
call dword [esi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.00403980
push 0
push ebx
call fcn.00413640
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00402680
xor al, al
jmp 0x407905
test ebp, ebp
jne 0x40782c
push ebp
push ebx
call fcn.00413640
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00402680
mov al, 1
jmp 0x407905
lea edi, [ebp + 4]
push edi
call fcn.0041acd0
mov edx, eax
mov ecx, edi
mov dword [esi + 8], edx
mov edi, edx
mov edx, ecx
xor eax, eax
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
rep stosb byte es:[edi], al
mov ecx, dword [esi + 8]
lea eax, [esp + 0x14]
push 0
push eax
push ebp
push ecx
push ebx
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esp + 0x28], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov esi, dword [esp + 0xa4]
mov byte [esp + 0x13], 1
test eax, eax
jne 0x4078c7
test esi, esi
je 0x4078c2
lea ecx, [esp + 0x18]
call fcn.00403910
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.004040b0
mov edi, dword [esi]
lea ecx, [esp + 0x18]
call fcn.00419e00
push eax
mov ecx, esi
call dword [edi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.00403980
mov byte [esp + 0x13], 0
cmp dword [esp + 0x14], ebp
je 0x4078e2
test esi, esi
je 0x4078dd
mov edx, dword [esi]
push str.Failed_to_read_the_entire_file
mov ecx, esi
call dword [edx + 0x10]
mov byte [esp + 0x13], 0
push 0
push ebx
call fcn.00413640
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00402680
mov al, byte [esp + 0x13]
mov ecx, dword [esp + 0x90]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x8c
ret 8
Function at 0x413260
Capabilities:
Encode data using base64

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0x10]
push ebp
push esi
test ebx, ebx
push edi
je 0x413409
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x413409
push ebx
call fcn.00413230
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.00403530
mov eax, 0x55555556
xor esi, esi
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
test edx, edx
jle 0x413358
mov dword [esp + 0x20], edx
jmp 0x4132b1
mov ebp, dword [esp + 0x18]
mov eax, dword [esp + 0x18]
xor ebx, ebx
mov bl, byte [esi + ebp]
inc esi
xor ecx, ecx
xor edx, edx
mov cl, byte [esi + ebp]
mov dl, byte [esi + eax + 1]
inc esi
mov ebp, ecx
mov ecx, ebx
mov dword [esp + 0x10], edx
mov edx, dword [0x449c8c]
inc esi
sar ecx, 2
and ecx, 0x3f
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00403440
mov edx, dword [0x449c8c]
mov ecx, ebp
sar ecx, 4
and ebx, 3
and ecx, 0xf
shl ebx, 4
or ecx, ebx
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00403440
mov ebx, dword [esp + 0x10]
mov edx, dword [0x449c8c]
mov ecx, ebx
and ebp, 0xf
sar ecx, 6
and ecx, 3
shl ebp, 2
or ecx, ebp
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00403440
mov ecx, dword [0x449c8c]
and ebx, 0x3f
mov dl, byte [ebx + ecx]
mov ecx, edi
push edx
call fcn.00403440
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x4132ad
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x4133c1
dec edx
jne 0x413409
xor ebx, ebx
mov ecx, dword [0x449c8c]
mov bl, byte [esi + ebp]
xor edx, edx
mov dl, byte [esi + ebp + 1]
mov eax, ebx
sar eax, 2
and eax, 0x3f
mov esi, edx
mov dl, byte [eax + ecx]
mov ecx, edi
push edx
call fcn.00403440
mov ecx, dword [0x449c8c]
mov eax, esi
sar eax, 4
and ebx, 3
and eax, 0xf
shl ebx, 4
or eax, ebx
mov dl, byte [eax + ecx]
mov ecx, edi
push edx
call fcn.00403440
mov eax, dword [0x449c8c]
and esi, 0xf
mov cl, byte [eax + esi*4]
push ecx
jmp 0x4133f9
xor edx, edx
mov ecx, dword [0x449c8c]
mov dl, byte [esi + ebp]
mov esi, edx
mov eax, esi
sar eax, 2
and eax, 0x3f
mov dl, byte [eax + ecx]
mov ecx, edi
push edx
call fcn.00403440
mov eax, dword [0x449c8c]
and esi, 3
shl esi, 4
mov cl, byte [esi + eax]
push ecx
mov ecx, edi
call fcn.00403440
push 0x3d
mov ecx, edi
call fcn.00403440
push 0x3d
mov ecx, edi
call fcn.00403440
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x413d10
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
mov esi, dword [esp + 0x2c]
mov ebx, ecx
push edi
mov ecx, esi
call fcn.00419e00
cmp eax, 0x10
jae 0x413d3a
mov edi, 0x10
push 0
mov ecx, esi
call fcn.00407ee0
dec edi
jne 0x413d2e
mov al, byte [esp + 0x34]
test al, al
jne 0x413d51
mov ecx, esi
call fcn.00419d60
push eax
mov ecx, ebx
call fcn.00413b00
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x413d67
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x10
ret 0x14
mov eax, dword [ebx + 0x40]
test eax, eax
je 0x413d7d
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x10
ret 0x14
mov esi, dword [esp + 0x24]
test esi, esi
je 0x413e9e
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x413e9e
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [ebx + 0x3c]
sar ebp, 7
sub eax, 0
je 0x413e69
dec eax
je 0x413dbc
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x10
ret 0x14
mov eax, dword [ebx + 0x44]
mov ecx, dword [esi]
mov edx, dword [esi + 8]
mov edi, dword [ebx + 0x4c]
xor eax, ecx
mov ecx, dword [esi + 4]
mov dword [esp + 0x10], eax
mov eax, dword [ebx + 0x48]
xor ecx, eax
mov eax, dword [esi + 0xc]
xor edx, edi
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], edx
mov edx, dword [ebx + 0x50]
lea ecx, [esp + 0x10]
push edi
xor eax, edx
push ecx
mov ecx, ebx
mov dword [esp + 0x24], eax
call fcn.00414a40
lea eax, [ebp - 1]
add esi, 0x10
test eax, eax
jle 0x413e8f
mov dword [esp + 0x34], eax
mov edx, dword [esi]
mov eax, dword [edi]
mov ecx, dword [edi + 4]
xor edx, eax
mov eax, dword [esi + 4]
mov dword [esp + 0x10], edx
mov edx, dword [edi + 8]
xor eax, ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [edi + 0xc]
xor ecx, edx
mov edx, dword [esi + 0xc]
add edi, 0x10
xor edx, eax
lea eax, [esp + 0x10]
mov dword [esp + 0x18], ecx
push edi
push eax
mov ecx, ebx
mov dword [esp + 0x24], edx
call fcn.00414a40
mov eax, dword [esp + 0x34]
add esi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x413e0e
pop edi
mov eax, ebp
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x10
ret 0x14
test ebp, ebp
jle 0x413e8f
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], ebp
push edi
push esi
mov ecx, ebx
call fcn.00414a40
mov eax, dword [esp + 0x34]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x413e75
pop edi
mov eax, ebp
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x10
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10
ret 0x14
Function at 0x414550
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
push ebx
push ebp
push esi
push edi
mov edi, ecx
mov dword [esp + 0x10], edi
mov eax, dword [edi + 0x38]
test eax, eax
je 0x414573
pop edi
pop esi
pop ebp
mov eax, 0xfffffffb
pop ebx
add esp, 0x24
ret 0x14
mov ebx, dword [edi + 0x3c]
cmp ebx, 2
je 0x414591
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x414591
pop edi
pop esi
pop ebp
mov eax, 0xfffffffa
pop ebx
add esp, 0x24
ret 0x14
mov esi, dword [esp + 0x38]
test esi, esi
je 0x4146e7
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4146e7
cdq
and edx, 0x7f
add eax, edx
mov ecx, eax
mov eax, ebx
sar ecx, 7
sub eax, 0
mov dword [esp + 0x38], ecx
je 0x4146b8
dec eax
je 0x4145d3
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
add esp, 0x24
ret 0x14
mov al, byte [esp + 0x48]
test al, al
je 0x4145f5
mov eax, dword [edi + 0x4c]
mov edx, dword [edi + 0x50]
mov ebx, dword [edi + 0x44]
mov ebp, dword [edi + 0x48]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x44]
mov dword [esp + 0x30], edx
jmp 0x41460c
mov eax, dword [esp + 0x44]
mov edx, dword [eax + 8]
mov ebx, dword [eax]
mov ebp, dword [eax + 4]
mov dword [esp + 0x2c], edx
mov edx, dword [eax + 0xc]
mov dword [esp + 0x30], edx
test ecx, ecx
jle 0x414696
mov edi, dword [esp + 0x40]
mov dword [esp + 0x48], ecx
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x14]
push eax
push esi
call fcn.00414ef0
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
xor eax, ebx
mov ebx, dword [esp + 0x2c]
xor ecx, ebp
mov ebp, dword [esp + 0x20]
xor edx, ebx
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x18], ecx
xor ebp, ebx
mov ebx, dword [esi]
mov dword [esp + 0x20], ebp
mov dword [edi], eax
mov ebp, dword [esi + 4]
mov dword [edi + 4], ecx
mov ecx, dword [esi + 8]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x20]
mov dword [esp + 0x1c], edx
mov dword [edi + 8], edx
mov edx, dword [esi + 0xc]
mov dword [edi + 0xc], eax
mov eax, dword [esp + 0x48]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], edx
mov dword [esp + 0x48], eax
jne 0x41461c
mov eax, dword [esp + 0x44]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x2c]
mov dword [eax], ebx
mov dword [eax + 4], ebp
mov dword [eax + 8], edx
mov edx, dword [esp + 0x30]
pop edi
mov dword [eax + 0xc], edx
mov eax, ecx
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x24
ret 0x14
test ecx, ecx
jle 0x4146d8
mov ebx, dword [esp + 0x40]
mov ebp, ecx
push ebx
push esi
mov ecx, edi
call fcn.00414ef0
add esi, 0x10
add ebx, 0x10
dec ebp
jne 0x4146c2
mov ecx, dword [esp + 0x38]
pop edi
mov eax, ecx
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x24
ret 0x14
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x24
ret 0x14
Function at 0x414930
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x54], edx
jle 0x414a3b
push ebx
push edi
lea eax, [esi + 0x6a]
xor ebx, ebx
xor ecx, ecx
mov bl, byte [eax - 1]
mov cl, byte [eax + 1]
add eax, 0x10
mov edi, dword [ebx*4 + 0x44c518]
mov ecx, dword [ecx*4 + 0x44cd18]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x44c918]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44c118]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0x12], ecx
mov bl, byte [eax - 0xc]
xor ecx, ecx
mov cl, byte [eax - 0xb]
mov edi, dword [ebx*4 + 0x44c918]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44cd18]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44c518]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44c118]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xe], ecx
mov bl, byte [eax - 8]
xor ecx, ecx
mov cl, byte [eax - 7]
mov edi, dword [ebx*4 + 0x44c918]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44cd18]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44c518]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44c118]
xor ebx, ebx
xor ecx, edi
mov dword [eax - 0xa], ecx
mov bl, byte [eax - 4]
xor ecx, ecx
mov cl, byte [eax - 3]
mov edi, dword [ebx*4 + 0x44c918]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44cd18]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44c518]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44c118]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x54]
cmp edx, ecx
jl 0x414946
pop edi
pop ebx
pop esi
ret
Function at 0x4164c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43c270
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea ecx, [esp + 4]
call fcn.004139a0
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
call fcn.004139e0
lea ecx, [esp + 8]
call fcn.00419b20
push 0
lea edx, [esp + 0x14]
push 0x10
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call fcn.00419c50
xor edx, edx
lea ecx, [esp + 8]
div dword [esi + 4]
mov byte [esp + 0x38], 0
mov esi, edx
call fcn.00419af0
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.004139d0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x417020
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43c348
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebx
push esi
mov esi, ecx
mov dword [esp + 8], esi
call fcn.004083e0
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], ebx
call fcn.00403910
mov ecx, dword [esp + 0xc]
mov byte [esi + 0x29], bl
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov byte [esi + 0x50], bl
mov dword [esi], vtable.FileInfo.0
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x417410
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c3c8
push eax
mov dword fs:[0], esp
sub esp, 0x5c
xor edx, edx
push ebx
push ebp
push esi
mov esi, ecx
xor ebx, ebx
xor ecx, ecx
lea eax, [esi + 0x3c]
mov byte [esi + 8], bl
push edi
lea edi, [esi + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [esi + 0x44]
mov dword [esi + 0x44], edx
mov dword [eax + 4], edx
lea eax, [esi + 0x34]
mov dword [esi + 0x34], ecx
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [esi + 0x4c], ebx
mov byte [esi + 0x28], bl
mov dword [esi + 0x2c], ebx
call fcn.00403410
mov ebp, dword [esp + 0x7c]
mov byte [esi + 0x29], bl
cmp ebp, ebx
je 0x41754f
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4174b7
mov edi, dword [esp + 0x80]
push edi
push ebp
call fcn.00406540
add esp, 8
test al, al
jne 0x41754f
cmp edi, ebx
mov byte [esi + 8], 1
je 0x41754f
mov edx, dword [edi]
push str.File_does_not_exist.
mov ecx, edi
call dword [edx + 0x10]
xor al, al
jmp 0x41757a
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x10]
shr eax, 4
and al, 1
mov byte [esi + 0x28], al
call fcn.004025c0
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebx
call fcn.00402860
lea ecx, [esp + 0x10]
call fcn.00402f10
push eax
mov ecx, edi
call fcn.00403e90
cmp byte [esi + 0x28], bl
je 0x417503
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00405d20
jmp 0x417515
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00405bc0
mov edi, eax
or ebp, 0xffffffff
add esp, 8
cmp edi, ebp
je 0x417542
lea eax, [esi + 0x34]
push eax
lea eax, [esi + 0x44]
push eax
lea eax, [esi + 0x3c]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
cmp eax, ebx
jne 0x417553
push ebx
push edi
call fcn.00413640
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
call fcn.00402680
xor al, al
jmp 0x41757a
lea ecx, [esi + 0x30]
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push ebx
push edi
mov dword [esi + 0x2c], eax
call fcn.00413640
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
call fcn.00402680
mov al, 1
mov ecx, dword [esp + 0x6c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x68
ret 8

Function at 0x418ec0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x418eeb
mov dword [eax + 0x14], ecx
mov dword [eax + 0x10], ecx
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x419b20
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push edi
mov edi, ecx
mov dword [edi], vtable.ZipCRC.0
mov al, byte [0x457cd4]
test al, al
jne 0x419b95
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, 0x4578d4
push 8
push ebx
mov ecx, edi
call fcn.00419ba0
shl eax, 0x18
mov dword [esi], eax
mov edx, 8
mov ebp, eax
mov ecx, ebp
mov eax, ecx
and eax, 0x80000000
neg eax
sbb eax, eax
add ecx, ecx
and eax, 0x4c11db7
xor eax, ecx
dec edx
mov ebp, eax
jne 0x419b52
push 0x20
push eax
mov ecx, edi
mov dword [esi], ebp
call fcn.00419ba0
mov dword [esi], eax
add esi, 4
inc ebx
cmp esi, 0x457cd0
jle 0x419b3c
pop esi
pop ebp
mov eax, edi
pop ebx
mov byte [0x457cd4], 1
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x419bf0
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
test edx, edx
mov esi, ecx
je 0x419c2d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x419c2d
push ebx
push edi
lea edi, [eax]
mov eax, dword [esi + 4]
xor ebx, ebx
mov bl, byte [edx]
mov ecx, eax
and ecx, 0xff
xor ecx, ebx
shr eax, 8
mov ecx, dword [ecx*4 + 0x4578d4]
xor ecx, eax
inc edx
dec edi
mov dword [esi + 4], ecx
jne 0x419c07
pop edi
pop ebx
pop esi
ret 8

Function at 0x419c50
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x400
push esi
mov esi, dword [esp + 0x40c]
test esi, esi
jne 0x419c6e
xor eax, eax
pop esi
add esp, 0x400
ret 0xc
push ebx
push ebp
mov ebp, dword [esp + 0x418]
or edx, 0xffffffff
test ebp, ebp
jne 0x419cb3
mov eax, dword [esp + 0x410]
mov ecx, edx
xor ebx, ebx
mov bl, byte [eax]
and ecx, 0xff
xor ecx, ebx
shr edx, 8
mov ecx, dword [ecx*4 + 0x4578d4]
xor edx, ecx
inc eax
dec esi
jne 0x419c85
mov eax, edx
pop ebp
pop ebx
pop esi
not eax
add esp, 0x400
ret 0xc
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x414]
xor eax, eax
mov al, byte [ecx]
mov edi, dword [esp + eax*4 + 0x10]
inc edi
mov dword [esp + eax*4 + 0x10], edi
mov edi, edx
and edi, 0xff
xor edi, eax
shr edx, 8
mov eax, dword [edi*4 + 0x4578d4]
xor edx, eax
inc ecx
dec esi
jne 0x419cc8
xor edi, edi
xor eax, eax
lea ecx, [esp + 0x10]
mov esi, 7
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec esi
jne 0x419cfc
lea ecx, [esp + 0x2c]
mov esi, 0x79
mov ebx, 0x80
add edi, dword [ecx]
add ecx, 4
dec esi
jne 0x419d14
cmp ebx, 0x100
jge 0x419d39
mov esi, 0x100
lea ecx, [esp + ebx*4 + 0x10]
sub esi, ebx
mov ebx, dword [ecx]
add ecx, 4
add eax, ebx
dec esi
jne 0x419d2f
shr edi, 2
cmp edi, eax
pop edi
sbb ecx, ecx
mov eax, edx
neg ecx
mov word [ebp], cx
pop ebp
pop ebx
pop esi
not eax
add esp, 0x400
ret 0xc
Function at 0x42472a
Capabilities:
Delete file

Disassembly:
mov eax, 0x43c550
call fcn.0041a80c
sub esp, 0x74
push ebx
push esi
mov esi, ecx
push edi
lea ecx, [ebp - 0x2c]
call fcn.00403910
lea eax, [ebp - 0x2c]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.004242e1
mov edi, dword [ebp + 8]
lea eax, [ebp - 0xd]
push edi
push eax
lea ecx, [ebp - 0x2c]
mov byte [ebp - 0xd], bl
call fcn.00419e00
push eax
call fcn.00416ce0
add esp, 0xc
cmp byte [ebp - 0xd], bl
mov dword [ebp + 8], eax
jne 0x42479e
mov eax, dword [edi]
push str.Failed_to_create_temporary_output_file
mov ecx, edi
call dword [eax + 0x10]
mov esi, dword [edi]
lea ecx, [ebp - 0x2c]
call fcn.00419e00
push eax
push str.filename
mov ecx, edi
call dword [esi + 0x28]
jmp 0x4248a3
push ebx
push ebx
push ebx
push eax
lea ecx, [ebp - 0x4c]
call fcn.00416e40
push ebx
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 1
call fcn.00426492
push esi
lea ecx, [ebp - 0x80]
mov byte [ebp - 4], 2
call fcn.0042fc10
mov eax, dword [esi + 0xb0]
cmp eax, ebx
je 0x4247d7
push eax
lea ecx, [ebp - 0x80]
call fcn.00426488
cmp byte [esi + 0x30], bl
mov byte [ebp - 0xd], bl
je 0x4247f6
lea eax, [ebp - 0x4c]
lea ecx, [esi + 0x5c]
push eax
call fcn.00419e00
push eax
lea ecx, [ebp - 0x80]
call fcn.00427039
jmp 0x424818
lea edi, [esi + 0x80]
lea eax, [ebp - 0x4c]
push eax
mov ecx, edi
call fcn.00419e00
push eax
mov ecx, edi
call fcn.00419d60
push eax
lea ecx, [ebp - 0x80]
call fcn.00427334
push ebx
mov byte [ebp - 0xd], al
push dword [ebp + 8]
call fcn.00413640
cmp byte [esi + 0x5b], bl
pop ecx
pop ecx
je 0x424847
lea edi, [esi + 0x5c]
mov ecx, edi
call fcn.004032f0
test eax, eax
je 0x424847
mov ecx, edi
call fcn.00419e00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x2c]
mov byte [esi + 0x5b], 1
call fcn.00419e00
push eax
lea ecx, [esi + 0x5c]
call fcn.00403e90
cmp byte [esi + 0x94], bl
lea edi, [esi + 0x94]
lea ecx, [esi + 0x80]
jne 0x42487a
call fcn.004075e0
mov byte [edi], 1
jmp 0x42487f
call fcn.00407520
mov al, byte [ebp - 0xd]
lea ecx, [ebp - 0x80]
mov byte [esi + 0x30], 1
mov byte [ebp + 0xb], al
mov byte [ebp - 4], 1
call fcn.004264c6
lea ecx, [ebp - 0x4c]
mov byte [ebp - 4], bl
call fcn.00416e70
mov bl, byte [ebp + 0xb]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00403980
mov ecx, dword [ebp - 0xc]
pop edi
mov al, bl
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x424dc5
Capabilities:
Delete file

Disassembly:
mov eax, 0x43c5d0
call fcn.0041a80c
sub esp, 0x30
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp byte [esi + 0x30], bl
je 0x424ec0
lea ecx, [ebp - 0x3c]
call fcn.00403910
lea eax, [ebp - 0x3c]
mov dword [ebp - 4], ebx
push eax
push str.ckAes.dat
call fcn.00406890
pop ecx
lea edi, [esi + 0x5c]
pop ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x3c]
push ebx
call fcn.00419e00
push eax
mov ecx, edi
call fcn.00419e00
push eax
lea ecx, [esi + 0xc]
call fcn.00419e00
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.00430fe0
add esp, 0x1c
cmp al, bl
jne 0x424e61
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
push esi
call fcn.00419e00
push eax
call fcn.00406600
mov eax, dword [esi]
pop ecx
pop ecx
push str.Failed_to_AES_encrypt_source_file_data
mov ecx, esi
call dword [eax + 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00403980
jmp 0x424f1d
cmp byte [esi + 0x5b], bl
je 0x424e74
mov ecx, edi
call fcn.00419e00
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0x3c]
mov byte [esi + 0x5b], 1
call fcn.00419e00
push eax
mov ecx, edi
call fcn.00403e90
cmp byte [esi + 0x94], bl
lea edi, [esi + 0x94]
lea ecx, [esi + 0x80]
jne 0x424ea6
call fcn.004075e0
mov byte [edi], 1
jmp 0x424eab
call fcn.00407520
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
mov byte [esi + 0x30], 1
call fcn.00403980
jmp 0x424f6b
lea ecx, [ebp - 0x20]
call fcn.00407630
lea edi, [esi + 0x80]
lea eax, [ebp - 0x20]
push eax
mov ecx, edi
mov dword [ebp - 4], 1
call fcn.00419e00
push eax
mov ecx, edi
call fcn.00419d60
push eax
lea ecx, [esi + 0xc]
call fcn.00419e00
push eax
push dword [esi + 8]
push dword [esi + 4]
call fcn.00431040
add esp, 0x18
cmp al, bl
jne 0x424f21
mov ecx, dword [ebp + 8]
push str.Failed_to_AES_encrypt_source_data
mov eax, dword [ecx]
call dword [eax + 0x10]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
call fcn.00407c80
xor al, al
jmp 0x424f6d
cmp byte [esi + 0x94], bl
mov ecx, edi
jne 0x424f32
call fcn.004075e0
jmp 0x424f37
call fcn.00407520
lea ecx, [ebp - 0x20]
call fcn.00419e00
push eax
lea ecx, [ebp - 0x20]
call fcn.00419d60
push eax
mov ecx, edi
call fcn.00407dc0
lea ecx, [ebp - 0x20]
call fcn.004075e0
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x20]
mov byte [esi + 0x94], 1
call fcn.00407c80
mov al, 1
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x426297
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
push esi
mov esi, ecx
push dword [esp + 8]
push dword [esi + 4]
call fcn.004262d8
mov dword [esi + 4], eax
and eax, 0xff
add eax, dword [esi + 8]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 8], eax
shr eax, 0x18
mov byte [esp + 0x10], al
push dword [esp + 0x10]
push dword [esi + 0xc]
call fcn.004262d8
add esp, 0x10
mov dword [esi + 0xc], eax
pop esi
ret 4