joyce8/EMBER2024-capa huggingface dataset:
Function at 0x422760
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478442
mov eax, dword fs:[0]
push eax
sub esp, 0x414
mov eax, dword [0x49f008]
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 edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], 0
mov dword [ebp - 0x420], edi
mov dword [ebp - 0x418], 0
call fcn.004067b0
mov ecx, eax
test ecx, ecx
jne 0x4227c0
push 0x80004005
call fcn.004064f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [edi], eax
lea eax, [ebp - 0x414]
mov dword [ebp - 4], 0
mov ebx, dword [sym.imp.WININET.dll_InternetReadFile]
push eax
push 0x400
lea eax, [ebp - 0x410]
mov dword [ebp - 0x418], 1
push eax
push esi
mov dword [ebp - 0x414], 0
call ebx
test eax, eax
je 0x422842
mov eax, dword [ebp - 0x414]
test eax, eax
je 0x422854
push eax
lea eax, [ebp - 0x410]
mov ecx, edi
push eax
call fcn.00414d30
lea eax, [ebp - 0x414]
mov dword [ebp - 0x414], 0
push eax
push 0x400
lea eax, [ebp - 0x410]
push eax
push esi
call ebx
test eax, eax
jne 0x422805
push 0x492b20
push 0x48b47c
call fcn.00430910
add esp, 8
mov edx, dword [edi]
push ecx
lea ecx, [ebp - 0x41c]
call fcn.0042ff90
mov esi, dword [ebp - 0x41c]
push esi
push str.Received_cmd3_ack_s
push 0x48b47c
call fcn.00430910
mov eax, dword [edi]
add esp, 0x10
cmp dword [eax - 0xc], 0
jne 0x422895
push 0x492ba8
push 0x48b47c
call fcn.00430910
add esp, 8
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x4228ad
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
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.0044df7a
mov esp, ebp
pop ebp
ret 8
Function at 0x422da0
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x478508
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push esi
push edi
mov eax, dword [0x49f008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.004067b0
mov ecx, eax
test ecx, ecx
jne 0x422dde
push 0x80004005
call fcn.004064f0
mov eax, dword [ecx]
call dword [eax + 0xc]
add eax, 0x10
mov dword [ebp - 0x14], eax
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 0x1c]
push eax
lea eax, [ebp - 0x14]
push eax
push dword [ebp + 0x10]
call fcn.004222d0
mov esi, dword [ebp - 0x14]
test eax, eax
je 0x422e80
push 0
push 0
push 3
push 0
push 0
push dword [ebp - 0x18]
push esi
push dword [edi]
call dword [sym.imp.WININET.dll_InternetConnectA]
mov edi, dword [ebp + 8]
mov dword [edi], eax
test eax, eax
je 0x422e80
push str.Open_Connect
push 0x48b47c
call fcn.00430910
add esp, 8
mov dword [ebp - 0x24], str.text_
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], 0
push 0
push 0
push eax
push 0
push 0x492ad8
push dword [ebp - 0x1c]
push 0x492d20
push dword [edi]
call dword [sym.imp.WININET.dll_HttpOpenRequestA]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
test eax, eax
jne 0x422eb6
push dword [edi]
call dword [sym.imp.WININET.dll_InternetCloseHandle]
mov dword [edi], 0
xor edi, edi
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x422ea1
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0xc
mov edi, 1
jmp 0x422e82
Function at 0x428ce0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
mov eax, dword [edi]
add eax, eax
mov dword [edi], 0
mov dword [ebp + 0x10], eax
lea eax, [ebp + 0x10]
push eax
push esi
lea eax, [ebp + 0xc]
push eax
push 0
push dword [ebp + 8]
push dword [ecx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x428d51
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x428d1f
cmp eax, 2
jne 0x428d3b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x428d4b
test ecx, ecx
je 0x428d46
test cl, 1
jne 0x428d3b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x428d4b
pop edi
mov eax, 0xd
pop esi
pop ebp
ret 0xc
xor eax, eax
mov word [esi], ax
shr ecx, 1
xor eax, eax
mov dword [edi], ecx
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x42a6a0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x84
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, ecx
lea ecx, [ebp - 0x70]
call fcn.0042cea0
lea ecx, [ebp - 0x74]
push ecx
push 0x20019
push 0
push dword [eax]
push dword [0x49f9c8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x70]
mov esi, eax
add edx, 0xfffffff0
or ecx, 0xffffffff
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x42a6f5
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
jne 0x42a7bb
lea eax, [ebp - 0x7c]
mov dword [ebp - 0x70], esi
push eax
lea eax, [ebp - 0x70]
mov dword [ebp - 0x78], esi
push eax
lea eax, [ebp - 0x78]
mov dword [ebp - 0x7c], 4
push eax
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.FullDump
push dword [ebp - 0x74]
call esi
cmp dword [ebp - 0x78], 4
jne 0x42a7a1
cmp dword [ebp - 0x70], 1
jne 0x42a7a1
push 0x64
lea eax, [ebp - 0x6c]
push 0
push eax
call fcn.00451eb0
add esp, 0xc
mov dword [ebp - 0x80], 0x64
lea eax, [ebp - 0x80]
mov dword [ebp - 0x84], 1
push eax
lea eax, [ebp - 0x6c]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push str.HASH
push dword [ebp - 0x74]
call esi
xor eax, eax
lea edx, [ebp - 0x6c]
mov ecx, edi
mov word [ebp - 0xa], ax
call fcn.004122e0
test al, al
je 0x42a7a1
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, 1
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
push dword [ebp - 0x74]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 0x78], 4
jne 0x42a7bb
cmp dword [ebp - 0x70], 2
mov eax, 1
je 0x42a7c0
mov eax, dword [0x4a1d34]
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
Function at 0x42ab20
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
lea ecx, [ebp - 8]
mov ebx, edx
call fcn.0042cea0
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push dword [eax]
push dword [0x49f9c8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 8]
or edi, 0xffffffff
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x42ab6b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x42abc1
mov edx, ebx
lea ecx, [ebp - 8]
call fcn.0042cea0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push dword [eax]
push dword [0x49f9c8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 8]
mov esi, eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x42abb4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x42abc1
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], 1
push eax
push 4
push 0
push str.bUseInterMod
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 4]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
test esi, esi
pop edi
pop esi
sete al
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42ac00
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
push edi
push 0x208
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x214], 0
mov edi, ecx
push 0
push eax
mov dword [ebp - 0x210], edi
call fcn.00451eb0
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x42ac6b
push str.C:_temp_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0045e8b9
add esp, 0xc
lea ecx, [ebp - 0x20c]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x42ac74
sub ecx, edx
sar ecx, 1
cmp word [ebp + ecx*2 - 0x20e], 0x5c
je 0x42acb3
mov eax, 0x5c
mov word [ebp + ecx*2 - 0x20c], ax
lea eax, [ecx*2 + 2]
cmp eax, 0x208
jae 0x42ad09
xor ecx, ecx
mov word [ebp + eax - 0x20c], cx
push 0
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push str.Tencent_
lea eax, [ebp - 0x20c]
push 0x104
push eax
call fcn.0045e91d
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
lea eax, [ebp - 0x20c]
mov ecx, edi
push eax
call fcn.00407540
mov ecx, dword [ebp - 4]
mov eax, edi
xor ecx, ebp
pop edi
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
call fcn.0044e0ae
int3
Function at 0x42ad10
Capabilities:
Hash data with md5
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1084
call fcn.00476590
mov eax, dword [0x49f008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x5c
lea eax, [ebp - 0x1078]
mov dword [ebp - 0x1080], 0
mov edi, ecx
mov byte [ebp - 0x14], 0
xorps xmm0, xmm0
mov dword [ebp - 0x107c], edi
push 0
push eax
mov ebx, edx
movq qword [ebp - 0x13], xmm0
mov dword [ebp - 0xb], 0
mov word [ebp - 7], 0
mov byte [ebp - 5], 0
call fcn.00451eb0
push 0x493888
push ebx
mov dword [ebp - 0x1078], 0x67452301
mov dword [ebp - 0x1074], 0xefcdab89
mov dword [ebp - 0x1070], 0x98badcfe
mov dword [ebp - 0x106c], 0x10325476
mov dword [ebp - 0x1068], 0
mov dword [ebp - 0x1064], 0
mov dword [ebp - 0x1020], 0
call fcn.004620d4
mov esi, eax
add esp, 0x14
test esi, esi
je 0x42ae18
push esi
push 0x1000
lea eax, [ebp - 0x1018]
push 1
push eax
call fcn.004628bc
add esp, 0x10
test eax, eax
je 0x42ae0d
push eax
lea edx, [ebp - 0x1018]
lea ecx, [ebp - 0x1078]
call fcn.0041f690
push esi
push 0x1000
lea eax, [ebp - 0x1018]
push 1
push eax
call fcn.004628bc
add esp, 0x14
test eax, eax
jne 0x42ade0
push esi
call fcn.00461a2e
add esp, 4
jmp 0x42ae32
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push str.GetModuleHashStr_open_file___s__fail_errno__lu_
push 0x48b494
call fcn.00430910
add esp, 0x10
lea edx, [ebp - 0x1078]
lea ecx, [ebp - 0x14]
call fcn.0041f9c0
sub esp, 8
lea edx, [ebp - 0x14]
mov ecx, edi
call fcn.0042ae70
mov ecx, dword [ebp - 4]
add esp, 8
mov eax, edi
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.0044df7a
mov esp, ebp
pop ebp
ret
Function at 0x42be30
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
lea eax, [ebp - 8]
mov dword [ebp - 4], 0
push eax
lea eax, [ebp - 4]
mov dword [ebp - 8], 0
push eax
push 5
push 0xffffffffffffffff
push 0
mov ebx, ecx
call dword [sym.imp.WTSAPI32.dll_WTSQuerySessionInformationW]
test eax, eax
je 0x42bebc
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x42be8d
push dword [ebp - 4]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
mov ecx, 0x40
push esi
push edi
mov esi, eax
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
xor ecx, ecx
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
pop edi
pop esi
push eax
mov word [ebx + 0x206], cx
call dword [sym.imp.WTSAPI32.dll_WTSFreeMemory]
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42c0f0
Capabilities:
Delete file
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
mov ebx, ecx
push esi
push edi
mov esi, edx
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
jne 0x42c120
push str.CreateTxtFile_failed__empty_file_path_
push 0x48b494
call fcn.00430910
add esp, 8
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push 0
push 0x80
push 2
push 0
push 1
push 0x40000000
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42c16c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push str.Create_txt_file___s__failed___ld_
push 0x48b494
call fcn.00430910
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 0
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 3
push 0x49428c
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x42c1b6
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push str._1_Write_prefix_to_txt_file___s__failed___ld_
push 0x48b494
call fcn.00430910
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [esi]
push ecx
lea ecx, [ebp - 8]
call fcn.00430100
mov esi, dword [ebp - 8]
lea eax, [ebp - 4]
add esp, 4
push 0
push eax
push dword [esi - 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
test eax, eax
jne 0x42c202
call dword [sym.imp.KERNEL32.dll_CloseHandle]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebx]
push str._2_Write_content_to_txt_file___s__failed___ld_
push 0x48b494
call fcn.00430910
add esp, 0x10
xor edi, edi
jmp 0x42c20d
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x42c225
mov ecx, dword [esi]
push esi
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42c230
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
mov ebx, edx
mov dword [esp + 0x14], ecx
push esi
push edi
mov eax, dword [ebx]
cmp dword [eax - 0xc], 0
je 0x42c282
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x42c28b
push dword [ebx]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.add_zip._open_file_fail_err___lu_____s_
push 0x48b494
call fcn.00430910
add esp, 0x10
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [esp + 0x10]
mov dword [esp + 0x10], 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp dword [0x4a1d34], 0
mov dword [esp + 0x18], eax
jne 0x42c2de
cmp dword [esp + 0x10], 0
jne 0x42c2ba
cmp eax, 0x500000
jbe 0x42c2de
push dword [ebx]
push str.add_zip._file_size_over_5M____s_
push 0x48b494
call fcn.00430910
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push eax
call fcn.00458d22
mov edi, eax
add esp, 4
test edi, edi
je 0x42c2ce
push 0
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0
push eax
push dword [esp + 0x20]
push edi
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x42c31e
push edi
call fcn.00458d05
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [esp + 0x14]
test ecx, ecx
je 0x42c355
mov eax, dword [ebp + 8]
push dword [eax]
push ecx
mov ecx, dword [esp + 0x24]
push edi
call fcn.0042e720
test al, al
je 0x42c355
push dword [ebx]
push str.add_zip_success.___s_
push 0x48b494
call fcn.00430910
add esp, 0xc
push edi
call fcn.00458d05
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42c820
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
test ecx, ecx
jne 0x42c830
xor eax, eax
xor edx, edx
mov esp, ebp
pop ebp
ret
push edi
push 0
push 0
push 3
push 0
push 3
push SysReAllocString
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x42c857
xor eax, eax
xor edx, edx
pop edi
mov esp, ebp
pop ebp
ret
push esi
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edx, dword [ebp - 4]
xor eax, eax
add eax, esi
pop esi
adc edx, 0
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x42c890
Capabilities:
Delete registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, edx
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc]
push edi
call fcn.0042cea0
lea ecx, [ebp - 4]
push ecx
push 0xf003f
push 0
push dword [eax]
push dword [0x49f9c8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0xc]
or edi, 0xffffffff
mov esi, eax
add edx, 0xfffffff0
mov ecx, edi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x42c8e1
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x42c942
cmp dword [ebp - 8], 0
je 0x42c99d
mov edx, dword [ebp + 8]
lea ecx, [ebp - 0xc]
call fcn.0042cea0
push 0
lea ecx, [ebp - 4]
push ecx
push 0
push 0xf003f
push 0
push 0
push 0
push dword [eax]
push dword [0x49f9c8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
mov edx, dword [ebp - 0xc]
mov esi, eax
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], edi
dec edi
test edi, edi
jg 0x42c935
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test esi, esi
je 0x42c942
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea eax, [ebp - 8]
push 4
push eax
push 4
push 0
push str.FullDump
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 8]
test eax, eax
je 0x42c986
cmp eax, 2
je 0x42c986
mov ecx, dword [ebx]
mov eax, dword [ecx - 0xc]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.HASH
push dword [ebp - 4]
call esi
jmp 0x42c994
push str.HASH
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42cad0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4793b6
mov eax, dword fs:[0]
push eax
sub esp, 0x638
mov eax, dword [0x49f008]
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
test edx, edx
je 0x42cbb5
lea ecx, [ebp - 0x63c]
call fcn.0042cea0
lea ecx, [ebp - 0x630]
push ecx
push 0x20019
push 0
push dword [eax]
push dword [0x49f9c8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x63c]
or esi, 0xffffffff
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x42cb51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x42cbb5
push 0x61a
lea eax, [ebp - 0x62c]
push edi
push eax
call fcn.00451eb0
add esp, 0xc
mov dword [ebp - 0x644], 1
lea eax, [ebp - 0x640]
mov dword [ebp - 0x640], 0x30c
push eax
lea eax, [ebp - 0x62c]
push eax
lea eax, [ebp - 0x644]
push eax
push edi
push str.ExtRptFile
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x42cbbc
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42cc52
lea eax, [ebp - 0x62c]
push eax
lea ecx, [ebp - 0x638]
call fcn.00407540
push 0x48ffa4
lea ecx, [ebp - 0x634]
mov dword [ebp - 4], 0
call fcn.00407540
push ebx
lea edx, [ebp - 0x634]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x638]
call fcn.00430410
add esp, 4
push dword [ebp - 0x630]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x634]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42cc2b
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x638]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42cc4d
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.0044df7a
mov esp, ebp
pop ebp
ret
Function at 0x42cc70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4793f6
mov eax, dword fs:[0]
push eax
sub esp, 0x640
mov eax, dword [0x49f008]
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, edx
mov dword [ebp - 0x64c], ecx
mov edx, dword [ebp + 8]
test edx, edx
je 0x42cd60
lea ecx, [ebp - 0x648]
call fcn.0042cea0
lea ecx, [ebp - 0x634]
push ecx
push 0x20019
push 0
push dword [eax]
push dword [0x49f9c8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov edx, dword [ebp - 0x648]
or esi, 0xffffffff
mov edi, eax
add edx, 0xfffffff0
mov ecx, esi
lock xadd dword [edx + 0xc], ecx
dec ecx
test ecx, ecx
jg 0x42ccfa
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
test edi, edi
jne 0x42cd60
push 0x412
lea eax, [ebp - 0x630]
push edi
push eax
call fcn.00451eb0
add esp, 0xc
mov dword [ebp - 0x640], 1
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x63c], 0x208
push eax
lea eax, [ebp - 0x630]
push eax
lea eax, [ebp - 0x640]
push eax
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push str.InstallDir
push dword [ebp - 0x634]
call edi
test eax, eax
je 0x42cd67
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
jmp 0x42ce78
lea eax, [ebp - 0x630]
push eax
lea ecx, [ebp - 0x638]
call fcn.00407540
push 0x48ffa4
lea ecx, [ebp - 0x644]
mov dword [ebp - 4], 0
call fcn.00407540
push dword [ebp - 0x64c]
lea edx, [ebp - 0x644]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x638]
call fcn.00430410
push 0x20a
lea eax, [ebp - 0x21c]
push 0
push eax
call fcn.00451eb0
add esp, 0x10
mov dword [ebp - 0x640], 1
lea eax, [ebp - 0x63c]
mov dword [ebp - 0x63c], 0x104
push eax
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x640]
push eax
push 0
push str.ExcDir
push dword [ebp - 0x634]
call edi
test eax, eax
jne 0x42ce24
lea eax, [ebp - 0x21c]
push eax
lea ecx, [ebp - 0x638]
call fcn.004076d0
push ebx
lea edx, [ebp - 0x644]
lea ecx, [ebp - 0x638]
call fcn.00430410
add esp, 4
push dword [ebp - 0x634]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 4], 0
mov eax, esi
mov edx, dword [ebp - 0x644]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x42ce51
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov dword [ebp - 4], 0xffffffff
mov edx, dword [ebp - 0x638]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], esi
dec esi
test esi, esi
jg 0x42ce73
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov eax, 1
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.0044df7a
mov esp, ebp
pop ebp
ret