joyce8/EMBER2024-capa huggingface dataset:
Function at 0x405b00
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x445f20
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov dword [esp + 0x1c], ecx
mov edi, dword [esp + 0x34]
mov esi, dword [edi - 0xc]
lea eax, [esi + esi + 2]
xor ebp, ebp
push eax
mov dword [esp + 0x30], ebp
call fcn.0043da51
mov ebx, eax
push edi
push ebx
call fcn.0042924a
add esp, 0xc
cmp esi, ebp
jl 0x405c2b
mov dword [esp + 0x14], ebp
mov ebp, 2
sub ebp, ebx
inc esi
mov edi, ebx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], esi
mov ax, word [edi]
cmp ax, 0x7c
je 0x405b73
test ax, ax
jne 0x405c15
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.00404410
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x5c]
add esi, 0x58
test eax, eax
lea edx, [edi + ebp]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edx
jne 0x405ba6
xor edx, edx
jmp 0x405bae
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x405be0
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x405be0
mov eax, dword [esp + 0x34]
mov ebp, dword [esi + 8]
push eax
push esi
lea ecx, [esp + 0x18]
push ecx
push 1
push ebp
call fcn.00403d40
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x405bf2
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00404760
mov eax, dword [esp + 0x10]
add eax, 0xfffffff0
mov byte [esp + 0x2c], 0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x405c15
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [esp + 0x18]
add edi, 2
dec eax
mov dword [esp + 0x18], eax
jne 0x405b61
mov edi, dword [esp + 0x34]
lea eax, [edi - 0x10]
mov dword [esp + 0x2c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
pop esi
pop ebp
pop ebx
jg 0x405c51
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 4
Function at 0x4074b0
Capabilities:
Delete file
Get common file path
Get program files directory
Get startup folder

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x52c
mov eax, dword [0x45b1e4]
push ebx
push esi
push edi
push 0x104
mov dword [esp + 0x538], eax
mov ebx, ecx
call fcn.0043da51
push 0x208
mov dword [ebx], eax
call fcn.0043da51
mov edi, dword [ebx]
mov dword [ebx + 4], eax
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov edi, dword [ebx + 4]
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
mov edi, dword [ebx]
mov ecx, 7
mov esi, str.clientBegin:761
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebx]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x20], ecx
mov edx, dword [eax + 0x10]
mov ecx, dword [ebx + 4]
push 0x104
lea eax, [esp + 0x24]
push eax
push ecx
mov dword [esp + 0x30], edx
call fcn.00429497
add esp, 0x14
mov word [esp + 0x120], 0
xor eax, eax
push 0
mov ecx, 0x81
lea edi, [esp + 0x126]
rep stosd dword es:[edi], eax
push 0x26
lea edx, [esp + 0x128]
push edx
push 0
stosw word es:[edi], ax
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [esp + 0x120]
push eax
call fcn.004290eb
add esp, 4
push eax
lea ecx, [esp + 0x124]
lea esi, [ebx + 0x1c]
push ecx
mov ecx, esi
call fcn.00403080
mov ecx, ebx
call fcn.00403ac0
mov ecx, ebx
call fcn.00404010
mov ecx, ebx
call fcn.00404100
mov ecx, ebx
call fcn.00403b20
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x32c]
push 0x4497ac
push eax
call fcn.00428c0a
lea ecx, [esp + 0x334]
push str.Setup.ini
push ecx
call fcn.00429220
add esp, 0x14
push 0x8e
lea edx, [esp + 0x32c]
push edx
mov ecx, ebx
call fcn.00402990
test eax, eax
jne 0x407606
mov ecx, dword [esp + 0x534]
call fcn.00428731
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x328]
push eax
mov ecx, ebx
call fcn.00405c70
lea ecx, [esp + 0x328]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea edx, [esp + 0x18]
push edx
mov ecx, esi
call fcn.004031b0
mov eax, dword [eax]
push 0x448e8c
push eax
call fcn.00428fbd
add esp, 8
test eax, eax
mov eax, dword [esp + 0x14]
setne byte [esp + 0x13]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x407666
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x407688
push 0x448e8c
call fcn.004290eb
add esp, 4
push eax
push 0x448e8c
mov ecx, esi
call fcn.004032d0
mov ecx, ebx
call fcn.00402660
mov ecx, ebx
call fcn.00402150
mov ecx, ebx
call fcn.00402700
mov ecx, dword [esp + 0x534]
mov eax, 1
call fcn.00428731
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407c30
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x445fa8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push esi
mov esi, dword [esp + 0x1c]
mov eax, dword [esi]
mov ecx, dword [eax - 0x10]
mov edx, dword [ecx]
push edi
xor edi, edi
mov dword [esp + 8], edi
call dword [edx + 0x10]
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
mov eax, dword [eax]
mov edx, dword [eax - 0xc]
mov ecx, dword [esi]
mov esi, dword [ecx - 0xc]
push edx
push eax
push esi
push ecx
lea ecx, [esp + 0x30]
push ecx
mov dword [esp + 0x28], edi
call fcn.00403370
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00402c10
mov edi, dword [esp + 0x34]
add eax, 0x10
mov dword [edi], eax
add esp, 0x18
mov dword [esp + 0x14], 0xffffffff
lea edx, [esi + 0xc]
or eax, 0xffffffff
lock xadd dword [edx], eax
dec eax
test eax, eax
jg 0x407cc2
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call dword [edx + 4]
mov ecx, dword [esp + 0xc]
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 0xc
Function at 0x408bf0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x449ba0
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x408c1a
xor eax, eax
add esp, 0xc
ret 4
mov edx, dword [esp + 0x10]
lea ecx, [esp + 4]
push ecx
mov ecx, dword [esp + 4]
push edx
lea eax, [esp + 0x10]
push eax
push 0
push str.Start_Page
push ecx
mov dword [esp + 0x20], 1
mov dword [esp + 0x1c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
add esp, 0xc
ret 4

Function at 0x408c60
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x45b1e4]
mov dword [esp + 0x824], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x14]
rep stosd dword es:[edi], eax
mov ecx, dword [esp + 0x830]
mov dword [esp + 4], eax
push ecx
mov dword [esp + 0xc], eax
lea edx, [esp + 0x5c]
mov dword [esp + 0x10], eax
push 0x448cf8
push edx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], eax
call fcn.00428c0a
add esp, 0xc
lea eax, [esp + 4]
push eax
lea ecx, [esp + 0x18]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x78]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x408cef
mov ecx, dword [esp + 0x824]
call fcn.00428731
add esp, 0x828
ret 4
mov eax, dword [esp]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov ecx, dword [esp + 0x828]
mov eax, 1
pop esi
call fcn.00428731
add esp, 0x828
ret 4

