joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1006b2b0
Capabilities:
Delete file
Download url
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100acb33
mov eax, dword fs:[0]
push eax
sub esp, 0x420
mov eax, dword [0x100db774]
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
mov esi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
xor edi, edi
mov dword [ebp - 4], 0
test esi, esi
je 0x1006b355
cmp word [esi], di
je 0x1006b355
test eax, eax
je 0x1006b311
cmp word [eax], di
je 0x1006b311
push edi
push edi
push eax
push esi
push edi
call sub.urlmon.dll_URLDownloadToFileW
test eax, eax
js 0x1006b355
jmp 0x1006b350
push 0x410
lea eax, [ebp - 0x420]
push 0
push eax
call fcn.10075330
add esp, 0xc
lea eax, [ebp - 0x420]
push 0
push 0
push 0x104
push eax
push esi
push 0
call sub.urlmon.dll_URLDownloadToCacheFileW
test eax, eax
js 0x1006b355
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edi, 1
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1006b3cc
mov eax, dword [ebx + 0x20]
test eax, eax
js 0x1006b3b7
lea esi, [ebx + 0x30]
mov dword [ebp - method._BaseModule::CAutoLocker.virtual_0], vtable._BaseModule::CAutoLocker.0
mov dword [ebp - 0x428], esi
test esi, esi
je 0x1006b385
mov eax, dword [esi]
push esi
call dword [eax]
mov eax, dword [ebx + 0x20]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 1
test eax, eax
js 0x1006b3a6
mov dword [ebp - 0x424], edi
test ecx, ecx
je 0x1006b3ec
mov eax, dword [ecx]
lea edx, [ebp - 0x424]
push edx
call dword [eax + 8]
mov ecx, dword [ebp + 0x34]
mov byte [ebp - 4], 2
test esi, esi
je 0x1006b3b7
mov eax, dword [esi]
push esi
call dword [eax + 4]
mov ecx, dword [ebp + 0x34]
test ecx, ecx
je 0x1006b3cc
mov edx, dword [ecx]
lea eax, [ebp + 0x10]
cmp ecx, eax
setne al
movzx eax, al
push eax
call dword [edx + 0x10]
xor eax, eax
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.100693bc
mov esp, ebp
pop ebp
ret 0x30
call fcn.10056c6c
int3
Function at 0x1006ccf0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0
push dword [ebp + 8]
call fcn.1006ce20
add esp, 8
test al, al
je 0x1006cd15
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1006cd15
mov al, 1
pop ebp
ret
xor al, al
pop ebp
ret

Function at 0x1006ce20
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x1006d1a0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1006d1cb
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x1006d1cb
xor al, al
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
pop esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov esp, ebp
pop ebp
ret 4

Function at 0x1006ec30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp fcn.1006e860
Function at 0x1006fe60
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100ad073
mov eax, dword fs:[0]
push eax
sub esp, 0x84
mov eax, dword [0x100db774]
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 + 0xc]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x80], 0
mov dword [edi], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x7c], 0
lea eax, [ebp - 0x7c]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x80]
push eax
call fcn.10054ff0
mov eax, dword [ebp - 0x80]
add esp, 8
test eax, eax
je 0x10070073
mov esi, dword [sym.imp.OLEAUT32.dll_VariantInit]
push eax
call esi
test eax, eax
je 0x10070073
mov eax, dword [ebp - 0x7c]
test eax, eax
je 0x10070073
push eax
call esi
test eax, eax
je 0x10070073
mov dword [ebp - 0x90], 0
mov dword [ebp - 0x8c], 0
mov dword [ebp - 0x88], 0
push 0x201
push dword [ebp - 0x80]
lea ecx, [ebp - 0x90]
mov byte [ebp - 4], 2
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.10008c80
mov esi, dword [ebp - 0x90]
test eax, eax
jne 0x10070064
push 0x64
lea eax, [ebp - 0x74]
push 0
push eax
call fcn.10075330
add esp, 0xc
mov dword [ebp - 0x78], 0x64
lea eax, [ebp - 0x78]
push eax
lea eax, [ebp - 0x74]
push eax
lea eax, [ebp - 0x84]
push eax
push 0
push dword [ebp - 0x7c]
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x10070064
mov eax, dword [ebp - 0x84]
cmp eax, 1
je 0x1006ff8b
cmp eax, 2
jne 0x10070064
mov ecx, dword [ebp - 0x78]
test ecx, ecx
je 0x1006ffac
test cl, 1
jne 0x10070064
mov eax, ecx
shr eax, 1
cmp word [ebp + eax*2 - 0x76], 0
je 0x1006ffb2
jmp 0x10070064
xor eax, eax
mov word [ebp - 0x74], ax
shr ecx, 1
cmp ecx, 0x2d
jne 0x10070064
lea ecx, [ebp - 0x78]
call fcn.10002e90
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 3
push eax
lea ecx, [ebp - 0x78]
call fcn.1006e3a0
lea eax, [ebp - 0x84]
mov dword [ebp - 0x84], 0
push eax
lea eax, [ebp - 0x20]
push 0x100aeef0
push eax
call fcn.1000df20
push 0x2a
push dword [ebp - 0x78]
call fcn.1006e860
movzx eax, al
add esp, 0x14
cmp dword [ebp - 0x84], eax
jne 0x1007005c
lea edx, [ebp - 0x74]
lea ecx, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x10070012
sub edx, ecx
lea eax, [ebp - 0x74]
sar edx, 1
mov ecx, ebx
push edx
push eax
call fcn.1006e200
push dword [0x100db7b0]
lea eax, [ebp - 0x74]
push dword [0x100db7ac]
push eax
call dword [sym.imp.SHLWAPI.dll_StrCmpNIW]
test eax, eax
jne 0x1007004d
mov dword [edi], 1
lea ecx, [ebp - 0x78]
call fcn.10002bb0
mov edi, 1
jmp 0x10070066
lea ecx, [ebp - 0x78]
call fcn.10002bb0
xor edi, edi
test esi, esi
je 0x10070075
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x10070075
xor edi, edi
push dword [ebp - 0x7c]
mov esi, dword [sym.imp.OLEAUT32.dll_SysStringLen]
call esi
push dword [ebp - 0x80]
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.100693bc
mov esp, ebp
pop ebp
ret
Function at 0x100700b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, ecx
test edx, edx
jne 0x100700c5
lea eax, [edx + 0xd]
pop esi
pop ebp
ret 0xc
mov eax, edx
push edi
lea edi, [eax + 2]
nop dword [eax + eax]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x100700d0
sub eax, edi
sar eax, 1
lea eax, [eax*2 + 2]
push eax
push edx
push dword [ebp + 0x10]
push 0
push dword [ebp + 8]
push dword [esi]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebp
ret 0xc
Function at 0x100731d0
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 0x10073241
mov eax, dword [ebp + 0xc]
cmp eax, 1
je 0x1007320f
cmp eax, 2
jne 0x1007322b
mov ecx, dword [ebp + 0x10]
test esi, esi
je 0x1007323b
test ecx, ecx
je 0x10073236
test cl, 1
jne 0x1007322b
mov eax, ecx
shr eax, 1
cmp word [esi + eax*2 - 2], 0
je 0x1007323b
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 0x1009ae42
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.1009acc1

Function at 0x100a1304
Capabilities:
Create thread
Print debug messages

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a1209

Function at 0x100a23cc
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.100a208c
Function at 0x401110
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x401129
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x401164
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x401160
lea ebx, [ebx]
cmp esi, eax
jae 0x401164
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x401150
cmp esi, eax
jb 0x40116a
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x407780
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642130
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x7808
call fcn.006218a0
mov eax, dword [0x758898]
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 esi, ecx
mov dword [ebp - 0x7818], esi
mov dword [ebp - 4], 0
push 0x2800
push 0
lea eax, [ebp - 0x2814]
push eax
call fcn.00620850
add esp, 0xc
push 0x27ff
cmp dword [esi + 0x2b7c], 0
je 0x40781e
lea ecx, [ebp - 0x7814]
push ecx
mov edx, dword [esi + 0x2b78]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x407832
push 0x2800
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x7814]
push ecx
call fcn.00407310
add esp, 0xc
jmp 0x407832
lea edx, [ebp - 0x2814]
push edx
mov eax, dword [esi + 0x2b78]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0x2800
lea ecx, [ebp - 0x2814]
push ecx
mov ecx, esi
call fcn.00407490
mov dword [ebp - 4], 0xffffffff
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.0062016f
mov esp, ebp
pop ebp
ret

Function at 0x408bc0
Capabilities:
Get graphical window text

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
push ebx
xor ebp, ebp
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, eax
test esi, esi
jle 0x408c27
add esi, 3
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.005f4427
mov edi, eax
add esp, 4
test edi, edi
je 0x408c20
push esi
push edi
push ebx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
jle 0x408c17
mov ecx, dword [esp + 0x18]
push edi
call fcn.004017f0
mov ebp, 1
push edi
call fcn.005f4432
add esp, 4
pop edi
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
pop esi
mov eax, ebp
pop ebp
pop ebx
ret
Function at 0x408ce0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x64dd88
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0xc], eax
push ebx
push esi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, dword [esp + 0x30]
xor eax, eax
mov ebx, ecx
mov dword [esp + 0xc], 0
mov dword [esp + 0x14], 0
mov word [esp + 0x10], ax
mov dword [esp + 0x24], eax
push esi
call fcn.005b7ed0
movzx ecx, al
add esp, 4
neg ecx
sbb ecx, ecx
and ecx, 0xfde9
push ecx
push esi
lea ecx, [esp + 0x14]
call fcn.00401980
mov eax, dword [esp + 0xc]
test eax, eax
jne 0x408d5e
lea eax, [esp + 0x10]
mov edx, dword [esp + 0x2c]
push eax
mov eax, dword [ebx + 0x20]
push edx
push eax
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov dword [esp + 0x24], 0xffffffff
lea ecx, [esp + 0xc]
call fcn.00401210
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
xor ecx, esp
call fcn.0062016f
add esp, 0x1c
ret 8

Function at 0x40c1e0
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642be0
mov eax, dword fs:[0]
push eax
push ecx
mov eax, 0x7804
call fcn.006218a0
mov eax, dword [0x758898]
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 esi, ecx
mov dword [ebp - 4], 0
push 0x2800
push 0
lea eax, [ebp - 0x2814]
push eax
call fcn.00620850
add esp, 0xc
push 0x27ff
cmp dword [esi + 0x588], 0
je 0x40c278
lea ecx, [ebp - 0x7814]
push ecx
mov edx, dword [esi + 0x584]
push edx
call dword [sym.imp.USER32.dll_GetWindowTextW]
test eax, eax
je 0x40c28c
push 0x2800
lea eax, [ebp - 0x2814]
push eax
lea ecx, [ebp - 0x7814]
push ecx
call fcn.00407310
add esp, 0xc
jmp 0x40c28c
lea edx, [ebp - 0x2814]
push edx
mov eax, dword [esi + 0x584]
push eax
call dword [sym.imp.USER32.dll_GetWindowTextA]
lea ecx, [ebp - 0x2814]
push ecx
push 0x678ea8
lea edx, [esi + 0x50c]
push edx
call fcn.00402f70
add esp, 0xc
mov ecx, esi
call fcn.0040bcb0
mov dword [ebp - 4], 0xffffffff
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.0062016f
mov esp, ebp
pop ebp
ret
Function at 0x40d2a0
Capabilities:
Get file system object information

Disassembly:
push ebp
lea ebp, [esp - 0x2b8]
sub esp, 0x2b8
push 0xffffffffffffffff
push 0x642cd8
mov eax, dword fs:[0]
push eax
sub esp, 0x78
mov eax, dword [0x758898]
xor eax, ebp
mov dword [ebp + 0x2b4], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
xor edi, edi
mov dword [ebp - 4], edi
lea ecx, [esi + 0x74]
call fcn.0040cf60
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x1c], edi
mov eax, dword [esi + 0xc8]
cmp edi, dword [eax + 0x1c]
jge 0x40d435
lea ecx, [ebp - 0x14]
call fcn.00402500
mov byte [ebp - 4], 1
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d160
mov ecx, dword [eax + 4]
push ecx
mov edx, dword [esi + 0xc8]
mov eax, dword [edx + 4]
push eax
push 0x67acc0
lea ecx, [ebp - 0x14]
push ecx
call fcn.00402f70
add esp, 0x10
mov edx, dword [ebp - 0x14]
push edx
mov eax, dword [ebp - 0x18]
push eax
lea ecx, [esi + 0x74]
call fcn.0040cf40
mov ebx, eax
inc dword [ebp - 0x18]
push 0x2b4
push 0
lea ecx, [ebp]
push ecx
call fcn.00620850
add esp, 0xc
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d160
mov eax, dword [eax]
push 0x4411
push 0x160
lea edx, [ebp]
push edx
push 0x80
push eax
call dword [sym.imp.SHELL32.dll_SHGetFileInfoW]
mov dword [ebp - 0x50], 2
mov dword [ebp - 0x48], 0
mov eax, dword [ebp + 4]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x4c], ebx
lea ecx, [ebp - 0x50]
push ecx
lea ecx, [esi + 0x74]
call fcn.0040cf00
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d160
cmp dword [eax + 8], 0
mov eax, 0x75f32c
jne 0x40d3cf
mov eax, 0x75f330
mov eax, dword [eax]
push eax
push ebx
push 1
mov edx, dword [esi + 0x94]
push edx
call fcn.0040cfa0
add esp, 0x10
mov dword [ebp - 0x7c], 2
push edi
mov ecx, dword [esi + 0xc8]
add ecx, 0x14
call fcn.0040d160
mov eax, dword [eax]
mov dword [ebp - 0x70], eax
lea eax, [ebp - 0x84]
push eax
push ebx
push 0x1074
mov ecx, dword [esi + 0x94]
push ecx
call dword [sym.imp.USER32.dll_SendMessageA]
push edi
push ebx
lea ecx, [esi + 0x74]
call fcn.0040cf20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00402570
inc edi
jmp 0x40d2ee
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x2b4]
xor ecx, ebp
call fcn.0062016f
add ebp, 0x2b8
mov esp, ebp
pop ebp
ret
Function at 0x40d590
Capabilities:
Get file system object information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x642d28
mov eax, dword fs:[0]
push eax
sub esp, 0x198
mov eax, dword [0x758898]
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 esi, ecx
call fcn.005f6135
xor ebx, ebx
mov dword [ebp - 4], ebx
push esi
call fcn.0045c110
add esp, 4
cmp dword [0x75dd30], ebx
je 0x40d5ee
push 0x129
push esi
mov ecx, 0x75dcf0
call fcn.004e6390
push 0x160
push ebx
lea eax, [ebp - 0x198]
push eax
call fcn.00620850
add esp, 0xc
push 0x4011
push 0x160
lea ecx, [ebp - 0x198]
push ecx
push 0x80
push 0x67ad18
call dword [sym.imp.SHELL32.dll_SHGetFileInfoA]
lea edi, [esi + 0x74]
push eax
push 1
push 0x1003
mov ecx, edi
call fcn.004015b0
push 0x21
mov ecx, edi
call fcn.0040cf80
mov byte [ebp - 0x1a4], bl
mov eax, 0x60
mov dword [ebp - 0x1a0], eax
mov dword [ebp - 0x19c], eax
mov dword [ebp - 0x20], ebx
mov dword [ebp - 0x18], ebx
xor edx, edx
mov word [ebp - 0x1c], dx
mov byte [ebp - 4], 1
mov eax, dword [0x75dd28]
push eax
mov ecx, dword [0x75f320]
push ecx
lea ecx, [ebp - 0x20]
call fcn.00401980
mov eax, dword [ebp - 0x20]
cmp eax, ebx
jne 0x40d685
lea eax, [ebp - 0x1c]
push eax
push 0xbe
lea ecx, [ebp - 0x1a4]
call fcn.0040d050
push eax
push ebx
mov edx, dword [esi + 0x94]
push edx
call fcn.0040ce10
add esp, 0x10
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x30], ebx
xor eax, eax
mov word [ebp - 0x34], ax
mov byte [ebp - 4], 2
mov ecx, dword [0x75dd28]
push ecx
mov edx, dword [0x75f324]
push edx
lea ecx, [ebp - 0x38]
call fcn.00401980
mov eax, dword [ebp - 0x38]
cmp eax, ebx
jne 0x40d6d7
lea eax, [ebp - 0x34]
push eax
push 0x6e
lea ecx, [ebp - 0x1a4]
call fcn.0040d050
push eax
push 1
mov eax, dword [esi + 0x94]
push eax
call fcn.0040ce10
add esp, 0x10
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x24], ebx
xor ecx, ecx
mov word [ebp - 0x28], cx
mov byte [ebp - 4], 3
mov edx, dword [0x75dd28]
push edx
mov eax, dword [0x75f328]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401980
mov eax, dword [ebp - 0x2c]
cmp eax, ebx
jne 0x40d726
lea eax, [ebp - 0x28]
push eax
push 0x12c
lea ecx, [ebp - 0x1a4]
call fcn.0040d050
push eax
push 2
mov ecx, dword [esi + 0x94]
push ecx
call fcn.0040ce10
add esp, 0x10
mov ecx, esi
call fcn.0040d2a0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x2c]
call fcn.00401210
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x38]
call fcn.00401210
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x20]
call fcn.00401210
mov dword [ebp - 4], 0xffffffff
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 - 0x14]
xor ecx, ebp
call fcn.0062016f
mov esp, ebp
pop ebp
ret
Function at 0x40d920
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
mov edx, dword [esp + 0xc]
push esi
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 0x14]
push 1
xor esi, esi
push esi
push edx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40d975
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0xc]
push edx
push eax
push eax
mov eax, dword [esp + 0x14]
push str.found
push eax
mov dword [esp + 0x28], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40d975
mov esi, dword [esp + 8]
mov eax, dword [esp + 4]
test eax, eax
je 0x40d984
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 8
ret 4

