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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
lea eax, [ebp - 4]
push eax
push 1
xor ebx, ebx
push ebx
push str.SoftwareIntelIntel_MSDK_MF_Plug_ins
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], 4
mov dword [ebp - 8], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
je 0x10013ac8
push ebx
push 1
lea ecx, [ebp - 0x10]
push ecx
push 0x800
push eax
push ebx
push 0x100
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
lea edx, [ebp - 0xc]
push edx
mov edx, dword [ebp + 8]
push eax
mov eax, dword [ebp - 4]
lea ecx, [ebp - 8]
push ecx
push ebx
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov ecx, dword [ebp - 4]
push ecx
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp esi, ebx
je 0x10013b1b
push edi
push ebx
push 1
lea edx, [ebp - 0x10]
push edx
push 0x800
push esi
push ebx
push 0x100
mov edi, 0x80004005
call dword [sym.imp.KERNEL32.dll_FormatMessageW]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp - 8], 4
mov eax, 0x80004005
jne 0x10013b28
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10017930
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x100aa470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x64], eax
mov dword [ebp - 0x68], edx
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], ebx
mov dword [ebp - 0x60], ebx
cmp edx, ebx
je 0x10017a37
lea esi, [ebp - 0x60]
call fcn.10015420
cmp eax, ebx
jge 0x10017978
mov dword [ebp - 0x60], ebx
cmp eax, ebx
jl 0x10017a26
push 0x27
lea ecx, [ebp - 0x54]
push ecx
push edi
call dword [sym.imp.ole32.dll_StringFromGUID2]
mov esi, eax
cmp esi, ebx
jl 0x10017a0a
mov edi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
push ebx
lea edx, [ebp - 0x58]
push edx
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push 0x1009d7d0
push reloc.OLEAUT32.dll_SysReAllocString
call edi
cmp eax, ebx
jle 0x100179b9
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x10017a0a
mov ecx, dword [ebp - 0x64]
mov edx, dword [ebp - 0x58]
push ebx
lea eax, [ebp - 0x5c]
push eax
push ebx
push 0xf003f
push ebx
push ebx
push ebx
push ecx
push edx
call edi
cmp eax, ebx
jle 0x100179e5
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
cmp esi, ebx
jl 0x10017a0a
mov eax, dword [ebp - 0x60]
mov edx, dword [ebp - 0x68]
lea ecx, [eax + eax + 2]
push ecx
mov ecx, dword [ebp - 0x5c]
push edx
push 1
push ebx
lea eax, [ebp - 0x54]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov esi, eax
mov eax, dword [ebp - 0x5c]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp eax, ebx
je 0x10017a1a
push eax
call edi
mov eax, dword [ebp - 0x58]
cmp eax, ebx
je 0x10017a24
push eax
call edi
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10040698
mov esp, ebp
pop ebp
ret
mov eax, 0x80070057
jmp 0x1001796d
Function at 0x1002ec20
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x224
mov eax, dword [0x100aa470]
xor eax, esp
mov dword [esp + 0x220], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, dword [ebp + 0xc]
push edi
mov dword [esp + 0x18], 0x104
call dword [sym.imp.KERNEL32.dll_lstrlenW]
test eax, eax
jne 0x1002ec72
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x220]
xor ecx, esp
call fcn.10040698
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x10]
push eax
push 0x2000000
push 0
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002ecc3
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
lea ecx, [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x14]
push 0
push 0
push 0
lea edx, [esp + 0x24]
push edx
lea eax, [esp + 0x34]
push eax
push 0
push ecx
call esi
test eax, eax
jne 0x1002ecc3
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x20]
push edx
push eax
call fcn.1002ec20
jmp 0x1002ec90
mov ecx, dword [esp + 0x10]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ecx, dword [esp + 0x22c]
pop edi
pop esi
pop ebx
xor ecx, esp
xor eax, eax
call fcn.10040698
mov esp, ebp
pop ebp
ret 8
Function at 0x1002ecf0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x274
mov eax, dword [0x100aa470]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x1c]
push esi
mov esi, dword [ebp + 0x18]
mov dword [ebp - 0x268], ecx
push 0x27
lea ecx, [ebp - 0x54]
mov dword [ebp - 0x264], edx
mov dword [ebp - 0x26c], eax
mov eax, dword [ebp + 0x14]
push ecx
lea edx, [ebp - 0x26c]
push edx
mov dword [ebp - 0x260], eax
call dword [sym.imp.ole32.dll_StringFromGUID2]
test eax, eax
js 0x1002ef1e
push edi
lea eax, [ebp - 0x54]
push eax
push str.CLSID_ls
mov ecx, 0x104
lea edi, [ebp - 0x25c]
call fcn.10015380
add esp, 8
lea ecx, [ebp - 0x270]
push ecx
mov edx, edi
push edx
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x1002ee99
push esi
push 0x1009f2a0
mov ecx, 0x104
call fcn.10015380
mov ecx, dword [ebp - 0x270]
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueW]
add esp, 8
push 0x208
mov eax, edi
push eax
push 1
push 0
push ecx
call esi
mov edi, eax
test edi, edi
je 0x1002eddf
mov edx, dword [ebp - 0x270]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040698
mov esp, ebp
pop ebp
ret 0x18
push str.InprocServer32
push 0x1009f2a0
mov ecx, 0x104
lea edi, [ebp - 0x25c]
call fcn.10015380
mov edx, dword [ebp - 0x270]
add esp, 8
lea eax, [ebp - 0x274]
push eax
mov ecx, edi
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
mov edi, eax
test edi, edi
je 0x1002ee40
mov eax, dword [ebp - 0x270]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
pop edi
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040698
mov esp, ebp
pop ebp
ret 0x18
push ebx
push 0x1009f2a0
mov ecx, 0x104
lea edi, [ebp - 0x25c]
call fcn.10015380
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
add esp, 8
mov ecx, edi
push ecx
call ebx
mov ecx, dword [ebp - 0x274]
lea edx, [eax + eax + 2]
push edx
mov eax, edi
push eax
push 1
push 0
push ecx
call esi
mov esi, eax
test esi, esi
je 0x1002eeb1
mov edx, dword [ebp - 0x270]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
call edi
mov eax, dword [ebp - 0x274]
push eax
call edi
mov eax, esi
pop edi
pop esi
or eax, 0x80070000
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10040698
mov esp, ebp
pop ebp
ret 0x18
push str.Both
push 0x1009f2a0
mov ecx, 0x104
lea edi, [ebp - 0x25c]
call fcn.10015380
add esp, 8
mov ecx, edi
push ecx
call ebx
mov ecx, dword [ebp - 0x274]
lea edx, [eax + eax + 2]
push edx
mov eax, edi
push eax
push 1
push 0
push str.ThreadingModel
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x270]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push edx
mov esi, eax
call edi
mov eax, dword [ebp - 0x274]
push eax
call edi
test esi, esi
jle 0x1002ef1b
and esi, 0xffff
or esi, 0x80070000
mov eax, esi
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.10040698
mov esp, ebp
pop ebp
ret 0x18
Function at 0x10030a70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, ecx
cmp byte [edi + 0xc], 0
jne 0x10030a9f
push 0x15b
push str.src_sample_utils.cpp
push 0xfffffffffffffff8
push str._nReturn_on_error:_error_code__d__t_s_t_d_n_n
call fcn.1007325b
add esp, 0x10
mov eax, 0xfffffff8
pop edi
pop ebp
ret 8
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10030ab0
lea eax, [esi - 2]
pop esi
pop edi
pop ebp
ret 8
mov eax, dword [edi + 8]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
add edx, dword [esi + 0x28]
push eax
push ecx
push 1
push edx
call fcn.10041862
add esp, 0x10
cmp dword [esi + 0x30], eax
je 0x10030af2
push 0x161
push str.src_sample_utils.cpp
push 0xfffffffffffffff0
push str._nReturn_on_error:_error_code__d__t_s_t_d_n_n
call fcn.1007325b
add esp, 0x10
pop esi
mov eax, 0xfffffff0
pop edi
pop ebp
ret 8
mov dword [esi + 0x30], 0
inc dword [edi + 4]
cmp byte [ebp + 0xc], 0
mov edi, dword [edi + 4]
je 0x10030b27
cmp edi, 1
je 0x10030b19
xor edx, edx
mov eax, edi
mov ecx, 0x64
div ecx
test edx, edx
jne 0x10030b27
push edi
push str.Frame_number:__hd_r
call fcn.10073f97
add esp, 8
pop esi
xor eax, eax
pop edi
pop ebp
ret 8

Function at 0x10030c80
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
test esi, esi
jne 0x10030c97
pop edi
lea eax, [esi - 2]
pop esi
pop ebp
ret 4
cmp byte [edi + 8], 0
jne 0x10030cc1
push 0x19e
push str.src_sample_utils.cpp
push 0xfffffffffffffff8
push str._nReturn_on_error:_error_code__d__t_s_t_d_n_n
call fcn.1007325b
add esp, 0x10
pop edi
mov eax, 0xfffffff8
pop esi
pop ebp
ret 4
mov eax, dword [esi + 0x28]
mov ecx, dword [esi + 0x30]
mov edx, dword [esi + 0x2c]
push ecx
add edx, eax
push edx
push eax
call fcn.10040940
mov eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov dword [esi + 0x2c], 0
mov ecx, dword [edi + 4]
push ecx
mov ecx, dword [esi + 0x28]
sub edx, eax
push edx
add ecx, eax
push 1
push ecx
call fcn.10072306
add esp, 0x1c
test eax, eax
jne 0x10030d07
pop edi
mov eax, 0xfffffff6
pop esi
pop ebp
ret 4
add dword [esi + 0x30], eax
pop edi
xor eax, eax
pop esi
pop ebp
ret 4
Function at 0x1003c5b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, eax
cmp byte [esi + 8], 0
push edi
jne 0x1003c5cd
mov eax, 0x80004005
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x10], 0
jne 0x1003c5df
mov eax, 0x80004003
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [esi + 0x14], 0
je 0x1003c5d3
mov eax, dword [esi + 4]
test eax, eax
je 0x1003c60b
mov ecx, dword [esi + 0x44]
add ecx, dword [esi + 0x40]
push eax
mov eax, dword [esi + 0x48]
push eax
push 1
push ecx
call fcn.10041862
mov edx, dword [esi + 4]
push edx
call fcn.1004154a
add esp, 0x14
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x48]
mov ecx, dword [eax]
push edx
push eax
mov eax, dword [ecx + 0x18]
call eax
mov ecx, dword [esi + 0x38]
mov eax, dword [esi + 0x3c]
cmp ecx, 0xffffffff
jne 0x1003c629
cmp eax, ecx
je 0x1003c671
mov dword [ebp - 8], ecx
mov ecx, eax
and eax, 0x7fffffff
mov dword [ebp - 4], eax
fild qword [ebp - 8]
and ecx, 0x80000000
mov dword [ebp - 4], ecx
mov dword [ebp - 8], 0
fild qword [ebp - 8]
mov edi, dword [esi + 0x10]
mov ebx, dword [edi]
fchs
faddp st(1)
fdiv qword [0x1009f798]
fmul qword [0x1009f770]
call fcn.10082076
mov ecx, dword [ebx + 0x90]
push edx
push eax
push edi
call ecx
test byte [esi + 0x52], 1
mov eax, dword [esi + 0x10]
je 0x1003c68b
mov edx, dword [eax]
push 1
push 0x10098374
push eax
mov eax, dword [edx + 0x54]
call eax
jmp 0x1003c69a
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
push 0
push 0x10098374
push eax
call edx
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
xor edx, edx
cmp byte [esi + 0xa], dl
setne dl
push edx
push 0x10098384
push eax
mov eax, dword [ecx + 0x54]
call eax
movzx eax, word [esi + 0x50]
test al, 6
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
mov edx, dword [ecx + 0x54]
jne 0x1003c6cf
push 0
push 0x10098454
push eax
call edx
jmp 0x1003c6f4
push 1
push 0x10098454
push eax
call edx
movzx edx, word [esi + 0x50]
mov eax, dword [esi + 0x10]
mov ecx, dword [eax]
shr edx, 2
and edx, 1
push edx
push 0x10098464
push eax
mov eax, dword [ecx + 0x54]
call eax
mov edi, dword [esi + 0x5c]
xor edx, edx
mov dword [ebp - 4], 0
add edi, 0x26
movzx eax, word [edi]
mov ecx, 0xffff
cmp ax, cx
je 0x1003c72a
mov ecx, eax
cmp ecx, 0x10
jae 0x1003c753
and ecx, 0x1f
mov ebx, 1
shr eax, 5
shl ebx, cl
lea eax, [ebp + eax*4 - 4]
or dword [eax], ebx
inc edx
add edi, 0x10
cmp edx, 0x20
jl 0x1003c703
mov eax, dword [esi + 0x5c]
movzx ecx, word [eax + 0xe]
mov eax, dword [ebp - 4]
xor edx, edx
xor edi, edi
cmp eax, eax
jne 0x1003c749
cmp edi, edx
je 0x1003c75d
push str.bitset_N__overflow
call fcn.1003f537
push str.invalid_bitset_N__position
call fcn.1003f4ea
mov esi, dword [esi + 0x10]
mov edx, dword [esi]
mov edx, dword [edx + 0x54]
shl eax, 0x10
or eax, ecx
push eax
push 0x1009c75c
push esi
call edx
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x10040698
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x100aa470]
jne 0x100406a2
repz ret
jmp fcn.1004921a
Function at 0x10056a01
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x100aa470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.10047e48
and dword [ebp - 0x14], 0
cmp dword [0x100aeff4], 0
mov dword [ebp - 0x18], eax
jne 0x10056ab4
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x10056b5c
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x10056b5c
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x100aeff4], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x100aeff8], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x100aeffc], eax
call edi
push eax
call esi
mov dword [0x100af004], eax
test eax, eax
je 0x10056ab4
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x100af000], eax
mov eax, dword [0x100af000]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x10056b0d
cmp dword [0x100af004], ecx
je 0x10056b0d
push eax
call esi
push dword [0x100af004]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x10056b0d
test ebx, ebx
je 0x10056b0d
call edi
test eax, eax
je 0x10056b04
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x10056b04
test byte [ebp - 8], 1
jne 0x10056b0d
or dword [ebp + 0x10], 0x200000
jmp 0x10056b40
mov eax, dword [0x100aeff8]
cmp eax, dword [ebp - 0x18]
je 0x10056b40
push eax
call esi
test eax, eax
je 0x10056b40
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x10056b40
mov eax, dword [0x100aeffc]
cmp eax, dword [ebp - 0x18]
je 0x10056b40
push eax
call esi
test eax, eax
je 0x10056b40
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x100aeff4]
call esi
test eax, eax
je 0x10056b5c
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x10056b5e
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10040698
leave
ret
Function at 0x1006a090
Capabilities:
Get file attributes

