joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4086cd
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00406bc5
and dword [ebp - 4], 0
cmp dword [0x40fa04], 0
mov ebx, eax
jne 0x40877e
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x40882f
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x40882f
push eax
call fcn.00406b53
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40fa04], eax
call esi
push eax
call fcn.00406b53
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40fa08], eax
call esi
push eax
call fcn.00406b53
mov dword [esp], 0x40b3d0
push edi
mov dword [0x40fa0c], eax
call esi
push eax
call fcn.00406b53
pop ecx
mov dword [0x40fa14], eax
test eax, eax
je 0x40877e
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00406b53
pop ecx
mov dword [0x40fa10], eax
mov eax, dword [0x40fa10]
cmp eax, ebx
je 0x4087d6
cmp dword [0x40fa14], ebx
je 0x4087d6
push eax
call fcn.00406bce
push dword [0x40fa14]
mov esi, eax
call fcn.00406bce
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4087d6
test edi, edi
je 0x4087d6
call esi
test eax, eax
je 0x4087cd
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4087cd
test byte [ebp - 0xc], 1
jne 0x4087d6
or dword [ebp + 0x10], 0x200000
jmp 0x40880f
mov eax, dword [0x40fa08]
cmp eax, ebx
je 0x40880f
push eax
call fcn.00406bce
pop ecx
test eax, eax
je 0x40880f
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x40880f
mov eax, dword [0x40fa0c]
cmp eax, ebx
je 0x40880f
push eax
call fcn.00406bce
pop ecx
test eax, eax
je 0x40880f
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40fa04]
call fcn.00406bce
pop ecx
test eax, eax
je 0x40882f
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x408831
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x43b63e
Capabilities:
Encode data using xor

Disassembly:
mov edi, 0x43b3c1
inc edx
mov edx, edx
sub eax, 0x4bbce85a
call fcn.0043b67b
sub eax, 0x574d5ccd
xor dword [ebx], edi
sub eax, edx
mov eax, 0xa6d1814d
inc ebx
add eax, 0x76bb44bd
add eax, eax
cmp ebx, ecx
jne fcn.0043b63e
add eax, edx
mov eax, 0xb151a932
ret
Function at 0x407180
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
xor edx, edx
push ebx
push esi
push edi
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
movzx ebx, word [ecx + 6]
add eax, 0x18
add eax, ecx
test ebx, ebx
je 0x4071be
mov edi, dword [ebp + 0xc]
mov esi, dword [eax + 0xc]
cmp edi, esi
jb 0x4071b6
mov ecx, dword [eax + 8]
add ecx, esi
cmp edi, ecx
jb 0x4071c0
inc edx
add eax, 0x28
cmp edx, ebx
jb 0x4071a6
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4072a0
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
je 0x4072b6
xor eax, eax
pop ebp
ret
mov ecx, dword [eax + 0x3c]
add ecx, eax
xor eax, eax
cmp dword [ecx], 0x4550
jne 0x4072d1
mov edx, 0x10b
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret

Function at 0x432003
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..reloc
nop
mov ebx, 0x40c7d0
mov ecx, 0x25747abe
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43204e
nop
nop
nop
nop
nop
xor dword [eax], ecx
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x432024
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x12114c56
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x432084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x431219
Function at 0x401000
Capabilities:
Copy file
Create process on windows
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x48d43b
mov eax, dword fs:[0]
push eax
sub esp, 0x674
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x670], eax
push esi
push edi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0x680]
mov dword fs:[0], eax
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x47e]
push ecx
mov word [esp + 0x480], ax
call fcn.0047a9a0
add esp, 0xc
push 0x104
lea edx, [esp + 0x478]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x6e]
push ecx
mov word [esp + 0x70], ax
call fcn.0047a9a0
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x282]
push eax
mov word [esp + 0x284], dx
call fcn.0047a9a0
add esp, 0x18
lea ecx, [esp + 0x64]
push ecx
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea edx, [esp + 0x26c]
push edx
push 0
push 0x499368
lea eax, [esp + 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
push 0
lea ecx, [esp + 0x270]
push ecx
lea edx, [esp + 0x47c]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov eax, dword [0x4ae2cc]
mov edx, dword [eax + 0xc]
mov ecx, 0x4ae2cc
call edx
add eax, 0x10
mov dword [esp + 0xc], eax
mov dword [esp + 0x688], 0
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push esi
lea eax, [esp + 0x274]
push eax
push str.__s___s___wait_pid_d
lea edi, [esp + 0x1c]
call fcn.00401d90
push 0x40
lea ecx, [esp + 0x38]
push 0
push ecx
call fcn.0047a9a0
mov esi, dword [esp + 0x28]
xor eax, eax
add esp, 0x1c
mov dword [esp + 0x20], 0x44
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
cmp dword [esi - 4], 1
jle 0x401171
mov edx, dword [esi - 0xc]
push edx
mov eax, edi
push eax
call fcn.004028c0
mov esi, dword [esp + 0xc]
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x6c]
push eax
push 0
push 0
push 0
push 0
push 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ecx, dword [esp + 0x10]
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call edi
mov edx, dword [esp + 0x14]
push edx
call edi
mov edi, dword [esp + 0x18]
lea eax, [esi - 0x10]
mov dword [esp + 0x688], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4011d2
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, edi
mov ecx, dword [esp + 0x680]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [esp + 0x670]
xor ecx, esp
call fcn.00475410
add esp, 0x680
ret
Function at 0x4016f0
Capabilities:
Accept command line arguments
Check if file exists
Delete file
Move file

Disassembly:
sub esp, 0x230
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x22c], eax
push esi
mov esi, dword [esp + 0x240]
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov ecx, eax
call fcn.0040b290
call fcn.0041a2c0
call fcn.00412740
test al, al
jne 0x401776
mov eax, dword [0x4af848]
cmp byte [eax], 0
jne 0x40176e
call fcn.0041b370
push 0x6b12
push eax
call fcn.0041a180
push 0x10
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
mov dword [ecx], eax
call fcn.0041b370
push 0x6b13
push eax
call fcn.0041a180
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
mov dword [ecx], eax
call fcn.00402b30
add esp, 0xc
or eax, 0xffffffff
jmp 0x4018e7
mov eax, dword [0x4b1dc4]
test eax, eax
jne 0x40178b
mov ecx, esi
call section..text
jmp 0x4018e7
jle 0x4017b1
push eax
push 1
push 0x100000
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x4017b1
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
push ecx
mov ecx, 0x4b1da4
call fcn.004125e0
lea edx, [esp + 0xf]
push edx
mov byte [esp + 0x13], 0
call fcn.00401200
add esp, 8
call fcn.00401db0
test al, al
mov al, 1
jne 0x4017e1
mov al, byte [esp + 0xb]
mov ecx, dword [0x4af848]
cmp byte [ecx], 0
jne 0x401831
xor edx, edx
test al, al
setne dl
lea esi, [edx + 0x6b3d]
call fcn.0041b370
push 0x6b3d
push eax
call fcn.0041a180
push 0x40
push ecx
mov ecx, esp
mov dword [esp + 0x14], esp
mov dword [ecx], eax
call fcn.0041b370
push esi
push eax
call fcn.0041a180
push ecx
mov ecx, esp
mov dword [esp + 0x18], esp
mov dword [ecx], eax
call fcn.00402b30
add esp, 0xc
mov eax, dword [esp + 0x20]
push 0x49b524
mov edi, 9
lea ecx, [esp + 0x14]
call fcn.00401f70
test eax, eax
jne 0x4018d1
push 0x206
push eax
lea ecx, [esp + 0x36]
push ecx
mov word [esp + 0x38], ax
call fcn.0047a9a0
add esp, 0xc
push 0x104
lea edx, [esp + 0x30]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [esp + 0xc]
push eax
lea ecx, [esp + 0x30]
call fcn.00402a80
mov ecx, dword [esp + 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x4018b1
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4018b1
mov edx, dword [esp + 0xc]
push 4
push 0
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x4018d1
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
cmp dword [esp + 0x24], 8
jb 0x4018e5
mov ecx, dword [esp + 0x10]
push ecx
call fcn.00475405
add esp, 4
xor eax, eax
mov ecx, dword [esp + 0x234]
pop edi
pop esi
xor ecx, esp
call fcn.00475410
add esp, 0x230
ret 0x10
Function at 0x402690
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, dword [esp + 8]
push edi
push ebx
push ebp
mov edi, eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x4026a7
pop edi
pop ebp
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4026d6
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_SizeofResource]
add eax, esi
and edi, 0xf
jbe 0x4026d2
cmp esi, eax
jae 0x4026d6
dec edi
movzx ecx, word [esi]
lea esi, [esi + ecx*2 + 2]
jne 0x4026c4
cmp esi, eax
jb 0x4026dc
pop esi
pop edi
xor eax, eax
pop ebp
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebp
ret
Function at 0x405be0
Capabilities:
Write file on windows