Function at 0x40da70
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x642d5b
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x21c], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x758898]
xor eax, esp
push eax
lea eax, [esp + 0x234]
mov dword fs:[0], eax
mov esi, ecx
xor edi, edi
cmp dword [esi + 0x14], edi
je 0x40dbbf
mov eax, dword [esi + 8]
xor ebx, ebx
cmp eax, edi
mov dword [esp + 0x14], edi
jle 0x40dbbf
test edi, edi
jl 0x40dbe7
cmp ebx, eax
jge 0x40dbe7
mov eax, dword [esi + 4]
lea ecx, [esp + 0x1c]
push ecx
lea edx, [esp + 0x18]
push edx
push 0
push 0xf003f
push 0
push 0x67997c
add eax, edi
mov eax, dword [eax + 4]
push 0
push eax
mov eax, dword [esi + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x40db44
lea ecx, [esp + 0x20]
call fcn.004c15d0
mov dword [esp + 0x23c], 0
push 1
push str.Cannot_open__create__registry_subkey_during_CBrowsersIntegration::Save__._r_n
lea ecx, [esp + 0x28]
call fcn.004c1740
mov dword [esp + 0x23c], 0xffffffff
lea ecx, [esp + 0x20]
call fcn.004c1730
jmp 0x40dba1
cmp ebx, dword [esi + 8]
jge 0x40dbe7
mov ecx, dword [esi + 4]
mov ecx, dword [edi + ecx]
mov eax, ecx
lea ebp, [eax + 1]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x40db58
mov edx, dword [esp + 0x14]
sub eax, ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
inc eax
push eax
push ecx
push 1
push 0
push 0x67b078
push edx
call ebp
cmp ebx, dword [esi + 8]
jge 0x40dbe7
mov eax, dword [esi + 4]
mov ecx, dword [eax + edi + 8]
mov eax, dword [esp + 0x14]
push 4
lea edx, [esp + 0x1c]
push edx
push 4
push 0
push 0x67b074
push eax
mov dword [esp + 0x30], ecx
call ebp
mov eax, dword [esi + 8]
inc ebx
add edi, 0xc
cmp ebx, eax
jl 0x40dac9
mov eax, dword [esp + 0x14]
test eax, eax
je 0x40dbbf
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x234]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x21c]
xor ecx, esp
call fcn.0062016f
add esp, 0x22c
ret
call fcn.005f4545
int3
Function at 0x40fc50
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
mov eax, edx
push esi
lea esi, [eax + 2]
lea ebx, [ebx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x40fc60
sub eax, esi
sar eax, 1
mov ecx, eax
xor eax, eax
test ecx, ecx
jle 0x40fc9a
push edi
jmp 0x40fc80
mov si, word [edx + eax*2]
xor si, 0x4d
mov edi, 0xff
sub si, di
mov word [edx + eax*2], si
inc eax
cmp eax, ecx
jl 0x40fc80
pop edi
pop esi
ret

Function at 0x40fca0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x7c
mov eax, dword [0x758898]
xor eax, esp
mov dword [esp + 0x78], eax
mov ecx, dword [esp + 0x88]
mov edx, dword [esp + 0x8c]
mov eax, dword [esp + 0x80]
push ebx
push ebp
mov ebp, dword [esp + 0x9c]
push esi
mov esi, dword [esp + 0xa8]
push edi
mov edi, dword [esp + 0xa8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0xa0]
mov dword [esp + 0x18], edx
lea edx, [esp + 0x10]
push edx
mov dword [esp + 0x18], ecx
mov ecx, dword [esp + 0x98]
push ecx
xor ebx, ebx
push ebx
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x40fdb5
push 0x64
push eax
lea edx, [esp + 0x2c]
push edx
call fcn.00620850
mov edx, dword [esp + 0x1c]
add esp, 0xc
lea eax, [esp + 0x20]
push eax
lea ecx, [esp + 0x28]
push ecx
push ebx
push ebx
push str.CurrentVersion
push edx
mov dword [esp + 0x38], 0x64
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x40fdaa
lea ebx, [eax + 1]
lea eax, [esp + 0x24]
push 0x2e
push eax
call fcn.00621750
add esp, 8
test eax, eax
je 0x40fd64
mov byte [eax], 0
lea ecx, [esp + 0x24]
push ecx
call fcn.006219a1
add esp, 4
test eax, eax
je 0x40fdaa
cmp eax, 0x49
mov dword [esi], eax
jle 0x40fd80
mov dword [edi], ebx
jmp 0x40fdaa
cmp eax, 0x34
jle 0x40fd8a
mov dword [ebp], ebx
jmp 0x40fdaa
cmp eax, 0x1a
jle 0x40fd97
mov edx, dword [esp + 0x14]
mov dword [edx], ebx
jmp 0x40fdaa
cmp eax, 7
jle 0x40fda4
mov eax, dword [esp + 0x18]
mov dword [eax], ebx
jmp 0x40fdaa
mov ecx, dword [esp + 0x1c]
mov dword [ecx], ebx
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x88]
pop edi
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.0062016f
add esp, 0x7c
ret