joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4681b0
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x59f1d8
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esi + 4], eax
mov dword [esi + 0x14], eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esp + 0x14], eax
mov dword [esi], vtable.CPhraseEditDlg.0
mov dword [esi + 0x20], eax
lea edi, [esi + 0x2c]
mov dword [esi + 0x24], eax
push edi
mov dword [esi + 0x28], eax
call fcn.00412e20
mov eax, dword [esp + 0x20]
mov ecx, dword [esp + 0x24]
mov dword [edi], vtable.WTL::CSortListViewCtrl.0
mov dword [esi + 0x30], eax
mov dword [esi + 0x7c], ecx
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 0xc

Function at 0x469720
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x5a51e3
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor edi, edi
mov dword [esi + 4], edi
mov dword [esi + 0x14], edi
mov dword [esi + 0x18], edi
mov dword [esi + 0x1c], edi
mov dword [esp + 0x14], edi
mov dword [esi], vtable.CPicFaceWhiteList.0
mov dword [esi + 0x20], edi
mov dword [esi + 0x24], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x30], vtable.CPicFaceWhiteListFile.0
call fcn.004642e0
mov dword [esi + 0x38], eax
mov byte [eax + 0x15], 1
mov eax, dword [esi + 0x38]
mov dword [eax + 4], eax
mov eax, dword [esi + 0x38]
mov dword [eax], eax
mov eax, dword [esi + 0x38]
mov dword [eax + 8], eax
mov dword [esi + 0x3c], edi
push 0xffffff
mov dword [esi + 0x44], edi
mov dword [esi + 0x48], edi
mov dword [esi + 0x4c], edi
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
mov dword [esi + 0x20], eax
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0xc
ret 4
Function at 0x46cb30
Capabilities:
Check if file exists

Disassembly:
push 0xffffffffffffffff
push 0x5a8820
mov eax, dword fs:[0]
push eax
sub esp, 8
push ebx
push ebp
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x18]
mov dword fs:[0], eax
lea edi, [esp + 0x10]
call fcn.00474ab0
mov dword [esp + 0x20], 0
mov ebp, dword [esp + 0x10]
mov eax, dword [ebp - 0xc]
test eax, eax
jle 0x46cb9b
lea ecx, [eax - 1]
test ecx, ecx
jl 0x46cc73
cmp ecx, eax
jg 0x46cc73
movzx eax, word [ebp + ecx*2]
cmp ax, 0x5c
je 0x46cb9b
push 0x5c
call fcn.00404400
mov ebp, dword [esp + 0x10]
lea ebx, [esp + 0x14]
call fcn.004747c0
mov byte [esp + 0x20], 1
mov edx, dword [esp + 0x14]
mov ecx, dword [edx - 0xc]
test ecx, ecx
jle 0x46cbda
lea eax, [ecx - 1]
test eax, eax
jl 0x46cc73
cmp eax, ecx
jg 0x46cc73
movzx eax, word [edx + eax*2]
cmp ax, 0x5c
je 0x46cbda
push 0x5c
mov edi, ebx
call fcn.00404400
lea eax, [esp + 0x10]
mov edi, esi
call fcn.004035d0
push 8
push 0x5c1e54
push esi
call fcn.00403fc0
mov eax, dword [esi]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46cc15
lea eax, [esp + 0x14]
call fcn.004035d0
push 8
push 0x5c1e54
push esi
call fcn.00403fc0
mov byte [esp + 0x20], 0
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cc3a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x20], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46cc5e
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, esi
mov ecx, dword [esp + 0x18]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0x14
ret
push 0x80070057
call fcn.00404550
int3
Function at 0x46e460
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x54
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x50], eax
cmp dword [esp + 0x58], 0
push ebx
push ebp
push esi
jl 0x46e5cc
test edi, edi
jl 0x46e5cc
mov ebx, dword [sym.imp.USER32.dll_SendMessageW]
xor ebp, ebp
xor esi, esi
test edi, edi
jle 0x46e4ab
mov eax, dword [0x5fe634]
push 0
push esi
push 0x101d
push eax
call ebx
add esi, 1
add ebp, eax
cmp esi, edi
jl 0x46e492
mov ecx, dword [0x5fe634]
push 0
push edi
push 0x101d
push ecx
call ebx
mov ecx, dword [0x5fe634]
lea edx, [esp + 0x10]
push edx
mov esi, eax
mov eax, dword [esp + 0x68]
push eax
push 0x100e
push ecx
mov dword [esp + 0x20], 0
call ebx
mov ecx, dword [esp + 0x14]
sub ecx, 2
mov dword [esp + 0x14], ecx
jns 0x46e4f1
xor ecx, ecx
mov dword [esp + 0x14], ecx
mov eax, dword [esp + 0x10]
add eax, ebp
lea edx, [eax + esi]
mov dword [esp + 0x18], edx
mov edx, dword [esp + 0x1c]
push 1
sub edx, ecx
add edx, 4
push edx
push esi
add ecx, 2
push ecx
push eax
mov dword [esp + 0x24], eax
mov eax, dword [0x5fe630]
push eax
call dword [sym.imp.USER32.dll_MoveWindow]
mov ecx, dword [0x5fe630]
push 5
push ecx
call dword [sym.imp.USER32.dll_ShowWindow]
mov esi, dword [esp + 0x64]
mov ecx, dword [0x5fe634]
xor eax, eax
mov dword [esp + 0x4a], eax
mov dword [esp + 0x4e], eax
mov dword [esp + 0x52], eax
mov dword [esp + 0x56], eax
mov word [esp + 0x5a], ax
lea eax, [esp + 0x20]
push eax
push esi
push 0x1073
lea edx, [esp + 0x54]
push ecx
mov word [esp + 0x58], 0
mov dword [esp + 0x38], edi
mov dword [esp + 0x48], 9
mov dword [esp + 0x44], edx
call ebx
mov eax, dword [0x5fe630]
lea edx, [esp + 0x48]
push edx
push eax
mov dword [0x5fe640], esi
mov dword [0x5fe644], edi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov ecx, dword [0x5fe630]
push 0xffffffffffffffff
push 0
push 0xb1
push ecx
call ebx
mov edx, dword [0x5fe630]
push edx
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, 1
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005787fd
add esp, 0x54
ret
mov ecx, dword [esp + 0x5c]
pop esi
pop ebp
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005787fd
add esp, 0x54
ret
Function at 0x46f840
Capabilities:
Check if file exists

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
push edi
mov edi, ecx
mov ecx, dword [ebp + 4]
push ecx
mov dword [ebp + 0x164], eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
jne 0x46f865
pop edi
pop esi
pop ebp
pop ebx
ret 4
cmp dword [ebp + 0x150], 0
je 0x46f932
cmp dword [ebp + 0x164], 0
je 0x46f932
mov eax, dword [ebp + 0x154]
mov ebx, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
lea esi, [ebp + 0x154]
push eax
call ebx
test eax, eax
je 0x46f932
cmp dword [ebp + 0xf0], 1
jne 0x46f8e1
mov edx, dword [ebp + 0x150]
lea ebx, [ebp + 0xe0]
lea edi, [ebp + 0xe4]
mov eax, esi
mov dword [ebx], edx
call fcn.004035d0
mov eax, dword [ebp + 0x164]
push 0
push ebx
push 0x47c
push eax
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4
push 0
push ebp
call fcn.0046fbc0
test eax, eax
je 0x46f932
mov eax, dword [esi]
push eax
call ebx
test eax, eax
je 0x46f932
mov ecx, dword [ebp + 0x150]
lea ebx, [ebp + 0xe0]
lea edi, [ebp + 0xe4]
mov eax, esi
mov dword [ebx], ecx
call fcn.004035d0
mov edx, dword [ebp + 0x164]
push 0
push ebx
push 0x47c
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4
test edi, edi
je 0x46f9b0
call fcn.0056cdb0
test eax, eax
je 0x46f952
mov ecx, dword [eax]
mov dword [ebp + 0xe8], ecx
mov dx, word [eax + 0x58]
mov word [ebp + 0xec], dx
call fcn.004021f0
mov edx, eax
mov ebx, 3
call fcn.0056cea0
test eax, eax
je 0x46f9b0
mov cl, byte [eax + 0x20]
cmp cl, 0x40
jbe 0x46f974
lea ecx, [ebx + 0x3d]
jmp 0x46f977
movzx ecx, cl
push ecx
add eax, 0x21
push eax
lea eax, [ebp + 0xf8]
push eax
mov dword [ebp + 0xf4], ecx
call fcn.0057e7b0
mov ecx, dword [ebp + 4]
add esp, 0xc
push 0
push 0
push 0x8e7
push ecx
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
ret 4
mov edx, dword [ebp + 4]
push 0
push 0
push 0x8e8
push edx
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
ret 4
Function at 0x46f9d0
Capabilities:
Get file size

Disassembly:
push 0xffffffffffffffff
push 0x59f090
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x38]
mov dword fs:[0], eax
mov eax, dword [0x5fcd20]
mov esi, ecx
mov edi, edx
mov edx, dword [eax + 0xc]
mov ecx, 0x5fcd20
call edx
add eax, 0x10
mov dword [esp + 0x14], eax
push 1
push esi
xor ebp, ebp
lea esi, [esp + 0x1c]
mov dword [esp + 0x48], ebp
call fcn.0046fbc0
cmp eax, ebp
jne 0x46fa61
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fa5a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
jmp 0x46fb9c
mov dword [esp + 0x18], ebp
push ebp
push 0x80
push 3
push ebp
push 1
mov byte [esp + 0x54], 1
mov ebx, dword [esp + 0x28]
push closesocket
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x46faa0
call fcn.004129d0
test eax, eax
jge 0x46faa6
mov dword [esp + 0x40], 0xffffffff
lea eax, [ebx - 0x10]
jmp 0x46fa41
mov ebp, eax
mov dword [esp + 0x18], ebp
lea ecx, [esp + 0x20]
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
mov dword [esp + 0x1c], esi
jne 0x46faf2
call fcn.004129d0
test eax, eax
jge 0x46faee
test ebp, ebp
je 0x46fad1
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebx - 0x10]
mov dword [esp + 0x40], 0xffffffff
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jmp 0x46fa4e
mov esi, dword [esp + 0x1c]
push esi
call fcn.0057740a
mov ebx, eax
add esp, 4
mov ecx, ebx
lea edx, [esp + 0x18]
call fcn.0041ae30
test eax, eax
jge 0x46fb24
test ebp, ebp
je 0x46fb17
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
call fcn.00404510
xor eax, eax
jmp 0x46fb9c
push esi
lea ecx, [esp + 0x28]
push ebx
push ecx
call fcn.00401a60
add esp, 0xc
mov edx, 0x5bcc3c
call fcn.004040f0
xor esi, esi
nop
movzx edx, byte [esp + esi + 0x24]
push edx
push 0x5c0098
call fcn.00403650
add esi, 1
add esp, 8
cmp esi, 0x10
jb 0x46fb40
push ebx
call fcn.0057832c
add esp, 4
test ebp, ebp
je 0x46fb6f
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esp + 0x40], 0xffffffff
mov eax, dword [esp + 0x14]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fb97
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x38]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.005787fd
add esp, 0x30
ret
Function at 0x46fbc0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x59f058
mov eax, dword fs:[0]
push eax
push ebx
push ebp
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x24]
push 0x5bcc3c
xor ebx, ebx
mov eax, esi
call fcn.00404050
lea edi, [esp + 0x24]
call fcn.00474ab0
mov edi, esi
mov dword [esp + 0x18], ebx
call fcn.004035d0
mov dword [esp + 0x18], 0xffffffff
mov eax, dword [esp + 0x24]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x46fc31
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esi]
mov eax, dword [edx - 0xc]
test eax, eax
je 0x46fcf3
jle 0x46fc5b
lea ecx, [eax - 1]
test ecx, ecx
jl 0x46fcb3
cmp ecx, eax
jg 0x46fcb3
cmp word [edx + ecx*2], 0x5c
je 0x46fc5b
push 0x5c
mov edi, esi
call fcn.00404400
push 0x10
push 0x5c1f18
push esi
call fcn.00403fc0
mov ecx, dword [esi]
push 0
push ecx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
test ebp, ebp
jne 0x46fcbd
mov eax, dword [esp + 0x20]
movzx edx, word [eax + 0xec]
mov eax, dword [eax + 0xe8]
push edx
push eax
push str._d_system__d.bmp
mov edi, esi
call fcn.00403650
add esp, 0xc
lea eax, [ebp + 1]
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
push 0x80070057
call fcn.00404550
cmp ebp, 1
jne 0x46fcf3
mov ecx, dword [esp + 0x20]
mov edx, dword [ecx + 0xe8]
push edx
push str._d_custom.bmp
mov edi, esi
call fcn.00403650
add esp, 8
mov eax, ebp
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
add esp, 0xc
ret 8

Function at 0x46fd10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, dword [edi + 0xf0]
sub esp, 8
push ebx
push esi
push eax
lea esi, [edi + 0x154]
push edi
call fcn.0046fbc0
test eax, eax
jne 0x46fd3a
xor eax, eax
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [esi]
xor ebx, ebx
push ebx
push 0x80
push 2
push ebx
push 1
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
jne 0x46fdb7
call fcn.004129d0
test eax, eax
jl 0x46fd32
mov eax, dword [edi + 0x144]
mov ecx, dword [edi + 0x13c]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x46fd88
call fcn.004129d0
push 0
push 0
lea esi, [edi + 0x138]
call fcn.004083b0
test ebx, ebx
mov dword [edi + 0x148], 0
je 0x46fdac
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov ebx, eax
jmp 0x46fd63
Function at 0x4721f0
Capabilities:
Create directory

Disassembly:
push 0xffffffffffffffff
push 0x5a1660
mov eax, dword fs:[0]
push eax
push ecx
push ebp
push edi
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x20]
lea eax, [esp + 0x20]
push eax
mov ecx, 0x5bcc3c
call fcn.00404460
lea edi, [esp + 0xc]
mov dword [esp + 0x18], 0
call fcn.00474ab0
lea edi, [esp + 0x20]
mov byte [esp + 0x18], 1
call fcn.004035d0
mov byte [esp + 0x18], 0
mov eax, dword [esp + 0xc]
add eax, 0xfffffff0
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x47226a
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov edx, dword [esp + 0x20]
mov eax, dword [edx - 0xc]
test eax, eax
jne 0x4722af
lea eax, [edx - 0x10]
mov dword [esp + 0x18], 0xffffffff
lea ecx, [eax + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
dec edx
test edx, edx
jg 0x472299
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
xor eax, eax
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x10
ret 4
jle 0x4722d9
lea ecx, [eax - 1]
test ecx, ecx
jl 0x472378
cmp ecx, eax
jg 0x472378
movzx eax, word [edx + ecx*2]
cmp ax, 0x5c
je 0x4722d9
push 0x5c
lea edi, [esp + 0x24]
call fcn.00404400
push 0x10
push str.FramePicQQShow_
lea ecx, [esp + 0x28]
push ecx
call fcn.00403fc0
mov edx, dword [esp + 0x20]
push 0
push edx
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
lea eax, [esp + 0x20]
mov edi, ebp
call fcn.004035d0
mov eax, dword [ebx + 0xe0]
push eax
push str._u_with_bkg.png
call fcn.00403650
add esp, 8
lea eax, [esp + 0x20]
mov edi, esi
call fcn.004035d0
mov ecx, dword [ebx + 0xe0]
push ecx
push str._u_without_bkg.png
call fcn.00403650
mov dword [esp + 0x20], 0xffffffff
mov eax, dword [esp + 0x28]
add eax, 0xfffffff0
add esp, 8
lea edx, [eax + 0xc]
or ecx, 0xffffffff
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x47235f
mov ecx, dword [eax]
mov edx, dword [ecx]
push eax
mov eax, dword [edx + 4]
call eax
mov eax, 1
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
add esp, 0x10
ret 4
push 0x80070057
call fcn.00404550
int3
Function at 0x472430
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xc
push ebx
push esi
mov ebx, eax
push edi
lea edi, [ebx + 0x130]
lea esi, [ebx + 0x134]
push edi
call fcn.004721f0
test eax, eax
je 0x472506
mov eax, dword [edi]
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
xor esi, esi
push esi
push 0x80
push 2
push esi
push 1
push 0x40000000
push eax
mov dword [esp + 0x28], esi
mov dword [esp + 0x2c], esi
call edi
cmp eax, 0xffffffff
jne 0x47250f
call fcn.004129d0
cmp eax, esi
jl 0x472506
mov eax, dword [ebx + 0x14c]
mov ecx, dword [ebx + 0x144]
push esi
lea edx, [esp + 0x18]
push edx
push eax
mov eax, dword [esp + 0x18]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4724b7
call fcn.004129d0
push esi
push esi
lea esi, [ebx + 0x140]
call fcn.004083b0
push 0
push 0x80
push 2
push 0
push 1
mov dword [ebx + 0x150], 0
mov eax, dword [ebx + 0x134]
push 0x40000000
push eax
call edi
cmp eax, 0xffffffff
jne 0x472518
call fcn.004129d0
test eax, eax
jge 0x47251c
mov eax, dword [esp + 0xc]
test eax, eax
je 0x472506
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0xc], eax
jmp 0x47248f
mov edi, eax
jmp 0x472520
mov edi, dword [esp + 0x10]
mov eax, dword [ebx + 0x164]
mov ecx, dword [ebx + 0x15c]
push 0
lea edx, [esp + 0x18]
push edx
push eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x472545
call fcn.004129d0
push 0
push 0
lea esi, [ebx + 0x158]
call fcn.004083b0
test edi, edi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx + 0x168], 0
je 0x47256b
push edi
call esi
mov eax, dword [esp + 0xc]
test eax, eax
je 0x472576
push eax
call esi
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x472b10
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
test edi, edi
jne 0x472b1f
push 0x80004005
call fcn.00404550
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push edi
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [edx]
push 0
push ecx
push eax
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test esi, esi
je 0x472b97
mov ecx, dword [edi]
test ecx, ecx
jbe 0x472b92
mov edx, dword [esp]
test edx, edx
jbe 0x472b8d
cmp edx, 2
jbe 0x472b7e
cmp edx, 7
jne 0x472b8d
test cl, 1
jne 0x472b8d
shr ecx, 1
cmp ecx, 1
jb 0x472b8d
cmp word [esi + ecx*2 - 2], 0
jne 0x472b8d
cmp ecx, 1
jbe 0x472b97
cmp word [esi + ecx*2 - 4], 0
jmp 0x472b8b
test cl, 1
jne 0x472b8d
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x472b97
mov eax, 0xd
mov word [esi], 0
pop ecx
ret 8

