joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414c30
Capabilities:
Check if file exists
Get common file path
Get program files directory
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d8f2d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
mov eax, dword [0x5133d4]
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 esi, dword [ebp + 8]
lea eax, [ebp - 0x218]
push 0x208
mov dword [ebp - 4], 0
push 0
push eax
mov dword [ebp - 0x23c], esi
mov dword [ebp - 0x234], 0
call fcn.00477c10
mov dword [esi + 0x10], 0
lea ecx, [edi + 0x758]
mov dword [esi + 0x14], 0
add esp, 0xc
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x414cbc
mov eax, dword [esi]
jmp 0x414cbe
mov eax, esi
xor edx, edx
push 0xffffffffffffffff
push edx
push ecx
mov ecx, esi
mov word [eax], dx
call fcn.00403270
xor eax, eax
mov dword [ebp - 0x234], 1
mov byte [edi + 0x7b9], 1
mov dword [ebp - 0x21c], 7
mov dword [ebp - 0x220], 0
mov word [ebp - 0x230], ax
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 1
call fcn.0041cd30
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
call fcn.0041cc20
test eax, eax
mov dword [ebp - 0x238], eax
mov byte [edi + 0x7ba], 1
setne al
mov byte [edi + 0x7b9], al
call fcn.0041cba0
mov ebx, eax
test ebx, ebx
setne al
mov byte [edi + 0x7ba], al
cmp dword [edi + 0x768], 0
je 0x414d7a
cmp dword [edi + 0x754], 8
lea eax, [edi + 0x740]
jb 0x414d6b
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x414e3f
cmp dword [ebp - 0x238], 0
je 0x414dc2
test ebx, ebx
je 0x414dc2
push 0x104
lea eax, [ebp - 0x218]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
lea eax, [ebp - 0x218]
push 0
je 0x414dca
push str.hudun
push eax
push 0
push 0x104
push eax
call fcn.004b3ecb
add esp, 0x18
jmp 0x414de9
push 0
lea eax, [ebp - 0x218]
mov edi, dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0x2a
push eax
push 0
call edi
test eax, eax
jne 0x414de9
push eax
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call edi
push 0x4fe290
push str.xunjieaixiezuo
lea eax, [ebp - 0x218]
push eax
push 0
push 0x104
push eax
call fcn.004b3ecb
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x414e18
xor ecx, ecx
jmp 0x414e30
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414e21
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
mov ecx, esi
push eax
call fcn.00403170
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x414e5d
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004017c0
mov eax, esi
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.0048fcf2
mov esp, ebp
pop ebp
ret 4
Function at 0x414fe0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5133d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x234]
push 0x208
push 0
push eax
mov esi, ecx
call fcn.00477c10
add esi, 0x758
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41501e
mov esi, dword [esi]
push 0x10
push edi
push 0x10
push esi
lea eax, [ebp - 0x234]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRelativePathToW]
mov ecx, 0x4fe8c8
lea eax, [ebp - 0x234]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x415066
test dx, dx
je 0x415062
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x415066
add eax, 4
add ecx, 4
test dx, dx
jne 0x415040
xor eax, eax
jmp 0x41506b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41511f
push eax
push str.set.ini
push edi
push eax
lea esi, [eax + 1]
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.004b3ecb
add esp, 0x18
lea eax, [ebp - 0x234]
push eax
push 0x14
lea eax, [ebp - 0x2c]
push eax
push str.true
push str.IsOverride
push str.Uninstall
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
mov ecx, str.false
lea eax, [ebp - 0x2c]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x4150ff
test dx, dx
je 0x4150e2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x4150ff
add eax, 4
add ecx, 4
test dx, dx
jne 0x4150c0
xor eax, eax
xor ecx, ecx
test eax, eax
pop edi
cmovne esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret 4
sbb eax, eax
xor ecx, ecx
or eax, 1
test eax, eax
pop edi
cmovne esi, ecx
mov eax, esi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret 4

