joyce8/EMBER2024-capa huggingface dataset:
Function at 0x457a0c
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
call fcn.004045f4
xor eax, eax
push ebp
push 0x457b3a
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
call sub.user32.dll_OpenClipboard
test eax, eax
je 0x457b0d
xor eax, eax
push ebp
push 0x457b06
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404404
inc eax
push eax
push 0x2002
call sub.kernel32.dll_GlobalAlloc
mov dword [ebp - 8], eax
xor eax, eax
push ebp
push 0x457adb
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalLock
mov ebx, eax
xor eax, eax
push ebp
push 0x457aca
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
call fcn.00404404
inc eax
push eax
mov eax, dword [ebp - 4]
call fcn.00404604
mov edx, ebx
pop ecx
call fcn.004028e8
call sub.user32.dll_EmptyClipboard
mov eax, dword [ebp - 8]
push eax
push 1
call sub.user32.dll_SetClipboardData
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457ad1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_GlobalUnlock
ret
mov ecx, dword [0x47decc]
mov dl, 1
mov eax, dword [0x40742c]
call fcn.0040be98
call fcn.00403ae8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457b41
lea eax, [ebp - 4]
call fcn.00404144
ret
Function at 0x457b48
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff8c
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x70], ecx
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x457d03
push dword fs:[eax]
mov dword fs:[eax], esp
lea ecx, [ebp - 0x10]
mov edx, 0x1b
mov al, 0x2d
call fcn.004047f4
mov edx, dword [ebp - 0x10]
lea eax, [ebp - 4]
mov ecx, 0x457d1c
call fcn.00404450
mov eax, ebx
call fcn.0041c234
mov edi, eax
dec edi
test edi, edi
jl 0x457c00
inc edi
xor esi, esi
mov edx, esi
mov eax, ebx
call fcn.0041c208
mov edx, dword [0x42b8e8]
call fcn.004034a8
test al, al
je 0x457bfc
push dword [ebp - 8]
mov edx, esi
mov eax, ebx
call fcn.0041c208
lea edx, [ebp - 0x14]
call fcn.004344c0
push dword [ebp - 0x14]
lea ecx, [ebp - 0x18]
mov edx, 3
mov al, 0x20
call fcn.004047f4
push dword [ebp - 0x18]
lea eax, [ebp - 8]
mov edx, 3
call fcn.004044c4
inc esi
dec edi
jne 0x457bae
movzx eax, byte [0x457d20]
push eax
lea eax, [ebp - 0x1c]
push eax
xor ecx, ecx
mov edx, 0x457d2c
mov eax, dword [ebp - 8]
call fcn.0040d11c
mov edx, dword [ebp - 0x1c]
lea eax, [ebp - 8]
call fcn.004041dc
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x6c], eax
mov byte [ebp - 0x68], 0xb
lea edx, [ebp - 0x70]
mov eax, ebx
call fcn.004344c0
mov eax, dword [ebp - 0x70]
mov dword [ebp - 0x64], eax
mov byte [ebp - 0x60], 0xb
mov eax, 0x457d1c
mov dword [ebp - 0x5c], eax
mov byte [ebp - 0x58], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x54], eax
mov byte [ebp - 0x50], 0xb
lea edx, [ebp - 0x74]
mov eax, dword [ebx + 0x330]
call fcn.004344c0
mov eax, dword [ebp - 0x74]
mov dword [ebp - 0x4c], eax
mov byte [ebp - 0x48], 0xb
mov eax, 0x457d1c
mov dword [ebp - 0x44], eax
mov byte [ebp - 0x40], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x3c], eax
mov byte [ebp - 0x38], 0xb
mov eax, dword [ebp - 8]
mov dword [ebp - 0x34], eax
mov byte [ebp - 0x30], 0xb
mov eax, 0x457d1c
mov dword [ebp - 0x2c], eax
mov byte [ebp - 0x28], 0xb
mov eax, dword [ebp - 4]
mov dword [ebp - 0x24], eax
mov byte [ebp - 0x20], 0xb
lea edx, [ebp - 0x6c]
mov ecx, 9
mov eax, 0x457d38
call fcn.00409354
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x457d0a
lea eax, [ebp - 0x74]
mov edx, 2
call fcn.00404168
lea eax, [ebp - 0x1c]
mov edx, 2
call fcn.00404168
lea eax, [ebp - 0x14]
call fcn.00404144
lea eax, [ebp - 0x10]
call fcn.00404144
lea eax, [ebp - 8]
mov edx, 2
call fcn.00404168
ret
Function at 0x477748
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
xor edx, edx
push ebp
push 0x4777a2
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [eax + 0x30]
call fcn.00477738
mov ebx, eax
lea edx, [ebp - 4]
mov eax, edi
call fcn.004754d0
mov edx, dword [ebp - 4]
mov eax, dword [ebx + 0xc]
call fcn.00475028
mov edx, dword [esi + 8]
mov eax, dword [ebx + 0x10]
mov ecx, dword [eax]
call dword [ecx + 8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4777a9
lea eax, [ebp - 4]
call fcn.00404144
ret
Function at 0x4125ac
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor edx, edx
mov dword [ebp - 4], edx
mov ebx, eax
xor eax, eax
push ebp
push 0x412682
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0xffffffff
lea eax, [ebp - 4]
mov edx, ebx
call fcn.0040649c
lea eax, [ebp - 4]
call fcn.00406eb0
lea eax, [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
je 0x41266c
mov eax, ebx
call fcn.00403018
mov dword [ebp - 0x10], eax
xor eax, eax
push ebp
push 0x412665
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
push eax
push ebx
mov eax, dword [ebp - 0xc]
push eax
mov eax, dword [ebp - 4]
call fcn.004064d4
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x41264f
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x412694
mov eax, dword [ebp - 0x10]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x41264f
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov dword [ebp - 8], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x41266c
mov eax, dword [ebp - 0x10]
call fcn.00403034
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x412689
lea eax, [ebp - 4]
call fcn.00406438
ret

Function at 0x41345b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffdf8
mov ebx, eax
mov eax, ebx
ret
call fcn.0040565c
mov ebp, eax
push 0
push 0
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
mov edi, eax
cmp edi, 0x104
jbe 0x41347e
mov eax, edi
add eax, eax
call fcn.00403018
mov esi, eax
jmp 0x413480
mov esi, esp
push edi
push esi
push ebp
push ebx
push 0
push 0xfde9
call sub.kernel32.dll_MultiByteToWideChar_1
push edi
push esi
call sub.user32.dll_CharUpperBuffW
xor ebx, ebx
mov eax, edi
dec eax
test eax, eax
jl 0x4134b9
inc eax
xor edx, edx
mov ecx, ebx
shl ecx, 5
shr ebx, 0x1b
or ecx, ebx
mov ebx, ecx
movzx ecx, word [esi + edx*2]
xor ebx, ecx
inc edx
dec eax
jne 0x4134a3
mov eax, esp
cmp esi, eax
je 0x4134c6
mov eax, esi
call fcn.00403034
mov eax, ebx
add esp, 0x208
pop ebp
pop edi
pop esi
pop ebx
ret
push esi
push ebx
mov esi, eax
xor eax, eax
push esi
rol eax, 5
mov bl, byte [esi]
test bl, 0x80
jne 0x413500
cmp bl, 0
je 0x4134fc
cmp bl, 0x41
jl 0x4134f7
cmp bl, 0x5a
jg 0x4134f7
or bl, 0x20
xor al, bl
inc esi
jmp 0x4134db
pop ecx
pop ebx
pop esi
ret
pop eax
pop ebx
pop esi
jmp 0x413440

Function at 0x42abb8
Capabilities:
Resume thread

Disassembly:
push ebx
push esi
mov ebx, eax
mov eax, dword [ebx + 4]
push eax
call sub.kernel32.dll_ResumeThread
mov esi, eax
test esi, esi
setge dl
mov eax, ebx
call fcn.0042a8bc
dec esi
jne 0x42abda
mov byte [ebx + 0xe], 0
pop esi
pop ebx
ret
Function at 0x9d3e1c
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x9f8274]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x9f5e6c
push esi
call fcn.009cc273
pop ecx
pop ecx
test eax, eax
jne 0x9d3e4a
xor al, al
jmp 0x9d3ec7
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.009d3b51
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x9d3e84
push dword [ebp - 0x210]
call fcn.009ba4f2
xor al, al
jmp 0x9d3ec5
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x9d3e8a
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x9d3eaa
push edx
call fcn.009d3d53
pop ecx
test al, al
je 0x9d3e75
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x9d3eb8
mov bl, 1
push dword [ebp - 0x210]
call fcn.009ba4f2
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.009b6e52
leave
ret

Function at 0x9d49ac
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x9f8274]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0x9d49ef
call fcn.009c44e7
mov dword [eax], 0xf
call fcn.009c44fa
mov dword [eax], 0xd
call fcn.009c7dc4
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.009b6e52
leave
ret
test eax, eax
jne 0x9d49f6
inc eax
jmp 0x9d49e3
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0x9d49e1
xor eax, eax
cmp ecx, 1
setne al
jmp 0x9d49e3

