joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004dd90
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x1004dead
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x1004dead
mov eax, dword [esi + 0x3c]
push eax
call fcn.1006a793
mov esi, eax
test esi, esi
je 0x1004dead
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x1004dead
mov ecx, esi
call fcn.1004dd00
cmp edi, eax
jge 0x1004dead
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x1004de33
mov dword [esp + 0x34], 1
jmp 0x1004de8e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x1004dead
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.1004d2b0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x1004fe30
Capabilities:
Create process on windows

Disassembly:
push str.Microsoft_Internet_Explorer
push 0
push 0
push 0
call dword [sym.imp.USER32.dll_FindWindowExA]
mov ecx, dword [esp + 4]
push 1
push 0
push 0
push ecx
push str.open
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret 4

Function at 0x1005203c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x14], edi
mov ebx, ecx
je 0x1005207a
call fcn.1007252d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x1005207a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x10052091
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push 1
test edi, edi
pop eax
je 0x10052091
push dword [esp + 0x18]
mov eax, dword [ebx]
mov ecx, ebx
push edi
push dword [esp + 0x18]
call dword [eax + 0x1c]
pop edi
pop esi
pop ebx
ret 0xc
Function at 0x1006b137
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1006b16f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.100691ee
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.100691c6
jmp 0x1006b17b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x1006c82c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x1006c86e
call fcn.1007252d
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x1006c86e
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x1006c865
xor eax, eax
jmp 0x1006c876
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.1006c87c
pop edi
pop esi
pop ebx
ret 4
Function at 0x4014ce
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [eax + 0x30], ecx
mov dword [eax + 0x4c], ecx
mov dword [eax + 0x20], ecx
call fcn.004014b4
push esi
xor edx, edx
add eax, 0x70
push edi
push 8
mov ecx, edx
pop esi
mov edi, ecx
and edi, 1
dec edi
not edi
and edi, 0xedb88320
shr ecx, 1
xor ecx, edi
dec esi
jne 0x4014f0
mov dword [eax], ecx
inc edx
add eax, 4
cmp edx, 0x100
jb 0x4014eb
pop edi
pop esi
pop ebp
ret

Function at 0x404db3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, eax
mov eax, pe_nt_image_headers32
push edi
mov ebx, eax
or esi, eax
shl dword [ebp + 0x10], 1
mov eax, esi
shr eax, 7
and eax, 1
push eax
mov eax, ebx
and eax, dword [ebp + 0x10]
mov ecx, esi
add eax, ebx
shr ecx, 8
add ecx, eax
mov eax, dword [ebp + 0xc]
lea edi, [eax + ecx*2]
mov eax, dword [ebp + 8]
call fcn.00404d27
add esi, esi
mov eax, esi
xor eax, dword [ebp + 0x10]
pop ecx
not eax
and ebx, eax
cmp esi, 0x10000
jb 0x404dc4
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x404e4b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor eax, eax
or ecx, 0x100
push esi
mov esi, dword [ebp + 8]
mov edx, ecx
shr edx, 8
movzx edx, word [esi + edx*2]
mov esi, ecx
shr esi, 7
and esi, 1
neg esi
sar esi, 4
and esi, 0x7f
shr edx, 4
xor edx, esi
mov esi, dword [ebp + 0xc]
add eax, dword [esi + edx*4]
add ecx, ecx
cmp ecx, 0x10000
jb 0x404e57
pop esi
pop ebp
ret

Function at 0x404e8b
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov ecx, pe_nt_image_headers32
push esi
xor eax, eax
or edx, ecx
push edi
shl dword [ebp + 0xc], 1
mov esi, ecx
and esi, dword [ebp + 0xc]
mov edi, edx
add esi, ecx
shr edi, 8
add edi, esi
mov esi, dword [ebp + 8]
movzx esi, word [esi + edi*2]
mov edi, edx
shr edi, 7
and edi, 1
neg edi
shr esi, 4
sar edi, 4
and edi, 0x7f
xor esi, edi
mov edi, dword [ebp + 0x10]
add eax, dword [edi + esi*4]
add edx, edx
mov esi, edx
xor esi, dword [ebp + 0xc]
not esi
and ecx, esi
cmp edx, 0x10000
jb 0x404e99
pop edi
pop esi
pop ebp
ret

Function at 0x404f93
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
xor edx, edx
push esi
mov esi, eax
xor eax, eax
inc edx
test esi, esi
je 0x404fd2
push ebx
push edi
mov ecx, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
movzx edi, word [edi + edx*2]
shr dword [ebp + 0xc], 1
and ecx, 1
mov ebx, ecx
neg ebx
sar ebx, 4
and ebx, 0x7f
shr edi, 4
xor edi, ebx
mov ebx, dword [ebp + 0x10]
add eax, dword [ebx + edi*4]
add edx, edx
or edx, ecx
dec esi
jne 0x404fa4
pop edi
pop ebx
pop esi
pop ebp
ret

Function at 0x40755b
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push eax
push eax
call fcn.0045c4e4
mov ecx, dword [ebp + 8]
push eax
mov dword [ecx], eax
call fcn.00407512
add esp, 0x1c
leave
ret
Function at 0x4183ec
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 0xc]
and dword [ebp - 8], 0
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea ecx, [ebp - 4]
push ecx
mov dword [ebp + 0xc], eax
push eax
jmp 0x418426
mov eax, dword [ebp - 4]
add ebx, eax
sub dword [ebp + 0xc], eax
je 0x418432
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push ebx
push dword [ebp + 8]
call esi
test eax, eax
jne 0x418413
jmp 0x418439
mov dword [ebp - 8], 1
mov eax, dword [ebp - 8]
pop esi
pop ebx
leave
ret

Function at 0x41917e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x49b854]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x210], 0
test byte [0x49d078], 1
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x49d074
jne 0x4191c9
or dword [0x49d078], 1
push 0x49cc5c
mov ecx, esi
call fcn.00422d95
push 0x47d7e7
call fcn.0045ef8b
pop ecx
mov eax, dword [0x49d074]
cmp dword [eax - 0xc], 0
jne 0x419229
push 0x104
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x419224
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.0045e6b2
pop ecx
push eax
lea eax, [ebp - 0x20c]
push eax
mov ecx, esi
call fcn.00417ceb
push esi
call fcn.0041913d
mov edi, str.drivers_
push edi
call fcn.0045e6b2
pop ecx
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00417da6
pop edi
mov eax, dword [0x49d074]
add eax, 0xfffffff0
push eax
call fcn.00417b90
add eax, 0x10
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ebx], eax
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.0045bc90
leave
ret
Function at 0x419312
Capabilities:
Copy file

Disassembly:
push 0x10
mov eax, 0x47aea3
call fcn.0045e17e
mov edi, ecx
mov eax, dword [edi + 0x14]
cmp eax, 0xffffffff
je 0x419418
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 0xc]
push eax
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x10]
push eax
call fcn.00418d2b
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
call fcn.00418fb2
add esp, 0x10
test eax, eax
je 0x41940d
mov esi, 0x49cc5c
push esi
lea ecx, [ebp - 0x18]
call fcn.00422d95
push esi
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.00422d95
lea eax, [ebp - 0x1c]
push eax
mov byte [ebp - 4], 2
call fcn.0041917e
pop ecx
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 3
call fcn.00417ef7
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0041788d
push dword [ebp - 0x10]
lea eax, [ebp - 0x1c]
push eax
call fcn.00419248
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x18]
mov byte [ebp - 4], 4
call fcn.00417ef7
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
mov byte [ebp - 4], 2
call fcn.0041788d
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call fcn.00418d2b
add esp, 0xc
push 0
push dword [eax]
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov ecx, dword [ebp - 0x1c]
add ecx, 0xfffffff0
call fcn.0041788d
mov ecx, dword [ebp - 0x14]
add ecx, 0xfffffff0
call fcn.0041788d
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0041788d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041788d
or dword [edi + 0x14], 0xffffffff
call fcn.0045e256
ret
Function at 0x419686
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 4
mov eax, 0x47c291
call fcn.0045e17e
push dword [ebp + 8]
lea ecx, [ebp - 0x10]
call fcn.00418091
push dword [ebp + 8]
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4196c5
xor esi, esi
inc esi
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041788d
mov eax, esi
call fcn.0045e256
ret
mov esi, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4196af
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
call edi
mov ebx, 0xb7
cmp eax, ebx
je 0x4196af
lea eax, [ebp - 0x10]
push eax
call fcn.00418f65
mov eax, dword [ebp - 0x10]
cmp dword [eax - 0xc], 0
pop ecx
jne 0x4196fe
xor esi, esi
jmp 0x4196b2
push eax
call fcn.00419686
pop ecx
test eax, eax
je 0x4196fa
push 0
push dword [ebp + 8]
call esi
test eax, eax
jne 0x4196af
call edi
cmp eax, ebx
jne 0x4196fa
jmp 0x4196af
Function at 0x41998d
Capabilities:
Delete file
Move file