Function at 0x4152c0
Capabilities:
Get common file path
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5133d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x210], 0
call fcn.00477c10
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
jne 0x415324
push eax
push 0x2e
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x4fffbc
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x104
push eax
call fcn.004b3ecb
push 0
push str.xunjieaixiezuo
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x104
push eax
call fcn.004b3ecb
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
add esp, 0x30
mov word [esi], ax
cmp word [ebp - 0x20c], ax
jne 0x41537d
xor ecx, ecx
jmp 0x415395
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415386
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.00403170
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret 4
Function at 0x4153c0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9021
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x5133d4]
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 ecx, dword [ecx + 0x794]
lea eax, [ebp - 0x200]
mov ebx, dword [ebp + 8]
push eax
call fcn.0040d080
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x415414
mov edx, dword [edx]
xor eax, eax
mov dword [ebp - 0x1ac], 7
mov dword [ebp - 0x1b0], 0
mov word [ebp - 0x1c0], ax
cmp word [edx], ax
jne 0x41543a
xor ecx, ecx
jmp 0x41544f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415440
sub ecx, esi
sar ecx, 1
push ecx
push edx
lea ecx, [ebp - 0x1c0]
call fcn.00403170
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x1ec]
cmp eax, 8
jb 0x41547e
inc eax
lea ecx, [ebp - 0x200]
push eax
push dword [ebp - 0x200]
call fcn.004017c0
xor eax, eax
mov dword [ebp - 0x1ec], 7
mov dword [ebp - 0x1f0], 0
mov word [ebp - 0x200], ax
call fcn.00419c90
cmp dword [ebp - 0x1ac], 8
lea esi, [ebp - 0x1c0]
mov dword [ebp - 0x1e4], eax
cmovae esi, dword [ebp - 0x1c0]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x4154d2
push esi
call edi
test eax, eax
je 0x415501
push 0
push 0x80
push 2
push 0
push 3
push 0xc0000000
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x415501
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov edi, 1
jmp 0x415503
xor edi, edi
xorps xmm0, xmm0
mov dword [ebp - method.Utils::HardDiskManager.virtual_0], vtable.Utils::HardDiskManager.0
movlpd qword [ebp - 0x1d8], xmm0
movlpd qword [ebp - 0x1d0], xmm0
movlpd qword [ebp - 0x1c8], xmm0
push 0
push 0
push 0
push 0
push 0
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x18]
cmp dword [ebp - 0x1ac], 8
lea eax, [ebp - 0x1c0]
push 0
cmovae eax, dword [ebp - 0x1c0]
push 3
push ecx
push eax
call fcn.004b3cfa
add esp, 0x24
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1e0]
push eax
call fcn.00420b00
cmp dword [ebx + 0x24], 8
lea esi, [ebx + 0x10]
jb 0x415575
mov esi, dword [esi]
push dword [ebp - 0x1e4]
mov edx, dword [ebp - 0x1d4]
mov ecx, 0x500058
test edi, edi
mov eax, 0x500050
cmove eax, ecx
mov ecx, dword [ebp - 0x1d8]
push eax
call fcn.004908a0
xor edx, edx
movsd qword [ebp - 0x1e8], xmm0
mov ecx, 0x40000000
call fcn.004908a0
movsd xmm1, qword [ebp - 0x1e8]
sub esp, 8
divsd xmm1, xmm0
cvttsd2si eax, qword [ebx + 8]
movsd qword [esp], xmm1
push esi
push eax
push str.1.code_ld
lea eax, [ebp - 0x1a8]
push 0xc8
push eax
call fcn.0040ac60
mov eax, dword [ebp - 0x1ac]
add esp, 0x24
mov dword [ebp - method.Utils::HardDiskManager.virtual_0], vtable.Utils::HardDiskManager.0
cmp eax, 8
jb 0x41560c
inc eax
lea ecx, [ebp - 0x1c0]
push eax
push dword [ebp - 0x1c0]
call fcn.004017c0
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.0048fcf2
mov esp, ebp
pop ebp
ret 4
Function at 0x415820
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9088
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5133d4]
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
cmp dword [edi + 0x73c], 8
lea esi, [edi + 0x728]
jb 0x415860
mov ebx, dword [esi]
jmp 0x415862
mov ebx, esi
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareHuDunSoftSwift_AI_Writing
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x4158b6
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x415890
sub ecx, edx
sar ecx, 1
lea eax, [ecx + ecx]
push eax
push ebx
push 1
push 0
push str.InstallPath
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [edi + 0x720], 0
jne 0x415927
xor eax, eax
mov dword [ebp - 0x18], 7
push 0xffffffffffffffff
push eax
push esi
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
mov word [ebp - 0x2c], ax
call fcn.00403270
push 0xa
push str.uninst.ep
lea ecx, [ebp - 0x2c]
mov dword [ebp - 4], 0
call fcn.00403390
lea ecx, [edi + 0x710]
cmp ecx, eax
je 0x415912
push 0xffffffffffffffff
push 0
push eax
call fcn.00403270
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x415927
inc eax
lea ecx, [ebp - 0x2c]
push eax
push dword [ebp - 0x2c]
call fcn.004017c0
cmp dword [edi + 0x724], 8
lea esi, [edi + 0x710]
jb 0x41593a
mov eax, dword [esi]
jmp 0x41593c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41595e
cmp dword [esi + 0x14], 8
jb 0x41594f
mov esi, dword [esi]
push esi
push ecx
push str.UnInstallEp
call fcn.00420c20
add esp, 0xc
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.0048fcf2
mov esp, ebp
pop ebp
ret

