joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10042e3d
Capabilities:
Compare security identifiers

Disassembly:
push 0xcc
mov eax, 0x1016810b
call fcn.101673d5
mov esi, ecx
lea ecx, [ebp - 0x74]
call fcn.1003edee
push ecx
push ecx
lea eax, [ebp - 0x74]
xor ebx, ebx
push eax
mov ecx, esi
mov dword [ebp - 4], ebx
call fcn.10044949
test al, al
jne 0x10042e8c
mov eax, dword [0x101973c0]
mov esi, 0x8000ffff
cmp eax, 0x101973c0
je 0x10042f15
test byte [eax + 0x44], 1
jne 0x10042f01
jmp 0x10042f15
push 0x12
push 1
lea eax, [ebp - 0xd4]
push 0x10018ba4
push eax
call fcn.1003eec2
add esp, 0x10
cmp byte [ebp - 0x2c], bl
je 0x10042ee6
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10042ee6
cmp byte [ebp - 0x8c], bl
je 0x10042ee6
lea eax, [ebp - 0xd0]
push eax
call dword [sym.imp.ADVAPI32.dll_IsValidSid]
test eax, eax
je 0x10042ee6
lea eax, [ebp - 0xd0]
push eax
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.ADVAPI32.dll_EqualSid]
test eax, eax
setne bl
lea ecx, [ebp - 0xd4]
call fcn.1003efec
lea ecx, [ebp - 0x74]
call fcn.1003efec
mov al, bl
call fcn.10167384
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001932c
push dword [eax + 0x38]
push 0x59
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0xd8]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1004689c
Capabilities:
Check if file exists

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x21c
mov eax, dword [0x101a4c2c]
xor eax, esp
mov dword [esp + 0x218], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
mov dword [esp + 0x14], eax
push ecx
mov esi, 0x104
mov dword [eax], edi
mov edx, esi
mov dword [eax + 4], edi
lea ecx, [esp + 0x1c]
call fcn.1003f1d4
push 0x10019570
mov edx, esi
lea ecx, [esp + 0x1c]
call fcn.1003f209
lea eax, [esp + 0x18]
push eax
push edi
push 0x1f0003
call dword [sym.imp.KERNEL32.dll_OpenSemaphoreW]
mov esi, eax
test esi, esi
jne 0x10046922
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x1004695c
mov ecx, dword [ebp + 4]
mov edx, 0xc8
push 0x10019528
call fcn.1004661b
mov edi, eax
jmp 0x1004695c
lea edx, [esp + 0x10]
mov dword [esp + 0x10], edi
mov ecx, esi
call fcn.1004677d
mov ebx, eax
test ebx, ebx
jns 0x1004694e
mov ecx, dword [ebp + 4]
mov edx, 0xce
push ebx
push 0x10019528
call fcn.100465fe
mov edi, ebx
jmp 0x1004695c
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0x10]
cdq
mov dword [ecx], eax
mov dword [ecx + 4], edx
test esi, esi
je 0x10046966
push esi
call fcn.1004667c
mov ecx, dword [esp + 0x224]
mov eax, edi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 8