Disassembly:
push 0xc
mov eax, 0x47af8f
call fcn.0045e17e
mov ebx, ecx
push dword [ebp + 8]
xor edi, edi
lea ecx, [ebp + 8]
mov dword [ebp - 0x14], edi
call fcn.00418091
push dword [ebp + 8]
mov ecx, ebx
mov dword [ebp - 4], edi
call fcn.004198cd
cmp eax, edi
jne 0x419b1b
push edi
push dword [ebp + 8]
call fcn.0045f054
pop ecx
pop ecx
test eax, eax
jne 0x419b22
push 0x49cc5c
lea ecx, [ebp - 0x10]
call fcn.00422d95
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push str._s_d__x
push eax
call fcn.00418e04
add esp, 0x10
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push dword [ebp - 0x10]
push dword [ebp + 8]
call fcn.0045efa2
pop ecx
pop ecx
test eax, eax
je 0x419a97
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.MoveFileEx_Rename_file_fail__error:_d
push 0x49d440
call fcn.0042ee96
mov esi, 0x47f5d8
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00417e93
add esp, 0x18
push dword [eax]
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004198cd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.0041788d
cmp ebx, edi
je 0x419a87
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00417e93
add esp, 0xc
push 5
push dword [ebp + 8]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
jmp 0x419b05
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041788d
jmp 0x419b22
push 4
push edi
push dword [ebp - 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_MoveFileExW]
call edi
push dword [ebp + 8]
mov ecx, ebx
call fcn.004198cd
test eax, eax
jne 0x419b10
mov esi, 0x47f5d8
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00417e93
add esp, 0xc
push dword [eax]
mov ecx, ebx
mov byte [ebp - 4], 3
call fcn.004198cd
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
mov ebx, eax
mov byte [ebp - 4], 1
call fcn.0041788d
test ebx, ebx
je 0x419a87
push esi
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.00417e93
add esp, 0xc
push 5
push dword [ebp + 8]
push dword [eax]
call edi
mov ecx, dword [ebp - 0x18]
add ecx, 0xfffffff0
call fcn.0041788d
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041788d
mov dword [ebp - 0x14], 1
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.0041788d
mov eax, dword [ebp - 0x14]
call fcn.0045e256
ret 4