Disassembly:
push 0xffffffffffffffff
push 0x100827db
mov eax, dword fs:[0]
push eax
mov eax, 0x504c
call fcn.10058510
mov eax, dword [0x100aa470]
xor eax, esp
mov dword [esp + 0x5048], eax
push ebx
push esi
push edi
mov eax, dword [0x100aa470]
xor eax, esp
push eax
lea eax, [esp + 0x505c]
mov dword fs:[0], eax
mov ebx, dword [esp + 0x506c]
mov edi, dword [esp + 0x5070]
mov esi, ecx
push ebx
mov dword [esp + 0x14], esi
call fcn.100699d0
mov dword [esp + 0x5064], 0
push 0x1000
lea eax, [esp + 0x305c]
mov dword [esi], vtable.MFX::MFXDefaultPlugins.0
mov ecx, dword [edi + 0x224]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x1006a1ce
lea edx, [esp + 0x3058]
push 0x5c
push edx
call fcn.10071b02
add esp, 8
test eax, eax
jne 0x1006a13e
lea eax, [esp + 0x3058]
lea edx, [esp + 0x3058]
mov ecx, eax
sub ecx, edx
sar ecx, 1
add ecx, 1
lea edx, [ecx + 0x19]
cmp edx, 0x1000
jae 0x1006a1ce
mov edx, dword [esp + 0x5074]
push edx
mov edx, 0x1000
sub edx, ecx
push edx
add eax, 2
push eax
call fcn.1006ab30
add esp, 0xc
lea eax, [esp + 0x3058]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or edi, 0xffffffff
cmp eax, edi
je 0x1006a1c5
lea ecx, [esp + 0x14]
call fcn.100660b0
lea ecx, [esp + 0x3058]
push ecx
lea edx, [esp + 0x58]
push 0x1000
push edx
mov dword [esp + 0x3c], ebx
mov byte [esp + 0x3061], 1
call fcn.10056cca
add esp, 0xc
lea eax, [esp + 0x14]
push eax
mov ecx, esi
call fcn.10069800
mov dword [esp + 0x5064], edi
jmp 0x1006a1d9
mov dword [esp + 0x5064], 0xffffffff
mov eax, esi
mov ecx, dword [esp + 0x505c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x5048]
xor ecx, esp
call fcn.10040698
add esp, 0x5058
ret 0xc

Function at 0x1006b340
Capabilities:
Query or enumerate registry value

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
push edi
mov edi, dword [esp + 0x20]
test edi, edi
mov dword [esp + 0x18], ebx
je 0x1006b358
mov esi, dword [edi]
jmp 0x1006b35a
xor esi, esi
mov ebp, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
push edi
push ebp
lea eax, [esp + 0x20]
push eax
mov eax, dword [ecx]
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1006b382
pop edi
pop esi
pop ebp
xor al, al
pop ebx
ret 0x10
cmp dword [esp + 0x18], ebx
jne 0x1006b379
cmp ebx, 1
je 0x1006b392
cmp ebx, 2
jne 0x1006b3d1
test ebp, ebp
je 0x1006b3d1
test edi, edi
je 0x1006b3d1
cmp esi, 2
jb 0x1006b379
mov eax, dword [edi]
lea ecx, [esi - 2]
cmp ecx, eax
jae 0x1006b3bf
shr esi, 1
sub esi, 1
pop edi
mov eax, esi
pop esi
mov word [ebp + eax*2], 0
pop ebp
mov al, 1
pop ebx
ret 0x10
pop edi
shr eax, 1
pop esi
mov word [ebp + eax*2], 0
pop ebp
mov al, 1
pop ebx
ret 0x10
cmp ebx, 7
jne 0x1006b408
test ebp, ebp
je 0x1006b408
test edi, edi
je 0x1006b408
cmp esi, 4
jb 0x1006b379
mov eax, dword [edi]
lea edx, [esi - 4]
cmp edx, eax
jae 0x1006b3f5
shr esi, 1
sub esi, 1
mov eax, esi
jmp 0x1006b3fa
shr eax, 1
add eax, 1
mov word [ebp + eax*2 - 2], 0
mov word [ebp + eax*2], 0
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
ret 0x10
Function at 0x1006b450
Capabilities:
Query or enumerate registry key

Disassembly:
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 8]
mov ecx, dword [ecx]
push 0
push 0
push 0
push 0
push eax
mov eax, dword [esp + 0x18]
push edx
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
test eax, eax
sete al
ret 0xc
Function at 0x10070e50
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [esp + 8]
mov ecx, 1
cmp eax, 2
jne 0x10070e77
mov eax, dword [esp + 4]
mov ecx, 0x10
push ecx
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret
cmp eax, 3
jne 0x10070e95
mov eax, dword [esp + 4]
mov ecx, 0x20
push ecx
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret
cmp eax, 7
jne 0x10070eb3
mov eax, dword [esp + 4]
mov ecx, 0x40
push ecx
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret
cmp eax, 1
jne 0x10070ed1
mov eax, dword [esp + 4]
mov ecx, 2
push ecx
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret
cmp eax, 5
jne 0x10070edb
mov ecx, 4
mov eax, dword [esp + 4]
push ecx
push 0x3000
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
ret
Function at 0x406ce7
Capabilities:
Encrypt data using tea

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
and dword [ebp - 8], 0
push ebx
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0x30], edi
mov eax, dword [edi]
mov ebx, dword [edi + 4]
mov dword [ebp - 0x14], eax
mov eax, dword [0x4192d0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4192d4]
mov dword [ebp - 0x2c], eax
call fcn.00406ce0
mov esi, dword [ebp - 8]
mov eax, dword [0x4192d8]
add esi, 0x23f
mov dword [ebp - 0x34], eax
mov eax, dword [0x4192dc]
push 0x20
mov dword [ebp - 8], esi
mov dword [ebp - 0x38], eax
pop edi
mov dword [ebp - 0x20], 2
add dword [ebp - 0x20], 3
mov edx, dword [ebp - 0x14]
mov eax, edx
mov ecx, dword [0x1e0af0c]
shl eax, 4
mov dword [ebp - 4], eax
cmp ecx, 0xc
jne 0x406d7e
xor ecx, ecx
lea eax, [ebp - 0x3c]
push ecx
push eax
push ecx
lea eax, [ebp - 0x43c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_ReadConsoleW]
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [0x1e0af0c]
add eax, dword [ebp - 0x34]
cmp ecx, 0xfa9
mov dword [ebp - 4], eax
mov eax, dword [0x1e0af08]
mov dword [ebp - 0xc], 0xedeb2e40
cmove eax, dword [ebp - 0xc]
and dword [ebp - 0xc], 0
cmp ecx, 0x3eb
mov dword [0x1e0af08], eax
mov eax, dword [0x1e0ae5c]
cmove eax, dword [ebp - 0xc]
mov dword [0x1e0ae5c], eax
lea eax, [esi + edx]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x14]
shr eax, 5
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x38]
add dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
and dword [ebp - 0x24], 0
mov dword [0x1e0af04], 0xf4ea3dee
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
add dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
xor dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x18]
xor eax, dword [ebp - 0x10]
sub ebx, eax
mov dword [ebp - 0x18], eax
mov eax, ebx
mov dword [ebp - 0x10], ebx
shl eax, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x28]
add dword [ebp - 4], eax
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 8]
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
nop
add dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov ecx, dword [ebp - 0x20]
mov eax, ebx
shr eax, cl
add eax, dword [ebp - 0x2c]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0xc]
xor dword [ebp - 4], eax
cmp dword [0x1e0af0c], 0xb03
jne 0x406e55
push 0
call dword [sym.imp.KERNEL32.dll_GetConsoleAliasesLengthW]
push 0x406440
push 0
push 0
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov eax, dword [ebp - 4]
and dword [ebp - 8], 0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x18]
xor dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
sub dword [ebp - 0x14], eax
add esi, 0x61c88647
mov dword [ebp - 8], esi
dec edi
jne 0x406d3b
mov edi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x14]
mov dword [edi + 4], ebx
mov dword [edi], eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret