joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1004816
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20c
mov eax, dword [0x1006098]
xor eax, ebp
mov dword [ebp - 4], eax
test esi, esi
je 0x10048ab
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1004834
sub eax, edx
sar eax, 1
mov ecx, 0x104
cmp eax, ecx
ja 0x10048ab
push esi
push ecx
lea eax, [ebp - 0x20c]
push eax
call sub.msvcrt.dll_wcscpy_s
lea eax, [ebp - 0x20c]
add esp, 0xc
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x1004865
sub eax, edx
sar eax, 1
lea eax, [ebp + eax*2 - 0x20c]
dec eax
dec eax
movzx ecx, word [eax]
cmp cx, 0x5c
je 0x100488b
cmp cx, 0x2f
jne 0x1004892
xor ecx, ecx
mov word [eax], cx
jmp 0x100487a
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
jmp 0x10048ad
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.01002cb0
leave
ret
Function at 0x10048be
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x768
mov eax, dword [0x1006098]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push dword [edi + 4]
mov dword [ebp - 0x768], eax
mov ebx, 0x104
lea eax, [ebp - 0x20c]
push ebx
push eax
call sub.msvcrt.dll_wcscpy_s
mov ecx, dword [edi + 4]
mov eax, ecx
add esp, 0xc
lea edx, [eax + 2]
mov si, word [eax]
inc eax
inc eax
test si, si
jne 0x10048fe
sub eax, edx
sar eax, 1
sub ebx, eax
mov eax, ecx
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x1004913
sub eax, ecx
sar eax, 1
push 0x1001d90
lea eax, [ebp + eax*2 - 0x20c]
push ebx
push eax
mov dword [ebp - 0x764], eax
call sub.msvcrt.dll_wcscpy_s
add esp, 0xc
lea eax, [ebp - 0x75c]
push eax
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x760], eax
cmp eax, 0xffffffff
jne 0x100496e
call dword [sym.imp.KERNEL32.dll_GetLastError]
sub eax, 0x12
neg eax
sbb eax, eax
jmp 0x1004af9
mov ecx, 0x1001d8c
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100499f
test dx, dx
je 0x100499b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100499f
add eax, 4
add ecx, 4
test dx, dx
jne 0x1004979
xor eax, eax
jmp 0x10049a4
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004abf
mov ecx, 0x1001d84
lea eax, [ebp - 0x730]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x10049dd
test dx, dx
je 0x10049d9
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x10049dd
add eax, 4
add ecx, 4
test dx, dx
jne 0x10049b7
xor eax, eax
jmp 0x10049e2
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x1004abf
lea eax, [ebp - 0x730]
push eax
call dword [sym.imp.msvcrt.dll__wcslwr]
push eax
push ebx
push dword [ebp - 0x764]
call sub.msvcrt.dll_wcscpy_s
mov eax, dword [edi + 0xc]
add esp, 0x10
test eax, eax
je 0x1004a23
push eax
lea eax, [ebp - 0x20c]
push 0x104
push eax
call sub.msvcrt.dll_wcscat_s
add esp, 0xc
push 0x104
lea eax, [ebp - 0x730]
push eax
push dword [edi + 8]
call fcn.01004d7d
test eax, eax
je 0x1004abf
cmp dword [edi + 0xc], 0
je 0x1004a9c
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
lea eax, [ebp - 0x30c]
push eax
lea edx, [ebp - 0x20c]
call fcn.01004743
test eax, eax
je 0x1004a9c
test byte [ebp - 0x75c], 0x10
je 0x1004abf
lea esi, [ebp - 0x30c]
call fcn.01004816
test eax, eax
je 0x1004abf
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x50c]
push eax
mov eax, esi
push eax
mov eax, dword [ebp + 8]
call fcn.01004588
jmp 0x1004abf
lea esi, [ebp - 0x20c]
call fcn.01004816
test eax, eax
je 0x1004abf
mov eax, esi
push eax
mov eax, dword [ebp - 0x768]
call fcn.01004661
mov esi, eax
test esi, esi
jne 0x1004adc
lea eax, [ebp - 0x75c]
push eax
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
mov esi, eax
test esi, esi
jne 0x100496e
push dword [ebp - 0x760]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jne 0x1004af7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
jne 0x1004af7
mov eax, esi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.01002cb0
leave
ret 8
Function at 0x401140
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
cmp dword [esi], 0
jne 0x401169
push str.m_hKey___0
push 0
push 0x1460
push 0x42a3b8
push 2
call fcn.004084a0
add esp, 0x14
cmp eax, 1
jne 0x401169
int3
push dword [esp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop esi
ret 4

Function at 0x401206
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, ecx
xor ebx, ebx
cmp dword [edi], ebx
mov esi, 0x42a3b8
jne 0x401235
push str.m_hKey___0
push ebx
push 0x15e8
push esi
push 2
call fcn.004084a0
add esp, 0x14
cmp eax, 1
jne 0x401235
int3
xor eax, eax
cmp dword [ebp + 0xc], ebx
setne al
cmp eax, ebx
jne 0x401267
push 0x42a4e0
push ebx
push 0x15e9
push esi
push 2
call fcn.004084a0
add esp, 0x14
cmp eax, 1
jne 0x40125d
int3
push 0x80004005
call fcn.004010fd
cmp dword [ebp + 0x10], 1
je 0x40128f
cmp dword [ebp + 0x10], 2
je 0x40128f
push str._dwType____1______dwType____2___
push ebx
push 0x15ea
push esi
push 2
call fcn.004084a0
add esp, 0x14
cmp eax, 1
jne 0x40128f
int3
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
inc eax
push eax
push dword [ebp + 0xc]
push dword [ebp + 0x10]
push ebx
push dword [ebp + 8]
push dword [edi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x401b71
Capabilities:
Create thread

Disassembly:
push ecx
push esi
push edi
xor edi, edi
push edi
push edi
push edi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_CreateEventA]
cmp eax, edi
mov dword [esi + 0x34], eax
jne 0x401b8d
xor al, al
jmp 0x401ba7
lea eax, [esp + 8]
push eax
push edi
push esi
push 0x401b3d
push edi
push edi
call dword [sym.imp.KERNEL32.dll_CreateThread]
neg eax
sbb eax, eax
neg eax
pop edi
pop esi
pop ecx
ret
Function at 0x409130
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4393f0]
jne 0x40913a
repz ret
jmp fcn.004147a0
Function at 0x413f70
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, dword [0x439714]
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x413fab
mov ecx, dword [0x43aaf8]
push ecx
call fcn.00413ec0
add esp, 4
mov dword [ebp - 4], eax
mov edx, dword [ebp - 4]
push edx
mov eax, dword [0x439714]
push eax
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret
Function at 0x100af06
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x100aef8
mov eax, 0x80070057
jmp 0x100af73
push ebx
push esi
push edi
push dword [ebp + 8]
call fcn.0100c9f8
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jne 0x100af3b
call ebx
test eax, eax
jle 0x100af23
and eax, edi
or eax, esi
test eax, eax
jge 0x100af34
call ebx
test eax, eax
jle 0x100af2f
and eax, edi
or eax, esi
mov dword [ebp - 4], eax
jmp 0x100af3b
mov dword [ebp - 4], 0x80004005
call fcn.0100c9b4
test eax, eax
jne 0x100af6d
cmp dword [ebp - 4], eax
jl 0x100af6d
call ebx
test eax, eax
jle 0x100af55
and eax, edi
or eax, esi
test eax, eax
jge 0x100af66
call ebx
test eax, eax
jle 0x100af61
and eax, edi
or eax, esi
mov dword [ebp - 4], eax
jmp 0x100af6d
mov dword [ebp - 4], 0x80004005
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100c9ad
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
xor eax, eax
test ecx, ecx
je 0x100c9ab
mov dword [0x101919c], ecx
inc eax
pop ebp
ret 4

