joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4183c0
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443403
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x78
mov byte [eax], 0
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4183f5
xor eax, eax
jmp 0x418509
cmp byte [ebx], 0
jne 0x418401
xor eax, eax
jmp 0x418509
lea ecx, [esp + 0x2c]
call fcn.00419470
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0
call fcn.00419680
mov esi, dword [esp + 0x9c]
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.00417f70
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x418452
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], eax
call fcn.00419530
xor eax, eax
jmp 0x418509
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4184de
test esi, esi
je 0x4184bb
lea ecx, [esp + 0x10]
call fcn.00416690
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 1
call fcn.00416fa0
mov ebp, dword [esi]
lea ecx, [esp + 0x10]
call fcn.00406c10
push eax
mov ecx, esi
call dword [ebp + 0x10]
mov edx, dword [esi]
push ebx
push str.filename
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
push str.Failed_to_get_file_size
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 0
call fcn.00416820
push 0
push edi
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], 0xffffffff
call fcn.00419530
xor eax, eax
jmp 0x418509
push 0
push edi
call fcn.004288f0
mov ecx, dword [esp + 0xa8]
add esp, 8
mov dword [esp + 0x90], 0xffffffff
mov byte [ecx], 1
lea ecx, [esp + 0x2c]
call fcn.00419530
mov eax, ebp
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret
Function at 0x418530
Capabilities:
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x443423
push eax
mov eax, dword [esp + 0x18]
mov dword fs:[0], esp
sub esp, 0x78
mov byte [eax], 0
push ebx
mov ebx, dword [esp + 0x8c]
push ebp
push esi
test ebx, ebx
push edi
jne 0x418565
xor eax, eax
jmp 0x41867a
cmp word [ebx], 0
jne 0x418572
xor eax, eax
jmp 0x41867a
lea ecx, [esp + 0x2c]
call fcn.00419470
push ebx
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0
call fcn.00419740
mov esi, dword [esp + 0x9c]
lea ecx, [esp + 0x2c]
push esi
push ecx
call fcn.00417f70
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x4185c3
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], eax
call fcn.00419530
xor eax, eax
jmp 0x41867a
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41864f
test esi, esi
je 0x41862c
lea ecx, [esp + 0x10]
call fcn.00416690
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 1
call fcn.00416fa0
mov ebp, dword [esi]
lea ecx, [esp + 0x10]
call fcn.00406c10
push eax
mov ecx, esi
call dword [ebp + 0x10]
mov edx, dword [esi]
push ebx
push str.filename
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
push str.Failed_to_get_file_size
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x10]
mov byte [esp + 0x90], 0
call fcn.00416820
push 0
push edi
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x2c]
mov dword [esp + 0x90], 0xffffffff
call fcn.00419530
xor eax, eax
jmp 0x41867a
push 0
push edi
call fcn.004288f0
mov ecx, dword [esp + 0xa8]
add esp, 8
mov dword [esp + 0x90], 0xffffffff
mov byte [ecx], 1
lea ecx, [esp + 0x2c]
call fcn.00419530
mov eax, ebp
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x84
ret
Function at 0x418b40
Capabilities:
Access peb ldr_data
Delete file

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4434e8
push eax
mov dword fs:[0], esp
sub esp, 0x1c
push esi
push edi
mov edi, dword [esp + 0x34]
test edi, edi
je 0x418c51
cmp byte [edi], 0
je 0x418c51
mov esi, dword [esp + 0x38]
push esi
push edi
call fcn.004187c0
add esp, 8
test al, al
jne 0x418bb5
test esi, esi
je 0x418c63
mov eax, dword [esi]
push edi
push str.delete_filename
mov ecx, esi
call dword [eax + 0x28]
mov edx, dword [esi]
push str.Cannot_delete_file__file_does_not_exist
mov ecx, esi
call dword [edx + 0x14]
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x418c3e
test esi, esi
je 0x418c63
lea ecx, [esp + 8]
call fcn.00416690
push str.DeleteFile:
lea ecx, [esp + 0xc]
mov dword [esp + 0x30], 0
call fcn.00416360
lea ecx, [esp + 8]
call fcn.00416fa0
mov eax, dword [esi]
push str.Cannot_delete_file
mov ecx, esi
call dword [eax + 0x14]
mov edx, dword [esi]
push edi
push str.delete_filename
mov ecx, esi
call dword [edx + 0x28]
mov edi, dword [esi]
lea ecx, [esp + 8]
call fcn.00406c10
push eax
mov ecx, esi
call dword [edi + 0x14]
lea ecx, [esp + 8]
mov dword [esp + 0x2c], 0xffffffff
call fcn.00416820
pop edi
xor al, al
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
pop edi
mov al, 1
pop esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
add esp, 0x28
ret
mov ecx, dword [esp + 0x38]
test ecx, ecx
je 0x418c63
mov eax, dword [ecx]
push str.Cannot_delete_file__filename_is_null_or_empty
call dword [eax + 0x10]
mov ecx, dword [esp + 0x24]
pop edi
xor al, al
pop esi
mov dword fs:[0], ecx
add esp, 0x28
ret
Function at 0x4191a0
Capabilities:
Write file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4435d3
push eax
mov dword fs:[0], esp
sub esp, 0x7c
push ebx
mov ebx, dword [esp + 0x90]
push ebp
push esi
test ebx, ebx
push edi
jne 0x4191ce
xor al, al
jmp 0x419325
cmp byte [ebx], 0
jne 0x4191da
xor al, al
jmp 0x419325
lea ecx, [esp + 0x30]
call fcn.00419470
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0
call fcn.00419680
mov esi, dword [esp + 0xa8]
lea eax, [esp + 0x30]
push esi
push eax
call fcn.00417d70
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x41924c
test esi, esi
je 0x419231
mov edx, dword [esi]
push ebx
push str.filename
mov ecx, esi
call dword [edx + 0x28]
mov eax, dword [esi]
push str.Failed_to_write_complete_file__7_
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0xffffffff
call fcn.00419530
xor al, al
jmp 0x419325
mov eax, dword [esp + 0xa0]
test eax, eax
je 0x419304
mov ebp, dword [esp + 0xa4]
test ebp, ebp
je 0x419304
lea ecx, [esp + 0x10]
push 0
push ecx
push ebp
push eax
push edi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp dword [esp + 0x10], ebp
je 0x419304
test esi, esi
je 0x4192e1
lea ecx, [esp + 0x14]
call fcn.00416690
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 1
call fcn.00416fa0
mov edx, dword [esi]
push ebx
push str.filename
mov ecx, esi
call dword [edx + 0x28]
mov ebx, dword [esi]
lea ecx, [esp + 0x14]
call fcn.00406c10
push eax
mov ecx, esi
call dword [ebx + 0x10]
mov eax, dword [esi]
push str.Failed_to_write_complete_file__1_
mov ecx, esi
call dword [eax + 0x10]
lea ecx, [esp + 0x14]
mov byte [esp + 0x94], 0
call fcn.00416820
push 0
push edi
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0xffffffff
call fcn.00419530
xor al, al
jmp 0x419325
push 0
push edi
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x30]
mov dword [esp + 0x94], 0xffffffff
call fcn.00419530
mov al, 1
mov ecx, dword [esp + 0x8c]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x88
ret
Function at 0x41a770
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x4437f8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x24
push ebx
mov ebx, dword [esp + 0x38]
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x48]
xor esi, esi
push eax
lea ecx, [esp + 0x18]
push esi
push ecx
push esi
push edi
push ebx
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], 1
call ebp
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x48], eax
test ecx, ecx
je 0x41a7e4
push ecx
call fcn.00439f84
add esp, 4
lea edx, [esp + 0x10]
mov esi, eax
lea eax, [esp + 0x14]
push edx
push esi
push eax
push 0
push edi
push ebx
call ebp
mov eax, esi
jmp 0x41a845
test eax, eax
je 0x41a7e0
mov esi, dword [esp + 0x4c]
test esi, esi
je 0x41a843
lea ecx, [esp + 0x18]
call fcn.00416690
mov ecx, dword [esp + 0x48]
mov dword [esp + 0x3c], 0
push ecx
lea ecx, [esp + 0x1c]
call fcn.00416fd0
mov ebx, dword [esi]
lea ecx, [esp + 0x18]
call fcn.00406c10
push eax
push str.RegistryQueryError
mov ecx, esi
call dword [ebx + 0x28]
mov edx, dword [esi]
push edi
push str.ValueName
mov ecx, esi
call dword [edx + 0x28]
lea ecx, [esp + 0x18]
mov dword [esp + 0x3c], 0xffffffff
call fcn.00416820
xor eax, eax
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x30
ret 0xc
Function at 0x41aa50
Capabilities:
Get file size
Read file on windows

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44382e
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 0x41aa84
xor ebp, ebp
push ebp
call fcn.0041a9b0
add esp, 4
jmp 0x41aa86
xor ebp, ebp
mov eax, dword [esi + 8]
cmp eax, ebp
je 0x41aaa0
mov cl, byte [esi + 5]
test cl, cl
jne 0x41aa9d
push eax
call fcn.00439558
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.00419470
mov eax, dword [esp + 0xa0]
lea ecx, [esp + 0x34]
push eax
mov dword [esp + 0x9c], ebp
call fcn.00419740
mov edi, dword [esp + 0xa4]
lea ecx, [esp + 0x34]
push edi
push ecx
call fcn.00417f70
mov ebx, eax
add esp, 8
cmp ebx, 0xffffffff
jne 0x41aafe
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], eax
call fcn.00419530
xor al, al
jmp 0x41ac75
push ebp
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x41ab73
test edi, edi
je 0x41ab4d
lea ecx, [esp + 0x18]
call fcn.00416690
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 1
call fcn.00416fa0
mov esi, dword [edi]
lea ecx, [esp + 0x18]
call fcn.00406c10
push eax
mov ecx, edi
call dword [esi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.00416820
push 0
push ebx
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00419530
xor al, al
jmp 0x41ac75
test ebp, ebp
jne 0x41ab9c
push ebp
push ebx
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00419530
mov al, 1
jmp 0x41ac75
lea edi, [ebp + 4]
push edi
call fcn.00439f84
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 0x41ac37
test esi, esi
je 0x41ac32
lea ecx, [esp + 0x18]
call fcn.00416690
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 2
call fcn.00416fa0
mov edi, dword [esi]
lea ecx, [esp + 0x18]
call fcn.00406c10
push eax
mov ecx, esi
call dword [edi + 0x10]
lea ecx, [esp + 0x18]
mov byte [esp + 0x98], 0
call fcn.00416820
mov byte [esp + 0x13], 0
cmp dword [esp + 0x14], ebp
je 0x41ac52
test esi, esi
je 0x41ac4d
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.004288f0
add esp, 8
lea ecx, [esp + 0x34]
mov dword [esp + 0x98], 0xffffffff
call fcn.00419530
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 0x428020
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x18]
mov esi, ecx
mov byte [edi], 0
mov eax, dword [esi + 4]
mov ecx, dword [esi + 8]
push eax
push ecx
mov ecx, esi
mov byte [esi + 0x2c], 0
call fcn.00427fb0
mov edx, dword [esp + 0x14]
mov ebx, dword [esi + 8]
add ebx, edx
mov ebp, eax
mov eax, dword [esi + 4]
mov ecx, ebx
cmp ecx, eax
mov dword [esi + 8], ebx
jbe 0x42805a
mov dword [esi + 8], eax
push eax
mov eax, dword [esi + 8]
push eax
mov ecx, esi
call fcn.00427fb0
mov ebx, eax
mov eax, dword [esi + 0xc]
test eax, eax
je 0x4280c4
cmp ebx, ebp
jbe 0x428096
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x30], eax
push edi
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
cmp byte [edi], 0
je 0x4280c4
mov byte [esi + 0x2c], 1
pop edi
pop esi
pop ebp
pop ebx
ret 8
test eax, eax
je 0x4280c4
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [esi + 0x30]
mov ecx, eax
sub ecx, ebx
cmp ecx, 0x12c
jbe 0x4280c4
mov ecx, dword [esi + 0xc]
mov dword [esi + 0x30], eax
push edi
mov edx, dword [ecx]
call dword [edx + 8]
cmp byte [edi], 0
je 0x4280c4
mov byte [esi + 0x2c], 1
pop edi
pop esi
pop ebp
pop ebx
ret 8
Function at 0x428470
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 0x428619
mov ebp, dword [esp + 0x18]
test ebp, ebp
je 0x428619
push ebx
call fcn.00428440
mov edi, dword [esp + 0x20]
push eax
mov ecx, edi
call fcn.004162b0
mov eax, 0x55555556
xor esi, esi
imul ebx
mov eax, edx
shr eax, 0x1f
add edx, eax
test edx, edx
jle 0x428568
mov dword [esp + 0x20], edx
jmp 0x4284c1
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 [0x455d1c]
inc esi
sar ecx, 2
and ecx, 0x3f
mov al, byte [ecx + edx]
mov ecx, edi
push eax
call fcn.00416200
mov edx, dword [0x455d1c]
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.00416200
mov ebx, dword [esp + 0x10]
mov edx, dword [0x455d1c]
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.00416200
mov ecx, dword [0x455d1c]
and ebx, 0x3f
mov dl, byte [ebx + ecx]
mov ecx, edi
push edx
call fcn.00416200
mov eax, dword [esp + 0x20]
dec eax
mov dword [esp + 0x20], eax
jne 0x4284bd
mov ebx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x18]
mov eax, ebx
mov ecx, 3
cdq
idiv ecx
dec edx
je 0x4285d1
dec edx
jne 0x428619
xor ebx, ebx
mov ecx, dword [0x455d1c]
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.00416200
mov ecx, dword [0x455d1c]
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.00416200
mov eax, dword [0x455d1c]
and esi, 0xf
mov cl, byte [eax + esi*4]
push ecx
jmp 0x428609
xor edx, edx
mov ecx, dword [0x455d1c]
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.00416200
mov eax, dword [0x455d1c]
and esi, 3
shl esi, 4
mov cl, byte [esi + eax]
push ecx
mov ecx, edi
call fcn.00416200
push 0x3d
mov ecx, edi
call fcn.00416200
push 0x3d
mov ecx, edi
call fcn.00416200
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x428bb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x444b09
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
mov dword [esi], vtable.MemoryData.0
mov eax, dword [esi + 0xc]
xor ebx, ebx
cmp eax, ebx
mov dword [esp + 0x14], 3
je 0x428bf3
cmp byte [esi + 9], bl
je 0x428bf3
push eax
call fcn.00439558
add esp, 4
lea ecx, [esi + 0x4c]
mov dword [esi + 0xc], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x10], ebx
mov byte [esp + 0x14], 2
call fcn.004329b0
lea ecx, [esi + 0x30]
mov byte [esp + 0x14], 1
call fcn.00416820
lea ecx, [esi + 0x1c]
mov byte [esp + 0x14], bl
call fcn.0041aff0
mov ecx, esi
mov dword [esp + 0x14], 0xffffffff
call fcn.0041ce20
mov ecx, dword [esp + 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x10
ret

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

Disassembly:
push 0xffffffffffffffff
push 0x444b3e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, ecx
mov dword [esp + 4], esi
call fcn.0041cde0
xor eax, eax
lea ecx, [esi + 0x1c]
mov dword [esp + 0x10], eax
mov byte [esi + 8], al
mov byte [esi + 9], 1
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
call fcn.0041a9e0
lea ecx, [esi + 0x30]
mov byte [esp + 0x10], 1
call fcn.00416690
lea ecx, [esi + 0x4c]
mov byte [esp + 0x10], 2
call fcn.00432970
mov ecx, dword [esp + 8]
mov dword [esi], vtable.MemoryData.0
mov eax, esi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret
Function at 0x429370
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x444bd8
push eax
mov dword fs:[0], esp
sub esp, 0x5c
xor edx, edx
push ebx
push ebp
push esi
mov esi, ecx
xor ecx, ecx
push edi
lea eax, [esi + 0x34]
lea edi, [esi + 8]
xor ebp, ebp
mov dword [eax], ecx
mov dword [eax + 4], ecx
lea eax, [esi + 0x3c]
mov dword [esi + 0x3c], edx
mov dword [eax + 4], edx
lea eax, [esi + 0x2c]
mov dword [esi + 0x2c], ecx
mov dword [eax + 4], ecx
mov ecx, edi
mov dword [esi + 0x44], ebp
mov byte [esi + 0x24], 0
mov dword [esi + 0x28], ebp
call fcn.004161d0
mov ebx, dword [esp + 0x7c]
cmp ebx, ebp
jne 0x4293e6
mov ecx, dword [esp + 0x80]
cmp ecx, ebp
je 0x4293df
mov edx, dword [ecx]
push str.loadFileInfoAnsi_failed:_no_filename
call dword [edx + 0x10]
xor al, al
jmp 0x429550
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x429437
mov esi, dword [esp + 0x80]
cmp esi, ebp
je 0x429430
mov eax, dword [esi]
push str.loadFileInfoAnsi_failed:_cannot_get_attributes
mov ecx, esi
call dword [eax + 0x10]
push esi
push ebx
call fcn.004187c0
add esp, 8
test al, al
jne 0x429423
mov edx, dword [esi]
push str.File_does_not_exist.
mov ecx, esi
call dword [edx + 0x10]
mov eax, dword [esi]
push ebx
push str.filename
mov ecx, esi
call dword [eax + 0x28]
xor al, al
jmp 0x429550
mov dword [esi + 0x44], eax
lea ecx, [esp + 0x10]
shr eax, 4
and al, 1
mov byte [esi + 0x24], al
call fcn.00419470
push ebx
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], ebp
call fcn.00419680
lea ecx, [esp + 0x10]
call fcn.00419d50
push eax
mov ecx, edi
call fcn.00416e10
mov al, byte [esi + 0x24]
mov ebp, dword [esp + 0x80]
test al, al
push ebp
je 0x429485
lea ecx, [esp + 0x14]
push ecx
call fcn.00418090
jmp 0x42948f
lea edx, [esp + 0x14]
push edx
call fcn.00417f70
mov edi, eax
add esp, 8
cmp edi, 0xffffffff
jne 0x4294d0
test ebp, ebp
je 0x4294b8
mov eax, dword [ebp]
push str.loadFileInfoAnsi_failed:_cannot_open_for_reading
mov ecx, ebp
call dword [eax + 0x10]
mov edx, dword [ebp]
push ebx
push str.filename
mov ecx, ebp
call dword [edx + 0x28]
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00419530
xor al, al
jmp 0x429550
lea eax, [esi + 0x2c]
push eax
lea eax, [esi + 0x3c]
push eax
lea eax, [esi + 0x34]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
jne 0x429526
test ebp, ebp
je 0x429506
mov eax, dword [ebp]
push str.loadFileInfoAnsi_failed:_cannot_get_file_time
mov ecx, ebp
call dword [eax + 0x10]
mov edx, dword [ebp]
push ebx
push str.filename
mov ecx, ebp
call dword [edx + 0x28]
push 0
push edi
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00419530
xor al, al
jmp 0x429550
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push edi
mov dword [esi + 0x28], eax
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], 0xffffffff
call fcn.00419530
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 0x429570
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x444bf8
push eax
mov dword fs:[0], esp
sub esp, 0x5c
xor eax, eax
xor edx, edx
push ebx
push ebp
push esi
mov esi, ecx
push edi
lea ebx, [esi + 0x34]
lea edi, [esi + 8]
mov ecx, ebx
mov dword [ecx], eax
mov dword [ecx + 4], eax
lea eax, [esi + 0x3c]
xor ecx, ecx
mov dword [eax], edx
mov dword [eax + 4], edx
lea eax, [esi + 0x2c]
mov dword [esi + 0x2c], ecx
mov dword [eax + 4], ecx
xor eax, eax
mov ecx, edi
mov dword [esi + 0x44], eax
mov byte [esi + 0x24], al
mov dword [esi + 0x28], eax
call fcn.004161d0
mov ebp, dword [esp + 0x7c]
test ebp, ebp
je 0x42967c
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x42967c
mov dword [esi + 0x44], eax
lea ecx, [esp + 0x10]
shr eax, 4
and al, 1
mov byte [esi + 0x24], al
call fcn.00419470
push ebp
lea ecx, [esp + 0x14]
mov dword [esp + 0x78], 0
call fcn.00419740
lea ecx, [esp + 0x10]
call fcn.00419d50
push eax
mov ecx, edi
call fcn.00416e10
mov al, byte [esi + 0x24]
test al, al
je 0x429632
mov edx, dword [esp + 0x80]
lea eax, [esp + 0x10]
push edx
push eax
call fcn.00418090
jmp 0x429644
mov ecx, dword [esp + 0x80]
lea edx, [esp + 0x10]
push ecx
push edx
call fcn.00417f70
mov edi, eax
or ebp, 0xffffffff
add esp, 8
cmp edi, ebp
je 0x42966f
lea eax, [esi + 0x2c]
push eax
lea eax, [esi + 0x3c]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
push 0
push edi
jne 0x429680
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
call fcn.00419530
xor al, al
jmp 0x4296a3
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
push edi
mov dword [esi + 0x28], eax
call fcn.004288f0
add esp, 8
lea ecx, [esp + 0x10]
mov dword [esp + 0x74], ebp
call fcn.00419530
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 0x42b560
Capabilities:
Encode data using xor
Hash data using crc32b

Disassembly:
push edi
mov edi, ecx
mov dword [edi], vtable.ZipCRC.0
mov al, byte [0x45fb78]
test al, al
jne 0x42b5d5
push ebx
push ebp
push esi
xor ebx, ebx
mov esi, 0x45f778
push 8
push ebx
mov ecx, edi
call fcn.0042b5e0
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 0x42b592
push 0x20
push eax
mov ecx, edi
mov dword [esi], ebp
call fcn.0042b5e0
mov dword [esi], eax
add esi, 4
inc ebx
cmp esi, 0x45fb74
jle 0x42b57c
pop esi
pop ebp
mov eax, edi
pop ebx
mov byte [0x45fb78], 1
pop edi
ret
mov eax, edi
pop edi
ret

Function at 0x42b630
Capabilities:
Encode data using xor

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