joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4336b0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4a18ab
mov eax, dword fs:[0]
push eax
sub esp, 0x12c
mov eax, dword [0x4ca00c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x138], eax
call fcn.004332f0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x134]
mov dword [ebp - 0x12c], 0
push eax
push 0
push 0
lea eax, [ebp - 0x12c]
mov dword [ebp - 0x134], 0
push eax
push 0
push 0
push 0
push dword [edi + 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegQueryInfoKeyW]
test eax, eax
jne 0x43382f
xor esi, esi
mov dword [ebp - 0x130], 0x100
cmp dword [ebp - 0x12c], esi
jbe 0x43382f
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x130]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
push dword [edi + 0x1c]
call ebx
test eax, eax
jne 0x433818
mov dword [ebp - 0x114], 0xf
mov dword [ebp - 0x118], eax
mov byte [ebp - 0x128], al
cmp byte [ebp - 0x110], al
je 0x4337a9
lea eax, [ebp - 0x110]
lea edx, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4337a0
sub eax, edx
push eax
lea eax, [ebp - 0x110]
push eax
lea ecx, [ebp - 0x128]
call fcn.00420210
mov ecx, dword [ebp - 0x138]
lea eax, [ebp - 0x128]
push eax
mov dword [ebp - 4], 0
call fcn.00433b50
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x114]
cmp eax, 0x10
jb 0x433818
mov ecx, dword [ebp - 0x128]
inc eax
cmp eax, 0x1000
jb 0x43380f
test cl, 0x1f
jne 0x43384d
mov eax, dword [ecx - 4]
cmp eax, ecx
jae 0x43384d
sub ecx, eax
cmp ecx, 4
jb 0x43384d
cmp ecx, 0x23
ja 0x43384d
mov ecx, eax
push ecx
call fcn.004388ea
add esp, 4
inc esi
mov dword [ebp - 0x130], 0x100
cmp esi, dword [ebp - 0x12c]
jb 0x433751
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004388ef
mov esp, ebp
pop ebp
ret 4
call fcn.00442e41
int3

Function at 0x435870
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x4ca00c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0xc], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0xc]
mov word [ebp - 8], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 0x10], eax
test eax, eax
je 0x4358d9
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
push 0
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 0x14]
neg eax
sbb eax, eax
and dword [ebp - 0x10], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004388ef
mov esp, ebp
pop ebp
ret

Function at 0x46a1af
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00469db4

Function at 0x46e252
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046da2c
Function at 0x46e25d
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046dc67

