joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42edef
Capabilities:
Get graphical window text

Disassembly:
push 4
mov eax, 0x5a4f2f
call fcn.0055c42f
mov edi, ecx
xor ebx, ebx
cmp dword [edi + 0x74], ebx
jne 0x42ee15
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x20]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x42ee6f
lea ecx, [ebp - 0x10]
call fcn.004123f0
mov edi, dword [edi + 0x74]
lea ecx, [ebp - 0x10]
push ecx
mov dword [ebp - 4], ebx
mov eax, dword [edi]
mov esi, dword [eax + 0x8c]
mov ecx, esi
call dword [0x5b59d0]
mov ecx, edi
call esi
mov esi, dword [ebp + 8]
push 0xffffffffffffffff
push dword [ebp - 0x10]
push dword [ebp + 0xc]
push esi
call fcn.00584eea
push eax
call fcn.00412720
add esp, 0x14
test esi, esi
je 0x42ee62
push esi
call fcn.00584268
pop ecx
mov ebx, eax
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
call fcn.004130d0
mov eax, ebx
call fcn.0055c3fd
ret 8

Function at 0x42f6a8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x84], ebx
test ebx, 0xffff0000
jne 0x42f6d3
cmp dword [edi + 0x80], 0
jne 0x42f6d3
movzx eax, bx
mov dword [edi + 0x80], eax
call fcn.004256b8
push 5
push ebx
mov esi, dword [eax + 0xc]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [ebp + 0xc]
mov ecx, edi
push eax
call fcn.0042f946
pop edi
pop esi
pop ebx
pop ebp
ret 8

Function at 0x42f700
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call fcn.004256b8
push 5
push dword [ebp + 8]
mov edi, dword [eax + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x42f733
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
push edi
push dword [ebp + 0xc]
mov ecx, ebx
push esi
call fcn.0042f746
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x448608
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov dword [ebp - 4], ecx
push edi
test esi, esi
jne 0x448621
call fcn.004256b8
mov esi, dword [eax + 0xc]
push 0x5bd420
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x448663
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x448663
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x448663
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push ebx
call fcn.0044866c
jmp 0x448665
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x4b1080
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
push edi
mov dword [ebp - 4], ebx
test byte [esi + 4], 1
mov edi, dword [esi + 0xc]
jne 0x4b10d6
push 5
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x4b10af
call fcn.004261b2
push edi
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
jne 0x4b10c4
call fcn.004261b2
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
test edi, edi
jne 0x4b10d6
call fcn.004261b2
call fcn.004256b8
cmp dword [eax + 0x3c], 0
je 0x4b10eb
push edi
mov ecx, ebx
call fcn.004b07a3
mov edi, eax
push dword [ebp + 0xc]
push edi
call fcn.004b12d1
mov ebx, eax
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0x88]
test ecx, ecx
je 0x4b1114
push ecx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, dword [ebp - 4]
and dword [eax + 0x88], 0
test ebx, ebx
je 0x4b1120
mov edi, ebx
mov dword [eax + 0x88], ebx
or dword [esi + 4], 1
mov dword [esi + 0xc], edi
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x521dfb
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
mov ecx, dword [esi + 4]
call fcn.0042e9cc
push 0xfffffffffffffff0
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowLongW]
push dword [ebp + 0xc]
and eax, 3
mov ecx, esi
cmp al, 3
je 0x521e37
call fcn.00522018
mov dword [esi + 0xc], 1
jmp 0x521e3c
call fcn.00522018
cmp dword [esi], 0
je 0x521e87
push edi
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov esi, dword [ebp + 0x10]
mov edi, eax
mov ecx, esi
test edi, edi
jle 0x521e62
push edi
call fcn.00424e9f
lea ecx, [edi + 1]
push ecx
jmp 0x521e71
push 0xff
call fcn.00413000
push 0x100
push eax
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push 0xffffffffffffffff
mov ecx, esi
call fcn.004168e5
pop edi
jmp 0x521eab
mov esi, dword [ebp + 0x10]
push dword [esi]
push 0xffffffffffffffff
push 0x14d
push dword [ebp - 4]
call dword [sym.imp.USER32.dll_SendMessageW]
cmp eax, 0xffffffff
jne 0x521eab
push dword [esi]
push dword [ebp - 4]
call fcn.00430f96
pop esi
leave
ret 0xc
Function at 0x521f6f
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
push edi
push dword [ebp + 0xc]
call fcn.00522018
cmp dword [esi], 0
mov edi, eax
mov dword [esi + 0xc], 1
je 0x521fb7
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [ebp + 0x10]
push eax
call fcn.00424e9f
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [ebp + 0x10]
push 0xffffffffffffffff
call fcn.004168e5
jmp 0x521fc2
mov eax, dword [ebp + 0x10]
push dword [eax]
push edi
call fcn.00430f96
pop edi
pop esi
pop ebp
ret 0xc

