joyce8/EMBER2024-capa huggingface dataset:
Function at 0x435c00
Capabilities:
Set registry value

Disassembly:
sub esp, 0x210
mov eax, dword [0x4c1bd8]
xor eax, esp
mov dword [esp + 0x20c], eax
push ebx
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x16]
push ecx
mov dword [esp + 0x14], 0
mov word [esp + 0x18], ax
call fcn.00454ce0
add esp, 0xc
xor ebx, ebx
push ebx
lea edx, [esp + 0xc]
push edx
push ebx
push 2
push ebx
push ebx
push ebx
push str.SOFTWARE360SD
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x435d2a
mov eax, dword [esi + 0x18]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x14]
push edx
call fcn.00455578
lea eax, [esp + 0x18]
add esp, 0xc
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435c80
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0x4a2c20
push edx
call edi
test eax, eax
je 0x435cb9
mov ebx, 1
cmp byte [esp + 0x220], 0
jne 0x435d1e
push 0x208
lea eax, [esp + 0x14]
push 0
push eax
call fcn.00454ce0
mov eax, dword [esi + 0x28]
mov ecx, dword [eax - 0xc]
push ecx
push eax
lea edx, [esp + 0x24]
push edx
call fcn.00455578
lea eax, [esp + 0x28]
add esp, 0x18
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x435cf0
sub eax, edx
mov edx, dword [esp + 0xc]
sar eax, 1
lea eax, [eax + eax + 2]
push eax
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push 0x4a3790
push edx
call edi
test eax, eax
je 0x435d1e
inc ebx
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, dword [esp + 0x214]
pop esi
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.00454cc7
add esp, 0x210
ret 4

