joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10003dcf
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
lea ebp, [esp - 0x9c]
sub esp, 0x11c
mov eax, dword [0x10015450]
xor eax, ebp
mov dword [ebp + 0x98], eax
mov eax, dword [ebp + 0xa4]
push ebx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 4]
or ecx, 0x2001f
push ecx
push eax
push dword [edi]
xor esi, esi
lea ecx, [ebp - 0x70]
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x70], esi
mov dword [ebp - 0x6c], esi
call fcn.1000333e
mov ebx, eax
cmp ebx, esi
je 0x10003e3f
lea ecx, [ebp - 0x70]
call fcn.10003323
mov eax, ebx
mov ecx, dword [ebp + 0x98]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10008418
add ebp, 0x9c
leave
ret 4
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
jmp 0x10003e57
lea eax, [ebp - 0x68]
push eax
lea ecx, [ebp - 0x70]
call fcn.10003dcf
cmp eax, esi
jne 0x10003e89
lea eax, [ebp - 0x80]
push eax
push esi
push esi
push esi
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x68]
push eax
push esi
push dword [ebp - 0x70]
mov dword [ebp - 0x74], 0x100
call ebx
test eax, eax
je 0x10003e47
lea ecx, [ebp - 0x70]
call fcn.10003323
push dword [ebp - 0x78]
mov ecx, edi
call fcn.100032c8
lea ecx, [ebp - 0x70]
mov esi, eax
call fcn.10003323
mov eax, esi
jmp 0x10003e25
Function at 0x10008418
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x10015450]
jne 0x10008422
repz ret
jmp fcn.1000a2f5