Function at 0x5243ba
Capabilities:
Get common file path

Disassembly:
push esi
mov esi, ecx
call fcn.005575f7
call fcn.0042570c
cmp dword [eax + 0x14], 0
jne 0x5243d5
mov ecx, esi
pop esi
jmp fcn.005236de
pop esi
ret

Function at 0x526d8c
Capabilities:
Check if file exists
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
call fcn.0058cb7b
pop ecx
test eax, eax
jne 0x526dce
push dword [ebp - 4]
push dword [ebp + 0xc]
push dword [ebp + 8]
push str._s_s_X.tmp
push dword [ebp + 0x14]
push dword [ebp + 0x10]
call fcn.00416ba4
add esp, 0x18
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x526d94
leave
ret
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
leave
ret

Function at 0x5550b5
Capabilities:
Get common file path
Get file system object information

Disassembly:
push esi
mov esi, ecx
call fcn.00416ed0
call fcn.0042570c
cmp dword [eax + 0x14], 0
jne 0x5550d0
mov ecx, esi
pop esi
jmp fcn.00554926
pop esi
ret
Function at 0x55ea40
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x618000]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov eax, 0xffff
push edi
mov edi, ecx
cmp ax, bx
jne 0x55ea65
xor eax, eax
jmp 0x55eac1
mov eax, dword [edi + 0x20]
push esi
mov ecx, dword [eax]
test ecx, ecx
je 0x55ea92
mov edx, dword [edi + 0x30]
mov esi, dword [edx]
lea eax, [ecx + esi*2]
cmp ecx, eax
jae 0x55ea92
lea ecx, [esi - 1]
mov dword [edx], ecx
mov edx, dword [edi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 2]
mov dword [edx], ecx
mov word [esi], bx
jmp 0x55eb48
cmp dword [edi + 0x4c], 0
je 0x55eabb
mov ecx, edi
call fcn.0055e6e2
mov eax, dword [edi + 0x38]
mov dword [ebp - 0x2c], eax
test eax, eax
jne 0x55ead1
push dword [edi + 0x4c]
push ebx
call fcn.0055e10a
pop ecx
test al, al
movzx eax, bx
pop ecx
jne 0x55eac0
mov eax, 0xffff
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0055c1db
leave
ret 4
mov word [ebp - 0x28], bx
mov eax, dword [eax]
mov esi, dword [eax + 0x1c]
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 4]
mov ecx, esi
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x26]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [edi + 0x40]
push eax
call dword [0x5b59d0]
mov ecx, dword [ebp - 0x2c]
call esi
sub eax, 0
je 0x55eb1b
sub eax, 1
je 0x55eb1b
dec eax
sub eax, 1
jne 0x55eabb
push dword [edi + 0x4c]
push dword [ebp - 0x28]
jmp 0x55eaad
mov esi, dword [ebp - 0x30]
lea eax, [ebp - 0x24]
sub esi, eax
je 0x55eb38
push dword [edi + 0x4c]
push esi
push 1
push eax
call fcn.00580aa5
add esp, 0x10
cmp esi, eax
jne 0x55eabb
lea eax, [ebp - 0x28]
mov byte [edi + 0x3e], 1
cmp dword [ebp - 0x34], eax
je 0x55eabb
mov ax, bx
jmp 0x55eac0
Function at 0x572340
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 0x10]
sub esp, 0x1c
test eax, eax
je 0x572487
mov edx, dword [esp + 0x24]
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x28]
push edi
cmp eax, 4
jb 0x572383
mov edi, eax
shr edi, 2
mov ecx, dword [edx]
sub eax, 4
xor ecx, dword [ebx]
add edx, 4
mov dword [esi], ecx
add ebx, 4
add esi, 4
sub edi, 1
jne 0x572368
mov dword [esp + 0x38], eax
push ebp
xor ebp, ebp
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], ebx
test eax, eax
je 0x572483
cmp eax, 0x40
jb 0x572468
lea ecx, [ebx - 1]
lea edi, [esi - 1]
add ecx, eax
add edi, eax
cmp esi, ecx
ja 0x5723b5
cmp edi, ebx
jae 0x572468
lea ecx, [edx - 1]
add ecx, eax
cmp esi, ecx
ja 0x5723c6
cmp edi, edx
jae 0x572468
mov ecx, eax
lea edi, [esi + 0x20]
mov eax, esi
mov dword [esp + 0x18], edi
sub eax, ebx
and ecx, 0xffffffc0
mov dword [esp + 0x20], eax
mov edi, edx
sub edi, ebx
mov dword [esp + 0x28], ecx
mov eax, edx
mov dword [esp + 0x1c], edi
mov edi, dword [esp + 0x18]
lea ecx, [ebx + 0x10]
sub eax, esi
mov esi, dword [esp + 0x20]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x1c]
mov ebx, dword [esp + 0x24]
movups xmm0, xmmword [ecx - 0x10]
lea ecx, [ecx + 0x40]
movups xmm1, xmmword [edx + ebp]
lea edi, [edi + 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x40]
movups xmmword [edi - 0x60], xmm1
movups xmm1, xmmword [eax + ecx - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x30]
movups xmmword [esi + ecx - 0x40], xmm1
movups xmm1, xmmword [ebx + edi - 0x40]
pxor xmm1, xmm0
movups xmm0, xmmword [ecx - 0x20]
movups xmmword [edi - 0x40], xmm1
movups xmm1, xmmword [edx + ebp + 0x30]
add ebp, 0x40
pxor xmm1, xmm0
movups xmmword [edi - 0x30], xmm1
cmp ebp, dword [esp + 0x28]
jb 0x572401
mov eax, dword [esp + 0x3c]
mov esi, dword [esp + 0x10]
mov ebx, dword [esp + 0x14]
mov dword [esp + 0x28], ebp
cmp ebp, eax
jae 0x572483
sub edx, ebx
lea edi, [ebx + ebp]
sub esi, ebx
sub eax, ebp
mov cl, byte [edi + edx]
lea edi, [edi + 1]
xor cl, byte [edi - 1]
mov byte [edi + esi - 1], cl
sub eax, 1
jne 0x572471
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x1c
ret

Function at 0x594ea3
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00594b54

Function at 0x594eae
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00594cde

Function at 0x59af58
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0059abd5
Function at 0x10073770
Capabilities:
Packed with generic packer

Disassembly:
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax], al
add byte [eax + 0x108247c], al
jne 0x10073917
pushal
mov esi, section.UPX1
lea edi, [esi - 0x63000]
push edi
or ebp, 0xffffffac
push ebx
sub byte [eax + 0x68a9090], dl
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100737ac
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x1007379b
mov eax, 1
add ebx, ebx
jne 0x100737be
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100737cf
jne 0x100737df
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100737df
dec eax
add ebx, ebx
jne 0x100737db
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x100737b3
xor ecx, ecx
sub eax, 3
jb 0x100737f7
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0x2a
je 0x10073869
sar eax, 1
mov ebp, eax
jmp 0x10073802
add ebx, ebx
jne 0x10073802
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x1007380f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x10073833
inc ecx
add ebx, ebx
jne 0x1007381f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x10073814
jne 0x10073830
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x10073814
add ecx, 2
cmp ebp, 0x372a6f00
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x10073853
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x10073844
jmp 0x3a3e62a1
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x10073853
add edi, ecx
jmp 0x3a3e62a1
pop esi
mov edi, esi
mov ecx, 0x81f
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x10073871
cmp byte [edi], 0xa
jne 0x10073871
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov eax, ebx
loop 0x10073876
lea edi, [esi + 0x70000]
mov eax, dword [edi]
or eax, eax
je 0x100738e5
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x732a0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x732f0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100738a3
mov ecx, edi
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x732f4]
or eax, eax
je 0x100738df
mov dword [ebx], eax
add ebx, 4
jmp 0x100738c0
popal
xor eax, eax
ret 0x500c
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x10073916
cmp al, 0xef
ja 0x10073909
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100738eb
and al, 0xf
sti
mov edi, 0x78b0445
add edi, 2
jmp 0x100738f8
popal
jmp 0x1000f098
Function at 0x4028b0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x571254
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebp
push esi
push edi
mov edi, dword [esp + 0x30]
mov esi, ecx
mov eax, dword [edi + 8]
push eax
call dword [sym.imp.GDI32.dll_GetROP2]
mov dword [esp + 0xc], eax
mov al, byte [esi + 0x10]
test al, al
push 8
je 0x402912
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x28], 0
je 0x40293b
push 0xffffff
push 0xa
push 0
mov ecx, eax
call sub.MFC42.DLL_CPen::CPen
jmp 0x40293d
call sub.MFC42.DLL_operatornew
add esp, 4
mov dword [esp + 0x30], eax
test eax, eax
mov dword [esp + 0x28], 1
je 0x40293b
mov ecx, dword [esi + 0x14]
push ecx
push 0xa
push 0
mov ecx, eax
call sub.MFC42.DLL_CPen::CPen
jmp 0x40293d
xor eax, eax
push eax
mov ecx, edi
mov dword [esp + 0x2c], 0xffffffff
call sub.MFC42.DLL_CDC::SelectObject_1
mov ebp, eax
mov al, byte [esi + 0x10]
test al, al
je 0x40295f
push 7
mov ecx, edi
call sub.MFC42.DLL_CDC::SetROP2
mov eax, dword [esp + 0x38]
mov edx, eax
imul edx, eax
mov eax, dword [esp + 0x34]
mov ecx, eax
imul ecx, eax
add edx, ecx
mov eax, dword [esi + 0xc]
mov dword [esp + 0x30], edx
cmp eax, 1
fild dword [esp + 0x30]
fsqrt
fild dword [esp + 0x34]
fdiv st(1)
fmul dword [0x69adc8]
fstp qword [esp + 0x10]
fild dword [esp + 0x38]
fdiv st(1)
fmul dword [0x69adc8]
fstp qword [esp + 0x34]
fstp st(0)
je 0x4029ac
cmp eax, 2
jne 0x4029f1
fld qword [esp + 0x10]
push ebx
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x38]
mov ebx, eax
call sub.MSVCRT.dll__ftol
push eax
lea edx, [esp + 0x20]
push ebx
push edx
mov ecx, edi
call sub.MFC42.DLL_CDC::MoveTo
fld qword [esp + 0x14]
fchs
call sub.MSVCRT.dll__ftol
fld qword [esp + 0x38]
fchs
mov ebx, eax
call sub.MSVCRT.dll__ftol
push eax
push ebx
mov ecx, edi
call sub.MFC42.DLL_CDC::LineTo
pop ebx
mov al, byte [esi + 0x10]
test al, al
je 0x402a04
mov eax, dword [esp + 0xc]
mov ecx, edi
push eax
call sub.MFC42.DLL_CDC::SetROP2
push ebp
mov ecx, edi
call sub.MFC42.DLL_CDC::SelectObject_1
pop edi
pop esi
test eax, eax
pop ebp
je 0x402a1c
mov edx, dword [eax]
push 1
mov ecx, eax
call dword [edx + 4]
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
Function at 0x406280
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 8
mov cx, word [0x5d1e68]
mov eax, dword [str.abcdef]
mov dl, byte [0x5d1e6a]
push esi
mov esi, dword [esp + 0x10]
mov word [esp + 8], cx
xor ecx, ecx
mov dword [esp + 4], eax
mov cl, byte [esi]
mov eax, 0x66666667
mov byte [esp + 0xa], dl
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add edx, eax
mov eax, dword [esp + 0x14]
mov dword [eax], edx
mov eax, dword [esp + 0x2c]
lea edx, [edx + edx*4]
shl edx, 1
sub ecx, edx
mov edx, dword [esp + 0x18]
mov dword [eax], ecx
xor ecx, ecx
mov cl, byte [esi + 1]
mov eax, 0xd1b71759
mov dword [edx], ecx
xor ecx, ecx
mov cx, word [esi + 2]
mul ecx
shr edx, 0xd
js 0x4062f1
cmp edx, 5
jle 0x4062f3
xor edx, edx
mov eax, edx
neg eax
shl eax, 2
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 4
add ecx, eax
cmp ecx, 0xa
jae 0x40631d
movsx edx, byte [esp + edx + 4]
push edx
push ecx
push str.000_u_c
jmp 0x40634b
cmp ecx, 0x64
jae 0x406330
movsx edx, byte [esp + edx + 4]
push edx
push ecx
push str.00_u_c
jmp 0x40634b
movsx edx, byte [esp + edx + 4]
cmp ecx, 0x3e8
push edx
push ecx
jae 0x406346
push str.0_u_c
jmp 0x40634b
push str._u_c
mov eax, dword [esp + 0x28]
push eax
call dword [sym.imp.MSVCRT.dll_sprintf]
mov edx, dword [esp + 0x30]
xor ecx, ecx
mov cl, byte [esi + 4]
xor eax, eax
mov dword [edx], ecx
mov ecx, dword [esp + 0x34]
mov al, byte [esi + 5]
add esp, 0x10
mov dword [ecx], eax
mov eax, dword [esp + 0x28]
xor edx, edx
mov dx, word [esi + 6]
pop esi
mov dword [eax], edx
add esp, 8
ret 0x20
Function at 0x406c30
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x571766
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 1
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x13c]
lea eax, [esp + 0x10]
mov byte [esp + 0x130], 2
push eax
push esi
push edi
call fcn.00406740
add esp, 0xc
test al, al
je 0x406d6f
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406d18
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push str.Install
push eax
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406d08
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.004ea8a0
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406dbc
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
push esi
lea eax, [esp + 0xc]
push str.Error_in_ReadInstallFolderFromRegistry:_n_nCan_not_query_data_from_registry__code_ld_._nMust_be_able_to_query_data_from:_n_n
push eax
mov byte [esp + 0x13c], 3
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea ecx, [esp + 0x10]
push ecx
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::operator_2
mov edx, dword [esp + 8]
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov byte [esp + 0x130], 2
lea ecx, [esp + 8]
jmp 0x406db7
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
push esi
push edi
lea eax, [esp + 0x10]
push str.Error_in_ReadInstallFolderFromRegistry:_n_nCan_not_get_registry_string._nprogram_d___version_d
push eax
mov byte [esp + 0x140], 4
call sub.MFC42.DLL_CString::Format
mov ecx, dword [esp + 0x18]
add esp, 0x10
push 0
push 0
push ecx
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov byte [esp + 0x130], 2
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x138]
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x130], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret
Function at 0x406e20
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x5717c1
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x120
push esi
push edi
lea ecx, [esp + 0xc]
mov dword [esp + 0x1c], 0
call sub.MFC42.DLL_CString::CString_4
lea ecx, [esp + 0x10]
mov dword [esp + 0x130], 1
mov dword [esp + 0x14], 0
call sub.MFC42.DLL_CString::CString_4
mov esi, dword [esp + 0x140]
mov edi, dword [esp + 0x13c]
lea eax, [esp + 0x10]
mov byte [esp + 0x130], 2
push eax
push esi
push edi
call fcn.00406740
add esp, 0xc
test al, al
je 0x406fb1
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x14]
push ecx
push 1
push 0
push edx
push OleUIInsertObjectA
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x406f5a
lea eax, [esp + 0x20]
lea ecx, [esp + 0x24]
push eax
mov eax, dword [esp + 0x18]
lea edx, [esp + 0x1c]
push ecx
push edx
push esi
push str.License
push eax
mov dword [esp + 0x38], 0x104
mov dword [esp + 0x30], 1
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x406f4a
lea ecx, [esp + 0x24]
push ecx
lea ecx, [esp + 0x10]
call fcn.004ea8a0
mov al, byte [esp + 0x144]
test al, al
je 0x406f4a
push 0x5c
lea ecx, [esp + 0x10]
call sub.MFC42.DLL_CString::ReverseFind
cmp eax, 0xffffffff
je 0x406f4a
inc eax
lea edx, [esp + 8]
push eax
push edx
lea ecx, [esp + 0x14]
call sub.MFC42.DLL_CString::Left
push eax
lea ecx, [esp + 0x10]
mov byte [esp + 0x134], 3
call sub.MFC42.DLL_CString::operator_1
lea ecx, [esp + 8]
mov byte [esp + 0x130], 2
call sub.MFC42.DLL_CString::CString
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x406ffe
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
push esi
lea ecx, [esp + 0xc]
push str.Error_in_ReadLicenseFolderFromRegistry:_n_nCan_not_query_data_from_registry__code_ld_._nMust_be_able_to_query_data_from:_n_n
push ecx
mov byte [esp + 0x13c], 4
call sub.MFC42.DLL_CString::Format
add esp, 0xc
lea edx, [esp + 0x10]
lea ecx, [esp + 8]
push edx
call sub.MFC42.DLL_CString::operator_2
mov eax, dword [esp + 8]
push 0
push 0
push eax
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov byte [esp + 0x130], 2
lea ecx, [esp + 8]
jmp 0x406ff9
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString_4
push esi
push edi
lea ecx, [esp + 0x10]
push str.Error_in_ReadLicenseFolderFromRegistry:_n_nCan_not_get_registry_string._nprogram_d___version_d
push ecx
mov byte [esp + 0x140], 5
call sub.MFC42.DLL_CString::Format
mov edx, dword [esp + 0x18]
add esp, 0x10
push 0
push 0
push edx
call sub.MFC42.DLL_AfxMessageBox_1
lea ecx, [esp + 0xc]
call sub.MFC42.DLL_CString::Empty
mov byte [esp + 0x130], 2
lea ecx, [esp + 8]
call sub.MFC42.DLL_CString::CString
mov esi, dword [esp + 0x138]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call sub.MFC42.DLL_CString::CString_3
mov dword [esp + 0x1c], 1
lea ecx, [esp + 0x10]
mov byte [esp + 0x130], 1
call sub.MFC42.DLL_CString::CString
lea ecx, [esp + 0xc]
mov byte [esp + 0x130], 0
call sub.MFC42.DLL_CString::CString
mov ecx, dword [esp + 0x128]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x12c
ret