joyce8/EMBER2024-capa huggingface dataset:
Function at 0x495fb3
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x33c
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
push ebx
call fcn.00494973
test al, al
jne 0x495fe4
cmp word [esi + 0x16], 8
jae 0x495feb
add esi, 0x44
push str.Bit_depth_must_be_8_or_24
push esi
call fcn.004a1da0
pop ecx
pop ecx
xor al, al
jmp 0x4961b9
and byte [ebp - 0x18], 0
push edi
mov ecx, esi
call fcn.004902b3
test eax, eax
setne al
mov byte [ebp - 0x17], al
mov ax, word [esi + 0x16]
cmp ax, 8
mov dx, ax
setne cl
inc ecx
sub dx, 8
mov byte [ebp - 0x16], cl
xor ecx, ecx
neg dx
sbb edx, edx
mov edi, 0x100
and dl, cl
mov word [ebp - 0x15], cx
add edx, edi
cmp ax, 8
mov word [ebp - 0x13], dx
mov word [ebp - 0x10], cx
setne dl
dec edx
and byte [ebp - 7], cl
and edx, 0x18
cmp dword [esi + 0x1a0], ecx
mov byte [ebp - 0x11], dl
mov dx, word [esi + 0xc]
mov word [ebp - 0xc], dx
mov dx, word [esi + 0x10]
mov word [ebp - 0xa], dx
mov dl, al
mov word [ebp - 0xe], cx
mov byte [ebp - 8], dl
je 0x49606d
cmp ax, 0x18
jne 0x49606d
mov byte [ebp - 8], 0x20
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x18]
push 0x12
push ecx
mov ecx, ebx
call dword [eax + 0xc]
cmp word [esi + 0x16], 8
jne 0x4960c1
mov ecx, esi
call fcn.004902b3
lea ecx, [ebp - 0x33b]
add eax, 2
mov dl, byte [eax - 2]
mov byte [ecx - 1], dl
mov dl, byte [eax - 1]
mov byte [ecx], dl
mov dl, byte [eax]
mov byte [ecx + 1], dl
add eax, 4
add ecx, 3
dec edi
jne 0x496093
mov eax, dword [ebx]
push 1
lea ecx, [ebp - 0x33c]
push 0x300
push ecx
mov ecx, ebx
call dword [eax + 0xc]
push esi
lea ecx, [ebp - 0x3c]
call fcn.004964fb
xor edi, edi
cmp dword [esi + 0x1a0], edi
je 0x496183
cmp word [esi + 0x16], 8
je 0x496183
movzx eax, word [ebp - 0xc]
shl eax, 2
push eax
call fcn.004a09f6
and dword [ebp - 4], 0
cmp word [ebp - 0xa], 0
mov edi, eax
pop ecx
mov dword [ebp - 0x20], edi
jbe 0x49617a
xor ebx, ebx
cmp word [ebp - 0xc], bx
jbe 0x496158
inc edi
push dword [ebp - 4]
lea eax, [ebp - 0x24]
mov ecx, esi
push ebx
push eax
call fcn.004903db
mov eax, dword [eax]
push dword [ebp - 4]
mov dword [ebp - 0x1c], eax
mov byte [edi - 1], al
mov al, byte [ebp - 0x1a]
mov byte [edi], ah
push ebx
mov ecx, esi
mov byte [edi + 1], al
call fcn.00490800
movzx ecx, byte [esi + 0x17c]
movzx eax, al
imul eax, ecx
cdq
mov ecx, 0xff
add edi, 4
idiv ecx
inc ebx
mov byte [edi - 2], al
movzx eax, word [ebp - 0xc]
cmp ebx, eax
jl 0x49610a
movzx edx, word [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov edi, dword [ebp - 0x20]
shl edx, 2
mov eax, dword [ecx]
push 1
push edx
push edi
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc dword [ebp - 4]
cmp dword [ebp - 4], eax
jl 0x496101
push edi
call fcn.004a09ae
pop ecx
jmp 0x4961b6
cmp word [ebp - 0xa], di
jbe 0x4961b6
push edi
lea ecx, [ebp - 0x3c]
call fcn.00496527
movzx ecx, word [esi + 0x16]
movzx edx, word [ebp - 0xc]
shr ecx, 3
imul ecx, edx
mov eax, dword [ebx]
push 1
push ecx
mov ecx, ebx
push dword [ebp - 0x2c]
call dword [eax + 0xc]
movzx eax, word [ebp - 0xa]
inc edi
cmp edi, eax
jl 0x496189
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x49feb1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x49fed1
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004a41e4
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x49fef4
test byte [esp + 8], 2
je 0x49fef4
call fcn.004a4257
mov dword [eax], 0xd
call fcn.004a4260
mov dword [eax], 5
jmp 0x49fecd
xor eax, eax
ret

Function at 0x4a8b9a
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x533470
cmp edx, dword [eax]
je 0x4a8bbc
add eax, 8
inc ecx
cmp eax, 0x533500
jl 0x4a8bad
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x533470]
jne 0x4a8cea
mov eax, dword [0x547b98]
cmp eax, 1
je 0x4a8cc4
test eax, eax
jne 0x4a8bed
cmp dword [0x5329a4], 1
je 0x4a8cc4
cmp edx, 0xfc
je 0x4a8cea
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x4a8c24
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004a1da0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.004a19d0
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4a8c67
lea eax, [ebp - 0x1a4]
push eax
call fcn.004a19d0
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x4e968c
push edi
call fcn.004a06c0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004a1da0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004a1db0
lea eax, [ebp - 0xa0]
push 0x4e966c
push eax
call fcn.004a1db0
push dword [esi + 0x533474]
lea eax, [ebp - 0xa0]
push eax
call fcn.004a1db0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.004ab91f
add esp, 0x2c
pop edi
jmp 0x4a8cea
lea eax, [ebp + 8]
lea esi, [esi + 0x533474]
push 0
push eax
push dword [esi]
call fcn.004a19d0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x4b05d0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.004a0690
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x4b069b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x4b069b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x4b064e
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x4b0659
or bh, 8
and edi, 0x8000000
je 0x4b0674
mov eax, dword [0x54943c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x4b069b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4b0a70
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x4b0a9b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x4b0abf
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x4b0ada
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20

Function at 0x4b4bb4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4b4bec
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.004b7ea3
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004b7e7b
jmp 0x4b4bf8
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4
Function at 0x4b6614
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 0x4b6656
call fcn.004c2eea
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4b6656
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4b664d
xor eax, eax
jmp 0x4b665e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b6664
pop edi
pop esi
pop ebx
ret 4

Function at 0x4b94bf
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x4b94e1
cmp dword [edi + 0x3c], 0
jne 0x4b94e1
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.004c2eea
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.004b950e
pop edi
pop esi
pop ebx
ret 8

Function at 0x4b955c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
mov ebx, ecx
xor edi, edi
call fcn.004c2eea
mov esi, dword [eax + 0xc]
push 5
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4b958d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push esi
mov ecx, ebx
push dword [esp + 0x18]
push edi
call fcn.004b95a0
pop edi
pop esi
pop ebx
ret 8

Function at 0x4c3846
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov dword [ebp - 8], ecx
call fcn.004c2eea
mov esi, dword [eax + 0xc]
push 0xf1
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4c3883
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4c3883
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x4c3887
xor eax, eax
jmp 0x4c3905
movzx eax, word [esi + 6]
push ebx
push edi
shl eax, 2
push eax
call fcn.004b3c5b
and dword [ebp - 4], 0
cmp word [esi + 6], 0
pop ecx
mov ebx, eax
jbe 0x4c38bf
mov ecx, ebx
lea eax, [esi + 8]
movzx edx, word [eax]
inc dword [ebp - 4]
mov dword [ecx], edx
movzx edx, word [esi + 6]
inc eax
add ecx, 4
inc eax
cmp dword [ebp - 4], edx
jl 0x4c38a9
movzx eax, word [esi + 6]
mov ecx, dword [ebp - 8]
push eax
push ebx
call fcn.004c39f6
push ebx
mov edi, eax
call fcn.004b3c84
test edi, edi
pop ecx
je 0x4c3901
movzx ecx, word [esi + 4]
movzx eax, word [esi + 2]
lea esi, [ecx + 7]
push ecx
mov ecx, dword [ebp - 8]
lea edx, [eax + 7]
push eax
push esi
push edx
call fcn.004c37bf
push dword [ebp + 8]
mov ecx, dword [ebp - 8]
call fcn.004c390a
mov edi, eax
mov eax, edi
pop edi
pop ebx
pop esi
leave
ret 4
Function at 0x4c6bf3
Capabilities:
Check for time delay via gettickcount
Log keystrokes via polling

Disassembly:
sub esp, 0x20
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
xor ebx, ebx
push 1
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov dword [esi + 0x38], ebx
call edi
test ax, ax
jge 0x4c6c1b
or dword [esi + 0x38], 1
or dword [esi + 0x34], 2
jmp 0x4c6c2c
push 2
call edi
test ax, ax
jge 0x4c6c2c
or dword [esi + 0x38], 2
or dword [esi + 0x34], 1
mov ebp, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebp
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x34]
push dword [eax + 0x1c]
call dword [sym.imp.USER32.dll_SetCapture]
push eax
call fcn.004b41be
cmp dword [esi + 0x30], ebx
jne 0x4c6d06
mov edi, dword [sym.imp.USER32.dll_PeekMessageA]
mov ebx, 0x100
call dword [sym.imp.USER32.dll_GetCapture]
push eax
call fcn.004b41be
cmp eax, dword [esp + 0x34]
jne 0x4c6d06
push 1
push 0x209
push 0x200
lea eax, [esp + 0x20]
push 0
push eax
call edi
test eax, eax
jne 0x4c6ca2
push 1
push 0x108
push ebx
push eax
lea eax, [esp + 0x24]
push eax
call edi
test eax, eax
je 0x4c6ce7
mov eax, dword [esp + 0x18]
cmp eax, 0x202
je 0x4c6d06
cmp eax, 0x205
je 0x4c6d06
cmp eax, 0x201
je 0x4c6d06
cmp eax, 0x204
je 0x4c6d06
cmp eax, ebx
jne 0x4c6ccd
cmp dword [esp + 0x1c], 0x1b
je 0x4c6d06
push dword [esp + 0x2c]
lea eax, [esi + 0x20]
push dword [esp + 0x2c]
push eax
call dword [sym.imp.USER32.dll_PtInRect]
neg eax
sbb eax, eax
inc eax
mov dword [esi + 0x30], eax
call ebp
sub eax, dword [esp + 0x10]
cmp eax, dword [0x54782c]
jbe 0x4c6cfc
mov dword [esi + 0x30], 1
cmp dword [esi + 0x30], 0
je 0x4c6c5f
call dword [sym.imp.USER32.dll_ReleaseCapture]
mov eax, dword [esi + 0x30]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret 4
Function at 0x4033c0
Capabilities:
Get common file path
Get startup folder

Disassembly:
sub esp, 0x210
mov eax, dword [0x4ed394]
xor eax, esp
mov dword [esp + 0x20c], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x12]
push ecx
mov dword [esp + 0x10], 0
mov word [esp + 0x14], ax
call fcn.0047c520
add esp, 0xc
push 1
push 0x1a
lea edx, [esp + 0x10]
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
xor eax, eax
mov dword [esi + 0x18], 7
mov dword [esi + 0x14], 0
mov word [esi + 4], ax
lea eax, [esp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x403425
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0xc]
call fcn.0040c300
mov ecx, dword [esp + 0x210]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0047946c
add esp, 0x210
ret
Function at 0x403630
Capabilities:
Delete file

Disassembly:
push 0xffffffffffffffff
push 0x494c60
mov eax, dword fs:[0]
push eax
push ebp
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, dword [esp + 0x20]
mov dword [edi], vtable.shui::CFrmInstaller.0
mov dword [esp + 0x18], 4
mov ecx, dword [edi + 0xf8]
push edi
push fcn.004039a0
add ecx, 0x8c
call sym.SH7zInstaller.exe__Disconnect___CSHSignelWatcherT_VCSHActiveSignalArgs_shui___shui__QAEXP8CSHWidget_2_AEXPAV32_AAVCSHActiveSig
mov ecx, dword [edi + 0x100]
push edi
push 0x403ad0
add ecx, 0x8c
call sym.SH7zInstaller.exe__Disconnect___CSHSignelWatcherT_VCSHActiveSignalArgs_shui___shui__QAEXP8CSHWidget_2_AEXPAV32_AAVCSHActiveSig
mov ecx, dword [edi + 0x114]
push edi
push 0x406df0
add ecx, 0x8c
call sym.SH7zInstaller.exe__Disconnect___CSHSignelWatcherT_VCSHActiveSignalArgs_shui___shui__QAEXP8CSHWidget_2_AEXPAV32_AAVCSHActiveSig
mov ecx, dword [edi + 0xfc]
push edi
push fcn.00406e10
add ecx, 0x8c
call sym.SH7zInstaller.exe__Disconnect___CSHSignelWatcherT_VCSHActiveSignalArgs_shui___shui__QAEXP8CSHWidget_2_AEXPAV32_AAVCSHActiveSig
mov ecx, dword [edi + 0x118]
push edi
push 0x4094f0
add ecx, 0x8c
call sym.SH7zInstaller.exe__Disconnect___CSHSignelWatcherT_VCSHActiveSignalArgs_shui___shui__QAEXP8CSHWidget_2_AEXPAV32_AAVCSHActiveSig
mov ebp, 8
cmp dword [edi + 0x1a4], ebp
jb 0x4036ed
mov eax, dword [edi + 0x190]
jmp 0x4036f3
lea eax, [edi + 0x190]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea eax, [edi + 0x2d8]
push eax
call fcn.0040b840
lea esi, [edi + 0x1e0]
call fcn.0040e350
cmp dword [edi + 0x1dc], ebp
jb 0x403728
mov eax, dword [edi + 0x1c8]
push eax
call fcn.00479461
add esp, 4
xor esi, esi
xor eax, eax
mov dword [edi + 0x1dc], 7
mov dword [edi + 0x1d8], esi
mov word [edi + 0x1c8], ax
cmp dword [edi + 0x1c0], ebp
jb 0x40375a
mov eax, dword [edi + 0x1ac]
push eax
call fcn.00479461
add esp, 4
xor ecx, ecx
mov dword [edi + 0x1c0], 7
mov dword [edi + 0x1bc], esi
mov word [edi + 0x1ac], cx
cmp dword [edi + 0x1a4], ebp
jb 0x40378a
mov eax, dword [edi + 0x190]
push eax
call fcn.00479461
add esp, 4
xor edx, edx
mov dword [edi + 0x1a4], 7
mov dword [edi + 0x1a0], esi
mov ecx, edi
mov word [edi + 0x190], dx
mov dword [esp + 0x18], 0xffffffff
call sym.SH7zInstaller.exe_public_virtual:_void___thiscall_shui::CShNormalFrame::destructor_void_
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xc
ret 4
Function at 0x4039a0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x494beb
mov eax, dword fs:[0]
push eax
sub esp, 0x114
mov eax, dword [0x4ed394]
xor eax, esp
mov dword [esp + 0x10c], eax
push esi
push edi
mov eax, dword [0x4ed394]
xor eax, esp
push eax
lea eax, [esp + 0x120]
mov dword fs:[0], eax
mov esi, ecx
lea edi, [esi + 0x1a8]
mov edx, edi
call fcn.00406cc0
test eax, eax
jne 0x403a43
push 8
push 0x4bc8e4
push esi
lea eax, [esp + 0x28]
push eax
mov ecx, 0x4bc8d0
call fcn.0040f0e0
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0x12c], 0
call sym.SH7zInstaller.exe_public:_struct_tagRECT___thiscall_shui::CSHFrame::CenterParent_void_
push 1
lea ecx, [esp + 0x20]
call sym.SH7zInstaller.exe_public:_enum_shui::FxDlgResult___thiscall_shui::CSHFrame::ShowModal_int_
lea esi, [esp + 0x1c]
mov dword [esp + 0x128], 0xffffffff
call fcn.0040f850
jmp 0x403aa2
cmp dword [edi + 0x18], 8
jb 0x403a4e
mov ecx, dword [edi + 4]
jmp 0x403a51
lea ecx, [edi + 4]
call fcn.00411870
push 0
push 0
push esi
push fcn.0040f8b0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x184], eax
call fcn.00406a80
mov ecx, dword [esi + 0xc0]
mov edx, dword [ecx]
mov eax, dword [edx + 0x18]
push 0
call eax
push esi
mov dword [esi + 0x2d0], 1
call fcn.004077e0
mov ecx, esi
call fcn.00408cc0
mov ecx, esi
call fcn.0040a0b0
mov ecx, dword [esp + 0x120]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x10c]
xor ecx, esp
call fcn.0047946c
mov esp, ebp
pop ebp
ret 8
Function at 0x406b30
Capabilities:
Create directory
Extract resource via kernel32 functions
Get common file path
Write file on windows

Disassembly:
sub esp, 0x210
mov eax, dword [0x4ed394]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebp
mov ebp, dword [esp + 0x218]
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push str.BINDATA
push 0xa8
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x406b76
xor eax, eax
jmp 0x406ca1
push esi
push 0
call edi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x406b6f
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push esi
push 0
mov ebx, eax
call edi
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1e]
push ecx
mov word [esp + 0x20], ax
call fcn.0047c520
add esp, 0xc
lea edx, [esp + 0x14]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x14]
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406bd0
sub eax, edx
sar eax, 1
cmp word [esp + eax*2 + 0x12], 0x5c
jne 0x406c09
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x406bf0
sub eax, edx
sar eax, 1
mov ecx, 0x5c30
mov word [esp + eax*2 + 0x12], cx
lea edx, [esp + 0x14]
push 0
push edx
call fcn.0047a38b
add esp, 8
test eax, eax
je 0x406c29
push 0
lea eax, [esp + 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.Sohuva_installer.7z
lea ecx, [esp + 0x18]
push 0x104
push ecx
call fcn.0047a774
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
lea edx, [esp + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x406c80
push 0
lea eax, [esp + 0x14]
push eax
push edi
push ebx
push esi
mov dword [esp + 0x24], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x406c84
xor eax, eax
jmp 0x406ca0
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
add ebp, 0x18c
push ebp
lea eax, [esp + 0x18]
call fcn.0040b100
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x218]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.0047946c
add esp, 0x210
ret 4