joyce8/EMBER2024-capa huggingface dataset:
Function at 0x414660
Capabilities:
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x532678
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x5796f4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], 0
jb 0x4146b1
mov eax, dword [esi]
jmp 0x4146b3
mov eax, esi
mov edx, dword [ebp + 8]
xor ecx, ecx
mov word [eax], cx
cmp word [edx], cx
je 0x4146d4
mov ecx, edx
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4146c5
sub ecx, edi
sar ecx, 1
push ecx
push edx
mov ecx, esi
call fcn.00403170
mov edi, dword [ebp + 0xc]
xor eax, eax
mov dword [ebp - 4], 0
mov dword [esi + 0x2c], 7
mov dword [esi + 0x28], 0
mov word [esi + 0x18], ax
cmp word [edi], ax
jne 0x414704
xor ecx, ecx
jmp 0x41471f
mov ecx, edi
lea ebx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x414710
sub ecx, ebx
sar ecx, 1
push ecx
push edi
lea ecx, [esi + 0x18]
call fcn.00403170
mov eax, dword [ebp + 0x14]
movsd xmm0, qword [0x565d80]
mov dword [esi + 0x30], eax
xor eax, eax
mov dword [esi + 0x38], 0x404780
movsd qword [esi + 0x40], xmm0
mov dword [esi + 0x48], 0xffffffff
mov dword [esi + 0x4c], 0xffffffff
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov byte [esi + 0x58], 0
mov dword [esi + 0x70], 7
mov dword [esi + 0x6c], 0
mov word [esi + 0x5c], ax
mov dword [esi + 0x84], eax
mov dword [esi + 0x88], 0xf
mov byte [esi + 0x74], al
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x41a780
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 0x53318d
mov eax, dword fs:[0]
push eax
sub esp, 0x230
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
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.004d7080
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 0x41a80c
mov eax, dword [esi]
jmp 0x41a80e
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.00422990
cmp dword [ebp - 0x21c], 8
lea ecx, [ebp - 0x230]
cmovae ecx, dword [ebp - 0x230]
call fcn.00422880
test eax, eax
mov dword [ebp - 0x238], eax
mov byte [edi + 0x7ba], 1
setne al
mov byte [edi + 0x7b9], al
call fcn.00422800
mov ebx, eax
test ebx, ebx
setne al
mov byte [edi + 0x7ba], al
cmp dword [edi + 0x768], 0
je 0x41a8ca
cmp dword [edi + 0x754], 8
lea eax, [edi + 0x740]
jb 0x41a8bb
mov eax, dword [eax]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41a98f
cmp dword [ebp - 0x238], 0
je 0x41a912
test ebx, ebx
je 0x41a912
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 0x41a91a
push str.fengping
push eax
push 0
push 0x104
push eax
call fcn.00515784
add esp, 0x18
jmp 0x41a939
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 0x41a939
push eax
push 0x26
lea eax, [ebp - 0x218]
push eax
push 0
call edi
push 0x562a6c
push str.STTranslKing
lea eax, [ebp - 0x218]
push eax
push 0
push 0x104
push eax
call fcn.00515784
add esp, 0x18
cmp word [ebp - 0x218], 0
jne 0x41a968
xor ecx, ecx
jmp 0x41a980
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41a971
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 0x41a9ad
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.004edc8a
mov esp, ebp
pop ebp
ret 4
Function at 0x41ab30
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.004d7080
add esi, 0x758
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x41ab6e
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, 0x5634e0
lea eax, [ebp - 0x234]
nop dword [eax]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x41abb6
test dx, dx
je 0x41abb2
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41abb6
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ab90
xor eax, eax
jmp 0x41abbb
sbb eax, eax
or eax, 1
test eax, eax
jne 0x41ac6f
push eax
push str.set.ini
push edi
push eax
lea esi, [eax + 1]
lea eax, [ebp - 0x234]
push 0x104
push eax
call fcn.00515784
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 0x41ac4f
test dx, dx
je 0x41ac32
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x41ac4f
add eax, 4
add ecx, 4
test dx, dx
jne 0x41ac10
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.004edc8a
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.004edc8a
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop esi
call fcn.004edc8a
mov esp, ebp
pop ebp
ret 4

