joyce8/EMBER2024-capa huggingface dataset:
Function at 0x106f1ab
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x50]
mov dword [ebp - 0x14], eax
movzx eax, word [esi + 0x14]
lea edx, [eax + esi + 0x18]
movzx eax, word [esi + 6]
test eax, eax
jbe 0x106f2c4
add edx, 8
push ebx
mov dword [ebp - 0xc], edx
mov dword [ebp - 0x10], eax
push edi
test byte [edx + 0x1f], 0x20
je 0x106f2b3
mov eax, dword [edx]
mov edi, dword [edx + 8]
cmp eax, edi
jae 0x106f1f1
mov edi, eax
mov eax, dword [edx + 0xc]
mov ecx, dword [ebp + 0xc]
add ecx, eax
cmp eax, dword [ebp + 0x10]
jae 0x106f2b3
lea ebx, [eax + edi]
cmp ebx, dword [ebp + 0x10]
ja 0x106f2b3
cmp word [esi + 4], 0x14c
jne 0x106f2b3
lea ebx, [ecx + edi - 5]
cmp ecx, ebx
mov edi, ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], edi
jae 0x106f2b3
mov ebx, dword [edx + 4]
mov ecx, dword [ebp + 0x18]
add ebx, 5
add eax, ecx
mov dword [ebp - 8], eax
cmp byte [edi], 0xe8
jne 0x106f2a3
mov eax, dword [ebp - 8]
xor ecx, ecx
test byte [eax], 1
jne 0x106f2a3
inc ecx
inc eax
cmp ecx, 5
jb 0x106f246
mov edi, dword [edi + 1]
lea esi, [ebx + edi]
cmp esi, dword [ebp - 0x14]
jae 0x106f2a0
mov ecx, dword [ebp + 8]
mov edx, esi
call fcn.0106e258
mov ecx, dword [ebp + 0x18]
test byte [eax + ecx], 1
jne 0x106f29d
mov ecx, dword [ebp + 0x14]
mov edx, esi
call fcn.0106e77b
mov ecx, dword [ebp + 0x14]
mov edx, ebx
mov esi, eax
call fcn.0106e77b
sub esi, eax
cmp esi, edi
je 0x106f292
mov eax, dword [ebp - 4]
mov dword [eax + 1], esi
add dword [ebp - 4], 4
add dword [ebp - 8], 4
add ebx, 4
mov edx, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp - 4]
inc edi
inc dword [ebp - 8]
inc ebx
cmp edi, dword [ebp - 0x18]
mov dword [ebp - 4], edi
jb 0x106f23c
add edx, 0x28
dec dword [ebp - 0x10]
mov dword [ebp - 0xc], edx
jne 0x106f1dc
pop edi
pop ebx
pop esi
leave
ret 0x14

