joyce8/EMBER2024-capa huggingface dataset:
Function at 0x43d7e4
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffed8
mov ebx, ecx
mov edi, edx
mov esi, eax
call sub.user32.dll_GetMessagePos
call fcn.00406634
mov dword [esp + 8], eax
movsx eax, word [esp + 8]
mov dword [esp + 0xc], eax
movsx eax, word [esp + 0xa]
mov dword [esp + 0x10], eax
mov ecx, esp
lea edx, [esp + 0xc]
mov eax, esi
call fcn.0043848c
test ebx, ebx
jne 0x43d837
push 0
push 0
lea edx, [esp + 8]
xor ecx, ecx
mov eax, esi
call fcn.0043d720
mov ebx, eax
test ebx, ebx
je 0x43d922
cmp esi, ebx
je 0x43d860
mov eax, dword [esp]
sub eax, dword [ebx + 0x40]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
sub eax, dword [ebx + 0x44]
mov dword [esp + 0x118], eax
jmp 0x43d875
mov eax, dword [esp]
mov dword [esp + 0x114], eax
mov eax, dword [esp + 4]
mov dword [esp + 0x118], eax
movzx eax, word [edi + 8]
mov dword [esp + 0x11c], eax
mov eax, dword [edi + 4]
mov dword [esp + 0x124], eax
movzx eax, word [edi + 0xa]
cmp eax, 0x201
jge 0x43d8ad
add eax, 0xffffff5f
sub eax, 2
jb 0x43d8c5
dec eax
sub eax, 2
jb 0x43d8d9
dec eax
sub eax, 2
jb 0x43d8cf
jmp 0x43d8e3
add eax, 0xfffffdff
sub eax, 2
jb 0x43d8c5
dec eax
sub eax, 2
jb 0x43d8d9
dec eax
sub eax, 2
jb 0x43d8cf
jmp 0x43d8e3
mov byte [esp + 0x120], 0
jmp 0x43d8eb
mov byte [esp + 0x120], 2
jmp 0x43d8eb
mov byte [esp + 0x120], 1
jmp 0x43d8eb
mov byte [esp + 0x120], 0
lea eax, [esp + 0x14]
push eax
call sub.user32.dll_GetKeyboardState
lea eax, [esp + 0x14]
call fcn.0044b770
mov byte [esp + 0x121], al
lea eax, [esp + 0x114]
push eax
xor ecx, ecx
mov edx, 0xb04b
mov eax, ebx
call fcn.00439c40
mov dword [edi + 0xc], eax
mov al, 1
jmp 0x43d924
xor eax, eax
add esp, 0x128
pop edi
pop esi
pop ebx
ret
Function at 0x445c78
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov eax, dword [0x46eb08]
cmp byte [eax + 0xc], 0
je 0x445de5
push 0x8000
call sub.kernel32.dll_SetErrorMode
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x445dde
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [0x473c5c], 0
jne 0x445ccc
push 0x445dec
call sub.kernel32.dll_GetModuleHandleA_2
mov ebx, eax
push 0x445df4
push ebx
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c5c], eax
cmp dword [0x46e5cc], 0
jne 0x445dc7
push 0x445e04
call sub.kernel32.dll_LoadLibraryA
mov dword [0x46e5cc], eax
cmp dword [0x46e5cc], 0
je 0x445dc7
push 0x445e10
mov eax, dword [0x46e5cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c60], eax
push 0x445e20
mov eax, dword [0x46e5cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c64], eax
push 0x445e34
mov eax, dword [0x46e5cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c68], eax
push 0x445e4c
mov eax, dword [0x46e5cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c6c], eax
push 0x445e64
mov eax, dword [0x46e5cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c70], eax
push 0x445e78
mov eax, dword [0x46e5cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c74], eax
push 0x445e90
mov eax, dword [0x46e5cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c78], eax
push 0x445ea8
mov eax, dword [0x46e5cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c7c], eax
push 0x445ec4
mov eax, dword [0x46e5cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c80], eax
push 0x445ed0
mov eax, dword [0x46e5cc]
push eax
call sub.kernel32.dll_GetProcAddress_1
mov dword [0x473c84], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x445de5
mov eax, dword [ebp - 4]
push eax
call sub.kernel32.dll_SetErrorMode
ret
pop ebx
pop ecx
pop ebp
ret
Function at 0x44b2b8
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
push edi
push ecx
mov byte [esp + 1], cl
mov byte [esp], dl
mov esi, eax
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongA
mov edi, eax
mov eax, dword [0x473c94]
cmp esi, dword [eax + 0x30]
jne 0x44b2df
or edi, 0x8000000
push esi
call sub.user32.dll_IsIconic
cmp eax, 1
sbb ebx, ebx
inc ebx
push esi
call sub.user32.dll_IsWindowVisible
test eax, eax
jne 0x44b30e
mov eax, dword [0x473c94]
cmp esi, dword [eax + 0x30]
jne 0x44b30a
mov eax, dword [0x473c94]
cmp byte [eax + 0x5b], 0
jne 0x44b30e
xor eax, eax
jmp 0x44b310
mov al, 1
mov byte [esp + 2], al
movzx eax, byte [esp + 2]
or al, bl
je 0x44b325
push 0
push esi
call sub.user32.dll_ShowWindow
cmp byte [esp], 0
je 0x44b33c
or edi, 0x40000
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
jmp 0x44b34b
and edi, 0xfffbffff
push edi
push 0xffffffffffffffec
push esi
call sub.user32.dll_SetWindowLongA
movzx eax, byte [esp + 1]
and al, byte [esp + 2]
jne 0x44b35a
test bl, bl
je 0x44b370
test bl, bl
je 0x44b368
push 6
push esi
call sub.user32.dll_ShowWindow
jmp 0x44b370
push 5
push esi
call sub.user32.dll_ShowWindow
pop edx
pop edi
pop esi
pop ebx
ret

