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

Disassembly:
push 0xffffffffffffffff
push 0x44c3f0
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.00443df7
mov ebx, eax
push edi
push ebx
call fcn.0042be85
add esp, 0xc
cmp esi, ebp
jl 0x406551
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 0x406493
test ax, ax
jne 0x40653b
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.004028f0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x264]
add esi, 0x260
test eax, eax
lea edx, [edi + ebp]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edx
jne 0x4064cc
xor edx, edx
jmp 0x4064d4
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x406506
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x406506
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.004044f0
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x406518
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00404f80
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 0x40653b
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 0x406481
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 0x406577
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 0x407dd0
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 [0x46420c]
push ebx
push esi
push edi
mov ebx, ecx
push 0x450838
push ebx
mov dword [esp + 0x53c], eax
call fcn.0042be85
push 0x104
call fcn.00443df7
push 0x208
mov dword [ebx + 0x208], eax
call fcn.00443df7
mov edi, dword [ebx + 0x208]
mov dword [ebx + 0x20c], eax
xor eax, eax
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov edi, dword [ebx + 0x20c]
mov ecx, 0x41
rep stosd dword es:[edi], eax
mov ecx, 0x41
lea edi, [esp + 0x28]
rep stosd dword es:[edi], eax
mov edi, dword [ebx + 0x208]
mov ecx, 7
mov esi, str.clientBegin:763
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x208]
mov ecx, dword [eax + 0xc]
mov dword [esp + 0x28], ecx
mov edx, dword [eax + 0x10]
mov ecx, dword [ebx + 0x20c]
push 0x104
lea eax, [esp + 0x2c]
push eax
push ecx
mov dword [esp + 0x38], edx
call fcn.0042c199
mov edx, dword [ebx + 0x20c]
push edx
push ebx
call fcn.0042be85
xor eax, eax
mov word [esp + 0x144], 0
mov ecx, 0x81
lea edi, [esp + 0x146]
rep stosd dword es:[edi], eax
add esp, 0x24
push 0
stosw word es:[edi], ax
push 0x26
lea eax, [esp + 0x128]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 0x120]
push ecx
call fcn.0042baa6
add esp, 4
push eax
lea edx, [esp + 0x124]
lea esi, [ebx + 0x224]
push edx
mov ecx, esi
call fcn.004024b0
mov ecx, ebx
call fcn.00404210
mov ecx, ebx
call fcn.004047c0
mov ecx, ebx
call fcn.004048c0
mov ecx, ebx
call fcn.00404280
lea eax, [esp + 0x120]
push eax
push 0x450810
lea ecx, [esp + 0x330]
push ecx
call fcn.0042b87a
lea edx, [esp + 0x334]
push str.Setup.ini
push edx
call fcn.0042be5b
add esp, 0x14
push 0x8e
lea eax, [esp + 0x32c]
push eax
mov ecx, ebx
call fcn.00403520
test eax, eax
jne 0x407f5a
mov ecx, dword [esp + 0x534]
call fcn.0042b3a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [esp + 0x328]
push ecx
mov ecx, ebx
call fcn.00406590
lea edx, [esp + 0x328]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 1
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.00403b10
mov eax, dword [eax]
push 0x44fef0
push eax
call fcn.0042bea1
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 0x407fba
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x407fdc
push 0x44fef0
call fcn.0042baa6
add esp, 4
push eax
push 0x44fef0
mov ecx, esi
call fcn.00403b80
mov ecx, ebx
call fcn.00403300
mov ecx, ebx
call fcn.00402df0
mov ecx, ebx
call fcn.004033a0
mov ecx, dword [esp + 0x534]
mov eax, 1
call fcn.0042b3a1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x408560
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x44c478
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.00402650
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00402340
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 0x4085f2
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 0x4093a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0xc
lea eax, [esp]
push eax
push 0xf003f
push 0
push 0x450c08
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4093ca
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 0x409410
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x46420c]
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 0x44fd08
push edx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], eax
call fcn.0042b87a
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 0x40949f
mov ecx, dword [esp + 0x824]
call fcn.0042b3a1
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.0042b3a1
add esp, 0x828
ret 4

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

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.0042baa6
mov ebp, eax
lea eax, [ebp + ebp + 2]
push eax
call fcn.00443df7
mov esi, eax
push edi
push esi
call fcn.0042be85
add esp, 0x10
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x40962d
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40960d
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x409607
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409627
mov word [esi + edi*2], 0x5c
inc edi
cmp edi, ebp
jle 0x4095e7
pop ebx
push esi
call fcn.00443df2
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.00443df2
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret 4
Function at 0x409650
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 0x409739
lea eax, [esp + 4]
push eax
push 0x459908
push 1
push esi
push 0x459918
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x409733
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 0x4096a5
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 0x4096b8
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 0x4096cc
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 0x4096df
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 0x4096f2
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 0x459958
push eax
call dword [ecx]
test eax, eax
jl 0x409729
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 0x409740
Capabilities:
Create process on windows
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x46420c]
push esi
mov esi, dword [esp + 0x214]
push edi
push esi
mov dword [esp + 0x214], eax
mov edi, ecx
call fcn.0042baa6
add esp, 4
test eax, eax
jne 0x409781
pop edi
pop esi
mov ecx, dword [esp + 0x208]
call fcn.0042b3a1
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.0042be85
lea edx, [esp + 0x10]
push esi
push edx
call fcn.0042be5b
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 0x4097d3
lea eax, [esp + 8]
push eax
mov ecx, edi
call fcn.00409410
mov ecx, dword [esp + 0x210]
pop edi
mov eax, 1
pop esi
call fcn.0042b3a1
add esp, 0x20c
ret 4