Function at 0x1000ef07
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.1000b302
and dword [ebp - 4], 0
cmp dword [0x10016bd8], 0
mov ebx, eax
jne 0x1000efb8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x1000f069
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x1000f069
push eax
call fcn.1000b290
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x10016bd8], eax
call esi
push eax
call fcn.1000b290
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x10016bdc], eax
call esi
push eax
call fcn.1000b290
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x10016be0], eax
call esi
push eax
call fcn.1000b290
pop ecx
mov dword [0x10016be8], eax
test eax, eax
je 0x1000efb8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.1000b290
pop ecx
mov dword [0x10016be4], eax
mov eax, dword [0x10016be4]
cmp eax, ebx
je 0x1000f010
cmp dword [0x10016be8], ebx
je 0x1000f010
push eax
call fcn.1000b30b
push dword [0x10016be8]
mov esi, eax
call fcn.1000b30b
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x1000f010
test edi, edi
je 0x1000f010
call esi
test eax, eax
je 0x1000f007
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x1000f007
test byte [ebp - 0xc], 1
jne 0x1000f010
or dword [ebp + 0x10], 0x200000
jmp 0x1000f049
mov eax, dword [0x10016bdc]
cmp eax, ebx
je 0x1000f049
push eax
call fcn.1000b30b
pop ecx
test eax, eax
je 0x1000f049
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x1000f049
mov eax, dword [0x10016be0]
cmp eax, ebx
je 0x1000f049
push eax
call fcn.1000b30b
pop ecx
test eax, eax
je 0x1000f049
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x10016bd8]
call fcn.1000b30b
pop ecx
test eax, eax
je 0x1000f069
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x1000f06b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x432c5a
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4356c0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0042fae7
mov dword [ebp - 0x14], eax
cmp dword [0x47e7b4], edi
jne 0x432d4b
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x432cd8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x432e2b
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x432e2b
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x432e2b
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x47e7b4], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x47e7b8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x47e7bc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47e7c4], eax
test eax, eax
je 0x432d48
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x47e7c0], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x432d70
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x432d63
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x432d85
push 4
pop eax
jmp 0x432e2d
cmp dword [ebp - 0x14], edi
je 0x432d85
push dword [0x47e7b4]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x432d6a
mov eax, dword [0x47e7c0]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x432de3
cmp dword [0x47e7c4], esi
je 0x432de3
push eax
call ebx
push dword [0x47e7c4]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x432de3
test eax, eax
je 0x432de3
call ecx
test eax, eax
je 0x432dd8
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x432dd8
test byte [ebp - 8], 1
jne 0x432de3
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x432e13
mov eax, dword [0x47e7b8]
cmp eax, esi
je 0x432e10
push eax
call ebx
test eax, eax
je 0x432e10
call eax
mov edi, eax
test edi, edi
je 0x432e10
mov eax, dword [0x47e7bc]
cmp eax, esi
je 0x432e10
push eax
call ebx
test eax, eax
je 0x432e10
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x47e7b4]
call ebx
test eax, eax
je 0x432e2b
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x432e2d
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0042cdf9
leave
ret
Function at 0x50b9b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x8000]
push edi
or ebp, 0xffffffff
jmp 0x50b9d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x50b9d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x50b9c8
mov eax, 1
add ebx, ebx
jne 0x50b9eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x50b9e0
jne 0x50b9fc
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50b9e0
xor ecx, ecx
sub eax, 3
jb 0x50ba10
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x50ba82
mov ebp, eax
add ebx, ebx
jne 0x50ba1b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x50ba28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x50ba4c
inc ecx
add ebx, ebx
jne 0x50ba38
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x50ba2d
jne 0x50ba49
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x50ba2d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x50ba6c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x50ba5d
jmp 0x50b9ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x50ba6c
add edi, ecx
jmp 0x50b9ce
pop esi
mov edi, esi
mov ecx, 0x1d
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x50ba8a
cmp byte [edi], 6
jne 0x50ba8a
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x50ba8f
lea edi, [esi + 0x9000]
mov eax, dword [edi]
or eax, eax
je 0x50bafe
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xdacc]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xdb24]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x50babc
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xdb2c]
or eax, eax
je 0x50baf8
mov dword [ebx], eax
add ebx, 4
jmp 0x50bad9
call dword [esi + 0xdb28]
mov ebp, dword [esi + 0xdb30]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x50bb32
sub esp, 0xffffff80
jmp section.UPX0
Function at 0x414a0d
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
push esi
push edi
push 8
xor esi, esi
pop ecx
xor eax, eax
mov dword [ebp - 0x28], esi
lea edi, [ebp - 0x24]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x28]
push eax
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, dword [ebp - 0x14]
test edi, edi
jne 0x414a40
push 0x6d696b36
jmp 0x414a64
push esi
push esi
push 0x4013e8
call fcn.004148b1
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.004149eb
mov ebx, dword [ebp - 4]
test ebx, ebx
jne 0x414a8e
push 0x6d696b37
call fcn.0041c827
push esi
push esi
push 0x4013e8
call fcn.004148b1
add esp, 0xc
push eax
lea ecx, [ebp - 4]
call fcn.004149eb
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x414b95
jmp 0x414afb
push 0x401404
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 4], eax
test eax, eax
jne 0x414aad
push 0x6d696b38
call fcn.0041c827
jmp 0x414afb
xor ecx, ecx
push 0x18
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.MSVCR100.dll_void____cdecl_operator_new___unsigned_int_
mov esi, eax
pop ecx
test esi, esi
je 0x414af9
imul edi, edi, 0x18
push edi
push esi
push 0
push 0
push 0xb
call dword [ebp - 4]
test eax, eax
je 0x414ae8
push 0x5c81b
call fcn.0041c827
jmp 0x414af2
push dword [esi + 4]
push 0x10
call fcn.00418e70
push esi
call sub.MSVCR100.dll_void___cdecl_operator_delete___void__
pop ecx
xor esi, esi
push 0x40141c
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x414b91
lea ecx, [ebp - 4]
push ecx
push esi
mov dword [ebp - 4], esi
call eax
test eax, eax
jne 0x414b91
mov eax, dword [ebp - 4]
push 4
pop ecx
mov edi, 0x409198
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x414b38
mov esi, dword [ebp - 4]
and esi, 0xffffff8f
jmp 0x414b6c
push 4
pop ecx
mov edi, 0x4091a8
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
jne 0x414b53
mov esi, dword [ebp - 4]
and esi, 0xffffffaf
or esi, 0x20
jmp 0x414b6c
push 4
pop ecx
mov edi, 0x4091b8
mov esi, eax
xor edx, edx
repe cmpsd dword [esi], dword es:[edi]
mov esi, dword [ebp - 4]
jne 0x414b6c
and esi, 0xffffff9f
or esi, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
shl eax, 0x19
sar eax, 0x19
shl esi, 0x1c
and eax, 0xfffffff0
sar esi, 0x1c
add eax, esi
push eax
push 0x2102
call fcn.00418e70
test ebx, ebx
jne 0x414b9c
push 0xffff
jmp 0x414bca
push 0x401434
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x414bc7
push 0xffff
push 0x2696
call fcn.00418e70
push 0x6d696c31
call fcn.0041c827
jmp 0x414bd4
call eax
push eax
push 0x2696
call fcn.00418e70
test ebx, ebx
je 0x414bdf
push ebx
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x417536
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x425661
call fcn.0041de82
mov ebx, dword [ebp + 8]
xor edi, edi
or esi, 0xffffffff
test edi, edi
jne 0x41755f
cmp dword [0x458fa4], edi
je 0x417649
push 2
pop ebx
jmp 0x417579
cmp edi, 1
jne 0x417649
mov eax, ebx
call fcn.00418427
test al, al
je 0x417649
xor ebx, ebx
lea ecx, [ebp - 0xd]
mov dword [ebp - 0x1c], ebx
call fcn.00418449
mov ecx, dword [ebp + 8]
xor eax, eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], eax
movzx eax, word [ecx + 0xc]
shr eax, 1
and eax, 0x10
or eax, ebx
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ecx + 8]
jmp 0x41762b
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov ebx, dword [ebp - 0x14]
mov dword [ecx], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jne 0x4175c0
mov eax, dword [ebx]
push ecx
push dword [ebp + 0xc]
lea ecx, [ebp - 0x20]
push ecx
push 0
push dword [ebp + 0x18]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
call fcn.00417c20
test eax, eax
je 0x41765d
push 0x1c049f
push 0
call fcn.0041c87c
mov esi, dword [ebp + 8]
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
and eax, 0xf
imul eax, eax, 0xc
and dword [eax + 0x428098], 0
push ebx
mov ecx, 0x458fb8
call fcn.004173b5
movzx eax, word [esi + 0xc]
and dword [ebp - 0x14], 0
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x1c]
push 0
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [esi + 8]
call fcn.00417d37
mov esi, eax
test esi, esi
je 0x4175ac
mov ebx, dword [ebp + 8]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0xd]
call fcn.0041846a
inc edi
cmp edi, 2
jl 0x417547
mov eax, esi
call fcn.0041df5a
ret 0x18
push ebx
mov ecx, 0x458fb8
call fcn.00417319
mov ebx, dword [ebp + 8]
test esi, esi
jne 0x41763d
movzx ecx, word [ebx + 0xc]
mov eax, ecx
and eax, 0xf
cmp dword [ebp - 0x20], eax
je 0x417698
cmp dword [ebp - 0x20], 3
jne 0x417693
mov eax, dword [ebp + 0x14]
cmp dword [eax], 4
jne 0x417693
and cl, 0xf
cmp cl, 4
je 0x417698
push 2
pop esi
jmp 0x41763d
mov eax, dword [ebp + 0x1c]
lea ecx, [ebp - 0xd]
mov dword [eax], 1
call fcn.0041846a
xor eax, eax
jmp 0x417655
Function at 0x417b21
Capabilities:
Query or enumerate registry value

Disassembly:
push 4
mov eax, 0x4256d2
call fcn.0041de82
mov esi, dword [ebp + 8]
cmp esi, dword [0x458fac]
jne 0x417b3f
xor al, al
jmp 0x417c18
mov bl, byte [ebp + 0xc]
test bl, bl
je 0x417b50
xor ecx, ecx
cmp dword [0x458fa4], ecx
jmp 0x417b5b
mov eax, esi
call fcn.00418427
xor ecx, ecx
test al, al
sete cl
test ecx, ecx
jne 0x417b38
xor edi, edi
lea ecx, [ebp + 0xf]
mov dword [ebp + 8], edi
mov dword [ebp - 0x10], edi
call fcn.00418449
mov dword [ebp - 4], edi
movzx edi, bl
neg edi
sbb edi, edi
and edi, 2
xor ebx, ebx
jmp 0x417bd9
mov eax, dword [ebp - 0x10]
test eax, eax
jne 0x417b8f
mov eax, dword [ebp + 8]
mov eax, dword [eax]
xor ecx, ecx
push ecx
push ecx
push ecx
push ecx
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ebx, eax
call fcn.00417c20
test eax, eax
je 0x417bfe
push 0x1c04c2
xor ebx, ebx
push ebx
call fcn.0041c87c
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp + 8]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x458fb8
mov dword [eax + 0x428098], ebx
call fcn.004173b5
mov dword [ebp + 8], ebx
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
push ebx
or eax, edi
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call fcn.00417d37
mov ebx, eax
test ebx, ebx
je 0x417b83
jmp 0x417c0b
push dword [ebp + 8]
mov ecx, 0x458fb8
call fcn.00417319
lea ecx, [ebp + 0xf]
call fcn.0041846a
test ebx, ebx
sete al
call fcn.0041df5a
ret 8

Function at 0x41837b
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov dword [ebp - 4], eax
test ecx, ecx
jne 0x41838d
mov ecx, dword [edi]
lea eax, [ebp - 4]
push eax
push ebx
lea eax, [ebp + 0xc]
push eax
push 0xffff
push dword [ebp + 8]
push 0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegGetValueW]
cmp dword [ebp - 4], 2
mov esi, eax
jae 0x4183be
cmp dword [ebp + 0xc], 1
je 0x4183bb
cmp dword [ebp + 0xc], 2
jne 0x4183be
push 2
pop esi
mov eax, esi
call fcn.00417c20
test eax, eax
je 0x4183e2
push 0x1c0491
push 0
call fcn.0041c87c
push edi
mov ecx, 0x458fb8
call fcn.004173b5
jmp 0x41841f
test esi, esi
jne 0x418414
mov ecx, dword [ebp + 0xc]
cmp ecx, 2
je 0x4183f3
cmp ecx, 1
jne 0x418402
mov eax, dword [ebp - 4]
shr eax, 1
xor ecx, ecx
mov word [ebx + eax*2 - 2], cx
mov ecx, dword [ebp + 0xc]
movzx eax, byte [ebp + 0x10]
push eax
push ecx
call fcn.00417af7
test eax, eax
jne 0x418414
push 2
pop esi
push edi
mov ecx, 0x458fb8
call fcn.00417319
mov eax, esi
pop esi
pop ebx
leave
ret 0xc
Function at 0x41848b
Capabilities:
Query or enumerate registry value

Disassembly:
push 0x14
mov eax, 0x425728
call fcn.0041de82
mov esi, dword [ebp + 8]
cmp esi, dword [0x458fac]
jne 0x4184a9
xor eax, eax
jmp 0x41860e
and dword [ebp - 0x1c], 0
xor ecx, ecx
mov dword [ebp - 0x18], ecx
xor ebx, ebx
or edi, 0xffffffff
test ebx, ebx
jne 0x4184cc
cmp dword [0x458fa4], ebx
je 0x4185ce
push 2
pop edi
jmp 0x4184e6
cmp ebx, 1
jne 0x4185ce
mov eax, esi
call fcn.00418427
test al, al
je 0x4185ce
xor edi, edi
and dword [ebp - 0x10], 0
lea ecx, [ebp + 0xb]
mov dword [ebp - 0x20], edi
call fcn.00418449
xor eax, eax
mov dword [ebp - 4], eax
mov dword [ebp - 0x14], eax
push eax
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, edi
jmp 0x418591
mov eax, dword [ebp - 0x14]
test eax, eax
jne 0x41851a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
lea ecx, [ebp - 0x18]
push ecx
push 0
lea ecx, [ebp - 0x1c]
push ecx
push 0
push dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [ebp - 0x18], 2
mov edi, eax
jae 0x418546
cmp dword [ebp - 0x1c], 1
je 0x418543
cmp dword [ebp - 0x1c], 2
jne 0x418546
push 2
pop edi
mov eax, edi
call fcn.00417c20
test eax, eax
je 0x4185ae
push 0x1c0496
xor edi, edi
push edi
call fcn.0041c87c
mov eax, dword [esi + 8]
movzx eax, word [eax + 6]
push dword [ebp - 0x10]
and eax, 0xf
imul eax, eax, 0xc
mov ecx, 0x458fb8
mov dword [eax + 0x428098], edi
call fcn.004173b5
movzx eax, word [esi + 0xc]
shr eax, 1
and eax, 0x10
or eax, dword [ebp - 0x20]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x14], edi
push edi
push eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi + 8]
call fcn.00417d37
mov edi, eax
test edi, edi
je 0x41850e
jmp 0x4185bf
push dword [ebp - 0x10]
mov ecx, 0x458fb8
call fcn.00417319
test edi, edi
je 0x4185da
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.0041846a
mov ecx, dword [ebp - 0x18]
inc ebx
cmp ebx, 2
jl 0x4184b4
jmp 0x4185e9
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0xb]
call fcn.0041846a
mov ecx, dword [ebp - 0x18]
test edi, edi
jne 0x418604
cmp dword [ebp - 0x1c], 2
je 0x4185fc
mov al, byte [esi + 0xc]
and al, 0xf
cmp al, 2
jne 0x41860c
push ecx
call fcn.00416cd1
jmp 0x41860a
push esi
call fcn.00416780
mov ecx, eax
mov eax, ecx
call fcn.0041df5a
ret 4
Function at 0x418650
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2a4
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x29c], eax
mov eax, dword [0x42814c]
push ebx
mov ebx, dword [ebp + 8]
cmp eax, 0xffffffff
je 0x41882b
push edi
push eax
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
mov dword [ebp - 0x2a0], edi
test edi, edi
je 0x41882a
push esi
xor esi, esi
cmp dword [edi], esi
jne 0x418829
mov dword [edi], 1
cmp ebx, 0x7e
ja 0x418827
mov ebx, dword [edi + ebx*4 + 4]
mov dword [ebp - 0x2a4], ebx
test ebx, ebx
je 0x418827
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
lea eax, [ebp - 0x20a]
push esi
push eax
call sub.MSVCR100.dll_memset
mov eax, dword [ebp + 0x14]
and eax, 3
add esp, 0xc
mov dword [ebp - 0x290], esi
mov dword [ebp - 0x298], eax
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push ebx
mov dword [ebp - 0x294], eax
call fcn.00418953
cmp eax, dword [ebx + 0x24]
jg 0x41874c
mov ecx, dword [ebx + 0x48]
cmp ecx, dword [ebx + 0x44]
jae 0x41874c
test byte [ebx + 4], 1
jne 0x41874c
test dword [ebx + 4], 0x400
jne 0x41874c
test byte [ebp + 0x14], 0x10
jne 0x41874c
cmp dword [0x459314], esi
je 0x41874c
push esi
lea eax, [ebp - 0x28c]
push eax
push 0x20
push 1
call dword [sym.imp.KERNEL32.dll_RtlCaptureStackBackTrace]
movzx eax, ax
mov dword [ebp - 0x290], eax
jmp 0x41874e
mov eax, esi
mov edi, dword [ebp - 0x298]
mov esi, ebx
mov ebx, dword [ebp - 0x29c]
push ebx
push eax
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push edi
call fcn.00418a48
test byte [esi + 4], 2
jne 0x41878d
mov esi, dword [esi]
mov eax, dword [ebp - 0x290]
test esi, esi
jne 0x41875c
mov ebx, dword [ebp - 0x2a4]
test edi, edi
mov edi, dword [ebp - 0x2a0]
jne 0x4187d4
test byte [0x459300], 2
je 0x4187d4
push dword [ebp - 0x29c]
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push dword [ebx + 8]
push dword [ebx + 0x38]
push dword [ebx + 0x34]
push 0x401f20
push dword [0x45930c]
push dword [0x459308]
call fcn.0041883a
mov esi, dword [ebx + 0xc]
cmp esi, 0xffffffff
je 0x418822
mov esi, dword [edi + esi*4 + 4]
test esi, esi
je 0x418822
mov edi, dword [ebp - 0x298]
mov ebx, dword [ebp - 0x290]
push 0
push ebx
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x20c]
push eax
push dword [ebp - 0x294]
push dword [ebp + 0xc]
push edi
call fcn.00418a48
test byte [esi + 4], 2
jne 0x41881c
mov esi, dword [esi]
test esi, esi
jne 0x4187f0
mov edi, dword [ebp - 0x2a0]
and dword [edi], 0
jmp 0x418829
mov dword [edi], esi
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0041d31a
leave
ret 0x10
Function at 0x419b51
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x408f9c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push esi
mov dword [ebp - 0x240], eax
mov esi, 0x104
lea eax, [ebp - 0x22c]
push esi
push eax
call fcn.0041cbb3
pop ecx
pop ecx
test eax, eax
jne 0x419b8e
or eax, 0xffffffff
jmp 0x419d34
push ebx
xor eax, eax
lea ebx, [ebp - 0x22c]
push edi
mov dword [ebp - 0x234], ebx
cmp word [ebp - 0x22c], ax
je 0x419bb5
add ebx, 2
cmp word [ebx], ax
jne 0x419ba7
mov dword [ebp - 0x234], ebx
push 1
call fcn.0041cb59
pop ecx
push dword [0x42812c]
call fcn.00416821
mov edi, eax
mov dword [ebp - 0x230], edi
cmp edi, 0x64
jbe 0x419bd8
xor edi, edi
inc edi
lea eax, [ebp - 0x22c]
sub ebx, eax
sar ebx, 1
push edi
push 0x40200c
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.0041ab53
add esp, 0x10
test ebx, ebx
js 0x419c89
cmp ebx, esi
ja 0x419c89
lea ecx, [ebp - 0x23c]
mov eax, esi
sub eax, ebx
push ecx
push eax
call fcn.0041b90d
pop ecx
pop ecx
push dword [ebp - 0x23c]
lea eax, [ebp - 0x24]
push dword [ebp - 0x234]
push eax
call fcn.00416195
push 1
push 0
push 0x80
push 1
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.0041fe88
mov dword [ebp - 0x238], eax
cmp eax, 0xffffffff
jne 0x419cec
cmp edi, 0x64
jb 0x419c64
xor edi, edi
inc edi
cmp edi, dword [ebp - 0x230]
jne 0x419be2
push edi
push 0x40200c
lea eax, [ebp - 0x24]
push 0xffffffffffffffff
push eax
call fcn.0041ab53
add esp, 0x10
test ebx, ebx
jns 0x419c8f
call dword [sym.imp.MSVCR100.dll__invalid_parameter_noinfo_noreturn]
cmp ebx, esi
ja 0x419c89
lea eax, [ebp - 0x230]
push eax
sub esi, ebx
push esi
call fcn.0041b90d
pop ecx
pop ecx
push dword [ebp - 0x230]
lea eax, [ebp - 0x24]
push dword [ebp - 0x234]
push eax
call fcn.00416195
mov ebx, 0x80
push ebx
lea eax, [ebp - 0x22c]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push 1
push 0
push ebx
push 2
push 0
push 1
push 0xc0000000
lea eax, [ebp - 0x22c]
push eax
call fcn.0041fe88
mov esi, eax
jmp 0x419cf2
mov esi, dword [ebp - 0x238]
cmp edi, 0x64
jb 0x419cf9
xor edi, edi
cmp byte [ebp + 0x10], 0
je 0x419d0e
lea eax, [edi + 1]
push eax
push dword [0x42812c]
call fcn.00416849
call fcn.004199e5
mov eax, dword [ebp - 0x240]
pop edi
pop ebx
test eax, eax
je 0x419d32
push dword [ebp + 0xc]
push eax
lea eax, [ebp - 0x22c]
push eax
call fcn.00418d09
add esp, 0xc
mov eax, esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.0041d31a
leave
ret