Function at 0x46ee8a
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0046ec11
Function at 0x401660
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ecx
mov ecx, dword [esp + 0x14]
push ebp
mov ebp, dword [ecx]
mov ecx, dword [esp + 0x10]
xor eax, eax
and ebp, 7
cmp ecx, 5
jae 0x401679
pop ebp
pop ecx
ret
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x1c]
add esi, 5
lea edx, [edx + ecx - 4]
push edi
mov dword [esp + 0x20], esi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esp + 0x10], edx
jmp 0x4016a0
mov ecx, dword [esp + 0x18]
lea edi, [eax + ecx]
cmp edi, edx
jae 0x4016bf
jmp 0x4016b0
mov al, byte [edi]
and al, 0xfe
cmp al, 0xe8
je 0x4016bf
add edi, 1
cmp edi, edx
jb 0x4016b0
mov eax, edi
sub eax, ecx
mov ecx, eax
sub ecx, dword [esp + 0x1c]
cmp edi, edx
jae 0x4017d5
cmp ecx, 3
jbe 0x4016f5
xor ebp, ebp
mov cl, byte [edi + 4]
test cl, cl
mov dword [esp + 0x1c], eax
je 0x401733
cmp cl, 0xff
je 0x401733
and ebp, 3
add ebp, ebp
or ebp, 1
add eax, 1
jmp 0x4016a0
add ecx, 0xffffffff
shl ebp, cl
and ebp, 7
je 0x4016d8
movzx ecx, byte [ebp + 0x457374]
mov ebx, edi
sub ebx, ecx
cmp byte [ebp + 0x45736c], 0
mov cl, byte [ebx + 4]
je 0x40171f
test cl, cl
je 0x40171f
cmp cl, 0xff
jne 0x4016d8
and ebp, 3
add ebp, ebp
mov dword [esp + 0x1c], eax
or ebp, 1
add eax, 1
jmp 0x4016a0
xor edx, edx
mov dh, cl
movzx ecx, byte [edi + 2]
mov dl, byte [edi + 3]
shl edx, 8
or edx, ecx
movzx ecx, byte [edi + 1]
shl edx, 8
or edx, ecx
lea esp, [esp]
cmp dword [esp + 0x28], 0
je 0x40175e
lea ebx, [edx + eax]
add ebx, esi
jmp 0x401764
sub edx, eax
sub edx, esi
mov ebx, edx
test ebp, ebp
je 0x4017a6
movzx esi, byte [ebp + 0x457374]
add esi, esi
add esi, esi
add esi, esi
mov ecx, 0x18
sub ecx, esi
mov edx, ebx
shr edx, cl
test dl, dl
je 0x401789
cmp dl, 0xff
jne 0x4017a2
mov ecx, 0x20
sub ecx, esi
mov esi, dword [esp + 0x20]
mov edx, 1
shl edx, cl
sub edx, 1
xor edx, ebx
jmp 0x401750
mov esi, dword [esp + 0x20]
mov edx, ebx
shr edx, 0x18
and dl, 1
sub dl, 1
not dl
mov byte [edi + 4], dl
mov edx, ebx
shr edx, 8
mov ecx, ebx
shr ecx, 0x10
mov byte [edi + 2], dl
mov edx, dword [esp + 0x10]
mov byte [edi + 3], cl
mov byte [edi + 1], bl
add eax, 5
jmp 0x4016a0
cmp ecx, 3
pop edi
pop esi
pop ebx
jbe 0x4017e8
mov ecx, dword [esp + 0x18]
xor ebp, ebp
mov dword [ecx], ebp
pop ebp
pop ecx
ret
add ecx, 0xffffffff
shl ebp, cl
mov ecx, dword [esp + 0x18]
and ebp, 7
mov dword [ecx], ebp
pop ebp
pop ecx
ret
Function at 0x406fe0
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x455858
mov eax, dword fs:[0]
push eax
sub esp, 0x34
push esi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
lea ecx, [esp + 0x18]
call fcn.0040a3b0
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0
call fcn.0040a380
test eax, eax
je 0x4070ae
lea eax, [esp + 8]
push eax
push 0xf013f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407130
mov edx, dword [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
push eax
push 0xf013f
push eax
push eax
push eax
push 0x457410
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x40707d
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407130
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x10]
push 0x104
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x10]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 8]
jmp 0x40712d
lea eax, [esp + 0xc]
push eax
push 0xf003f
push 0
push str.SoftWare
push reloc.WS2_32.dll_bind
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x407130
mov edx, dword [esp + 0xc]
push eax
lea ecx, [esp + 0x18]
push ecx
push eax
push 0xf003f
push eax
push eax
push eax
push 0x457410
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x4070fe
mov eax, dword [esp + 0xc]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x407130
mov ecx, dword [esp + 0x50]
mov edx, dword [esp + 0x4c]
mov eax, dword [esp + 0x14]
push 0x104
push ecx
push 1
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov ecx, dword [esp + 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ecx
call esi
mov edx, dword [esp + 0xc]
push edx
call esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x44], 0xffffffff
call fcn.0040a2c0
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x40
ret 8
Function at 0x4090c0
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
sub esp, 0x874
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x870], eax
push ebx
push esi
mov esi, dword [esp + 0x880]
push edi
push esi
lea eax, [esp + 0x678]
push str._s.
push eax
mov dword [esp + 0x1c], ecx
call fcn.00413afd
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x678]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
xor edi, edi
cmp ebx, 0xffffffff
mov dword [esp + 0xc], edi
je 0x409228
push ebp
mov ebp, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
je 0x409227
cmp word [esp + 0x44], 0x2e
je 0x409123
mov ax, word [esp + 0x46]
cmp ax, di
je 0x409123
cmp ax, 0x2e
jne 0x409156
cmp word [esp + 0x48], di
je 0x409123
test byte [esp + 0x18], 0x10
je 0x409123
push 0x206
lea ecx, [esp + 0x26e]
push edi
push ecx
mov word [esp + 0x274], di
call fcn.00413010
push 0x206
lea edx, [esp + 0x482]
push edi
push edx
mov word [esp + 0x488], di
call fcn.00413010
add esp, 0x18
xor eax, eax
jmp 0x4091a0
movzx ecx, word [eax + str.ShanHuInfo.ini]
mov word [esp + eax + 0x470], cx
add eax, 2
cmp cx, di
jne 0x4091a0
lea eax, [esp + 0x470]
push eax
lea ecx, [esp + 0x48]
push ecx
push esi
lea edx, [esp + 0x274]
push 0x4574f0
push edx
call fcn.00413afd
add esp, 0x14
lea eax, [esp + 0x268]
push eax
call ebp
test eax, eax
je 0x409123
lea eax, [esp + 0x268]
mov dword [esp + 0x10], 1
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409200
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x26c]
push ecx
mov ecx, dword [esp + 0x1c]
add ecx, 0xb4
call fcn.00408350
pop ebp
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x87c]
mov eax, dword [esp + 0xc]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00412ff5
add esp, 0x874
ret 4
Function at 0x409440
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x4559cb
mov eax, dword fs:[0]
push eax
sub esp, 0x228
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x238]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
push 0xffffffffffffffff
push edi
lea eax, [esi + 0x28]
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x34], 7
mov dword [esp + 0x30], edi
mov word [esp + 0x20], di
call fcn.00408050
mov eax, dword [esp + 0x14]
mov ebx, 8
cmp dword [esp + 0x28], ebx
mov dword [esp + 0x240], edi
jae 0x4094b9
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.004090c0
test eax, eax
jne 0x4094d9
cmp dword [esp + 0x28], ebx
jb 0x409560
mov ecx, dword [esp + 0x14]
push ecx
jmp 0x409558
push 0x206
lea edx, [esp + 0x32]
push edi
push edx
mov word [esp + 0x38], di
call fcn.00413010
add esp, 0xc
cmp dword [esi + 0xcc], ebx
jb 0x409501
mov eax, dword [esi + 0xb8]
jmp 0x409507
lea eax, [esi + 0xb8]
push eax
push 0x104
lea eax, [esp + 0x34]
push eax
push 0x4574ec
push str.Spreader
push str.AppInfo
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
lea eax, [esp + 0x2c]
lea edx, [eax + 2]
mov edi, edi
mov cx, word [eax]
add eax, 2
cmp cx, di
jne 0x409530
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x30]
push ecx
lea ecx, [esi + 0x7c]
call fcn.00408350
cmp dword [esp + 0x28], ebx
jb 0x409560
mov edx, dword [esp + 0x14]
push edx
call fcn.004134ee
add esp, 4
mov ecx, dword [esp + 0x238]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x224]
xor ecx, esp
call fcn.00412ff5
add esp, 0x234
ret
Function at 0x409590
Capabilities:
Read .ini file