Function at 0x4097f0
Capabilities:
Create process on windows

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
push esi
mov edi, ecx
call fcn.0042baa6
add esp, 4
test eax, eax
jne 0x40980a
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 0x40982b
push esi
mov ecx, edi
call fcn.00409410
pop edi
mov eax, 1
pop esi
ret 4
Function at 0x409840
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 0x409895
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 0x40988e
lea eax, [esi - 0x10]
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x409888
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 0x4098af
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
pop esi
ret 4
Function at 0x40b3a0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
cmp dword [ecx + 0x284], 2
jne 0x40b3ae
jmp fcn.0040b090
jmp fcn.0040adb0

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

Disassembly:
sub esp, 0x87c
mov eax, dword [0x46420c]
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 0x44fef0
push edx
call fcn.0042be5b
mov esi, dword [esp + 0x88c]
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x478]
push ecx
call fcn.0042be5b
lea edx, [esp + 0x274]
push 0x44fef0
push edx
call fcn.0042be5b
mov eax, dword [esi + 0x10]
push eax
lea ecx, [esp + 0x280]
push ecx
call fcn.0042be5b
lea edx, [esp + 0x284]
push 0x451204
push edx
call fcn.0042be5b
mov eax, dword [esi + 0x40]
mov ecx, dword [eax - 0xc]
add esp, 0x28
xor eax, eax
test ecx, ecx
je 0x40b5c5
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 [0x46532c]
push edx
mov dword [esp + 0x20], 0x44
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [edx + 0x224]
push eax
lea ecx, [esp + 0x684]
push str._s_s__s
push ecx
call fcn.0042b87a
lea edx, [esp + 0x68c]
push edx
lea eax, [esp + 0x78]
push 0x4511e0
push eax
call fcn.0042b87a
add esp, 0x20
push 0
lea ecx, [esp + 0x64]
push ecx
mov ecx, dword [0x46532c]
call fcn.0040a230
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 0x40b590
mov edx, dword [esi + 8]
mov ecx, dword [0x46532c]
mov eax, dword [esi + 0x40]
push edx
mov edx, dword [ecx + 0x14]
push eax
mov eax, dword [edx + 0x224]
push eax
lea ecx, [esp + 0x68]
push 0x4511bc
push ecx
call fcn.0042b87a
mov ecx, dword [0x46532c]
add esp, 0x14
push 0
lea edx, [esp + 0x60]
push edx
call fcn.0040a230
mov eax, dword [0x46532c]
mov ecx, dword [eax]
test ecx, ecx
je 0x40b578
push 0
push 0x4511b0
lea edx, [esp + 0x64]
push edx
call fcn.004409af
xor eax, eax
pop esi
mov ecx, dword [esp + 0x878]
call fcn.0042b3a1
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.0042b3a1
add esp, 0x87c
ret 4
Function at 0x40b7f0
Capabilities:
Create process on windows
Get common file path
Move file