Function at 0x44b614
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
add esp, 0xfffffff8
mov ebx, eax
call sub.user32.dll_GetActiveWindow
mov dword [esp], eax
mov byte [esp + 4], 0
test bl, bl
je 0x44b63a
mov eax, esp
push eax
push 0x44b5dc
call sub.user32.dll_EnumWindows
jmp 0x44b64d
mov eax, esp
push eax
push 0x44b5bc
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
call sub.user32.dll_EnumThreadWindows
movzx eax, byte [esp + 4]
pop ecx
pop edx
pop ebx
ret

Function at 0x44b6d8
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44b72c]
test si, 4
je 0x44b6ed
or bl, 1
test si, 8
je 0x44b6f7
or bl, 4
test si, 1
je 0x44b701
or bl, 8
test si, 2
je 0x44b70b
or bl, 0x10
test si, 0x10
je 0x44b715
or bl, 0x20
push 0x12
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b724
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret

Function at 0x44b730
Capabilities:
Log keystrokes via polling

Disassembly:
push ebx
push esi
mov esi, eax
movzx ebx, byte [0x44b76c]
push 0x10
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b74a
or bl, 1
push 0x11
call sub.user32.dll_GetKeyState
test ax, ax
jge 0x44b759
or bl, 4
test esi, 0x20000000
je 0x44b764
or bl, 2
mov eax, ebx
pop esi
pop ebx
ret
Function at 0x453638
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x45364a
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a274
mov eax, dword [0x46e7e0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4539dc
mov eax, dword [0x46e7ec]
mov dword [eax + 4], ebx
mov dword [eax], 0x4539e8
mov eax, ebx
call fcn.004539f4
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x3c], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.004039d0
mov dword [ebx + 0x4c], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.004039d0
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.004039d0
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.004039d0
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.004039d0
mov dword [ebx + 0x7c], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x40], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x58]
push eax
mov eax, 0x44f0a4
push eax
push 0
push 0
mov eax, dword [0x46e92c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x41de04]
call fcn.0041f324
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x41de04]
call fcn.0041f324
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x41de04]
call fcn.0041f324
mov dword [ebx + 0x80], eax
mov eax, ebx
call fcn.00453e24
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453cf4
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453cf4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x453cf4
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x453787
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x453ad8
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffda0
push ebx
xor edx, edx
mov dword [ebp - 0x260], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x453c83
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x34], 0
jne 0x453c64
mov dl, 1
mov eax, dword [0x41235c]
call fcn.004039d0
mov edx, dword [ebp - 4]
mov dword [edx + 0x34], eax
mov eax, dword [ebp - 4]
add eax, 0x38
call fcn.00404814
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x453c53
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.00445fd4
test al, al
je 0x453c46
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x25c], eax
mov byte [ebp - 0x258], 0
lea ecx, [ebp - 0x25c]
mov edx, 0x453c94
lea eax, [ebp - 0x254]
call fcn.00409384
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExA_1
test eax, eax
jne 0x453c46
xor eax, eax
push ebp
push 0x453c3f
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], pe_nt_image_headers32
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x214]
push eax
push 0
push 0
push 0x453ccc
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
jne 0x453c28
lea eax, [ebp - 0x260]
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov edx, dword [ebp - 0x260]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x3c]
jne 0x453c28
mov eax, dword [ebp - 4]
add eax, 0x38
lea edx, [ebp - 0x214]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453c46
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x453b49
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x34]
mov byte [eax + 0x25], 0
mov dl, 1
call fcn.00416090
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x34]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x453c8a
lea eax, [ebp - 0x260]
call fcn.00404814
ret

