joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41aab0
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x234
mov eax, dword [0x5796f4]
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.004d6ff0
add esi, 0x758
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41aaee
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, 0x5634e8
lea eax, [ebp - 0x234]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41ab36
test dx, dx
je 0x41ab32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ab36
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ab10
xor eax, eax
jmp 0x41ab3b
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41abef
push eax
push str.set.ini
push edi
push eax
lea esi, [eax + 1]
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.00515653
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 0x41abcf
test dx, dx
je 0x41abb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41abcf
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ab90
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.004edbcc
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.004edbcc
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004edbcc
mov esp, ebp
pop ebp
ret 4

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x5796f4]
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.004d6ff0
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 0x41adf4
push eax
push 0x2e
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push 0x564d64
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x104
push eax
call fcn.00515653
push 0
push str.xunjieaixiezuo
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x104
push eax
call fcn.00515653
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 0x41ae4d
xor ecx, ecx
jmp 0x41ae65
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ae56
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.004edbcc
mov esp, ebp
pop ebp
ret 4
Function at 0x41ae90
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5331f1
mov eax, dword fs:[0]
push eax
sub esp, 0x1f4
mov eax, dword [0x5796f4]
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.00410cc0
mov edx, eax
mov dword [ebp - 4], 0
cmp dword [edx + 0x14], 8
jb 0x41aee4
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 0x41af0a
xor ecx, ecx
jmp 0x41af1f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41af10
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 0x41af4e
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.0041fb20
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 0x41afa2
push esi
call edi
test eax, eax
je 0x41afd1
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 0x41afd1
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov edi, 1
jmp 0x41afd3
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.00515482
add esp, 0x24
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1e0]
push eax
call fcn.00425830
cmp dword [ebx + 0x24], 8
lea esi, [ebx + 0x10]
jb 0x41b045
mov esi, dword [esi]
push dword [ebp - 0x1e4]
mov edx, dword [ebp - 0x1d4]
mov ecx, 0x564e00
test edi, edi
mov eax, 0x564df8
cmove eax, ecx
mov ecx, dword [ebp - 0x1d8]
push eax
call fcn.004ee770
xor edx, edx
movsd qword [ebp - 0x1e8], xmm0
mov ecx, 0x40000000
call fcn.004ee770
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.0040f0c0
mov eax, dword [ebp - 0x1ac]
add esp, 0x24
mov dword [ebp - method.Utils::HardDiskManager.virtual_0], vtable.Utils::HardDiskManager.0
cmp eax, 8
jb 0x41b0dc
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.004edbcc
mov esp, ebp
pop ebp
ret 4
Function at 0x41b2f0
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533258
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5796f4]
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 0x41b330
mov ebx, dword [esi]
jmp 0x41b332
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 reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b386
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b360
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 0x41b3f7
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 0x41b3e2
push 0xffffffffffffffff
push 0
push eax
call fcn.00403270
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x41b3f7
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 0x41b40a
mov eax, dword [esi]
jmp 0x41b40c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b42e
cmp dword [esi + 0x14], 8
jb 0x41b41f
mov esi, dword [esi]
push esi
push ecx
push str.UnInstallEp
call fcn.00425950
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.004edbcc
mov esp, ebp
pop ebp
ret