Disassembly:
push 0xffffffffffffffff
push 0x48ec18
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
cmp dword [edi + 0x44], 0
je 0x405d43
cmp byte [edi + 0x49], 0
je 0x405d43
mov eax, dword [edi]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, edi
call edx
cmp eax, 0xffffffff
je 0x405d2e
mov ecx, 0xf
xor eax, eax
mov byte [esp + 0x14], 0
mov dword [esp + 0x28], ecx
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 8
cmp ecx, 0x10
jae 0x405c62
lea eax, [esp + 0x14]
mov byte [eax + 8], 0
mov dword [esp + 0x3c], 0
lea ebx, [edi + 0x4c]
mov eax, dword [esp + 0x14]
mov ebp, dword [esp + 0x28]
mov edx, eax
cmp ebp, 0x10
jae 0x405c86
lea edx, [esp + 0x14]
mov eax, edx
add edx, dword [esp + 0x24]
mov ecx, dword [edi + 0x44]
mov esi, dword [ecx]
lea ebp, [esp + 0x10]
push ebp
push edx
push eax
mov eax, dword [esi + 0x18]
push ebx
call eax
sub eax, 0
je 0x405cba
dec eax
je 0x405cbe
sub eax, 2
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
jne 0x405d29
jmp 0x405d3e
mov byte [edi + 0x49], 0
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
mov ecx, eax
cmp ebp, 0x10
jae 0x405cd1
lea ecx, [esp + 0x14]
mov esi, dword [esp + 0x10]
sub esi, ecx
je 0x405cfe
cmp ebp, 0x10
jae 0x405ce2
lea eax, [esp + 0x14]
mov ecx, dword [edi + 0x54]
push ecx
push esi
push 1
push eax
call fcn.00476440
add esp, 0x10
cmp esi, eax
jne 0x405d1d
mov ebp, dword [esp + 0x28]
mov eax, dword [esp + 0x14]
cmp byte [edi + 0x49], 0
je 0x405d32
test esi, esi
jne 0x405c79
push esi
push 8
lea esi, [esp + 0x1c]
call fcn.00406450
jmp 0x405c71
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00472d40
xor al, al
jmp 0x405d45
mov dword [esp + 0x3c], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.00472d40
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.00475410
add esp, 0x30
ret
Function at 0x4062b0
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push 0xffffffffffffffff
push 0x48c6b6
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
mov esi, dword [esp + 0x28]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00474ed0
push 4
mov dword [esp + 0x24], 0
call fcn.0047541f
mov edi, eax
add esp, 4
mov dword [esp + 0x14], edi
mov byte [esp + 0x20], 1
test edi, edi
je 0x406339
call fcn.00474bc2
mov dword [edi], eax
call fcn.00474981
push 0
lea ecx, [esp + 0x14]
mov ebx, eax
call fcn.004748b6
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x40632e
inc eax
mov dword [ebx + 4], eax
lea ecx, [esp + 0x10]
call fcn.004748de
jmp 0x40633b
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x14
ret 4