Function at 0x100d399
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
xor eax, eax
jmp 0x100d395
test eax, eax
jne 0x100d39a
mov ecx, dword [esi]
test ecx, ecx
je 0x100d392
call ecx
add esi, 4
cmp esi, dword [ebp + 0xc]
jb 0x100d386
pop esi
pop ebp
ret
Function at 0x100d444
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x5c
push 0x10177b0
call fcn.0100d924
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10195d4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100d43d
cmp eax, esi
jne 0x100d430
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100d440
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100d417
xor esi, esi
inc esi
mov eax, dword [0x10195d0]
cmp eax, esi
jne 0x100d453
push 0x1f
call fcn.0100d916
pop ecx
jmp 0x100d482
mov eax, dword [0x10195d0]
test eax, eax
jne 0x100d47c
mov dword [0x10195d0], esi
push 0x10012fc
push 0x10012f0
call fcn.0100d379
pop ecx
pop ecx
test eax, eax
je 0x100d482
jmp 0x100d5a6
mov dword [0x10191d0], esi
mov eax, dword [0x10195d0]
cmp eax, esi
jne 0x100d4a6
push 0x10012ec
push 0x10012d4
call fcn.0100d90a
pop ecx
pop ecx
mov dword [0x10195d0], 2
cmp dword [ebp - 0x20], ebx
jne 0x100d4b3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10195e0], ebx
je 0x100d4d4
push 0x10195e0
call fcn.0100d899
pop ecx
test eax, eax
je 0x100d4d4
push ebx
push 2
push ebx
call dword [0x10195e0]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100d5a6
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100d53e
cmp cx, bx
je 0x100d4f9
cmp dword [ebp - 0x1c], ebx
jne 0x100d53e
movzx ecx, word [eax]
cmp cx, bx
je 0x100d50e
cmp cx, 0x20
ja 0x100d50e
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100d4f9
test byte [ebp - 0x40], 1
je 0x100d51a
movzx ecx, word [ebp - 0x3c]
jmp 0x100d51d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10191cc], eax
cmp dword [0x10191c0], ebx
jne 0x100d583
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100d54f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100d4e3
cmp dword [0x10191d0], ebx
jne 0x100d591
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10191cc]
jmp 0x100d5b2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100d969
ret
call fcn.0100da71
jmp 0x100d3da
Function at 0x100d4d0
Capabilities:
Delete registry key
Delete registry value