Function at 0x1004fde9
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, ecx
push esi
push edi
test edx, edx
je 0x1004fe45
xor eax, eax
mov edi, edx
mov dword [ebp - 4], eax
mov esi, eax
mov ecx, edi
lea eax, [ecx + 2]
mov dword [ebp - 8], eax
mov ax, word [ecx]
add ecx, 2
cmp ax, word [ebp - 4]
jne 0x1004fe0d
sub ecx, dword [ebp - 8]
sar ecx, 1
inc ecx
lea edi, [edi + ecx*2]
lea esi, [esi + ecx*2]
cmp ecx, 1
jne 0x1004fe05
push esi
push edx
push 7
xor eax, eax
push eax
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov ecx, 0x80004005
call fcn.1003ed0b
int3
Function at 0x1004fe50
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x101a4c2c]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [esp + 0x14]
push esi
push edi
push eax
mov edi, ecx
xor ecx, ecx
push 0x2001f
push ecx
push ebx
push dword [edi]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov esi, eax
test esi, esi
jne 0x1004ff34
cmp dword [esp + 0xc], esi
je 0x1004feb6
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, eax
mov eax, dword [esp + 0x1c]
mov dword [esp + 0xc], eax
test esi, esi
jne 0x1004ff34
lea ecx, [esp + 0x20]
push ecx
push esi
push esi
push esi
lea ecx, [esp + 0x28]
push ecx
lea ecx, [esp + 0x3c]
push ecx
push esi
push eax
jmp 0x1004ff03
lea eax, [esp + 0x28]
push eax
lea ecx, [esp + 0x10]
call fcn.1004fe50
mov esi, eax
test esi, esi
jne 0x1004ff34
lea eax, [esp + 0x20]
push eax
push esi
push esi
push esi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x3c]
push eax
push esi
push dword [esp + 0x28]
mov dword [esp + 0x38], 0x100
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
je 0x1004fed8
cmp dword [esp + 0xc], 0
je 0x1004ff2a
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], esi
push ebx
mov ecx, edi
call fcn.1004fd3d
mov esi, eax
cmp dword [esp + 0xc], 0
je 0x1004ff45
push dword [esp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x22c]
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.10166ce0
mov esp, ebp
pop ebp
ret 4
Function at 0x100502db
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0x42c
mov eax, 0x10169099
call fcn.10167441
mov edx, dword [ebp + 0x10]
xor esi, esi
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x424], edx
mov dword [ebp - 0x428], esi
mov dword [ebp - 4], esi
mov dword [ebp - 0x434], ecx
mov dword [ebp - 0x438], esi
mov dword [ebp - 0x420], esi
push 2
pop ecx
push ecx
push esi
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
mov dword [ebp - 0x42c], edi
test edi, edi
jne 0x1005033e
call fcn.1003ed41
mov esi, eax
jmp 0x1005046e
push esi
push ebx
push dword [ebp - 0x424]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceExW]
mov ebx, eax
test ebx, ebx
jne 0x1005035d
call fcn.1003ed41
jmp 0x10050465
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x430], eax
test eax, eax
je 0x10050353
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
mov dword [ebp - 0x424], ebx
lea eax, [ebx + 1]
cmp eax, ebx
jae 0x100503b4
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x1005039f
lea ecx, [ebp - 0x420]
call fcn.100545db
lea ecx, [ebp - 0x428]
call fcn.10044093
mov eax, 0x8007000e
jmp 0x10050494
push 2
pop ecx
mul ecx
mov byte [ebp - 4], cl
cmp edx, esi
ja 0x1005049c
cmp eax, 0xffffffff
ja 0x1005049c
cmp eax, 0x400
jbe 0x100503e8
push eax
lea ecx, [ebp - 0x420]
call fcn.10054fa0
mov eax, dword [ebp - 0x420]
jmp 0x100503f4
lea eax, [ebp - 0x41c]
mov dword [ebp - 0x420], eax
mov dword [ebp - 4], 1
jmp 0x1005041e
test eax, eax
jne 0x10050429
mov esi, 0x8007000e
jmp 0x10050467
push ebx
push eax
push ebx
push dword [ebp - 0x430]
push esi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
je 0x10050353
mov eax, dword [ebp - 0x420]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x438]
push dword [ebp - 0x420]
call fcn.10050e2d
mov esi, eax
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x41c]
cmp dword [ebp - 0x420], eax
je 0x10050487
lea ecx, [ebp - 0x420]
call fcn.100545db
lea ecx, [ebp - 0x428]
call fcn.10044093
mov eax, esi
call fcn.10167393
ret 0x10
mov ecx, 0x80070057
call fcn.1003ed0b
int3
Function at 0x1005ceca
Capabilities:
Delete registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 8
push esi
jb 0x1005ced9
mov edx, dword [edx]
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov esi, eax
test esi, esi
je 0x1005cf11
cmp esi, 2
je 0x1005cf11
test esi, esi
jle 0x1005cefb
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005cf11
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005cf2a
test byte [eax + 0x44], 1
jne 0x1005cf16
jmp 0x1005cf2a
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x21
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 4]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1005d020
Capabilities:
Delete registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [edx + 0x14], 8
jb 0x1005d02e
mov edx, dword [edx]
push esi
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov esi, eax
test esi, esi
je 0x1005d067
cmp esi, 2
je 0x1005d067
test esi, esi
jle 0x1005d051
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d067
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005d080
test byte [eax + 0x44], 1
jne 0x1005d06c
jmp 0x1005d080
pop esi
mov esp, ebp
pop ebp
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x24
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 4]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1005d2a2
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x1c
mov eax, 0x10169bf4
call fcn.101673a2
mov edi, edx
mov ebx, ecx
xor edx, edx
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x14], edx
jb 0x1005d2c1
mov eax, dword [edi]
jmp 0x1005d2c3
mov eax, edi
lea ecx, [ebp - 0x14]
push ecx
push edx
push edx
push edx
push eax
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
cmp esi, 2
jne 0x1005d2e4
cmp byte [ebp + 8], 0
je 0x1005d3bb
cmp esi, 0xea
je 0x1005d31c
test esi, esi
jle 0x1005d2fb
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d31c
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005d3d7
test byte [eax + 0x44], 1
jne 0x1005d3c3
jmp 0x1005d3d7
xor eax, eax
lea ecx, [ebp - 0xe]
mov word [ebp - 0xe], ax
xor esi, esi
mov eax, dword [ebp - 0x14]
shr eax, 1
push ecx
inc eax
mov dword [ebp - 0x28], esi
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x20], esi
call fcn.1005f31b
mov dword [ebp - 4], esi
cmp dword [edi + 0x14], 8
jb 0x1005d34b
mov edi, dword [edi]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x28]
push esi
push esi
push edi
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jle 0x1005d36e
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d3a8
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005d396
test byte [eax + 0x44], 1
je 0x1005d396
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x2a
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x18]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
jmp 0x1005d3e7
push dword [ebp - 0x28]
mov ecx, dword [ebp + 0xc]
call fcn.10045266
lea ecx, [ebp - 0x28]
call fcn.10044371
call fcn.10167370
ret 8
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x29
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x10]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1005d45b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [edx + 0x10], 0
push esi
push edi
push 4
pop edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
jne 0x1005d478
xor edx, edx
jmp 0x1005d480
cmp dword [edx + 0x14], 8
jb 0x1005d480
mov edx, dword [edx]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
lea eax, [ebp - 8]
push eax
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
test esi, esi
jne 0x1005d4a4
cmp dword [ebp - 4], edi
jae 0x1005d4d4
push 0xd
pop esi
cmp esi, 2
jne 0x1005d4af
cmp byte [ebp + 8], 0
je 0x1005d4d4
test esi, esi
jle 0x1005d4be
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d4d4
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005d4f0
test byte [eax + 0x44], 1
jne 0x1005d4dc
jmp 0x1005d4f0
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x2b
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0xc]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1005d507
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 2
push esi
mov esi, ecx
je 0x1005d539
cmp dword [ebp + 0xc], 1
je 0x1005d539
mov eax, dword [0x101973c0]
mov esi, 0x80070057
cmp eax, 0x101973c0
je 0x1005d5b6
test byte [eax + 0x44], 1
jne 0x1005d5a2
jmp 0x1005d5b6
mov ecx, dword [ebp + 8]
cmp dword [ecx + 0x14], 8
mov eax, dword [ecx + 0x10]
jb 0x1005d547
mov ecx, dword [ecx]
cmp dword [edx + 0x14], 8
jb 0x1005d54f
mov edx, dword [edx]
lea eax, [eax*2 + 2]
push eax
push ecx
push dword [ebp + 0xc]
push 0
push edx
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1005d577
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d59b
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005d5b6
test byte [eax + 0x44], 1
je 0x1005d5b6
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x2e
jmp 0x1005d5b0
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x2d
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 4]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1005d61f
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
mov eax, dword [ebp + 8]
push esi
push edi
mov esi, dword [eax]
mov eax, dword [eax + 4]
sub eax, esi
sar eax, 1
cmp eax, 2
jb 0x1005d68c
xor edi, edi
cmp di, word [esi + eax*2 - 2]
jne 0x1005d68c
cmp di, word [esi + eax*2 - 4]
jne 0x1005d68c
cmp dword [edx + 0x14], 8
jb 0x1005d654
mov edx, dword [edx]
add eax, eax
push eax
push esi
push 7
push 0
push edx
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
test esi, esi
jle 0x1005d676
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d6ca
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005d6e6
test byte [eax + 0x44], 1
jne 0x1005d6d2
jmp 0x1005d6e6
mov eax, dword [0x101973c0]
mov esi, 0x80070057
cmp eax, 0x101973c0
je 0x1005d6b7
test byte [eax + 0x44], 1
je 0x1005d6b7
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x2f
pop ecx
call fcn.1003f754
push esi
lea ecx, [esp + 0x10]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
jmp 0x1005d6f7
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x32
pop ecx
call fcn.1003f754
push esi
lea ecx, [esp + 0x10]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1005d808
Capabilities:
Query or enumerate registry key

Disassembly:
push 0x1c
mov eax, 0x10169bf4
call fcn.101673a2
mov edi, edx
mov esi, ecx
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov word [ebp - 0xe], cx
xor ebx, ebx
lea ecx, [ebp - 0xe]
mov dword [ebp - 0x14], eax
push ecx
push eax
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.1005f31b
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
mov dword [ebp - 4], ebx
push eax
push dword [ebp - 0x28]
push edi
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
je 0x1005d8a0
cmp esi, 0x103
je 0x1005d88b
cmp esi, 2
je 0x1005d8b0
test esi, esi
jle 0x1005d875
movzx esi, si
or esi, 0x80070000
test esi, esi
jns 0x1005d8b0
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005d8d4
test byte [eax + 0x44], 1
jne 0x1005d8c0
jmp 0x1005d8d4
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
mov dword [eax + 0x10], ebx
jb 0x1005d899
mov eax, dword [eax]
xor ecx, ecx
mov word [eax], cx
jmp 0x1005d8b0
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp + 8]
inc eax
push eax
push dword [ebp - 0x28]
call fcn.100451ec
lea ecx, [ebp - 0x28]
call fcn.10044371
call fcn.10167370
ret 0xc
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x35
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x18]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3

Function at 0x1005f169
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, 0x114
lea eax, [ebp - 0x120]
push esi
xor ebx, ebx
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov dword [ebp - 0x120], esi
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
jne 0x1005f1d8
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005f1c4
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005f214
test byte [eax + 0x44], 1
jne 0x1005f200
jmp 0x1005f214
cmp dword [ebp - 0x11c], 6
jb 0x1005f1ec
jne 0x1005f1ee
cmp dword [ebp - 0x118], 2
jae 0x1005f1ee
mov bl, 1
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b108
push dword [eax + 0x38]
push 0x79
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x124]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3
Function at 0x1005f6cf
Capabilities:
Delete file
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x101a4c2c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov bl, dl
mov edi, ecx
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
push edi
push 0x1001b118
lea eax, [ebp - 0x210]
push 0x104
push eax
call fcn.1003f277
mov esi, eax
add esp, 0x14
test esi, esi
js 0x1005f79b
push 9
lea eax, [ebp - 0x210]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1005f73f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005f73f
movzx esi, si
or esi, 0x80070000
lea eax, [ebp - 0x210]
test esi, esi
jns 0x1005f777
test bl, bl
je 0x1005f777
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x1005f773
test byte [eax + 0x44], 4
je 0x1005f773
push edi
push dword [eax + 0x3c]
mov edx, 0x1001b124
push dword [eax + 0x38]
push 0xa
pop ecx
call fcn.1003f5f1
mov eax, edi
xor esi, esi
push 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1005f79b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005f79b
movzx esi, si
or esi, 0x80070000
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10166ce0
mov esp, ebp
pop ebp
ret
Function at 0x1005fd20
Capabilities:
Delete directory
Enumerate files on windows

Disassembly:
push 0x300
mov eax, 0x10169ff4
call fcn.101673d5
mov esi, edx
mov edi, ecx
lea eax, [ebp - 0x300]
xor ebx, ebx
push eax
lea ecx, [ebp - 0x30c]
mov dword [ebp - 0x300], ebx
call fcn.1003e2ec
push 0x1001b1b0
mov edx, esi
mov dword [ebp - 4], ebx
lea ecx, [ebp - 0x70]
call fcn.10060566
push 0x250
lea eax, [ebp - 0x2fc]
mov byte [ebp - 4], 1
push ebx
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0x8c]
push 0x1001b1c8
call fcn.10060566
or esi, 0xffffffff
mov byte [ebp - 4], 2
push eax
lea ecx, [ebp - 0x50]
mov dword [ebp - 0x54], esi
call fcn.100455fa
mov byte [ebp - 0x34], 1
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x8c]
push ebx
push 1
call fcn.10045637
cmp byte [ebp - 0x34], 0
je 0x1005fdde
cmp dword [ebp - 0x3c], 8
mov eax, dword [ebp - 0x50]
mov byte [ebp - 0x34], bl
jae 0x1005fdc9
lea eax, [ebp - 0x50]
lea ecx, [ebp - 0x2fc]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x54], eax
cmp eax, esi
jmp 0x1005fdf0
lea eax, [ebp - 0x2fc]
push eax
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
setne al
test al, al
je 0x1005fe62
push 0x10018f30
lea edx, [ebp - 0x70]
lea ecx, [ebp - 0xa8]
call fcn.10060566
lea ecx, [ebp - 0x2d0]
mov byte [ebp - 4], 5
push ecx
mov ecx, eax
call fcn.10044c05
xor ecx, ecx
mov dword [ebp - 0x1c], 7
mov word [ebp - 0x30], cx
lea ecx, [ebp - 0x30]
push eax
mov dword [ebp - 0x20], ebx
call fcn.10044812
push ebx
push 1
lea ecx, [ebp - 0xa8]
mov byte [ebp - 4], 4
call fcn.10045637
cmp dword [ebp - 0x1c], 8
mov ecx, dword [ebp - 0x30]
jae 0x1005fe53
lea ecx, [ebp - 0x30]
mov dl, 1
call fcn.1005f7ae
lea ecx, [ebp - 0x30]
jmp 0x1005fdac
cmp dword [ebp - 0x5c], 8
mov eax, dword [ebp - 0x70]
jae 0x1005fe6e
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
cmp dword [ebp - 0x54], esi
je 0x1005fe83
push dword [ebp - 0x54]
call dword [sym.imp.KERNEL32.dll_FindClose]
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.10045637
push ebx
push 1
lea ecx, [ebp - 0x70]
call fcn.10045637
lea ecx, [ebp - 0x30c]
mov dword [ebp - 4], esi
call fcn.1003e392
mov bh, byte [ebp + 0xc]
mov bl, byte [ebp + 0x10]
test bh, bh
jne 0x1005feb9
test bl, bl
je 0x1005ff39
push esi
mov edx, edi
lea ecx, [ebp - 0x24]
call fcn.1005f861
mov esi, dword [ebp - 0x20]
mov eax, dword [esi]
mov dword [ebp - 0x300], eax
cmp eax, esi
je 0x1005ff08
lea edx, [eax + 0xc]
test bh, bh
je 0x1005fee5
push 0
mov ecx, edi
call fcn.10060178
jmp 0x1005fef0
test bl, bl
je 0x1005fef0
mov ecx, edi
call fcn.100601ec
lea ecx, [ebp - 0x300]
call fcn.10060288
mov eax, dword [ebp - 0x300]
cmp eax, esi
jne 0x1005fed3
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 6
lea ecx, [ebp - 0x24]
push dword [esi + 4]
call fcn.10060522
mov eax, dword [ebp - 0x20]
mov dword [eax + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [eax], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 8], eax
push dword [ebp - 0x20]
and dword [ebp - 0x1c], 0
call dword [sym.imp.msvcrt.dll_void___cdecl_operator_delete_void__]
pop ecx
call fcn.10167384
ret 0xc
Function at 0x1005ff41
Capabilities:
Check if file exists
Create directory
Get file attributes

Disassembly:
push 0xbc
mov eax, 0x1016a027
call fcn.101673d5
mov esi, ecx
push ecx
push ecx
lea ecx, [ebp - 0xc8]
call fcn.10060346
xor edi, edi
lea ecx, [ebp - 0xc8]
mov edx, esi
mov dword [ebp - 4], edi
call fcn.1004e242
mov edx, 0x1001b1b0
mov ecx, eax
call fcn.1004e242
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.1004dead
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1005ff98
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push edi
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.10045637
cmp esi, 0xffffffff
jne 0x1006000e
lea eax, [ebp - 0x2c]
push eax
lea ecx, [ebp - 0xc4]
call fcn.1004dead
cmp dword [ebp - 0x18], 8
mov eax, dword [ebp - 0x2c]
jae 0x1005ffcc
lea eax, [ebp - 0x2c]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push edi
push 1
lea ecx, [ebp - 0x2c]
mov esi, eax
call fcn.10045637
test esi, esi
jne 0x1006000e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jle 0x1005fffa
movzx esi, si
or esi, 0x80070000
mov eax, dword [0x101973c0]
cmp eax, 0x101973c0
je 0x10060033
test byte [eax + 0x44], 1
jne 0x1006001f
jmp 0x10060033
lea ecx, [ebp - 0xc8]
call fcn.1005fb7d
call fcn.10167384
ret
push esi
push dword [eax + 0x3c]
mov edx, 0x1001b208
push dword [eax + 0x38]
push 0xf
pop ecx
call fcn.1003f754
push esi
lea ecx, [ebp - 0x30]
call fcn.1003ecfb
push 0x10196090
mov eax, ecx
push eax
call sub.msvcrt.dll__CxxThrowException
int3