joyce8/EMBER2024-capa huggingface dataset:
Function at 0x471008
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov ebx, eax
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax]
dec al
je 0x471039
dec al
je 0x471074
dec al
je 0x4710b9
dec al
je 0x471122
jmp 0x4711ac
mov esi, dword [ebx + 0x24]
inc esi
mov edi, dword [ebx + 0x20]
sub edi, esi
jb 0x4711ac
inc edi
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx edx, byte [ecx + edx]
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x471049
jmp 0x4711ac
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4711ac
mov esi, 1
movzx eax, byte [ebx + 0x48]
mov edx, eax
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
add dl, byte [eax + esi]
and dl, 0xff
movzx eax, byte [ebx + 0x48]
mov eax, dword [ebx + eax*4 + 0x40]
mov byte [eax + esi], dl
inc esi
dec edi
jne 0x471084
jmp 0x4711ac
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4711ac
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov ecx, esi
dec ecx
mov edx, dword [ebx + 0x24]
cmp ecx, edx
jae 0x4710e8
xor ebp, ebp
jmp 0x4710f8
mov ecx, esi
sub ecx, edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx ebp, byte [edx + ecx]
add eax, ebp
sar eax, 1
jns 0x471101
adc eax, 0
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
add al, byte [edx + esi]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x4710c9
jmp 0x4711ac
xor ebp, ebp
xor eax, eax
mov dword [esp + 4], eax
mov edi, dword [ebx + 0x20]
test edi, edi
jbe 0x4711ac
mov esi, 1
movzx eax, byte [ebx + 0x48]
xor al, 1
and eax, 0x7f
mov eax, dword [ebx + eax*4 + 0x40]
movzx eax, byte [eax + esi]
mov edx, esi
dec edx
cmp edx, dword [ebx + 0x24]
jb 0x47117b
mov edx, esi
sub edx, dword [ebx + 0x24]
movzx ecx, byte [ebx + 0x48]
mov ecx, dword [ebx + ecx*4 + 0x40]
movzx ebp, byte [ecx + edx]
movzx edx, byte [ebx + 0x48]
xor dl, 1
and edx, 0x7f
mov edx, dword [ebx + edx*4 + 0x40]
mov ecx, esi
sub ecx, dword [ebx + 0x24]
movzx edx, byte [edx + ecx]
mov dword [esp + 4], edx
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
movzx edx, byte [edx + esi]
mov dword [esp], edx
movzx ecx, byte [esp + 4]
push eax
mov eax, ebp
pop edx
call fcn.0046e3b4
add al, byte [esp]
and al, 0xff
movzx edx, byte [ebx + 0x48]
mov edx, dword [ebx + edx*4 + 0x40]
mov byte [edx + esi], al
inc esi
dec edi
jne 0x471136
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret
Function at 0x100059d0
Capabilities:
Generate random numbers using the delphi lcg

Disassembly:
mov eax, dword [esp + 4]
push esi
mov esi, ecx
push eax
mov ecx, dword [esi + 0x140]
push ecx
mov ecx, esi
call sym.WCUtil.dll_protected:_unsigned_long_int___thiscall_CZipArchive::CryptCRC32_unsigned_long_int__char_
mov edx, dword [esi + 0x144]
mov dword [esi + 0x140], eax
and eax, 0xff
mov ecx, esi
add eax, edx
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x144], eax
shr eax, 0x18
mov byte [esp + 8], al
mov eax, dword [esi + 0x148]
mov edx, dword [esp + 8]
push edx
push eax
call sym.WCUtil.dll_protected:_unsigned_long_int___thiscall_CZipArchive::CryptCRC32_unsigned_long_int__char_
mov dword [esi + 0x148], eax
pop esi
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x10020510
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
mov byte [esp + 0xc], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edx, [esp + 0xc]
add ecx, 0x134
push edx
push ecx
mov dword [esp + 0x2c], ebx
call sym.WCUtil.dll_public:_static_int___cdecl_CZipArchive::SingleToWide_class_CZipAutoBuffer_const___class_CZipString__
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x34]
add esp, 8
mov ecx, esi
mov byte [esi], al
push ebx
call fcn.10002400
mov ecx, dword [0x100211e0]
lea edx, [esp + 0xc]
push ecx
push ebx
push edx
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.10001ff0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x10005c5b
mov al, byte [ecx - 1]
cmp al, bl
je 0x10005c51
cmp al, 0xff
je 0x10005c51
dec al
mov byte [ecx - 1], al
jmp 0x10005c5b
dec ecx
push ecx
call fcn.10013576
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x10005f80
Capabilities:
Encode data using xor

