joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d480
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x120], 0x114
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x41d4b2
xor eax, eax
jmp 0x41d4be
cmp dword [ebp - 0x11c], 5
sbb eax, eax
add eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret

Function at 0x41f930
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], 0
jmp 0x41f948
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x100
jae 0x41f99b
mov ecx, dword [ebp - 4]
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 0
jmp 0x41f969
mov edx, dword [ebp - 0xc]
add edx, 1
mov dword [ebp - 0xc], edx
cmp dword [ebp - 0xc], 8
jae 0x41f98c
mov eax, dword [ebp - 8]
shr eax, 1
mov ecx, dword [ebp - 8]
and ecx, 1
sub ecx, 1
not ecx
and ecx, 0xedb88320
xor eax, ecx
mov dword [ebp - 8], eax
jmp 0x41f960
mov edx, dword [ebp - 4]
mov eax, dword [ebp - 8]
mov dword [edx*4 + 0x5416e8], eax
jmp 0x41f93f
jmp 0x41f9a6
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
cmp dword [ebp - 4], 0x800
jae 0x41f9de
mov edx, dword [ebp - 4]
mov eax, dword [edx*4 + 0x5412e8]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
and ecx, 0xff
mov edx, dword [ebp - 0x10]
shr edx, 8
xor edx, dword [ecx*4 + 0x5416e8]
mov eax, dword [ebp - 4]
mov dword [eax*4 + 0x5416e8], edx
jmp 0x41f99d
mov dword [0x5436e8], fcn.0041fa00
call fcn.0041d350
test eax, eax
jne 0x41f9fb
mov dword [0x5436e8], 0x41fb10
mov esp, ebp
pop ebp
ret
Function at 0x42a610
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0016
mov eax, dword fs:[0]
push eax
sub esp, 0x258
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x264], ecx
mov byte [ebp - 0x224], 0
push 0x103
push 0
lea eax, [ebp - 0x223]
push eax
call fcn.00491200
add esp, 0xc
lea ecx, [ebp - 0x224]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.KZ7ZData.7z.MD5
lea edx, [ebp - 0x224]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x224]
push eax
push str.7ZDATAMD5
mov ecx, dword [ebp - 0x264]
call fcn.0042a7c0
lea ecx, [ebp - 0x224]
push ecx
lea edx, [ebp - 0x240]
push edx
mov ecx, dword [ebp - 0x264]
call fcn.0042a9a0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x240]
call fcn.004017c0
test eax, eax
jne 0x42a6ec
mov byte [ebp - 0x241], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00403c40
mov al, byte [ebp - 0x241]
jmp 0x42a79d
mov byte [ebp - 0x11c], 0
push 0x103
push 0
lea eax, [ebp - 0x11b]
push eax
call fcn.00491200
add esp, 0xc
lea ecx, [ebp - 0x11c]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push str.KZ7ZData.7z
lea edx, [ebp - 0x11c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendA]
lea eax, [ebp - 0x11c]
push eax
push str.7ZDATA
mov ecx, dword [ebp - 0x264]
call fcn.0042a7c0
lea ecx, [ebp - 0x11c]
push ecx
lea ecx, [ebp - 0x260]
call fcn.00404490
mov byte [ebp - 4], 1
lea edx, [ebp - 0x240]
push edx
lea eax, [ebp - 0x260]
push eax
call fcn.004ef790
add esp, 8
mov byte [ebp - 0x242], al
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x260]
call fcn.00403c40
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x240]
call fcn.00403c40
mov al, byte [ebp - 0x242]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret
Function at 0x42a7c0
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov dword [ebp - 0x1c], ecx
push 0x4fa060
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [0x543d24]
push ecx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x42a7ed
jmp 0x42a886
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [0x543d24]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x10], eax
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 8], eax
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [0x543d24]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsA]
test eax, eax
je 0x42a838
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x42a886
mov dword [ebp - 0x18], 0
push 0
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret 8

