joyce8/EMBER2024-capa huggingface dataset:
Function at 0x431770
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x472dc8
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x4317a9
inc eax
mov dword [esi + 0x10], eax
jmp 0x4318bc
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x4317bd
mov eax, 0xffffffc7
jmp 0x4318be
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x4317ce
cmp dword [esi + 8], eax
jne 0x4317bd
cmp dword [esi + 8], eax
jne 0x4317e7
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x4317e7
mov eax, 0xffffffc7
jmp 0x4318be
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x4317fb
push eax
mov ecx, ebx
call fcn.00430fa0
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.004014f0
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x43182c
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401510
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.00430710
test eax, eax
mov dword [esp + 0x38], eax
je 0x43185f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x488f18
call fcn.004016f0
mov eax, dword [esp + 0x38]
jmp 0x4318be
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.004315d0
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x4318a3
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.004315f0
mov esi, eax
test esi, esi
jne 0x4318d3
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.004315d0
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x431875
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x488f18
call fcn.004016f0
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x488f18
call fcn.004016f0
mov eax, esi
jmp 0x4318be

Function at 0x434b30
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x434b90
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x434b90
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x434b90
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x434b90
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x434bd0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x43ad20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473468
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0046a39f
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.0043a6c0
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0046a2cd
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.00466ab4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.00466ab4
push 1
push 0
push 0
mov ecx, esi
call fcn.00466a5c
push 1
push 0
push 1
mov ecx, esi
call fcn.00466a5c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046a411
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x43aea0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x473488
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0046a39f
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.0043a6c0
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0046a2cd
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x43af64
cmp dword [esp + 0x40], 1
jne 0x43af62
cmp ecx, eax
jge 0x43af64
mov eax, ecx
cmp eax, 0xc8
jge 0x43af70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.0043ad20
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0046a411
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x43b6f0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4734f3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00464ed4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0046a647
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0046bb9f
test eax, eax
je 0x43b80c
mov ecx, dword [esp + 0x3c]
call fcn.0046a674
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x43b7d0
push edi
mov ecx, esi
call fcn.00467c38
mov ecx, esi
call fcn.0043b970
cmp dword [esp + 0x38], 1
jne 0x43b805
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.00467da2
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43e220
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43e253
push esi
call fcn.00441310
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43e24c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43e2d9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43e2c2
mov eax, dword [esi + 8]
test eax, eax
je 0x43e277
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43e2be
cmp eax, 2
je 0x43e2c2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43e26a
cmp eax, 3
je 0x43e29d
cmp eax, 1
jne 0x43e26a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43e26a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43e26a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043e300
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43e2e8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043e300
add esp, 4
pop esi
ret

Function at 0x465cca
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x465d02
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.00463d81
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00463d59
jmp 0x465d0e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4673bc
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x4673fe
call fcn.0046d0ab
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4673fe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4673f5
xor eax, eax
jmp 0x467406
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0046740c
pop edi
pop esi
pop ebx
ret 4

Function at 0x46d5db
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x46d609
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46d627
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0046d541
jmp 0x46d627
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46d627
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0046d541
test edi, edi
mov eax, edi
jne 0x46d611
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x3dfa0910
nop
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data_1
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x4dc02d9d
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x401219

Function at 0x433000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x40de38
nop
nop
mov ecx, 0x42af1823
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x43304e
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x433024
nop
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x4304d8
nop
mov ecx, 0x45f556af
nop
nop
test eax, eax
nop
nop
nop
je 0x433084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43306c
nop
nop
nop
nop
nop
popal
nop
nop
jmp 0x431219
Function at 0x401350
Capabilities:
Resolve dns

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x20
push esi
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
test esi, esi
jne 0x401375
mov eax, 0x40ec54
pop esi
add esp, 0x20
ret
mov ecx, dword [esi + 0xc]
push ebx
xor edx, edx
xor ebx, ebx
mov eax, dword [ecx]
xor ecx, ecx
push ebp
push edi
mov cl, byte [eax + 1]
mov dl, byte [eax]
mov bl, byte [eax + 3]
mov esi, ecx
xor ecx, ecx
lea edi, [esp + 0x11]
mov cl, byte [eax + 2]
xor eax, eax
mov ebp, ecx
mov ecx, 7
mov byte [esp + 0x10], 0
push ebx
rep stosd dword es:[edi], eax
push ebp
push esi
stosw word es:[edi], ax
push edx
lea edx, [esp + 0x20]
push str._d._d._d._d
push edx
stosb byte es:[edi], al
call dword [sym.imp.MSVCRT.dll_sprintf]
lea edi, [esp + 0x28]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
push ecx
call sub.MFC42u.DLL_operatornew
mov edx, eax
lea edi, [esp + 0x2c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0x1c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
mov eax, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop ebp
pop ebx
pop esi
add esp, 0x20
ret
Function at 0x405e50
Capabilities:
Print debug messages

Disassembly:
push ebx
push esi
push edi
call fcn.00405e10
test eax, eax
je 0x405ebf
mov esi, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
push esi
push 0
push 0
push ecx
push 0
call eax
mov ebx, dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
xor edx, edx
test eax, eax
setge dl
push esi
mov edi, edx
call ebx
test edi, edi
je 0x405ebf
mov edi, dword [sym.imp.MSVCRT.dll_wcscat]
push ebp
push 0x40e054
push esi
call edi
add esp, 8
push esi
call ebx
mov ebp, dword [esp + 0x18]
push ebp
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x405eb2
push ebp
push esi
call edi
add esp, 8
push esi
call ebx
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
ret
pop edi
pop esi
xor eax, eax
pop ebx
ret

Function at 0x405ed0
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x800
push ebp
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str.DGOfflineInfo.Lic
push 0x15
call sym.DGClientSet.exe_int___cdecl_GetSpecFolderPath_int__unsigned_short_int_const___unsigned_short_int__
lea ecx, [esp + 0x14]
push 0x40e5cc
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x405f6b
push ebx
push esi
push 1
push 0x5efc
call dword [sym.imp.MSVCRT.dll_calloc]
mov esi, dword [esp + 0x81c]
mov ebx, eax
mov ecx, 0x17bf
mov edi, ebx
push str.DocGuarder_Encrypt_System_Made_in_HangZhou_2006_8_29
push 0x5efc
rep movsd dword es:[edi], dword [esi]
push ebx
call fcn.004088d0
push ebp
push 1
push 0x5efc
push ebx
call dword [sym.imp.MSVCRT.dll_fwrite]
push ebp
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x2c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x800
ret

Function at 0x4064a0
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x800
push ebp
push edi
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0xa]
mov word [esp + 8], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 8]
push eax
push str.DGOfflineInfo.Lic
push 0x15
call sym.DGClientSet.exe_int___cdecl_GetSpecFolderPath_int__unsigned_short_int_const___unsigned_short_int__
lea ecx, [esp + 0x14]
push 0x40e6c8
push ecx
call dword [sym.imp.MSVCRT.dll__wfopen]
mov ebp, eax
add esp, 0x14
test ebp, ebp
je 0x40653b
push ebx
push esi
push 1
push 0x5efc
call dword [sym.imp.MSVCRT.dll_calloc]
push ebp
mov ebx, eax
push 1
push 0x5efc
push ebx
call dword [sym.imp.MSVCRT.dll_fread]
push str.DocGuarder_Encrypt_System_Made_in_HangZhou_2006_8_29
push 0x5efc
push ebx
call fcn.004088d0
mov edi, dword [esp + 0x838]
mov ecx, 0x17bf
mov esi, ebx
push ebp
rep movsd dword es:[edi], dword [esi]
call dword [sym.imp.MSVCRT.dll_fclose]
push ebx
call dword [sym.imp.MSVCRT.dll_free]
add esp, 0x2c
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x800
ret
Function at 0x406550
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x40a998
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc10
push ebx
push esi
push edi
lea eax, [ebp - 0x10]
xor ebx, ebx
push eax
push 0x20019
push ebx
push str.SOFTWAREDocGuarder
push connect
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
cmp eax, ebx
jne 0x4066f8
mov cx, word [0x40ec58]
xor eax, eax
mov word [ebp - 0x81c], cx
mov ecx, 0x1ff
lea edi, [ebp - 0x81a]
mov esi, dword [ebp - 0x10]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea edx, [ebp - 0x18]
lea eax, [ebp - 0x81c]
push edx
lea ecx, [ebp - 0x14]
push eax
push ecx
push ebx
push 0x40e4cc
push esi
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], 0x400
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4066ed
lea edx, [ebp - 0x81c]
push edx
call dword [sym.imp.MSVCRT.dll_wcslen]
add esp, 4
test eax, eax
je 0x4066ed
mov ecx, 0xff
xor eax, eax
lea edi, [ebp - 0xc1b]
mov byte [ebp - 0xc1c], bl
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenW]
stosb byte es:[edi], al
lea eax, [ebp - 0x81c]
test eax, eax
jne 0x406637
mov dword [ebp - 0x14], 0
jmp 0x406674
lea ecx, [ebp - 0x81c]
push ecx
call ebx
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040a0f0
mov esi, esp
push 0
push 0
push edi
push esi
lea edx, [ebp - 0x81c]
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x14], esi
mov esi, dword [ebp - 0x10]
lea eax, [ebp - 0x81c]
test eax, eax
jne 0x406682
xor edx, edx
jmp 0x4066be
lea ecx, [ebp - 0x81c]
push ecx
call ebx
lea edi, [eax + eax + 2]
mov eax, edi
add eax, 3
and al, 0xfc
call fcn.0040a0f0
mov esi, esp
push 0
push 0
push edi
push esi
lea edx, [ebp - 0x81c]
push 0xffffffffffffffff
push edx
push 0
push 0
mov byte [esi], 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov edx, esi
mov esi, dword [ebp - 0x10]
mov edi, dword [ebp - 0x14]
lea eax, [ebp - 0xc1c]
push eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
push edx
call fcn.00408610
add esp, 0xc
lea ecx, [ebp - 0xc1c]
push ecx
mov ecx, dword [ebp + 8]
call sub.MFC42u.DLL_CString::operator_2
xor ebx, ebx
cmp esi, ebx
je 0x4066f8
push esi
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 0xc]
lea esp, [ebp - 0xc28]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x406720
Capabilities:
Access peb ldr_data
Encode data using xor