Disassembly:
push 0xffffffffffffffff
push 0x455a0b
mov eax, dword fs:[0]
push eax
sub esp, 0x430
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x42c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x444]
mov dword fs:[0], eax
mov esi, ecx
xor ebx, ebx
push 0xffffffffffffffff
push ebx
lea eax, [esi + 0x44]
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x38], 7
mov dword [esp + 0x34], ebx
mov word [esp + 0x24], bx
call fcn.00408050
mov eax, dword [esp + 0x18]
mov ebp, 8
cmp dword [esp + 0x2c], ebp
mov dword [esp + 0x44c], ebx
jae 0x40960a
lea eax, [esp + 0x18]
push eax
mov ecx, esi
call fcn.004090c0
test eax, eax
jne 0x40962a
cmp dword [esp + 0x2c], ebp
jb 0x409736
mov ecx, dword [esp + 0x18]
push ecx
jmp 0x40972e
push 0x206
lea edx, [esp + 0x36]
push ebx
push edx
mov word [esp + 0x3c], bx
call fcn.00413010
push 0x206
lea eax, [esp + 0x24a]
push ebx
push eax
mov word [esp + 0x250], bx
call fcn.00413010
add esp, 0x18
cmp dword [esi + 0xcc], ebp
jb 0x40966d
mov eax, dword [esi + 0xb8]
jmp 0x409673
lea eax, [esi + 0xb8]
mov edi, dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push eax
push 0x104
lea ecx, [esp + 0x38]
push ecx
push 0x4574ec
push 0x457574
push str.AppUpdate
call edi
cmp dword [esi + 0xcc], ebp
jb 0x4096a5
mov eax, dword [esi + 0xb8]
jmp 0x4096ab
lea eax, [esi + 0xb8]
push eax
push 0x104
lea edx, [esp + 0x240]
push edx
push 0x4574ec
push str.MinVer
push str.AppUpdate
call edi
lea eax, [esp + 0x30]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4096d1
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x34]
push eax
lea ecx, [esi + 0xd0]
call fcn.00408350
lea eax, [esp + 0x238]
lea edx, [eax + 2]
jmp 0x409700
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x409700
sub eax, edx
sar eax, 1
push eax
lea ecx, [esp + 0x23c]
push ecx
lea ecx, [esi + 0xec]
call fcn.00408350
cmp dword [esp + 0x2c], ebp
jb 0x409736
mov edx, dword [esp + 0x18]
push edx
call fcn.004134ee
add esp, 4
mov ecx, dword [esp + 0x444]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x42c]
xor ecx, esp
call fcn.00412ff5
add esp, 0x43c
ret
Function at 0x40a2e0
Capabilities:
Link many functions at runtime

