joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4189a0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x529981
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x580ca0]
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 0x418a19
cmp dword [esi + 0x10], 1
jne 0x418a19
mov edi, dword [esi]
cmp byte [edi], 0
jne 0x418a19
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.004c105d
mov dword [edi + 4], eax
mov dword [esi + 0xc], eax
call fcn.004c4e3d
mov edx, dword [esi + 0x18]
add eax, 0x20
push eax
mov eax, dword [esi + 0xc]
push edx
push 1
push eax
call fcn.004bb52b
add esp, 0x18
cmp dword [esi + 0x14], 0
jne 0x418a42
mov eax, dword [esi + 0x2c]
test eax, eax
je 0x418a85
mov edx, dword [esi + 0x34]
test edx, edx
je 0x418a85
mov ecx, dword [esi + 0x38]
test ecx, ecx
je 0x418a85
mov edi, dword [eax]
push 0
push ecx
mov ecx, dword [edi + 0xc]
push edx
push eax
call ecx
jmp 0x418a85
cmp dword [esi + 0x10], 0
jne 0x418a64
cmp byte [esi + 8], 0
je 0x418a5a
mov edx, dword [esi + 0xc]
push edx
call fcn.004bf535
add esp, 4
mov eax, dword [esi + 4]
test eax, eax
je 0x418a85
push eax
jmp 0x418a7d
mov edi, dword [esi]
test edi, edi
je 0x418a85
cmp byte [edi + 0x18], 0
je 0x418a7c
mov eax, dword [edi + 4]
push eax
call fcn.004bf535
add esp, 4
push edi
call fcn.004b9d78
add esp, 4
mov eax, dword [esi + 0x34]
test eax, eax
je 0x418a9c
push eax
call fcn.004b9d83
add esp, 4
mov dword [esi + 0x34], 0
mov byte [esp + 0x14], 0
mov eax, dword [esi + 0x30]
test eax, eax
je 0x418ab0
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 0x418ac7
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 0x418c40
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x52993b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push ebp
push esi
push edi
mov eax, dword [0x580ca0]
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 0x418d60
push 0x1c
call fcn.004bf084
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
mov dword [esp + 0x20], ebx
cmp esi, ebx
je 0x418cb3
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.004bffb7
add esp, 4
mov dword [esi + 4], eax
cmp eax, ebx
jne 0x418cb5
mov byte [esi], 1
jmp 0x418cb5
xor esi, esi
push 1
push 0x100000
mov dword [esp + 0x28], 0xffffffff
call fcn.004c4d2b
mov ebp, eax
add esp, 8
cmp ebp, ebx
je 0x418d11
call fcn.004c4e3d
push eax
push 0x100000
push 1
push ebp
call fcn.004c04bb
add esp, 0x10
cmp eax, ebx
jle 0x418d11
lea esp, [esp]
mov ecx, ebp
call fcn.004187c0
call fcn.004c4e3d
push eax
push 0x100000
push 1
push ebp
call fcn.004c04bb
add esp, 0x10
cmp eax, ebx
jg 0x418cf0
cmp byte [esi], bl
je 0x418d1d
mov dword [edi + 0xc], ebx
mov dword [edi + 0x18], ebx
jmp 0x418d3c
mov eax, dword [esi + 0x14]
mov ecx, dword [esi + 4]
push eax
push ecx
mov byte [esi + 0x18], bl
call fcn.004c105d
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 0x418d4d
mov eax, dword [esi + 4]
push eax
call fcn.004bf535
add esp, 4
push esi
call fcn.004b9d78
push ebp
call fcn.004bf535
add esp, 8
mov byte [edi + 8], 1
call fcn.00418b40
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 0x425720
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x52987b
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x580ca0]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
push 0x40
call fcn.004bf084
add esp, 4
mov dword [esp + 8], eax
mov dword [esp + 0x14], 0
test eax, eax
je 0x425764
push eax
call fcn.0042b3c0
jmp 0x425766
xor eax, eax
push eax
mov dword [esp + 0x18], 0xffffffff
call fcn.004259f0
mov eax, dword [esp + 0x1c]
push eax
call fcn.00425910
mov ecx, eax
add ecx, 0x38
call fcn.00401000
mov eax, dword [esp + 0x20]
cmp dword [eax + 0x14], 0
je 0x4257a2
push eax
call fcn.00425910
mov ecx, eax
add ecx, 0x54
call fcn.00401000
mov eax, dword [esp + 0x24]
cmp dword [eax + 0x14], 0
je 0x4257bc
push eax
call fcn.00425910
mov ecx, eax
add ecx, 0x1c
call fcn.00401000
mov esi, dword [0x589c00]
lea ecx, [esp + 0x20]
push ecx
push 0
push esi
push 0x42ba30
push 0
push 0
mov dword [esi + 4], 1
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 8], eax
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x426310
Capabilities:
Get common file path
Get file version info