Function at 0x408e00
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.004290eb
mov ebp, eax
lea eax, [ebp + ebp + 2]
push eax
call fcn.0043da51
mov esi, eax
push edi
push esi
call fcn.0042924a
add esp, 0x10
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x408e7d
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x408e5d
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x408e57
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x408e77
mov word [esi + edi*2], 0x5c
inc edi
cmp edi, ebp
jle 0x408e37
pop ebx
push esi
call fcn.0043da4c
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret 4
mov byte [esp + 0x14], 0
pop ebx
push esi
call fcn.0043da4c
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret 4
Function at 0x408ea0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
sub esp, 0xbf4
mov eax, dword [0x45b1e4]
mov dword [esp + 0xbf0], eax
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftInternet_ExplorerTypedUrls
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x408ee8
xor eax, eax
mov ecx, dword [esp + 0xbf0]
call fcn.00428731
add esp, 0xbf4
ret 8
push esi
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x42c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
mov esi, 1
push esi
push eax
mov dword [esp + 0x34], esi
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], 0x3e8
call edi
test eax, eax
jne 0x408f7b
cmp esi, dword [esp + 0xc04]
je 0x408fe7
lea ecx, [esp + 0xc]
push ecx
lea edx, [esp + 0x42c]
push edx
lea eax, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x20]
push ecx
lea edx, [esp + 0x2c]
push edx
inc esi
push esi
push eax
mov dword [esp + 0x30], 0x104
mov dword [esp + 0x2c], 0x3e8
call edi
test eax, eax
je 0x408f33
mov eax, dword [esp + 0xc04]
push eax
lea ecx, [esp + 0x224]
push str.url_d
push ecx
call fcn.00428c0a
mov esi, dword [esp + 0xc0c]
push esi
call fcn.004290eb
add esp, 0x10
shl eax, 1
push eax
mov eax, dword [esp + 0xc]
push esi
push 1
push 0
lea edx, [esp + 0x230]
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0xbf8]
pop edi
mov eax, 1
pop esi
call fcn.00428731
add esp, 0xbf4
ret 8
mov esi, dword [esp + 0xc00]
push esi
call fcn.004290eb
mov edx, dword [esp + 0xc]
add esp, 4
shl eax, 1
push eax
push esi
push 1
push 0
lea ecx, [esp + 0x28]
push ecx
push edx
jmp 0x408fba

Function at 0x409010
Capabilities:
Get common file path
Set file attributes

Disassembly:
sub esp, 0x404
mov eax, dword [0x45b1e4]
mov dword [esp + 0x400], eax
mov eax, dword [esp + 0x414]
test eax, eax
push 0
je 0x409038
push 0x1f
lea eax, [esp + 8]
push eax
jmp 0x40903f
push 6
lea ecx, [esp + 8]
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea edx, [esp]
push 0x448e8c
push edx
call fcn.00429220
mov eax, dword [esp + 0x414]
push eax
lea ecx, [esp + 0xc]
push ecx
call fcn.00429220
lea edx, [esp + 0x10]
push 0x449ca4
push edx
call fcn.00429220
mov ecx, dword [esp + 0x420]
add esp, 0x18
lea eax, [esp]
push eax
push ecx
push 0x449c60
push str.InternetShortcut
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringW]
mov eax, dword [esp + 0x410]
test eax, eax
je 0x4090ad
push 2
lea edx, [esp + 4]
push edx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov ecx, dword [esp + 0x400]
mov eax, 1
call fcn.00428731
add esp, 0x404
ret 0x10
Function at 0x4090d0
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ecx
push esi
xor esi, esi
push esi
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jl 0x4091b9
lea eax, [esp + 4]
push eax
push 0x451a80
push 1
push esi
push 0x451a90
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x4091b3
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
push edx
push eax
call dword [ecx + 0x50]
mov eax, dword [esp + 0x14]
test eax, eax
je 0x409125
mov ecx, dword [esp + 4]
mov edx, dword [ecx]
push eax
push ecx
call dword [edx + 0x1c]
mov ecx, dword [esp + 0x18]
test ecx, ecx
je 0x409138
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x3c]
mov ecx, dword [esp + 0x1c]
test cx, cx
je 0x40914c
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x34]
mov ecx, dword [esp + 0x20]
test ecx, ecx
je 0x40915f
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x24]
mov ecx, dword [esp + 0x24]
test ecx, ecx
je 0x409172
mov eax, dword [esp + 4]
mov edx, dword [eax]
push ecx
push eax
call dword [edx + 0x2c]
mov eax, dword [esp + 4]
mov ecx, dword [eax]
lea edx, [esp + 0x10]
push edx
push 0x451ad0
push eax
call dword [ecx]
test eax, eax
jl 0x4091a9
mov edx, dword [esp + 0xc]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push 0
push edx
push eax
call dword [ecx + 0x18]
mov eax, dword [esp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov esi, 1
mov eax, dword [esp + 4]
mov edx, dword [eax]
push eax
call dword [edx + 8]
call dword [sym.imp.ole32.dll_CoUninitialize]
mov eax, esi
pop esi
pop ecx
ret 0x1c

Function at 0x4091c0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45b1e4]
push esi
mov esi, dword [esp + 0x214]
push edi
push esi
mov dword [esp + 0x214], eax
mov edi, ecx
call fcn.004290eb
add esp, 4
test eax, eax
jne 0x409201
pop edi
pop esi
mov ecx, dword [esp + 0x208]
call fcn.00428731
add esp, 0x20c
ret 4
push 0x104
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
lea ecx, [esp + 0x14]
push str.Program_FilesInternet_Exploreriexplore.exe
push ecx
call fcn.0042924a
lea edx, [esp + 0x10]
push esi
push edx
call fcn.00429220
add esp, 0x10
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x409253
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.00408c60
mov ecx, dword [esp + 0x210]
pop edi
mov eax, 1
pop esi
call fcn.00428731
add esp, 0x20c
ret 4