Disassembly:
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
push esi
push 0x4576f4
mov esi, ecx
call ebx
test eax, eax
mov dword [esi], eax
jne 0x40a2fa
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 0x40a352
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
Function at 0x40acb0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
push esi
push edi
mov edi, dword [esp + 0x10]
mov eax, edi
lea edx, [eax + 2]
lea esp, [esp]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40acc0
sub eax, edx
sar eax, 1
mov ebp, eax
xor ecx, ecx
lea eax, [ebp + 1]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00412014
mov esi, eax
mov edx, esi
add esp, 4
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
add eax, 2
test cx, cx
jne 0x40acf5
xor edi, edi
test ebp, ebp
mov byte [esp + 0x10], 1
jl 0x40ad5c
push ebx
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
cmp word [esi + edi*2], 0x5c
jne 0x40ad3c
push esi
mov word [esi + edi*2], 0
call ebx
test eax, eax
jne 0x40ad36
push eax
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ad56
mov word [esi + edi*2], 0x5c
add edi, 1
cmp edi, ebp
jle 0x40ad16
pop ebx
push esi
call fcn.00413b93
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret
mov byte [esp + 0x14], 0
pop ebx
push esi
call fcn.00413b93
movzx eax, byte [esp + 0x14]
add esp, 4
pop edi
pop esi
pop ebp
ret