Function at 0x432006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..rsrc
nop
mov ebx, 0x40c7d0
nop
nop
mov ecx, 0x564214e5
nop
nop
nop
test eax, eax
nop
je 0x43204e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x432024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42f314
nop
mov ecx, 0x76875930
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x432084
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43206c
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x401050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43911a
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x449570]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.0041d015
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x4010f6
lea eax, [ebp - 0x14]
push eax
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x14], str.bad_locale_name
call fcn.0041de35
push 0x445a04
lea eax, [ebp - 0x24]
push eax
mov dword [ebp - 0x24], vtable.std::runtime_error.0
call fcn.00420ee0
push edi
push esi
call fcn.0041d2ac
add esp, 8
mov eax, esi
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.0041ddb7
mov esp, ebp
pop ebp
ret 4
Function at 0x40fab0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439788
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x449570]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x449570]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x40fc04
cmp byte [ebx + 0x45], 0
je 0x40fc04
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40fb10
xor al, al
jmp 0x40fc06
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
jmp 0x40fb50
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x40fb91
dec eax
je 0x40fb95
sub eax, 2
je 0x40fbeb
xor bl, bl
jmp 0x40fbed
mov byte [ebx + 0x45], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x40fbcc
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0041ff88
add esp, 0x10
cmp esi, eax
jne 0x40fb8d
cmp byte [ebx + 0x45], 0
je 0x40fbeb
test esi, esi
jne 0x40fb50
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040eb60
jmp 0x40fb50
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x40fc00
push dword [esp + 0x18]
call fcn.0041df62
add esp, 4
mov al, bl
jmp 0x40fc06
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret
Function at 0x40ffa0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x439788
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x449570]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x449570]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x4100f6
cmp byte [ebx + 0x46], 0
je 0x4100f6
mov eax, dword [ebx]
push 0xffff
call dword [eax + 0xc]
movzx eax, ax
mov ecx, 0xffff
cmp cx, ax
jne 0x41000b
xor al, al
jmp 0x4100f8
mov ecx, 0xf
mov byte [esp + 0x18], 0
xorps xmm0, xmm0
movq qword [esp + 0x18], xmm0
lea eax, [esp + 0x18]
cmp ecx, 0x10
cmovae eax, dword [esp + 0x18]
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x28], 8
mov byte [eax + 8], 0
mov dword [esp + 0x40], 0
cmp dword [esp + 0x2c], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [esp + 0x14]
mov edx, dword [ecx]
push eax
mov eax, dword [esp + 0x2c]
lea edi, [esp + 0x1c]
cmovae edi, dword [esp + 0x1c]
lea esi, [esp + 0x1c]
cmovae esi, dword [esp + 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x410083
dec eax
je 0x410087
sub eax, 2
je 0x4100dd
xor bl, bl
jmp 0x4100df
mov byte [ebx + 0x46], 0
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x18]
mov esi, dword [esp + 0x14]
cmp ecx, 0x10
lea eax, [esp + 0x18]
cmovae eax, edx
sub esi, eax
je 0x4100be
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [esp + 0x20]
cmovae eax, edx
push 1
push eax
call fcn.0041ff88
add esp, 0x10
cmp esi, eax
jne 0x41007f
cmp byte [ebx + 0x46], 0
je 0x4100dd
test esi, esi
jne 0x410042
push esi
push 8
lea ecx, [esp + 0x20]
call fcn.0040eb60
jmp 0x410042
mov bl, 1
cmp dword [esp + 0x2c], 0x10
jb 0x4100f2
push dword [esp + 0x18]
call fcn.0041df62
add esp, 4
mov al, bl
jmp 0x4100f8
mov al, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret
Function at 0x415050
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a753
mov eax, dword fs:[0]
push eax
sub esp, 0x2f8
mov eax, dword [0x449570]
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 esi, ecx
mov edi, dword [ebp + 8]
mov dword [ebp - 0x2d0], 0
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov dword [ebp - 0x2ec], esi
mov word [esi], ax
mov dword [ebp - 4], eax
cmp dword [ebx + 0x14], 8
mov dword [ebp - 0x2d0], 1
mov dword [ebp - 0x2cc], eax
jb 0x4150c5
mov eax, dword [ebx]
jmp 0x4150c7
mov eax, ebx
lea ecx, [ebp - 0x2cc]
push ecx
push 0x20219
push 0
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [ebp - 0x214], eax
test eax, eax
jne 0x41518f
push 0x1fc
push eax
mov dword [ebp - 0x214], eax
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push eax
call fcn.004219e0
add esp, 0xc
cmp dword [edi + 0x14], 8
mov dword [ebp - 0x218], 0x1fe
jb 0x415123
mov edi, dword [edi]
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push edi
push dword [ebp - 0x2cc]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41517e
cmp word [ebp - 0x210], ax
je 0x41516f
lea eax, [ebp - 0x210]
lea edx, [eax + 2]
lea ecx, [ecx]
mov cx, word [eax]
add eax, 2
test cx, cx
jne 0x415160
sub eax, edx
sar eax, 1
push eax
lea eax, [ebp - 0x210]
push eax
mov ecx, esi
call fcn.00404220
push dword [ebp - 0x2cc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4152b7
push ecx
lea ecx, [ebp - 0x2c8]
call fcn.00402830
sub esp, 8
lea ecx, [ebp - 0x2c8]
call fcn.00403070
mov dword [ebp - 4], 1
push dword [ebp - 0x214]
mov edx, str.RegOpenKeyEx_
lea ecx, [ebp - 0x2b8]
call fcn.00404c90
mov edx, ebx
mov ecx, eax
call fcn.00404f50
mov edx, 0x443194
mov ecx, eax
call fcn.00404c90
mov ecx, eax
call fcn.00416050
mov edx, 0x443190
mov ecx, eax
call fcn.00404c90
push 5
xor eax, eax
push str.TRACE
lea ecx, [ebp - 0x2e8]
mov dword [ebp - 0x2d4], 7
mov dword [ebp - 0x2d8], 0
mov word [ebp - 0x2e8], ax
call fcn.00404220
lea eax, [ebp - 0x304]
push eax
lea ecx, [ebp - 0x2c8]
mov byte [ebp - 4], 2
call fcn.004031a0
mov edx, eax
lea ecx, [ebp - 0x2e8]
mov byte [ebp - 4], 3
call fcn.004157f0
cmp dword [ebp - 0x2f0], 8
jb 0x41525b
push dword [ebp - 0x304]
call fcn.0041df62
add esp, 4
xor eax, eax
cmp dword [ebp - 0x2d4], 8
mov dword [ebp - 0x2f0], 7
mov dword [ebp - 0x2f4], 0
mov word [ebp - 0x304], ax
jb 0x41528f
push dword [ebp - 0x2e8]
call fcn.0041df62
add esp, 4
lea ecx, [ebp - 0x260]
mov byte [ebp - 4], 0
call fcn.00403120
lea eax, [ebp - 0x260]
push eax
mov dword [ebp - method.std::ios_base.virtual_0], vtable.std::ios_base.0
call fcn.0041d8ae
add esp, 4
mov eax, esi
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.0041ddb7
mov esp, ebp
pop ebp
ret
Function at 0x4152e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43a6e1
mov eax, dword fs:[0]
push eax
sub esp, 0x100
mov eax, dword [0x449570]
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 esi, edx
xor edi, edi
cmp dword [ecx + 0x14], 8
mov dword [ebp - 0xd8], edi
jb 0x415320
mov ecx, dword [ecx]
lea eax, [ebp - 0xd8]
push eax
push 0x20219
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x415387
cmp dword [esi + 0x14], 8
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x20], 4
jb 0x415355
mov esi, dword [esi]
lea eax, [ebp - 0x20]
push eax
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x1c]
push eax
push 0
push esi
push dword [ebp - 0xd8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0xd8]
test eax, eax
cmove edi, dword [ebp - 0x18]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x4154b0
push ecx
lea ecx, [ebp - 0xd4]
call fcn.00402830
sub esp, 8
lea ecx, [ebp - 0xd4]
call fcn.00403070
push ebx
push ecx
mov edx, str.RegOpenKeyEx___failed_with_error_code
lea ecx, [ebp - 0xc4]
mov dword [ebp - 4], 0
call fcn.00404c90
add esp, 4
mov ecx, eax
call fcn.00416050
mov edx, 0x443190
mov ecx, eax
call fcn.00404c90
push 5
xor eax, eax
push str.TRACE
lea ecx, [ebp - 0xf0]
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
call fcn.00404220
lea eax, [ebp - 0x108]
push eax
lea ecx, [ebp - 0xd4]
mov byte [ebp - 4], 1
call fcn.004031a0
mov edx, eax
lea ecx, [ebp - 0xf0]
mov byte [ebp - 4], 2
call fcn.004157f0
cmp dword [ebp - 0xf4], 8
jb 0x41543d
push dword [ebp - 0x108]
call fcn.0041df62
add esp, 4
xor eax, eax
cmp dword [ebp - 0xdc], 8
mov dword [ebp - 0xf4], 7
mov dword [ebp - 0xf8], 0
mov word [ebp - 0x108], ax
jb 0x415471
push dword [ebp - 0xf0]
call fcn.0041df62
add esp, 4
xor eax, eax
lea ecx, [ebp - 0x6c]
mov dword [ebp - 0xdc], 7
mov dword [ebp - 0xe0], 0
mov word [ebp - 0xf0], ax
mov dword [ebp - 4], 0xffffffff
call fcn.00403120
lea eax, [ebp - 0x6c]
push eax
mov dword [ebp - 0x6c], vtable.std::ios_base.0
call fcn.0041d8ae
add esp, 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 - 0x14]
xor ecx, ebp
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret
Function at 0x4154d0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x449570]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
xor bl, bl
cmp dword [ecx + 0x14], 8
push edi
mov edi, edx
mov dword [ebp - 8], 0
jb 0x4154f9
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x202
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x415566
cmp dword [esi + 0x14], 8
mov eax, dword [esi + 0x10]
jb 0x415527
mov esi, dword [esi]
cmp dword [edi + 0x14], 8
jb 0x41552f
mov edi, dword [edi]
lea eax, [eax*2 + 2]
push eax
push esi
push 1
push 0
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ecx, bl
test eax, eax
pop edi
mov edx, 1
cmove ecx, edx
pop esi
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret

Function at 0x415580
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x449570]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
mov dword [ebp - 8], 0
jb 0x4155a5
mov ecx, dword [ecx]
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0x202
push 0
push 0
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x415603
cmp dword [esi + 0x14], 8
jb 0x4155d0
mov esi, dword [esi]
push 4
lea eax, [ebp + 8]
push eax
push 4
push 0
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
movzx ecx, bl
test eax, eax
mov edx, 1
cmove ecx, edx
pop esi
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret

Function at 0x415620
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x449570]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor bl, bl
cmp dword [ecx + 0x14], 8
push esi
mov esi, edx
mov dword [ebp - 8], 0
jb 0x415645
mov ecx, dword [ecx]
lea eax, [ebp - 8]
push eax
push 0x202
push 0
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x415691
cmp dword [esi + 0x14], 8
jb 0x415668
mov esi, dword [esi]
push esi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
movzx ecx, bl
test eax, eax
mov edx, 1
cmove ecx, edx
pop esi
mov al, cl
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
pop esi
mov al, bl
xor ecx, ebp
pop ebx
call fcn.0041ddb7
mov esp, ebp
pop ebp
ret