Function at 0x41e322
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret
Function at 0x41e8a0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
and dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
jne 0x41e8b9
mov eax, dword [ebp - 4]
jmp 0x41e993
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
shr ecx, 3
xor eax, 0xffffffff
test ecx, ecx
je 0x41e96e
push ebp
mov ebp, ecx
xor edx, edx
xor ecx, ecx
nop
mov ebx, dword [esi]
add esi, 4
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x47fb60]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x47fb60]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x47fb60]
mov cl, bh
xor eax, edi
mov ebx, dword [esi]
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x47fb60]
add esi, 4
xor eax, edi
mov dl, bl
mov cl, bh
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x47fb60]
shr ebx, 0x10
xor eax, edi
xor cl, al
shr eax, 8
mov edi, dword [ecx*4 + 0x47fb60]
mov dl, bl
xor eax, edi
xor dl, al
shr eax, 8
mov edi, dword [edx*4 + 0x47fb60]
mov cl, bh
xor eax, edi
xor cl, al
shr eax, 8
xor eax, dword [ecx*4 + 0x47fb60]
dec ebp
jne 0x41e8d8
pop ebp
mov ecx, dword [ebp + 0x10]
xor edx, edx
and ecx, 7
je 0x41e98a
mov dl, byte [esi]
inc esi
xor dl, al
shr eax, 8
xor eax, dword [edx*4 + 0x47fb60]
dec ecx
jne 0x41e978
xor eax, 0xffffffff
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x424205
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 0x10]
mov eax, dword [esi]
and dword [esi], 0
push edi
mov edi, dword [ebp + 0xc]
add eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push edi
lea eax, [ebp + 0x10]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x42426e
cmp dword [ebp + 0x10], 1
je 0x424246
cmp dword [ebp + 0x10], 2
je 0x424246
push 0xd
pop eax
jmp 0x42426e
mov eax, dword [ebp - 4]
test edi, edi
je 0x424268
test eax, eax
je 0x424263
test al, 1
jne 0x424241
mov ecx, eax
shr ecx, 1
cmp word [edi + ecx*2 - 2], 0
je 0x424268
jmp 0x424241
xor ecx, ecx
mov word [edi], cx
shr eax, 1
mov dword [esi], eax
xor eax, eax
pop edi
pop esi
leave
ret 0xc
Function at 0x4273c5
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 0xc]
push edi
push dword [ebp + 0x14]
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x42743b
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
test esi, esi
je 0x42740c
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x42740c
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
test eax, eax
jne 0x427410
xor eax, eax
jmp 0x42743a
mov ecx, dword [ebp + 0x10]
push esi
push eax
lea eax, [esi + 1]
push eax
call fcn.00422ecb
push eax
call fcn.0045c010
mov ecx, dword [ebp + 0x10]
add esp, 0xc
push esi
call fcn.00422d68
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
xor eax, eax
inc eax
pop esi
pop edi
pop ebp
ret

Function at 0x42835f
Capabilities:
Get file size
Read file on windows

Disassembly:
push 8
mov eax, 0x47bb1a
call fcn.0045e17e
mov esi, ecx
mov eax, dword [esi]
xor edi, edi
mov dword [ebp - 0x14], edi
cmp dword [eax - 0xc], edi
je 0x428431
push 0x49cc5c
lea ecx, [ebp - 0x10]
call fcn.00422d95
push dword [ebp + 0x10]
lea eax, [ebp - 0x10]
push dword [ebp + 8]
mov dword [ebp - 4], edi
push dword [esi]
push str._s_d._s
push eax
call fcn.00418e04
add esp, 0x14
push edi
push 0x80
push 3
push edi
push 1
push connect
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x428426
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, edi
je 0x42841f
mov ecx, dword [ebp + 0xc]
lea eax, [esi + 0xa]
push eax
mov dword [ebp + 0x10], edi
call fcn.00422ecb
push edi
lea ecx, [ebp + 0x10]
push ecx
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x14], eax
cmp eax, edi
je 0x428416
cmp dword [ebp + 0x10], esi
jne 0x428416
mov ecx, dword [ebp + 0xc]
push esi
call fcn.00422d68
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041788d
xor eax, eax
inc eax
jmp 0x428434
mov ecx, dword [ebp + 0xc]
push edi
call fcn.00422b2b
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.0041788d
mov eax, dword [ebp - 0x14]
call fcn.0045e256
ret 0xc
Function at 0x428e54
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x620
mov eax, dword [0x49b854]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
xor eax, eax
mov esi, 0x206
push esi
mov word [ebp - 0x414], ax
xor edi, edi
lea eax, [ebp - 0x412]
push edi
push eax
mov ebx, ecx
call fcn.0045c380
xor eax, eax
push esi
mov word [ebp - 0x61c], ax
lea eax, [ebp - 0x61a]
push edi
push eax
call fcn.0045c380
xor eax, eax
push esi
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push edi
push eax
call fcn.0045c380
mov esi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
add esp, 0x24
push edi
push 0x1c
lea eax, [ebp - 0x414]
push eax
push edi
call esi
push edi
push 0x1a
lea eax, [ebp - 0x61c]
push eax
push edi
call esi
lea eax, [ebp - 0x414]
push eax
call fcn.00419686
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.0046122d
lea eax, [ebp - 0x20c]
push str._tempuninstall.ini
push eax
call fcn.004611fc
add esp, 0x14
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x428f2c
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x61c]
push eax
push str.appdatapath
mov edi, str.install
push edi
call esi
lea eax, [ebp - 0x620]
push eax
mov ecx, ebx
call fcn.00428d30
lea ecx, [ebp - 0x20c]
push ecx
push dword [eax]
push str.newcurinstallpath
push edi
call esi
mov ecx, dword [ebp - 0x620]
add ecx, 0xfffffff0
call fcn.0041788d
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0045bc90
leave
ret
Function at 0x429ac1
Capabilities:
Check if file exists
Delete file
Get common file path
Read .ini file

Disassembly:
push 0x630
mov eax, 0x47bd7b
call fcn.0045e1e7
mov edi, 0x49cc5c
push edi
lea ecx, [ebp - 0x62c]
call fcn.00422d95
xor eax, eax
mov esi, 0x206
xor ebx, ebx
push esi
mov word [ebp - 0x218], ax
lea eax, [ebp - 0x216]
push ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0045c380
xor eax, eax
push esi
mov word [ebp - 0x420], ax
lea eax, [ebp - 0x41e]
push ebx
push eax
call fcn.0045c380
add esp, 0x18
push edi
lea ecx, [ebp - 0x634]
call fcn.00422d95
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 1
call fcn.00431827
lea eax, [ebp - 0x63c]
push eax
lea ecx, [ebp - 0x62c]
mov byte [ebp - 4], 2
call fcn.00417ef7
lea eax, [ebp - 0x62c]
push eax
call fcn.0041913d
mov edi, str.tempuninstall.ini
push edi
call fcn.0045e6b2
pop ecx
pop ecx
push eax
push edi
lea ecx, [ebp - 0x62c]
call fcn.00417da6
push dword [ebp - 0x62c]
lea eax, [ebp - 0x420]
push eax
call fcn.0046122d
pop ecx
pop ecx
push dword [ebp - 0x62c]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x429c5d
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [ebp - 0x420]
push eax
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0x47f268
push str.appdatapath
mov ebx, str.install
push ebx
call edi
lea eax, [ebp - 0x218]
push eax
call fcn.0045e6b2
pop ecx
mov esi, 0x49d4b8
test eax, eax
je 0x429bf8
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x630], esp
push eax
call fcn.00418091
mov ecx, esi
call fcn.00430b7b
lea eax, [ebp - 0x420]
push eax
push 0x208
lea eax, [ebp - 0x218]
push eax
push 0x47f268
push str.newcurinstallpath
push ebx
call edi
lea eax, [ebp - 0x218]
push eax
call fcn.0045e6b2
pop ecx
test eax, eax
je 0x429c45
push ecx
lea eax, [ebp - 0x218]
mov ecx, esp
mov dword [ebp - 0x630], esp
push eax
call fcn.00418091
mov ecx, esi
call fcn.00430baa
push 1
mov ecx, esi
call fcn.0042f41e
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x429cb1
xor eax, eax
push esi
mov word [ebp - 0x628], ax
lea eax, [ebp - 0x626]
push ebx
push eax
call fcn.0045c380
add esp, 0xc
push ebx
push 0x1a
lea eax, [ebp - 0x628]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push ecx
lea eax, [ebp - 0x628]
mov ecx, esp
mov dword [ebp - 0x630], esp
push eax
call fcn.00418091
mov esi, 0x49d4b8
mov ecx, esi
call fcn.00430b7b
push ebx
mov ecx, esi
call fcn.0042f41e
lea ecx, [ebp - 0x63c]
mov byte [ebp - 4], 1
call fcn.00431624
mov ecx, dword [ebp - 0x634]
add ecx, 0xfffffff0
call fcn.0041788d
mov ecx, dword [ebp - 0x62c]
add ecx, 0xfffffff0
call fcn.0041788d
call fcn.0045e26a
ret