Disassembly:
push 0x5c
push 0x10177b0
call fcn.0100d924
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10195d4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100d43d
cmp eax, esi
jne 0x100d430
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100d440
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100d417
xor esi, esi
inc esi
mov eax, dword [0x10195d0]
cmp eax, esi
jne 0x100d453
push 0x1f
call fcn.0100d916
pop ecx
jmp 0x100d482
mov eax, dword [0x10195d0]
test eax, eax
jne 0x100d47c
mov dword [0x10195d0], esi
push 0x10012fc
push 0x10012f0
call fcn.0100d379
pop ecx
pop ecx
test eax, eax
je 0x100d482
jmp 0x100d5a6
mov dword [0x10191d0], esi
mov eax, dword [0x10195d0]
cmp eax, esi
jne 0x100d4a6
push 0x10012ec
push 0x10012d4
call fcn.0100d90a
pop ecx
pop ecx
mov dword [0x10195d0], 2
cmp dword [ebp - 0x20], ebx
jne 0x100d4b3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10195e0], ebx
je 0x100d4d4
push 0x10195e0
call fcn.0100d899
pop ecx
test eax, eax
je 0x100d4d4
push ebx
push 2
push ebx
call dword [0x10195e0]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100d5a6
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100d53e
cmp cx, bx
je 0x100d4f9
cmp dword [ebp - 0x1c], ebx
jne 0x100d53e
movzx ecx, word [eax]
cmp cx, bx
je 0x100d50e
cmp cx, 0x20
ja 0x100d50e
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100d4f9
test byte [ebp - 0x40], 1
je 0x100d51a
movzx ecx, word [ebp - 0x3c]
jmp 0x100d51d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10191cc], eax
cmp dword [0x10191c0], ebx
jne 0x100d583
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100d54f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100d4e3
cmp dword [0x10191d0], ebx
jne 0x100d591
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10191cc]
jmp 0x100d5b2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100d969
ret
call fcn.0100da71
jmp 0x100d3da
Function at 0x100d682
Capabilities:
Query environment variable

Disassembly:
push 0x5c
push 0x10177b0
call fcn.0100d924
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x10195d4
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100d43d
cmp eax, esi
jne 0x100d430
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100d440
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100d417
xor esi, esi
inc esi
mov eax, dword [0x10195d0]
cmp eax, esi
jne 0x100d453
push 0x1f
call fcn.0100d916
pop ecx
jmp 0x100d482
mov eax, dword [0x10195d0]
test eax, eax
jne 0x100d47c
mov dword [0x10195d0], esi
push 0x10012fc
push 0x10012f0
call fcn.0100d379
pop ecx
pop ecx
test eax, eax
je 0x100d482
jmp 0x100d5a6
mov dword [0x10191d0], esi
mov eax, dword [0x10195d0]
cmp eax, esi
jne 0x100d4a6
push 0x10012ec
push 0x10012d4
call fcn.0100d90a
pop ecx
pop ecx
mov dword [0x10195d0], 2
cmp dword [ebp - 0x20], ebx
jne 0x100d4b3
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x10195e0], ebx
je 0x100d4d4
push 0x10195e0
call fcn.0100d899
pop ecx
test eax, eax
je 0x100d4d4
push ebx
push 2
push ebx
call dword [0x10195e0]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100d5a6
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100d53e
cmp cx, bx
je 0x100d4f9
cmp dword [ebp - 0x1c], ebx
jne 0x100d53e
movzx ecx, word [eax]
cmp cx, bx
je 0x100d50e
cmp cx, 0x20
ja 0x100d50e
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100d4f9
test byte [ebp - 0x40], 1
je 0x100d51a
movzx ecx, word [ebp - 0x3c]
jmp 0x100d51d
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x10191cc], eax
cmp dword [0x10191c0], ebx
jne 0x100d583
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100d54f
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100d4e3
cmp dword [0x10191d0], ebx
jne 0x100d591
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x10191cc]
jmp 0x100d5b2
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100d969
ret
call fcn.0100da71
jmp 0x100d3da
Function at 0x100d755
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
push 0x10177d8
call fcn.0100d924
mov eax, dword [0x10195dc]
mov dword [ebp - 0x1c], eax
cmp eax, 0xffffffff
jne 0x100d71a
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__onexit]
pop ecx
jmp 0x100d76b
push 8
call fcn.0100dc06
pop ecx
and dword [ebp - 4], 0
mov eax, dword [0x10195dc]
mov dword [ebp - 0x1c], eax
mov eax, dword [0x10195d8]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x1c]
push eax
push dword [ebp + 8]
call fcn.0100dbfa
add esp, 0xc
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x1c]
mov dword [0x10195dc], eax
mov eax, dword [ebp - 0x20]
mov dword [0x10195d8], eax
mov dword [ebp - 4], 0xfffffffe
call fcn.0100d771
mov eax, dword [ebp - 0x24]
call fcn.0100d969
ret

Function at 0x100d81e
Capabilities:
Delete registry key
Delete registry value
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x100d826
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100d822
xor edx, edx
mov ecx, 0x10b
cmp word [eax + 0x18], cx
sete dl
mov eax, edx
pop ebp
ret
Function at 0x100e5ff
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x100e5f3
mov eax, dword [ebp + 8]
test eax, eax
je 0x100e5f3
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100e508
sub eax, edx
sar eax, 1
mov dword [ebp - 4], eax
mov eax, edi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x100e51e
sub eax, ecx
sar eax, 1
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, eax
push esi
mov dword [ebp - 8], ebx
je 0x100e545
xor eax, eax
cmp dword [ebp - 4], ebx
sete al
mov esi, eax
jmp 0x100e54b
cmp dword [ebp - 4], ebx
sbb esi, esi
inc esi
test esi, esi
je 0x100e5ed
cmp dword [ebp + 0x14], 0
je 0x100e5d8
push 0x3f
push edi
call dword [sym.imp.msvcrt.dll_wcschr]
pop ecx
pop ecx
test eax, eax
je 0x100e5d8
and dword [ebp + 0xc], 0
test ebx, ebx
jbe 0x100e5ed
mov ebx, dword [ebp + 8]
sub ebx, edi
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 4]
jae 0x100e5ed
test esi, esi
je 0x100e5ed
movzx edx, word [edi]
push 0x3f
pop eax
cmp ax, dx
je 0x100e5c6
movzx eax, word [ebx + edi]
cmp ax, 0x61
jb 0x100e5a4
cmp ax, 0x7a
ja 0x100e5a4
movzx ecx, ax
sub ecx, 0x20
jmp 0x100e5a7
movzx ecx, ax
cmp dx, 0x61
jb 0x100e5bb
cmp dx, 0x7a
ja 0x100e5bb
movzx eax, dx
sub eax, 0x20
jmp 0x100e5be
movzx eax, dx
cmp ecx, eax
je 0x100e5c6
xor esi, esi
jmp 0x100e5c9
xor esi, esi
inc esi
inc dword [ebp + 0xc]
mov eax, dword [ebp + 0xc]
inc edi
inc edi
cmp eax, dword [ebp - 8]
jb 0x100e575
jmp 0x100e5ed
push ebx
push edi
push dword [ebp + 8]
call dword [sym.imp.msvcrt.dll__wcsnicmp]
add esp, 0xc
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov eax, esi
pop esi
pop ebx
jmp 0x100e602
mov eax, dword fs:[0x18]
mov dword [eax + 0x34], 0x57
xor eax, eax
pop edi
leave
ret 0x10