Disassembly:
and al, 0x34
xor eax, eax
push ebp
push esi
push edi
mov dword [esp + 0x10], eax
lea eax, [ebx + 0x44]
push 4
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1000662a
push 4
lea eax, [ebx + 0x140]
push eax
lea eax, [esp + 0x3c]
push eax
call fcn.1000662a
mov ecx, dword [esp + 0x48]
xor ebp, ebp
add esp, 0x18
mov dword [esp + 0x14], ebp
xor eax, eax
mov dword [esp + 0x18], ebp
mov ebx, ecx
mov dword [esp + 0x1c], eax
nop dword [eax]
lea edi, [ebx + 1]
mov eax, ecx
sub eax, ebx
xor esi, esi
mov ebx, dword [esp + 0x34]
add ebx, 0xfffffff0
add ebx, eax
je 0x100060de
nop dword [eax + eax]
xor eax, eax
mov dl, byte [esp + eax + 0x24]
lea ecx, [eax + esi]
cmp byte [ecx + edi], dl
je 0x10006001
cmp dl, 0x3f
jne 0x10006082
inc eax
cmp eax, 8
jb 0x10005fec
lea ebx, [esi + edi]
test ebx, ebx
je 0x100060de
mov ecx, dword [ebx]
lea edi, [ebx + 8]
movzx esi, cl
shl esi, 8
movzx eax, ch
add esi, eax
mov dword [esp + 0x20], ecx
movzx eax, byte [esp + 0x22]
shl esi, 8
add esi, eax
shr ecx, 0x18
mov eax, dword [edi]
shl esi, 8
add esi, ecx
mov ecx, dword [esp + 0x40]
cmp eax, dword [ecx + 0xc0]
jne 0x1000608d
test ebp, ebp
jne 0x10006099
mov eax, dword [edi + 8]
add eax, 0x10
mov dword [esp + 0x1c], edi
push eax
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x40]
push 0x40
mov eax, dword [eax + 0x64]
call eax
push esi
mov ebp, eax
push edi
push ebp
mov dword [esp + 0x20], ebp
call fcn.1000662a
mov ecx, dword [esp + 0x3c]
add esp, 0xc
add dword [esp + 0x10], esi
jmp 0x10005fca
inc esi
cmp esi, ebx
jb 0x10005fea
jmp 0x100060de
mov ecx, dword [esp + 0x30]
test ebp, ebp
je 0x10005fca
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
lea ebp, [esi + ecx]
cmp ebp, eax
ja 0x100060ca
mov eax, dword [esp + 0x14]
push esi
add eax, ecx
push edi
push eax
call fcn.1000662a
mov ecx, dword [esp + 0x3c]
add esp, 0xc
mov dword [esp + 0x10], ebp
mov ebp, dword [esp + 0x14]
jmp 0x10005fca
mov ebp, dword [esp + 0x14]
sub eax, ecx
push eax
push edi
lea eax, [ecx + ebp]
push eax
call fcn.1000662a
add esp, 0xc
test ebp, ebp
jne 0x100060ee
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x1c
ret 0x14
mov eax, dword [esp + 0x1c]
mov edx, dword [eax + 4]
mov eax, dword [eax + 8]
test al, 3
je 0x10006101
dec eax
test al, 3
jne 0x100060fc
xor ecx, ecx
test eax, eax
je 0x10006115
nop dword [eax]
xor dword [ecx + ebp + 0x10], edx
add ecx, 4
cmp ecx, eax
jb 0x1000610a
mov eax, dword [esp + 0x38]
pop edi
pop esi
mov dword [eax], ebp
mov eax, dword [esp + 8]
test eax, eax
pop ebp
setne al
pop ebx
add esp, 0x1c
ret 0x14