Function at 0x40ae30
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x828
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x824], eax
push esi
mov esi, dword [esp + 0x830]
push 0x44
lea eax, [esp + 0x18]
push 0
push eax
call fcn.00413010
xor eax, eax
push esi
lea ecx, [esp + 0x68]
push 0x457860
push ecx
mov dword [esp + 0x2c], 0x44
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
call fcn.00413afd
add esp, 0x18
lea edx, [esp + 4]
push edx
lea eax, [esp + 0x18]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
lea ecx, [esp + 0x78]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x40aec2
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
mov ecx, dword [esp + 0x828]
pop esi
xor ecx, esp
call fcn.00412ff5
add esp, 0x828
ret
Function at 0x40b0b0
Capabilities:
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 0x20c
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x208], eax
push edi
mov edi, dword [esp + 0x214]
push str..del
push edi
call fcn.00413266
add esp, 8
test eax, eax
je 0x40b0ff
push 5
push 0
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
mov ecx, dword [esp + 0x208]
xor ecx, esp
call fcn.00412ff5
add esp, 0x20c
ret
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push esi
xor esi, esi
lea esp, [esp]
push 0x206
lea eax, [esp + 0x12]
push 0
push eax
mov word [esp + 0x18], 0
call fcn.00413010
add esp, 0xc
test esi, esi
jne 0x40b144
push edi
lea ecx, [esp + 0x10]
push str._s.del
push ecx
call fcn.00413afd
add esp, 0xc
jmp 0x40b158
push esi
push edi
lea edx, [esp + 0x14]
push str._s.del_d
push edx
call fcn.00413afd
add esp, 0x10
lea eax, [esp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b17c
lea ecx, [esp + 0xc]
push ecx
call ebx
test eax, eax
jne 0x40b17c
cmp esi, 0xa
jge 0x40b199
add esi, 1
jmp 0x40b110
lea edx, [esp + 0xc]
push edx
push edi
call fcn.0041414c
add esp, 8
push 5
push 0
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov ecx, dword [esp + 0x214]
pop esi
pop ebx
pop edi
xor ecx, esp
call fcn.00412ff5
add esp, 0x20c
ret

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

Disassembly:
sub esp, 0x61c
mov eax, dword [0x464380]
xor eax, esp
mov dword [esp + 0x618], eax
push ebx
mov ebx, dword [esp + 0x624]
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b2f4
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push ebx
call ebp
test eax, eax
jne 0x40b2f3
push esi
push edi
xor edi, edi
push 0x206
lea eax, [esp + 0x21e]
push edi
push eax
mov word [esp + 0x224], di
call fcn.00413010
push 0x206
lea ecx, [esp + 0x432]
push edi
push ecx
mov word [esp + 0x438], di
call fcn.00413010
add esp, 0x18
lea edx, [esp + 0x420]
push edx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [esp + 0x218]
push eax
push ebx
call fcn.0040aee0
add esp, 8
xor esi, esi
push 0x206
lea ecx, [esp + 0x16]
push edi
push ecx
mov word [esp + 0x1c], di
call fcn.00413010
add esp, 0xc
cmp esi, edi
lea edx, [esp + 0x218]
lea eax, [esp + 0x420]
lea ecx, [esp + 0x10]
jne 0x40b2a0
push edx
push eax
push str._s_s.del
push ecx
call fcn.00413afd
add esp, 0x10
jmp 0x40b2b1
push esi
push edx
push eax
push str._s_s.del_d
push ecx
call fcn.00413afd
add esp, 0x14
lea edx, [esp + 0x10]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40b2d5
lea eax, [esp + 0x10]
push eax
call ebp
cmp eax, edi
jne 0x40b2d5
cmp esi, 0xa
jge 0x40b2f1
add esi, 1
jmp 0x40b260
lea ecx, [esp + 0x10]
push ecx
push ebx
call fcn.0041414c
add esp, 8
push 5
push edi
lea edx, [esp + 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
pop ebp
mov ecx, dword [esp + 0x61c]
pop ebx
xor ecx, esp
call fcn.00412ff5
add esp, 0x61c
ret
Function at 0x40b390
Capabilities:
Create process on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
mov eax, esi
lea edx, [eax + 2]
jmp 0x40b3a0
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40b3a0
sub eax, edx
sar eax, 1
je 0x40b3d3
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
ja 0x40b3d3
push esi
call fcn.0040ae30
add esp, 4
pop esi
pop ecx
ret

Function at 0x40b7c0
Capabilities:
Check mutex on windows

Disassembly:
mov eax, dword [esp + 4]
push esi
push eax
push 1
push 0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 0xb7
setne cl
mov eax, esi
mov dword [esi + 4], ecx
pop esi
ret 4

Function at 0x40c610
Capabilities:
Create thread

Disassembly:
push 0xffffffffffffffff
push 0x455d1b
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push esi
push edi
mov eax, dword [0x464380]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov esi, ecx
push 0x54
call fcn.00413a49
add esp, 4
mov dword [esp + 0x10], eax
test eax, eax
mov dword [esp + 0x1c], 0
je 0x40c659
mov ecx, eax
call fcn.0040c240
jmp 0x40c65b
xor eax, eax
mov edi, dword [esp + 0x24]
mov ecx, edi
mov dword [esp + 0x1c], 0xffffffff
mov dword [esi + 0x78], eax
lea ebp, [ecx + 1]
nop
mov dl, byte [ecx]
add ecx, 1
test dl, dl
jne 0x40c670
sub ecx, ebp
push ecx
push edi
lea ecx, [eax + 8]
call fcn.00407f80
mov eax, dword [esi + 0x78]
mov dword [eax + 4], 0
mov ecx, dword [esi + 0x78]
push 9
push str.GET_test1
add ecx, 0x34
call fcn.00407f80
lea ecx, [esi + 0x14]
push ecx
push 0
push esi
push 0x40c5f0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
mov dword [esi + 0x18], eax
je 0x40c6cc
cmp eax, 0xffffffff
je 0x40c6cc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0x10
ret 4

Function at 0x412ff5
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x464380]
jne 0x412fff
repz ret
jmp fcn.0041b06f