Function at 0x4545fc
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x473c94]
cmp byte [eax + 0xad], 0
jne 0x45466d
cmp dword [0x473cb0], 0
jne 0x45462e
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, 0x4545b8
push eax
push 3
call sub.user32.dll_SetWindowsHookExA
mov dword [0x473cb0], eax
cmp dword [0x473cac], 0
jne 0x454649
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventA
mov dword [0x473cac], eax
cmp dword [0x473cb4], 0
jne 0x45466d
push esp
push 0
push 0
push 0x45455c
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread
mov dword [0x473cb4], eax
pop edx
ret
Function at 0x454840
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffefc
push ebx
push esi
test dl, dl
je 0x454857
add esp, 0xfffffff0
call fcn.00403d0c
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.0041a274
mov eax, dword [0x46e918]
cmp word [eax + 2], 0
jne 0x45487f
mov eax, dword [0x46e918]
mov dword [eax + 4], ebx
mov dword [eax], fcn.00456440
mov eax, dword [0x46e9c0]
cmp word [eax + 2], 0
jne 0x454899
mov eax, dword [0x46e9c0]
mov dword [eax + 4], ebx
mov dword [eax], fcn.0045664c
mov byte [ebx + 0x34], 0
mov dl, 1
mov eax, dword [0x411f38]
call fcn.004039d0
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.004039d0
mov dword [ebx + 0x98], eax
mov dl, 1
mov eax, dword [0x411f38]
call fcn.004039d0
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
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 + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x41e5e0]
call fcn.00424428
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x454a50
mov eax, dword [0x46e844]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconA
mov edx, eax
mov eax, esi
call fcn.004247fc
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x456d10
push pe_nt_image_headers32
lea eax, [ebp - 0x101]
push eax
mov eax, dword [0x46e844]
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.0040caac
test eax, eax
je 0x4549a0
lea edx, [eax + 1]
lea eax, [ebp - 0x101]
call fcn.00408d3c
lea eax, [ebp - 0x101]
mov dl, 0x2e
call fcn.0040cae0
test eax, eax
je 0x4549b4
mov byte [eax], 0
lea eax, [ebp - 0x101]
push eax
call sub.user32.dll_CharNextA_1
push eax
call sub.user32.dll_CharLowerA
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x101]
mov ecx, pe_nt_image_headers32
call fcn.00404a84
mov byte [ebx + 0xd4], 0
push ebx
push 0x455f68
call fcn.0041b3f0
mov dword [ebx + 0xc8], eax
mov eax, dword [0x46e74c]
cmp byte [eax], 0
jne 0x454a05
mov eax, ebx
call fcn.00454b94
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.00456ee8
mov eax, ebx
call fcn.00457a4c
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x454a45
call fcn.00403d64
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x454e14
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x30]
test eax, eax
je 0x454eb3
cmp dword [ebx + 0x94], 0
jne 0x454ead
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x454d9c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x454ead
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 0x454e73
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x454ead
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.00414338
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x454e82
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4550cc
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x473c94]
cmp dword [eax + 0x30], 0
je 0x455229
test bl, bl
jne 0x45517a
cmp dword [esi + 0x9c], 0
jne 0x45516f
mov eax, esi
call fcn.004578c8
push eax
push 0x454ff8
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x455140
mov eax, dword [0x473c94]
call fcn.00457fa8
test al, al
je 0x455140
mov eax, dword [0x473cb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x455140
push 0
mov eax, dword [0x473cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x45512a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x45516f
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414338
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x45514f
inc dword [esi + 0x9c]
jmp 0x455229
cmp dword [esi + 0x9c], 0
jle 0x455229
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x455229
cmp dword [esi + 0x44], 0
je 0x4551d5
mov eax, dword [0x473c94]
call fcn.00457fa8
test al, al
je 0x4551d5
mov eax, dword [0x473cb8]
call fcn.004056d0
mov edi, eax
cmp edi, 0
jl 0x4551d5
push 5
mov eax, dword [0x473cb8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4551bf
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x455204
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.00414338
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4551e4
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
mov eax, 0x473cb8
mov ecx, 1
mov edx, dword [0x454fd8]
call fcn.00405884
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x455cbc
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffefc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x455d26
mov eax, ebx
call fcn.00457fa8
test al, al
jne 0x455d26
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.00404904
mov eax, dword [esi]
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x100]
test eax, eax
je 0x455d13
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x455d33
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
jmp 0x455d33
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00404868
add esp, 0x104
pop esi
pop ebx
ret

Function at 0x4570cc
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x45713a
mov eax, esi
call fcn.00440c98
test al, al
je 0x45713a
mov eax, dword [ebx + 0x84]
call fcn.004408e8
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x45713a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xf0]
test al, al
je 0x45712e
push 0
mov eax, dword [ebx + 0x84]
call fcn.004408e8
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.0043887c
jmp 0x45713a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.00456f08
pop esi
pop ebx
ret
Function at 0x402900
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x57943a
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x9cc
push esi
push edi
mov edi, ecx
call fcn.0042756b
push 0x409
call dword [sym.imp.KERNEL32.dll_SetThreadLocale]
push 0x409
call dword [sym.imp.KERNEL32.dll_SetThreadUILanguage]
push 0xc
call fcn.0041aaa5
add esp, 4
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x402960
mov ecx, eax
call fcn.00429f5d
mov esi, eax
jmp 0x402962
xor esi, esi
push 0x58a4e0
mov dword [ebp - 4], 0xffffffff
call fcn.004237a4
push 0x5bfae8
mov ecx, edi
call fcn.00428543
push 0x5bfb38
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4029f0
push 0
lea eax, [edi + 0xcc]
push eax
lea eax, [edi + 0xdc]
push eax
call dword [sym.imp.gdiplus.dll_GdiplusStartup]
lea ecx, [ebp - 0x9d8]
call fcn.00406c60
lea eax, [ebp - 0x9d8]
mov dword [ebp - 4], 1
mov ecx, eax
mov dword [edi + 0x20], eax
call fcn.00429780
test esi, esi
je 0x4029e0
mov eax, dword [esi]
mov ecx, esi
push 1
call dword [eax + 4]
call fcn.0042b39b
lea ecx, [ebp - 0x9d8]
call fcn.00407230
mov ecx, dword [ebp - 0xc]
xor eax, eax
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x402d30
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov eax, edi
shr eax, 4
inc eax
push 6
movzx eax, ax
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov dword [ebp + 0xc], eax
test eax, eax
jne 0x402d59
pop edi
pop ebx
pop ebp
ret
push esi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
jne 0x402d6f
xor esi, esi
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x402d66
push dword [ebp + 0xc]
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
lea ecx, [esi + eax]
and edi, 0xf
jbe 0x402da2
nop
cmp esi, ecx
jae 0x402d66
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edi, 1
jne 0x402d90
cmp esi, ecx
jae 0x402d66
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x403030
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
movzx eax, word [ebp + 8]
mov dword [ebp + 8], eax
pop ebp
jmp fcn.0042940d
Function at 0x406670
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5796d5
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x240
push esi
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push 0x11
push dword [0x5f4528]
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderLocation]
mov dword [ebp - 0x3c], 0
mov dword [ebp - 0x28], 0
call dword [sym.imp.USER32.dll_GetForegroundWindow]
mov dword [ebp - 0x44], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x40], eax
mov eax, dword [0x5f4654]
add eax, 0xfffffff0
mov dword [ebp - 0x34], 0x41
push eax
mov dword [ebp - 0x38], 0x5c428c
call fcn.0040c100
add esp, 4
lea esi, [eax + 0x10]
mov dword [ebp - 0x14], esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x30], 0x406640
cmp dword [esi - 4], 1
jle 0x40670c
push dword [esi - 0xc]
lea ecx, [ebp - 0x14]
call fcn.0040bf80
mov esi, dword [ebp - 0x14]
push ebx
push edi
lea eax, [ebp - 0x44]
mov dword [ebp - 0x2c], esi
push eax
call dword [sym.imp.SHELL32.dll_SHBrowseForFolderW]
mov ebx, eax
or edi, 0xffffffff
mov dword [ebp - 0x18], ebx
test ebx, ebx
je 0x4067c7
lea eax, [ebp - 0x24c]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetPathFromIDListW]
lea edx, [ebp - 0x24c]
lea ecx, [ebp - 0x24]
call fcn.0040f720
mov byte [ebp - 4], 1
mov ecx, dword [eax]
mov ebx, dword [0x5f4654]
add ebx, 0xfffffff0
lea edx, [ecx - 0x10]
cmp edx, ebx
je 0x4067a6
cmp dword [ebx + 0xc], 0
jl 0x406798
mov eax, dword [edx]
cmp eax, dword [ebx]
jne 0x406798
push edx
call fcn.0040c100
add esp, 4
mov dword [ebp - 0x20], eax
mov ecx, edi
lea edx, [ebx + 0xc]
lock xadd dword [edx], ecx
dec ecx
test ecx, ecx
jg 0x40678e
mov ecx, dword [ebx]
push ebx
mov edx, dword [ecx]
call dword [edx + 4]
mov eax, dword [ebp - 0x20]
add eax, 0x10
mov dword [0x5f4654], eax
jmp 0x4067a6
push dword [ecx - 0xc]
push ecx
mov ecx, 0x5f4654
call fcn.0040c1e0
mov byte [ebp - 4], 0
mov eax, edi
mov edx, dword [ebp - 0x24]
add edx, 0xfffffff0
lock xadd dword [edx + 0xc], eax
dec eax
test eax, eax
jg 0x4067c4
mov ecx, dword [edx]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ebx, dword [ebp - 0x18]
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.SHELL32.dll_SHGetMalloc]
test eax, eax
js 0x4067e8
mov eax, dword [ebp - 0x1c]
push ebx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x14]
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov dword [ebp - 4], 0xffffffff
add esi, 0xfffffff0
lock xadd dword [esi + 0xc], edi
dec edi
test edi, edi
pop edi
pop ebx
jg 0x406806
mov ecx, dword [esi]
push esi
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret