joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1010aa2
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1084efc]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1084f28]
je 0x1010acc
inc eax
cmp eax, 0x12
jb 0x1010abd
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1084f28]
mov dword [ebp - 0x110], esi
jne 0x1010c77
mov eax, dword [0x108e66c]
cmp eax, 1
je 0x1010c45
test eax, eax
jne 0x1010b02
cmp dword [0x1084f04], 1
je 0x1010c45
cmp ecx, 0xfc
je 0x1010c77
push 0x104
lea eax, [ebp - 0x10c]
push eax
push 0
mov byte [ebp - 8], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x1010b3d
push 5
pop ecx
mov esi, 0x10018d4
lea edi, [ebp - 0x10c]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
lea ebx, [ebp - 0x10c]
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1010b48
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x1010b80
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1010b60
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x10018d0
push ebx
call fcn.01012b40
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1010b85
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x1084f2c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x1010b9f
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.01010730
mov edx, esp
push 6
pop ecx
mov esi, 0x10018b4
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov eax, ebx
movsw word es:[edi], word [esi]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1010bcb
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1010bd7
mov ecx, eax
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, edx
dec edi
mov al, byte [edi + 1]
inc edi
test al, al
jne 0x1010bf0
mov eax, dword [ebp - 0x110]
mov esi, 0x10018b0
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x1084f2c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1010c0e
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1010c1a
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001888
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.01012a36
add esp, 0xc
jmp 0x1010c77
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x1010c77
mov esi, dword [esi + 0x1084f2c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x1010c5c
push 0
sub ecx, edx
lea edx, [ebp - 0x114]
push edx
push ecx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x120]
mov ecx, dword [ebp - 4]
call fcn.01010358
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10111b6
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x108e7e0]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x1011202
call esi
mov edi, eax
cmp edi, ebx
je 0x10111e8
mov dword [0x108e7e0], 1
jmp 0x1011207
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x10111fd
push 2
pop eax
mov dword [0x108e7e0], eax
jmp 0x1011202
mov eax, dword [0x108e7e0]
cmp eax, 1
jne 0x101127f
cmp edi, ebx
jne 0x1011213
call esi
mov edi, eax
cmp edi, ebx
je 0x1011288
cmp word [edi], bx
mov eax, edi
je 0x1011228
inc eax
inc eax
cmp word [eax], bx
jne 0x101121a
inc eax
inc eax
cmp word [eax], bx
jne 0x101121a
mov esi, dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
push ebx
push ebx
sub eax, edi
push ebx
sar eax, 1
inc eax
push eax
push edi
push ebx
push ebx
mov dword [ebp - 0xc], eax
call esi
cmp eax, ebx
mov dword [ebp - 8], eax
je 0x1011276
push eax
call fcn.01011b23
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x1011276
push ebx
push ebx
push dword [ebp - 8]
push eax
push dword [ebp - 0xc]
push edi
push ebx
push ebx
call esi
test eax, eax
jne 0x1011273
push dword [ebp - 4]
call fcn.010108bf
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x10112d7
cmp eax, 2
je 0x101128c
cmp eax, ebx
je 0x101128c
xor eax, eax
jmp 0x10112d9
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x1011288
cmp byte [esi], bl
je 0x10112a9
inc eax
cmp byte [eax], bl
jne 0x101129f
inc eax
cmp byte [eax], bl
jne 0x101129f
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.01011b23
cmp eax, ebx
pop ecx
je 0x10112d0
mov ecx, edi
mov edx, ecx
shr ecx, 2
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp - 4]
mov ebx, eax
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsA]
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1012a36
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x108e8b0], ebx
push esi
push edi
jne 0x1012ab8
push 0x10019a8
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x1012af3
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x100199c
push edi
call esi
test eax, eax
mov dword [0x108e8b0], eax
je 0x1012af3
push 0x100198c
push edi
call esi
push 0x1001978
push edi
mov dword [0x108e8b4], eax
call esi
cmp dword [0x108e688], 2
mov dword [0x108e8b8], eax
jne 0x1012ab8
push 0x100195c
push edi
call esi
test eax, eax
mov dword [0x108e8c0], eax
je 0x1012ab8
push 0x1001944
push edi
call esi
mov dword [0x108e8bc], eax
mov eax, dword [0x108e8bc]
test eax, eax
je 0x1012afd
call eax
test eax, eax
je 0x1012ae4
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x108e8c0]
test eax, eax
je 0x1012ae4
test byte [ebp - 8], 1
jne 0x1012afd
cmp dword [0x108e694], 4
jb 0x1012af7
or byte [ebp + 0x12], 0x20
jmp 0x1012b1c
xor eax, eax
jmp 0x1012b2c
or byte [ebp + 0x12], 4
jmp 0x1012b1c
mov eax, dword [0x108e8b4]
test eax, eax
je 0x1012b1c
call eax
mov ebx, eax
test ebx, ebx
je 0x1012b1c
mov eax, dword [0x108e8b8]
test eax, eax
je 0x1012b1c
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x108e8b0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x10131c2
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x10131f3
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x10131fa
cmp ebx, dword [ebp + 8]
jae 0x10131fa
xor eax, eax
jmp 0x10133ea
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x101320b
xor eax, eax
inc eax
jmp 0x10133e9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1013221
cmp ecx, edx
jae 0x1013366
cmp dword [eax + 4], 0
je 0x101322a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1013212
cmp dword [ebp + 8], 0
je 0x101324c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1013366
cmp eax, esi
jae 0x1013366
mov eax, dword [0x108e8c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1013271
cmp dword [esi*4 + 0x108e8d0], edi
je 0x101336a
inc esi
cmp esi, eax
jl 0x101325f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10133e6
cmp dword [ebp - 8], 0x1000000
jne 0x10133e6
test byte [ebp - 0xc], 0xcc
je 0x10132ef
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x10133e6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10133e6
cmp word [eax + 0x18], 0x10b
jne 0x10133e6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x10133e6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x10132ef
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x10132ef
test byte [ecx + 0x27], 0x80
jne 0x1013366
push 1
push 0x108e910
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1013203
mov ecx, dword [0x108e8c8]
test ecx, ecx
mov edx, ecx
jle 0x1013323
lea eax, [ecx*4 + 0x108e8cc]
cmp dword [eax], edi
je 0x1013323
dec edx
sub eax, 4
test edx, edx
jg 0x1013317
test edx, edx
jne 0x1013354
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1013330
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1013348
lea eax, [edx*4 + 0x108e8d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1013336
cmp ecx, 0x10
jge 0x1013354
inc ecx
mov dword [0x108e8c8], ecx
push 0
push 0x108e910
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1013203
xor eax, eax
jmp 0x10133e9
test esi, esi
jle 0x1013203
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x108e910
call ebx
test eax, eax
jne 0x1013203
cmp dword [esi*4 + 0x108e8d0], edi
je 0x10133c0
mov eax, dword [0x108e8c8]
lea esi, [eax - 1]
test esi, esi
jl 0x10133ae
cmp dword [esi*4 + 0x108e8d0], edi
je 0x10133aa
dec esi
jns 0x101339e
test esi, esi
jge 0x10133be
cmp eax, 0x10
jge 0x10133b9
inc eax
mov dword [0x108e8c8], eax
lea esi, [eax - 1]
jmp 0x10133c0
je 0x10133d8
xor ecx, ecx
test esi, esi
jl 0x10133d8
lea eax, [ecx*4 + 0x108e8d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x10133c6
push 0
push 0x108e910
call ebx
jmp 0x1013203
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101550d
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01010730
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1015573
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x108e688]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x1015577
xor eax, eax
jmp 0x1015584
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1015d63
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp esi, ebx
push edi
mov dword [ebp - 8], ebx
je 0x1015dcd
push 0x3d
push esi
call fcn.01016101
mov edi, eax
cmp edi, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], edi
je 0x1015dcd
cmp esi, edi
je 0x1015dcd
xor eax, eax
cmp byte [edi + 1], al
sete al
mov dword [ebp - 4], eax
mov eax, dword [0x108e6a8]
cmp eax, dword [0x108e6ac]
jne 0x1015db3
call fcn.01015d02
mov dword [0x108e6a8], eax
cmp eax, ebx
jne 0x1015e0c
cmp dword [ebp + 0xc], ebx
je 0x1015dd5
cmp dword [0x108e6b0], ebx
je 0x1015dd5
call fcn.0101525f
test eax, eax
je 0x1015e0c
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
jne 0x1015f13
push 4
call fcn.01011b23
cmp eax, ebx
pop ecx
mov dword [0x108e6a8], eax
je 0x1015dcd
mov dword [eax], ebx
cmp dword [0x108e6b0], ebx
jne 0x1015e0c
push 4
call fcn.01011b23
cmp eax, ebx
pop ecx
mov dword [0x108e6b0], eax
je 0x1015dcd
mov dword [eax], ebx
mov ebx, dword [0x108e6a8]
sub edi, esi
push esi
call fcn.01015cab
mov edi, eax
test edi, edi
pop ecx
jl 0x1015e65
cmp dword [ebx], 0
je 0x1015e65
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.010108bf
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x1015e4a
mov eax, dword [ebp + 8]
mov dword [esi], eax
mov esi, eax
jmp 0x1015e9b
mov ecx, dword [esi + 4]
mov dword [esi], ecx
inc edi
add esi, 4
cmp dword [esi], eax
jne 0x1015e41
mov eax, edi
shl eax, 2
push eax
push ebx
call fcn.01015f64
test eax, eax
mov esi, dword [ebp + 8]
pop ecx
pop ecx
je 0x1015e9b
jmp 0x1015e96
cmp dword [ebp - 4], 0
jne 0x1015f0c
test edi, edi
jge 0x1015e75
neg edi
lea eax, [edi*4 + 8]
push eax
push ebx
call fcn.01015f64
test eax, eax
pop ecx
pop ecx
je 0x1015dcd
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov dword [0x108e6a8], eax
cmp dword [ebp + 0xc], 0
je 0x1015ef7
mov eax, esi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1015ea6
sub eax, edx
add eax, 2
push eax
call fcn.01011b23
mov edi, eax
test edi, edi
pop ecx
je 0x1015ef7
mov ecx, esi
sub eax, esi
mov dl, byte [ecx]
mov byte [eax + ecx], dl
inc ecx
test dl, dl
jne 0x1015ec3
mov ecx, dword [ebp - 0xc]
add eax, ecx
mov ecx, dword [ebp - 4]
mov byte [eax], dl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x1015ef0
or dword [ebp - 8], 0xffffffff
push edi
call fcn.010108bf
pop ecx
cmp dword [ebp - 4], 0
je 0x1015f04
push esi
call fcn.010108bf
pop ecx
mov eax, dword [ebp - 8]
jmp 0x1015dd0
push esi
call fcn.010108bf
pop ecx
xor eax, eax
jmp 0x1015dd0
Function at 0x10187ba
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x107ee91
call fcn.010783ec
push ecx
push ebx
push esi
push edi
mov ebx, ecx
mov dword [ebp - 0x10], ebx
mov eax, dword [ebp + 8]
mov ecx, dword [eax]
mov dword [ebx], ecx
mov ecx, dword [eax + 4]
mov dword [ebx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [ebx + 8], ecx
mov ecx, dword [eax + 0xc]
mov dword [ebx + 0xc], ecx
lea esi, [eax + 0x10]
lea edi, [ebx + 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0x1c]
mov dword [ebx + 0x1c], ecx
mov ecx, dword [eax + 0x20]
mov dword [ebx + 0x20], ecx
mov ecx, dword [eax + 0x24]
mov dword [ebx + 0x24], ecx
mov ecx, dword [eax + 0x28]
mov dword [ebx + 0x28], ecx
mov ecx, dword [eax + 0x2c]
mov dword [ebx + 0x2c], ecx
mov cx, word [eax + 0x30]
mov word [ebx + 0x30], cx
mov cx, word [eax + 0x32]
mov word [ebx + 0x32], cx
mov ecx, dword [eax + 0x34]
mov dword [ebx + 0x34], ecx
push 8
lea esi, [eax + 0x38]
pop ecx
lea edi, [ebx + 0x38]
add eax, 0x58
rep movsd dword es:[edi], dword [esi]
push eax
lea ecx, [ebx + 0x58]
call fcn.01018370
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
add eax, 0x68
push eax
lea ecx, [ebx + 0x68]
call fcn.01018370
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4

Function at 0x101b6bc
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, 0x107f13f
call fcn.010783ec
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [0x108e980]
dec ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ebp - 0x10], esi
je 0x101b6d7
dec ecx
lea ecx, [eax + 0x6c]
jmp 0x101b6da
lea ecx, [eax + 0x64]
mov eax, dword [edi + 4]
push ebx
xor edx, edx
mov dx, word [eax + 0x1c]
movzx eax, word [eax + 0x1e]
xor ebx, ebx
push ebx
push edx
push eax
push ebx
push dword [ecx]
mov ecx, esi
call fcn.0101b645
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], ebx
mov dword [esi], 0x100201c
mov dword [esi + 0x14], ebx
mov dword [esi + 0x1c], ebx
mov ecx, dword [eax + 0x54]
movzx eax, word [esi + 0xc]
shr ecx, 3
mov byte [esi + 0x10], cl
movzx ecx, cl
imul eax, ecx
add eax, 7
and eax, 0xfffffff8
mov dword [esi + 8], eax
mov ecx, dword [edi + 4]
mov dword [ecx + 0x18], eax
movzx eax, word [esi + 0xe]
imul eax, dword [esi + 8]
push 0x40
push 0x1000
push eax
push ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x18], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
cmp eax, ebx
mov dword [esi + 0x14], eax
pop ebx
jne 0x101b76c
push 0x107f968
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], 0x1001ff0
mov dword [ebp - 0x18], 0x1001e50
call fcn.01078410
mov ecx, dword [edi + 4]
mov dword [ecx + 0x14], eax
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x1048bfb
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x1002868
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x1048c55
push esi
lea eax, [ebp + 0x14]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 8]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
pop esi
jne 0x1048c55
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x1048c55
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x1048c8b
Capabilities:
Query or enumerate registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push edi
lea eax, [ebp - 4]
push eax
push 0x1002868
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x1048cfb
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x1002884
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x1048cf2
cmp dword [ebp - 0xc], 4
jne 0x1048cf2
cmp dword [ebp - 0x10], edi
je 0x1048cf2
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1088600], edi
xor eax, eax
jmp 0x1048d23
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1088600], edi
jge 0x1048d1e
mov dword [0x1088600], edi
call fcn.01048c5e
test eax, eax
je 0x1048d1e
emms
mov dword [0x1088600], 1
mov eax, dword [0x1088600]
pop edi
leave
ret

Function at 0x1048e20
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x1084efc]
push ebx
push edi
push 0x25
mov dword [ebp - 4], eax
pop ecx
xor eax, eax
lea edi, [ebp - 0x98]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x98]
xor bl, bl
push eax
mov byte [ebp - 0x99], bl
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
jne 0x1048e6e
inc bl
mov byte [ebp - 0x99], 1
cmp dword [ebp - 0x88], 1
jne 0x1048e9f
cmp dword [ebp - 0x94], 4
ja 0x1048eac
jne 0x1048e96
cmp dword [ebp - 0x90], 0xa
jb 0x1048e96
cmp word [ebp - 0x8c], 0x55d
jae 0x1048eac
mov byte [ebp - 0x99], 1
jmp 0x1048eac
cmp dword [ebp - 0x88], 2
jne 0x1048ec5
test bl, bl
je 0x1048ee3
mov eax, dword [ebp + 8]
sub eax, 6
je 0x1048ed0
dec eax
je 0x1048ec9
sub eax, 3
jne 0x1048ec5
cmp byte [ebp - 0x99], 0
je 0x1048ef4
xor eax, eax
jmp 0x1048efc
call fcn.01048d2b
jmp 0x1048efc
cmp byte [ebp - 0x99], 0
jne 0x1048ec5
call fcn.01048d6a
and eax, 4
jmp 0x1048efc
cmp dword [ebp + 8], 0xa
je 0x1048ef4
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x1048efc
call fcn.01048d6a
and eax, 8
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.01010358
leave
ret
Function at 0x104b92a
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0x14]
mov edx, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x18]
imul eax, edi
add eax, edx
cmp edx, eax
mov dword [ebp - 0x18], eax
jae 0x104ba4d
mov eax, dword [ebp + 0x10]
lea eax, [edx + eax*4]
push ebx
push esi
mov dword [ebp + 0x14], eax
mov esi, 0xffc03fc0
mov eax, 0xff00ff
cmp edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 8]
mov dword [ebp - 8], ecx
jae 0x104ba31
mov ebx, dword [ebp + 0x14]
sub ebx, edx
dec ebx
shr ebx, 3
lea ecx, [edx + 4]
inc ebx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], ebx
mov edx, dword [ecx + edi]
mov edi, dword [edi + ecx - 4]
mov dword [ebp - 0xc], edi
shr edi, 2
and edi, esi
mov dword [ebp - 4], edx
mov edx, dword [ecx]
mov ecx, dword [ecx - 4]
mov ebx, ecx
shr ebx, 2
and ebx, esi
add ebx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ebx, edi
mov edi, edx
shr edi, 2
and edi, esi
lea ebx, [ebx + edi - 0x7fff80]
mov edi, dword [ebp - 0xc]
and edi, eax
mov esi, ecx
and esi, eax
add esi, edi
mov edi, dword [ebp - 4]
and edi, eax
add esi, edi
mov edi, edx
and edi, eax
lea esi, [esi + edi + 0x20002]
mov edi, dword [ebp - 0xc]
shr ecx, 2
shr esi, 2
xor ebx, esi
shr edi, 2
mov esi, 0x3fc03fc0
and ecx, esi
and edi, esi
add ecx, edi
mov edi, dword [ebp - 4]
shr edi, 2
and edi, esi
add ecx, edi
mov edi, dword [ebp + 0x18]
shr edx, 2
and edx, esi
lea ecx, [ecx + edx + 0x800080]
and ebx, eax
xor ebx, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 4
mov dword [ecx], ebx
mov ecx, dword [ebp - 0x10]
add ecx, 8
dec dword [ebp - 0x14]
mov dword [ebp - 0x10], ecx
mov esi, 0xffc03fc0
jne 0x104b983
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x1c]
add dword [ebp + 8], ecx
lea ecx, [edi + edi]
add dword [ebp + 0x14], ecx
add edx, ecx
cmp edx, dword [ebp - 0x18]
mov dword [ebp + 0xc], edx
jb 0x104b961
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x104bd44
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, ecx
mov edx, dword [eax]
mov ecx, dword [eax + 4]
mov ecx, dword [ecx + 0x18]
push ebx
mov ebx, dword [edx + 0x18]
push esi
mov esi, dword [edx + 0x105c]
imul esi, dword [edx + 0x1050]
add esi, ebx
cmp ebx, esi
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x24], esi
jae 0x104be84
mov eax, 0xf81f
push edi
mov edi, dword [edx + 0x1050]
mov edx, dword [edx + 0x1058]
lea edx, [ebx + edx*2]
add edi, ebx
cmp ebx, edx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], edx
jae 0x104be5e
movzx ecx, word [edi]
movzx edx, word [edi + 2]
movzx esi, word [ebx + 2]
mov dword [ebp - 4], ecx
movzx ecx, word [ebx]
mov ebx, ecx
and bx, ax
mov edi, edx
and di, ax
mov dword [ebp - 0x1c], ecx
and ecx, 0xffff07e0
add edi, ebx
mov ebx, dword [ebp - 4]
and bx, ax
add edi, ebx
mov ebx, esi
and bx, ax
lea edi, [edi + ebx + 0x1002]
mov ebx, edx
and ebx, 0xffff07e0
add ebx, ecx
mov ecx, dword [ebp - 4]
and ecx, 0xffff07e0
add ebx, ecx
mov ecx, esi
and ecx, 0xffff07e0
lea ecx, [ebx + ecx + 0x40]
mov ebx, dword [ebp - 0xc]
shr ecx, 2
shr edi, 2
xor edi, ecx
mov ecx, dword [ebp - 0x1c]
and ecx, eax
and edx, eax
add edx, ecx
mov ecx, dword [ebp - 4]
and ecx, eax
add edx, ecx
and esi, eax
and edi, 0xffff07e0
lea ecx, [edx + esi + 0x1002]
shr ecx, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
add dword [ebp - 8], 2
mov word [ecx], di
mov edi, dword [ebp - 0x10]
add ebx, 4
add edi, 4
cmp ebx, dword [ebp - 0x20]
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], edi
jb 0x104bda9
mov ecx, dword [ebp - 0x14]
mov ebx, dword [ebp - 0x18]
mov esi, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
mov edi, dword [edx + 4]
add ecx, dword [edi + 0x1050]
mov edx, dword [edx]
mov edi, dword [edx + 0x1050]
lea ebx, [ebx + edi*2]
cmp ebx, esi
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ebx
jb 0x104bd84
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret