joyce8/EMBER2024-capa huggingface dataset:
Function at 0x416ae0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
lea ebp, [ebx + 0x1c]
shr ebx, 2
mov eax, ebx
shr eax, 1
add eax, 3
push esi
mov dword [ecx], eax
add ecx, 0x10
xor esi, esi
mov dword [esp + 0xc], ebp
test ebx, ebx
jbe 0x416b11
mov eax, dword [edx]
mov dword [ecx + esi*4], eax
inc esi
add edx, 4
cmp esi, ebx
jb 0x416b04
cmp esi, ebp
jae 0x416c02
mov edx, esi
sub edx, ebx
lea eax, [ecx + edx*4]
mov dword [esp + 0x14], eax
push edi
xor edx, edx
mov eax, esi
div ebx
mov edi, dword [ecx + esi*4 - 4]
test edx, edx
jne 0x416b8e
movzx eax, byte [eax + 0x56a324]
mov edx, edi
and edx, 0xff
movzx edx, byte [edx + 0x56a418]
mov ebp, edi
shr ebp, 0x18
movzx ebp, byte [ebp + 0x56a418]
shl edx, 8
or edx, ebp
mov ebp, edi
shr ebp, 0x10
shr edi, 8
and ebp, 0xff
movzx ebp, byte [ebp + 0x56a418]
and edi, 0xff
movzx edi, byte [edi + 0x56a418]
shl edx, 8
or edx, ebp
mov ebp, dword [esp + 0x10]
shl edx, 8
xor edi, eax
or edi, edx
jmp 0x416be6
cmp ebx, 6
jbe 0x416be6
cmp edx, 4
jne 0x416be6
mov edx, edi
shr edx, 0x10
and edx, 0xff
movzx eax, byte [edx + 0x56a418]
mov edx, edi
shr edx, 0x18
movzx edx, byte [edx + 0x56a418]
shl edx, 8
or eax, edx
mov edx, edi
shr edx, 8
and edx, 0xff
movzx edx, byte [edx + 0x56a418]
shl eax, 8
and edi, 0xff
or eax, edx
movzx edx, byte [edi + 0x56a418]
shl eax, 8
or eax, edx
mov edi, eax
mov eax, dword [esp + 0x18]
mov edx, dword [eax]
xor edx, edi
mov dword [ecx + esi*4], edx
inc esi
add eax, 4
mov dword [esp + 0x18], eax
cmp esi, ebp
jb 0x416b25
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 4
Function at 0x417ee0
Capabilities:
Hash data with crc32

Disassembly:
test ecx, ecx
jne 0x417ee7
xor eax, eax
ret
mov eax, dword [esp + 4]
jmp fcn.00417ef0
Function at 0x418870
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x514f91
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x20]
xor ebx, ebx
mov dword [edi + 0x2c], ebx
mov dword [esp + 0x18], ebx
mov dword [edi + 0x30], ebx
mov dword [edi + 0x34], ebx
mov eax, dword [esp + 0x24]
mov byte [esp + 0x18], 2
mov dword [edi + 0xc], ebx
mov dword [edi + 0x14], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x10], ebx
cmp dword [edi + 0x30], esi
je 0x4188e2
cmp esi, ebx
je 0x4188d0
mov ecx, dword [esi]
mov edx, dword [ecx + 4]
push esi
call edx
mov eax, dword [edi + 0x30]
cmp eax, ebx
je 0x4188df
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [edi + 0x30], esi
cmp dword [edi + 0x2c], ebp
je 0x418906
cmp ebp, ebx
je 0x4188f4
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
push ebp
call ecx
mov eax, dword [edi + 0x2c]
cmp eax, ebx
je 0x418903
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
mov dword [edi + 0x2c], ebp
mov eax, dword [edi + 0x14]
sub eax, 1
mov ecx, dword [esp + 0x2c]
mov dword [edi + 0x1c], ebx
mov dword [edi + 0x20], ebx
mov dword [edi + 0x38], ebx
mov dword [edi + 0x3c], ebx
mov dword [edi + 0x24], ecx
mov dword [edi + 0x28], ebx
mov byte [edi + 8], bl
je 0x418935
sub eax, 1
jne 0x41893a
mov ecx, edi
call fcn.00418c00
jmp 0x41893a
call fcn.00418b00
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 0x10
Function at 0x418960
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x514c71
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
mov eax, 2
mov dword [esp + 0x14], eax
cmp dword [esi + 0x14], eax
jne 0x4189d9
cmp dword [esi + 0x10], 1
jne 0x4189d9
mov edi, dword [esi]
cmp byte [edi], 0
jne 0x4189d9
mov eax, dword [edi + 0x14]
mov dword [esi + 0x18], eax
mov eax, dword [edi + 0x14]
mov ecx, dword [edi + 4]
push eax
push ecx
mov byte [edi + 0x18], 0
call fcn.004b9b8a
mov dword [edi + 4], eax
mov dword [esi + 0xc], eax
call fcn.004c20dd
mov edx, dword [esi + 0x18]
add eax, 0x20
push eax
mov eax, dword [esi + 0xc]
push edx
push 1
push eax
call fcn.004b86c7
add esp, 0x18
cmp dword [esi + 0x14], 0
jne 0x418a02
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x418a45
mov edx, dword [esi + 0x34]
test edx, edx
je 0x418a45
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x418a45
mov edi, dword [eax]
push 0
push ecx
mov ecx, dword [edi + 0xc]
push edx
push eax
call ecx
jmp 0x418a45
cmp dword [esi + 0x10], 0
jne 0x418a24
cmp byte [esi + 8], 0
je 0x418a1a
mov edx, dword [esi + 0xc]
push edx
call fcn.004b7f8d
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x418a45
push eax
jmp 0x418a3d
mov edi, dword [esi]
test edi, edi
je 0x418a45
cmp byte [edi + 0x18], 0
je 0x418a3c
mov eax, dword [edi + 4]
push eax
call fcn.004b7f8d
add esp, 4
push edi
call fcn.004b7e69
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x418a5c
push eax
call fcn.004ba1cb
add esp, 4
mov dword [esi + 0x34], 0
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x418a70
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov dword [esp + 0x14], 0xffffffff
mov esi, dword [esi + 0x2c]
test esi, esi
je 0x418a87
mov eax, dword [esi]
mov ecx, dword [eax + 8]
push esi
call ecx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x418c00
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x514c2b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x10], ebx
jne 0x418d20
push 0x1c
call fcn.004b9963
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
cmp esi, ebx
je 0x418c73
mov eax, 0x10000
push eax
mov dword [esi + 0xc], eax
mov dword [esi + 0x14], ebx
mov byte [esi], bl
mov byte [esi + 0x18], 1
mov dword [esi + 8], eax
call fcn.004b7ec3
add esp, 4
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x418c75
mov byte [esi], 1
jmp 0x418c75
xor esi, esi
push 1
push 0x100000
mov dword [esp + 0x28], 0xffffffff
call fcn.004c1fcb
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x418cd1
call fcn.004c20dd
push eax
push 0x100000
push 1
push ebp
call fcn.004b8548
add esp, 0x10
cmp eax, ebx
jle 0x418cd1
lea esp, [esp]
mov ecx, ebp
call fcn.00418780
call fcn.004c20dd
push eax
push 0x100000
push 1
push ebp
call fcn.004b8548
add esp, 0x10
cmp eax, ebx
jg 0x418cb0
cmp byte [esi], bl
je 0x418cdd
mov dword [edi + 0xc], ebx
mov dword [edi + 0x18], ebx
jmp 0x418cfc
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
mov byte [esi + 0x18], bl
call fcn.004b9b8a
mov dword [esi + 4], eax
mov dword [edi + 0xc], eax
mov edx, dword [esi + 0x14]
add esp, 8
mov dword [edi + 0x18], edx
cmp byte [esi + 0x18], bl
je 0x418d0d
mov eax, dword [esi + 4]
push eax
call fcn.004b7f8d
add esp, 4
push esi
call fcn.004b7e69
push ebp
call fcn.004b7f8d
add esp, 8
mov byte [edi + 8], 1
call fcn.00418b00
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x4256e0
Capabilities:
Create thread

Disassembly:
mov eax, dword [esp + 4]
push eax
call fcn.00425820
mov ecx, eax
add ecx, 0x38
call fcn.00401000
mov eax, dword [esp + 8]
cmp dword [eax + 0x14], 0
je 0x42570e
push eax
call fcn.00425820
mov ecx, eax
add ecx, 0x54
call fcn.00401000
mov eax, dword [esp + 0xc]
cmp dword [eax + 0x14], 0
je 0x425728
push eax
call fcn.00425820
mov ecx, eax
add ecx, 0x1c
call fcn.00401000
mov eax, dword [0x5710e0]
push esi
lea ecx, [esp + 0xc]
push ecx
push 0
push eax
push 0x42b6a0
push 0
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
pop esi
ret
Function at 0x426220
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x214
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x210], eax
push ebx
push 0x206
xor ebx, ebx
lea ecx, [esp + 0x12]
xor eax, eax
push ebx
push ecx
mov word [esp + 0x18], ax
call fcn.004b8df0
add esp, 0xc
lea edx, [esp + 0xc]
push edx
push ebx
push ebx
push 0x25
push ebx
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x42627d
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004b8dd5
add esp, 0x214
ret
push esi
push str.kernel32.dll
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push ebx
lea ecx, [esp + 0x14]
push ecx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
cmp esi, ebx
jbe 0x4262ee
push edi
push esi
call fcn.004809a6
add esp, 4
mov edi, eax
push edi
push esi
push ebx
lea edx, [esp + 0x20]
push edx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x1c], ebx
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x4262e4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x53bb80
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4262e4
mov edx, dword [esp + 0xc]
mov ebx, dword [edx + 8]
push edi
call fcn.004ba1cb
add esp, 4
pop edi
mov ecx, dword [esp + 0x218]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004b8dd5
add esp, 0x214
ret

Function at 0x426430
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea ecx, [esp]
call fcn.0050afb0
lea ecx, [esp]
call fcn.0050af80
push eax
mov eax, dword [esp + 0xc]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
lea ecx, [esp]
test eax, eax
je 0x426462
call fcn.0050af90
xor al, al
pop ecx
ret
push ebx
push 0
push 0
push 0
call fcn.0050af70
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
lea ecx, [esp + 4]
sete bl
call fcn.0050af90
mov al, bl
pop ebx
pop ecx
ret

Function at 0x4264f0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea ecx, [esp]
mov dword [esp + 4], 0x64
call fcn.0050afb0
lea ecx, [esp]
call fcn.0050af80
mov ecx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0x14]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x42652e
lea ecx, [esp]
call fcn.0050af90
xor al, al
add esp, 8
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
lea edx, [esp + 4]
push edx
push eax
push 0
push 0
push ecx
lea ecx, [esp + 0x14]
call fcn.0050af70
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp]
test eax, eax
jne 0x426523
call fcn.0050af90
mov al, 1
add esp, 8
ret
Function at 0x428110
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x51470b
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x14], esi
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00480bc6
push 4
mov dword [esp + 0x24], 0
call fcn.004b9963
mov edi, eax
add esp, 4
test edi, edi
je 0x428192
call fcn.00480f11
mov dword [edi], eax
call fcn.00480d3f
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.00480c63
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x428187
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.00480c8b
jmp 0x428194
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret

Function at 0x42a580
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x42a599
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42a5d4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x42a5d0
lea ebx, [ebx]
cmp esi, eax
jae 0x42a5d4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x42a5c0
cmp esi, eax
jb 0x42a5da
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret
Function at 0x42b570
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x514ad8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi + 0x18]
test eax, eax
jle 0x42b5b5
mov eax, dword [esi + 0x18]
mov ecx, dword [esi + 0x1c]
push 0
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov edx, dword [ebp + 8]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edx
push eax
mov dword [esi + 4], 0
call edi
test eax, eax
je 0x42b5dc
mov ecx, dword [esi + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [esi + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 8], 0xffffffff
mov eax, dword [esi + 0x14]
add esi, 0x14
push 0xffffffffffffffff
push eax
call edi
cmp dword [esi + 0x28], 0
mov ecx, dword [esi]
push ecx
sete bl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
jne 0x42b683
lea esp, [esp]
lea edx, [esp + 0x14]
push edx
mov ebx, esi
call fcn.0042b8c0
mov dword [esp + 0x28], 0
mov ecx, dword [esp + 0x14]
mov eax, dword [ecx]
mov edx, dword [eax + 0xc]
call edx
mov dword [esp + 0x28], 0xffffffff
mov ebx, dword [esp + 0x18]
test ebx, ebx
je 0x42b668
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42b668
mov edx, dword [ebx]
mov eax, dword [edx]
mov ecx, ebx
call eax
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x42b668
mov eax, dword [ebx]
mov edx, dword [eax + 4]
mov ecx, ebx
call edx
mov eax, dword [esi]
push 0xffffffffffffffff
push eax
call edi
cmp dword [esi + 0x28], 0
mov ecx, dword [esi]
push ecx
sete bl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
je 0x42b610
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push 0xffffffffffffffff
push 0x514ab1
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x10], 0
mov eax, dword [ebx]
push 0xffffffffffffffff
push eax
mov dword [esp + 0x1c], ebx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x28], 1
mov esi, dword [ebx + 0x24]
lea edi, [ebx + 0xc]
lea ecx, [esp + 0x18]
call fcn.00450960
mov eax, dword [edi + 0x18]
cmp eax, esi
ja 0x42b928
mov ecx, dword [edi + 0x1c]
add ecx, eax
cmp esi, ecx
jbe 0x42b92d
call fcn.004b9938
push edi
lea ecx, [esp + 0x1c]
call fcn.004025f0
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x18]
call fcn.0042bd90
mov esi, ebp
call fcn.004257c0
mov esi, edi
mov dword [esp + 0x10], 1
call fcn.0042b9e0
mov edx, dword [ebx]
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov eax, ebp
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x1c
ret 4
Function at 0x42c210
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x516eed
mov eax, dword fs:[0]
push eax
sub esp, 0xb8
push ebx
push ebp
push esi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0xc8]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
mov ecx, edi
mov dword [esp + 0x18], edi
mov dword [esp + 0x14], ebx
call fcn.004029a0
add esi, 0x118
mov dword [esp + 0xd0], ebx
mov ebp, 1
mov ecx, esi
mov dword [esp + 0x14], ebp
call fcn.00402980
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42c35f
lea eax, [esp + 0x34]
push eax
call fcn.0042cdd0
mov ecx, esi
mov dword [esp + 0xd0], ebp
call fcn.00402980
push 0x21
mov ecx, eax
lea esi, [esp + 0x40]
call fcn.0042e1a0
test eax, eax
jne 0x42c2c5
mov ecx, dword [esp + 0x34]
mov ecx, dword [ecx + 4]
mov eax, dword [esp + ecx + 0x3c]
lea ecx, [esp + ecx + 0x34]
or eax, 2
cmp dword [ecx + 0x28], ebx
jne 0x42c2be
or eax, 4
push ebx
push eax
call fcn.0042adc0
push 2
lea esi, [esp + 0x38]
call fcn.0042caf0
mov edx, dword [esp + 0x34]
mov eax, dword [edx + 4]
test byte [esp + eax + 0x3c], 6
jne 0x42c2fb
mov ecx, dword [esp + eax + 0x5c]
mov eax, dword [ecx]
mov eax, dword [eax + 0x24]
push ebp
push ebp
push ebx
lea edx, [esp + 0x28]
push edx
call eax
mov ecx, dword [esp + 0x24]
mov eax, dword [esp + 0x1c]
jmp 0x42c306
mov eax, dword [0x520520]
xor ecx, ecx
mov dword [esp + 0x28], ebx
push ebx
lea esi, [esp + 0x38]
lea ebp, [ecx + eax]
call fcn.0042caf0
push ebx
lea ecx, [ebp + 1]
push ecx
mov ecx, edi
call fcn.00401570
mov ecx, edi
call fcn.00401180
push ebp
push 0xffffffffffffffff
push eax
mov ecx, esi
call fcn.0042db70
lea ecx, [esp + 0x8c]
mov byte [esp + 0xd0], bl
call fcn.0042cf00
lea edx, [esp + 0x8c]
push edx
mov dword [esp + 0x90], vtable.std::ios_base.0
call fcn.00480a75
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0xc8]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
add esp, 0xc4
ret
Function at 0x42c3a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x515dd8
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
lea eax, [esp + 0x10]
push eax
call fcn.0050d250
add esp, 4
xor edi, edi
push str.2015_10_22_18:00
mov ecx, eax
mov dword [esp + 0x84], edi
call fcn.00407660
test eax, eax
lea ecx, [esp + 0x10]
setle bl
mov dword [esp + 0x80], 0xffffffff
call fcn.00402a30
test bl, bl
jne 0x42c4db
push str.SoftwareKuaiZipReport
lea ecx, [esp + 0x14]
call fcn.00403290
push edi
push 1
lea ecx, [esp + 0x18]
push ecx
push reloc.WS2_32.dll_accept
lea ecx, [esp + 0x58]
mov dword [esp + 0x90], 1
call fcn.0050aef0
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 3
call fcn.00402a30
lea ecx, [esp + 0x48]
call fcn.0050ad70
test al, al
jne 0x42c46d
lea ecx, [esp + 0x48]
call fcn.0050aed0
mov al, 1
jmp 0x42c4dd
push str.timestamp
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], edi
call fcn.00403290
lea edx, [esp + 0xc]
push edx
lea eax, [esp + 0x30]
push eax
lea ecx, [esp + 0x50]
call fcn.0050ae00
test al, al
lea ecx, [esp + 0x2c]
sete bl
call fcn.00402a30
test bl, bl
jne 0x42c460
mov ecx, dword [esp + 0xc]
push ecx
call fcn.00477ee0
add esp, 4
mov edi, eax
call fcn.00477e80
cmp eax, edi
jne 0x42c460
lea ecx, [esi + 0x118]
call fcn.00402980
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0x48]
test eax, eax
je 0x42c464
call fcn.0050aed0
xor al, al
mov ecx, dword [esp + 0x78]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x68]
xor ecx, esp
call fcn.004b8dd5
add esp, 0x78
ret

Function at 0x42c5f0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
sub esp, 0x108
mov eax, dword [0x568e30]
xor eax, esp
mov dword [esp + 0x104], eax
push edi
push 0x103
lea eax, [esp + 9]
push 0
push eax
mov byte [esp + 0x10], 0
call fcn.004b8df0
add esp, 0xc
push 0
push 0x1a
lea ecx, [esp + 0xc]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendA]
push str.Kuaizip
lea edx, [esp + 8]
push edx
call edi
lea eax, [esp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
jne 0x42c671
push eax
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x42c671
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.report_config.txt
lea eax, [esp + 8]
push eax
call edi
lea ecx, [esp + 4]
push ecx
lea ecx, [esi + 0x118]
call fcn.00402960
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.004b8dd5
add esp, 0x108
ret
Function at 0x42cdd0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5169a7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x568e30]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x2c]
xor ebx, ebx
mov dword [esp + 0x18], ebx
mov dword [ebp], 0x53bdf0
mov dword [ebp + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x24], ebx
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_istream_char__struct_std::char_traits_char__.0
mov edx, dword [ebp]
mov dword [ebp + 4], ebx
mov edi, dword [edx + 4]
add edi, ebp
mov ecx, edi
mov dword [esp + 0x18], 1
call fcn.0042a450
lea esi, [ebp + 8]
push 0x20
mov ecx, edi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], ebx
call fcn.004292e0
mov byte [edi + 0x30], al
cmp dword [edi + 0x28], ebx
jne 0x42ce66
mov eax, dword [edi + 8]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, edi
call fcn.0042adc0
mov dword [edi + 4], ebx
mov dword [esp + 0x24], 2
mov eax, dword [ebp]
mov ecx, dword [eax + 4]
mov dword [ecx + ebp], vtable.std::basic_ifstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.00428110
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x48], bl
mov byte [esi + 0x41], bl
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], ebx
mov eax, dword [esi + 0x24]
mov dword [eax], ebx
mov ecx, dword [esi + 0x34]
mov dword [ecx], ebx
mov edx, dword [esi + 0x10]
mov dword [edx], ebx
mov eax, dword [esi + 0x20]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x4c], ebx
mov edx, dword [0x5711c0]
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, ebp
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x14
ret 4