Function at 0x41b780
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 0x41b7b8
cmp eax, 5
jbe 0x41b7b8
cmp dword [edi + 0x784], 8
lea eax, [edi + 0x770]
jb 0x41b7a4
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 0x41b7c9
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b7f6
mov ecx, edi
call fcn.00441ee0
mov ecx, eax
call fcn.0041f710
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 0x41efa0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5311cf
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x5796f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi + 0x60]
test esi, esi
je 0x41f015
cmp dword [esi + 4], 0
je 0x41effc
mov eax, dword [esi + 4]
test eax, eax
je 0x41effc
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 4], 0
mov dword [esi], 0xffffffff
mov esi, dword [edi + 0x60]
test esi, esi
je 0x41f015
mov ecx, esi
call fcn.004218e0
push 0x50
push esi
call fcn.004edbdd
add esp, 8
push 0x50
call fcn.004edc18
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 0
call fcn.004d6ff0
sub esp, 0x18
mov ecx, 0x41f090
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x41f057
mov dword [eax], vtable.std::_Func_impl_unsigned_long_int____stdcall___void____class_std::allocator_int___unsigned_long_int__void__.0
mov dword [eax + 4], 0x41f090
mov dword [eax + 0x24], eax
push str.ABDEF
push edi
mov ecx, esi
call fcn.00421690
mov dword [edi + 0x60], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x41f075
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41f7b0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5337bb
mov eax, dword fs:[0]
push eax
sub esp, 0x23c
mov eax, dword [0x5796f4]
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 0x41f81a
xor ecx, ecx
jmp 0x41f832
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f823
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403170
push 0x1e
push 0x565310
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 0x41f8a8
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 0x41f8ed
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 0x41f8ed
lea esi, [eax + 1]
jmp 0x41f912
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
push esi
call fcn.0051ade1
add esp, 0xc
xor esi, esi
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x41f930
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.004edbcc
mov esp, ebp
pop ebp
ret
Function at 0x41f9e0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x5796f4]
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 0x41fa00
sub edx, ecx
sar edx, 1
cmp edx, 0x104
jbe 0x41fa28
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbcc
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 0x41fa30
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
sub edi, ecx
push esi
push eax
sar edi, 1
call fcn.004d6ff0
push 0x5c
push ebx
call fcn.004d669e
add esp, 0x14
test eax, eax
je 0x41fad3
lea eax, [ebx + esi*2]
push 0x5c
push eax
call fcn.004d669e
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fa74
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.0051add6
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fac1
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41faee
lea eax, [ebx + esi*2]
push 0x5c
push eax
call fcn.004d669e
add esp, 8
test eax, eax
jne 0x41fa63
cmp esi, edi
jge 0x41fb01
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fb01
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41fb01
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbcc
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.004edbcc
mov esp, ebp
pop ebp
ret
Function at 0x420180
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5338e6
mov eax, dword fs:[0]
push eax
sub esp, 0x4a4
mov eax, dword [0x5796f4]
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 0x562f08
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.004049f0
mov dword [ebp - 4], 0
cmp dword [esi + 0x10], 0
jne 0x420229
lea eax, [ebp - 0x430]
mov ecx, edi
push eax
call fcn.00406140
mov ecx, dword [ebp - 0x41c]
cmp ecx, 0x10
jb 0x420406
inc ecx
push ecx
jmp 0x4203f5
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x4a8], 0
jb 0x42023f
mov esi, dword [esi]
push 0x565514
lea eax, [ebp - 0x4a8]
push esi
push eax
call fcn.0050b76c
add esp, 0xc
test eax, eax
jne 0x4203da
mov esi, dword [ebp - 0x4a8]
test esi, esi
je 0x4203da
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.004d6ff0
push esi
push 0x400
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.0050f0c1
add esp, 0x1c
test eax, eax
jle 0x420302
nop dword [eax + eax]
push eax
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x4a4]
call fcn.00421da0
push dword [ebp - 0x4a8]
lea eax, [ebp - 0x414]
push 0x400
push 1
push eax
call fcn.0050f0c1
add esp, 0x14
test eax, eax
jg 0x4202d0
lea ecx, [ebp - 0x4a4]
call fcn.00421e60
xor eax, eax
mov byte [ebp - 0x418], 0
mov word [ebp - 0x417], ax
xor esi, esi
nop
cmp esi, 0x10
jge 0x4203cc
movzx eax, byte [ebp + esi - 0x44c]
push eax
push str._02x
lea eax, [ebp - 0x418]
push 3
push eax
call fcn.0040b670
add esp, 0x10
cmp byte [ebp - 0x418], 0
jne 0x420369
xor ecx, ecx
lea eax, [ebp - 0x418]
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.00406e90
inc esi
jmp 0x420320
lea ecx, [ebp - 0x418]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x420372
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.00406e90
inc esi
jmp 0x420320
push dword [ebp - 0x4a8]
call fcn.0050b829
add esp, 4
lea eax, [ebp - 0x430]
mov ecx, edi
push eax
call fcn.00406140
mov eax, dword [ebp - 0x41c]
cmp eax, 0x10
jb 0x420406
inc eax
push eax
push dword [ebp - 0x430]
lea ecx, [ebp - 0x430]
call fcn.00404c20
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.004edbcc
mov esp, ebp
pop ebp
ret
Function at 0x421d30
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.00421cf0
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.00516a59
mov esi, eax
add esp, 4
test esi, esi
je 0x421d8c
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push edi
push esi
call fcn.0040f080
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
push esi
call fcn.0050b236
add esp, 4
pop edi
pop esi
pop ecx
pop ebp
ret

Function at 0x4227c0
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x5796f4]
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 0x422829
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.004edbcc
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x5796f4]
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 0x422998
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edbcc
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
cmp word [edx], 0
jne 0x4229a5
xor ecx, ecx
jmp 0x4229c0
mov ecx, edx
push esi
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4229b0
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.004edbcc
mov esp, ebp
pop ebp
ret
Function at 0x422a70
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 [0x5796f4]
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.0051ade1
add esp, 0xc
lea eax, [ebp - 0x50]
push 0x44
push 0
push eax
call fcn.004d6ff0
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 0x422b71
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.004edbcc
mov esp, ebp
pop ebp
ret 0xc
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004226c0
push 0x575b54
lea eax, [ebp - 0x5c]
push eax
call fcn.004d7520
int3

Function at 0x422bd0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533c08
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
mov eax, dword [0x5796f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x18], 0
jne 0x422c87
push 0x11
xor eax, eax
mov dword [ebp - 0x10], 7
push 0x565590
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 0x422c41
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 0x422c64
inc eax
lea ecx, [ebp - 0x24]
push eax
push dword [ebp - 0x24]
call fcn.004017c0
cmp dword [esi + 0x18], 0
je 0x422c87
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x422c87
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