joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406440
Capabilities:
Set file attributes

Disassembly:
push 0xffffffffffffffff
push 0x43b0a6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xf4
lea ecx, [esp]
call fcn.00402800
mov eax, dword [esp + 0x104]
lea ecx, [esp]
push eax
mov dword [esp + 0x100], 0
call fcn.00403370
push 0x5c
push 0x2f
lea ecx, [esp + 8]
call fcn.004034a0
lea ecx, [esp + 0x5c]
call fcn.00417d20
lea ecx, [esp + 0x5c]
mov byte [esp + 0xfc], 1
call fcn.00417d70
test al, al
je 0x4064c5
mov ecx, dword [esp + 0x108]
push ecx
lea ecx, [esp + 4]
call fcn.00402e90
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
jmp 0x4064dd
mov edx, dword [esp + 0x108]
lea ecx, [esp]
push edx
call fcn.00402b10
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
push ebx
lea ecx, [esp + 0x60]
setne bl
mov byte [esp + 0x100], 0
call fcn.00417d60
lea ecx, [esp + 4]
mov dword [esp + 0x100], 0xffffffff
call fcn.004028c0
mov ecx, dword [esp + 0xf8]
mov al, bl
pop ebx
mov dword fs:[0], ecx
add esp, 0x100
ret

Function at 0x406520
Capabilities:
Access peb ldr_data
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x43b0b8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20
mov ecx, dword [esp + 0x30]
lea eax, [esp]
push edi
xor edi, edi
push eax
push ecx
mov dword [esp + 0xc], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
jne 0x4065b8
push esi
mov esi, dword [esp + 0x3c]
cmp esi, edi
je 0x4065a1
lea ecx, [esp + 0xc]
call fcn.00403b60
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], edi
call fcn.00404360
mov edi, dword [esi]
lea ecx, [esp + 0xc]
call fcn.004070f0
push eax
mov ecx, esi
call dword [edi + 0x10]
mov edx, dword [esi]
push str.Failed_to_get_file_size__64_
mov ecx, esi
call dword [edx + 0x10]
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0xffffffff
call fcn.00403bd0
or eax, 0xffffffff
pop esi
or edx, 0xffffffff
pop edi
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
add esp, 0x2c
ret
mov ecx, dword [esp + 4]
push ecx
push eax
call fcn.00417d80
mov ecx, dword [esp + 0x2c]
add esp, 8
mov dword fs:[0], ecx
pop edi
add esp, 0x2c
ret
Function at 0x4069e0
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x43b170
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
mov eax, dword [esp + 0x48]
push esi
push edi
push eax
lea ecx, [esp + 0xc]
call fcn.00403a90
push 0x5c
push 0x2f
lea ecx, [esp + 0x10]
mov dword [esp + 0x50], 0
call fcn.00403620
lea ecx, [esp + 8]
call fcn.004070f0
mov edi, eax
test edi, edi
je 0x406b07
cmp byte [edi], 0
je 0x406b07
mov esi, dword [esp + 0x54]
push esi
push edi
call fcn.00406710
add esp, 8
test al, al
jne 0x406a71
test esi, esi
je 0x406b19
mov edx, dword [esi]
push edi
push str.delete_filename
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
push str.Cannot_delete_file__file_does_not_exist
mov ecx, esi
call dword [eax + 0x14]
jmp 0x406b19
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x406ae3
test esi, esi
je 0x406b19
lea ecx, [esp + 0x24]
call fcn.00403b60
push str.DeleteFile:
lea ecx, [esp + 0x28]
mov byte [esp + 0x4c], 1
call fcn.00403830
lea ecx, [esp + 0x24]
call fcn.00404360
mov edx, dword [esi]
push str.Cannot_delete_file
mov ecx, esi
call dword [edx + 0x14]
mov eax, dword [esi]
push edi
push str.delete_filename
mov ecx, esi
call dword [eax + 0x28]
mov edi, dword [esi]
lea ecx, [esp + 0x24]
call fcn.004070f0
push eax
mov ecx, esi
call dword [edi + 0x14]
lea ecx, [esp + 0x24]
mov byte [esp + 0x48], 0
call fcn.00403bd0
jmp 0x406b19
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00403bd0
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
add esp, 0x44
ret
mov ecx, dword [esp + 0x54]
test ecx, ecx
je 0x406b19
mov edx, dword [ecx]
push str.Cannot_delete_file__filename_is_null_or_empty
call dword [edx + 0x10]
lea ecx, [esp + 8]
mov dword [esp + 0x48], 0xffffffff
call fcn.00403bd0
mov ecx, dword [esp + 0x40]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x44
ret
Function at 0x4079a0
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43b2de
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 0x4079d4
xor ebp, ebp
push ebp
call fcn.00403580
add esp, 4
jmp 0x4079d6
xor ebp, ebp
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x4079f0
mov cl, byte [esi + 5]
test cl, cl
jne 0x4079ed
push eax
call fcn.0041ab2b
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.00402800
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x9c], ebp
call fcn.00402aa0
mov edi, dword [esp + 0xa4]
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.00405e70
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x407a4e
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], eax
call fcn.004028c0
xor al, al
jmp 0x407bc5
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x407ac3
test edi, edi
je 0x407a9d
lea ecx, [esp + 0x18]
call fcn.00403b60
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.00404360
mov esi, dword [edi]
lea ecx, [esp + 0x18]
call fcn.004070f0
push eax
mov ecx, edi
call dword [esi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.00403bd0
push 0
push ebx
call fcn.00413930
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.004028c0
xor al, al
jmp 0x407bc5
test ebp, ebp
jne 0x407aec
push ebp
push ebx
call fcn.00413930
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.004028c0
mov al, 1
jmp 0x407bc5
lea edi, [ebp + 4]
push edi
call fcn.0041afd0
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 0x407b87
test esi, esi
je 0x407b82
lea ecx, [esp + 0x18]
call fcn.00403b60
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.00404360
mov edi, dword [esi]
lea ecx, [esp + 0x18]
call fcn.004070f0
push eax
mov ecx, esi
call dword [edi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.00403bd0
mov byte [esp + 0x13], 0
cmp dword [esp + 0x14], ebp
je 0x407ba2
test esi, esi
je 0x407b9d
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.00413930
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.004028c0
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 0x413550
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 0x4136f9
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x4136f9
push ebx
call fcn.00413520
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.00403780
mov eax, 0x55555556
xor esi, esi
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
test edx, edx
jle 0x413648
mov dword [esp + 0x20], edx
jmp 0x4135a1
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 [0x44ad2c]
inc esi
sar ecx, 2
and ecx, 0x3f
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00403690
mov edx, dword [0x44ad2c]
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.00403690
mov ebx, dword [esp + 0x10]
mov edx, dword [0x44ad2c]
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.00403690
mov ecx, dword [0x44ad2c]
and ebx, 0x3f
mov dl, byte [ebx + ecx]
mov ecx, edi
push edx
call fcn.00403690
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x41359d
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x4136b1
dec edx
jne 0x4136f9
xor ebx, ebx
mov ecx, dword [0x44ad2c]
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.00403690
mov ecx, dword [0x44ad2c]
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.00403690
mov eax, dword [0x44ad2c]
and esi, 0xf
mov cl, byte [eax + esi*4]
push ecx
jmp 0x4136e9
xor edx, edx
mov ecx, dword [0x44ad2c]
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.00403690
mov eax, dword [0x44ad2c]
and esi, 3
shl esi, 4
mov cl, byte [esi + eax]
push ecx
mov ecx, edi
call fcn.00403690
push 0x3d
mov ecx, edi
call fcn.00403690
push 0x3d
mov ecx, edi
call fcn.00403690
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x414000
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.004070f0
cmp eax, 0x10
jae 0x41402a
mov edi, 0x10
push 0
mov ecx, esi
call fcn.004081d0
dec edi
jne 0x41401e
mov al, byte [esp + 0x34]
test al, al
jne 0x414041
mov ecx, esi
call fcn.0041a380
push eax
mov ecx, ebx
call fcn.00413df0
mov eax, dword [ebx + 0x38]
test eax, eax
je 0x414057
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 0x41406d
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 0x41418e
mov eax, dword [esp + 0x28]
test eax, eax
jle 0x41418e
cdq
and edx, 0x7f
add eax, edx
mov ebp, eax
mov eax, dword [ebx + 0x3c]
sar ebp, 7
sub eax, 0
je 0x414159
dec eax
je 0x4140ac
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.00414d30
lea eax, [ebp - 1]
add esi, 0x10
test eax, eax
jle 0x41417f
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.00414d30
mov eax, dword [esp + 0x34]
add esi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x4140fe
pop edi
mov eax, ebp
pop esi
pop ebp
shl eax, 7
pop ebx
add esp, 0x10
ret 0x14
test ebp, ebp
jle 0x41417f
mov edi, dword [esp + 0x2c]
mov dword [esp + 0x34], ebp
push edi
push esi
mov ecx, ebx
call fcn.00414d30
mov eax, dword [esp + 0x34]
add esi, 0x10
add edi, 0x10
dec eax
mov dword [esp + 0x34], eax
jne 0x414165
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 0x414840
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 0x414863
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 0x414881
mov eax, dword [edi + 0x40]
test eax, eax
jne 0x414881
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 0x4149d7
mov eax, dword [esp + 0x3c]
test eax, eax
jle 0x4149d7
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 0x4149a8
dec eax
je 0x4148c3
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 0x4148e5
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 0x4148fc
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 0x414986
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.004151e0
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 0x41490c
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 0x4149c8
mov ebx, dword [esp + 0x40]
mov ebp, ecx
push ebx
push esi
mov ecx, edi
call fcn.004151e0
add esi, 0x10
add ebx, 0x10
dec ebp
jne 0x4149b2
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 0x414c20
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, ecx
mov edx, 1
cmp dword [esi + 0x54], edx
jle 0x414d2b
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 + 0x44d5b8]
mov ecx, dword [ecx*4 + 0x44ddb8]
xor ebx, ebx
xor ecx, edi
mov bl, byte [eax - 0x10]
mov edi, dword [ebx*4 + 0x44d9b8]
xor ebx, ebx
mov bl, byte [eax - 0x12]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44d1b8]
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 + 0x44d9b8]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44ddb8]
mov bl, byte [eax - 0xd]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44d5b8]
xor ebx, ebx
mov bl, byte [eax - 0xe]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44d1b8]
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 + 0x44d9b8]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44ddb8]
mov bl, byte [eax - 9]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44d5b8]
xor ebx, ebx
mov bl, byte [eax - 0xa]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44d1b8]
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 + 0x44d9b8]
xor ebx, ebx
mov ecx, dword [ecx*4 + 0x44ddb8]
mov bl, byte [eax - 5]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44d5b8]
xor ebx, ebx
mov bl, byte [eax - 6]
xor ecx, edi
mov edi, dword [ebx*4 + 0x44d1b8]
xor ecx, edi
inc edx
mov dword [eax - 6], ecx
mov ecx, dword [esi + 0x54]
cmp edx, ecx
jl 0x414c36
pop edi
pop ebx
pop esi
ret
Function at 0x4167d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43c550
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.00413c90
mov ecx, dword [esp + 0x40]
lea eax, [esp + 0x10]
push eax
push ecx
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
call fcn.00413cd0
lea ecx, [esp + 8]
call fcn.00419e50
push 0
lea edx, [esp + 0x14]
push 0x10
push edx
lea ecx, [esp + 0x14]
mov byte [esp + 0x44], 1
call fcn.00419f80
xor edx, edx
lea ecx, [esp + 8]
div dword [esi + 4]
mov byte [esp + 0x38], 0
mov esi, edx
call fcn.00419e20
lea ecx, [esp + 4]
mov dword [esp + 0x38], 0xffffffff
call fcn.00413cc0
mov ecx, dword [esp + 0x30]
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 4

Function at 0x417520
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x43c628
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.004086d0
xor ebx, ebx
lea ecx, [esi + 0xc]
mov dword [esp + 0x14], ebx
call fcn.00403b60
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 0x417910
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x43c6a8
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.00403660
mov ebp, dword [esp + 0x7c]
mov byte [esi + 0x29], bl
cmp ebp, ebx
je 0x417a4f
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x4179b7
mov edi, dword [esp + 0x80]
push edi
push ebp
call fcn.004067f0
add esp, 8
test al, al
jne 0x417a4f
cmp edi, ebx
mov byte [esi + 8], 1
je 0x417a4f
mov edx, dword [edi]
push str.File_does_not_exist.
mov ecx, edi
call dword [edx + 0x10]
xor al, al
jmp 0x417a7a
mov dword [esi + 0x4c], eax
lea ecx, [esp + 0x10]
shr eax, 4
and al, 1
mov byte [esi + 0x28], al
call fcn.00402800
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebx
call fcn.00402aa0
lea ecx, [esp + 0x10]
call fcn.00403140
push eax
mov ecx, edi
call fcn.00404140
cmp byte [esi + 0x28], bl
je 0x417a03
mov eax, dword [esp + 0x80]
lea ecx, [esp + 0x10]
push eax
push ecx
call fcn.00405fd0
jmp 0x417a15
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00405e70
mov edi, eax
or ebp, 0xffffffff
add esp, 8
cmp edi, ebp
je 0x417a42
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 0x417a53
push ebx
push edi
call fcn.00413930
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
call fcn.004028c0
xor al, al
jmp 0x417a7a
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.00413930
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
call fcn.004028c0
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 0x4191e0
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
xor ecx, ecx
cmp eax, ecx
je 0x41920b
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 0x419e50
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push edi
mov edi, ecx
mov dword [edi], vtable.ZipCRC.0
mov al, byte [0x458d80]
test al, al
jne 0x419ec5
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, 0x458980
push 8
push ebx
mov ecx, edi
call fcn.00419ed0
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 0x419e82
push 0x20
push eax
mov ecx, edi
mov dword [esi], ebp
call fcn.00419ed0
mov dword [esi], eax
add esi, 4
inc ebx
cmp esi, 0x458d7c
jle 0x419e6c
pop esi
pop ebp
mov eax, edi
pop ebx
mov byte [0x458d80], 1
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x419f20
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
test edx, edx
mov esi, ecx
je 0x419f5d
mov eax, dword [esp + 0xc]
test eax, eax
je 0x419f5d
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 + 0x458980]
xor ecx, eax
inc edx
dec edi
mov dword [esi + 4], ecx
jne 0x419f37
pop edi
pop ebx
pop esi
ret 8

Function at 0x419f80
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x400
push esi
mov esi, dword [esp + 0x40c]
test esi, esi
jne 0x419f9e
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 0x419fe3
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 + 0x458980]
xor edx, ecx
inc eax
dec esi
jne 0x419fb5
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 + 0x458980]
xor edx, eax
inc ecx
dec esi
jne 0x419ff8
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 0x41a02c
lea ecx, [esp + 0x2c]
mov esi, 0x79
mov ebx, 0x80
add edi, dword [ecx]
add ecx, 4
dec esi
jne 0x41a044
cmp ebx, 0x100
jge 0x41a069
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 0x41a05f
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