joyce8/EMBER2024-capa huggingface dataset:
Function at 0x47e720
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edi
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], ecx
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x47e742
mov ebx, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x47e764
mov edi, eax
nop
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x47e750
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 0xc]
lea eax, [ebp - 8]
push edx
push edi
push eax
lea ecx, [ebx + 4]
call fcn.00433810
mov ecx, dword [eax + 4]
test ecx, ecx
jne 0x47e77f
mov ecx, dword [ebx + 8]
cmp ecx, dword [ebx + 8]
je 0x47e79a
add ecx, 0x20
push ecx
mov ecx, esi
call fcn.0042a5f0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov ebx, edi
mov dword [ebp - 4], ecx
cmp dword [edi + 0x14], 8
mov eax, dword [edi + 0x10]
jb 0x47e7df
mov ebx, dword [edi]
xor ecx, ecx
mov edx, 0x811c9dc5
add eax, eax
je 0x47e804
mov edi, eax
nop dword [eax]
movzx eax, byte [ecx + ebx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, edi
jb 0x47e7f0
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp - 4]
lea eax, [ebp - 0xc]
push edx
push edi
push eax
lea ecx, [ebx + 0x24]
call fcn.00433810
mov edx, dword [eax + 4]
test edx, edx
jne 0x47e81f
mov edx, dword [ebx + 0x28]
mov eax, dword [ebx + 0x28]
mov dword [esi], 0
mov dword [esi + 4], 0
cmp edx, eax
je 0x47e849
mov eax, dword [edx + 0x24]
test eax, eax
je 0x47e83e
lock inc dword [eax + 4]
mov ecx, dword [edx + 0x20]
mov dword [esi], ecx
mov ecx, dword [edx + 0x24]
mov dword [esi + 4], ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x47f9a0
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642090
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov edi, dword [ebp + 0xc]
push 0x18
push str.__record.created.seconds
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x44], 0
mov dword [ebp - 0x34], 0
mov dword [ebp - 0x30], 7
call fcn.0042e850
cmp dword [ebp - 0x30], 8
lea esi, [ebp - 0x44]
mov eax, dword [ebp - 0x34]
mov edx, 0x811c9dc5
cmovae esi, dword [ebp - 0x44]
xor ecx, ecx
add eax, eax
je 0x47fa34
mov ebx, eax
nop dword [eax]
movzx eax, byte [ecx + esi]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x47fa20
mov ebx, dword [ebp - 0x18]
push edx
lea eax, [ebp - 0x44]
mov ecx, edi
push eax
lea eax, [ebp - 0x4c]
push eax
call fcn.00433810
mov esi, dword [eax + 4]
test esi, esi
jne 0x47fa4e
mov esi, dword [edi + 4]
lea ecx, [ebp - 0x44]
mov dword [ebp - 0x1c], esi
call fcn.0042f900
cmp esi, dword [edi + 4]
je 0x47fb24
cmp dword [esi + 0x30], 0
je 0x47fb24
mov dword [ebp - 4], 0
call fcn.0060e1be
add esi, 0x20
mov edi, eax
cmp dword [esi + 0x14], 8
jb 0x47fa85
mov esi, dword [esi]
push 0xa
lea eax, [ebp - 0x18]
mov dword [edi], 0
push eax
push esi
call fcn.00618fab
add esp, 0xc
cmp esi, dword [ebp - 0x18]
je 0x47fb95
cmp dword [edi], 0x22
je 0x47fb9f
jmp 0x47fb80
mov edx, edi
lea ecx, [ebp - 0x2c]
call fcn.00467380
call fcn.005f4270
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x4c]
lea eax, [ebp - 0x24]
mov dword [ebp - 0x20], edx
push eax
lea edx, [ebp - 0x2c]
call fcn.00480ea0
mov esi, eax
lea eax, [ebp - 0x54]
push eax
call fcn.00481750
push esi
mov edx, eax
mov ecx, ebx
call fcn.00480ed0
add esp, 0xc
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 - 0x14]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret 8
push 0
push 0x3b9aca00
push edx
push eax
call fcn.00608a40
mov dword [ebx], eax
mov dword [ebx + 4], edx
jmp 0x47fb60
push str.invalid_stoull_argument
call fcn.005f34b1
push str.stoull_argument_out_of_range
call fcn.005f34f1
int3
Function at 0x480660
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov edx, dword [ebp + 8]
mov eax, ecx
push ebx
push esi
push edi
cmp dword [edx + 0x14], 8
mov edi, edx
mov ebx, dword [edx + 0x10]
mov dword [ebp - 4], eax
jb 0x48067e
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
add ebx, ebx
je 0x4806a4
nop dword [eax]
movzx eax, byte [ecx + edi]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, ebx
jb 0x480690
mov eax, dword [ebp - 4]
push esi
push edx
lea ecx, [ebp - 8]
push ecx
mov ecx, eax
call fcn.00433810
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
test eax, eax
je 0x4806c4
add eax, 0x20
mov esp, ebp
pop ebp
ret 4
push str.invalid_unordered_map_K__T__key
call fcn.005f34f1
int3
Function at 0x489090
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x643112
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6d3438]
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 eax, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
push 0x1c
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x1c], eax
call fcn.0060862c
mov ebx, eax
xorps xmm0, xmm0
lea esi, [ebx + 0xc]
movlpd qword [ebp - 0x18], xmm0
lea eax, [ebx + 8]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x1c], eax
movq qword [ebx], xmm0
mov dword [ebx + 8], 0
mov dword [ebx + 4], 1
mov dword [eax], 1
mov dword [ebx], vtable.std::_Ref_count_obj2_class_Intel::HttpTransaction_.0
mov dword [esi], vtable.Intel::HttpTransaction.0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], ebx
push 0x274
mov dword [ebp - 4], 0
call fcn.0060862c
add esp, 8
mov dword [ebp - 0x20], eax
xorps xmm0, xmm0
lea ecx, [ebx + 4]
movq qword [eax], xmm0
mov dword [eax + 8], 0
mov dword [eax + 4], 1
mov dword [eax + 8], 1
mov dword [eax], vtable.std::_Ref_count_obj2_class_Intel::Analytics::HttpSender_.0
add eax, 0xc
mov dword [ebp - 0x28], eax
lock inc dword [ecx]
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x2c], ebx
mov dword [eax], vtable.Intel::Analytics::HttpSender.0
mov dword [eax + 4], 0
mov dword [eax + 8], 0
lock inc dword [ecx]
mov dword [eax + 4], esi
mov dword [eax + 8], ebx
push edi
lea ecx, [eax + 0xc]
mov byte [ebp - 4], 3
call fcn.0042a5f0
mov eax, dword [ebp - 0x20]
push 0x23c
push 0
mov dword [eax + 0x26c], str.POST
mov byte [eax + 0x270], 0
add eax, 0x30
push eax
call fcn.0060a8e0
or edi, 0xffffffff
lea ecx, [ebx + 4]
add esp, 0xc
mov eax, edi
lock xadd dword [ecx], eax
jne 0x4891f9
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
mov eax, edi
lea ecx, [ebx + 8]
lock xadd dword [ecx], eax
jne 0x4891f9
mov eax, dword [ebx]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x20]
mov edi, dword [ebp - 0x24]
lea eax, [ecx + 0xc]
mov dword [edi], eax
or eax, 0xffffffff
mov dword [edi + 4], ecx
lea ecx, [ebx + 4]
lock xadd dword [ecx], eax
jne 0x489241
mov eax, dword [ebx]
mov esi, dword [eax]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
mov ecx, dword [ebp - 0x1c]
or eax, 0xffffffff
lock xadd dword [ecx], eax
dec eax
jne 0x489241
mov ecx, dword [ebx]
mov esi, dword [ecx + 4]
mov ecx, esi
call dword [0x659730]
mov ecx, ebx
call esi
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.00608185
mov esp, ebp
pop ebp
ret 8
Function at 0x48ae93
Capabilities:
Hash data via bcrypt

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
mov edi, ecx
xor esi, esi
cmp dword [edi + 8], esi
je 0x48af29
cmp dword [edi + 0xc], esi
je 0x48af29
mov eax, dword [ebp + 0xc]
cmp dword [ebp + 8], esi
je 0x48aee2
test eax, eax
je 0x48aee6
push esi
push eax
push dword [ebp + 8]
push dword [edi + 0xc]
call dword [sym.imp.bcrypt.dll_BCryptHashData]
lea ecx, [ebp - 8]
mov dword [ebp - 4], eax
mov dword [ebp - 8], vtable.McCryptoLib::CWinError.0
call fcn.004792a4
test eax, eax
jne 0x48aeed
mov byte [edi + 4], 1
jmp 0x48af25
test eax, eax
je 0x48aeb8
mov eax, reloc.OLEAUT32.dll_VariantCopyInd
jmp 0x48af2e
lea ecx, [ebp - 8]
call fcn.004792a4
mov ecx, eax
call fcn.004791db
push eax
push str.McCryptoLib::CMcCryptoHashWin::AddToHash
push 0x90
push str.E:BT6fe319c2_d716_427d_b487_43780f257bfaCoreTechMcCryptoLib_srcwindowswin_hash.cpp
push str.__S:__d____S___s:_Error_trying_to_add_data_for_hashing
push 2
call fcn.00487ca8
add esp, 0x18
lea ecx, [ebp - 8]
call fcn.004792a4
mov esi, eax
mov eax, esi
jmp 0x48af2e
mov eax, reloc.WS2_32.dll_listen
pop edi
pop esi
leave
ret 8

Function at 0x48c180
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64335d
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x6d3438]
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 ecx, dword [ebp + 0x10]
mov eax, ecx
mov ebx, dword [ebp + 8]
mov edi, ecx
xor edi, 8
and al, 8
cmove edi, ecx
test ebx, ebx
jne 0x48c1c5
xor eax, eax
jmp 0x48c232
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x2c], 0
push eax
push 0
push 0
push 0x659df0
call sub.SHELL32.dll_SHGetKnownFolderPath
mov esi, dword [ebp - 0x2c]
mov dword [ebp - 0x30], esi
mov dword [ebp - 4], 0
test eax, eax
jns 0x48c1f3
xor edi, edi
jmp 0x48c225
push ebx
push esi
lea eax, [ebp - 0x28]
push 0x659a04
push eax
call fcn.00439150
add esp, 0x10
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 8
cmovae eax, dword [ebp - 0x28]
push edi
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
lea ecx, [ebp - 0x28]
mov edi, eax
call fcn.0042f960
test esi, esi
je 0x48c230
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
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.00608185
mov esp, ebp
pop ebp
ret

Function at 0x4994b0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4994d5
xor ecx, ecx
cmp cx, word [eax]
je 0x4994d5
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4994d5
test al, 0x10
je 0x4994d5
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret
Function at 0x499b20
Capabilities:
Delete directory
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64343d
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
test esi, esi
je 0x499c45
xor eax, eax
cmp ax, word [esi]
je 0x499c45
mov ecx, 0x68f0d0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x499b8d
test dx, dx
je 0x499b89
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x499b8d
add eax, 4
add ecx, 4
test dx, dx
jne 0x499b67
xor eax, eax
jmp 0x499b92
sbb eax, eax
or eax, 1
test eax, eax
je 0x499c45
mov ecx, 0x65a6d0
mov eax, esi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x499bc7
test dx, dx
je 0x499bc3
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x499bc7
add eax, 4
add ecx, 4
test dx, dx
jne 0x499ba1
xor eax, eax
jmp 0x499bcc
sbb eax, eax
or eax, 1
test eax, eax
je 0x499c45
push esi
call fcn.004994b0
add esp, 4
test al, al
je 0x499c45
push esi
lea eax, [ebp - 0x28]
push str._s.
push eax
call fcn.00439150
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push eax
mov dword [ebp - 4], 0
call fcn.00498ff0
add esp, 0x14
test al, al
jne 0x499c1b
lea ecx, [ebp - 0x28]
xor bl, bl
call fcn.0042f960
mov al, bl
jmp 0x499c47
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
lea ecx, [ebp - 0x28]
setne bl
call fcn.0042f960
mov al, bl
jmp 0x499c47
xor al, al
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.00608185
mov esp, ebp
pop ebp
ret
Function at 0x49a1e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6443ad
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6d3438]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 4], 0
call fcn.004213d0
mov edi, eax
test edi, edi
je 0x49a316
mov eax, dword [edi]
mov esi, dword [eax + 0xc]
mov ecx, esi
call dword [0x659730]
mov ecx, edi
call esi
lea esi, [eax + 0x10]
mov dword [ebp - 0x10], esi
mov dword [ebp - 4], 1
xor edi, edi
nop dword [eax]
lea edx, [edi + 1]
test edx, edx
js 0x49a30c
mov eax, dword [esi - 8]
mov ecx, 1
sub ecx, dword [esi - 4]
sub eax, edx
or ecx, eax
jge 0x49a268
push edx
lea ecx, [ebp - 0x10]
call fcn.0042b780
mov esi, dword [ebp - 0x10]
cmp dword [esi - 4], 1
jle 0x49a27c
push dword [esi - 0xc]
lea ecx, [ebp - 0x10]
call fcn.0042bbf0
mov esi, dword [ebp - 0x10]
push esi
push dword [esi - 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov edi, eax
test edi, edi
je 0x49a2c5
push dword [esi - 8]
push esi
call fcn.006196a0
add esp, 8
test eax, eax
js 0x49a30c
cmp eax, dword [esi - 8]
jg 0x49a30c
xor ecx, ecx
mov dword [esi - 0xc], eax
mov word [esi + eax*2], cx
cmp edi, dword [esi - 0xc]
ja 0x49a240
add esi, 0xfffffff0
push esi
call fcn.00498f40
mov ebx, dword [ebp + 8]
add esp, 4
add eax, 0x10
mov dword [ebx], eax
jmp 0x49a2d7
mov ebx, dword [ebp + 8]
mov ecx, ebx
push 0x68d90c
call fcn.00429f00
add esi, 0xfffffff0
or eax, 0xffffffff
lock xadd dword [esi + 0xc], eax
dec eax
test eax, eax
jg 0x49a2f8
mov edi, dword [esi]
push esi
mov edx, dword [edi]
mov esi, dword [edx + 4]
mov ecx, esi
call dword [0x659730]
mov ecx, edi
call esi
mov eax, ebx
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 0x80070057
call fcn.00421010
push 0x80004005
call fcn.00421010
int3

Function at 0x49ba70
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x64462d
mov eax, dword fs:[0]
push eax
sub esp, 8
push esi
mov eax, dword [0x6d3438]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0
push 0x8000
push 0x659da0
call sub.SHELL32.dll_SHGetKnownFolderPath
test eax, eax
jns 0x49bacd
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov esi, dword [ebp - 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
test esi, esi
jne 0x49bae2
xor ecx, ecx
jmp 0x49baf6
mov ecx, esi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x49bae7
sub ecx, edx
sar ecx, 1
push ecx
mov ecx, dword [ebp + 8]
push esi
call fcn.0042b7e0
test esi, esi
je 0x49bb0b
push esi
call dword [sym.imp.ole32.dll_CoTaskMemFree]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x49cca0
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 8], esi
cmp byte [esi + 0x10], 0
jne 0x49cd57
mov edi, dword [ebp + 8]
mov eax, edi
mov dword [ebp - 0xc], 0
cmp dword [edi + 0x14], 8
jb 0x49cccc
mov eax, dword [edi]
lea ecx, [ebp - 0xc]
push ecx
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x49cd57
mov eax, dword [esi + 8]
add esi, 4
mov ecx, eax
mov dword [ebp - 0x14], esi
mov dword [ebp - 0x10], eax
mov edx, dword [esi]
sub ecx, edx
cmp ebx, ecx
jae 0x49ccfa
lea eax, [edx + ebx]
mov dword [esi + 4], eax
jmp 0x49cd2f
jbe 0x49cd2f
mov eax, dword [esi + 8]
sub eax, edx
cmp ebx, eax
jbe 0x49cd13
lea eax, [ebp - 1]
mov ecx, esi
push eax
push ebx
call fcn.0048bd78
jmp 0x49cd2f
mov esi, ebx
sub esi, ecx
mov ecx, dword [ebp - 0x10]
add esi, ecx
push esi
push ecx
call fcn.00479722
mov eax, dword [ebp - 8]
add esp, 8
mov dword [eax + 8], esi
mov esi, dword [ebp - 0x14]
cmp dword [edi + 0x14], 8
jb 0x49cd37
mov edi, dword [edi]
push dword [esi]
push ebx
push 0
push edi
call sub.VERSION.dll_GetFileVersionInfoW
mov ecx, dword [ebp - 8]
cmp eax, 1
pop edi
sete al
pop esi
mov byte [ecx + 0x10], al
pop ebx
mov esp, ebp
pop ebp
ret 4
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x49d930
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
push dword [ebp + 8]
mov ebx, ecx
lea ecx, [ebp - 4]
mov dword [ebp - 8], ebx
call fcn.00477880
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp + 0x14]
push edi
push dword [esi]
push dword [ebp + 0x10]
push 0
push dword [ebp - 4]
push dword [ebx + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
cmp ebx, 0xea
jne 0x49d9a3
push dword [esi]
call fcn.0060819c
mov dword [esi], 0
push 0x6811e4
push dword [edi]
call fcn.00608f39
add esp, 0xc
mov dword [esi], eax
push edi
push eax
push dword [ebp + 0x10]
mov eax, dword [ebp - 8]
push 0
push dword [ebp - 4]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
mov ebx, eax
mov ecx, dword [ebp - 4]
or eax, 0xffffffff
add ecx, 0xfffffff0
lock xadd dword [ecx + 0xc], eax
dec eax
test eax, eax
jg 0x49d9ca
mov edi, dword [ecx]
push ecx
mov eax, dword [edi]
mov esi, dword [eax + 4]
mov ecx, esi
call dword [0x659730]
mov ecx, edi
call esi
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x49d9e0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6449f5
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6d3438]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, ecx
mov dword [ebp - 0x18], edx
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x49db2a
mov ebx, dword [ebp + 0x14]
cmp ebx, 1
jb 0x49db2a
xor esi, esi
mov dword [ebp - 0x14], 0
mov dword [ebp - 0x10], esi
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
cmp ecx, 1
jne 0x49da7f
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
mov ecx, edx
call fcn.0049d340
mov ebx, eax
test ebx, ebx
jne 0x49da9b
mov esi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
mov dword [ebp + 0x10], esi
lea eax, [ebx + 0x20]
push eax
mov dword [ebp - 0x1c], eax
call fcn.00608193
mov edi, eax
add esp, 4
mov dword [ebp - 0x20], edi
mov byte [ebp - 4], 1
test edi, edi
jne 0x49dabd
lea ebx, [eax + 8]
jmp 0x49db02
cmp ecx, 7
jne 0x49da5b
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push eax
mov ecx, edx
call fcn.0049d180
mov ebx, eax
test ebx, ebx
je 0x49da52
mov esi, dword [ebp - 0x10]
push esi
call fcn.0060819c
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov ecx, dword [ebp - 0x18]
lea eax, [ebx + 0x20]
push eax
push edi
push dword [ebp + 0xc]
push ebx
push dword [ebp + 0x10]
call fcn.0049d550
mov ebx, eax
test ebx, ebx
jne 0x49db02
push dword [ebp + 8]
lea ecx, [ebp - 0x14]
call fcn.00477880
push dword [ebp - 0x1c]
mov eax, dword [ebp - 0x18]
push edi
push 3
push ebx
push dword [ebp - 0x14]
push dword [eax + 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
lea ecx, [ebp - 0x14]
mov ebx, eax
call fcn.00429ee0
push edi
call fcn.0060819c
add esp, 4
push esi
call fcn.0060819c
add esp, 4
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
mov eax, 0x57
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x49e930
Capabilities:
Delete registry key

Disassembly:
mov dword [ecx], vtable.CoreTech::internal::CRegKeyImpl.0
jmp fcn.0049e960

Function at 0x49e960
Capabilities:
Delete registry key

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 4]
test eax, eax
je 0x49e99a
cmp byte [esi + 0xc], 0
je 0x49e983
push 0x68d90c
push eax
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
mov eax, dword [esi + 4]
mov byte [esi + 0xc], 0
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
ret
xor eax, eax
mov dword [esi + 8], eax
pop esi
ret
Function at 0x49f760
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x6d3438]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 8]
push eax
push dword [ebp + 0xc]
mov dword [ebp - 0x214], ecx
push ebx
mov dword [ebp - 0x210], eax
call dword [sym.imp.ADVAPI32.dll_RegSetKeySecurity]
cmp dword [ebp + 0x14], 0
je 0x49f870
test eax, eax
jne 0x49f870
push edi
xor edi, edi
push esi
nop word [eax + eax]
push 0x200
lea eax, [ebp - 0x204]
push 0
push eax
call fcn.0060a8e0
add esp, 0xc
mov dword [ebp - 0x20c], 0x100
lea eax, [ebp - 0x20c]
push 0
push 0
push 0
push 0
push eax
lea eax, [ebp - 0x204]
push eax
push edi
push ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
mov esi, eax
test esi, esi
jne 0x49f846
mov dword [ebp - 0x208], eax
lea eax, [ebp - 0x208]
push eax
push 0xf003f
push esi
lea eax, [ebp - 0x204]
push eax
push ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x49f84e
push dword [ebp + 0x14]
mov ecx, dword [ebp - 0x214]
push dword [ebp - 0x210]
push dword [ebp + 0xc]
push dword [ebp - 0x208]
call fcn.0049f760
push dword [ebp - 0x208]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x49f84e
cmp esi, 0x103
je 0x49f86c
inc edi
test esi, esi
je 0x49f7b0
mov eax, esi
pop esi
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00608185
mov esp, ebp
pop ebp
ret 0x10
pop esi
xor eax, eax
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00608185
mov esp, ebp
pop ebp
ret 0x10