Function at 0x472ba0
Capabilities:
Set registry value

Disassembly:
test esi, esi
jne 0x472bae
push 0x80004005
call fcn.00404550
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
add eax, 1
add eax, eax
push eax
mov eax, dword [edx]
push esi
push 1
push 0
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
ret 8
Function at 0x472c20
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.00580260
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x472c75
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
je 0x472c9e
cmp dword [esp + 8], 6
jne 0x472c9e
cmp dword [esp + 0xc], 0
jne 0x472c9e
mov eax, 1
pop esi
mov ecx, dword [esp + 0x11c]
xor ecx, esp
call fcn.005787fd
add esp, 0x120
ret
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
xor eax, eax
call fcn.005787fd
add esp, 0x120
ret

Function at 0x472cc0
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 0x11c
lea eax, [esp + 8]
push 0
push eax
call fcn.00580260
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
add esp, 0xc
lea ecx, [esp + 4]
push ecx
mov dword [esp + 8], 0x11c
call esi
test eax, eax
jne 0x472d15
lea edx, [esp + 4]
push edx
mov dword [esp + 8], 0x114
call esi
test eax, eax
je 0x472d27
cmp dword [esp + 8], 6
jne 0x472d27
mov eax, 1
cmp dword [esp + 0xc], eax
jae 0x472d29
xor eax, eax
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.005787fd
add esp, 0x120
ret
Function at 0x473560
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x214
mov eax, dword [0x5f13cc]
xor eax, esp
mov dword [esp + 0x210], eax
test esi, esi
mov eax, dword [esp + 0x218]
jne 0x473596
xor eax, eax
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005787fd
add esp, 0x214
ret
push ebx
lea ecx, [esp + 4]
push ecx
push 0x20019
push 0
push eax
push reloc.OLEAUT32.dll_SysReAllocString
mov dword [esp + 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x473645
mov ebx, dword [esp + 4]
test ebx, ebx
je 0x473645
push 0x206
push eax
lea edx, [esp + 0x16]
push edx
mov word [esp + 0x18], ax
call fcn.00580260
add esp, 0xc
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x10]
push ecx
push 0
push 0
push edi
push ebx
mov dword [esp + 0x20], 0x207
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x47363a
push 0x103
lea edx, [esp + 0x10]
push edx
push esi
call fcn.0057a8a1
mov eax, dword [esp + 0x10]
add esp, 0xc
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ebx
mov ecx, dword [esp + 0x210]
xor ecx, esp
call fcn.005787fd
add esp, 0x214
ret
mov ecx, dword [esp + 4]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [esp + 0x214]
pop ebx
xor ecx, esp
xor eax, eax
call fcn.005787fd
add esp, 0x214
ret

Function at 0x473660
Capabilities:
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x59d678
mov eax, dword fs:[0]
push eax
push ecx
push ebx
mov eax, dword [0x5f13cc]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor ebx, ebx
cmp esi, ebx
mov dword [esp + 0x14], ebx
mov dword [esp + 8], edi
jne 0x47369a
push 0x80004005
call fcn.00404550
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [esp + 0x1c]
add eax, 1
add eax, eax
push eax
push esi
push 1
push ebx
push ecx
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x4736c0
mov ebx, 1
mov eax, ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x10
ret
Function at 0x473bc0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push esi
lea eax, [esp + 8]
push eax
mov eax, dword [esp + 0x18]
push ecx
mov ecx, dword [esp + 0x18]
lea edx, [esp + 0xc]
push edx
xor esi, esi
push esi
push eax
push ecx
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], 4
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
cmp dword [esp + 4], 4
jne 0x473bfc
cmp eax, esi
lea eax, [esi + 1]
je 0x473bfe
mov eax, esi
pop esi
add esp, 8
ret