Function at 0x100063ca
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x210
mov ecx, dword [esp + 0x214]
push ebx
push ebp
push esi
mov eax, dword [ecx + 0x3c]
push edi
mov eax, dword [eax + ecx + 0x78]
mov edx, dword [eax + ecx + 0x1c]
mov edi, dword [eax + ecx + 0x20]
add edx, ecx
mov ebp, dword [eax + ecx + 0x24]
add edi, ecx
mov dword [esp + 0x14], edx
add ebp, ecx
Function at 0x10007390
Capabilities:
Access peb ldr_data
Get kernel32 base address
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x10020651
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 8
push ebx
push esi
mov esi, ecx
mov dword [esp + 0xc], esi
lea ecx, [esi + 0x18]
call fcn.100071b0
xor ebx, ebx
lea ecx, [esi + 0x24]
mov dword [esp + 0x18], ebx
call fcn.100071b0
mov al, byte [esp + 0xb]
mov dword [esi + 0x48], ebx
mov byte [esi + 0x44], al
mov dword [esi + 0x4c], ebx
mov dword [esi + 0x50], ebx
mov cl, byte [esp + 0xb]
push 0xc
mov byte [esp + 0x1c], 2
mov byte [esi + 0x58], cl
call fcn.10013a3a
mov ecx, dword [esp + 0x14]
add esp, 4
mov dword [eax], eax
mov dword [eax + 4], eax
mov dword [esi + 0x5c], eax
mov dword [esi + 0x60], ebx
mov dword [esi], 0x100211a0
mov byte [esi + 0x64], 1
mov byte [esi + 0x54], bl
mov dword [esi + 0x34], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x40], 0x8000
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x14
ret
Function at 0x10009990
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100208eb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, ecx
push esi
mov dword [esp + 0xc], ebp
call fcn.10013cd7
mov al, byte [esp + 0x30]
lea esi, [ebp + 0xc]
xor ebx, ebx
mov dword [esp + 0x28], ebx
mov byte [esi], al
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [esp + 0x34]
mov ecx, dword [esp + 0x30]
cmp edx, ebx
mov byte [esp + 0x28], 1
mov dword [ebp], 0x10021264
mov dword [ebp + 0x1c], ecx
je 0x10009a54
mov al, byte [esp + 0x30]
push edi
mov byte [esp + 0x14], al
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x18], ebx
push ecx
push edx
lea ecx, [esp + 0x1c]
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call fcn.100066d0
mov ecx, dword [0x100211e0]
lea edx, [esp + 0x14]
push ecx
push ebx
push edx
mov ecx, esi
mov byte [esp + 0x38], 2
call fcn.10001ff0
mov eax, dword [esp + 0x18]
pop edi
cmp eax, ebx
je 0x10009a54
lea ecx, [eax - 1]
mov al, byte [eax - 1]
cmp al, bl
je 0x10009a4b
cmp al, 0xff
je 0x10009a4b
dec al
mov byte [ecx], al
jmp 0x10009a54
push ecx
call fcn.10013576
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, ebp
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 8
Function at 0x1000a150
Capabilities:
Access peb ldr_data
Enumerate pe sections
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x10020988
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 0
push 0x2e
lea ecx, [esp + 0x1c]
call fcn.100071f0
mov eax, dword [esp + 0x18]
mov edi, dword [esp + 0x30]
push 1
push 0x2e
push eax
mov ecx, edi
mov dword [esp + 0x34], 0
call fcn.1000c360
mov eax, dword [esp + 0x18]
mov ecx, dword [eax]
mov dword [esi + 4], ecx
mov dx, word [eax + 4]
mov word [esi + 8], dx
mov cx, word [eax + 6]
mov word [esi + 0xa], cx
mov dx, word [eax + 8]
mov word [esi + 0xc], dx
mov cx, word [eax + 0xa]
mov word [esi + 0xe], cx
mov dx, word [eax + 0xc]
mov word [esi + 0x10], dx
mov cx, word [eax + 0xe]
mov word [esi + 0x12], cx
mov edx, dword [eax + 0x10]
mov dword [esi + 0x14], edx
mov ecx, dword [eax + 0x14]
mov dword [esi + 0x18], ecx
mov edx, dword [eax + 0x18]
mov dword [esi + 0x1c], edx
mov cx, word [eax + 0x20]
mov dx, word [eax + 0x22]
mov bx, word [eax + 0x1c]
mov bp, word [eax + 0x1e]
mov word [esp + 0x30], cx
mov word [esi + 0x20], dx
mov cx, word [eax + 0x24]
mov word [esi + 0x22], cx
mov edx, dword [eax + 0x26]
mov dword [esi + 0x24], edx
mov eax, dword [eax + 0x2a]
lea ecx, [esp + 0x14]
mov dword [esi + 0x28], eax
call fcn.10007230
mov edx, dword [esi + 4]
mov ecx, sym.WCUtil.dll_char__CZipFileHeader::m_gszSignature
cmp edx, dword [ecx]
je 0x1000a23c
lea ecx, [esp + 0x14]
mov dword [esp + 0x28], 0xffffffff
call fcn.10007220
xor al, al
jmp 0x1000a2d7
mov ecx, edi
call fcn.1000c750
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x38]
mov dword [esp + 0x18], eax
call fcn.10007260
mov eax, dword [esi + 0x3c]
push 1
push ebx
push eax
mov ecx, edi
call fcn.1000c360
test bp, bp
je 0x1000a28c
mov ebx, ebp
push 0
and ebx, 0xffff
lea ecx, [esi + 0x2c]
push ebx
call fcn.10007260
mov eax, dword [esi + 0x30]
push 1
push ebx
push eax
mov ecx, edi
call fcn.1000c360
mov ebx, dword [esp + 0x30]
test bx, bx
je 0x1000a2b4
and ebx, 0xffff
push 0
push ebx
lea ecx, [esi + 0x44]
call fcn.10007260
mov esi, dword [esi + 0x48]
push 1
push ebx
push esi
mov ecx, edi
call fcn.1000c360
mov ecx, edi
call fcn.1000c750
mov ecx, dword [esp + 0x10]
mov dword [esp + 0x28], 0xffffffff
cmp eax, ecx
lea ecx, [esp + 0x14]
sete bl
call fcn.10007220
mov al, bl
mov ecx, dword [esp + 0x20]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 4
Function at 0x1000a6a0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100209c8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebx, ecx
push esi
push edi
push 0
mov esi, dword [ebx + 0x40]
mov edi, dword [ebx + 0x34]
mov eax, edi
mov ebp, esi
and eax, 0xffff
and ebp, 0xffff
mov dword [esp + 0x14], eax
lea ecx, [esp + 0x1c]
lea eax, [eax + ebp + 0x1e]
push eax
mov dword [esp + 0x1c], eax
call fcn.100071f0
mov eax, dword [esp + 0x1c]
mov ecx, dword [sym.WCUtil.dll_char__CZipFileHeader::m_gszLocalSignature]
push 1
mov dword [esp + 0x30], 0
mov dword [eax], ecx
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0xa]
mov word [eax + 4], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0xc]
mov word [edx + 6], cx
mov ecx, dword [esp + 0x20]
mov ax, word [ebx + 0xe]
mov word [ecx + 8], ax
mov eax, dword [esp + 0x20]
mov dx, word [ebx + 0x10]
mov word [eax + 0xa], dx
mov edx, dword [esp + 0x20]
mov cx, word [ebx + 0x12]
mov word [edx + 0xc], cx
mov ecx, dword [esp + 0x20]
mov eax, dword [ebx + 0x14]
mov dword [ecx + 0xe], eax
mov eax, dword [esp + 0x20]
mov edx, dword [ebx + 0x18]
mov dword [eax + 0x12], edx
mov edx, dword [esp + 0x20]
mov ecx, dword [ebx + 0x1c]
mov dword [edx + 0x16], ecx
mov eax, dword [esp + 0x20]
mov word [eax + 0x1a], si
mov ecx, dword [esp + 0x20]
mov word [ecx + 0x1c], di
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x3c]
mov ecx, ebp
mov eax, ecx
lea edi, [edx + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x20]
mov esi, dword [ebx + 0x30]
mov eax, ecx
lea edi, [edx + ebp + 0x1e]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x18]
mov ecx, dword [esp + 0x20]
mov esi, dword [esp + 0x38]
push edi
push ecx
mov ecx, esi
call fcn.1000d520
lea ecx, [ebx + 0x2c]
call fcn.10007230
mov ecx, esi
call fcn.1000c750
mov ecx, esi
mov word [ebx + 0x20], ax
call fcn.1000d6c0
sub eax, edi
lea ecx, [esp + 0x18]
mov dword [ebx + 0x28], eax
mov dword [esp + 0x2c], 0xffffffff
call fcn.10007220
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x1000a980
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x100209f0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
mov byte [esp + 0xc], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edx, [esp + 0xc]
add ecx, 0x44
push edx
push ecx
mov dword [esp + 0x2c], ebx
call sym.WCUtil.dll_public:_static_int___cdecl_CZipArchive::SingleToWide_class_CZipAutoBuffer_const___class_CZipString__
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x34]
add esp, 8
mov ecx, esi
mov byte [esi], al
push ebx
call fcn.10002400
mov ecx, dword [0x100211e0]
lea edx, [esp + 0xc]
push ecx
push ebx
push edx
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.10001ff0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x1000aa18
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000aa0e
cmp al, 0xff
je 0x1000aa0e
dec al
mov byte [ecx - 1], al
jmp 0x1000aa18
dec ecx
push ecx
call fcn.10013576
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x10020a10
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
mov al, byte [esp + 0x24]
push ebx
xor ebx, ebx
push esi
mov dword [esp + 8], ebx
mov byte [esp + 0xc], al
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 0x18], ebx
lea edx, [esp + 0xc]
add ecx, 0x38
push edx
push ecx
mov dword [esp + 0x2c], ebx
call sym.WCUtil.dll_public:_static_int___cdecl_CZipArchive::SingleToWide_class_CZipAutoBuffer_const___class_CZipString__
mov esi, dword [esp + 0x34]
mov al, byte [esp + 0x34]
add esp, 8
mov ecx, esi
mov byte [esi], al
push ebx
call fcn.10002400
mov ecx, dword [0x100211e0]
lea edx, [esp + 0xc]
push ecx
push ebx
push edx
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.10001ff0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x1000aae8
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000aade
cmp al, 0xff
je 0x1000aade
dec al
mov byte [ecx - 1], al
jmp 0x1000aae8
dec ecx
push ecx
call fcn.10013576
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x1000b620
Capabilities:
Get common file path

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10020af8
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
push ebp
xor ebp, ebp
push edi
push ebp
push ebp
call ebx
mov edi, eax
cmp edi, ebp
jne 0x1000b661
pop edi
pop ebp
xor al, al
pop ebx
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
add esp, 0x24
ret
push esi
push edi
call fcn.10013a3a
add esp, 4
mov esi, eax
mov dword [esp + 0x14], esi
mov byte [esp + 0x13], 1
push esi
push edi
call ebx
test eax, eax
jne 0x1000b687
mov byte [esp + 0x13], al
jmp 0x1000b7bc
mov al, byte [esp + 0x38]
mov edi, esi
mov byte [esp + 0x18], al
or ecx, 0xffffffff
xor eax, eax
push 1
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov dword [esp + 0x20], ebp
mov ebx, ecx
lea ecx, [esp + 0x1c]
push ebx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x2c], ebp
call fcn.10002210
test al, al
je 0x1000b6d7
mov edi, dword [esp + 0x1c]
mov ecx, ebx
mov edx, ecx
push ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
call fcn.100021f0
mov ecx, dword [esp + 0x20]
mov eax, dword [0x100211e0]
mov dword [esp + 0x30], ebp
mov ebp, ecx
cmp eax, ebp
jae 0x1000b6ec
mov ebp, eax
mov ebx, dword [esp + 0x38]
lea edx, [esp + 0x18]
cmp ebx, edx
jne 0x1000b711
push eax
push ebp
mov ecx, ebx
call fcn.10006370
push 0
push 0
mov ecx, ebx
call fcn.10006370
jmp 0x1000b793
test ebp, ebp
jbe 0x1000b75d
cmp ebp, ecx
jne 0x1000b75d
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1000b726
mov eax, 0x10021220
cmp byte [eax - 1], 0xfe
jae 0x1000b75d
push 1
mov ecx, ebx
call fcn.10002400
mov eax, dword [esp + 0x1c]
test eax, eax
jne 0x1000b742
mov eax, 0x10021220
mov ecx, dword [esp + 0x20]
mov edx, dword [esp + 0x24]
mov dword [ebx + 4], eax
mov dword [ebx + 8], ecx
mov dword [ebx + 0xc], edx
mov cl, byte [eax - 1]
inc cl
mov byte [eax - 1], cl
jmp 0x1000b793
push 1
push ebp
mov ecx, ebx
call fcn.10002210
test al, al
je 0x1000b793
mov esi, dword [esp + 0x1c]
test esi, esi
jne 0x1000b778
mov esi, 0x10021220
mov edi, dword [ebx + 4]
mov ecx, ebp
mov eax, ecx
push ebp
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, ebx
call fcn.100021f0
mov eax, dword [esp + 0x1c]
test eax, eax
je 0x1000b7b8
lea ecx, [eax - 1]
mov al, byte [eax - 1]
test al, al
je 0x1000b7af
cmp al, 0xff
je 0x1000b7af
dec al
mov byte [ecx], al
jmp 0x1000b7b8
push ecx
call fcn.10013576
add esp, 4
mov esi, dword [esp + 0x14]
push esi
call fcn.10013576
mov ecx, dword [esp + 0x2c]
mov al, byte [esp + 0x17]
add esp, 4
mov dword fs:[0], ecx
pop esi
pop edi
pop ebp
pop ebx
add esp, 0x24
ret

