joyce8/EMBER2024-capa huggingface dataset:
Function at 0x418b10
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4700d7
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x490654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
xor ebx, ebx
mov dword [ebp - 0x10], ebx
lea eax, [edi + 0x60]
mov dword [edi], 0x4794f8
call fcn.0040183f
mov dword [edi + 0x60], vtable.std::basic_ios_char__struct_std::char_traits_char__.0
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov ecx, dword [eax + 4]
mov dword [edi + ecx], vtable.std::basic_ostream_char__struct_std::char_traits_char__.0
mov edx, dword [edi]
mov ecx, dword [edx + 4]
lea esi, [edi + 4]
push esi
add ecx, edi
mov dword [ebp - 0x10], 1
call fcn.00419c50
mov dword [ebp - 4], 2
mov eax, dword [edi]
mov ecx, dword [eax + 4]
push esi
mov dword [edi + ecx], vtable.std::basic_ofstream_char__struct_std::char_traits_char__.0
call fcn.00419cf0
lea edx, [esi + 8]
mov dword [esi + 0x10], edx
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi], vtable.std::basic_filebuf_char__struct_std::char_traits_char__.0
mov byte [esi + 0x50], bl
mov byte [esi + 0x49], bl
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 edx, dword [0x4958d8]
mov dword [eax], ebx
mov ecx, dword [esi + 0x30]
mov dword [ecx], ebx
mov dword [esi + 0x54], ebx
mov dword [esi + 0x4c], edx
mov dword [esi + 0x44], ebx
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x419810
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d998
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp dword [edi + 0x44], ebx
je 0x419931
cmp byte [edi + 0x49], bl
je 0x419931
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x419925
mov ecx, 0xf
xor eax, eax
mov byte [ebp - 0x2c], bl
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x1c], 8
cmp ecx, 0x10
jae 0x419884
lea eax, [ebp - 0x2c]
mov byte [eax + 8], bl
mov dword [ebp - 4], ebx
mov eax, dword [ebp - 0x2c]
mov ebx, dword [ebp - 0x18]
mov edx, eax
cmp ebx, 0x10
jae 0x41989c
lea edx, [ebp - 0x2c]
mov eax, edx
add edx, dword [ebp - 0x1c]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebx, [ebp - 0x30]
push ebx
push edx
push eax
lea eax, [edi + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x4198c5
dec eax
je 0x4198c9
sub eax, 2
lea ecx, [ebp - 0x2c]
jne 0x419920
jmp 0x41992c
mov byte [edi + 0x49], 0
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov ecx, eax
cmp ebx, 0x10
jae 0x4198d9
lea ecx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, ecx
je 0x419902
cmp ebx, 0x10
jae 0x4198e8
lea eax, [ebp - 0x2c]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00453fc0
add esp, 0x10
cmp esi, eax
jne 0x41991d
mov ebx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [edi + 0x49], 0
je 0x419929
test esi, esi
jne 0x419890
push esi
lea ebx, [esi + 8]
lea esi, [ebp - 0x2c]
call fcn.004098c0
jmp 0x41988a
lea ecx, [ebp - 0x2c]
call fcn.004093a0
xor al, al
jmp 0x419933
lea ecx, [ebp - 0x2c]
call fcn.004093a0
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret
Function at 0x419cf0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46ce8b
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x490654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [edi + 4]
mov dword [edi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00451cb3
push 4
mov dword [ebp - 4], 0
call fcn.00453217
add esp, 4
test eax, eax
je 0x419d43
mov esi, eax
call fcn.004012f9
jmp 0x419d45
xor eax, eax
mov dword [edi + 0x38], eax
lea eax, [edi + 8]
mov dword [edi + 0x10], eax
lea ecx, [edi + 0x18]
mov dword [edi + 0x20], ecx
lea edx, [edi + 0x1c]
mov dword [edi + 0x24], edx
lea eax, [edi + 0xc]
mov dword [edi + 0x14], eax
lea ecx, [edi + 0x28]
mov dword [edi + 0x30], ecx
lea edx, [edi + 0x2c]
mov dword [edi + 0x34], edx
mov dword [eax], 0
mov eax, dword [edi + 0x24]
mov dword [eax], 0
mov ecx, dword [edi + 0x34]
mov dword [ecx], 0
mov edx, dword [edi + 0x10]
mov dword [edx], 0
mov eax, dword [edi + 0x20]
mov dword [eax], 0
mov ecx, dword [edi + 0x30]
mov dword [ecx], 0
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x41c100
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
push edi
xor edi, edi
mov ebx, ecx
mov dword [ebp - 0x208], 1
test al, 1
je 0x41c133
mov edi, 3
test al, 4
je 0x41c144
mov dword [ebp - 0x208], 0x21
or edi, 4
mov ecx, dword [ebx + 4]
push 0x100
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
je 0x41c1b3
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c170
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [esi + 0x1c]
push edx
mov edx, dword [ebx + 0x28]
push 0
push 0x25
sar eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push 1
push ecx
push edx
call dword [sym.imp.UxTheme.dll_DrawThemeText]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret 4
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c1b3
sub eax, edx
lea ecx, [ebp - 0x210]
push ecx
sar eax, 1
push eax
mov eax, dword [esi + 0x18]
lea edx, [ebp - 0x204]
push edx
push eax
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c1e4
sub eax, edx
mov edx, dword [ebp - 0x208]
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push edx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x20c]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x210]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452c94
mov esp, ebp
pop ebp
ret 4
Function at 0x41c260
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x10]
xor ebx, ebx
push edi
mov edi, ecx
mov dword [ebp - 0x408], 1
test al, 1
je 0x41c293
mov ebx, 3
test al, 4
je 0x41c2a4
mov dword [ebp - 0x408], 0x21
or ebx, 4
mov ecx, dword [edi + 4]
push 0x100
lea eax, [ebp - 0x404]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
cmp byte [edi + 0x2c], 0
jne 0x41c316
call dword [sym.imp.UxTheme.dll_IsThemeActive]
test eax, eax
je 0x41c316
lea eax, [ebp - 0x404]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c2d3
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [esi + 0x1c]
push edx
mov edx, dword [edi + 0x28]
push 0
push 0x25
sar eax, 1
push eax
lea eax, [ebp - 0x404]
push eax
push ebx
push 1
push ecx
push edx
call dword [sym.imp.UxTheme.dll_DrawThemeText]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x18]
push eax
call dword [sym.imp.GDI32.dll_GetTextColor]
test byte [esi + 0x10], 4
mov dword [ebp - 0x40c], eax
je 0x41c333
mov eax, 0x828282
jmp 0x41c343
movzx eax, byte [edi + 0x2c]
neg eax
sbb eax, eax
and eax, 0xfefff8
add eax, 8
mov ecx, dword [esi + 0x18]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov edx, dword [esi + 0x18]
push 1
push edx
call dword [sym.imp.GDI32.dll_SetBkMode]
mov ecx, dword [edi + 4]
push 0x100
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextW]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c380
mov ecx, dword [esi + 0x18]
sub eax, edx
lea edx, [ebp - 0x414]
push edx
sar eax, 1
push eax
lea eax, [ebp - 0x204]
push eax
push ecx
call dword [sym.imp.GDI32.dll_GetTextExtentPoint32W]
lea eax, [ebp - 0x204]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41c3b1
sub eax, edx
mov edx, dword [ebp - 0x408]
sar eax, 1
mov ecx, dword [esi + 0x24]
mov edi, eax
mov eax, dword [esi + 0x28]
push edx
push eax
cdq
sub eax, edx
mov ebx, eax
mov eax, dword [ebp - 0x410]
cdq
sub eax, edx
sar eax, 1
push ecx
sar ebx, 1
sub ebx, eax
mov eax, ecx
cdq
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x414]
cdq
sub eax, edx
push ebx
sar eax, 1
sar ecx, 1
sub ecx, eax
mov eax, dword [esi + 0x18]
push ecx
push edi
lea edx, [ebp - 0x204]
push edx
push 0
push 0
push eax
call dword [sym.imp.USER32.dll_DrawStateW]
mov ecx, dword [ebp - 0x40c]
mov edx, dword [esi + 0x18]
push ecx
push edx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452c94
mov esp, ebp
pop ebp
ret 4
Function at 0x41cb00
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push 0x400
mov edi, ecx
call fcn.00453217
add esp, 4
push 1
push ebx
mov esi, eax
call dword [sym.imp.GDI32.dll_SetBkMode]
mov eax, dword [edi + 4]
push 0
push 0
push 0x31
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
test eax, eax
je 0x41cb4c
push eax
push ebx
call dword [sym.imp.GDI32.dll_SelectObject]
mov eax, dword [edi + 4]
push 0x200
push esi
push eax
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov edx, dword [edi + 4]
lea ecx, [ebp - 0x14]
push ecx
push edx
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, esi
lea edx, [eax + 2]
nop
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41cb70
push 0
sub eax, edx
lea ecx, [ebp - 0x14]
push ecx
sar eax, 1
push eax
push esi
push ebx
call dword [sym.imp.USER32.dll_DrawTextW]
push esi
call fcn.004531bb
mov ecx, dword [ebp - 4]
add esp, 4
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452c94
mov esp, ebp
pop ebp
ret 4

