joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10124e9
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x60
push 0x1001780
call fcn.01013a68
mov edi, 0x94
mov eax, edi
call fcn.010129e0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [esi], edi
push esi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
mov ecx, dword [esi + 0x10]
mov dword [0x10ad328], ecx
mov eax, dword [esi + 4]
mov dword [0x10ad334], eax
mov edx, dword [esi + 8]
mov dword [0x10ad338], edx
mov esi, dword [esi + 0xc]
and esi, 0x7fff
mov dword [0x10ad32c], esi
cmp ecx, 2
je 0x1012549
or esi, 0x8000
mov dword [0x10ad32c], esi
shl eax, 8
add eax, edx
mov dword [0x10ad330], eax
cmp word [0x1000000], 0x5a4d
jne 0x1012585
mov eax, dword [0x100003c]
lea eax, [eax + 0x1000000]
cmp dword [eax], 0x4550
jne 0x1012585
movzx ecx, word [eax + 0x18]
cmp ecx, 0x10b
je 0x101259e
cmp ecx, 0x20b
je 0x101258b
and dword [ebp - 0x1c], 0
jmp 0x10125b2
cmp dword [eax + 0x84], 0xe
jbe 0x1012585
xor ecx, ecx
cmp dword [eax + 0xf8], ecx
jmp 0x10125ac
cmp dword [eax + 0x74], 0xe
jbe 0x1012585
xor ecx, ecx
cmp dword [eax + 0xe8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
push 0
call fcn.01013a0b
pop ecx
test eax, eax
jne 0x10125df
cmp dword [0x10ad310], 1
jne 0x10125cc
call fcn.010131e7
push 0x1c
call fcn.01012ffa
push 0xff
call fcn.01012e59
pop ecx
pop ecx
and dword [ebp - 4], 0
call fcn.0101383b
test eax, eax
jge 0x10125f4
push 0x1b
call fcn.010124ba
pop ecx
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x10aef50], eax
call fcn.0101370e
mov dword [0x10ad308], eax
call fcn.01013665
test eax, eax
jge 0x101261a
push 8
call fcn.010124ba
pop ecx
call fcn.0101340b
test eax, eax
jge 0x101262b
push 9
call fcn.010124ba
pop ecx
call fcn.01012eb3
mov dword [ebp - 0x28], eax
test eax, eax
je 0x101263e
push eax
call fcn.010124ba
pop ecx
and dword [ebp - 0x44], 0
lea eax, [ebp - 0x70]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
call fcn.0101339d
mov dword [ebp - 0x20], eax
test byte [ebp - 0x44], 1
je 0x1012660
movzx eax, word [ebp - 0x40]
jmp 0x1012663
push 0xa
pop eax
push eax
push dword [ebp - 0x20]
push 0
push 0x1000000
call fcn.0100c6fc
mov esi, eax
mov dword [ebp - 0x2c], esi
cmp dword [ebp - 0x1c], 0
jne 0x1012684
push esi
call fcn.01012f93
call fcn.01012fcb
jmp 0x10126b6
or dword [ebp - 4], 0xffffffff
mov eax, esi
lea esp, [ebp - 0x7c]
call fcn.01013aa3
ret
Function at 0x1012ffa
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x1084428]
mov ecx, dword [ebp + 8]
push ebx
push esi
mov dword [ebp - 4], eax
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x1084478]
je 0x1013024
inc eax
cmp eax, 0x12
jb 0x1013015
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x1084478]
mov dword [ebp - 0x110], esi
jne 0x10131cf
mov eax, dword [0x10ad310]
cmp eax, 1
je 0x101319d
test eax, eax
jne 0x101305a
cmp dword [0x1084430], 1
je 0x101319d
cmp ecx, 0xfc
je 0x10131cf
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 0x1013095
push 5
pop ecx
mov esi, 0x1001b4c
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 0x10130a0
sub eax, edx
inc eax
cmp eax, 0x3c
jbe 0x10130d8
lea eax, [ebp - 0x10c]
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10130b8
sub eax, edx
push 3
lea ebx, [ebp + eax - 0x147]
push 0x1001b48
push ebx
call fcn.01016910
add esp, 0xc
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x10130dd
sub eax, edx
mov ecx, eax
mov eax, dword [ebp - 0x110]
mov eax, dword [eax + 0x108447c]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x10130f7
sub eax, esi
lea eax, [eax + ecx + 0x1c]
add eax, 3
and eax, 0xfffffffc
call fcn.010129e0
mov edx, esp
push 6
pop ecx
mov esi, 0x1001b2c
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 0x1013123
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x101312f
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 0x1013148
mov eax, dword [ebp - 0x110]
mov esi, 0x1001b28
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov eax, dword [eax + 0x108447c]
mov esi, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x1013166
mov edi, edx
sub eax, esi
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x1013172
mov ecx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
push 0x12010
mov ecx, eax
and ecx, 3
push 0x1001b00
push edx
rep movsb byte es:[edi], byte [esi]
call fcn.0101680f
add esp, 0xc
jmp 0x10131cf
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
test eax, eax
je 0x10131cf
mov esi, dword [esi + 0x108447c]
mov ecx, esi
lea edx, [ecx + 1]
mov bl, byte [ecx]
inc ecx
test bl, bl
jne 0x10131b4
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.010123a2
pop edi
pop esi
pop ebx
leave
ret
Function at 0x101370e
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x10ad480]
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
push edi
xor ebx, ebx
xor edi, edi
cmp eax, ebx
jne 0x101375a
call esi
mov edi, eax
cmp edi, ebx
je 0x1013740
mov dword [0x10ad480], 1
jmp 0x101375f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x1013755
push 2
pop eax
mov dword [0x10ad480], eax
jmp 0x101375a
mov eax, dword [0x10ad480]
cmp eax, 1
jne 0x10137d7
cmp edi, ebx
jne 0x101376b
call esi
mov edi, eax
cmp edi, ebx
je 0x10137e0
cmp word [edi], bx
mov eax, edi
je 0x1013780
inc eax
inc eax
cmp word [eax], bx
jne 0x1013772
inc eax
inc eax
cmp word [eax], bx
jne 0x1013772
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 0x10137ce
push eax
call fcn.010128ff
cmp eax, ebx
pop ecx
mov dword [ebp - 4], eax
je 0x10137ce
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 0x10137cb
push dword [ebp - 4]
call fcn.0101291b
pop ecx
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
jmp 0x101382f
cmp eax, 2
je 0x10137e4
cmp eax, ebx
je 0x10137e4
xor eax, eax
jmp 0x1013831
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStrings]
mov esi, eax
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x10137e0
cmp byte [esi], bl
je 0x1013801
inc eax
cmp byte [eax], bl
jne 0x10137f7
inc eax
cmp byte [eax], bl
jne 0x10137f7
sub eax, esi
inc eax
mov edi, eax
push edi
call fcn.010128ff
cmp eax, ebx
pop ecx
je 0x1013828
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 0x101680f
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 [0x10ad4ac], ebx
push esi
push edi
jne 0x1016891
push 0x1005b48
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x10168cc
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x1005b3c
push edi
call esi
test eax, eax
mov dword [0x10ad4ac], eax
je 0x10168cc
push 0x1005b2c
push edi
call esi
push 0x1005b18
push edi
mov dword [0x10ad4b0], eax
call esi
cmp dword [0x10ad328], 2
mov dword [0x10ad4b4], eax
jne 0x1016891
push 0x1005afc
push edi
call esi
test eax, eax
mov dword [0x10ad4bc], eax
je 0x1016891
push 0x1005ae4
push edi
call esi
mov dword [0x10ad4b8], eax
mov eax, dword [0x10ad4b8]
test eax, eax
je 0x10168d6
call eax
test eax, eax
je 0x10168bd
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x10ad4bc]
test eax, eax
je 0x10168bd
test byte [ebp - 8], 1
jne 0x10168d6
cmp dword [0x10ad334], 4
jb 0x10168d0
or byte [ebp + 0x12], 0x20
jmp 0x10168f5
xor eax, eax
jmp 0x1016905
or byte [ebp + 0x12], 4
jmp 0x10168f5
mov eax, dword [0x10ad4b0]
test eax, eax
je 0x10168f5
call eax
mov ebx, eax
test ebx, ebx
je 0x10168f5
mov eax, dword [0x10ad4b4]
test eax, eax
je 0x10168f5
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10ad4ac]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1016f92
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 0x1016fc3
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 0x1016fca
cmp ebx, dword [ebp + 8]
jae 0x1016fca
xor eax, eax
jmp 0x10171ba
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x1016fdb
xor eax, eax
inc eax
jmp 0x10171b9
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x1016ff1
cmp ecx, edx
jae 0x1017136
cmp dword [eax + 4], 0
je 0x1016ffa
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x1016fe2
cmp dword [ebp + 8], 0
je 0x101701c
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x1017136
cmp eax, esi
jae 0x1017136
mov eax, dword [0x10ad4c8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x1017041
cmp dword [esi*4 + 0x10ad4d0], edi
je 0x101713a
inc esi
cmp esi, eax
jl 0x101702f
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x10171b6
cmp dword [ebp - 8], 0x1000000
jne 0x10171b6
test byte [ebp - 0xc], 0xcc
je 0x10170bf
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x10171b6
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x10171b6
cmp word [eax + 0x18], 0x10b
jne 0x10171b6
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x10171b6
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x10170bf
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x10170bf
test byte [ecx + 0x27], 0x80
jne 0x1017136
push 1
push 0x10ad510
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x1016fd3
mov ecx, dword [0x10ad4c8]
test ecx, ecx
mov edx, ecx
jle 0x10170f3
lea eax, [ecx*4 + 0x10ad4cc]
cmp dword [eax], edi
je 0x10170f3
dec edx
sub eax, 4
test edx, edx
jg 0x10170e7
test edx, edx
jne 0x1017124
push 0xf
pop ebx
cmp ecx, ebx
jg 0x1017100
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x1017118
lea eax, [edx*4 + 0x10ad4d0]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x1017106
cmp ecx, 0x10
jge 0x1017124
inc ecx
mov dword [0x10ad4c8], ecx
push 0
push 0x10ad510
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x1016fd3
xor eax, eax
jmp 0x10171b9
test esi, esi
jle 0x1016fd3
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x10ad510
call ebx
test eax, eax
jne 0x1016fd3
cmp dword [esi*4 + 0x10ad4d0], edi
je 0x1017190
mov eax, dword [0x10ad4c8]
lea esi, [eax - 1]
test esi, esi
jl 0x101717e
cmp dword [esi*4 + 0x10ad4d0], edi
je 0x101717a
dec esi
jns 0x101716e
test esi, esi
jge 0x101718e
cmp eax, 0x10
jge 0x1017189
inc eax
mov dword [0x10ad4c8], eax
lea esi, [eax - 1]
jmp 0x1017190
je 0x10171a8
xor ecx, ecx
test esi, esi
jl 0x10171a8
lea eax, [ecx*4 + 0x10ad4d0]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x1017196
push 0
push 0x10ad510
call ebx
jmp 0x1016fd3
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1019bc8
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.010129e0
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x1019c2e
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x10ad328]
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 0x1019c32
xor eax, eax
jmp 0x1019c3f
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 0x101c5da
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x107f494
call fcn.0107b418
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.0101c1c4
mov eax, dword [ebp + 8]
and dword [ebp - 4], 0
add eax, 0x68
push eax
lea ecx, [ebx + 0x68]
call fcn.0101c1c4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret 4
Function at 0x101f4c3
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, 0x107f75f
call fcn.0107b418
sub esp, 0xc
push esi
mov esi, ecx
mov ecx, dword [0x10ad574]
dec ecx
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
mov dword [ebp - 0x10], esi
je 0x101f4de
dec ecx
lea ecx, [eax + 0x6c]
jmp 0x101f4e1
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.0101f44c
mov eax, dword [ebp + 8]
mov dword [esi + 0x18], ebx
mov dword [esi], 0x100622c
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 0x101f573
push 0x107ff70
lea eax, [ebp - 0x18]
push eax
mov dword [ebp - 0x14], 0x1006200
mov dword [ebp - 0x18], 0x1006064
call fcn.0107b43c
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 0x104c2b5
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 0x1006a18
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x104c30f
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 0x104c30f
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 8]
jne 0x104c30f
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x104c318
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 0x1006a18
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
xor edi, edi
test eax, eax
jne 0x104c388
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0xc]
push eax
push edi
push 0x1006a34
push dword [ebp - 4]
mov dword [ebp - 8], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x104c37f
cmp dword [ebp - 0xc], 4
jne 0x104c37f
cmp dword [ebp - 0x10], edi
je 0x104c37f
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [0x1087c10], edi
xor eax, eax
jmp 0x104c3b0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [0x1087c10], edi
jge 0x104c3ab
mov dword [0x1087c10], edi
call fcn.0102098b
test eax, eax
je 0x104c3ab
emms
mov dword [0x1087c10], 1
mov eax, dword [0x1087c10]
pop edi
leave
ret
Function at 0x104c4ad
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x9c
mov eax, dword [0x1084428]
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 0x104c4fb
inc bl
mov byte [ebp - 0x99], 1
cmp dword [ebp - 0x88], 1
jne 0x104c52c
cmp dword [ebp - 0x94], 4
ja 0x104c539
jne 0x104c523
cmp dword [ebp - 0x90], 0xa
jb 0x104c523
cmp word [ebp - 0x8c], 0x55d
jae 0x104c539
mov byte [ebp - 0x99], 1
jmp 0x104c539
cmp dword [ebp - 0x88], 2
jne 0x104c552
test bl, bl
je 0x104c570
mov eax, dword [ebp + 8]
sub eax, 6
je 0x104c55d
dec eax
je 0x104c556
sub eax, 3
jne 0x104c552
cmp byte [ebp - 0x99], 0
je 0x104c581
xor eax, eax
jmp 0x104c589
call fcn.0104c3b8
jmp 0x104c589
cmp byte [ebp - 0x99], 0
jne 0x104c552
call fcn.0104c3f7
and eax, 4
jmp 0x104c589
cmp dword [ebp + 8], 0xa
je 0x104c581
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
jmp 0x104c589
call fcn.0104c3f7
and eax, 8
mov ecx, dword [ebp - 4]
pop edi
pop ebx
call fcn.010123a2
leave
ret
Function at 0x104ef7d
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 0x104f0a0
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 0x104f084
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 0x104efd6
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 0x104efb4
pop esi
pop ebx
xor eax, eax
pop edi
leave
ret
Function at 0x104f397
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 0x104f4d7
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 0x104f4b1
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 0x104f3fc
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 0x104f3d7
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret