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

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x5c655f
add esp, 0xfffffff0
call fcn.00408024
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004c0e14
mov eax, dword [0x69457c]
cmp byte [eax], 0
jne 0x5c658c
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x194], al
mov eax, dword [0x694b44]
cmp word [eax + 2], 0
jne 0x5c65a6
mov eax, dword [0x694b44]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005c881c
mov eax, dword [0x694d28]
cmp word [eax + 2], 0
jne 0x5c65c0
mov eax, dword [0x694d28]
mov dword [eax + 4], ebx
mov dword [eax], fcn.005c8a20
mov byte [ebx + 0x41], 0
mov dl, 1
mov eax, dword [0x4f20c8]
call fcn.004f8490
mov esi, eax
mov dword [ebx + 0x54], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x5c8f98
mov dl, 1
mov eax, dword [0x4890cc]
call fcn.00407988
mov dword [ebx + 0xa8], eax
mov dl, 1
mov eax, dword [0x4890cc]
call fcn.00407988
mov dword [ebx + 0xc8], eax
xor eax, eax
mov dword [ebx + 0x74], eax
xor eax, eax
mov dword [ebx + 0x98], eax
mov dword [ebx + 0x70], 0xff000018
mov dword [ebx + 0x8c], 0x1f4
mov byte [ebx + 0x90], 1
xor eax, eax
mov dword [ebx + 0x94], eax
mov dword [ebx + 0x88], 0x9c4
mov byte [ebx + 0x9c], 0
mov byte [ebx + 0xbd], 1
mov byte [ebx + 0xd4], 1
mov dl, 1
mov eax, dword [0x4f6d68]
call fcn.00501dec
mov esi, eax
mov dword [ebx + 0xb8], esi
push 0x5c67a8
mov eax, dword [0x694914]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.00502284
mov eax, dword [ebx + 0xb8]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x5c9280
mov dl, 1
mov eax, dword [0x4890cc]
call fcn.00407988
mov dword [ebx + 0xb0], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x694914]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.004258bc
test eax, eax
je 0x5c66da
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.004256cc
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.004258a0
test eax, eax
je 0x5c66f2
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0xa4]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.0040a744
push ebx
push 0x5c81f8
call fcn.005bbddc
mov dword [ebx + 0x190], eax
mov byte [ebx + 0xe8], 0
mov eax, dword [0x69457c]
cmp byte [eax], 0
jne 0x5c6743
mov eax, ebx
call fcn.005c698c
mov byte [ebx + 0x6d], 1
mov byte [ebx + 0x6e], 1
mov byte [ebx + 0x6f], 1
mov byte [ebx + 0xbe], 1
mov byte [ebx + 0xe9], 0
mov byte [ebx + 0xf4], 0
xor eax, eax
mov dword [ebx + 0xec], eax
mov byte [ebx + 0xeb], 0
xor eax, eax
mov dword [ebx + 0xc0], eax
mov eax, ebx
call fcn.005c94b8
mov eax, ebx
call fcn.005ca124
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5c67a0
call fcn.0040807c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5c6cd0
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x188]
test eax, eax
je 0x5c6d72
cmp dword [ebx + 0xac], 0
jne 0x5c6d6c
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x5c6c0c
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0xa8]
cmp dword [eax + 8], 0
je 0x5c6d6c
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_GetWindowLongW
test al, 8
je 0x5c6d32
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0xa8]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x5c6d6c
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0xa8]
call fcn.004ab91c
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x5c6d41
inc dword [ebx + 0xac]
pop ecx
pop edx
pop esi
pop ebx
ret

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

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff8
mov ebx, edx
mov esi, eax
mov eax, dword [0x69b7b0]
cmp dword [eax + 0x188], 0
je 0x5c712a
test bl, bl
jne 0x5c7075
cmp dword [esi + 0xb4], 0
jne 0x5c706a
mov eax, esi
call fcn.005c9f74
push eax
push 0x5c6ea4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x58], 0
je 0x5c703b
mov eax, dword [0x69b7b0]
cmp byte [eax + 0xeb], 0
je 0x5c703b
mov eax, dword [esi + 0xf0]
mov dword [esp], eax
mov eax, dword [esp]
test eax, eax
je 0x5c701c
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c703b
push 0
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c7024
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c706a
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.004ab91c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c704a
inc dword [esi + 0xb4]
jmp 0x5c712a
cmp dword [esi + 0xb4], 0
jle 0x5c712a
dec dword [esi + 0xb4]
cmp dword [esi + 0xb4], 0
jne 0x5c712a
cmp dword [esi + 0x58], 0
je 0x5c70df
mov eax, dword [0x69b7b0]
cmp byte [eax + 0xeb], 0
je 0x5c70df
mov eax, dword [esi + 0xf0]
mov dword [esp + 4], eax
mov eax, dword [esp + 4]
test eax, eax
je 0x5c70c0
sub eax, 4
mov eax, dword [eax]
mov edi, eax
dec edi
cmp edi, 0
jl 0x5c70df
push 5
mov eax, dword [esi + 0xf0]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x5c70c8
mov eax, dword [esi + 0xb0]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x5c710e
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0xb0]
call fcn.004ab91c
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x5c70ee
mov eax, dword [esi + 0xb0]
mov edx, dword [eax]
call dword [edx + 8]
lea eax, [esi + 0xf0]
mov edx, dword [0x5b8c3c]
call fcn.0040bc98
pop ecx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x5c7d84
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffe00
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xc4], 0
je 0x5c7de1
cmp byte [ebx + 0xeb], 0
jne 0x5c7de1
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x188]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.00409a00
mov eax, dword [esi]
test eax, eax
je 0x5c7dce
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x5c7dee
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409c58
jmp 0x5c7dee
mov eax, esi
mov edx, dword [ebx + 0xa4]
call fcn.00409c58
add esp, 0x200
pop esi
pop ebx
ret

Function at 0x5c96a0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x98]
test esi, esi
je 0x5c9711
mov eax, esi
call fcn.00529654
test al, al
je 0x5c9711
mov eax, dword [ebx + 0x98]
call fcn.00529284
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x5c9711
mov eax, dword [ebx + 0x98]
mov edx, dword [eax]
call dword [edx + 0x118]
test al, al
je 0x5c9702
push 0
mov eax, dword [ebx + 0x98]
call fcn.00529284
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x98]
call fcn.0051fe68
jmp 0x5c9711
mov cl, 1
mov edx, dword [ebx + 0x88]
mov eax, ebx
call fcn.005c94d8
pop esi
pop ebx
ret
Function at 0x5cdfe0
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
cmp dword [ebx + 0x8c], 0
jne 0x5ce05a
mov eax, dword [ebx + 8]
call fcn.00529284
mov ecx, eax
mov dl, 1
mov eax, dword [0x535800]
call fcn.00523574
mov esi, eax
mov dword [ebx + 0x8c], esi
xor edx, edx
mov eax, esi
call fcn.00539fb0
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5cd8d8
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00529284
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x8c]
call fcn.00529284
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x9c], 0
jne 0x5ce0d0
mov eax, dword [ebx + 8]
call fcn.00529284
mov ecx, eax
mov dl, 1
mov eax, dword [0x535800]
call fcn.00523574
mov esi, eax
mov dword [ebx + 0x9c], esi
mov dl, 1
mov eax, esi
call fcn.00539fb0
mov dword [esi + 0x2bc], ebx
mov dword [esi + 0x2b8], 0x5cd924
push 8
push 0
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00529284
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x9c]
call fcn.00529284
push eax
call sub.user32.dll_ShowWindow
cmp dword [ebx + 0x94], 0
jne 0x5ce13c
mov eax, dword [ebx + 8]
call fcn.00529284
mov ecx, eax
mov dl, 1
mov eax, dword [0x536280]
call fcn.00523574
mov esi, eax
mov dword [ebx + 0x94], esi
mov eax, esi
mov byte [eax + 0x290], 1
push 8
push 3
call sub.user32.dll_GetSystemMetrics
push eax
push 2
call sub.user32.dll_GetSystemMetrics
push eax
push 0
push 0
push 0
mov eax, dword [ebx + 0x94]
call fcn.00529284
push eax
call sub.user32.dll_SetWindowPos
push 0
mov eax, dword [ebx + 0x94]
call fcn.00529284
push eax
call sub.user32.dll_ShowWindow
pop esi
pop ebx
ret
Function at 0x5d32a0
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffa4
xor eax, eax
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x5d34fa
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 0x28]
mov edx, 0x24
call fcn.005d7118
lea eax, [ebp - 0x28]
push eax
call sub.kernel32.dll_GetSystemInfo_1
mov eax, dword [ebp - 0x14]
mov dword [0x690f20], eax
mov eax, dword [ebp - 0xc]
mov dword [0x690f24], eax
mov eax, dword [ebp - 0x24]
mov dword [0x690f28], eax
mov eax, dword [0x6950d8]
cmp dword [eax], 2
sete byte [0x6906fd]
push 0x5d3508
call sub.kernel32.dll_GetModuleHandleW_2
lea edx, [ebp - 4]
call fcn.005d87ec
xor eax, eax
mov dword [ebp - 0x2c], eax
cmp byte [0x6906fd], 0
jne 0x5d332f
lea edx, [ebp - 0x5c]
mov eax, dword [ebp - 4]
call fcn.005d881c
test al, al
je 0x5d332f
mov eax, dword [ebp - 0x4c]
mov dword [0x69bd54], eax
jmp 0x5d3336
xor eax, eax
mov dword [0x69bd54], eax
call fcn.005d2860
and eax, 0x7f
cmp eax, 0x1a
ja case.0x5d3347.0
jmp dword [eax*4 + 0x5d334e]
mov byte [0x6906f8], 1
jmp case.0x5d3347.0
mov byte [0x6906f9], 1
jmp case.0x5d3347.0
mov byte [0x6906fa], 1
jmp case.0x5d3347.0
mov byte [0x6906fb], 1
jmp case.0x5d3347.0
mov byte [0x6906fc], 1
jmp case.0x5d3347.0
mov byte [0x6906fe], 1
mov byte [0x6906ff], 1
jmp case.0x5d3347.0
mov byte [0x6906fe], 1
mov byte [0x690700], 1
jmp case.0x5d3347.0
mov byte [0x6906fe], 1
mov byte [0x690700], 1
mov byte [0x690701], 1
jmp case.0x5d3347.0
mov byte [0x690702], 1
jmp case.0x5d3347.0
mov byte [0x690703], 1
jmp case.0x5d3347.0
mov byte [0x690704], 1
jmp case.0x5d3347.0
mov byte [0x690705], 1
jmp case.0x5d3347.0
mov byte [0x690706], 1
jmp case.0x5d3347.0
mov byte [0x690707], 1
jmp case.0x5d3347.0
mov byte [0x690708], 1
jmp case.0x5d3347.0
mov byte [0x690709], 1
jmp case.0x5d3347.0
mov byte [0x69070a], 1
jmp case.0x5d3347.0
mov byte [0x69070b], 1
jmp case.0x5d3347.0
mov byte [0x69070c], 1
jmp case.0x5d3347.0
mov byte [0x69070d], 1
jmp case.0x5d3347.0
mov byte [0x69070e], 1
jmp case.0x5d3347.0
mov byte [0x69070f], 1
jmp case.0x5d3347.0
mov byte [0x690710], 1
jmp case.0x5d3347.0
mov byte [0x690711], 1
jmp case.0x5d3347.0
mov byte [0x690712], 1
jmp case.0x5d3347.0
mov byte [0x690713], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d3501
lea eax, [ebp - 4]
call fcn.00409878
ret

Function at 0x5d44e4
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
xor edx, edx
mov dword [ebp - 0x14], edx
xor edx, edx
push ebp
push 0x5d4548
push dword fs:[edx]
mov dword fs:[edx], esp
push 6
lea edx, [ebp - 0xe]
push edx
push 0x1004
push eax
call sub.kernel32.dll_GetLocaleInfoW_1
lea eax, [ebp - 0x14]
lea edx, [ebp - 0xe]
mov ecx, 7
call fcn.0040a744
mov eax, dword [ebp - 0x14]
push eax
call sub.kernel32.dll_GetACP_1
mov edx, eax
pop eax
call fcn.00424784
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d454f
lea eax, [ebp - 0x14]
call fcn.00409878
ret
Function at 0x5d56c8
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
xor eax, eax
push ebp
push 0x5d575e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [0x6950d8]
cmp dword [eax], 2
jne 0x5d5708
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
push esi
push ebx
call sub.advapi32.dll_RegQueryValueExW_1
mov ebx, eax
jmp 0x5d5740
lea eax, [ebp - 8]
mov edx, esi
call fcn.0040a420
mov edx, dword [ebp - 8]
lea eax, [ebp - 4]
mov ecx, 0
call fcn.0040a050
mov eax, dword [ebp + 8]
push eax
mov eax, dword [ebp + 0xc]
push eax
mov eax, dword [ebp + 0x10]
push eax
push edi
mov eax, dword [ebp - 4]
call fcn.0040a2b0
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA
mov ebx, eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d5765
lea eax, [ebp - 8]
call fcn.004098c0
lea eax, [ebp - 4]
call fcn.0040989c
ret

Function at 0x5d5b90
Capabilities:
Query or enumerate registry value

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]
xor eax, eax
mov dword [esi], eax
xor eax, eax
mov dword [ebp - 8], eax
push 0x20019
lea eax, [ebp - 8]
push eax
mov eax, edi
call fcn.0040a688
mov edx, eax
mov eax, ebx
call fcn.005d5538
mov edx, eax
xor ecx, ecx
mov eax, ebx
call fcn.005d5610
test eax, eax
sete al
mov ebx, eax
test bl, bl
je 0x5d5c02
push 0
push 0
push esi
push 0
mov eax, dword [ebp - 4]
call fcn.0040a688
push eax
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
sete bl
mov eax, dword [ebp - 8]
push eax
call sub.advapi32.dll_RegCloseKey_1
mov eax, ebx
pop edi
pop esi
pop ebx
pop ecx
pop ecx
pop ebp
ret 4
Function at 0x5d6e14
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push ebx
push esi
push edi
test dl, dl
je 0x5d6e2c
add esp, 0xfffffff0
call fcn.00408024
mov esi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
xor eax, eax
push ebp
push 0x5d6f11
push dword fs:[eax]
mov dword fs:[eax], esp
mov byte [ebx + 8], 0
lea eax, [ebx + 0x10]
mov edx, esi
call fcn.00409c58
test esi, esi
jne 0x5d6e7e
xor eax, eax
mov dword [ebx + 0xc], eax
push 0
push 0
push 0
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5d64c8]
call fcn.005d6cac
mov dword [ebx + 4], eax
mov eax, 0x10
call fcn.00406a34
mov dword [ebx + 0x14], eax
jmp 0x5d6eec
push 0
push 0
lea eax, [ebp - 8]
mov ecx, esi
mov edx, 0x5d6f48
call fcn.0040a8f4
mov eax, dword [ebp - 8]
push eax
xor ecx, ecx
mov dl, 1
mov eax, dword [0x5d64c8]
call fcn.005d6cac
mov edi, eax
mov dword [ebx + 4], edi
movzx eax, byte [edi + 4]
mov byte [ebx + 8], al
lea eax, [ebp - 0xc]
mov ecx, esi
mov edx, 0x5d6f70
call fcn.0040a8f4
mov eax, dword [ebp - 0xc]
call fcn.0040a688
push eax
push 0x10
push 0
push 4
push 0
push 0xffffffffffffffff
call sub.kernel32.dll_CreateFileMappingW
mov edi, eax
mov dword [ebx + 0xc], edi
push 0
push 0
push 0
push 2
push edi
call sub.kernel32.dll_MapViewOfFile
mov dword [ebx + 0x14], eax
mov edx, dword [ebp + 8]
mov eax, ebx
call fcn.005d7094
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d6f18
lea eax, [ebp - 0xc]
mov edx, 2
call fcn.004098d8
ret
Function at 0x5d80c0
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x5d80d5
add esp, 0xfffffff0
call fcn.00408024
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0x10]
xor edx, edx
mov eax, ebx
call fcn.00407988
test edi, edi
jne 0x5d8103
mov ecx, dword [0x69475c]
mov dl, 1
mov eax, dword [0x5d8000]
call fcn.005d1f04
call fcn.00408ef8
mov eax, edi
mov dword [ebx + 0x10], eax
cmp byte [eax + 0x10], 1
sete dl
lea eax, [ebp + 8]
call fcn.005d31b4
push dword [ebp + 0xc]
push dword [ebp + 8]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.005d1888
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
push esi
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebp + 0x14]
push eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_MapViewOfFile
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5d816a
mov ecx, dword [0x694f0c]
mov dl, 1
mov eax, dword [0x5d8000]
call fcn.005d1f04
call fcn.00408ef8
test esi, esi
jne 0x5d81b1
mov eax, edi
mov edx, dword [0x689c14]
call fcn.00407c88
test al, al
je 0x5d81b1
push 0
mov eax, dword [edi + 0x18]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d81b1
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov ecx, dword [0x694d64]
mov dl, 1
mov eax, dword [0x5d8000]
call fcn.005d1f04
call fcn.00408ef8
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004b2b04
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x14]
mov edx, ebx
call fcn.004ab738
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5d81e1
call fcn.0040807c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
Function at 0x5d81ec
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
test dl, dl
je 0x5d8201
add esp, 0xfffffff0
call fcn.00408024
mov edi, ecx
mov byte [ebp - 1], dl
mov ebx, eax
mov esi, dword [ebp + 0x14]
xor edx, edx
mov eax, ebx
call fcn.00407988
test edi, edi
jne 0x5d822f
mov ecx, dword [0x69475c]
mov dl, 1
mov eax, dword [0x5d8000]
call fcn.005d1f04
call fcn.00408ef8
mov eax, edi
mov dword [ebx + 0x10], eax
cmp byte [eax + 0x10], 1
sete dl
lea eax, [ebp + 0xc]
call fcn.005d31b4
mov eax, dword [ebx + 0x10]
cmp byte [eax + 0x10], 1
sete dl
lea eax, [ebp + 8]
call fcn.005d3234
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea edx, [ebp - 0x10]
lea eax, [ebp - 0xc]
call fcn.005d1888
mov eax, dword [ebp - 0x10]
mov dword [ebx + 0x14], eax
mov eax, dword [ebp - 0xc]
mov dword [ebx + 0x18], eax
mov edx, dword [ebp + 8]
push edx
push esi
push eax
mov eax, dword [ebx + 0x14]
push eax
mov eax, dword [ebp + 0x18]
push eax
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 8]
push eax
call sub.kernel32.dll_MapViewOfFileEx
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x5d82ac
mov ecx, dword [0x694f0c]
mov dl, 1
mov eax, dword [0x5d8000]
call fcn.005d1f04
call fcn.00408ef8
test esi, esi
jne 0x5d82f3
mov eax, edi
mov edx, dword [0x689c14]
call fcn.00407c88
test al, al
je 0x5d82f3
push 0
mov eax, dword [edi + 0x18]
push eax
call sub.kernel32.dll_GetFileSize
mov esi, eax
cmp esi, 0xffffffff
jne 0x5d82f3
mov eax, dword [ebp - 8]
push eax
call sub.kernel32.dll_UnmapViewOfFile
mov ecx, dword [0x694d64]
mov dl, 1
mov eax, dword [0x5d8000]
call fcn.005d1f04
call fcn.00408ef8
mov ecx, esi
mov edx, dword [ebp - 8]
mov eax, ebx
call fcn.004b2b04
mov eax, dword [ebx + 0x10]
mov eax, dword [eax + 0x14]
mov edx, ebx
call fcn.004ab738
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x5d8323
call fcn.0040807c
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x5d881c
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 4], ecx
mov dword [ebp - 8], edx
mov esi, eax
xor eax, eax
push ebp
push 0x5d88d2
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
xor eax, eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
mov eax, esi
call fcn.0040a688
push eax
call sub.version.dll_GetFileVersionInfoSizeW
mov edi, eax
test edi, edi
jbe 0x5d88bc
lea eax, [ebp - 4]
mov edx, edi
call fcn.0040a81c
xor eax, eax
mov dword [ebp - 0xc], eax
xor eax, eax
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 4]
push eax
push edi
mov eax, dword [ebp - 0x10]
push eax
mov eax, esi
call fcn.0040a688
push eax
call sub.version.dll_GetFileVersionInfoW
test eax, eax
je 0x5d88bc
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x5d88e4
mov eax, dword [ebp - 4]
push eax
call sub.version.dll_VerQueryValueW
test eax, eax
je 0x5d88bc
cmp dword [ebp - 0xc], 0x34
jne 0x5d88bc
mov bl, 1
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp - 8]
mov esi, eax
mov edi, edx
mov ecx, 0xd
rep movsd dword es:[edi], dword [esi]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5d88d9
lea eax, [ebp - 4]
call fcn.00409878
ret

Function at 0x5d97ec
Capabilities:
Enumerate gui resources

Disassembly:
add esp, 0xfffffff8
mov dword [esp], edx
xor eax, eax
mov dword [esp + 4], eax
mov eax, esp
push eax
push 0x5d9730
call sub.user32.dll_EnumWindows
mov eax, dword [esp + 4]
pop ecx
pop edx
ret

Function at 0x5da6d4
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
mov eax, esi
call fcn.0040a688
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edi
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x18]
push eax
push 0x5da5f0
call sub.user32.dll_EnumWindows
cmp eax, 1
sbb eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x5dec88
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
xor ebx, ebx
mov dword [ebp - 4], ebx
test dl, dl
je 0x5deca0
add esp, 0xfffffff0
call fcn.00408024
mov byte [ebp - 9], dl
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 0xc]
xor eax, eax
push ebp
push 0x5dedba
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 8]
mov dword [eax + 4], ecx
mov eax, dword [ebp - 8]
mov dword [eax + 8], ebx
mov eax, ebx
add eax, eax
add eax, eax
add eax, eax
call fcn.00406a34
mov edx, dword [ebp - 8]
mov dword [edx + 0xc], eax
dec ebx
test ebx, ebx
jl 0x5deda4
inc ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x14]
push eax
mov eax, dword [ebp - 0x10]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x18]
call fcn.005101fc
xor eax, eax
push ebp
push 0x5ded91
push dword fs:[eax]
mov dword fs:[eax], esp
push 0
push 0
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x30]
call fcn.005101fc
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0xc]
mov edx, dword [ebp - 0x10]
lea ebx, [eax + edx*8]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 8]
mov eax, dword [eax + 8]
mov dword [ebx], eax
lea eax, [ebx + 4]
mov edx, dword [ebp - 4]
call fcn.0040a780
jmp 0x5ded62
lea eax, [ebx + 4]
mov ecx, 1
mov edx, 1
call fcn.0040aaac
mov eax, dword [ebx + 4]
call fcn.00409d78
dec eax
jle 0x5ded76
mov eax, dword [ebx + 4]
cmp word [eax], 0x5f
je 0x5ded50
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5ded98
mov eax, dword [ebp - 0x14]
push eax
mov eax, dword [ebp + 8]
push eax
mov eax, dword [eax]
call dword [eax + 0x54]
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x5dedc1
lea eax, [ebp - 4]
call fcn.004098c0
ret