Function at 0x41add0
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.004d7080
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 0x41ae34
push eax
push 0x2e
lea eax, [ebp - 0x20c]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
push 0
push str.HuDunData
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x104
push eax
call fcn.00515784
push 0
push str.STTranslKing
lea eax, [ebp - 0x20c]
push eax
push 0
push 0x104
push eax
call fcn.00515784
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 0x41ae8d
xor ecx, ecx
jmp 0x41aea5
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41ae96
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.004edc8a
mov esp, ebp
pop ebp
ret 4
Function at 0x41aed0
Capabilities:
Check if file exists
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533281
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 0x41af24
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 0x41af4a
xor ecx, ecx
jmp 0x41af5f
mov ecx, edx
lea esi, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41af50
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 0x41af8e
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.0041fb60
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 0x41afe2
push esi
call edi
test eax, eax
je 0x41b011
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 0x41b011
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push esi
call edi
mov edi, 1
jmp 0x41b013
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.005155b3
add esp, 0x24
lea eax, [ebp - 0x18]
lea ecx, [ebp - 0x1e0]
push eax
call fcn.00425890
cmp dword [ebx + 0x24], 8
lea esi, [ebx + 0x10]
jb 0x41b085
mov esi, dword [esi]
push dword [ebp - 0x1e4]
mov edx, dword [ebp - 0x1d4]
mov ecx, 0x564d58
test edi, edi
mov eax, 0x564d50
cmove eax, ecx
mov ecx, dword [ebp - 0x1d8]
push eax
call fcn.004ee830
xor edx, edx
movsd qword [ebp - 0x1e8], xmm0
mov ecx, 0x40000000
call fcn.004ee830
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 0x41b11c
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.004edc8a
mov esp, ebp
pop ebp
ret 4
Function at 0x41b330
Capabilities:
Check if file exists
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5332e8
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 0x41b370
mov ebx, dword [esi]
jmp 0x41b372
mov ebx, esi
push 0
lea eax, [ebp - 0x14]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareHuDunSoftSTTranslKing
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x41b3c6
mov ecx, ebx
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41b3a0
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 0x41b437
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 0x41b422
push 0xffffffffffffffff
push 0
push eax
call fcn.00403270
mov eax, dword [ebp - 0x18]
cmp eax, 8
jb 0x41b437
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 0x41b44a
mov eax, dword [esi]
jmp 0x41b44c
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b46e
cmp dword [esi + 0x14], 8
jb 0x41b45f
mov esi, dword [esi]
push esi
push ecx
push str.UnInstallEp
call fcn.004259b0
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.004edc8a
mov esp, ebp
pop ebp
ret

Function at 0x41b7c0
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 0x41b7f8
cmp eax, 5
jbe 0x41b7f8
cmp dword [edi + 0x784], 8
lea eax, [edi + 0x770]
jb 0x41b7e4
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 0x41b809
mov esi, dword [esi]
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x41b836
mov ecx, edi
call fcn.0042bd40
mov ecx, eax
call fcn.0041f750
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 0x41efe0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53124f
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 0x41f055
cmp dword [esi + 4], 0
je 0x41f03c
mov eax, dword [esi + 4]
test eax, eax
je 0x41f03c
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 0x41f055
mov ecx, esi
call fcn.00421920
push 0x50
push esi
call fcn.004edc9b
add esp, 8
push 0x50
call fcn.004edccc
mov esi, eax
mov dword [ebp - 0x10], esi
push 0x50
push 0
push esi
mov dword [ebp - 4], 0
call fcn.004d7080
sub esp, 0x18
mov ecx, 0x41f0d0
mov eax, esp
mov dword [eax + 0x24], 0
test ecx, ecx
je 0x41f097
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], 0x41f0d0
mov dword [eax + 0x24], eax
push str.ABDEF
push edi
mov ecx, esi
call fcn.004216d0
mov dword [edi + 0x60], eax
mov eax, dword [eax + 4]
test eax, eax
je 0x41f0b5
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 0x41f7f0
Capabilities:
Check if file exists
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53384b
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 0x41f85a
xor ecx, ecx
jmp 0x41f872
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x41f863
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 0x248]
call fcn.00403170
push 0x1c
push 0x565260
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 0x41f8e8
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 0x41f92d
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 0x41f92d
lea esi, [eax + 1]
jmp 0x41f952
cmp dword [ebp - 0x21c], 8
lea eax, [ebp - 0x230]
cmovae eax, dword [ebp - 0x230]
push eax
push 0x104
push esi
call fcn.0051af11
add esp, 0xc
xor esi, esi
mov ecx, dword [ebp - 0x21c]
cmp ecx, 8
jb 0x41f970
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.004edc8a
mov esp, ebp
pop ebp
ret
Function at 0x41fa20
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 0x41fa40
sub edx, ecx
sar edx, 1
cmp edx, 0x104
jbe 0x41fa68
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edc8a
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 0x41fa70
push esi
push 0x208
xor esi, esi
lea eax, [ebp - 0x20c]
sub edi, ecx
push esi
push eax
sar edi, 1
call fcn.004d7080
push 0x5c
push ebx
call fcn.004d672e
add esp, 0x14
test eax, eax
je 0x41fb13
lea eax, [ebx + esi*2]
push 0x5c
push eax
call fcn.004d672e
add esp, 8
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x41fab4
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.0051af06
add esp, 0x10
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fb01
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x41fb2e
lea eax, [ebx + esi*2]
push 0x5c
push eax
call fcn.004d672e
add esp, 8
test eax, eax
jne 0x41faa3
cmp esi, edi
jge 0x41fb41
push ebx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x41fb41
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x41fb41
pop esi
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edc8a
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.004edc8a
mov esp, ebp
pop ebp
ret
Function at 0x4201c0
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x533976
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 0x562f00
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 0x420269
lea eax, [ebp - 0x430]
mov ecx, edi
push eax
call fcn.00406140
mov ecx, dword [ebp - 0x41c]
cmp ecx, 0x10
jb 0x420446
inc ecx
push ecx
jmp 0x420435
mov byte [ebp - 4], 1
cmp dword [esi + 0x14], 0x10
mov dword [ebp - 0x4a8], 0
jb 0x42027f
mov esi, dword [esi]
push 0x56545c
lea eax, [ebp - 0x4a8]
push esi
push eax
call fcn.0050b801
add esp, 0xc
test eax, eax
jne 0x42041a
mov esi, dword [ebp - 0x4a8]
test esi, esi
je 0x42041a
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.004d7080
push esi
push 0x400
lea eax, [ebp - 0x414]
push 1
push eax
call fcn.0050f171
add esp, 0x1c
test eax, eax
jle 0x420342
nop dword [eax + eax]
push eax
lea edx, [ebp - 0x414]
lea ecx, [ebp - 0x4a4]
call fcn.00421de0
push dword [ebp - 0x4a8]
lea eax, [ebp - 0x414]
push 0x400
push 1
push eax
call fcn.0050f171
add esp, 0x14
test eax, eax
jg 0x420310
lea ecx, [ebp - 0x4a4]
call fcn.00421ea0
xor eax, eax
mov byte [ebp - 0x418], 0
mov word [ebp - 0x417], ax
xor esi, esi
nop
cmp esi, 0x10
jge 0x42040c
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 0x4203a9
xor ecx, ecx
lea eax, [ebp - 0x418]
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.00406e90
inc esi
jmp 0x420360
lea ecx, [ebp - 0x418]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x4203b2
sub ecx, edx
lea eax, [ebp - 0x418]
push ecx
push eax
lea ecx, [ebp - 0x430]
call fcn.00406e90
inc esi
jmp 0x420360
push dword [ebp - 0x4a8]
call fcn.0050b8be
add esp, 4
lea eax, [ebp - 0x430]
mov ecx, edi
push eax
call fcn.00406140
mov eax, dword [ebp - 0x41c]
cmp eax, 0x10
jb 0x420446
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.004edc8a
mov esp, ebp
pop ebp
ret
Function at 0x421d70
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.00421d30
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.00516b8a
mov esi, eax
add esp, 4
test esi, esi
je 0x421dcc
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.0050b2cb
add esp, 4
pop edi
pop esi
pop ecx
pop ebp
ret

Function at 0x422800
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 0x422869
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.004edc8a
mov esp, ebp
pop ebp
ret

Function at 0x422990
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 0x4229d8
xor al, al
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004edc8a
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0xc]
cmp word [edx], 0
jne 0x4229e5
xor ecx, ecx
jmp 0x422a00
mov ecx, edx
push esi
lea esi, [ecx + 2]
nop dword [eax + eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4229f0
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.004edc8a
mov esp, ebp
pop ebp
ret