Function at 0x407190
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x48ce38
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push esi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
and eax, 0x17
mov dword [ecx + 0xc], eax
mov ecx, dword [ecx + 0x10]
and ecx, eax
je 0x40726d
test cl, 4
je 0x407206
call fcn.004747c4
mov ecx, 1
mov dword [esp + 0x10], str.ios_base::badbit_set
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], vtable.std::ios_base::failure.0
lea esi, [esp + 0xc]
mov dword [esp + 0x38], 0
call fcn.00402ef0
test cl, 2
je 0x40723a
call fcn.004747c4
mov ecx, 1
mov dword [esp + 0x10], str.ios_base::failbit_set
mov dword [esp + 0x14], ecx
mov dword [esp + 0x18], eax
mov dword [esp + 0xc], vtable.std::ios_base::failure.0
lea esi, [esp + 0xc]
mov dword [esp + 0x38], ecx
call fcn.00402ef0
call fcn.004747c4
mov ecx, 1
mov dword [esp + 0x20], str.ios_base::eofbit_set
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], eax
mov dword [esp + 0x1c], vtable.std::ios_base::failure.0
lea esi, [esp + 0x1c]
mov dword [esp + 0x38], 2
call fcn.00402ef0
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x40ad10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49172a
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [edi]
push eax
push ecx
call fcn.00409fd0
add esp, 8
cmp byte [0x4b22d1], 0
jne 0x40ad5a
mov byte [0x4b22d1], 1
call fcn.00409a40
mov edx, dword [0x4b1e34]
push edx
lea eax, [esp + 0x10]
push eax
call fcn.0040a1c0
lea ecx, [esp + 0xc]
push ecx
mov edx, esi
mov ecx, edi
mov dword [esp + 0x3c], 0
call fcn.0040a3d0
mov esi, eax
call fcn.00410120
lea ebx, [esp + 0xc]
call fcn.0040ab00
test al, al
je 0x40ad9c
push 1
call fcn.00477d60
lea edx, [esp + 0xc]
push edx
mov dword [esp + 0x3c], 0xffffffff
call fcn.0040a2b0
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x30
ret
Function at 0x40bb60
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d1f8
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x30], 0x10
jb 0x40bb9e
mov eax, dword [esi + 0x1c]
push eax
call fcn.00475405
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x40bbc4
mov eax, dword [esi]
push eax
call fcn.00475405
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40c910
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d1f8
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor ebx, ebx
mov dword [esp + 0x14], ebx
cmp dword [esi + 0x30], 0x10
jb 0x40c94e
mov eax, dword [esi + 0x1c]
push eax
call fcn.00475405
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x40c974
mov eax, dword [esi]
push eax
call fcn.00475405
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x4126d0
Capabilities:
Check os version

Disassembly:
sub esp, 0x118
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x114], eax
push 0x110
lea eax, [esp + 8]
push 0
push eax
call fcn.0047a9a0
add esp, 0xc
lea ecx, [esp]
push ecx
mov dword [esp + 4], 0x114
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x412723
mov ecx, dword [esp + 0x114]
xor ecx, esp
call fcn.00475410
add esp, 0x118
ret
cmp dword [esp + 4], 6
mov ecx, dword [esp + 0x114]
sbb eax, eax
xor ecx, esp
inc eax
call fcn.00475410
add esp, 0x118
ret

Function at 0x412740
Capabilities:
Compare security identifiers

Disassembly:
push 0xffffffffffffffff
push 0x490638
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x14], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0x2c]
mov dword fs:[0], eax
lea eax, [esp + 0x18]
xor ebx, ebx
push eax
mov dword [esp + 0x18], ebx
push 8
mov dword [esp + 0x20], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x412868
push 0x400
call fcn.00474661
mov esi, eax
add esp, 4
mov dword [esp + 0x14], esi
lea ecx, [esp + 0x1c]
push ecx
push 0x400
mov dword [esp + 0x3c], ebx
mov edx, dword [esp + 0x20]
mov ebp, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
push esi
push 2
push edx
mov dword [esp + 0x30], ebx
call ebp
mov edi, eax
cmp edi, ebx
jne 0x412812
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x412812
mov eax, dword [esp + 0x1c]
push eax
call fcn.00474661
mov edi, eax
add esp, 4
cmp edi, esi
je 0x4127fc
push esi
call fcn.004759f1
add esp, 4
mov esi, edi
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push edx
push esi
push 2
push eax
call ebp
mov edi, eax
mov ecx, dword [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp edi, ebx
je 0x4128a2
lea edx, [esp + 0x14]
push edx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [esp + 0x48]
push eax
mov dword [esp + 0x40], ebx
mov dword [esp + 0x4c], ebx
mov word [esp + 0x50], 0x500
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
jne 0x41286c
push esi
mov dword [esp + 0x38], 0xffffffff
call fcn.004759f1
add esp, 4
xor al, al
jmp 0x4128bb
xor edi, edi
cmp dword [esi], ebx
jbe 0x412897
lea ebp, [esi + 4]
mov ecx, dword [ebp]
mov edx, dword [esp + 0x14]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
jne 0x412892
inc ebx
add ebp, 8
cmp ebx, dword [esi]
jb 0x412875
jmp 0x412897
mov edi, 1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
cmp edi, 1
push esi
sete bl
mov dword [esp + 0x38], 0xffffffff
call fcn.004759f1
add esp, 4
mov al, bl
mov ecx, dword [esp + 0x2c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x14]
xor ecx, esp
call fcn.00475410
add esp, 0x24
ret
Function at 0x412940
Capabilities:
Check if file exists
Delete directory
Delete file
Enumerate files on windows
Enumerate files recursively
Move file

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x4905fb
mov eax, dword fs:[0]
push eax
sub esp, 0x67c
mov eax, dword [0x4ae7cc]
xor eax, esp
mov dword [esp + 0x674], eax
push ebx
push esi
mov eax, dword [0x4ae7cc]
xor eax, esp
push eax
lea eax, [esp + 0x688]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
push 0x24c
lea eax, [esp + 0x24]
push 0
push eax
mov byte [esp + 0x1b], 0
mov dword [esp + 0x28], 0
call fcn.0047a9a0
xor ecx, ecx
push 0x206
push ecx
lea edx, [esp + 0x48a]
push edx
mov word [esp + 0x48c], cx
call fcn.0047a9a0
mov eax, dword [esi]
add esp, 0x18
push 0x49c868
push eax
lea eax, [esp + 0x47c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x478]
push edx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x18], eax
cmp eax, 0xffffffff
jne 0x4129f9
mov al, 1
jmp 0x412b3a
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x276]
push ecx
mov word [esp + 0x278], ax
call fcn.0047a9a0
add esp, 0xc
mov eax, dword [esi]
lea edx, [esp + 0x48]
push edx
push eax
lea eax, [esp + 0x274]
push eax
call dword [sym.imp.SHLWAPI.dll_PathCombineW]
test eax, eax
je 0x412af4
test byte [esp + 0x1c], 0x10
je 0x412a86
cmp word [esp + 0x48], 0x2e
je 0x412af4
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x270]
call fcn.00402a80
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0x694], 0
call fcn.00412940
add esp, 4
test al, al
mov dword [esp + 0x690], 0xffffffff
mov eax, dword [esp + 0x14]
jmp 0x412acc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0x270]
call fcn.00402a80
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x412ac4
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x412ac4
mov eax, dword [esp + 0x10]
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
xor al, al
jmp 0x412ac6
mov al, 1
test al, al
mov eax, dword [esp + 0x10]
sete bl
add eax, 0xfffffff0
or edx, 0xffffffff
lea ecx, [eax + 0xc]
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x412aeb
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
test bl, bl
je 0x412af4
mov byte [esp + 0xf], 1
mov ebx, dword [esp + 0x18]
lea ecx, [esp + 0x1c]
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x412a19
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
jne 0x412b31
mov edx, dword [esi]
push 4
push eax
push edx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
mov byte [esp + 0xf], 1
xor eax, eax
cmp byte [esp + 0xf], al
sete al
mov ecx, dword [esp + 0x688]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x674]
xor ecx, esp
call fcn.00475410
mov esp, ebp
pop ebp
ret