Function at 0x41ecb0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [edi]
mov ebx, eax
test esi, esi
je 0x41ed0f
mov dword [edi], 0
jmp 0x41ecd0
mov eax, 0x400000
cmp esi, 0x400000
ja 0x41ecdf
mov eax, esi
mov edx, dword [ebp + 8]
push 0
lea ecx, [ebp - 4]
push ecx
push eax
mov eax, dword [edx]
push ebx
push eax
mov dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov ecx, dword [ebp - 4]
add dword [edi], ecx
add ebx, ecx
sub esi, ecx
test eax, eax
je 0x41ed17
test ecx, ecx
je 0x41ed0f
test esi, esi
jne 0x41ecd0
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x41f250
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0
mov esi, ecx
push esi
push 0x41f1c0
push 0
push 0
mov byte [esi + 0xe], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 0x10], eax
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x41f2a0
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x10]
mov byte [esi + 0xe], 1
test eax, eax
je 0x41f2d7
push 1
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [esi + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esi + 8]
mov dword [esi + 0x10], 0
test ecx, ecx
je 0x41f2d7
mov edx, dword [ecx]
mov eax, dword [edx + 0x14]
pop esi
jmp eax
pop esi
ret
Function at 0x41f600
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fe78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, esi
call fcn.00402637
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41f640
test al, 0x10
je 0x41f69a
push 0x47aa48
push 0x47aa50
call fcn.004089f0
add esp, 8
push eax
lea eax, [ebp - 0x2c]
call fcn.004025cc
push 0
push esi
or eax, 0xffffffff
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004030d1
push 0x47afdc
mov eax, edi
push 0
push eax
lea edi, [ebx + 0x8d20]
or eax, 0xffffffff
call fcn.004030d1
push eax
call fcn.0040260b
lea ecx, [ebp - 0x2c]
call fcn.004025fd
xor al, al
jmp 0x41f69c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret

Function at 0x41f6c0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fe78
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, esi
call fcn.00402637
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41f700
test al, 0x10
jne 0x41f75a
push 0x47aa48
push 0x479888
call fcn.004089f0
add esp, 8
push eax
lea eax, [ebp - 0x2c]
call fcn.004025cc
push 0
push esi
or eax, 0xffffffff
lea edi, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.004030d1
push 0x47afdc
mov eax, edi
push 0
push eax
lea edi, [ebx + 0x8d20]
or eax, 0xffffffff
call fcn.004030d1
push eax
call fcn.0040260b
lea ecx, [ebp - 0x2c]
call fcn.004025fd
xor al, al
jmp 0x41f75c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret

Function at 0x41fb90
Capabilities:
Check mutex on windows

Disassembly:
push ecx
push str.wnloader_web_setup_mutex
push 0x479888
call fcn.004089f0
add esp, 8
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
sete al
pop ecx
ret
Function at 0x41fbc0
Capabilities:
Check if file exists
Create directory
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46fe78
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [edi]
mov edx, dword [eax + 4]
lea ecx, [ebp - 0x2c]
push ecx
mov ecx, edi
call edx
mov esi, eax
lea eax, [edi + 0xa14]
mov dword [ebp - 4], 0
call fcn.00403976
lea ecx, [ebp - 0x2c]
call fcn.004025fd
lea eax, [edi + 0xa14]
call fcn.00402637
mov esi, eax
push esi
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
test eax, eax
jne 0x41fc44
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x41fc44
test al, 0x10
jne 0x41fc44
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret

Function at 0x420090
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push eax
xor ecx, ecx
push ecx
push 0x47983c
push 0x479cc0
mov word [esi + 0x80c], cx
lea edi, [esi + 0x604]
call fcn.004089f0
mov ebx, dword [sym.imp.SHLWAPI.dll_wnsprintfW]
add esp, 0xc
push eax
push 0x104
push edi
call ebx
mov eax, edi
add esp, 0x10
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4200e5
sub eax, edx
sar eax, 1
cmp word [esi + eax*2 + 0x602], 0x5c
jne 0x42011d
mov eax, edi
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x420104
sub eax, edx
sar eax, 1
xor edx, edx
mov word [esi + eax*2 + 0x602], dx
add esi, 0xaec
push esi
push edi
push 0x47ab2c
push 0x479cc0
call fcn.004089f0
add esp, 8
push eax
lea eax, [ebp - 0x214]
push 0x104
push eax
call ebx
add esp, 0x14
push esi
push ecx
push str.oftware_s
push 0x479b40
call fcn.004089f0
add esp, 0xc
push eax
lea ecx, [ebp - 0x41c]
push 0x104
push ecx
call ebx
add esp, 0x10
push 0
lea edx, [ebp - 0x420]
push edx
push 0
push 0xf003f
push 0
push 0
push 0
lea eax, [ebp - 0x41c]
push eax
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4201e2
lea eax, [ebp - 0x214]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x4201a4
sub eax, edx
sar eax, 1
lea ecx, [eax + eax + 2]
mov eax, dword [ebp - 0x420]
push ecx
lea edx, [ebp - 0x214]
push edx
push 1
push 0
push str.exec
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [ebp - 0x420]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 8]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00452c94
mov esp, ebp
pop ebp
ret 4
Function at 0x420320
Capabilities:
Check if file exists
Create directory
Delete file
Get file attributes

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
mov edx, dword [eax]
call edx
mov eax, dword [esi]
mov edx, dword [eax + 0x28]
mov ecx, esi
call edx
xor ecx, ecx
test al, al
setne cl
mov eax, ecx
mov dword [esi + 0x8c2c], eax
cmp eax, 2
jne 0x420369
push str.nstalled_already
push 0x47ab6c
call fcn.004089f0
mov ecx, dword [esi + 0x8c28]
add esp, 8
push eax
push str.INFO
call fcn.00417780
mov ecx, esi
pop esi
jmp fcn.0041fbc0
Function at 0x4219e0
Capabilities:
Get disk size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a8
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, edx
mov dx, word [eax]
push edi
mov word [ebp - 0xc], dx
xor edx, edx
lea eax, [ebp - 0x2a0]
push eax
mov dword [ebp - 0x290], ecx
lea ecx, [ebp - 0x2a8]
mov word [ebp - 6], dx
push ecx
lea edx, [ebp - 0x298]
push edx
lea eax, [ebp - 0xc]
push eax
mov dword [ebp - 0xa], 0x5c003a
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceExW]
test eax, eax
je 0x421a50
mov edi, dword [ebp - 0x298]
mov ecx, dword [ebp - 0x294]
shrd edi, ecx, 0x14
shr ecx, 0x14
mov edx, dword [esi]
mov eax, dword [edx + 0x1c]
mov ecx, esi
call eax
cmp edi, eax
jbe 0x421a70
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret
push str.reeSpace
push 0x47aa50
call fcn.004089f0
add esp, 8
push 0x47afdc
push eax
lea ecx, [esi + 0x8d20]
push ecx
call fcn.0040260b
push eax
call fcn.0040260b
mov eax, dword [esi]
push 0xa
push 0x40
lea edx, [ebp - 0x8c]
push edx
mov edx, dword [eax + 0x1c]
mov ecx, esi
call edx
push eax
call fcn.00453786
push 0x47ae88
push 0x47ae84
call fcn.004089f0
add esp, 0x18
mov esi, eax
call fcn.0041eda0
lea edx, [ebp - 8]
mov dword [ebp - 8], eax
call fcn.0041c500
mov eax, dword [eax]
test eax, eax
jne 0x421ae0
mov eax, esi
lea ecx, [ebp - 0x8c]
push ecx
push eax
push 0x100
lea edx, [ebp - 0x28c]
push 0x100
push edx
call fcn.004534e2
mov ecx, dword [ebp - 0x290]
add esp, 0x14
push 0x10
push 0
lea eax, [ebp - 0x28c]
push eax
push ecx
call dword [sym.imp.USER32.dll_MessageBoxW]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
xor al, al
pop ebx
call fcn.00452c94
mov esp, ebp
pop ebp
ret
Function at 0x422100
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x473a30
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x490654]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x8c2c], 2
je 0x42224d
sub esp, 0x1c
lea ecx, [ebx + 0x24]
mov eax, esp
mov dword [ebp - 0x5c], esp
push ecx
call fcn.004025cc
lea esi, [ebp - 0x3c]
call fcn.004445a0
mov dword [ebp - 4], 0
cmp dword [ebx + 0x8c2c], 1
jne 0x42216c
push str.einstallStart
push 0x479be8
jmp 0x422176
push str.nstallStart
push 0x47a4cc
call fcn.004089f0
add esp, 8
push eax
lea edx, [ebp - 0x3c]
push edx
xor ecx, ecx
mov edx, ebx
call fcn.00420890
mov eax, dword [ebx + 0x8c28]
push eax
lea edx, [ebp - 0x58]
lea ecx, [ebp - 0x3c]
call fcn.00444650
push 0x28
mov byte [ebp - 4], 1
call fcn.00453217
mov esi, eax
add esp, 4
mov dword [ebp - 0x60], esi
test esi, esi
je 0x4221e6
lea eax, [ebp - 0x58]
call fcn.00402637
mov dword [ebp - 0x5c], eax
lea edi, [esi + 4]
mov eax, edi
call fcn.004025a5
mov eax, dword [ebp - 0x5c]
mov byte [ebp - 4], 3
push eax
mov dword [esi], str.sendStart
call fcn.00402626
mov dword [esi + 0x20], ebx
mov byte [esi + 0x24], 1
jmp 0x4221e8
xor esi, esi
mov byte [ebp - 4], 1
mov edx, dword [ebx]
mov edx, dword [edx + 8]
push 0
lea eax, [ebp - 0x3c]
push eax
mov ecx, ebx
call edx
lea eax, [ebp - 0x64]
push eax
push 0
push esi
push fcn.00421b30
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov esi, ebx
call fcn.0041f550
lea ecx, [ebp - 0x58]
call fcn.004025fd
lea ecx, [ebp - 0x2c]
call fcn.004025fd
mov dword [ebp - 4], 4
mov eax, dword [ebp - 0x38]
mov ecx, dword [eax]
push eax
push ecx
lea edi, [ebp - 0x60]
lea esi, [ebp - 0x3c]
call fcn.004224c0
mov ecx, dword [ebp - 0x38]
push ecx
call fcn.004531bb
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.00452c94
mov esp, ebp
pop ebp
ret