Function at 0x435d50
Capabilities:
Get common file path
Get program files directory
Query environment variable

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4c1bd8]
xor eax, esp
mov dword [esp + 0x208], eax
push ebx
mov ebx, dword [esp + 0x214]
push esi
mov esi, dword [esp + 0x21c]
push edi
xor edi, edi
test ebx, ebx
je 0x435dff
test esi, esi
je 0x435dff
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x16]
push ecx
mov word [esp + 0x18], ax
call fcn.00454ce0
add esp, 0xc
call fcn.004115c0
test eax, eax
je 0x435db7
push 0x104
lea edx, [esp + 0x10]
push edx
push str._ProgramW6432_
jmp 0x435ddd
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0x26
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jge 0x435de3
push 0x104
lea ecx, [esp + 0x10]
push ecx
push str._programfiles_
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
cmp word [esp + 0xc], di
je 0x435dfb
lea edx, [esp + 0xc]
push edx
push ebx
push esi
call fcn.0040d230
mov edi, 1
mov eax, edi
jmp 0x435e01
xor eax, eax
mov ecx, dword [esp + 0x214]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00454cc7
add esp, 0x20c
ret 8
Function at 0x438360
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
sub esp, 0x650
mov eax, dword [0x4c1bd8]
xor eax, esp
mov dword [esp + 0x64c], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
jne 0x4384f6
push edi
xor eax, eax
push 0x21a
push eax
lea ecx, [esp + 0x442]
push ecx
mov dword [esp + 0x14], 0
mov word [esp + 0x444], ax
call fcn.00454ce0
xor edx, edx
push 0x21a
push edx
lea eax, [esp + 0x232]
push eax
mov word [esp + 0x234], dx
call fcn.00454ce0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x36]
push edx
mov word [esp + 0x38], cx
call fcn.00454ce0
add esp, 0x24
cmp dword [esi + 0x68], 0
jbe 0x43841a
mov eax, dword [esi + 0x64]
mov edi, dword [eax]
mov eax, dword [esi + 0x50]
test eax, eax
jne 0x438416
call fcn.004541b9
xor eax, eax
cmp edi, dword [eax + 0x14]
jne 0x438401
call fcn.004541b9
add edi, 8
push edi
push 0x208
lea ecx, [esp + 0x1c]
push ecx
call fcn.0040d2b0
jmp 0x43843a
mov eax, dword [eax]
jmp 0x4383f7
mov edx, dword [esi + 4]
push edx
push str.SoftwareMicrosoftWindowsCurrentVersionApp_Paths
push 0x4a1680
lea eax, [esp + 0x20]
push 0x208
push eax
call fcn.0040d340
add esp, 0x14
lea ecx, [esp + 8]
push ecx
mov edi, 1
push edi
push 0
lea edx, [esp + 0x20]
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [esi + 0x38], edi
test eax, eax
jne 0x4384dc
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0xc]
lea ecx, [esp + 0x220]
push ecx
lea edx, [esp + 0x14]
push edx
push 0
push str.path
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], 0x21c
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4384d1
mov ecx, dword [esi + 4]
push ecx
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x440]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x438]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov dword [esi + 0x3c], eax
test eax, eax
je 0x4384d1
lea edx, [esp + 0x21c]
push edx
lea ecx, [esi + 8]
call fcn.0040ee40
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, dword [esi + 0x3c]
pop edi
pop esi
mov ecx, dword [esp + 0x64c]
xor ecx, esp
call fcn.00454cc7
add esp, 0x650
ret
mov eax, dword [esi + 0x3c]
mov ecx, dword [esp + 0x650]
pop esi
xor ecx, esp
call fcn.00454cc7
add esp, 0x650
ret
Function at 0x43a350
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x49dd1c
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4c1bd8]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
call edx
add eax, 0x10
mov dword [esi], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
xor edi, edi
mov ecx, 0x4c44d8
mov dword [esp + 0x18], edi
call edx
add eax, 0x10
mov dword [esi + 4], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x18], 1
call edx
add eax, 0x10
mov dword [esi + 8], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x18], 2
call edx
add eax, 0x10
mov dword [esi + 0xc], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x18], 3
call edx
add eax, 0x10
mov dword [esi + 0x10], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x18], 4
call edx
add eax, 0x10
mov dword [esi + 0x14], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x18], 5
call edx
add eax, 0x10
mov dword [esi + 0x18], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x18], 6
call edx
add eax, 0x10
mov dword [esi + 0x1c], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x18], 7
call edx
add eax, 0x10
mov dword [esi + 0x20], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x18], 8
call edx
add eax, 0x10
mov dword [esi + 0x24], eax
mov byte [esp + 0x18], 9
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
call edx
add eax, 0x10
mov dword [esi + 0x28], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x18], 0xa
call edx
add eax, 0x10
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], 0x20
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x18], 0xb
call edx
add eax, 0x10
mov dword [esi + 0x34], eax
lea ecx, [esi + 0x50]
mov byte [esp + 0x18], 0xc
mov dword [esi + 0x38], edi
mov dword [esi + 0x3c], edi
mov dword [esi + 0x40], edi
mov dword [esi + 0x44], edi
call fcn.00436d60
lea ecx, [esi + 0x6c]
mov byte [esp + 0x18], 0xd
call fcn.00436df0
lea ecx, [esi + 0x88]
mov byte [esp + 0x18], 0xe
call fcn.00436cd0
lea ecx, [esi + 0xa4]
mov byte [esp + 0x18], 0xf
call fcn.00436cd0
lea ecx, [esi + 0xc0]
mov byte [esp + 0x18], 0x10
call fcn.00436cd0
lea ecx, [esi + 0xdc]
mov byte [esp + 0x18], 0x11
call fcn.00436e80
mov dword [esi + 0xf8], edi
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret
Function at 0x43c0f0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x4c1bd8]
xor eax, esp
mov dword [esp + 0x208], eax
push esi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.00454ce0
add esp, 0xc
lea edx, [esp + 4]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
lea eax, [esp + 8]
push eax
lea ecx, [esi + 0x14]
push str._s_d
push ecx
call fcn.0040e7e0
add esp, 0x10
cmp dword [esi + 0x44], 0
jne 0x43c16b
mov edx, dword [esp + 0x218]
mov eax, dword [esp + 0x214]
push edx
push eax
mov ecx, esi
call fcn.0043bea0
mov ecx, esi
call fcn.00438360
mov ecx, dword [esp + 0x20c]
pop esi
xor ecx, esp
call fcn.00454cc7
add esp, 0x20c
ret 8

Function at 0x43f2d0
Capabilities:
Create directory
Extract resource via kernel32 functions
Write file on windows

Disassembly:
sub esp, 0xc
push esi
push edi
push 0
mov dword [esp + 0x10], ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0xa
mov esi, eax
push 0xd8
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x43f2ff
pop edi
xor al, al
pop esi
add esp, 0xc
ret
push ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebp, eax
test ebp, ebp
jne 0x43f317
pop ebp
pop edi
xor al, al
pop esi
add esp, 0xc
ret
push ebx
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, dword [esp + 0x14]
mov ebx, eax
mov eax, dword [edi + 0x1c]
add edi, 0x1c
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.7z.cab
lea ecx, [esp + 0x14]
push edi
push ecx
call fcn.00416660
mov edx, dword [esp + 0x1c]
add esp, 0xc
push 0
push 0x80
push 2
push 0
push 1
push 0xc0000000
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x43f3aa
push str._Setup_Extrac_7z.cab_Failed
call fcn.0040cd20
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
add esp, 4
lea ecx, [eax + 0xc]
or edx, esi
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43f3a0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
pop ebx
pop ebp
pop edi
xor al, al
pop esi
add esp, 0xc
ret
push 0
lea ecx, [esp + 0x1c]
push ecx
push ebx
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x10]
push edx
push str._Setup_Create__s
call fcn.0040cd20
push 0x208
push 0
push 0x4c4158
call fcn.00454ce0
mov eax, dword [edi]
push 0x104
push eax
push 0x4c4158
call fcn.00455578
mov ecx, dword [esp + 0x30]
add esp, 0x20
push 0
push 0x43c310
push 0
push ecx
call dword [sym.imp.SETUPAPI.dll_SetupIterateCabinetW]
cmp eax, 1
mov eax, dword [esp + 0x10]
sete bl
add eax, 0xfffffff0
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x43f430
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, bl
pop ebx
pop ebp
pop edi
pop esi
add esp, 0xc
ret
Function at 0x43f8b0
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x49df51
mov eax, dword fs:[0]
push eax
sub esp, 0x21c
mov eax, dword [0x4c1bd8]
xor eax, esp
mov dword [esp + 0x218], eax
push ebx
push esi
push edi
mov eax, dword [0x4c1bd8]
xor eax, esp
push eax
lea eax, [esp + 0x22c]
mov dword fs:[0], eax
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov edi, eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
call edx
add eax, 0x10
mov dword [esp + 0x1c], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov dword [esp + 0x234], 0
call edx
add eax, 0x10
mov dword [esp + 0x18], eax
mov eax, dword [0x4c44d8]
mov edx, dword [eax + 0xc]
mov ecx, 0x4c44d8
mov byte [esp + 0x234], 1
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push 0x104
lea eax, [esp + 0x24]
push eax
push 0x107
push edi
mov byte [esp + 0x244], 2
call dword [sym.imp.USER32.dll_LoadStringW]
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x18]
push str.__User_Desktop___s.lnk
push edx
call fcn.0040e7e0
mov ecx, dword [esp + 0x20]
add esp, 0xc
lea eax, [esp + 0x1c]
push eax
push ecx
mov ecx, dword [esi]
call fcn.00437b40
lea edx, [esp + 0x20]
push edx
mov bl, al
lea eax, [esp + 0x18]
push str.__Common_Desktop___s.lnk
push eax
call fcn.0040e7e0
mov edi, dword [esp + 0x20]
add esp, 0xc
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esi]
push edi
call fcn.00437b40
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov byte [esp + 0x13], al
mov byte [esp + 0x11], 0
mov byte [esp + 0x12], 0
mov byte [esp + 0x10], 0
test bl, bl
je 0x43f9e6
mov edx, dword [esp + 0x1c]
push edx
call esi
test eax, eax
sete byte [esp + 0x11]
cmp byte [esp + 0x13], 0
je 0x43f9fb
mov eax, dword [esp + 0x18]
push eax
call esi
test eax, eax
sete byte [esp + 0x12]
cmp byte [esp + 0x11], 0
je 0x43fa0e
cmp byte [esp + 0x12], 0
je 0x43fa0e
mov byte [esp + 0x10], 1
lea eax, [edi - 0x10]
mov byte [esp + 0x234], 1
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43fa32
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x18]
add eax, 0xfffffff0
mov byte [esp + 0x234], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43fa5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x234], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x43fa85
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov al, byte [esp + 0x10]
mov ecx, dword [esp + 0x22c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x218]
xor ecx, esp
call fcn.00454cc7
add esp, 0x228
ret
Function at 0x43fab0
Capabilities:
Delete file
Move file