Function at 0x1070b7a
Capabilities:
Access the windows event log

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
push 0xa
pop eax
cmp dword [ebp + 0x18], eax
jbe 0x1070b8d
mov dword [ebp + 0x18], eax
push esi
push edi
xor edi, edi
xor eax, eax
cmp dword [ebp + 0x18], edi
jbe 0x1070baa
lea ecx, [ebp + 0x18]
add ecx, 4
mov edx, dword [ecx]
mov dword [ebp + eax*4 - 0x28], edx
inc eax
cmp eax, dword [ebp + 0x18]
jb 0x1070b9b
push dword [ebp + 0x14]
push edi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov esi, eax
cmp esi, edi
je 0x1070bdd
push edi
lea eax, [ebp - 0x28]
push eax
push edi
push dword [ebp + 0x18]
push dword [ebp + 0x10]
push dword [ebp + 8]
push edi
push dword [ebp + 0xc]
push esi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
push esi
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
mov eax, edi
pop edi
pop esi
leave
ret
Function at 0x1070db7
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [ebp + 8]
push ebx
push esi
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1070dc9
sub eax, edx
inc eax
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
cmp esi, ebx
pop ecx
mov dword [ebp - 4], esi
jne 0x1070dfd
push 8
pop esi
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp + 0x10]
cmp eax, ebx
je 0x1070df6
mov dword [eax], esi
xor eax, eax
jmp 0x1070e9b
mov eax, dword [ebp + 8]
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x1070e04
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x58]
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x58], 0x44
je 0x1070e2f
mov dword [ebp - 0x2c], edi
mov word [ebp - 0x28], bx
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x58]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
jne 0x1070e63
push esi
call fcn.0106bf39
mov esi, dword [ebp + 0x10]
cmp esi, ebx
pop ecx
je 0x1070e5f
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
xor eax, eax
jmp 0x1070e9a
push 0xffffffffffffffff
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [ebp + 0x10], ebx
je 0x1070e7f
push dword [ebp + 0x10]
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
push dword [ebp - 0x14]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x10]
call esi
push dword [ebp - 4]
call fcn.0106bf39
pop ecx
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x1071051
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 2
push 0
push 0x1024398
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x10710a1
cmp dword [ebp + 8], eax
push 4
setne al
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push 4
push esi
push 0x1024380
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
sete al
pop esi
leave
ret 4
Function at 0x10710ad
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x14]
mov dword [ebp - 0x114], eax
mov eax, dword [ebp + 0x18]
push esi
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
mov dword [ebp - 0x110], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x10c], eax
mov ecx, edi
jne 0x10710ef
mov ecx, 0x10bc898
lea edx, [ebp - 0x108]
mov al, byte [ecx]
inc ecx
mov byte [edx], al
inc edx
test al, al
jne 0x10710f5
test ebx, ebx
mov esi, 0x104
je 0x1071117
push esi
lea eax, [ebp - 0x108]
push eax
push ebx
push eax
call fcn.01070fc9
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x107112e
xor eax, eax
inc eax
jmp 0x1071193
xor eax, eax
cmp dword [ebp + 0x24], eax
je 0x1071139
xor eax, eax
jmp 0x1071193
push eax
push esi
push dword [ebp - 0x10c]
push dword [ebp + 0x1c]
push eax
push ebx
push edi
push dword [ebp - 0x110]
push eax
push dword [ebp - 0x114]
call dword [sym.imp.UPDSPAPI.dll_UpdSpPromptForDiskA]
sub eax, 0
je 0x1071179
dec eax
je 0x1071172
dec eax
je 0x107116e
push 8
call fcn.01037f35
jmp 0x1071135
push 2
jmp 0x1071192
push 0x4c7
jmp 0x1071167
mov eax, dword [ebp - 0x10c]
mov edx, 0x10bc898
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x1071186
push 4
pop eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 0x20
Function at 0x1071432
Capabilities:
Check if file exists
Get file attributes
Query environment variable
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
lea eax, [ebp - 4]
push eax
push 0x20019
xor ebx, ebx
push ebx
push dword [ebp + 8]
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1071460
xor eax, eax
jmp 0x10715d9
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp + 8], ebx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x107146a
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
sub eax, esi
lea ecx, [ebp + 8]
push ecx
push ebx
neg eax
lea ecx, [ebp - 8]
push ecx
sbb eax, eax
and eax, dword [ebp + 0xc]
push ebx
push eax
push dword [ebp - 4]
call edi
cmp eax, ebx
je 0x10714a3
cmp eax, 0xea
je 0x10714a3
xor eax, eax
jmp 0x10715d7
mov eax, dword [ebp + 8]
inc eax
push eax
call sub.msvcrt.dll_malloc
mov esi, eax
cmp esi, ebx
pop ecx
jne 0x10714bb
xor esi, esi
jmp 0x10715cc
lea eax, [ebp + 8]
push eax
push esi
lea eax, [ebp - 8]
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp - 4]
call edi
cmp eax, ebx
mov ecx, dword [ebp + 8]
mov byte [ecx + esi], bl
push esi
jne 0x10715ad
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x1071522
cmp dword [ebp - 8], 2
jne 0x1071522
mov edi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsA]
push ebx
push ebx
push esi
call edi
cmp eax, ebx
mov dword [ebp + 0xc], eax
je 0x1071522
push eax
call sub.msvcrt.dll_malloc
cmp eax, ebx
pop ecx
mov dword [ebp - 0xc], eax
je 0x1071522
push dword [ebp + 0xc]
push eax
push esi
call edi
test eax, eax
je 0x1071522
push esi
call fcn.0106bf39
mov esi, dword [ebp - 0xc]
pop ecx
push 0x2c
push esi
call sub.msvcrt.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x1071532
mov byte [eax], bl
push 0x3b
push esi
call sub.msvcrt.dll_strchr
cmp eax, ebx
pop ecx
pop ecx
je 0x1071542
mov byte [eax], bl
cmp esi, ebx
je 0x10715a0
cmp byte [esi], 0x22
jne 0x10715a0
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1071550
sub eax, edx
cmp byte [eax + esi - 1], 0x22
jne 0x10715a0
mov eax, esi
lea edi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x1071565
sub eax, edi
lea ecx, [esi + 1]
mov byte [eax + esi - 1], bl
mov eax, ecx
lea edi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x107157a
sub eax, edi
push eax
push ecx
push esi
call sub.msvcrt.dll_memmove
mov eax, esi
add esp, 0xc
lea ecx, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x1071593
sub eax, ecx
mov byte [eax + esi - 1], bl
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10715b8
push esi
call fcn.0106bf39
pop ecx
jmp 0x10714b4
test al, 0x10
jne 0x10715cc
push 0x5c
push esi
call sub.msvcrt.dll_strrchr
cmp eax, ebx
pop ecx
pop ecx
je 0x10715cc
mov byte [eax], bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x1071880
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
xor esi, esi
push esi
push esi
push 3
push esi
push 3
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10718e9
push esi
lea eax, [ebp + 8]
push eax
push 0xc
lea eax, [ebp - 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10718e2
cmp dword [ebp + 8], 0xc
jne 0x10718e2
cmp dword [ebp - 4], 0x66626473
jne 0x10718e2
mov eax, dword [ebp - 8]
mov edx, dword [ebp - 0xc]
xor ecx, ecx
or ecx, eax
mov eax, dword [ebp + 0xc]
or edx, esi
mov dword [eax], ecx
mov dword [eax + 4], edx
inc esi
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov eax, esi
pop esi
leave
ret 8

Function at 0x1071929
Capabilities:
Write file on windows

Disassembly:
push 0x82c
push 0x10243f0
call fcn.0106bf63
mov eax, dword [0x1099a38]
mov dword [ebp - 0x1c], eax
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
cmp dword [0x10bceb0], 0
je 0x1071a6b
mov eax, dword [ebp + 8]
cmp eax, dword [0x1099a40]
jg 0x1071a6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x824], eax
and dword [ebp - 4], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0x830], eax
sub eax, dword [0x10bceb4]
mov dword [ebp - 0x83c], eax
xor edx, edx
mov ecx, 0x3e8
div ecx
mov dword [ebp - 0x828], eax
mov dword [ebp - 0x838], edx
push edx
push eax
push 0x10243e4
lea eax, [ebp - 0x81c]
push eax
call fcn.0106bf51
mov esi, eax
mov dword [ebp - 0x82c], esi
push ebx
push edi
mov eax, 0x7fe
sub eax, esi
push eax
lea eax, [ebp + esi - 0x81c]
push eax
call fcn.0106bf33
add esp, 0x20
mov dword [ebp - 0x820], eax
test eax, eax
jge 0x10719ea
mov dword [ebp - 0x820], 0x7fd
jmp 0x10719f0
add dword [ebp - 0x820], esi
mov eax, dword [ebp - 0x820]
lea eax, [ebp + eax - 0x81c]
cmp byte [eax - 1], 0xa
jne 0x1071a18
cmp byte [eax - 2], 0xd
je 0x1071a30
mov byte [eax - 1], 0xd
mov byte [eax], 0xa
inc dword [ebp - 0x820]
jmp 0x1071a30
mov byte [eax], 0xd
mov eax, dword [ebp - 0x820]
mov byte [ebp + eax - 0x81b], 0xa
add dword [ebp - 0x820], 2
push 0
lea eax, [ebp - 0x834]
push eax
push dword [ebp - 0x820]
lea eax, [ebp - 0x81c]
push eax
push dword [0x10bceb0]
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x1071a5b
or dword [ebp - 4], 0xffffffff
push dword [ebp - 0x824]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 0x1c]
call fcn.0106bc50
call fcn.0106bf9e
ret 0xc
Function at 0x1071ee5
Capabilities:
Extract resource via kernel32 functions
Get file version info