Disassembly:
sub esp, 0x214
mov eax, dword [0x580ca0]
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.004ba280
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 0x42636d
xor eax, eax
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.004ba1db
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 0x4263de
push edi
push esi
call fcn.004828fb
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 0x4263d4
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0x551458
push edi
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x4263d4
mov edx, dword [esp + 0xc]
mov ebx, dword [edx + 8]
push edi
call fcn.004b9d83
add esp, 4
pop edi
mov ecx, dword [esp + 0x218]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.004ba1db
add esp, 0x214
ret

Function at 0x426520
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
lea ecx, [esp]
call fcn.0051ed50
lea ecx, [esp]
call fcn.0051ed20
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 0x426552
call fcn.0051ed30
xor al, al
pop ecx
ret
push ebx
push 0
push 0
push 0
call fcn.0051ed10
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
test eax, eax
lea ecx, [esp + 4]
sete bl
call fcn.0051ed30
mov al, bl
pop ebx
pop ecx
ret

Function at 0x4265e0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
lea ecx, [esp]
mov dword [esp + 4], 0x64
call fcn.0051ed50
lea ecx, [esp]
call fcn.0051ed20
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 0x42661e
lea ecx, [esp]
call fcn.0051ed30
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.0051ed10
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea ecx, [esp]
test eax, eax
jne 0x426613
call fcn.0051ed30
mov al, 1
add esp, 8
ret
Function at 0x4282c0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x5293bb
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x580ca0]
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.00482a0f
push 4
mov dword [esp + 0x24], 0
call fcn.004bf084
mov edi, eax
add esp, 4
test edi, edi
je 0x428342
call fcn.00482c1a
mov dword [edi], eax
call fcn.00482aef
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004829d0
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x428337
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004829f8
jmp 0x428344
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 0x42a820
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 0x42a839
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x42a874
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x42a870
lea ebx, [ebx]
cmp esi, eax
jae 0x42a874
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x42a860
cmp esi, eax
jb 0x42a87a
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 0x42b8a0
Capabilities:
Check for time delay via gettickcount
Terminate thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5297b8
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x580ca0]
xor eax, esp
push eax
lea eax, [esp + 0x20]
mov dword fs:[0], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, dword [ebp + 8]
mov edi, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [esp + 0x14], eax
mov eax, dword [ebx + 0x14]
lea esi, [ebx + 0x14]
push 0xffffffffffffffff
push eax
call edi
cmp dword [esi + 0x28], 0
mov ecx, dword [esi]
push ecx
sete byte [esp + 0x17]
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
cmp byte [esp + 0x13], 0
jne 0x42b938
call dword [sym.imp.KERNEL32.dll_GetTickCount]
sub eax, dword [esp + 0x14]
cmp eax, dword [ebp + 0xc]
ja 0x42b938
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [esi]
push 0xffffffffffffffff
push edx
call edi
cmp dword [esi + 0x28], 0
mov eax, dword [esi]
push eax
sete bl
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test bl, bl
mov ebx, dword [ebp + 8]
je 0x42b903
mov ecx, dword [ebx + 0x18]
test ecx, ecx
jle 0x42b94f
mov eax, dword [ebx + 0x18]
mov edx, dword [ebx + 0x1c]
push 0
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
mov eax, dword [ebx + 8]
push 0xffffffffffffffff
push eax
mov dword [ebx + 4], 0
call edi
test eax, eax
je 0x42b96e
mov ecx, dword [ebx + 8]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov edx, dword [ebx + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 8], 0xffffffff
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
jne 0x42ba13
lea ebx, [ebx]
lea edx, [esp + 0x14]
push edx
mov ebx, esi
call fcn.0042bc50
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 0x42b9f8
lea eax, [ebx + 8]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x42b9f8
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 0x42b9f8
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 0x42b9a0
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x42bc50
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x529791
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebp
push esi
push edi
mov eax, dword [0x580ca0]
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.0046bb70
mov eax, dword [edi + 0x18]
cmp eax, esi
ja 0x42bcb8
mov ecx, dword [edi + 0x1c]
add ecx, eax
cmp esi, ecx
jbe 0x42bcbd
call fcn.004bd101
push edi
lea ecx, [esp + 0x1c]
call fcn.004027c0
mov dword [esp + 0x1c], esi
lea esi, [esp + 0x18]
call fcn.0042c120
mov esi, ebp
call fcn.004258b0
mov esi, edi
mov dword [esp + 0x10], 1
call fcn.0042bd70
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 0x42c5a0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x52bcdd
mov eax, dword fs:[0]
push eax
sub esp, 0xb4
push ebx
push edi
mov eax, dword [0x580ca0]
xor eax, esp
push eax
lea eax, [esp + 0xc0]
mov dword fs:[0], eax
mov edi, ecx
xor ebx, ebx
mov ecx, esi
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], ebx
call fcn.00402b90
add edi, 0x118
mov dword [esp + 0xc8], ebx
mov ecx, edi
mov dword [esp + 0xc], 1
call fcn.00402b70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42c6c6
mov ecx, edi
call fcn.00402b70
push eax
lea eax, [esp + 0x30]
push eax
call fcn.004312b0
push 2
push ebx
lea ecx, [esp + 0x34]
mov dword [esp + 0xd0], 1
call fcn.0042cd50
mov ecx, dword [esp + 0x2c]
mov eax, dword [ecx + 4]
test byte [esp + eax + 0x34], 6
jne 0x42c65f
mov ecx, dword [esp + eax + 0x54]
mov edx, dword [ecx]
mov edx, dword [edx + 0x24]
push 1
push 1
push ebx
lea eax, [esp + 0x20]
push eax
call edx
mov ecx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
jmp 0x42c66a
mov eax, dword [0x535618]
xor ecx, ecx
mov dword [esp + 0x20], ebx
push ebx
lea edi, [ecx + eax]
push ebx
lea ecx, [esp + 0x34]
call fcn.0042cd50
push ebx
lea eax, [edi + 1]
push eax
mov ecx, esi
call fcn.00401570
mov ecx, esi
call fcn.00401180
push edi
push 0xffffffffffffffff
push eax
lea ecx, [esp + 0x38]
call fcn.0042dc30
lea ecx, [esp + 0x84]
mov byte [esp + 0xc8], bl
call fcn.0042d090
lea ecx, [esp + 0x84]
push ecx
mov dword [esp + 0x88], vtable.std::ios_base.0
call fcn.00483053
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0xc0]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
add esp, 0xc0
ret
Function at 0x42c700
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x52aaa0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x580ca0]
xor eax, esp
mov dword [esp + 0x68], eax
push ebx
push edi
mov eax, dword [0x580ca0]
xor eax, esp
push eax
lea eax, [esp + 0x78]
mov dword fs:[0], eax
push str.SoftwareKuaiZipReport
lea ecx, [esp + 0x14]
call fcn.00403470
xor edi, edi
push edi
push 1
lea eax, [esp + 0x18]
push eax
push reloc.WS2_32.dll_accept
lea ecx, [esp + 0x58]
mov dword [esp + 0x90], edi
call fcn.0051ec90
lea ecx, [esp + 0x10]
mov byte [esp + 0x80], 2
call fcn.00402c20
lea ecx, [esp + 0x48]
call fcn.0051eab0
test al, al
jne 0x42c788
lea ecx, [esp + 0x48]
call fcn.0051ec70
mov al, 1
jmp 0x42c7f8
push str.timestamp
lea ecx, [esp + 0x30]
mov dword [esp + 0x10], edi
call fcn.00403470
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x30]
push edx
lea ecx, [esp + 0x50]
call fcn.0051eb40
test al, al
lea ecx, [esp + 0x2c]
sete bl
call fcn.00402c20
test bl, bl
jne 0x42c77b
mov eax, dword [esp + 0xc]
push eax
call fcn.00437420
add esp, 4
mov edi, eax
call fcn.004373c0
cmp eax, edi
jne 0x42c77b
lea ecx, [esi + 0x118]
call fcn.00402b70
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
lea ecx, [esp + 0x48]
test eax, eax
je 0x42c77f
call fcn.0051ec70
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.004ba1db
add esp, 0x78
ret

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

Disassembly:
sub esp, 0x108
mov eax, dword [0x580ca0]
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.004ba280
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 0x42c991
push eax
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExA]
test eax, eax
je 0x42c991
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.00402b50
mov ecx, dword [esp + 0x108]
pop edi
xor ecx, esp
call fcn.004ba1db
add esp, 0x108
ret
Function at 0x42e5d0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x52b6db
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x580ca0]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
lea esi, [edi + 4]
xor ebx, ebx
push edi
mov edx, esi
mov dword [esp + 0x14], ebx
call fcn.0042ea00
mov dword [esp + 0x1c], 1
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
mov ecx, esi
call fcn.004282c0
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 [0x589c70]
mov dword [esi + 0x44], edx
mov dword [esi + 0x3c], ebx
mov eax, edi
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x431830
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x52b4d7
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push esi
push edi
mov eax, dword [0x580ca0]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov ebp, ecx
mov dword [esp + 0x18], ebp
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esp + 0x2c], ebx
je 0x431883
mov dword [ebp], 0x551688
mov dword [ebp + 0x58], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [esp + 0x24], ebx
mov dword [esp + 0x14], 1
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
call fcn.0042a6f0
lea esi, [ebp + 8]
push 0x20
mov ecx, edi
mov dword [edi + 0x28], esi
mov dword [edi + 0x2c], ebx
call fcn.00429410
mov byte [edi + 0x30], al
cmp dword [edi + 0x28], ebx
jne 0x4318ce
mov eax, dword [edi + 8]
or eax, 4
or eax, 4
push ebx
push eax
mov ecx, edi
call fcn.0042b0e0
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.004282c0
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 [0x589c70]
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
Function at 0x432560
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x914
mov eax, dword [0x580ca0]
xor eax, esp
mov dword [esp + 0x910], eax
push esi
push edi
push 0xff
lea eax, [esp + 0x1d]
push 0
push eax
mov esi, ecx
or edi, 0xffffffff
mov dword [esp + 0x14], 0
mov byte [esp + 0x24], 0
call fcn.004ba280
push esi
lea ecx, [esp + 0x28]
push str.SYSTEMCurrentControlSetControlNetwork4D36E972_E325_11CE_BFC1_08002BE10318_sConnection
push ecx
call fcn.004ba81b
add esp, 0x18
lea edx, [esp + 8]
push edx
push 0x20019
push 0
lea eax, [esp + 0x24]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x43268d
xor ecx, ecx
push 0x7fe
push ecx
lea edx, [esp + 0x122]
push edx
mov word [esp + 0x124], cx
call fcn.004ba280
mov edx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
add esp, 0xc
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x11c]
push ecx
push 0
push 0
push str.PnpInstanceID
push edx
mov dword [esp + 0x28], 0x800
call esi
test eax, eax
jne 0x432682
push 3
push 0x55174c
lea eax, [esp + 0x120]
push eax
push 0
call dword [sym.imp.SHLWAPI.dll_StrIsIntlEqualW]
test eax, eax
je 0x432682
mov eax, dword [esp + 8]
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x10]
push edx
push 0
push 0
push str.MediaSubType
push eax
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], 4
call esi
cmp eax, 2
je 0x432680
test eax, eax
jne 0x432682
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x432680
cmp eax, 2
jne 0x432682
lea edi, [eax - 1]
jmp 0x432682
xor edi, edi
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x918]
mov eax, edi
pop edi
pop esi
xor ecx, esp
call fcn.004ba1db
add esp, 0x914
ret