Disassembly:
push 0xffffffffffffffff
push 0x49df88
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x4c1bd8]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c1bd8]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
mov edi, dword [esp + 0x50]
mov esi, dword [esp + 0x54]
mov dword [esp + 0x18], ecx
test edi, edi
je 0x43fc29
test esi, esi
je 0x43fc29
xor eax, eax
cmp ax, word [edi]
je 0x43fc29
xor ecx, ecx
cmp cx, word [esi]
je 0x43fc29
push 0xffffffffffffffff
push 0xffffffffffffffff
push ecx
lea edx, [esp + 0x38]
push edx
push edi
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], eax
mov dword [esp + 0x48], eax
mov dword [esp + 0x4c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x3c], eax
call fcn.0044f0c0
push 0xffffffffffffffff
push 0xffffffffffffffff
push 0
lea eax, [esp + 0x3c]
push eax
push esi
call fcn.0044f0c0
push edi
push str._Setup_Tmp_File:__s
call fcn.0040cd20
push esi
push str._Setup_File_need_to_be_replaced:__s
call fcn.0040cd20
lea ecx, [esp + 0x54]
push ecx
lea edx, [esp + 0x68]
push edx
call fcn.004526a0
add esp, 0x40
test al, al
je 0x43fb9b
push edi
push str._Setup_Same_MD5_delete__s
call fcn.0040cd20
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x43fc29
lea ecx, [esp + 0x14]
call fcn.0040da50
push esi
lea eax, [esp + 0x18]
push str._s_d.rbrp
push eax
mov dword [esp + 0x54], 0
call fcn.0040e7e0
mov ebx, dword [esp + 0x20]
mov ebp, dword [sym.imp.KERNEL32.dll_MoveFileW]
add esp, 0xc
push ebx
push esi
call ebp
test eax, eax
je 0x43fc00
push ebx
push esi
push str._Setup_Rename__s_to__s
call fcn.0040cd20
add esp, 0xc
push 4
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
push esi
push edi
push str._Setup__s_back_to__s
call fcn.0040cd20
add esp, 0xc
push esi
push edi
call ebp
jmp 0x43fc20
push esi
push str._Setup_Different_file__s_will_be_replaced_when_reboot
call fcn.0040cd20
add esp, 8
push 5
push esi
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x18]
mov byte [ecx + 9], 1
lea ecx, [esp + 0x14]
call fcn.0040da70
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x28]
xor ecx, esp
call fcn.00454cc7
add esp, 0x38
ret 8
Function at 0x4425c0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49e386
mov eax, dword fs:[0]
push eax
sub esp, 0x330
mov eax, dword [0x4c1bd8]
xor eax, esp
mov dword [esp + 0x32c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4c1bd8]
xor eax, esp
push eax
lea eax, [esp + 0x344]
mov dword fs:[0], eax
mov eax, dword [esp + 0x358]
mov esi, dword [esp + 0x354]
push 0x103
mov edi, ecx
lea ecx, [esp + 0x39]
push 0
push ecx
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], eax
mov byte [esp + 0x40], 0
call fcn.00454ce0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x14e]
push eax
mov word [esp + 0x150], dx
call fcn.00454ce0
mov ecx, dword [edi + 0x1c]
push esi
push ecx
push 0x4a1680
lea edx, [esp + 0x15c]
push 0x208
push edx
call fcn.0040d340
add esp, 0x2c
lea eax, [esp + 0x138]
push eax
lea ecx, [esp + 0x20]
call fcn.004190e0
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x2c]
lea esi, [edi + 0x11c]
push edx
mov ecx, esi
mov dword [esp + 0x354], 0
call fcn.0043f550
mov ebp, dword [eax]
mov ebx, dword [eax + 4]
mov eax, dword [esp + 0x1c]
add eax, 0xfffffff0
mov dword [esp + 0x34c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4426c8
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, dword [esi]
mov ecx, dword [esi + 0x18]
mov dword [esp + 0x18], ecx
test eax, eax
je 0x4426d9
cmp eax, ebp
je 0x4426de
call fcn.004541b9
cmp dword [esp + 0x18], ebx
je 0x442704
test ebp, ebp
jne 0x4426ff
call fcn.004541b9
cmp ebx, dword [ebp + 0x18]
jne 0x4426f7
call fcn.004541b9
mov ebp, dword [ebx + 0x10]
jmp 0x442790
mov ebp, dword [ebp]
jmp 0x4426ed
lea edx, [esp + 0x138]
push edx
call fcn.00421aa0
add esp, 4
test eax, eax
je 0x4427e8
lea eax, [esp + 0x138]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebp, eax
test ebp, ebp
je 0x4427d6
lea ecx, [esp + 0x138]
push ecx
lea ecx, [esp + 0x18]
call fcn.004190e0
mov dword [esp + 0x18], ebp
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x2c]
push eax
mov ecx, esi
mov dword [esp + 0x354], 1
call fcn.00441dc0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
mov dword [esp + 0x34c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x442790
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test ebp, ebp
je 0x4427d6
mov esi, dword [esp + 0x24]
push 0
push 0
push 0x103
lea ecx, [esp + 0x40]
push ecx
push 0xffffffffffffffff
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
lea edx, [esp + 0x34]
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4427ce
mov ecx, dword [edi + 0x44]
push ecx
call eax
add esp, 4
jmp 0x4427ed
push esi
push str._Setup_GetProcAdd_failed:__s
jmp 0x4427e0
mov edx, dword [esp + 0x20]
push edx
push str._Setup_Load_library_failed:__s
call fcn.0040cd20
add esp, 8
mov eax, 1
mov ecx, dword [esp + 0x344]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x32c]
xor ecx, esp
call fcn.00454cc7
add esp, 0x33c
ret 8
Function at 0x446500
Capabilities:
Check if file exists
Create thread

Disassembly:
push ecx
mov eax, dword [esp + 0xc]
push ebx
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x18]
mov dword [esi + 0x358], eax
mov eax, dword [esi + 4]
mov dword [esi + 0x44], edi
movzx ecx, byte [edi + 1]
neg ecx
sbb ecx, ecx
and ecx, 0x514
add ecx, 0x2bc
mov dword [esp + 0x10], 1
mov dword [esi + 0x14], ecx
test eax, eax
je 0x44655d
push 1
push eax
call ebp
cmp eax, 0x102
jne 0x44655d
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push ecx
lea ebx, [edi + 0x88]
mov ecx, esp
mov dword [esp + 0x1c], esp
push ebx
call fcn.004190e0
mov ecx, dword [esi]
call fcn.00437120
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x446598
push ebx
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectory]
push ebx
push 0x4a69a8
call fcn.0040cd20
add esp, 8
push str._Setup_Install_thread_start:
call fcn.0040cd20
add esp, 4
xor ebx, ebx
push ebx
push ebx
push esi
push 0x446330
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi + 4], eax
cmp eax, ebx
je 0x446550
cmp byte [edi], bl
jne 0x4465d4
cmp dword [esi + 0x358], ebx
jne 0x4465d4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8
push 0x927c0
push eax
call ebp
mov edx, dword [esi + 4]
push edx
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], ebx
cmp edi, 0xffffffff
je 0x446602
cmp edi, 0x102
je 0x446602
cmp edi, ebx
jne 0x44660a
mov dword [esp + 0x10], ebx
jmp 0x44660a
mov dword [esp + 0x10], 1
mov eax, 0x4a6964
cmp dword [esi + 0x358], ebx
jne 0x44661c
mov eax, 0x4a695c
push eax
push str._Setup__s
call fcn.0040cd20
mov eax, dword [esp + 0x18]
add esp, 8
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 8