joyce8/EMBER2024-capa huggingface dataset:
Function at 0x445b20
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482808
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.0047b2a8
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00445480
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.0047b1d6
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.00477a97
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.00477a97
push 1
push 0
push 0
mov ecx, esi
call fcn.00477a3f
push 1
push 0
push 1
mov ecx, esi
call fcn.00477a3f
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0047b31a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x445ca0
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x482828
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.0047b2a8
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00445480
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.0047b1d6
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 0x445d64
cmp dword [esp + 0x40], 1
jne 0x445d62
cmp ecx, eax
jge 0x445d64
mov eax, ecx
cmp eax, 0xc8
jge 0x445d70
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00445b20
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.0047b31a
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x446570
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4828d3
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.00475eb7
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_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.0047b550
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0047ca6c
test eax, eax
je 0x44668c
mov ecx, dword [esp + 0x3c]
call fcn.0047b57d
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 0x446650
push edi
mov ecx, esi
call fcn.00478bde
mov ecx, esi
call fcn.00446830
cmp dword [esp + 0x38], 1
jne 0x446685
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.00478d19
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 0x448880
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x4488b3
push esi
call fcn.00456c20
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x4488ac
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 0x448939
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x448922
mov eax, dword [esi + 8]
test eax, eax
je 0x4488d7
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 0x44891e
cmp eax, 2
je 0x448922
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x4488ca
cmp eax, 3
je 0x4488fd
cmp eax, 1
jne 0x4488ca
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 0x4488ca
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x4488ca
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00448960
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x448948
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00448960
add esp, 4
pop esi
ret

Function at 0x4491d0
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x4491f1
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x4491f1
mov eax, dword [eax + 0x44]
test eax, eax
je 0x4491f1
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]

Function at 0x476cad
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x476ce5
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.00474d64
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00474d3c
jmp 0x476cf1
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x47839b
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 0x4783dd
call fcn.0047de57
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4783dd
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4783d4
xor eax, eax
jmp 0x4783e5
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004783eb
pop edi
pop esi
pop ebx
ret 4
Function at 0x47e387
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 0x47e3b5
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x47e3d3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.0047e2ed
jmp 0x47e3d3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x47e3d3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.0047e2ed
test edi, edi
mov eax, edi
jne 0x47e3bd
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x4afed0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x6d000]
push edi
or ebp, 0xffffffff
jmp 0x4afef2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x4afef9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4afee8
mov eax, 1
add ebx, ebx
jne 0x4aff0b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x4aff1c
jne 0x4aff3b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aff3b
dec eax
add ebx, ebx
jne 0x4aff28
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x4aff00
add ebx, ebx
jne 0x4aff37
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x4aff8d
xor ecx, ecx
sub eax, 3
jb 0x4aff53
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4affc2
sar eax, 1
mov ebp, eax
jmp 0x4aff5e
add ebx, ebx
jne 0x4aff5e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aff2c
inc ecx
add ebx, ebx
jne 0x4aff6c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4aff2c
add ebx, ebx
jne 0x4aff79
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x4aff6e
jne 0x4aff8a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x4aff6e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x4affac
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x4aff9e
jmp 0x4afeee
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x4affac
add edi, ecx
jmp 0x4afeee
pop esi
mov edi, esi
mov ecx, 0x370c
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4affca
cmp byte [edi], 0x4a
jne 0x4affca
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 al, bl
loop 0x4affcf
lea edi, [esi + 0xab000]
mov eax, dword [edi]
or eax, eax
je 0x4b0047
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xb1ce8]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xb1e3c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4afffc
mov ecx, edi
jns 0x4b002b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0xb1e40]
or eax, eax
je 0x4b0041
mov dword [ebx], eax
add ebx, 4
jmp 0x4b0019
call dword [esi + 0xb1e50]
mov ebp, dword [esi + 0xb1e44]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x4b007b
sub esp, 0xffffff80
jmp 0x417850
Function at 0x401ee2
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x411280]
jne 0x401eec
repz ret
jmp fcn.00404369

Function at 0x4025e7
Capabilities:
Accept command line arguments
Parse pe header

Disassembly:
push 0x14
push 0x40f530
call fcn.00403770
mov eax, 0x5a4d
cmp word [0x400000], ax
jne 0x4024e7
mov eax, dword [0x40003c]
cmp dword [eax + 0x400000], 0x4550
jne 0x4024e7
mov ecx, 0x10b
cmp word [eax + 0x400018], cx
jne 0x4024e7
cmp dword [eax + 0x400074], 0xe
jbe 0x4024e7
xor ecx, ecx
cmp dword [eax + 0x4000e8], ecx
setne cl
mov dword [ebp - 0x1c], ecx
jmp 0x4024eb
and dword [ebp - 0x1c], 0
push 1
call fcn.00408afe
pop ecx
test eax, eax
jne 0x4024ff
push 0x1c
call fcn.00408afe
pop ecx
call fcn.00405287
test eax, eax
jne 0x402510
push 0x10
call fcn.00408afe
pop ecx
call fcn.00405952
and dword [ebp - 4], 0
call fcn.004032ff
test eax, eax
jge 0x40252a
push 0x1b
call fcn.00408afe
pop ecx
call dword [sym.imp.kernel32.dll_GetCommandLineA]
mov dword [0x412ba0], eax
call fcn.00408afe
mov dword [0x41203c], eax
call fcn.00408afe
test eax, eax
jge 0x402550
push 8
call fcn.00408afe
pop ecx
call fcn.00405fde
test eax, eax
jge 0x402561
push 9
call fcn.00408afe
pop ecx
push 1
call fcn.00408afe
pop ecx
test eax, eax
je 0x402574
push eax
call fcn.00408afe
pop ecx
mov eax, dword [0x412018]
mov dword [0x41201c], eax
push eax
push dword [0x412010]
push dword [0x41200c]
call main
add esp, 0xc
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x1c], 0
jne 0x4025a2
push eax
call fcn.00408afe
call fcn.00402400
jmp 0x4025d7
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [ebp - 0x20]
call fcn.004037b5
ret
call fcn.00408afe
jmp 0x402495

Function at 0x408afe
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
pushal
call 0x408b0d
pop dword [ebp - 0x28]
mov eax, 0x408b0d
sub dword [ebp - 0x28], eax
push 0x40
push 0x1000
push 0x36da8
push 0
mov eax, 0x460b47bc
sub eax, 0x45ca66e4
add eax, dword [ebp - 0x28]
call dword [eax]
mov ecx, 0x5bcf1008
sub ecx, 0x5bced16c
xor edx, edx
add edx, eax
mov edi, 0xcc74edb8
add edi, 0x33cc4e0c
add edi, dword [ebp - 0x28]
mov esi, 0x1f5ee6f3
add esi, 0x3a8ab64f
mov dword [ebp - 0x24], 0xb312f728
mov ebx, dword [edi]
add dword [ebp - 0x18], esi
xor ebx, esi
sub dword [ebp - 4], 0x7b7d15e9
mov dword [edx], ebx
add edx, 4
add edi, 4
loop 0x408b69
add eax, 0x12e5ca8c
add eax, 0xed1b22b7
xor ebx, ebx
add ebx, eax
add eax, 0x5729502b
sub eax, 0x57295026
mov ecx, 0x400000
add ecx, dword [ebp - 0x28]
call ebx
leave
ret
Function at 0x401690
Capabilities:
Extract resource via kernel32 functions
Write file on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x218
mov eax, dword [0x435080]
xor eax, esp
mov dword [esp + 0x214], eax
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
push 0x43011c
mov esi, eax
push 0x65
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x401740
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
push edi
push esi
mov dword [esp + 0x10], eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
push ebx
push str._sminidownload.exe
mov edi, eax
lea eax, [esp + 0x18]
push 0x104
push eax
call fcn.004110ab
add esp, 0x10
push 0
push 0x20
push 2
push 0
push 7
push 0xc0000000
lea ecx, [esp + 0x28]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401740
mov eax, dword [esp + 8]
push 0
lea edx, [esp + 0x10]
push edx
push eax
push edi
push esi
mov dword [esp + 0x20], 0
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
test eax, eax
jne 0x401756
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x214]
xor ecx, esp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x10]
call fcn.004030e0
test eax, eax
je 0x401740
push 3
call fcn.00401790
mov ecx, dword [esp + 0x220]
add esp, 4
pop edi
pop esi
xor ecx, esp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
Function at 0x402bd0
Capabilities:
Accept command line arguments
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x6a8
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
mov esi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x28c]
push eax
push 0x104
call esi
push 0x7e
xor ebx, ebx
lea edx, [ebp - 0x82]
xor ecx, ecx
push ebx
push edx
mov word [ebp - 0x84], cx
call fcn.004114f0
push 0x80
lea edi, [ebp - 0x84]
call fcn.00402d40
add esp, 0x10
test eax, eax
je 0x402ca3
push 2
call fcn.00401790
add esp, 4
lea eax, [ebp - 0x4a0]
push eax
push 0x104
mov dword [ebp - method.UtilNetwork::CBindStatusCallback.virtual_0], vtable.UtilNetwork::CBindStatusCallback.0
mov dword [ebp - 0x294], ebx
mov dword [ebp - 0x290], ebx
call esi
push 0x104
lea ecx, [ebp - 0x4a0]
push ecx
lea edx, [ebp - 0x6a8]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
push 0x430ccc
lea eax, [ebp - 0x6a8]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea esi, [ebp - 0x6a8]
call fcn.0040f690
test eax, eax
je 0x402cae
mov ecx, esi
push ecx
call fcn.0040f720
jmp 0x402cae
lea ebx, [ebp - 0x28c]
call fcn.00401690
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
mov eax, 1
pop ebx
call fcn.00410f26
mov esp, ebp
pop ebp
ret 0x10

Function at 0x402cd0
Capabilities:
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 4]
push eax
push esi
lea ecx, [ebp - 8]
push ecx
push str.InstallPath
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 4], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x402d2f
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
push esi
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouDownLoad
push esi
push str._s_s
push 0x104
push esi
call fcn.004110ab
add esp, 0x14
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x402d40
Capabilities:
Check if file exists
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x1284
call fcn.00418180
mov eax, dword [0x435080]
xor eax, esp
mov dword [esp + 0x1280], eax
mov eax, dword [ebp + 8]
push esi
lea ecx, [esp + 8]
push ecx
push edi
lea edx, [esp + 0x14]
push edx
push str.Version
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [esp + 0x20], eax
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x402e11
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x1082]
push ecx
mov word [esp + 0x1084], ax
call fcn.004114f0
add esp, 0xc
lea esi, [esp + 0x1078]
call fcn.00402cd0
push str.DlgHandler.dll
mov edx, esi
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
mov eax, esi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402e29
mov ecx, esi
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00406370
test edi, edi
je 0x402e29
movzx eax, word [esp + 0x26]
movzx ecx, word [esp + 0x24]
movzx edx, word [esp + 0x22]
push eax
movzx eax, word [esp + 0x24]
push ecx
push edx
push eax
push str._d._d._d._d
push 0x104
push edi
call fcn.004110ab
add esp, 0x1c
mov eax, 1
pop esi
mov ecx, dword [esp + 0x1280]
xor ecx, esp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
mov ecx, dword [esp + 0x1284]
pop esi
xor ecx, esp
xor eax, eax
call fcn.00410f26
mov esp, ebp
pop ebp
ret

Function at 0x402e40
Capabilities:
Check if file exists
Query environment variable
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1288
call fcn.00418180
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x216]
push ecx
mov word [ebp - 0x218], ax
call fcn.004114f0
add esp, 0xc
lea edx, [ebp - 0x1284]
push edx
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp - 8]
push ecx
push str.InstallPath
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x1284], 0x104
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x402ee8
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x104
lea edx, [ebp - 0x218]
push edx
push str.PROGRAMFILES
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
push str.SogouDownLoad
lea eax, [ebp - 0x218]
push eax
push str._s_s
mov ecx, eax
push 0x104
push ecx
call fcn.004110ab
add esp, 0x14
push str.DownLoadDlg.exe
lea edx, [ebp - 0x218]
push edx
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x402f5b
lea ecx, [ebp - 0x218]
push ecx
lea edx, [ebp - 0x1280]
push edx
call fcn.00406370
mov eax, dword [ebp - 0x1270]
mov ecx, dword [ebp - 0x126c]
mov dword [ebp - 0xc], eax
movzx edx, word [ebp - 0xa]
movzx eax, ax
shl eax, 8
add eax, edx
mov dword [ebp - 8], ecx
movzx edx, word [ebp - 6]
shl eax, 8
movzx ecx, cx
add eax, ecx
shl eax, 8
add eax, edx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
xor eax, eax
call fcn.00410f26
mov esp, ebp
pop ebp
ret
Function at 0x402f70
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x42cb08
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x435080]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
push eax
push esi
lea ecx, [ebp - 0x14]
push ecx
push str.HWID
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x10], edi
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x402fce
mov eax, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
test esi, esi
je 0x403004
push edi
push 0
push esi
call fcn.004114f0
add esp, 0xc
mov dword [ebp - 0x14], vtable.CQMSeqIDGen.0
push esi
mov dword [ebp - 4], 0
call fcn.00408c90
movzx eax, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x403020
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
mov eax, dword [0x435080]
xor eax, ebp
mov dword [ebp - 4], eax
xor eax, eax
push 0x206
push eax
lea ecx, [ebp - 0x20a]
push ecx
mov word [ebp - 0x20c], ax
call fcn.004114f0
add esp, 0xc
lea edx, [ebp - 0x210]
push edx
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x214]
push ecx
push 0x430474
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
mov dword [ebp - 0x210], 0x208
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
je 0x4030cb
push str.x400443_18
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.SHLWAPI.dll_StrCpyW]
mov eax, dword [ebp + 8]
push eax
push esi
push 1
push 0x430474
push str.SOFTWARESogouComponentsDOWNLOAD
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
test eax, eax
je 0x4030cb
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00410f26
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, 1
call fcn.00410f26
mov esp, ebp
pop ebp
ret