joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4578fc
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x457913
add esp, 0xfffffff0
call fcn.004039b4
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.00423308
mov eax, dword [0x463158]
cmp word [eax + 2], 0
jne 0x45793b
mov eax, dword [0x463158]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00458f30
mov eax, dword [0x4631f0]
cmp word [eax + 2], 0
jne 0x457955
mov eax, dword [0x4631f0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00459128
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x418cf0]
call fcn.00403638
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x418cf0]
call fcn.00403638
mov dword [ebx + 0xa8], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0x80000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0x9d], 1
mov byte [ebx + 0xb4], 1
mov dl, 1
mov eax, dword [0x4254a0]
call fcn.0042b1e0
mov esi, eax
mov dword [ebx + 0x98], esi
push 0x457adc
mov eax, dword [0x463088]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.0042b5b0
mov eax, dword [ebx + 0x98]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4596a8
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x463088]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameA_1
lea eax, [ebp - 0x101]
push eax
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_OemToCharA
lea eax, [ebp - 0x101]
mov dl, 0x5c
call fcn.0040c890
test eax, eax
je 0x457a4a
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408bd8
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040c8b8
test eax, eax
je 0x457a5e
mov byte [eax], 0
lea eax, [ebp - 0x101]
inc eax
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.004046c8
mov eax, dword [0x462f94]
cmp byte [eax], 0
jne 0x457a92
mov eax, ebx
call fcn.00457c04
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0x9e], 1
xor eax, eax
mov dword [ebx + 0xa0], eax
mov eax, ebx
call fcn.00459884
mov eax, ebx
call fcn.0045a234
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x457ad2
call fcn.00403a0c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x457e78
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [0x464c58]
cmp dword [eax + 0x30], 0
je 0x457f22
cmp dword [ebx + 0x94], 0
jne 0x457f1c
mov eax, dword [ebx + 0x30]
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x457e08
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x457f1c
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
test al, 8
je 0x457ee2
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x457f1c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.0041b3ec
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x457ef1
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x458a00
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xffffff00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xa4], 0
je 0x458a35
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x30]
push eax
call sub.user32.dll_GetWindowTextA
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00404550
jmp 0x458a42
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.004044b4
add esp, 0x100
pop esi
pop ebx
ret

Function at 0x459a60
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x459aa1
mov eax, esi
call fcn.0043feac
test al, al
je 0x459aa1
mov eax, dword [ebx + 0x84]
call fcn.0043fba8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x459aa1
push 0
mov eax, dword [ebx + 0x84]
call fcn.0043fba8
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret

Function at 0x45a5b0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov al, byte [ebp + 8]
call fcn.0045a3f8
mov esi, eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp - 4]
push eax
push esi
push 0
mov eax, edi
call fcn.00404910
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegSetValueExA
test eax, eax
je 0x45a60e
mov dword [ebp - 0xc], edi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x46316c]
mov dl, 1
mov eax, dword [0x45a36c]
call fcn.0040bc74
call fcn.00403e1c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x45a618
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff4
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp + 0xc]
push eax
push edi
lea eax, [ebp - 4]
push eax
push 0
mov eax, esi
call fcn.00404910
push eax
mov eax, dword [ebx + 4]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x45a670
mov dword [ebp - 0xc], esi
mov byte [ebp - 8], 0xb
lea eax, [ebp - 0xc]
push eax
push 0
mov ecx, dword [0x463344]
mov dl, 1
mov eax, dword [0x45a36c]
call fcn.0040bc74
call fcn.00403e1c
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebp - 4]
call fcn.0045a428
mov edx, dword [ebp + 8]
mov byte [edx], al
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x45d354
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov ebx, eax
mov esi, dword [ebp + 8]
cmp dword [esi], 0
jne 0x45d382
mov ecx, 4
mov dl, 1
mov eax, dword [0x45ba3c]
call fcn.00460470
call fcn.00403e1c
mov eax, dword [esi]
push eax
mov edx, edi
mov ecx, dword [ebp - 4]
xor eax, eax
call fcn.0045d310
mov eax, dword [esi]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebx + 0x38]
push eax
call sub.kernel32.dll_WriteFile_1
test eax, eax
jne 0x45d3ba
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x45d3ba
xor eax, eax
jmp 0x45d3bc
mov al, 1
test al, al
jne 0x45d3dc
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 2
mov dl, 1
mov eax, dword [0x45ba3c]
call fcn.004603ac
call fcn.00403e1c
mov cl, 1
mov dl, 6
mov eax, ebx
call fcn.004600f0
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4

Function at 0x45d494
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
mov edi, edx
mov esi, eax
mov ebx, dword [ebp + 8]
cmp dword [ebx], 0
jne 0x45d4c2
mov ecx, 4
mov dl, 1
mov eax, dword [0x45ba3c]
call fcn.00460470
call fcn.00403e1c
mov eax, dword [ebx]
mov byte [eax + 0x14], 1
mov eax, dword [ebx]
push eax
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [esi + 0x38]
push eax
call sub.kernel32.dll_ReadFile_1
test eax, eax
jne 0x45d4f1
call sub.kernel32.dll_GetLastError_1
cmp eax, 0x3e5
je 0x45d4f1
xor eax, eax
jmp 0x45d4f3
mov al, 1
test al, al
jne 0x45d513
call sub.kernel32.dll_GetLastError_1
push eax
mov ecx, 3
mov dl, 1
mov eax, dword [0x45ba3c]
call fcn.004603ac
call fcn.00403e1c
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x461a20
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x461ac2
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 4]
mov eax, dword [0x4631dc]
mov eax, dword [eax]
call fcn.00459408
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 4]
call fcn.00404910
mov esi, eax
push esi
call sub.version.dll_GetFileVersionInfoSizeA
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jbe 0x461aac
mov eax, dword [ebp - 8]
call fcn.00408348
mov ebx, eax
push ebx
mov eax, dword [ebp - 8]
push eax
push 0
push esi
call sub.version.dll_GetFileVersionInfoA
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
push 0x461ad0
push ebx
call sub.version.dll_VerQueryValueA
test eax, eax
je 0x461aa2
mov eax, 0x464ccc
mov edx, dword [ebp - 0x10]
call fcn.00404650
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.0040274c
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x461ac9
lea eax, [ebp - 4]
call fcn.00404460
ret
Function at 0x4357e0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x423015
lea edi, [esi - 0x22015]
push edi
or ebp, 0xffffffff
jmp 0x435802
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x435809
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x4357f8
mov eax, 1
add ebx, ebx
jne 0x43581b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x435810
jne 0x43582c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x435810
xor ecx, ecx
sub eax, 3
jb 0x435840
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x4358b2
mov ebp, eax
add ebx, ebx
jne 0x43584b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jne 0x435858
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jne 0x43587c
inc ecx
add ebx, ebx
jne 0x435868
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x43585d
jne 0x435879
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x43585d
add ecx, 2
cmp ebp, 0xfffff300
adc ecx, 1
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x43589c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x43588d
jmp 0x4357fe
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x43589c
add edi, ecx
jmp 0x4357fe
pop esi
mov edi, esi
mov ecx, 0xaca
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x4358ba
cmp byte [edi], 7
jne 0x4358ba
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 0x4358bf
lea edi, [esi + 0x33000]
mov eax, dword [edi]
or eax, eax
je 0x435937
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x36728]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x367c8]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x4358ec
mov ecx, edi
jns 0x43591b
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 + 0x367cc]
or eax, eax
je 0x435931
mov dword [ebx], eax
add ebx, 4
jmp 0x435909
call dword [esi + 0x367dc]
mov ebp, dword [esi + 0x367d0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x19f]
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 0x43596b
sub esp, 0xffffff80
jmp 0x412a92
Function at 0x402a60
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push edi
mov edi, dword [esp + 0x10]
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402a79
pop edi
pop ebx
ret
push esi
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402ab4
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
add eax, esi
and ecx, 0xf
jbe 0x402ab0
lea ebx, [ebx]
cmp esi, eax
jae 0x402ab4
sub ecx, 1
movzx edx, word [esi]
lea esi, [esi + edx*2 + 2]
jne 0x402aa0
cmp esi, eax
jb 0x402aba
pop esi
pop edi
xor eax, eax
pop ebx
ret
movzx eax, word [esi]
neg eax
sbb eax, eax
and eax, esi
pop esi
pop edi
pop ebx
ret