Function at 0x100ee09
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 0xc]
xor eax, eax
test ecx, ecx
je 0x100ee0a
cmp ecx, 0x7fffffff
jbe 0x100ee0f
mov eax, 0x80070057
test eax, eax
jl 0x100ee4c
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea esi, [ecx - 1]
push esi
push edi
xor ebx, ebx
call dword [sym.imp.msvcrt.dll__vsnwprintf]
add esp, 0x10
test eax, eax
jl 0x100ee3c
cmp eax, esi
ja 0x100ee3c
jne 0x100ee47
jmp 0x100ee41
mov ebx, 0x8007007a
xor eax, eax
mov word [edi + esi*2], ax
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret
Function at 0x100f01c
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor edi, edi
xor esi, esi
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
cmp dword [ebp + 8], edi
jne 0x100ef53
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
jmp 0x100efd4
lea eax, [ebp - 8]
push eax
call fcn.0100ffe4
push edi
push 0x80
push 3
push edi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x100efc9
push ebx
push eax
call fcn.0100eaed
mov esi, eax
cmp esi, edi
je 0x100efda
xor ebx, ebx
inc ebx
cmp dword [ebp + 0x10], edi
jne 0x100efa2
cmp dword [esi], ebx
je 0x100efa2
push dword [ebp + 8]
call fcn.0100ebae
test eax, eax
je 0x100efa5
mov dword [ebp - 4], ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
cmp dword [ebp - 4], edi
jne 0x100efc9
cmp esi, edi
je 0x100efc9
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
push edi
push dword [ebp - 8]
call fcn.01010080
mov eax, esi
pop edi
pop esi
leave
ret 0xc
push 0x38
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
cmp esi, edi
je 0x100efa5
push edi
lea eax, [ebp + 0x10]
push eax
push 0xc
lea eax, [ebp - 0x14]
push eax
push edi
push edi
push 0x2d1080
push dword [ebp + 8]
xor ebx, ebx
inc ebx
mov dword [ebp + 0x10], edi
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x100efa5
mov eax, dword [ebp - 0x10]
mov dword [esi + 8], eax
cmp dword [ebp + 0xc], edi
je 0x100efa2
cmp dword [ebp - 0xc], edi
jbe 0x100efa5
push edi
push eax
call fcn.0100ee53
cmp eax, edi
je 0x100efa5
xor edx, edx
cmp dword [eax + 4], edi
jbe 0x100f080
lea ecx, [eax + 0x38]
cmp dword [ebp - 4], edi
jne 0x100f080
mov ebx, dword [ebp - 0xc]
cmp ebx, dword [ecx + 0x10]
jne 0x100f074
mov ebx, dword [ecx]
mov dword [esi + 0x10], ebx
mov ebx, dword [ecx + 4]
mov dword [esi + 0x14], ebx
mov ebx, dword [ecx + 8]
mov dword [esi + 0x18], ebx
mov ebx, dword [ecx + 0xc]
mov dword [ebp - 4], 1
mov dword [esi + 0x1c], ebx
inc edx
add ecx, 0x90
cmp edx, dword [eax + 4]
jb 0x100f049
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100efa5
Function at 0x100f114
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [ebp + 8], edi
mov dword [ebp - 4], edi
jl 0x100f17f
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x100f17f
push edi
push dword [ebp + 8]
call fcn.0100ee53
cmp eax, edi
je 0x100f169
mov ecx, dword [eax]
mov dword [esi], ecx
cmp ecx, edi
jne 0x100f155
cmp dword [eax + 4], edi
jne 0x100f155
cmp dword [eax + 8], edi
jne 0x100f155
mov dword [esi], 2
push eax
xor ebx, ebx
push edi
inc ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100f172
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
jmp 0x100f189
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x100f209
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
xor ebx, ebx
push edi
xor esi, esi
xor edi, edi
cmp dword [ebp + 8], ebx
mov dword [ebp - 4], ebx
jl 0x100f20b
cmp dword [ebp + 0xc], ebx
je 0x100f20b
push ebx
push dword [ebp + 8]
call fcn.0100ee53
cmp eax, ebx
je 0x100f1f5
mov edx, dword [eax + 4]
cmp edx, ebx
jbe 0x100f1dc
lea ecx, [eax + 0x48]
cmp dword [ecx - 0x18], 2
je 0x100f1d2
cmp dword [ecx], ebx
je 0x100f1d3
inc edi
add ecx, 0x90
dec edx
jne 0x100f1c8
mov ecx, dword [ebp + 0xc]
push eax
xor esi, esi
push ebx
mov dword [ecx], edi
inc esi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
jmp 0x100f1fe
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, esi
jmp 0x100f215
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8