Function at 0x42a9a0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x34], 0
push 0x4fa068
mov eax, dword [ebp + 0xc]
push eax
call fcn.00496309
add esp, 8
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x42a9ef
push 0x4fa04b
mov ecx, dword [ebp + 8]
call fcn.00404490
mov ecx, dword [ebp - 0x34]
or ecx, 1
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
jmp 0x42aa48
mov byte [ebp - 0x30], 0
xor edx, edx
mov dword [ebp - 0x2f], edx
mov dword [ebp - 0x2b], edx
mov dword [ebp - 0x27], edx
mov dword [ebp - 0x23], edx
mov dword [ebp - 0x1f], edx
mov dword [ebp - 0x1b], edx
mov dword [ebp - 0x17], edx
mov dword [ebp - 0x13], edx
mov eax, dword [ebp - 4]
push eax
push 0x20
push 1
lea ecx, [ebp - 0x30]
push ecx
call fcn.00496628
add esp, 0x10
mov dword [ebp - 8], eax
mov edx, dword [ebp - 4]
push edx
call fcn.00492296
add esp, 4
lea eax, [ebp - 0x30]
push eax
mov ecx, dword [ebp + 8]
call fcn.00404490
mov ecx, dword [ebp - 0x34]
or ecx, 1
mov dword [ebp - 0x34], ecx
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret 8
Function at 0x42b0a0
Capabilities:
Get file size
Hash data with crc32
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f012b
mov eax, dword fs:[0]
push eax
sub esp, 0x438
mov eax, dword [0x53fbb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x430], 0
push 0
mov eax, dword [ebp - 0x430]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x418], eax
push 0
push 0x8000000
push 3
push 0
push 3
push bind
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x430], eax
push 0
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x418], eax
mov eax, dword [ebp - 0x418]
push eax
push 0x20
lea ecx, [ebp - 0x42c]
call fcn.0042b3e0
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x434]
push ecx
mov edx, dword [ebp - 0x418]
push edx
mov eax, dword [ebp - 0x418]
push eax
lea ecx, [ebp - 0x42c]
call fcn.00402cb0
push eax
mov ecx, dword [ebp - 0x430]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov edx, dword [ebp - 0x430]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0xffffffffffffffff
lea ecx, [ebp - 0x42c]
call fcn.0042b4c0
mov dword [ebp - 0x424], 0x4c10db7
mov dword [ebp - 0x43c], 0
mov dword [ebp - 0x41c], 0
jmp 0x42b1b2
mov eax, dword [ebp - 0x41c]
add eax, 1
mov dword [ebp - 0x41c], eax
cmp dword [ebp - 0x41c], 0x100
jge 0x42b237
mov ecx, dword [ebp - 0x41c]
mov dword [ebp - 0x420], ecx
mov dword [ebp - 0x440], 0
jmp 0x42b1e5
mov edx, dword [ebp - 0x440]
add edx, 1
mov dword [ebp - 0x440], edx
cmp dword [ebp - 0x440], 8
jge 0x42b21f
mov eax, dword [ebp - 0x420]
and eax, 1
je 0x42b20f
mov ecx, dword [ebp - 0x420]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 0x420], ecx
jmp 0x42b21d
mov edx, dword [ebp - 0x420]
shr edx, 1
mov dword [ebp - 0x420], edx
jmp 0x42b1d6
mov eax, dword [ebp - 0x41c]
mov ecx, dword [ebp - 0x420]
mov dword [ebp + eax*4 - 0x414], ecx
jmp 0x42b1a3
mov dword [ebp - 0x10], 0xffffffff
mov edx, dword [ebp - 0x418]
mov dword [ebp - 0x428], edx
lea ecx, [ebp - 0x42c]
call fcn.00430fb0
mov dword [ebp - 0x438], eax
mov eax, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x428]
sub ecx, 1
mov dword [ebp - 0x428], ecx
test eax, eax
je 0x42b2a8
mov edx, dword [ebp - 0x10]
shr edx, 8
mov eax, dword [ebp - 0x10]
and eax, 0xff
mov ecx, dword [ebp - 0x438]
movzx ecx, byte [ecx]
xor eax, ecx
xor edx, dword [ebp + eax*4 - 0x414]
mov dword [ebp - 0x10], edx
mov edx, dword [ebp - 0x438]
add edx, 1
mov dword [ebp - 0x438], edx
jmp 0x42b25b
mov eax, dword [ebp - 0x10]
xor eax, 0xffffffff
mov dword [ebp - 0x444], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x42c]
call fcn.004018d0
mov eax, dword [ebp - 0x444]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
Function at 0x42b2e0
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov dword [ebp - 0x414], 0
mov dword [ebp - 0x40c], 0
jmp 0x42b30e
mov eax, dword [ebp - 0x40c]
add eax, 1
mov dword [ebp - 0x40c], eax
cmp dword [ebp - 0x40c], 0x100
jge 0x42b393
mov ecx, dword [ebp - 0x40c]
mov dword [ebp - 0x410], ecx
mov dword [ebp - 0x418], 0
jmp 0x42b341
mov edx, dword [ebp - 0x418]
add edx, 1
mov dword [ebp - 0x418], edx
cmp dword [ebp - 0x418], 8
jge 0x42b37b
mov eax, dword [ebp - 0x410]
and eax, 1
je 0x42b36b
mov ecx, dword [ebp - 0x410]
shr ecx, 1
xor ecx, 0xedb88320
mov dword [ebp - 0x410], ecx
jmp 0x42b379
mov edx, dword [ebp - 0x410]
shr edx, 1
mov dword [ebp - 0x410], edx
jmp 0x42b332
mov eax, dword [ebp - 0x40c]
mov ecx, dword [ebp - 0x410]
mov dword [ebp + eax*4 - 0x408], ecx
jmp 0x42b2ff
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
sub eax, 1
mov dword [ebp + 0xc], eax
test edx, edx
je 0x42b3d6
mov ecx, dword [ebp - 4]
shr ecx, 8
mov edx, dword [ebp - 4]
and edx, 0xff
mov eax, dword [ebp + 8]
movsx eax, byte [eax]
xor edx, eax
xor ecx, dword [ebp + edx*4 - 0x408]
mov dword [ebp - 4], ecx
mov ecx, dword [ebp + 8]
add ecx, 1
mov dword [ebp + 8], ecx
jmp 0x42b39a
mov eax, dword [ebp - 4]
xor eax, 0xffffffff
mov esp, ebp
pop ebp
ret