Disassembly:
sub esp, 0x678
mov eax, dword [0x46420c]
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 [0x46532c]
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 0x4512cc
add edx, 0x224
push edx
lea eax, [esp + 0x20]
push eax
call fcn.00403e70
mov ecx, dword [eax]
push ecx
lea edx, [esp + 0x64]
push edx
call fcn.0042be85
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 0x40b876
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, dword [0x46532c]
mov ecx, dword [eax + 0x18]
call fcn.0040db20
test eax, eax
je 0x40b893
push str.ImeReg64.exe__UnsetupIME_wnwb.ime
lea ecx, [esp + 0x60]
push ecx
jmp 0x40b89d
push str.ImeReg32.exe__UnsetupIME_wnwb.ime
lea edx, [esp + 0x60]
push edx
call fcn.0042be5b
add esp, 8
lea eax, [esp + 0x5c]
push eax
lea ecx, [esp + 0x268]
push 0x4511e0
push ecx
call fcn.0042b87a
mov ecx, dword [0x46532c]
add esp, 0xc
push 0
lea edx, [esp + 0x268]
push edx
call fcn.0040a230
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 0x40b939
lea eax, [esp + 0x264]
push 0x45121c
push eax
call fcn.0042b87a
add esp, 8
push 0
lea ecx, [esp + 0x268]
push ecx
mov ecx, dword [0x46532c]
call fcn.0040a230
xor eax, eax
mov ecx, dword [esp + 0x674]
call fcn.0042b3a1
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 0x451208
push edx
call fcn.0042be5b
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.0042b3a1
add esp, 0x678
ret
Function at 0x40c240
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x44c7a8
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.00448bdd
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x44ff34
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x40c28e
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.00448bdd
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
call fcn.00448bdd
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [esp + 0x28]
push 0x1001
push edx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00444610
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x40c309
mov dword [esp + 0x20], 0xffffffff
call fcn.00444220
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push esi
push edi
call fcn.00443f34
lea ecx, [esp + 8]
call fcn.0044417f
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.00444220
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
Function at 0x40d3c0
Capabilities:
Delete file
Get common file path
Get program files directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x210
mov eax, dword [0x46420c]
push esi
push edi
mov dword [esp + 0x214], eax
mov esi, ecx
xor eax, eax
mov word [esp + 8], 0
mov ecx, 0x81
lea edi, [esp + 0xa]
rep stosd dword es:[edi], eax
push 0
stosw word es:[edi], ax
push 0x26
lea eax, [esp + 0x10]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea ecx, [esp + 8]
push str.Language.ini
push ecx
call fcn.0042be5b
add esp, 8
push 0x8b
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0040c240
test eax, eax
jne 0x40d43c
mov ecx, dword [esp + 0x214]
call fcn.0042b3a1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.0040c630
lea ecx, [esp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x214]
mov eax, 1
call fcn.0042b3a1
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x40d7b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ecx
push esi
mov dword [esp + 4], ecx
call fcn.00448bdd
mov eax, dword [eax + 4]
mov eax, dword [eax + 0x40]
push 0x4519f8
push 0xa1
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x40d855
push ebx
push ebp
push edi
call fcn.00448bdd
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x40]
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_LoadResource]
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebp, eax
call fcn.00448bdd
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push esi
push edx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + esi + 2]
push eax
call fcn.00443df7
mov ebx, eax
lea ecx, [esi + 1]
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
shr esi, 1
push esi
mov ecx, edx
and ecx, 3
push ebp
push ebx
rep stosb byte es:[edi], al
call fcn.0042c4c5
mov ecx, dword [esp + 0x20]
add esp, 0x10
push ebx
push 0x423
call fcn.0044319a
push ebx
call fcn.00443df2
add esp, 4
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret

Function at 0x40da80
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x451a9c
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x40da9a
pop esi
pop ebx
ret
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.GetNativeSystemInfo
push eax
call edi
mov dword [esi + 8], eax
mov eax, dword [esi]
push str.IsWow64Process
push eax
call edi
mov ecx, dword [esi]
push str.Wow64DisableWow64FsRedirection
push ecx
mov dword [esi + 0xc], eax
call edi
mov edx, dword [esi]
push str.Wow64RevertWow64FsRedirection
push edx
mov dword [esi + 0x18], eax
call edi
mov dword [esi + 0x14], eax
mov eax, dword [esi]
push str.GetSystemWow64DirectoryW
push eax
call edi
push str.advapi32.dll
mov dword [esi + 0x10], eax
call ebx
test eax, eax
mov dword [esi + 4], eax
jne 0x40daf2
pop edi
pop esi
pop ebx
ret
push str.Wow64RevertWow64FsRedirection
push eax
call edi
mov ecx, dword [esi + 4]
push str.Wow64RevertWow64FsRedirection
push ecx
mov dword [esi + 0x20], eax
call edi
pop edi
mov dword [esi + 0x1c], eax
pop esi
mov eax, 1
pop ebx
ret