Function at 0x1000b7e0
Capabilities:
Set file attributes

Disassembly:
mov eax, dword [esp + 8]
mov ecx, dword [esp + 4]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
neg eax
sbb eax, eax
neg eax
ret
Function at 0x1000b800
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1000b813
xor al, al
ret
mov ecx, dword [esp + 8]
mov dword [ecx], eax
mov al, 1
ret

Function at 0x1000c760
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10020cd8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
lea edx, [esp + 0xc]
push edi
xor ebx, ebx
mov ecx, dword [esi + 0x24]
push edx
mov dword [esp + 0x10], ebx
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x28], ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov cl, byte [esp + 0x30]
sub esp, 0x10
mov edi, esp
mov dword [esp + 0x1c], esp
push ebx
mov dword [esp + 0x20], edi
mov byte [edi], cl
mov ecx, edi
call fcn.10002400
mov edx, dword [0x100211e0]
lea eax, [esp + 0x20]
push edx
push ebx
push eax
mov ecx, edi
mov byte [esp + 0x44], 1
call fcn.10001ff0
push 0xffffffffffffffff
mov ecx, esi
mov byte [esp + 0x3c], bl
call fcn.1000d270
mov esi, dword [esp + 0x30]
mov cl, byte [esp + 0x30]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x100211e0]
lea eax, [esp + 0x10]
push edx
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x34], 2
call fcn.10001ff0
mov ecx, dword [esp + 0x14]
cmp ecx, ebx
je 0x1000c82d
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000c823
cmp al, 0xff
je 0x1000c823
dec al
mov byte [ecx - 1], al
jmp 0x1000c82d
dec ecx
push ecx
call fcn.10013576
add esp, 4
mov ecx, dword [esp + 0x20]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret 4

Function at 0x1000c850
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x10020d00
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push ebx
lea edx, [esp + 0x10]
mov eax, dword [esi + 0x54]
mov ecx, dword [esi + 0x30]
cmp eax, ecx
mov dword [esp + 0xc], ebx
sete cl
push ecx
push edx
mov ecx, esi
call fcn.1000ca70
mov ecx, dword [esi + 0x24]
mov dword [esp + 0x24], ebx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, dword [esp + 0x2c]
mov cl, byte [esp + 0x2c]
mov byte [esi], cl
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
mov dword [esi + 0xc], ebx
mov edx, dword [0x100211e0]
lea eax, [esp + 0xc]
push edx
push ebx
push eax
mov ecx, esi
mov byte [esp + 0x30], 1
call fcn.10001ff0
mov ecx, dword [esp + 0x10]
cmp ecx, ebx
je 0x1000c8e7
mov al, byte [ecx - 1]
cmp al, bl
je 0x1000c8dd
cmp al, 0xff
je 0x1000c8dd
dec al
mov byte [ecx - 1], al
jmp 0x1000c8e7
dec ecx
push ecx
call fcn.10013576
add esp, 4
mov ecx, dword [esp + 0x1c]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 4