joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401f30
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x445d38
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x260
mov eax, dword [0x45c1e4]
push ebx
mov dword [esp + 0x260], eax
mov ebx, ecx
mov eax, dword [ebx + 8]
test eax, eax
mov dword [esp + 0x26c], 0
je 0x401fa2
mov eax, dword [esp + 0x274]
add eax, 0xfffffff0
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401f98
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x4020d3
mov eax, dword [ebx + 0xc]
test eax, eax
jne 0x401fdc
mov eax, dword [esp + 0x274]
add eax, 0xfffffff0
mov dword [esp + 0x26c], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x401fd5
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
jmp 0x4020d3
push edi
xor eax, eax
mov ecx, 0x11
lea edi, [esp + 0x18]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x278]
mov dword [esp + 8], eax
push edi
mov dword [esp + 0x10], eax
lea ecx, [esp + 0x60]
mov dword [esp + 0x14], eax
push 0x449cf8
push ecx
mov dword [esp + 0x24], 0x44
mov dword [esp + 0x20], eax
call fcn.00428eda
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
lea ecx, [esp + 0x7c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4020ab
mov edx, dword [esp + 8]
push esi
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x10]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [esp + 0xc]
push ecx
call esi
push 0
mov dword [ebx + 8], 1
mov ecx, dword [0x45d16c]
push 0x449ce4
call fcn.0040a140
lea eax, [edi - 0x10]
mov dword [esp + 0x274], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop esi
jg 0x4020a4
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov eax, 1
jmp 0x4020d2
lea eax, [edi - 0x10]
mov dword [esp + 0x270], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4020d0
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
xor eax, eax
pop edi
mov ecx, dword [esp + 0x264]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x260]
pop ebx
call fcn.00428a01
add esp, 0x26c
ret 4
Function at 0x402120
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x40213b
pop edi
pop ebx
ret 0xc
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
jne 0x402151
pop esi
pop edi
xor eax, eax
pop ebx
ret 0xc
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402172
cmp esi, eax
jae 0x402149
dec ecx
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402164
cmp esi, eax
jae 0x402149
mov ax, word [esi]
neg ax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret 0xc
Function at 0x4026a0
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x128
mov eax, dword [0x45c1e4]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x12c], eax
xor eax, eax
mov ecx, 0x47
lea edi, [esp + 8]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
push eax
mov dword [esi + 0x12c], 0
mov dword [esp + 0xc], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [esp + 0xc], 6
jne 0x40271b
mov eax, dword [esp + 0x10]
test eax, eax
mov eax, 1
jne 0x402720
cmp byte [esp + 0x122], al
jne 0x402720
mov dword [esi + 0x12c], eax
mov ecx, dword [esp + 0x12c]
call fcn.00428a01
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 1
mov ecx, dword [esp + 0x12c]
call fcn.00428a01
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x402740
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x428
mov eax, dword [0x45c1e4]
push esi
push edi
mov dword [esp + 0x42c], eax
mov esi, ecx
xor eax, eax
mov word [esp + 0x18], 0
mov ecx, 0x81
lea edi, [esp + 0x1a]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.Software_risingRav
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x402889
lea ecx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x10]
lea edx, [esp + 0x1c]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0x449e90
push ecx
mov dword [esp + 0x28], 1
mov dword [esp + 0x2c], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea eax, [esp + 0x18]
push eax
call fcn.004293bb
add esp, 4
cmp eax, 1
jb 0x402889
lea ecx, [esp + 0x18]
push ecx
call fcn.004293bb
mov ax, word [esp + eax*2 + 0x1a]
add esp, 4
cmp ax, 0x5c
je 0x402818
cmp ax, 0x2f
je 0x402818
lea edx, [esp + 0x18]
push 0x449e8c
push edx
call fcn.004294f0
add esp, 8
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push str._sRsMain.exe
push ecx
call fcn.00428eda
mov edi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
jne 0x402868
lea eax, [esp + 0x18]
push eax
lea ecx, [esp + 0x224]
push str._sRav.exe
push ecx
call fcn.00428eda
add esp, 0xc
lea edx, [esp + 0x18]
push edx
call edi
test eax, eax
je 0x402889
mov dword [esi + 0x130], 1
mov eax, 1
mov ecx, dword [esp + 0x42c]
call fcn.00428a01
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x42c]
xor eax, eax
call fcn.00428a01
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4029d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x445d58
push eax
mov dword fs:[0], esp
sub esp, 0x10
push esi
call fcn.00442b07
movzx ecx, word [esp + 0x28]
mov eax, dword [eax + 4]
mov edx, dword [eax + 0x40]
push 0x449ed0
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
jne 0x402a1e
pop esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
add esp, 0x1c
ret 8
push edi
call fcn.00442b07
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.00442b07
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.0043e53a
mov eax, dword [esp + 0xc]
test eax, eax
mov dword [esp + 0x20], 0
lea ecx, [esp + 8]
jne 0x402a99
mov dword [esp + 0x20], 0xffffffff
call fcn.0043e14a
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.0043de5e
lea ecx, [esp + 8]
call fcn.0043e0a9
lea ecx, [esp + 8]
mov dword [esp + 0x20], 0xffffffff
call fcn.0043e14a
mov ecx, dword [esp + 0x18]
pop edi
mov eax, 1
pop esi
mov dword fs:[0], ecx
add esp, 0x1c
ret 8

Function at 0x403b60
Capabilities:
Get common file path

Disassembly:
sub esp, 0x20c
mov eax, dword [0x45c1e4]
push esi
mov dword [esp + 0x20c], eax
push 0x104
lea eax, [esp + 8]
push eax
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
lea ecx, [esp + 4]
push 0x449e8c
push ecx
call fcn.004294f0
lea edx, [esp + 0xc]
push edx
push 0x449cf8
add esi, 0x10
push esi
call fcn.004037e0
mov ecx, dword [esp + 0x220]
add esp, 0x14
pop esi
call fcn.00428a01
add esp, 0x20c
ret
Function at 0x4040b0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
mov eax, dword [ecx + 0x14]
mov edx, dword [eax - 4]
push esi
lea esi, [ecx + 0x14]
sub eax, 0x10
mov ecx, 1
sub ecx, edx
mov edx, dword [eax + 8]
sub edx, 0x104
or ecx, edx
jge 0x4040dd
push 0x104
mov ecx, esi
call fcn.00402c00
mov eax, dword [esi]
push 0
push 0x2b
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [esi]
test eax, eax
je 0x404103
push eax
call fcn.004293bb
add esp, 4
test eax, eax
jl 0x404195
mov ecx, dword [esi]
cmp eax, dword [ecx - 8]
jg 0x404195
mov dword [ecx - 0xc], eax
mov ecx, dword [esi]
push 0x449e8c
mov word [ecx + eax*2], 0
call fcn.004293bb
add esp, 4
push eax
push 0x449e8c
mov ecx, esi
call fcn.00403330
mov eax, dword [esi]
mov ecx, dword [eax - 4]
sub eax, 0x10
cmp ecx, 1
jle 0x40414b
mov edx, dword [eax + 4]
push edx
mov ecx, esi
call fcn.00402920
mov eax, dword [esi]
push 0x10000000
push str.Everyone
push eax
mov ecx, 0x45d168
call fcn.0040f1d0
push str.Shiqiang_
call fcn.004293bb
add esp, 4
push eax
push str.Shiqiang_
mov ecx, esi
call fcn.00403330
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x404193
mov ecx, dword [esi]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
pop esi
ret
push 0x80070057
call fcn.00402100
int3

Function at 0x4041a0
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x445e6b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x7d8
mov eax, dword [0x45c1e4]
push esi
push edi
mov esi, ecx
mov dword [esp + 0x7dc], eax
push str.wnsoft.ini
lea eax, [esi + 0x14]
push eax
lea ecx, [esp + 0x10]
push ecx
call fcn.00403800
mov edi, dword [esp + 8]
push edi
push 0x104
lea edx, [esp + 0x14]
push edx
push 0x449de4
push str.StartInstallPath
push str.Globals
mov dword [esp + 0x800], 0
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0xc]
push eax
add esi, 0x18
call fcn.004293bb
add esp, 4
push eax
lea ecx, [esp + 0x10]
push ecx
mov ecx, esi
call fcn.004030c0
lea eax, [edi - 0x10]
mov dword [esp + 0x7e8], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
pop edi
pop esi
jg 0x404251
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov ecx, dword [esp + 0x7d8]
mov dword fs:[0], ecx
mov ecx, dword [esp + 0x7d4]
call fcn.00428a01
add esp, 0x7e4
ret
Function at 0x405b10
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x446220
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.0043dd21
mov ebx, eax
push edi
push ebx
call fcn.0042951a
add esp, 0xc
cmp esi, ebp
jl 0x405c3b
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 0x405b83
test ax, ax
jne 0x405c25
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.004044b0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x4c]
add esi, 0x48
test eax, eax
lea edx, [edi + ebp]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edx
jne 0x405bb6
xor edx, edx
jmp 0x405bbe
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x405bf0
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x405bf0
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.00403de0
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x405c02
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00404a50
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 0x405c25
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 0x405b71
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 0x405c61
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 0x405c80
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x446220
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.0043dd21
mov ebx, eax
push edi
push ebx
call fcn.0042951a
add esp, 0xc
cmp esi, ebp
jl 0x405dab
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 0x405cf3
test ax, ax
jne 0x405d95
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.004044b0
mov esi, dword [esp + 0x1c]
mov eax, dword [esi + 0x70]
add esi, 0x6c
test eax, eax
lea edx, [edi + ebp]
mov byte [esp + 0x2c], 1
mov dword [esp + 0x14], edx
jne 0x405d26
xor edx, edx
jmp 0x405d2e
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x405d60
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x405d60
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.00403de0
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x405d72
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00404a50
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 0x405d95
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 0x405ce1
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 0x405dd1
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 0x405df0
Capabilities:
Check for peb beingdebugged flag

Disassembly:
push 0xffffffffffffffff
push 0x446220
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.0043dd21
mov ebx, eax
push edi
push ebx
call fcn.0042951a
add esp, 0xc
cmp esi, ebp
jl 0x405f1b
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 0x405e63
test ax, ax
jne 0x405f05
mov ecx, dword [esp + 0x14]
add ecx, ebx
push ecx
lea ecx, [esp + 0x14]
mov word [edi], 0
call fcn.004044b0
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 0x405e96
xor edx, edx
jmp 0x405e9e
mov edx, dword [esi + 8]
sub edx, eax
sar edx, 2
test eax, eax
je 0x405ed0
mov ecx, dword [esi + 0xc]
sub ecx, eax
sar ecx, 2
cmp edx, ecx
jae 0x405ed0
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.00403de0
add ebp, 4
mov dword [esi + 8], ebp
mov ebp, dword [esp + 0x20]
jmp 0x405ee2
mov eax, dword [esi + 8]
lea edx, [esp + 0x10]
push edx
push 1
push eax
mov ecx, esi
call fcn.00404a50
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 0x405f05
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 0x405e51
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 0x405f41
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 0x4077a0
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 [0x45c1e4]
push ebx
push esi
push edi
push 0x104
mov dword [esp + 0x538], eax
mov ebx, ecx
call fcn.0043dd21
push 0x208
mov dword [ebx], eax
call fcn.0043dd21
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.00429767
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.004293bb
add esp, 4
push eax
lea ecx, [esp + 0x124]
lea esi, [ebx + 0x1c]
push ecx
mov ecx, esi
call fcn.004030c0
mov ecx, ebx
call fcn.00403b60
mov ecx, ebx
call fcn.004040b0
mov ecx, ebx
call fcn.004041a0
mov ecx, ebx
call fcn.00403bc0
lea edx, [esp + 0x120]
push edx
lea eax, [esp + 0x32c]
push 0x44a7e4
push eax
call fcn.00428eda
lea ecx, [esp + 0x334]
push str.Setup.ini
push ecx
call fcn.004294f0
add esp, 0x14
push 0x8e
lea edx, [esp + 0x32c]
push edx
mov ecx, ebx
call fcn.004029d0
test eax, eax
jne 0x4078f6
mov ecx, dword [esp + 0x534]
call fcn.00428a01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x328]
push eax
mov ecx, ebx
call fcn.00405f60
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 0x449e8c
push eax
call fcn.0042928d
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 0x407956
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
call dword [edx + 4]
mov al, byte [esp + 0x13]
test al, al
je 0x407978
push 0x449e8c
call fcn.004293bb
add esp, 4
push eax
push 0x449e8c
mov ecx, esi
call fcn.00403330
mov ecx, ebx
call fcn.004026a0
mov ecx, ebx
call fcn.00402190
mov ecx, ebx
call fcn.00402740
mov ecx, dword [esp + 0x534]
mov eax, 1
call fcn.00428a01
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x407ec0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4462a8
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.004033d0
mov esi, dword [esp + 0x34]
add esi, 0xfffffff0
push esi
call fcn.00402c50
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 0x407f52
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 0x408e80
Capabilities:
Query or enumerate registry value

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

Disassembly:
sub esp, 0x828
mov eax, dword [0x45c1e4]
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 0x449cf8
push edx
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x1c], eax
call fcn.00428eda
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 0x408f7f
mov ecx, dword [esp + 0x824]
call fcn.00428a01
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.00428a01
add esp, 0x828
ret 4

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

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
push edi
call fcn.004293bb
mov ebp, eax
lea eax, [ebp + ebp + 2]
push eax
call fcn.0043dd21
mov esi, eax
push edi
push esi
call fcn.0042951a
add esp, 0x10
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x40910d
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x4090ed
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x4090e7
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x409107
mov word [esi + edi*2], 0x5c
inc edi
cmp edi, ebp
jle 0x4090c7
pop ebx
push esi
call fcn.0043dd1c
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.0043dd1c
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret 4