Function at 0x409270
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
mov edi, ecx
call fcn.004290eb
add esp, 4
test eax, eax
jne 0x40928a
pop edi
pop esi
ret 4
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x4092ab
push esi
mov ecx, edi
call fcn.00408c60
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x4092c0
Capabilities:
Check if file exists

Disassembly:
push esi
mov esi, dword [esp + 8]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x409315
push 0
push 0x80
push 3
push 0
push 0
push 0x10000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x40930e
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409308
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop esi
ret 4
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x40932f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop esi
ret 4

Function at 0x4093a0
Capabilities:
Check if file exists
Delete file
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4460b6
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x428
mov eax, dword [0x45b1e4]
push ebx
push esi
push edi
mov dword [esp + 0x42c], eax
mov dword [esp + 0x14], ecx
call fcn.00438ca4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea esi, [eax + 0x10]
mov dword [esp + 0xc], esi
xor edi, edi
mov dword [esp + 0x43c], edi
call fcn.00438ca4
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
lea ebx, [eax + 0x10]
mov dword [esp + 0x10], ebx
mov word [esp + 0x18], di
xor eax, eax
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 0x1a
lea eax, [esp + 0x20]
push eax
push 0
mov byte [esp + 0x44c], 1
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x4094ca
lea ecx, [esp + 0x18]
push str.MicrosoftInternet_ExplorerQuick_Launch
push ecx
call fcn.00429220
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x18]
push 0x449dd8
push eax
call fcn.00403780
mov esi, dword [esp + 0x20]
add esp, 0x14
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x4094ca
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0x104
lea ecx, [esp + 0x224]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x220]
push edx
lea eax, [esp + 0x14]
push str.__sProgram_FilesInternet_Exploreriexplore.exe_
push eax
mov word [esp + 0x232], 0
call fcn.00403780
mov ebx, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
add esp, 0xc
push 0
push str._HOMEDRIVE__HOMEPATH_
push 0
push 1
push 0x449d10
push ebx
push esi
call fcn.004090d0
add ebx, 0xfffffff0
mov byte [esp + 0x43c], 0
lea ecx, [ebx + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4094ec
mov ecx, dword [ebx]
mov eax, dword [ecx]
push ebx
call dword [eax + 4]
add esi, 0xfffffff0
mov dword [esp + 0x43c], 0xffffffff
lea ecx, [esi + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409511
mov ecx, dword [esi]
mov eax, dword [ecx]
push esi
call dword [eax + 4]
mov ecx, dword [esp + 0x434]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x42c]
mov eax, 1
call fcn.00428731
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x40af90
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx + 0x284], 2
jne 0x40af9e
jmp fcn.0040ac80
jmp fcn.0040a9a0

Function at 0x40afb0
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x87c
mov eax, dword [0x45b1e4]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
mov dword [esp + 0x87c], eax
push 0x104
lea eax, [esp + 0x470]
push eax
call esi
push 0x104
lea ecx, [esp + 0x268]
push ecx
call esi
lea edx, [esp + 0x46c]
push 0x448e8c
push edx
call fcn.00429220
mov esi, dword [esp + 0x88c]
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x478]
push ecx
call fcn.00429220
lea edx, [esp + 0x274]
push 0x448e8c
push edx
call fcn.00429220
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x280]
push ecx
call fcn.00429220
lea edx, [esp + 0x284]
push 0x44a21c
push edx
call fcn.00429220
mov eax, dword [esi + 0x40]
mov ecx, dword [eax - 0xc]
add esp, 0x28
xor eax, eax
test ecx, ecx
je 0x40b19f
mov edx, dword [esi + 0x44]
push edi
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov eax, dword [esi + 0x40]
xor ecx, ecx
mov dword [esp + 8], ecx
mov dword [esp + 0xc], ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [0x45c16c]
push edx
mov dword [esp + 0x20], 0x44
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [edx + 0x1c]
push eax
lea ecx, [esp + 0x684]
push str._s_s__s
push ecx
call fcn.00428c0a
lea edx, [esp + 0x68c]
push edx
lea eax, [esp + 0x78]
push 0x44a1f8
push eax
call fcn.00428c0a
add esp, 0x20
push 0
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [0x45c16c]
call fcn.00409eb0
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x20]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x698]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
pop edi
jne 0x40b16a
mov edx, dword [esi + 8]
mov ecx, dword [0x45c16c]
mov eax, dword [esi + 0x40]
push edx
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [edx + 0x1c]
push eax
lea ecx, [esp + 0x68]
push 0x44a1d4
push ecx
call fcn.00428c0a
mov ecx, dword [0x45c16c]
add esp, 0x14
push 0
lea edx, [esp + 0x60]
push edx
call fcn.00409eb0
mov eax, dword [0x45c16c]
mov ecx, dword [eax]
test ecx, ecx
je 0x40b152
push 0
push 0x44a1c8
lea edx, [esp + 0x64]
push edx
call fcn.0043a609
xor eax, eax
pop esi
mov ecx, dword [esp + 0x878]
call fcn.00428731
add esp, 0x87c
ret 4
mov eax, dword [esp + 4]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov edx, dword [esp + 4]
lea ecx, [esp + 0x14]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov eax, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 8]
push ecx
call esi
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x87c]
pop esi
call fcn.00428731
add esp, 0x87c
ret 4
Function at 0x40b3d0
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
sub esp, 0x678
mov eax, dword [0x45b1e4]
mov dword [esp + 0x674], eax
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
mov ecx, dword [0x45c16c]
mov dword [esp + 4], eax
mov dword [esp + 8], eax
mov dword [esp + 0xc], eax
mov dword [esp + 0x10], eax
mov dword [esp + 0x1c], 0x44
mov edx, dword [ecx + 0x14]
push 0x44a2e4
add edx, 0x1c
push edx
lea eax, [esp + 0x20]
push eax
call fcn.004037a0
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.0042924a
mov eax, dword [esp + 0x20]
add eax, 0xfffffff0
add esp, 8
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
pop edi
jg 0x40b453
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x45c16c]
mov ecx, dword [eax + 0x18]
call fcn.0040d700
test eax, eax
je 0x40b470
push str.ImeReg64.exe__UnsetupIME_wnwb.ime
lea ecx, [esp + 0x60]
push ecx
jmp 0x40b47a
push str.ImeReg32.exe__UnsetupIME_wnwb.ime
lea edx, [esp + 0x60]
push edx
call fcn.00429220
add esp, 8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x268]
push 0x44a1f8
push ecx
call fcn.00428c0a
mov ecx, dword [0x45c16c]
add esp, 0xc
push 0
lea edx, [esp + 0x268]
push edx
call fcn.00409eb0
lea eax, [esp]
push eax
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
lea edx, [esp + 0x7c]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
jne 0x40b516
lea eax, [esp + 0x264]
push 0x44a234
push eax
call fcn.00428c0a
add esp, 8
push 0
lea ecx, [esp + 0x268]
push ecx
mov ecx, dword [0x45c16c]
call fcn.00409eb0
xor eax, eax
mov ecx, dword [esp + 0x674]
call fcn.00428731
add esp, 0x678
ret
mov edx, dword [esp]
push esi
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 4]
lea eax, [esp + 0x14]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 4]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
push 0x104
lea ecx, [esp + 0x474]
push ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea edx, [esp + 0x470]
push 0x44a220
push edx
call fcn.00429220
add esp, 8
push 5
push 0
lea eax, [esp + 0x478]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x678]
mov eax, dword [esp + 0x14]
pop esi
call fcn.00428731
add esp, 0x678
ret