Function at 0x415cb0
Capabilities:
Check if file exists
Create process on windows

Disassembly:
push esi
push edi
mov edi, ecx
mov eax, dword [edi + 0x780]
test eax, eax
je 0x415ce8
cmp eax, 5
jbe 0x415ce8
cmp dword [edi + 0x784], 8
lea eax, [edi + 0x770]
jb 0x415cd4
mov eax, dword [eax]
push 3
push 0
push 0
push eax
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp dword [edi + 0x70c], 8
lea esi, [edi + 0x6f8]
jb 0x415cf9
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x415d26
mov ecx, edi
call fcn.00462680
mov ecx, eax
call fcn.00419880
push 1
push 0
push 0
push esi
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop edi
pop esi
ret
Function at 0x419920
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d953b
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5133d4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
lea eax, [ebp - 0x218]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
xor eax, eax
mov dword [ebp - 0x234], 7
mov dword [ebp - 0x238], 0
mov word [ebp - 0x248], ax
cmp word [ebp - 0x218], ax
jne 0x41998a
xor ecx, ecx
jmp 0x4199a2
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419993
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403170
push 0x1e
push 0x50053c
lea ecx, [ebp - 0x248]
mov dword [ebp - 4], 0
call fcn.00403390
xor ecx, ecx
mov dword [ebp - 0x21c], 7
push 0xffffffffffffffff
push ecx
mov word [ebp - 0x230], cx
lea ecx, [ebp - 0x230]
push eax
mov dword [ebp - 0x220], 0
call fcn.00403270
mov eax, dword [ebp - 0x234]
cmp eax, 8
jb 0x419a18
inc eax
lea ecx, [ebp - 0x248]
push eax
push dword [ebp - 0x248]
call fcn.004017c0
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419a5d
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
push 0
cmovae eax, dword [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x419a5d
lea esi, [eax + 1]
jmp 0x419a82
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
push esi
call fcn.004b6d7f
add esp, 0xc
xor esi, esi
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x419aa0
inc ecx
push ecx
push dword [ebp - 0x230]
lea ecx, [ebp - 0x230]
call fcn.004017c0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret
Function at 0x419b50
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5133d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, ecx
mov edx, ebx
lea ecx, [edx + 2]
nop dword [eax + eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x419b70
sub edx, ecx
sar edx, 1
cmp edx, 0x104
jbe 0x419b98
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret
push edi
mov edi, ebx
lea ecx, [edi + 2]
nop
mov ax, word [edi]
add edi, 2
test ax, ax
jne 0x419ba0
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
sub edi, ecx
push esi
push eax
sar edi, 1
call fcn.00477c10
push 0x5c
push ebx
call fcn.004772be
add esp, 0x14
test eax, eax
je 0x419c43
lea eax, [ebx + esi*2]
push 0x5c
push eax
call fcn.004772be
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x419be4
sub eax, edx
mov esi, edi
sar eax, 1
sub esi, eax
lea eax, [ebp - 0x20c]
inc esi
push esi
push ebx
push 0x104
push eax
call fcn.004b6d74
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419c31
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x419c5e
lea eax, [ebx + esi*2]
push 0x5c
push eax
call fcn.004772be
add esp, 8
test eax, eax
jne 0x419bd3
cmp esi, edi
jge 0x419c71
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x419c71
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x419c71
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov eax, 1
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret
Function at 0x41a2f0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9666
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x5133d4]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x4a8], edi
push 0
push 0x4fe6c0
lea ecx, [ebp - 0x430]
mov dword [ebp - 0x4ac], edi
mov dword [ebp - 0x4b0], 0
mov dword [ebp - 0x41c], 0xf
mov dword [ebp - 0x420], 0
mov byte [ebp - 0x430], 0
call fcn.00404820
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
jne 0x41a399
lea eax, [ebp - 0x430]
mov ecx, edi
push eax
call fcn.00405da0
mov ecx, dword [ebp - 0x41c]
cmp ecx, 0x10
jb 0x41a576
inc ecx
push ecx
jmp 0x41a565
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x4a8], 0
jb 0x41a3af
mov esi, dword [esi]
push 0x50073c
lea eax, [ebp - 0x4a8]
push esi
push eax
call fcn.004af93c
add esp, 0xc
test eax, eax
jne 0x41a54a
mov esi, dword [ebp - 0x4a8]
test esi, esi
je 0x41a54a
push 0x400
push eax
mov dword [ebp - 0x4a0], eax
mov dword [ebp - 0x4a4], eax
lea eax, [ebp - 0x414]
push eax
mov dword [ebp - 0x49c], 0x67452301
mov dword [ebp - 0x498], 0xefcdab89
mov dword [ebp - 0x494], 0x98badcfe
mov dword [ebp - 0x490], 0x10325476
call fcn.00477c10
push esi
push 0x400
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.004afb4f
add esp, 0x1c
test eax, eax
jle 0x41a472
nop dword [eax + eax]
push eax
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x4a4]
call fcn.0041c180
push dword [ebp - 0x4a8]
lea eax, [ebp - 0x414]
push 0x400
push 1
push eax
call fcn.004afb4f
add esp, 0x14
test eax, eax
jg 0x41a440
lea ecx, [ebp - 0x4a4]
call fcn.0041c240
xor eax, eax
mov byte [ebp - 0x418], 0
mov word [ebp - 0x417], ax
xor esi, esi
nop
cmp esi, 0x10
jge 0x41a53c
movzx eax, byte [ebp + esi - 0x44c]
push eax
push str._02x
lea eax, [ebp - 0x418]
push 3
push eax
call fcn.004193e0
add esp, 0x10
cmp byte [ebp - 0x418], 0
jne 0x41a4d9
xor ecx, ecx
lea eax, [ebp - 0x418]
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.00405ea0
inc esi
jmp 0x41a490
lea ecx, [ebp - 0x418]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x41a4e2
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.00405ea0
inc esi
jmp 0x41a490
push dword [ebp - 0x4a8]
call fcn.004afc75
add esp, 4
lea eax, [ebp - 0x430]
mov ecx, edi
push eax
call fcn.00405da0
mov eax, dword [ebp - 0x41c]
cmp eax, 0x10
jb 0x41a576
inc eax
push eax
push dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
call fcn.00404a50
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret
Function at 0x41c110
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0xc]
push esi
push edi
push eax
call fcn.0041c0d0
xor ecx, ecx
add esp, 4
mov edx, 2
lea edi, [eax + 2]
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004b52ba
mov esi, eax
add esp, 4
test esi, esi
je 0x41c16c
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push edi
push esi
call fcn.0040ac20
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.004ad0fb
add esp, 4
pop edi
pop esi
pop ecx
pop ebp
ret

Function at 0x41cba0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5133d4]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x14]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov word [ebp - 0xc], 0x500
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
mov dword [ebp - 8], eax
test eax, eax
je 0x41cc09
lea eax, [ebp - 8]
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 - 8], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret

Function at 0x41cd30
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5133d4]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_WTSGetActiveConsoleSessionId]
lea ecx, [ebp - 8]
mov dword [ebp - 0xc], 0
push ecx
lea ecx, [ebp - 0xc]
push ecx
push 5
push eax
push 0
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
jne 0x41cd78
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
cmp word [edx], 0
jne 0x41cd85
xor ecx, ecx
jmp 0x41cda0
mov ecx, edx
push esi
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41cd90
sub ecx, esi
sar ecx, 1
pop esi
push ecx
push edx
mov ecx, edi
call fcn.00403170
push dword [ebp - 0xc]
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop edi
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret
Function at 0x41ce50
Capabilities:
Create a process with modified i/o handles and window
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x5c
mov eax, dword [0x5133d4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
push edi
push eax
mov edi, ecx
push 0x400
push edi
call fcn.004b6d7f
add esp, 0xc
lea eax, [ebp - 0x50]
push 0x44
push 0
push eax
call fcn.00477c10
or dword [ebp - 0x24], 0x101
add esp, 0xc
mov esi, dword [sym.imp.KERNEL32.dll_SetHandleInformation]
mov dword [ebp - 0x50], 0x44
push 0
push 1
push dword [edi + 0x814]
call esi
mov eax, dword [edi + 0x810]
push 0
push 1
push dword [edi + 0x804]
mov dword [ebp - 0x14], eax
call esi
mov eax, dword [edi + 0x800]
push 0
push 1
push dword [edi + 0x820]
mov dword [ebp - 0x10], eax
call esi
mov eax, dword [edi + 0x824]
mov dword [ebp - 0x18], eax
xor eax, eax
mov word [ebp - 0x20], ax
lea eax, [edi + 0x830]
push eax
lea eax, [ebp - 0x50]
push eax
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x41cf51
push dword [edi + 0x810]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
mov dword [edi + 0x810], 0
push dword [edi + 0x800]
call esi
mov dword [edi + 0x800], 0
push dword [edi + 0x824]
call esi
mov ecx, dword [ebp - 4]
mov dword [edi + 0x824], 0
xor ecx, ebp
pop edi
pop esi
call fcn.0048fcf2
mov esp, ebp
pop ebp
ret 0xc
push ecx
lea ecx, [ebp - 0x5c]
call fcn.0041caa0
push 0x51000c
lea eax, [ebp - 0x5c]
push eax
call fcn.00478140
int3

Function at 0x41cfb0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4d9a08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x5133d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x41d067
push 0x11
xor eax, eax
mov dword [ebp - 0x10], 7
push 0x5007c8
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
call fcn.00403170
push 0xffffffffffffffff
push 0
push esi
lea ecx, [ebp - 0x24]
mov dword [ebp - 4], 0
call fcn.00403710
cmp dword [eax + 0x14], 8
jb 0x41d021
mov eax, dword [eax]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x10]
cmp eax, 8
jb 0x41d044
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.004017c0
cmp dword [esi + 0x18], 0
je 0x41d067
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x41d067
push dword [esi + 0x18]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x18], 0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret