joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4070d0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ebe3b
mov eax, dword fs:[0]
push eax
sub esp, 0x424
mov eax, dword [0x53e01c]
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 dword [ebp - 0x10], esp
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov dword [ebp - 0x420], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x41c], eax
mov dword [ebp - 0x430], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x428], ecx
mov dword [ebp - 0x42c], 0
mov dword [ebp - 0x418], 0
push 0x60
push 0
mov byte [ebp - 4], 1
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], esi
test esi, esi
jne 0x40717c
push 2
push eax
push edi
call ebx
mov esi, eax
mov dword [ebp - 0x424], eax
test esi, esi
jne 0x40717c
call fcn.00405740
mov edi, eax
jmp 0x40729b
push dword [ebp - 0x41c]
push dword [ebp - 0x420]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
jne 0x40719f
call fcn.00405740
jmp 0x40728e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
mov dword [ebp - 0x420], ebx
test ebx, ebx
jne 0x4071bd
call fcn.00405740
jmp 0x40728e
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edi, eax
mov dword [ebp - 0x41c], edi
lea eax, [edi + 1]
cmp eax, edi
jae 0x4071de
mov edi, 0x8007000e
jmp 0x407290
mov ecx, 2
mov byte [ebp - 4], 2
mul ecx
test edx, edx
ja 0x4072d4
jb 0x4071fc
cmp eax, 0xffffffff
ja 0x4072d4
cmp eax, 0x400
jbe 0x407211
push eax
lea ecx, [ebp - 0x418]
call fcn.00405710
jmp 0x407237
lea eax, [ebp - 0x414]
mov dword [ebp - 0x418], eax
jmp 0x407237
mov dword [ebp - 4], 1
cmp dword [ebp - 0x418], 0
jne 0x40724e
mov edi, 0x8007000e
jmp 0x407290
push edi
push dword [ebp - 0x418]
push edi
push ebx
push 0
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, eax
test ecx, ecx
jne 0x40726e
call fcn.00405740
jmp 0x40728e
mov eax, dword [ebp - 0x418]
xor edx, edx
push dword [ebp + 0x14]
mov word [eax + ecx*2], dx
lea ecx, [ebp - 0x42c]
push dword [ebp - 0x418]
call fcn.00406f70
mov edi, eax
test esi, esi
je 0x40729b
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x414]
cmp dword [ebp - 0x418], eax
je 0x4072b4
lea ecx, [ebp - 0x418]
call fcn.004056f0
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.0045b5b0
mov esp, ebp
pop ebp
ret 0x10
push 0x80070216
call fcn.00407a00
int3
Function at 0x40bbc0
Capabilities:
Get common file path
Get startup folder
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x23c
mov eax, dword [0x53e01c]
xor eax, esp
mov dword [esp + 0x238], eax
push esi
push 0x208
mov esi, ecx
lea eax, [esp + 0x34]
push 0
mov dword [esp + 0x14], esi
push eax
mov dword [esp + 0x18], esi
call fcn.004beec0
add esp, 0xc
mov dword [esp + 0xc], 0x208
lea eax, [esp + 0xc]
push eax
lea eax, [esp + 0x34]
push eax
push 0
push str.PlayerPath
push str.SOFTWAREMacromediaFlashPlayerPepper
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40bda4
lea eax, [esp + 0x30]
push eax
call dword [sym.imp.SHLWAPI.dll_PathUnquoteSpacesW]
lea ecx, [esp + 0x30]
lea edx, [ecx + 2]
nop dword [eax]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40bc40
sub ecx, edx
sar ecx, 1
push ecx
cmp word [esp + 0x34], ax
je 0x40bd6a
lea eax, [esp + 0x34]
mov dword [esp + 0x14], 0
push eax
lea ecx, [esp + 0x18]
mov dword [esp + 0x28], 0
mov dword [esp + 0x2c], 7
call fcn.00407890
push 0
push 0x1a
lea eax, [esp + 0x38]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x40bd2e
push str.PepperFlashpepflashplayer.dll
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [esp + 0x24], 8
lea ecx, [esp + 0x30]
lea eax, [esp + 0x10]
cmovae eax, dword [esp + 0x10]
push ecx
push eax
call fcn.004d0817
add esp, 8
test eax, eax
jne 0x40bd2e
mov edx, dword [esp + 0x24]
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
cmp edx, 8
jb 0x40bdbd
mov ecx, dword [esp + 0x10]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x40bd0f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x40bdd2
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov eax, esi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret
movups xmm0, xmmword [esp + 0x10]
mov dword [esi], 0
mov eax, esi
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [esp + 0x20]
movq qword [esi + 0x10], xmm0
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov ecx, esi
mov dword [esi + 0x14], 7
mov word [esi], ax
lea eax, [esp + 0x34]
push eax
call fcn.00407890
mov eax, esi
pop esi
mov ecx, dword [esp + 0x238]
xor ecx, esp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret
xor eax, eax
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
mov ecx, dword [esp + 0x23c]
mov eax, esi
pop esi
xor ecx, esp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret
call fcn.004c1e0f
int3
Function at 0x40bde0
Capabilities:
Check os version
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
mov dword [ebp - 0x118], 0x114
push 0
push eax
call fcn.004beec0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 6
jae 0x40be39
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 0x120]
mov dword [ebp - 0x11c], 0
push eax
lea eax, [ebp - 0x11c]
mov dword [ebp - 0x120], 4
push eax
push 0
push str.EnableLUA
push str.SoftwareMicrosoftWindowsCurrentVersionPoliciesSystem
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x11c], eax
setne al
xor ecx, ebp
call fcn.0045b5b0
mov esp, ebp
pop ebp
ret
Function at 0x40c8e0
Capabilities:
Check if file exists
Delete file
Move file
Set registry value

Disassembly:
push esi
push edi
mov esi, ecx
mov edi, edx
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
jne 0x40c93f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40c93f
test edi, edi
je 0x40c934
mov ecx, edi
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40c905
sub ecx, edx
sar ecx, 1
lea eax, [ecx*2 + 2]
push eax
push edi
push 1
push str.CC_FLASH_VER
push str.SoftwareSogouSogouExplorerPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
pop edi
pop esi
ret
Function at 0x40e4c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec3a0
mov eax, dword fs:[0]
push eax
sub esp, 0x22c
mov eax, dword [0x53e01c]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, edx
mov esi, ecx
mov dword [ebp - 0x234], esi
cmp dword [edi + 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0x238], esi
mov dword [ebp - 0x238], eax
jne 0x40e52a
mov dword [esi], 0
xor eax, eax
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40e64e
push 0x208
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.004beec0
add esp, 0xc
mov dword [ebp - 0x234], 0x208
lea eax, [ebp - 0x234]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push str.CC_FLASH
push str.SoftwareSogouSogouExplorerPrivateCfg
push 0x80000001
call dword [sym.imp.SHLWAPI.dll_SHGetValueW]
test eax, eax
jne 0x40e50c
cmp ax, word [ebp - 0x218]
jne 0x40e590
mov dword [esi], eax
mov dword [esi + 0x10], eax
mov dword [esi + 0x14], 7
mov word [esi], ax
jmp 0x40e64e
push edi
lea ecx, [ebp - 0x230]
call fcn.00403e90
push 0x11
push str.User_DataFlash_
lea ecx, [ebp - 0x230]
mov dword [ebp - 4], 0
call fcn.00404090
lea ecx, [ebp - 0x218]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x40e5c0
sub ecx, edx
lea eax, [ebp - 0x218]
sar ecx, 1
push ecx
push eax
lea ecx, [ebp - 0x230]
call fcn.00404090
push 0x13
push str.pepflashplayer.dll
lea ecx, [ebp - 0x230]
call fcn.00404090
mov ecx, dword [ebp - 0x238]
test ecx, ecx
je 0x40e623
lea edx, [ebp - 0x218]
lea edi, [edx + 2]
mov ax, word [edx]
add edx, 2
test ax, ax
jne 0x40e607
sub edx, edi
lea eax, [ebp - 0x218]
sar edx, 1
push edx
push eax
call fcn.00407890
movups xmm0, xmmword [ebp - 0x230]
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 0
movups xmmword [esi], xmm0
movq xmm0, qword [ebp - 0x220]
movq qword [esi + 0x10], xmm0
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.0045b5b0
mov esp, ebp
pop ebp
ret
Function at 0x411620
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec625
mov eax, dword fs:[0]
push eax
sub esp, 0x34
mov eax, dword [0x53e01c]
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 esi, ecx
mov edi, dword [esi + 0x698]
mov byte [esi + 0x7fa], 1
test edi, edi
je 0x41168a
mov eax, dword [edi + 0x50]
mov bl, byte [edi + 0x2c]
mov byte [edi + 0x2c], 0
test eax, eax
je 0x41167d
push 0
push 0
push 0x401
push dword [eax]
call dword [sym.imp.USER32.dll_SendMessageW]
test bl, bl
je 0x41168a
mov eax, dword [edi]
mov ecx, edi
push 0
call dword [eax + 0x24]
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [esi + 0x674]
call edi
push 0
push 9
lea eax, [ebp - 0x28]
push eax
push ecx
call fcn.00425940
add esp, 4
mov ecx, eax
call fcn.00425a40
push 0
lea edx, [ebp - 0x28]
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.0040d140
add esp, 4
mov byte [ebp - 4], 1
cmp dword [ebp - 0x30], 0
jne 0x4116fb
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.004117c0
test al, al
je 0x4116f7
push 0
push dword [esi + 0x678]
call edi
push 4
mov ecx, esi
call fcn.00412160
jmp 0x411721
xor bl, bl
jmp 0x411723
push 0
push dword [esi + 0x678]
call edi
push 5
push dword [esi + 0x67c]
call edi
push 0
push 6
push 0x7e9
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov bl, 1
mov edx, dword [ebp - 0x2c]
cmp edx, 8
jb 0x411759
mov ecx, dword [ebp - 0x40]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x41174f
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4117ad
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x41178f
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411785
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4117ad
push edx
push ecx
call fcn.0045b5e1
add esp, 8
mov al, bl
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.0045b5b0
mov esp, ebp
pop ebp
ret
call fcn.004c1e0f
int3
Function at 0x4117c0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec66c
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x53e01c]
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 edi, ecx
push dword [edi + 4]
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x34], ebx
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x411901
cmp dword [ebx + 0x10], 0
je 0x411901
push 0x50
call fcn.004c1f39
mov edx, eax
add esp, 4
mov dword [ebp - 0x38], edx
test edx, edx
je 0x4119bc
mov eax, dword [edi + 4]
lea ecx, [edx + 0x38]
mov dword [edx], vtable.._AUCDownloadFlashWrapper__1___StartDownloadFlash_CLiveupDlg__AAE_NABV__basic_string__WU__char_traits__W_std__V__allocator__W_2__std___Z_.0
lea esi, [edx + 0x20]
lea ebx, [edx + 8]
mov dword [ecx], 0
push 0
push ecx
mov dword [ecx + 0x10], 0
mov dword [ecx + 0x14], 7
lea ecx, [ebp - 0x2c]
mov dword [edx + 4], eax
mov edx, dword [ebp - 0x34]
push esi
mov dword [ebx], 0
mov dword [ebx + 0x10], 0
mov dword [ebx + 0x14], 7
mov dword [esi], 0
mov dword [esi + 0x10], 0
mov dword [esi + 0x14], 7
call fcn.0040c950
add esp, 0xc
mov ecx, ebx
push eax
call fcn.00417300
mov edx, dword [ebp - 0x18]
cmp edx, 8
jb 0x4118ca
mov ecx, dword [ebp - 0x2c]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x4118c0
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x4119ca
push edx
push ecx
call fcn.0045b5e1
add esp, 8
lea ecx, [edi + 0x804]
cmp ecx, ebx
je 0x4118e7
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x4118de
mov eax, dword [ebx]
push dword [ebx + 0x10]
push eax
call fcn.00407890
mov ebx, dword [ebp - 0x38]
cmp dword [ebx + 0x18], 0
jne 0x411921
push ecx
mov ecx, ebx
call fcn.00411bf0
push 9
mov ecx, edi
call fcn.00412160
xor al, al
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.0045b5b0
mov esp, ebp
pop ebp
ret 4
mov ecx, dword [edi + 0x7f0]
test ecx, ecx
je 0x411959
call fcn.0040aeb0
mov eax, dword [edi + 0x7f0]
test eax, eax
je 0x41194f
cmp dword [eax + 4], 0
jne 0x4119cf
push 8
push eax
call fcn.0045b5e1
add esp, 8
mov dword [edi + 0x7f0], 0
push 8
call fcn.004c1f39
mov esi, eax
add esp, 4
test esi, esi
je 0x4119d4
mov dword [ebp - 0x38], esi
push 8
mov dword [ebp - 4], 0
call fcn.004c1f39
add esp, 4
test eax, eax
je 0x4119e2
mov dword [eax], ebx
mov dword [eax + 4], 0x411bc0
mov dword [ebp - 0x34], eax
lea ebx, [esi + 4]
mov byte [ebp - 4], 1
push ebx
push 0
push eax
push 0x418740
push 0
push 0
call fcn.004d0b03
add esp, 0x18
mov dword [esi], eax
test eax, eax
je 0x4119f0
mov dword [edi + 0x7f0], esi
mov al, 1
jmp 0x411903
push 0x53ab50
lea eax, [ebp - 0x2d]
push eax
call fcn.004bf594
call fcn.004c1e0f
call fcn.004c9297
push 0x53ab50
lea eax, [ebp - 0x2d]
push eax
call fcn.004bf594
push 0x53ab50
lea eax, [ebp - 0x2e]
push eax
call fcn.004bf594
push 6
mov dword [ebx], 0
call fcn.0045a531
int3
Function at 0x411a20
Capabilities:
Check if file exists
Delete file
Download url
Move file
Receive data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4ec6ad
mov eax, dword fs:[0]
push eax
sub esp, 0xa4
mov eax, dword [0x53e01c]
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, ecx
push 0
push 3
push 0x7e8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
cmp dword [ebx + 0x4c], 8
lea edi, [ebx + 0x38]
mov eax, edi
jb 0x411a6f
mov eax, dword [edi]
lea ecx, [ebp - 0xac]
push 3
mov dword [ebp - 0xb0], ecx
lea ecx, [ebp - 0xb0]
push eax
call fcn.00417610
push dword [ebp - 0xb0]
call dword [sym.imp.dbghelp.dll_MakeSureDirectoryPathExists]
mov eax, dword [ebp - 0xb0]
lea ecx, [ebp - 0xac]
cmp eax, ecx
je 0x411aae
push eax
call fcn.004c1f44
add esp, 4
push edi
lea ecx, [ebp - 0x28]
call fcn.00403e90
push 4
push str..tmp
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00404090
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
cmovae eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
lea eax, [ebx + 8]
cmovae ecx, dword [ebp - 0x28]
cmp dword [eax + 0x14], 8
jb 0x411af5
mov eax, dword [eax]
push ebx
push 0
push ecx
push eax
push 0
call dword [sym.imp.urlmon.dll_URLDownloadToFileW]
mov esi, eax
test esi, esi
js 0x411b4c
cmp dword [ebp - 0x14], 8
lea ecx, [ebp - 0x28]
cmovae ecx, dword [ebp - 0x28]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x411b25
mov esi, 0x8000ffff
jmp 0x411b4c
cmp dword [edi + 0x14], 8
jb 0x411b2d
mov edi, dword [edi]
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
push 1
cmovae eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
mov ecx, 0x8000ffff
cmove esi, ecx
not esi
shr esi, 0x1f
push esi
push 5
push 0x7e8
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
mov edx, dword [ebp - 0x14]
cmp edx, 8
jb 0x411b98
mov ecx, dword [ebp - 0x28]
lea edx, [edx*2 + 2]
mov eax, ecx
cmp edx, 0x1000
jb 0x411b8e
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x411bb4
push edx
push ecx
call fcn.0045b5e1
add esp, 8
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.0045b5b0
mov esp, ebp
pop ebp
ret
call fcn.004c1e0f
int3
Function at 0x414720
Capabilities:
Terminate thread

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x7b8]
test eax, eax
je 0x414764
push 0x7d0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x41474e
push 0
push dword [esi + 0x7b8]
call dword [sym.imp.KERNEL32.dll_TerminateThread]
push dword [esi + 0x7b8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi + 0x7b8], 0
push 0
call dword [sym.imp.USER32.dll_PostQuitMessage]
pop esi
ret
Function at 0x4167e0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x545cd0]
sub esp, 0x20
test al, 1
jne 0x4167f7
or eax, 1
mov dword [0x545cd0], eax
cmp dword [0x545cc8], 2
je 0x41697e
push esi
mov ecx, 1
mov edx, 0x545cc8
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x41695a
push ebx
push edi
push 8
call fcn.004c1f39
mov edi, eax
add esp, 4
test edi, edi
je 0x416987
push 0
mov dword [edi], 0x60
mov dword [edi + 4], 0x60
call dword [sym.imp.USER32.dll_GetDC]
mov ebx, eax
test ebx, ebx
je 0x41693e
mov esi, dword [sym.imp.GDI32.dll_GetDeviceCaps]
push 0x58
push ebx
call esi
push 0x5a
push ebx
mov dword [edi], eax
call esi
mov dword [edi + 4], eax
lea eax, [ebp - 0x1c]
push eax
push 0x20019
push 0
push str.SoftwareSogouSogouExplorerAdvanced
push 0x80000001
mov dword [ebp - 0x20], vtable.Util::RegKey.0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4168a4
mov dword [ebp - 0x1c], 0
jmp 0x416904
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x416904
lea ecx, [ebp - 0xc]
mov dword [ebp - 8], 4
push ecx
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push ecx
lea ecx, [ebp - 8]
mov dword [ebp - 0x10], 0
push ecx
push 0
push str.DisableDpi
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x416904
mov eax, dword [ebp - 8]
cmp eax, 4
je 0x4168eb
cmp eax, 3
jne 0x416904
cmp dword [ebp - 0xc], 4
jne 0x416904
cmp dword [ebp - 0x10], 0
je 0x416904
mov dword [edi], 0x60
mov dword [edi + 4], 0x60
push ebx
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], vtable.Util::RegKey.0
test eax, eax
je 0x416929
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41693e
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [ebp - 0x1c], 0
mov dword [0x545ccc], edi
mov eax, dword [0x545ccc]
pop edi
pop ebx
mov dword [0x545cc8], 2
pop esi
mov esp, ebp
pop ebp
ret
cmp dword [0x545cc8], 2
je 0x41697d
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
nop dword [eax]
push 0
call esi
cmp dword [0x545cc8], 2
jne 0x416970
pop esi
mov eax, dword [0x545ccc]
mov esp, ebp
pop ebp
ret
push 0x53ab50
lea eax, [ebp - 1]
push eax
call fcn.004bf594
int3

Function at 0x418a40
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x418a99
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x418a99
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x418a88
cmp esi, edx
jae 0x418a99
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x418a76
cmp esi, edx
jae 0x418a99
cmp word [esi], 0
je 0x418a99
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret
Function at 0x419942
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
je 0x419a54
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp dword [eax + 0x10], ebx
jne 0x4199fe
push 0x18
call fcn.00422256
mov dword [ebp + 0x10], eax
pop ecx
test eax, eax
je 0x419985
mov ecx, eax
call fcn.004193a0
mov esi, eax
test esi, esi
je 0x419987
inc dword [esi + 4]
jmp 0x419987
mov esi, ebx
push 0x10
call dword [sym.imp.gdiplus.dll_GdipAlloc]
mov edi, eax
mov dword [ebp + 0x10], edi
test edi, edi
je 0x4199bc
lea eax, [ebp + 0x10]
mov dword [edi], vtable.Gdiplus::Bitmap.0
push eax
push dword [ebp + 0xc]
mov dword [ebp + 0x10], ebx
push dword [ebp + 8]
call dword [sym.imp.gdiplus.dll_GdipCreateBitmapFromResource]
mov dword [edi + 8], eax
mov eax, dword [ebp + 0x10]
mov dword [edi + 4], eax
jmp 0x4199be
mov edi, ebx
mov dword [esi + 0xc], edi
test edi, edi
je 0x4199e9
mov ecx, dword [ebp - 4]
lea eax, [ebp + 8]
inc dword [esi + 4]
push eax
mov dword [ebp + 8], esi
call fcn.00409170
dec dword [esi + 4]
cmp dword [esi + 4], ebx
jg 0x4199e7
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax]
mov bl, 1
dec dword [esi + 4]
cmp dword [esi + 4], 0
jg 0x4199fa
mov edx, dword [esi]
mov ecx, esi
push 1
call dword [edx]
mov al, bl
jmp 0x419a56
cmp dword [eax + 0x14], 8
jb 0x419a06
mov eax, dword [eax]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov edi, eax
test edi, edi
je 0x419a54
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp + 0xc], eax
test eax, eax
je 0x419a54
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
push edi
push dword [ebp + 8]
mov esi, eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp - 4]
push eax
push esi
call fcn.004198bc
push dword [ebp + 0xc]
mov bl, al
call dword [sym.imp.KERNEL32.dll_FreeResource]
jmp 0x4199fa
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x41b2ad
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
cmp dword [0x545c10], 2
push ebx
mov ebx, ecx
jne 0x41b34d
mov eax, dword [0x545c14]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
mov edi, eax
test edi, edi
je 0x41b34c
push esi
mov esi, dword [edi]
jmp 0x41b2de
cmp dword [esi + 4], ebx
je 0x41b2e5
add esi, 8
cmp esi, dword [edi + 4]
jne 0x41b2d6
jmp 0x41b34b
cmp esi, dword [edi + 4]
je 0x41b34b
push dword [esi]
push 0
call dword [sym.imp.USER32.dll_KillTimer]
mov ecx, dword [edi + 4]
add esi, 8
cmp esi, ecx
je 0x41b313
mov eax, dword [esi]
mov dword [esi - 8], eax
mov eax, dword [esi + 4]
mov dword [esi - 4], eax
add esi, 8
cmp esi, ecx
jne 0x41b2fe
mov ecx, dword [edi + 4]
lea eax, [ecx - 8]
mov dword [edi + 4], eax
cmp dword [edi], eax
jne 0x41b34b
mov ecx, edi
call fcn.0041c66a
push 0xc
push edi
call fcn.0045b5e1
cmp dword [0x545c10], 2
pop ecx
pop ecx
je 0x41b33c
call fcn.0041c6ea
mov eax, dword [0x545c14]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop edi
pop ebx
ret