Function at 0x4030e0
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x446988
mov eax, dword fs:[0]
push eax
sub esp, 0x784
mov eax, dword [0x45c680]
xor eax, esp
mov dword [esp + 0x77c], eax
push ebx
push esi
mov eax, dword [0x45c680]
xor eax, esp
push eax
lea eax, [esp + 0x790]
mov dword fs:[0], eax
push 0x402ee0
mov esi, ecx
call dword [sym.imp.KERNEL32.dll_SetUnhandledExceptionFilter]
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x10], 8
mov dword [esp + 0x14], 0xff
call dword [sym.imp.COMCTL32.dll_InitCommonControlsEx]
mov ecx, esi
call fcn.0041c84e
xor ebx, ebx
push ebx
call fcn.0041d8f6
add esp, 4
push ebx
lea ecx, [esp + 0x18]
push ecx
lea edx, [esi + 0x780]
push edx
mov dword [esp + 0x20], 1
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
call sub.gdiplus.dll_GdiplusStartup
push 0x44e298
push ebx
push 0x1f0000
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [esi + 0xb84], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4031ea
push ebx
push 4
push 0x44e2b8
call fcn.0041e025
cmp eax, 6
jne 0x4031ea
push 0x44e2fc
push str.32770
call dword [sym.imp.USER32.dll_FindWindowW]
mov esi, eax
cmp esi, ebx
jne 0x4031d5
push ebx
push ebx
push str._WS_MRL
call fcn.0041e025
push ebx
push ebx
push 0x402
push esi
call dword [sym.imp.USER32.dll_PostMessageW]
mov eax, 1
jmp 0x403262
call fcn.004051e0
push ebx
lea eax, [esp + 0x28]
push eax
call fcn.0040e2d0
lea ecx, [esp + 0x24]
mov dword [esp + 0x798], ebx
call fcn.0041b8f1
cmp dword [0x460f08], ebx
jle 0x40324c
lea ecx, [esp + 0x1ec]
push ecx
call fcn.00403410
lea edx, [esp + 0x1ec]
mov byte [esp + 0x798], 1
mov ecx, edx
mov dword [esi + 0x20], edx
call fcn.0041b8f1
lea eax, [esp + 0x1ec]
push eax
mov byte [esp + 0x79c], bl
call fcn.00403290
lea ecx, [esp + 0x24]
mov dword [esp + 0x798], 0xffffffff
call fcn.0040e3b0
xor eax, eax
mov ecx, dword [esp + 0x790]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [esp + 0x77c]
xor ecx, esp
call fcn.00430f92
mov esp, ebp
pop ebp
ret
Function at 0x403340
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x270
mov eax, dword [0x45c680]
xor eax, esp
mov dword [esp + 0x268], eax
push esi
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0x6a]
push ecx
mov word [esp + 0x6c], ax
call fcn.004329f0
add esp, 0xc
push 0x104
lea edx, [esp + 0x64]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0x44
lea eax, [esp + 0x1c]
push 0
push eax
call fcn.004329f0
add esp, 0xc
lea edx, [esp + 8]
push edx
lea eax, [esp + 0x1c]
push eax
push 0
push 0
push 0x40
push 0
push 0
mov ecx, 1
mov word [esp + 0x64], cx
push 0
lea ecx, [esp + 0x80]
push ecx
push 0
mov dword [esp + 0x6c], 1
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
test eax, eax
je 0x4033e2
mov edx, dword [esp + 0xc]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [esp + 8]
push eax
call esi
mov ecx, dword [esp + 0x26c]
pop esi
xor ecx, esp
call fcn.00430f92
add esp, 0x270
ret
Function at 0x404210
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x1b0
mov eax, dword [0x45c680]
xor eax, esp
mov dword [esp + 0x1ac], eax
push ebp
mov ebp, dword [esp + 0x1b8]
mov eax, dword [ebp + 0x20]
push eax
call dword [sym.imp.USER32.dll_IsWindowVisible]
mov ecx, ebp
test eax, eax
je 0x40425e
push 0
call fcn.00412982
push 0
call fcn.00401a80
mov ecx, dword [0x460de4]
test ecx, ecx
je 0x4042a4
cmp dword [ecx + 0x20], 0
je 0x4042a4
push 0
jmp 0x40429f
push 5
call fcn.00412982
push 1
call fcn.00401a80
mov ecx, dword [ebp + 0x20]
push ecx
call dword [sym.imp.USER32.dll_IsIconic]
test eax, eax
je 0x404283
push 9
mov ecx, ebp
call fcn.00412982
mov edx, dword [ebp + 0x20]
push edx
call dword [sym.imp.USER32.dll_SetForegroundWindow]
mov ecx, dword [0x460de4]
test ecx, ecx
je 0x4042a4
cmp dword [ecx + 0x20], 0
je 0x4042a4
push 5
call fcn.00412982
cmp dword [esp + 0x1bc], 0
je 0x4043ef
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push 5
push eax
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
je 0x4043cb
mov edi, dword [sym.imp.USER32.dll_GetClassNameW]
lea eax, [esp + 0x10]
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetWindowTextW]
mov dword [esp + 0x10], eax
push 0x40
lea ecx, [esp + 0x40]
push ecx
push esi
call edi
push 0x80
lea edx, [esp + 0xc0]
push edx
push esi
call ebx
mov ecx, 0x44e2fc
lea eax, [esp + 0xbc]
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x40435c
test dx, dx
je 0x404358
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x40435c
add eax, 4
add ecx, 4
test dx, dx
jne 0x404336
xor eax, eax
jmp 0x404361
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4043b7
mov ecx, str.32770
lea eax, [esp + 0x3c]
mov edi, edi
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x404396
test dx, dx
je 0x404392
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x404396
add eax, 4
add ecx, 4
test dx, dx
jne 0x404370
xor eax, eax
jmp 0x40439b
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4043b7
mov ecx, ebp
call fcn.00401d20
cmp esi, eax
je 0x4043b7
mov eax, dword [esp + 0x10]
mov dword [eax], esi
add eax, 4
mov dword [esp + 0x10], eax
push 2
push esi
call dword [sym.imp.USER32.dll_GetWindow]
mov esi, eax
test esi, esi
jne 0x404310
pop ebx
mov edi, dword [sym.imp.USER32.dll_PostMessageW]
xor esi, esi
mov eax, dword [esp + esi*4 + 0x10]
test eax, eax
je 0x4043ed
push 0
push 0
push 0x403
push eax
call edi
inc esi
cmp esi, 0xa
jl 0x4043d3
pop edi
pop esi
mov ecx, dword [esp + 0x1b0]
pop ebp
xor ecx, esp
call fcn.00430f92
add esp, 0x1b0
ret 8
Function at 0x4051e0
Capabilities:
Set registry value

Disassembly:
sub esp, 8
lea eax, [esp]
push eax
push 0xf003f
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionInternet_Settings5.0CacheContent
push SysReAllocString
mov dword [esp + 0x18], 0x100000
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x405210
xor eax, eax
add esp, 8
ret
mov edx, dword [esp]
push 4
lea ecx, [esp + 8]
push ecx
push 4
push 0
push str.CacheLimit
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
jne 0x40520a
mov eax, dword [esp]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
neg eax
sbb eax, eax
inc eax
add esp, 8
ret
Function at 0x40a250
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push 0xffffffffffffffff
push 0x445c78
mov eax, dword fs:[0]
push eax
sub esp, 0x28
push ebx
push ebp
push esi
push edi
mov eax, dword [0x45c680]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov esi, ecx
xor ebp, ebp
cmp esi, ebp
je 0x40a2f3
movzx edi, word [esp + 0x4c]
push ebp
lea eax, [esp + 0x2c]
push eax
lea ecx, [esp + 0x2c]
push ecx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x34], 1
mov dword [esp + 0x38], ebp
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], ebp
call sub.gdiplus.dll_GdiplusStartup
push edi
push esi
call dword [sym.imp.USER32.dll_LoadBitmapW]
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x40a3e9
mov dword [esp + 0x18], ebp
push 0x44e5c8
push edi
push esi
mov dword [esp + 0x50], ebp
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov ebx, eax
cmp ebx, ebp
jne 0x40a309
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40a2f3
mov edx, dword [eax]
push eax
mov eax, dword [edx + 8]
call eax
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
cmp edi, ebp
jne 0x40a345
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40a32f
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
xor eax, eax
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret
lea eax, [esp + 0x18]
push eax
push 1
push ebp
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [esp + 0x18]
mov dword [esp + 0x20], eax
mov esi, dword [ecx]
mov ebx, ecx
lea ecx, [esp + 0x20]
push ecx
push eax
push edi
add esi, 0x10
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edx, dword [esi]
push eax
push ebx
call edx
mov eax, dword [esp + 0x18]
push eax
call fcn.0040a210
add esp, 4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
cmp esi, ebp
je 0x40a317
push 0xff00ff
push esi
call fcn.0040a420
add esp, 8
mov dword [esp + 0x1c], eax
cmp eax, ebp
jne 0x40a3c7
mov ecx, dword [esi + 4]
push 0xffff00ff
lea eax, [esp + 0x20]
push eax
push ecx
call sub.gdiplus.dll_GdipCreateHBITMAPFromBitmap
cmp eax, ebp
je 0x40a3c7
mov dword [esi + 8], eax
mov edx, dword [esi]
mov eax, dword [edx]
push 1
mov ecx, esi
call eax
mov dword [esp + 0x44], 0xffffffff
mov eax, dword [esp + 0x18]
cmp eax, ebp
je 0x40a3e9
mov ecx, dword [eax]
mov edx, dword [ecx + 8]
push eax
call edx
mov eax, dword [esp + 0x24]
push eax
call sub.gdiplus.dll_GdiplusShutdown
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x3c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x34
ret