Disassembly:
push 0xffffffffffffffff
push 0x40a9c2
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push esi
push edi
push ecx
lea eax, [esp + 0x38]
mov ecx, esp
mov dword [esp + 0x10], esp
push eax
mov dword [esp + 0x30], 0
call sub.MFC42u.DLL_CString::CString
call fcn.00406710
push 0x10
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], edx
call sub.MFC42u.DLL_operatornew
add esp, 8
mov dword [esp + 0xc], eax
test eax, eax
mov byte [esp + 0x28], 1
je 0x406783
mov ecx, eax
call sub.MFC42u.DLL_CFile::CFile
mov esi, eax
jmp 0x406785
xor esi, esi
mov eax, dword [esp + 0x30]
mov edx, dword [esi]
push 0
push 0x42
push eax
mov ecx, esi
mov byte [esp + 0x34], 0
call dword [edx + 0x28]
test eax, eax
jne 0x4067c3
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00409d30
xor eax, eax
mov ecx, dword [esp + 0x20]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
add esp, 0x20
ret
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x38]
mov ebx, eax
push ebx
call sub.MFC42u.DLL_operatornew
add esp, 4
mov edi, eax
mov eax, dword [esi]
mov ecx, esi
push 0
push 0
call dword [eax + 0x30]
mov edx, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [edx + 0x3c]
xor eax, eax
test ebx, ebx
jle 0x406804
mov cl, byte [esp + 0x18]
mov dl, byte [eax + edi]
xor cl, bl
xor dl, cl
mov byte [eax + edi], dl
inc eax
cmp eax, ebx
jl 0x4067f1
mov edx, dword [esi]
push 0
push 0
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esi]
push ebx
push edi
mov ecx, esi
call dword [eax + 0x40]
push edi
call sub.MFC42u.DLL_operatordelete
mov ecx, dword [str.HTSO]
mov dl, byte [0x40e6d4]
add esp, 4
mov dword [esp + 0x10], ecx
mov byte [esp + 0x14], dl
xor eax, eax
mov cl, byte [esp + 0x18]
mov bl, byte [esp + eax + 0x10]
xor bl, cl
mov byte [esp + eax + 0x10], bl
inc eax
cmp eax, 5
jl 0x406837
mov edx, dword [esi]
push 2
push 0
mov ecx, esi
call dword [edx + 0x30]
mov eax, dword [esi]
lea ecx, [esp + 0x10]
push 5
push ecx
mov ecx, esi
call dword [eax + 0x40]
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x54]
test esi, esi
je 0x406878
mov eax, dword [esi]
push 1
mov ecx, esi
call dword [eax + 4]
lea ecx, [esp + 0x34]
mov dword [esp + 0x28], 0xffffffff
call fcn.00409d30
mov ecx, dword [esp + 0x20]
pop edi
pop esi
mov eax, 1
mov dword fs:[0], ecx
pop ebx
add esp, 0x20
ret