Function at 0x423c90
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
cmp byte [esi + 0x44], 0
je 0x423c9d
mov al, 1
pop esi
ret
mov eax, dword [esi + 4]
mov ecx, dword [eax + 4]
push 0
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov edx, dword [esi - 4]
mov eax, dword [edx + 0x38]
lea ecx, [esi - 4]
call eax
xor al, al
pop esi
ret
Function at 0x424390
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46d88b
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x490654]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0x24
call fcn.00453217
add esp, 4
mov dword [ebp - 0x10], eax
xor edi, edi
mov dword [ebp - 4], edi
cmp eax, edi
je 0x4243ff
mov eax, dword [esi - 0x808]
call fcn.00404085
mov edi, dword [eax + 4]
mov eax, dword [esi - 0x808]
mov ecx, dword [eax + 8]
mov ebx, dword [ecx + 4]
call fcn.00404085
mov ecx, dword [esi + 0x20]
push eax
mov eax, dword [ebp - 0x10]
push edi
push eax
mov edx, ebx
call fcn.004257e0
mov edi, eax
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [edi + 0x1c]
mov edx, dword [ecx]
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push edx
call ebx
mov eax, dword [edi + 8]
push 5
push eax
call ebx
mov ecx, dword [esi + 0x24]
add ecx, 0xaec
push ecx
call fcn.00407d40
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret