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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [0x1004b220]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, ecx
cmp ebx, 0xffffffff
jne 0x1001a770
pop esi
xor eax, eax
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret 4
mov eax, dword [esi + 0x20]
mov eax, dword [eax]
test eax, eax
je 0x1001a7a0
mov edx, dword [esi + 0x30]
mov edx, dword [edx]
add edx, eax
cmp eax, edx
jae 0x1001a7a0
call dword [sym.imp.MSVCP140.dll_protected:_char____thiscall_std::basic_streambuf_char__struct_std::char_traits_char__::_Pninc_void_]
pop esi
mov byte [eax], bl
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret 4
cmp dword [esi + 0x4c], 0
push edi
je 0x1001a878
mov edi, dword [esi + 0xc]
lea eax, [esi + 0x3c]
cmp dword [edi], eax
jne 0x1001a7c9
mov edx, dword [esi + 0x54]
mov ecx, dword [esi + 0x50]
sub edx, ecx
mov dword [edi], ecx
mov eax, dword [esi + 0x1c]
mov dword [eax], ecx
mov eax, dword [esi + 0x2c]
mov dword [eax], edx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x1001a7d5
movsx eax, bl
jmp 0x1001a80d
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x1001a837
sub eax, 1
je 0x1001a837
sub eax, 2
jne 0x1001a878
movsx eax, byte [ebp - 0x25]
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, ebx
pop edi
pop esi
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret 4
mov edi, dword [ebp - 0x2c]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001a855
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001a878
lea ecx, [ebp - 0x25]
mov byte [esi + 0x3d], 1
or eax, 0xffffffff
cmp dword [ebp - 0x30], ecx
pop edi
pop esi
cmovne eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.10036aba
mov esp, ebp
pop ebp
ret 4
Function at 0x1001b800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x1004b220]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
cmp dword [esi + 0x38], 0
je 0x1001b8bc
cmp byte [esi + 0x3d], 0
je 0x1001b8bc
mov eax, dword [esi]
push edi
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x1001b8aa
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, 0
je 0x1001b871
sub eax, 1
je 0x1001b875
sub eax, 2
jne 0x1001b8aa
mov byte [esi + 0x3d], al
mov al, 1
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
mov byte [esi + 0x3d], 0
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x1001b893
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x1001b8aa
cmp byte [esi + 0x3d], 0
pop edi
sete al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
pop edi
xor al, al
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
mov al, 1
xor ecx, ebp
pop esi
call fcn.10036aba
mov esp, ebp
pop ebp
ret

Function at 0x1001bf70
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039c3d
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x1004b220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 0xc
call fcn.10036cad
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov dword [ebp + 0x10], eax
mov edx, dword [edx]
mov dword [eax], edx
mov ecx, dword [ecx]
mov dword [eax + 4], ecx
mov dword [eax + 8], 0x10015930
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x1001cff0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x1001bff2
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
push 6
mov dword [edi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x1001d080
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10039d7d
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x1004b220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov esi, esp
mov dword [ebp - 0x28], esi
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x1001d18d
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x1003fc50
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.10006e20
test al, al
jne 0x1001d0ee
push 0xc
push 0x1003fc50
mov ecx, esi
call fcn.100071a0
mov dword [ebp - 4], 0xffffffff
call fcn.10023d60
add esp, 4
test eax, eax
je 0x1001d170
push 0x10040e80
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edi, eax
test edi, edi
je 0x1001d170
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0x40
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov esi, eax
mov byte [ebp - 0x24], 0xe9
lea eax, [ebp - 0x30]
mov ecx, 0x1001d070
push eax
push 5
lea eax, [ebp - 0x24]
sub ecx, edi
push eax
sub ecx, 5
push edi
mov dword [ebp - 0x23], ecx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_WriteProcessMemory]
mov dword [ebp - 0x28], eax
test esi, esi
je 0x1001d172
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x2c]
push 5
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov eax, dword [ebp - 0x28]
jmp 0x1001d172
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100018f0
int3

Function at 0x10023850
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a51e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1004b220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 1
mov esi, dword [ebp + 8]
push esi
call fcn.10023a60
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp dword [eax - 0xc], 0
je 0x100238e9
push str.crashlogs
mov ecx, esi
call fcn.10023150
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.100070d0
add esp, 4
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x100238d1
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
add edi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x100238e9
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10023900
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a51e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1004b220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 1
mov esi, dword [ebp + 8]
push esi
call fcn.10023a60
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp dword [eax - 0xc], 0
je 0x10023999
push str.dumps
mov ecx, esi
call fcn.10023150
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.100070d0
add esp, 4
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10023981
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
add edi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10023999
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x100239b0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a51e
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
push edi
mov eax, dword [0x1004b220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], 1
mov esi, dword [ebp + 8]
push esi
call fcn.10023a60
add esp, 4
mov eax, dword [esi]
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 1
cmp dword [eax - 0xc], 0
je 0x10023a49
push str.ingest
mov ecx, esi
call fcn.10023150
mov eax, dword [esi]
sub eax, 0x10
push eax
call fcn.100070d0
add esp, 4
lea edi, [eax + 0x10]
push edi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x10023a31
push eax
push edi
push eax
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
add edi, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10023a49
mov ecx, dword [edi]
push edi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10023d60
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a608
mov eax, dword fs:[0]
push eax
mov eax, 0x10008
call fcn.10037650
mov eax, dword [0x1004b220]
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
push 0x7fff
lea eax, [ebp - 0x10010]
mov dword [ebp - 4], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
or edi, 0xffffffff
test eax, eax
jne 0x10023db6
xor ebx, ebx
jmp 0x10023e24
mov byte [ebp - 4], 1
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x10023e5a
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x10014], eax
push dword [ebp + 8]
lea eax, [ebp - 0x10010]
mov byte [ebp - 4], 2
push 0x1003fc6c
push eax
lea eax, [ebp - 0x10014]
push str._s_s_s
push eax
call fcn.1001bd10
mov esi, dword [ebp - 0x10014]
add esp, 0x14
push esi
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
add esi, 0xfffffff0
mov ecx, edi
lock xadd dword [esi + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10023e24
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov edx, dword [ebp + 8]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x10023e3c
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, ebx
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.10036aba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100018f0
int3
Function at 0x10024990
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003a816
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x1004b220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x14], 1
push eax
call fcn.10023a60
add esp, 4
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 0
mov dword [ebp - 0x14], 1
cmp dword [eax - 0xc], 0
je 0x100249ef
push str.windowsclient
lea ecx, [ebp - 0x10]
call fcn.10023150
mov eax, dword [ebp - 0x10]
or esi, 0xffffffff
mov dword [ebp - 4], 1
cmp dword [eax - 0xc], 0
je 0x10024a43
push str.generatecrlogornot.txt
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x18]
push eax
call fcn.1001b350
add esp, 0xc
push dword [eax]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
mov edx, dword [ebp - 0x18]
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x10024a3b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
je 0x10024a43
mov bl, 1
jmp 0x10024a45
xor bl, bl
mov eax, dword [ebp - 0x10]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x10024a5d
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1002b520
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
mov edx, 0x811c9dc5
push edi
mov edi, dword [ebp + 8]
mov ecx, 0
sub esi, edi
je 0x1002b551
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, esi
jb 0x1002b540
pop edi
mov eax, edx
pop esi
pop ebp
ret 8

Function at 0x1002b560
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
mov ecx, 0
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, 0x811c9dc5
sub edx, edi
sar edx, 1
add edx, edx
je 0x1002b591
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, edx
jb 0x1002b580
pop edi
mov eax, esi
pop esi
pop ebp
ret 8

Function at 0x1002dde0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003acd8
mov eax, dword fs:[0]
push eax
sub esp, 0x10c
mov eax, dword [0x1004b220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
xor bl, bl
mov dword [ebp - 0x118], 0
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x1002df28
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x114], eax
push 0x1003e008
lea ecx, [ebp - 0x114]
mov byte [ebp - 4], 1
call fcn.10006e20
test al, al
jne 0x1002de67
push 0x50
push 0x1003e008
lea ecx, [ebp - 0x114]
call fcn.100071a0
mov esi, dword [ebp - 0x114]
lea eax, [ebp - 0x118]
push eax
push 0x20019
push 0
push esi
push SHDefExtractIconW
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x1002dec3
lea eax, [ebp - 0x114]
mov dword [ebp - 0x114], 0xff
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
movzx ebx, bl
mov ecx, 1
cmove ebx, ecx
push dword [ebp - 0x118]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
lea edx, [esi - 0x10]
mov dword [ebp - 0x118], 0
or esi, 0xffffffff
mov eax, esi
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002def3
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], esi
dec esi
test esi, esi
jg 0x1002df0b
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100018f0
int3
Function at 0x1002df40
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ad28
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x1004b220]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov esi, esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 0
xor bl, bl
mov dword [ebp - 0x118], 0xff
mov dword [ebp - 0x11c], esi
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x1002e057
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x1003dfc0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10006e20
test al, al
jne 0x1002dfce
push 0x18
push 0x1003dfc0
mov ecx, esi
call fcn.100071a0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0
push eax
call fcn.1002ff50
add esp, 8
test al, al
jne 0x1002dfe9
xor bl, bl
jmp 0x1002e01f
mov esi, dword [ebp - 0x114]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
movzx ebx, bl
mov ecx, 1
push esi
cmove ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [ebp + 8]
or eax, 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x1002e03a
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10036aba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100018f0
int3
Function at 0x1002e070
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ad75
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push esi
push edi
mov eax, dword [0x1004b220]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
push ecx
mov esi, esp
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x1002e1e1
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push str.CRLog
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.10006e20
test al, al
jne 0x1002e0e1
push str.CRLog
mov ecx, esi
call fcn.10006f40
lea eax, [ebp - 0x14]
mov dword [ebp - 4], 0xffffffff
push eax
call fcn.1002ff50
add esp, 8
test al, al
je 0x1002e1cf
push 0x1003f3ac
lea ecx, [ebp - 0x10]
call fcn.100065c0
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], 1
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
lea esi, [ecx*2 + 1]
jle 0x1002e12f
push ecx
lea ecx, [ebp - 0x10]
call fcn.10007470
mov eax, dword [ebp - 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push esi
mov esi, dword [ebp - 0x14]
push eax
push 1
push 0
push 0x1003f374
push esi
call edi
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
lea ebx, [ecx*2 + 1]
jle 0x1002e165
push ecx
lea ecx, [ebp - 0x10]
call fcn.10007470
mov eax, dword [ebp - 0x10]
push ebx
push eax
push 1
push 0
push str.Contact_Permission
push esi
call edi
lea ecx, [ebp - 0x10]
call fcn.100072c0
mov eax, dword [ebp - 0x10]
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
lea ebx, [ecx*2 + 1]
jle 0x1002e19a
push ecx
lea ecx, [ebp - 0x10]
call fcn.10007470
mov eax, dword [ebp - 0x10]
push ebx
push eax
push 1
push 0
push str.Email_Id
push esi
call edi
push str.User_level_client_setting
push esi
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov edx, dword [ebp - 0x10]
or eax, 0xffffffff
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e1cf
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100018f0
int3
Function at 0x1002e300
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1003ae03
mov eax, dword fs:[0]
push eax
sub esp, 0x110
mov eax, dword [0x1004b220]
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
push ecx
mov esi, esp
mov dword [ebp - 4], 0
mov dword [ebp - 0x114], 0
mov dword [ebp - 0x118], 0xff
mov dword [ebp - 0x11c], esi
call fcn.10001b20
mov ecx, eax
test ecx, ecx
je 0x1002e481
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [esi], eax
push 0x1003dfc0
mov ecx, esi
mov byte [ebp - 4], 1
call fcn.10006e20
test al, al
jne 0x1002e38d
push 0x18
push 0x1003dfc0
mov ecx, esi
call fcn.100071a0
lea eax, [ebp - 0x114]
mov byte [ebp - 4], 0
push eax
call fcn.1002ff50
add esp, 8
or edi, 0xffffffff
test al, al
jne 0x1002e3ae
xor bl, bl
jmp 0x1002e44b
mov esi, dword [ebp - 0x114]
lea eax, [ebp - 0x118]
push eax
lea eax, [ebp - 0x110]
push eax
push 0
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x1002e442
cmp eax, 2
jne 0x1002e442
push str.0_1_100
lea ecx, [ebp - 0x114]
call fcn.100066b0
mov eax, dword [ebp - 0x114]
mov byte [ebp - 4], 2
cmp dword [eax - 4], 1
mov ecx, dword [eax - 0xc]
lea ebx, [ecx*2 + 1]
jle 0x1002e415
push ecx
lea ecx, [ebp - 0x114]
call fcn.10007470
mov eax, dword [ebp - 0x114]
push ebx
push eax
push 1
push 0
push dword [ebp + 8]
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov edx, dword [ebp - 0x114]
mov eax, edi
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x1002e442
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov bl, 1
mov eax, dword [ebp + 8]
add eax, 0xfffffff0
lock xadd dword [eax + 0xc], edi
dec edi
test edi, edi
jg 0x1002e463
mov ecx, dword [eax]
push eax
mov edx, dword [ecx]
call dword [edx + 4]
mov al, bl
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.10036aba
mov esp, ebp
pop ebp
ret
push 0x80004005
call fcn.100018f0
int3