joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46a750
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 4], eax
xorps xmm0, xmm0
mov dword [ebp - 0x28], 0
push esi
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x30]
movq qword [ebp - 0x30], xmm0
call fcn.004941b0
push 0
push 0
lea eax, [ebp - 0x30]
push eax
push str.Alias
lea eax, [ebp - 0x44]
push 0
push eax
call fcn.0046bb60
add esp, 8
mov ecx, eax
call fcn.004a0db0
test eax, eax
je 0x46a7c2
lea ecx, [ebp - 0x30]
call fcn.004948f0
test eax, eax
jne 0x46a7c2
lea ecx, [ebp - 0x44]
call fcn.0049fac0
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00494140
jmp 0x46a81e
lea ecx, [ebp - 0x44]
call fcn.0049fac0
lea eax, [ebp - 0x34]
mov dword [ebp - 0x34], 0x10
push eax
xorps xmm0, xmm0
lea eax, [ebp - 0x24]
push eax
movups xmmword [ebp - 0x24], xmm0
movups xmmword [ebp - 0x14], xmm0
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x46a817
lea eax, [ebp - 0x24]
push eax
call fcn.0046bfc0
add esp, 4
lea eax, [ebp - 0x24]
lea ecx, [ebp - 0x30]
push eax
call fcn.00494610
test eax, eax
je 0x46a817
lea eax, [ebp - 0x30]
mov ecx, esi
push eax
call fcn.00494140
jmp 0x46a81e
mov ecx, esi
call fcn.004941b0
lea ecx, [ebp - 0x30]
call fcn.004941d0
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.004a559d
mov esp, ebp
pop ebp
ret
Function at 0x492e30
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
mov edi, ecx
call fcn.00493050
test eax, eax
je 0x492ef5
mov esi, dword [ebp - 8]
test esi, esi
je 0x492ef5
xor edx, edx
lea ecx, [edi + 0x54]
mov eax, 1
lock cmpxchg dword [ecx], edx
cmp eax, 1
jne 0x492ef5
push ebx
push 0
push esi
call dword [sym.imp.KERNEL32.dll_TerminateThread]
test eax, eax
lea ebx, [edi + 8]
setne byte [ebp - 1]
test ebx, ebx
je 0x492eea
lea esi, [ebx + 0x24]
push esi
call fcn.00402880
add esp, 4
test eax, eax
jne 0x492eea
lea ecx, [ebx + 8]
call fcn.00402be0
test eax, eax
jne 0x492ebd
push 1
push esi
call fcn.004028a0
movzx eax, byte [ebp - 1]
add esp, 8
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [edi + 0x38], 1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebx + 8]
mov edi, eax
call fcn.00402de0
test eax, eax
jne 0x492ee3
push 1
push esi
call fcn.004028a0
add esp, 8
push edi
call dword [sym.imp.KERNEL32.dll_SetLastError]
movzx eax, byte [ebp - 1]
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x493440
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
mov esi, ecx
call fcn.00493050
test eax, eax
je 0x493479
mov eax, dword [ebp - 4]
test eax, eax
je 0x493479
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
test eax, eax
je 0x49347b
xor edx, edx
lea ecx, [esi + 0x54]
xchg dword [ecx], edx
pop esi
mov esp, ebp
pop ebp
ret
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x494760
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c97c0
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x501814]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, ecx
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x4947b1
mov edx, ecx
lea ecx, [edx + 2]
nop dword [eax]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x4947a0
sub edx, ecx
sar edx, 1
jmp 0x4947c0
mov edx, dword [eax + 4]
mov ecx, dword [eax + 8]
shr edx, 1
mov dword [ebp + 8], ecx
test ecx, ecx
je 0x494830
xor eax, eax
lea edi, [edx + edx]
mov dword [ebp - 0x10], eax
nop dword [eax + eax]
lea esi, [edi + edi]
mov dword [ebp - 4], 0
test esi, esi
je 0x494873
push esi
push eax
call dword [0x4f90e4]
mov ebx, eax
add esp, 8
test ebx, ebx
je 0x494870
push edi
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x10], ebx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x494849
cmp eax, edi
jb 0x49480f
mov edi, esi
mov eax, ebx
jmp 0x4947d0
mov ecx, dword [ebp - 0x14]
mov eax, dword [ecx + 8]
mov dword [ecx + 4], esi
mov dword [ecx + 8], ebx
mov dword [ebp - 4], 4
test eax, eax
je 0x494830
push eax
call dword [0x4f90e8]
add esp, 4
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
push ebx
mov dword [ebp - 4], 3
call dword [0x4f90e8]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
test eax, eax
je 0x494888
push eax
call dword [0x4f90e8]
add esp, 4
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x496d00
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 4], eax
push 2
push 0
xorps xmm0, xmm0
mov word [ebp - 6], 0
mov eax, 0x17
movq qword [ebp - 0xe], xmm0
mov word [ebp - 0x20], ax
mov eax, dword [0x4d8c28]
push 0
mov dword [ebp - 8], eax
lea eax, [ecx + 0x18]
push 0x28
push eax
movups xmmword [ebp - 0x1e], xmm0
push 0x1c
movups xmm0, xmmword [ecx + 4]
lea eax, [ebp - 0x20]
push eax
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.WS2_32.dll_getnameinfo]
mov ecx, dword [ebp - 4]
neg eax
sbb eax, eax
xor ecx, ebp
inc eax
call fcn.004a559d
mov esp, ebp
pop ebp
ret
Function at 0x499950
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, ecx
and eax, 0xff000000
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x20], ecx
cmp eax, 0x8000000
jne 0x499b29
test ecx, ecx
je 0x499b29
mov ecx, ebx
call fcn.00499c60
test eax, eax
je 0x499b29
push esi
push edi
mov ecx, ebx
call fcn.00499e60
mov esi, eax
lea ecx, [ebp - 0xc]
xorps xmm0, xmm0
mov dword [ebp - 0x18], esi
movlpd qword [ebp - 0xc], xmm0
call fcn.00497b20
lea ecx, [esi + esi]
push ecx
lea ecx, [ebp - 0xc]
call fcn.00497b40
test eax, eax
je 0x499b0c
mov ebx, dword [ebp - 0xc]
test ebx, ebx
je 0x499b0c
mov eax, dword [ebp - 0x10]
lea edi, [ebx + esi]
mov dword [ebp - 0x1c], edi
mov eax, dword [eax]
test esi, esi
je 0x4999f5
push esi
test eax, eax
je 0x499af1
push eax
push ebx
call fcn.004a6f10
add esp, 0xc
push esi
push edi
call fcn.004a4230
add esp, 8
test eax, eax
je 0x499b0c
xor ecx, ecx
test esi, esi
je 0x499abe
cmp esi, 0x40
jb 0x499aa9
lea eax, [edi - 1]
lea edx, [ebx - 1]
add eax, esi
add edx, esi
cmp ebx, eax
ja 0x499a30
cmp edx, edi
jae 0x499aa9
mov eax, esi
mov edx, esi
and eax, 0x3f
mov esi, edi
sub edx, eax
sub esi, ebx
mov dword [ebp - 0x10], esi
lea eax, [ebx + 0x10]
mov esi, dword [ebp - 0x18]
mov dword [ebp - 0x14], edx
lea edx, [edi + 0x30]
mov edi, dword [ebp - 0x10]
nop
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea edx, [edx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [edx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [edi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [edx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [edx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 0x14]
jb 0x499a50
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x14], ecx
cmp ecx, esi
jae 0x499abe
sub edi, ebx
lea eax, [ecx + ebx]
sub esi, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x499ab0
mov ecx, dword [ebp - 0x20]
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 8]
call fcn.00495160
test eax, eax
je 0x499b0c
lea ecx, [ebp - 0xc]
call fcn.00497b30
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
push 0
push ebx
call fcn.004a6d90
add esp, 0xc
call fcn.004ad988
mov dword [eax], 0x16
call fcn.004ad8cb
lea ecx, [ebp - 0xc]
call fcn.00497b30
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
pop ebx
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
Function at 0x499e90
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], ecx
push esi
test ebx, ebx
je 0x499fac
mov ecx, ebx
call fcn.00497d20
mov edx, eax
test edx, edx
je 0x499fac
test dl, 3
jne 0x499fac
mov esi, dword [ebx]
shr edx, 1
mov dword [ebp - 0xc], esi
test esi, esi
je 0x499fac
xor ecx, ecx
push edi
lea edi, [esi + edx]
test edx, edx
je 0x499f83
cmp edx, 0x40
jb 0x499f6c
lea eax, [edi - 1]
add eax, edx
cmp esi, eax
ja 0x499ef8
lea eax, [esi - 1]
add eax, edx
cmp eax, edi
jae 0x499f6c
mov eax, edx
mov ebx, edi
and eax, 0xffffffc0
sub ebx, esi
mov dword [ebp - 4], ebx
lea ebx, [edi + 0x30]
mov dword [ebp - 8], eax
lea eax, [esi + 0x10]
mov esi, dword [ebp - 4]
movups xmm0, xmmword [eax - 0x10]
add ecx, 0x40
lea ebx, [ebx + 0x40]
lea eax, [eax + 0x40]
movups xmm1, xmmword [ebx - 0x70]
pxor xmm1, xmm0
movups xmmword [eax - 0x50], xmm1
movups xmm0, xmmword [eax - 0x40]
movups xmm1, xmmword [esi + eax - 0x40]
pxor xmm1, xmm0
movups xmmword [eax - 0x40], xmm1
movups xmm0, xmmword [eax - 0x30]
movups xmm1, xmmword [ebx - 0x50]
pxor xmm1, xmm0
movups xmm0, xmmword [ebx - 0x40]
movups xmmword [eax - 0x30], xmm1
movups xmm1, xmmword [eax - 0x20]
pxor xmm1, xmm0
movups xmmword [eax - 0x20], xmm1
cmp ecx, dword [ebp - 8]
jb 0x499f10
mov esi, dword [ebp - 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], ecx
cmp ecx, edx
jae 0x499f83
lea eax, [ecx + esi]
sub edi, esi
mov esi, edx
sub esi, ecx
mov cl, byte [eax + edi]
lea eax, [eax + 1]
xor byte [eax - 1], cl
sub esi, 1
jne 0x499f75
push 0
push edx
mov ecx, ebx
call fcn.00497d50
pop edi
test eax, eax
je 0x499fac
mov ecx, dword [ebp - 0x10]
push ebx
call fcn.00499c90
test eax, eax
je 0x499fac
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret 4
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x49b7d0
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x40c], eax
test edi, edi
je 0x49b8e6
call fcn.0049bda0
test eax, eax
je 0x49b8e6
mov ecx, ebx
call fcn.0049b7c0
mov esi, eax
test esi, esi
je 0x49b8e6
cmp dword [ebp - 0x40c], 0
je 0x49b837
movzx ecx, word [esi + 2]
push ecx
call dword [sym.imp.WS2_32.dll_ntohs]
mov ecx, dword [ebp - 0x40c]
mov word [ecx], ax
push 0x401
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.004a6d90
add esp, 0xc
lea eax, [ebp - 0x408]
push 2
push 0
push 0
push 0x401
push eax
push dword [ebx]
push esi
call dword [sym.imp.WS2_32.dll_getnameinfo]
test eax, eax
je 0x49b939
cmp eax, 0x276d
jne 0x49b8e6
movzx eax, word [esi]
sub eax, 2
je 0x49b8fb
sub eax, 0x15
jne 0x49b8e6
movzx eax, byte [esi + 0x17]
push eax
movzx eax, byte [esi + 0x16]
push eax
movzx eax, byte [esi + 0x15]
push eax
movzx eax, byte [esi + 0x14]
push eax
movzx eax, byte [esi + 0x13]
push eax
movzx eax, byte [esi + 0x12]
push eax
movzx eax, byte [esi + 0x11]
push eax
movzx eax, byte [esi + 0x10]
push eax
movzx eax, byte [esi + 0xf]
push eax
movzx eax, byte [esi + 0xe]
push eax
movzx eax, byte [esi + 0xd]
push eax
movzx eax, byte [esi + 0xc]
push eax
movzx eax, byte [esi + 0xb]
push eax
movzx eax, byte [esi + 0xa]
push eax
movzx eax, byte [esi + 9]
push eax
movzx eax, byte [esi + 8]
push eax
push str._02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X:_02X_02X
push edi
call fcn.0049b640
add esp, 0x48
test eax, eax
jne 0x49b921
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
movzx eax, byte [esi + 7]
push eax
movzx eax, byte [esi + 6]
push eax
movzx eax, byte [esi + 5]
push eax
movzx eax, byte [esi + 4]
push eax
push str._u._u._u._u
push edi
call fcn.0049b640
add esp, 0x18
test eax, eax
je 0x49b8e6
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
lea eax, [ebp - 0x408]
mov ecx, edi
push eax
call fcn.0049cef0
mov ecx, dword [ebp - 4]
neg eax
pop edi
sbb eax, eax
xor ecx, ebp
pop esi
neg eax
pop ebx
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
Function at 0x49d420
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
test ebx, ebx
je 0x49d660
call fcn.00492c90
test eax, eax
je 0x49d660
xorps xmm0, xmm0
mov dword [ebp - 0x40c], 0
push edi
lea ecx, [ebp - 0x414]
movq qword [ebp - 0x414], xmm0
call fcn.0049cba0
push 0x401
lea eax, [ebp - 0x408]
push 0
push eax
call fcn.004a6d90
mov edi, dword [sym.imp.KERNEL32.dll_ReadFile]
lea eax, [ebp - 0x418]
add esp, 0xc
mov dword [ebp - 0x418], 0
push 0
push eax
push 0x400
lea eax, [ebp - 0x408]
push eax
push dword [esi + 8]
call edi
test eax, eax
je 0x49d640
nop dword [eax + eax]
mov eax, dword [ebp - 0x418]
test eax, eax
je 0x49d629
cmp eax, 0x401
jae 0x49d640
mov byte [ebp + eax - 0x408], 0
lea eax, [ebp - 0x408]
push 0xa
push eax
call fcn.004a8410
add esp, 8
test eax, eax
jne 0x49d591
mov eax, dword [ebp - 0x418]
cmp byte [ebp + eax - 0x409], 0xd
jne 0x49d535
dec eax
cmp eax, 0x401
jae 0x49d674
push 0
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
mov ecx, esi
mov byte [ebp + eax - 0x408], 0
call fcn.0049d680
test eax, eax
je 0x49d640
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x414]
call fcn.0049cdb0
test eax, eax
je 0x49d640
push 0
lea eax, [ebp - 0x418]
push eax
push 0x400
lea eax, [ebp - 0x408]
push eax
push dword [esi + 8]
call edi
test eax, eax
jne 0x49d4c0
lea ecx, [ebp - 0x414]
call fcn.0049cbc0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 4
mov edi, eax
lea ecx, [ebp - 0x408]
sub edi, ecx
cmp edi, 0x401
jae 0x49d674
mov byte [eax], 0
test edi, edi
je 0x49d5ca
cmp byte [eax - 1], 0xd
jne 0x49d5ca
lea eax, [edi - 1]
cmp eax, 0x401
jae 0x49d674
mov byte [ebp + eax - 0x408], 0
lea eax, [ebp - 0x408]
push eax
lea ecx, [ebp - 0x414]
call fcn.0049cdb0
test eax, eax
je 0x49d640
sub edi, dword [ebp - 0x418]
mov ecx, esi
push 0
push 1
lea eax, [edi + 1]
cdq
push edx
push eax
call fcn.0049d680
test eax, eax
je 0x49d640
lea eax, [ebp - 0x414]
mov ecx, ebx
push eax
call fcn.0049cc30
lea ecx, [ebp - 0x414]
call fcn.0049cbc0
pop edi
pop esi
mov al, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 4
lea ecx, [ebp - 0x414]
call fcn.0049d0e0
test eax, eax
je 0x49d5fb
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
lea ecx, [ebp - 0x414]
call fcn.0049cbc0
pop edi
pop esi
xor al, al
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
xor al, al
pop esi
xor ecx, ebp
pop ebx
call fcn.004a559d
mov esp, ebp
pop ebp
ret 4
call fcn.004a6358
int3
Function at 0x49e070
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x49e0b1
mov esi, 0x104
mov ecx, edi
push esi
call fcn.004943a0
test eax, eax
je 0x49e0b1
mov ebx, dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push esi
mov ecx, edi
call fcn.004948d0
push eax
call ebx
mov ecx, edi
cmp eax, esi
jbe 0x49e0b8
add esi, esi
push esi
call fcn.004943a0
test eax, eax
jne 0x49e094
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
call fcn.00494980
push 0x4d26a8
mov ecx, edi
call fcn.004943e0
test eax, eax
je 0x49e0b1
pop edi
pop esi
mov eax, 1
pop ebx
pop ebp
ret

Function at 0x49fe00
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
call fcn.004a00a0
test eax, eax
jne 0x49fe21
push 0x3f2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebp
ret 4
push dword [ebp + 8]
push dword [esi + 8]
call fcn.0049fe60
add esp, 8
test eax, eax
jne 0x49fe48
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
pop esi
sete cl
mov eax, ecx
pop ebp
ret 4
mov eax, 1
pop esi
pop ebp
ret 4

Function at 0x49fe60
Capabilities:
Check if file exists
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
test eax, eax
je 0x49fe8c
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor ecx, ecx
cmp eax, 2
sete cl
mov eax, ecx
pop ebp
ret
mov eax, 1
pop ebp
ret
Function at 0x49fea0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
call fcn.004a00a0
test eax, eax
jne 0x49fedf
push 0x3f2
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
test edi, edi
jne 0x49feff
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
push esi
mov ecx, edi
call fcn.00494960
shr eax, 1
xorps xmm0, xmm0
mov dword [ebp - 8], eax
mov ecx, edi
lea eax, [ebp - 0x10]
movlpd qword [ebp - 0x10], xmm0
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
call fcn.004948d0
push eax
push dword [ebp + 8]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
je 0x49ffa2
cmp esi, 0xea
jne 0x49ffc2
cmp dword [ebp - 8], 0
jne 0x49ff58
mov eax, 0x3c
jmp 0x49ff62
mov ecx, edi
call fcn.00494960
and eax, 0xfffffffe
mov dword [ebp - 8], eax
mov ecx, edi
add eax, eax
push eax
call fcn.00494310
test eax, eax
je 0x49ffba
lea eax, [ebp - 0x10]
mov ecx, edi
push eax
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
call fcn.004948d0
push eax
push dword [ebp + 8]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
test esi, esi
jne 0x49ff43
pop esi
pop edi
mov eax, 1
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop esi
pop edi
xor ecx, ebp
pop ebx
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
Function at 0x4a0430
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4c9cf0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x20], esi
test esi, esi
je 0x4a04a6
test edi, edi
je 0x4a04a6
call fcn.004a00a0
test eax, eax
je 0x4a04a6
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], 0
push eax
push 0
lea eax, [ebp - 0x18]
mov dword [ebp - 0x18], 0
push eax
push 0
push esi
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4a04c6
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 8
cmp dword [ebp - 0x18], 3
je 0x4a04d3
push 0x70c
jmp 0x4a04a0
mov eax, dword [ebp - 0x14]
xor esi, esi
mov dword [ebp - 0x1c], 0
test eax, eax
je 0x4a0534
mov dword [ebp - 0x1c], eax
push eax
mov dword [ebp - 4], esi
call dword [0x4f90e0]
mov esi, eax
add esp, 4
test esi, esi
je 0x4a052f
lea eax, [ebp - 0x14]
push eax
push esi
push 0
push 0
push dword [ebp - 0x20]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4a0534
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
push esi
mov dword [ebp - 4], 3
call dword [0x4f90e8]
add esp, 4
jmp 0x4a04a6
jmp 0x4a04a6
mov eax, dword [edi + 4]
mov ecx, dword [ebp - 0x1c]
mov dword [edi], ecx
mov dword [edi + 4], esi
mov dword [ebp - 4], 4
test eax, eax
je 0x4a0554
push eax
call dword [0x4f90e8]
add esp, 4
mov eax, 1
jmp 0x4a04a8
Function at 0x4a0db0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [0x501814]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, ecx
push edi
mov edi, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
call fcn.004a00a0
test eax, eax
jne 0x4a0dfa
push 0x3f2
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 0x10
test esi, esi
jne 0x4a0e1b
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 8]
mov dword [ebp - 8], 0
push eax
push 0
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 0
push eax
push 0
push dword [ebp - 0x10]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4a0e61
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 0xc]
cmp eax, 1
je 0x4a0e93
cmp eax, 7
je 0x4a0e93
cmp eax, 2
je 0x4a0e93
push 0x70c
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 0x10
mov eax, dword [ebp - 8]
mov ecx, esi
add eax, 3
and eax, 0xfffffffe
mov dword [ebp - 8], eax
call fcn.00494960
mov ecx, dword [ebp - 8]
cmp ecx, eax
jbe 0x4a0ed6
push ecx
mov ecx, esi
call fcn.00494310
test eax, eax
jne 0x4a0ed6
push 8
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 0x10
lea eax, [ebp - 8]
mov ecx, esi
push eax
call fcn.004948d0
push eax
push 0
push 0
push dword [ebp - 0x10]
push dword [ebx + 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
mov ecx, esi
test ebx, ebx
je 0x4a0f1b
call fcn.00494480
push ebx
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a559d
mov esp, ebp
pop ebp
ret 0x10
call fcn.00494980
mov eax, dword [ebp - 0xc]
cmp eax, 2
jne 0x4a0f42
cmp dword [ebp + 0x14], 0
je 0x4a0f42
push 0
mov ecx, esi
call fcn.00494760
test eax, eax
je 0x4a0de5
mov eax, dword [ebp - 0xc]
test edi, edi
je 0x4a0f48
mov dword [edi], eax
mov ecx, dword [ebp - 4]
mov eax, 1
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004a559d
mov esp, ebp
pop ebp
ret 0x10