Function at 0x42c140
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x830
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x830], 0
push 0x40
push 0
lea eax, [ebp - 0x82c]
push eax
call fcn.00491200
add esp, 0xc
mov dword [ebp - 0x7e8], 0
xor ecx, ecx
mov dword [ebp - 0x7e4], ecx
mov dword [ebp - 0x7e0], ecx
mov dword [ebp - 0x7dc], ecx
mov dword [ebp - 0x830], 0x44
xor edx, edx
mov word [ebp - 0x800], dx
xor eax, eax
mov word [ebp - 0x7d8], ax
push 0x7ce
push 0
lea ecx, [ebp - 0x7d6]
push ecx
call fcn.00491200
add esp, 0xc
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
push 0x4fa254
lea ecx, [ebp - 0x7d8]
push ecx
call fcn.00491b1c
add esp, 0x10
lea edx, [ebp - 0x7e8]
push edx
lea eax, [ebp - 0x830]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [ebp - 0x7d8]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x42c239
push 0xffffffffffffffff
mov edx, dword [ebp - 0x7e8]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x7e8]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x7e4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x42c24c
cmp dword [ebp + 0x10], 0
je 0x42c24a
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebp + 0x10]
mov dword [edx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret
Function at 0x42c260
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0232
mov eax, dword fs:[0]
push eax
sub esp, 0x29c
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor eax, eax
mov word [ebp - 0x21c], ax
push 0x206
push 0
lea ecx, [ebp - 0x21a]
push ecx
call fcn.00491200
add esp, 0xc
mov edx, dword [ebp + 8]
push edx
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
call fcn.004eab90
movzx ecx, al
test ecx, ecx
je 0x42c2db
push 0x4fa264
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
jmp 0x42c2ed
push 0x4fa26c
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.SetupHelper.exe
lea ecx, [ebp - 0x21c]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea edx, [ebp - 0x21c]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42c317
xor eax, eax
jmp 0x42c44f
push 0x4fa294
mov eax, dword [ebp + 0xc]
push eax
push 0x4fa298
lea ecx, [ebp - 0x254]
push ecx
call fcn.0042dd70
add esp, 0xc
mov dword [ebp - 0x294], eax
mov edx, dword [ebp - 0x294]
mov dword [ebp - 0x298], edx
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x298]
push eax
lea ecx, [ebp - 0x238]
push ecx
call fcn.0041b0d0
add esp, 0xc
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x254]
call fcn.00401740
mov ecx, dword [ebp + 0x10]
call fcn.0040ab60
movzx edx, al
test edx, edx
jne 0x42c414
push 0x4fa2ac
mov eax, dword [ebp + 0x10]
push eax
push 0x4fa2b0
lea ecx, [ebp - 0x270]
push ecx
call fcn.0042dd70
add esp, 0xc
mov dword [ebp - 0x29c], eax
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x2a0], edx
mov byte [ebp - 4], 3
mov eax, dword [ebp - 0x2a0]
push eax
lea ecx, [ebp - 0x28c]
push ecx
call fcn.0041b0d0
add esp, 0xc
mov dword [ebp - 0x2a4], eax
mov edx, dword [ebp - 0x2a4]
mov dword [ebp - 0x2a8], edx
mov byte [ebp - 4], 4
mov eax, dword [ebp - 0x2a8]
push eax
lea ecx, [ebp - 0x238]
call fcn.00413fb0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x28c]
call fcn.00401740
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x270]
call fcn.00401740
push 0
lea ecx, [ebp - 0x238]
call fcn.00401780
push eax
lea ecx, [ebp - 0x21c]
push ecx
call fcn.0042c140
add esp, 0xc
mov dword [ebp - 0x290], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x238]
call fcn.00401740
mov eax, dword [ebp - 0x290]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret

Function at 0x42c5b0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push 0
push 0
push 0
push 0x42c570
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esp, ebp
pop ebp
ret
Function at 0x42e340
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f0346
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x53fbb0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x2c], ecx
cmp dword [ebp + 8], 0
je 0x42e378
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
jne 0x42e37f
xor eax, eax
jmp 0x42e43a
push 0x5c
mov edx, dword [ebp + 8]
push edx
call fcn.0049760a
add esp, 8
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x42e39d
xor eax, eax
jmp 0x42e43a
mov eax, dword [ebp - 0x1c]
sub eax, dword [ebp + 8]
sar eax, 1
add eax, 1
push eax
mov ecx, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x14]
call fcn.00430bc0
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00430fb0
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 1
je 0x42e3da
cmp dword [ebp - 0x10], 5
jne 0x42e3f5
mov dword [ebp - 0x24], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004018d0
mov eax, dword [ebp - 0x24]
jmp 0x42e43a
mov edx, dword [ebp - 0x1c]
add edx, 2
push edx
lea ecx, [ebp - 0x18]
call fcn.00401850
push str._:____
lea ecx, [ebp - 0x18]
call fcn.00430bf0
mov dword [ebp - 0x20], eax
xor eax, eax
cmp dword [ebp - 0x20], 0xffffffff
sete al
mov dword [ebp - 0x28], eax
lea ecx, [ebp - 0x18]
call fcn.004018d0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004018d0
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x42e730
Capabilities:
Check if file exists
Delete file
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x540
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x540], ecx
xor eax, eax
mov word [ebp - 0x538], ax
push 0x206
push 0
lea ecx, [ebp - 0x536]
push ecx
call fcn.00491200
add esp, 0xc
xor edx, edx
mov word [ebp - 0x320], dx
push 0x206
push 0
lea eax, [ebp - 0x31e]
push eax
call fcn.00491200
add esp, 0xc
mov ecx, dword [ebp + 0xc]
push ecx
lea edx, [ebp - 0x320]
push edx
call fcn.00490d3f
add esp, 8
lea eax, [ebp - 0x538]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea ecx, [ebp - 0x538]
push ecx
call fcn.004158b0
add esp, 4
push 0x4fa894
mov edx, dword [ebp + 8]
push edx
mov eax, dword [0x543d24]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp - 0x330], eax
cmp dword [ebp - 0x330], 0
jne 0x42e7e4
jmp 0x42e920
mov ecx, dword [ebp - 0x330]
push ecx
mov edx, dword [0x543d24]
push edx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x32c], eax
mov eax, dword [ebp - 0x32c]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x324], eax
mov ecx, dword [ebp - 0x330]
push ecx
mov edx, dword [0x543d24]
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x114], eax
push str.my7zData.7z
lea eax, [ebp - 0x538]
push eax
call fcn.00490d11
add esp, 8
lea ecx, [ebp - 0x538]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x42e85f
lea edx, [ebp - 0x538]
push edx
call fcn.00418e60
add esp, 4
push 0
push 0x80
push 1
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x538]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x328], eax
cmp dword [ebp - 0x328], 0xffffffff
je 0x42e8c8
mov dword [ebp - 0x53c], 0
push 0
lea ecx, [ebp - 0x53c]
push ecx
mov edx, dword [ebp - 0x114]
push edx
mov eax, dword [ebp - 0x324]
push eax
mov ecx, dword [ebp - 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [ebp - 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 0x110], 0
push 0x103
push 0
lea eax, [ebp - 0x10f]
push eax
call fcn.00491200
add esp, 0xc
lea ecx, [ebp - 0x110]
push ecx
lea edx, [ebp - 0x538]
push edx
call fcn.00415a10
add esp, 8
push 1
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x320]
push ecx
call fcn.004279a0
add esp, 0xc
lea edx, [ebp - 0x538]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret 8
Function at 0x42e9e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x48], ax
push 0x3e
push 0
lea ecx, [ebp - 0x46]
push ecx
call fcn.00491200
add esp, 0xc
movzx edx, word [ebp + 8]
push edx
push str._c:_
lea eax, [ebp - 0x48]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
lea ecx, [ebp - 0x50]
push ecx
lea edx, [ebp - 0x58]
push edx
lea eax, [ebp - 0x60]
push eax
lea ecx, [ebp - 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
mov eax, dword [ebp - 0x50]
mov edx, dword [ebp - 0x4c]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret
Function at 0x42f7e0
Capabilities:
Check if file exists
Copy file
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x53fbb0]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
mov word [ebp - 0x210], ax
push 0x206
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00491200
add esp, 0xc
xor edx, edx
mov word [ebp - 0x418], dx
push 0x206
push 0
lea eax, [ebp - 0x416]
push eax
call fcn.00491200
add esp, 0xc
lea ecx, [ebp - 0x418]
push ecx
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
push str.Softlink
lea edx, [ebp - 0x418]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.SLDefault.xml
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov ecx, 0x543740
call fcn.00401780
push eax
lea edx, [ebp - 0x210]
push edx
call fcn.00490d3f
add esp, 8
push str.Softlink.xml
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea ecx, [ebp - 0x418]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x42f8cc
push 0
lea edx, [ebp - 0x418]
push edx
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049115e
mov esp, ebp
pop ebp
ret
Function at 0x4304e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 0x20], ecx
cmp dword [ebp + 8], 0
jne 0x4304f9
mov eax, 1
jmp 0x430602
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMicrosoftWindowsCurrentVersion
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x4305fd
lea ecx, [ebp - 0xc]
push ecx
push 0
push 0
push 0
push 0x4faaec
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x430554
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
jmp 0x430602
mov ecx, dword [ebp - 0xc]
add ecx, 1
mov dword [ebp - 0xc], ecx
mov edx, dword [ebp - 0xc]
push edx
call fcn.0045785b
add esp, 4
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x4305f3
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp - 0x10]
push edx
push 0
push 0
push 0x4fab0c
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x4305bf
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
push eax
call fcn.00490d06
add esp, 4
mov eax, 1
jmp 0x430602
mov ecx, dword [ebp - 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00497532
add esp, 0xc
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0x1c], edx
mov eax, dword [ebp - 0x1c]
push eax
call fcn.00490d06
add esp, 4
xor eax, eax
jmp 0x430602
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
mov esp, ebp
pop ebp
ret 8