Disassembly:
push 0x2c
push 0x10246c8
call fcn.0106bf63
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x24], ebx
mov edi, dword [ebp + 0xc]
cmp edi, ebx
jne 0x1071f0a
xor eax, eax
jmp 0x1072091
mov dword [edi], ebx
push ebx
push ebx
push 3
push ebx
push 1
push 0x80000000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x28], eax
cmp eax, 0xffffffff
je 0x1072052
push ebx
push ebx
push ebx
push 2
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x1072052
push ebx
push ebx
push ebx
push ebx
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFileEx]
mov dword [ebp - 0x20], eax
cmp eax, ebx
je 0x1072052
mov esi, eax
or esi, 1
mov dword [ebp - 4], ebx
push 0x10
push 1
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0x30], eax
cmp eax, ebx
jne 0x1071fc1
lea eax, [ebp - 0x34]
push eax
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
mov dword [ebp - 0x38], esi
cmp esi, ebx
jne 0x1071fa3
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1072008
push 0x714
call dword [sym.imp.KERNEL32.dll_SetLastError]
jmp 0x1072008
push esi
call sub.msvcrt.dll_malloc
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x1072008
push eax
push esi
push ebx
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoA
test eax, eax
je 0x1072008
jmp 0x1072001
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
mov dword [ebp - 0x3c], esi
cmp esi, ebx
je 0x1072008
movzx eax, word [esi]
mov ecx, eax
shr ecx, 1
add ecx, eax
push ecx
push 1
call sub.msvcrt.dll_calloc
pop ecx
pop ecx
mov dword [edi], eax
cmp eax, ebx
je 0x1072008
movzx ecx, word [esi]
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x24], 1
or dword [ebp - 4], 0xffffffff
jmp 0x1072052
cmp dword [ebp - 0x28], ebx
je 0x1072060
push dword [ebp - 0x28]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x1c], ebx
je 0x107206e
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [ebp - 0x20], ebx
je 0x107207c
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov edi, dword [edi]
cmp edi, ebx
je 0x107208e
cmp dword [ebp - 0x24], ebx
jne 0x107208e
push edi
call fcn.0106bf39
pop ecx
mov eax, dword [ebp - 0x24]
call fcn.0106bf9e
ret 8
Function at 0x10721ad
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x4c
push esi
push edi
mov eax, dword [0x1099a38]
push 0xa
pop ecx
mov esi, 0x1024750
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
mov esi, 0x1024744
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
mov dword [ebp - 4], eax
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x40]
push eax
push 0x20019
push 0
movsw word es:[edi], word [esi]
lea eax, [ebp - 0x3c]
push eax
push SysStringLen
movsb byte es:[edi], byte [esi]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1072232
push 4
pop esi
lea eax, [ebp - 0x48]
push eax
lea eax, [ebp - 0x4c]
push eax
lea eax, [ebp - 0x44]
push eax
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x40]
mov dword [ebp - 0x48], esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x40]
mov edi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x1072232
cmp dword [ebp - 0x44], esi
jne 0x1072232
mov eax, dword [ebp - 0x4c]
jmp 0x1072234
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0106bc50
leave
ret

Function at 0x1072240
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x40
push esi
push edi
push 0xa
mov eax, dword [0x1099a38]
pop ecx
mov esi, 0x1024750
lea edi, [ebp - 0x3c]
rep movsd dword es:[edi], dword [esi]
movsb byte es:[edi], byte [esi]
and dword [ebp - 0x40], 0
mov esi, 0x1024744
lea edi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40]
push eax
push 2
movsb byte es:[edi], byte [esi]
xor esi, esi
push esi
lea eax, [ebp - 0x3c]
push eax
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x107229c
push eax
push 0x10247b4
call fcn.01071ac0
pop ecx
pop ecx
jmp 0x10722c7
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x10722c4
push eax
push 0x102477c
call fcn.01071ac0
pop ecx
pop ecx
xor esi, esi
inc esi
cmp dword [ebp - 0x40], 0
je 0x10722d6
push dword [ebp - 0x40]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
call fcn.0106bc50
leave
ret 4

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10722fd
xor eax, eax
jmp 0x1072306
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret 4
Function at 0x107230a
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push edi
lea eax, [ebp - 4]
push eax
push 0x20019
xor edi, edi
push edi
push dword [ebp + 8]
xor ebx, ebx
push SysStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x1072337
xor eax, eax
jmp 0x107239a
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
lea eax, [ebp + 8]
push eax
push edi
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
mov dword [ebp + 8], edi
push dword [ebp - 4]
call esi
cmp eax, edi
je 0x107235e
cmp eax, 0xea
jne 0x107238c
push dword [ebp + 8]
call sub.msvcrt.dll_malloc
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x107238e
lea eax, [ebp + 8]
push eax
push ebx
lea eax, [ebp - 8]
push eax
push edi
push dword [ebp + 0xc]
push dword [ebp - 4]
call esi
test eax, eax
je 0x107238c
push ebx
call fcn.0106bf39
pop ecx
jmp 0x107238e
mov edi, ebx
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop esi
pop edi
pop ebx
leave
ret 8

Function at 0x107245e
Capabilities:
Create process on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x15c
mov eax, dword [0x1099a38]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x107247a
sub eax, edx
cmp eax, 0x104
jb 0x1072491
xor eax, eax
jmp 0x1072514
mov eax, dword [ebp + 8]
lea edx, [ebp - 0x108]
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
cmp cl, bl
jne 0x107249c
push edi
push 0x11
xor eax, eax
pop ecx
lea edi, [ebp - 0x15c]
rep stosd dword es:[edi], eax
xor edi, edi
inc edi
cmp dword [ebp + 0xc], ebx
mov dword [ebp - 0x15c], 0x44
je 0x10724d3
mov dword [ebp - 0x130], edi
mov word [ebp - 0x12c], bx
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x108]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x1072513
push esi
push dword [ebp - 0x118]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [ebp - 0x114]
call esi
mov eax, edi
pop esi
pop edi
mov ecx, dword [ebp - 4]
pop ebx
call fcn.0106bc50
leave
ret 8

Function at 0x1072521
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
push 0
push 0x20000000
push 3
push 0
push 3
push 0x80000000
push dword [ebp + 8]
or edi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, edi
je 0x107255f
push dword [ebp + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
pop edi
pop esi
pop ebp
ret 8
Function at 0x1072567
Capabilities:
Delete file
Enumerate files on windows
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x248
mov eax, dword [0x1099a38]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x104
push esi
lea ecx, [ebp - 0x108]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ecx
push eax
push edi
call fcn.01070fc9
lea eax, [ebp - 0x248]
push eax
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x1072608
test byte [ebp - 0x248], 0x10
jne 0x10725ef
push esi
lea eax, [ebp - 0x108]
push eax
lea eax, [ebp - 0x21c]
push eax
push edi
call fcn.01070fc9
push 0x80
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea eax, [ebp - 0x248]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x10725b2
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.0106bc50
leave
ret 8

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x10726a4
xor eax, eax
jmp 0x10726af
not al
movzx eax, al
shr eax, 4
and eax, 1
pop ebp
ret 4

Function at 0x107277d
Capabilities:
Parse pe header

Disassembly:
push 0x20
push 0x1024860
call fcn.0106bf63
or dword [ebp - 0x20], 0xffffffff
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
push dword [ebp + 8]
call fcn.0106e19f
test eax, eax
je 0x10727fc
and dword [ebp - 4], 0
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0x2c], ecx
cmp word [ecx], 0x5a4d
jne 0x10727cc
mov eax, dword [ecx + 0x3c]
add eax, ecx
mov dword [ebp - 0x30], eax
cmp dword [eax], 0x4550
jne 0x10727cc
mov eax, dword [eax + 0x58]
mov dword [ebp - 0x20], eax
or dword [ebp - 4], 0xffffffff
jmp 0x10727e0
cmp dword [ebp - 0x20], 0xffffffff
jne 0x10727f3
push 0xc1
call fcn.01037f35
mov ecx, dword [ebp - 0x1c]
push ecx
push dword [ebp - 0x24]
call fcn.010718f1
mov eax, dword [ebp - 0x20]
call fcn.0106bf9e
ret 4