joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4490ed
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00437870
mov eax, dword [0x4a9e6c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.004440c6
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x449220
push 2
push esi
push dword [ebp + 8]
call fcn.004440c6
add esp, 0xc
cmp eax, ebx
je 0x449220
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x4491c0
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00439a30
push 0x8000
push dword [ebp + 8]
call fcn.00449c80
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x449176
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.00443d9b
add esp, 0xc
cmp eax, 0xffffffff
je 0x449196
sub edi, eax
test edi, edi
jg 0x44916e
jmp 0x4491ae
call fcn.0043aa8a
cmp dword [eax], 5
jne 0x4491ab
call fcn.0043aa81
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00449c80
pop ecx
pop ecx
jmp 0x449208
jge 0x449208
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004440c6
push dword [ebp + 8]
call fcn.0043a73b
add esp, 0x10
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
mov esi, eax
neg esi
sbb esi, esi
neg esi
dec esi
cmp esi, ebx
jne 0x449208
call fcn.0043aa81
mov dword [eax], 0xd
call fcn.0043aa8a
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [edi], eax
push 0
push dword [ebp - 0x1008]
push dword [ebp + 8]
call fcn.004440c6
add esp, 0xc
mov eax, esi
pop edi
jmp 0x449222
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004368a4
leave
ret
Function at 0x4493ed
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x494b38
call fcn.0043b530
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4ad544], edi
jne 0x449431
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44941c
mov dword [0x4ad544], ebx
jmp 0x449431
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x449431
mov dword [0x4ad544], 2
mov eax, dword [0x4ad544]
cmp eax, ebx
jne 0x449451
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x449514
cmp eax, 2
je 0x44945a
cmp eax, edi
jne 0x449482
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x44946d
mov eax, dword [0x4ad4b4]
mov dword [ebp + 0x18], eax
push edi
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
mov dword [ebp - 0x20], eax
cmp eax, edi
jne 0x449489
xor eax, eax
jmp 0x449514
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.00437870
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4494bc
cmp esi, edi
jne 0x4494d2
push dword [ebp - 0x20]
call fcn.00437c7d
pop ecx
mov esi, eax
cmp esi, edi
je 0x449482
mov dword [ebp - 0x24], ebx
push dword [ebp - 0x20]
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
test eax, eax
je 0x449505
cmp dword [ebp + 0x14], edi
jne 0x4494ef
push edi
push edi
jmp 0x4494f5
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push esi
push ebx
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x24], edi
je 0x449511
push esi
call fcn.00437b65
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0043b56b
ret
Function at 0x44951d
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x494b48
call fcn.0043b530
xor esi, esi
cmp dword [0x4ad548], esi
jne 0x449561
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x44954c
mov dword [0x4ad548], edi
jmp 0x449561
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x449561
mov dword [0x4ad548], 2
mov eax, dword [0x4ad548]
cmp eax, 2
je 0x449642
cmp eax, esi
je 0x449642
cmp eax, 1
jne 0x4495a6
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x44958f
mov eax, dword [0x4ad4b4]
mov dword [ebp + 0x18], eax
push esi
push esi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
mov ebx, eax
mov dword [ebp - 0x24], ebx
cmp ebx, esi
jne 0x4495ad
xor eax, eax
jmp 0x449654
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.00437870
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4495e3
cmp edi, esi
jne 0x4495fe
lea eax, [ebx + ebx]
push eax
call fcn.00437c7d
pop ecx
mov edi, eax
cmp edi, esi
je 0x4495a6
mov dword [ebp - 0x20], 1
push ebx
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x449631
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x44961b
push esi
push esi
jmp 0x449621
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0xffffffffffffffff
push edi
push esi
push dword [ebp + 0x18]
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x20], esi
je 0x44963d
push edi
call fcn.00437b65
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x449654
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoA]
lea esp, [ebp - 0x34]
call fcn.0043b56b
ret
Function at 0x449aab
Capabilities:
Set environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
push ebx
xor ebx, ebx
cmp eax, ebx
push edi
mov dword [ebp - 0x10], ebx
jne 0x449ac4
or eax, 0xffffffff
jmp 0x449b25
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x449b21
push 0x3d
push esi
call fcn.00436e82
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x449b21
cmp esi, eax
je 0x449b21
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4ad098]
sete cl
cmp eax, dword [0x4ad09c]
mov dword [ebp - 8], ecx
jne 0x449b07
mov edi, eax
call fcn.00449a4a
mov dword [0x4ad098], eax
cmp eax, ebx
jne 0x449b60
cmp dword [ebp + 0xc], ebx
je 0x449b29
cmp dword [0x4ad0a0], ebx
je 0x449b29
call fcn.0044905d
test eax, eax
je 0x449b60
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x449b32
xor eax, eax
jmp 0x449b24
push 4
call fcn.00437c7d
cmp eax, ebx
pop ecx
mov dword [0x4ad098], eax
je 0x449b21
mov dword [eax], ebx
cmp dword [0x4ad0a0], ebx
jne 0x449b60
push 4
call fcn.00437c7d
cmp eax, ebx
pop ecx
mov dword [0x4ad0a0], eax
je 0x449b21
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4ad098]
call fcn.004499fd
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x449bc1
cmp dword [esi], ebx
je 0x449bc1
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00437b65
cmp dword [ebp - 8], ebx
pop ecx
jne 0x449ba4
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x449c02
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x449b9b
mov eax, edi
shl eax, 2
push eax
push dword [0x4ad098]
call fcn.00439fe8
cmp eax, ebx
pop ecx
pop ecx
je 0x449c02
jmp 0x449bfd
cmp dword [ebp - 8], ebx
jne 0x449c6d
cmp edi, ebx
jge 0x449bd0
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4ad098]
call fcn.00439fe8
cmp eax, ebx
pop ecx
pop ecx
je 0x449b21
mov edx, dword [ebp - 4]
lea ecx, [eax + edi*4]
mov dword [ecx], edx
mov dword [ecx + 4], ebx
mov ecx, dword [ebp + 8]
mov dword [ecx], ebx
mov dword [0x4ad098], eax
cmp dword [ebp + 0xc], ebx
je 0x449c57
push dword [ebp - 4]
call fcn.00439dd0
inc eax
inc eax
push eax
call fcn.00437c7d
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x449c57
push dword [ebp - 4]
push esi
call fcn.0043e320
mov eax, esi
sub eax, dword [ebp - 4]
pop ecx
add eax, dword [ebp - 0xc]
pop ecx
mov ecx, dword [ebp - 8]
mov byte [eax], bl
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x449c50
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00437b65
pop ecx
cmp dword [ebp - 8], ebx
je 0x449c65
push dword [ebp - 4]
call fcn.00437b65
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x449b24
push dword [ebp - 4]
call fcn.00437b65
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x449b2e
Function at 0x44b243
Capabilities:
Get common file path

Disassembly:
push 0x120
push 0x498928
call fcn.0043b530
mov eax, dword [0x4a9e6c]
mov dword [ebp - 0x1c], eax
lea edi, [ebp - 0x124]
and dword [ebp - 0x128], 0
mov eax, edi
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
mov dword [ebp - 0x12c], esi
cmp esi, 0x104
jle 0x44b2e7
and dword [ebp - 4], 0
lea eax, [esi + 1]
add eax, 3
and eax, 0xfffffffc
call fcn.00437870
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x130], edi
jmp 0x44b2d4
or dword [ebp - 4], 0xffffffff
test esi, esi
je 0x44b2e7
push edi
inc esi
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
mov esi, eax
xor ebx, ebx
test esi, esi
je 0x44b302
cmp byte [edi + 1], 0x3a
jne 0x44b302
movzx eax, byte [edi]
push eax
call fcn.0044b50c
pop ecx
mov ebx, eax
sub ebx, 0x40
cmp dword [ebp - 0x128], 0
je 0x44b312
push edi
call fcn.00437b65
pop ecx
mov eax, ebx
lea esp, [ebp - 0x13c]
mov ecx, dword [ebp - 0x1c]
call fcn.004368a4
call fcn.0043b56b
ret
Function at 0x44b956
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x48141d
call fcn.00439a10
sub esp, 0x9c
mov eax, dword [0x4a9e6c]
push ebx
push esi
push edi
push dword [ebp + 0x1c]
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xa8], esi
call fcn.004580f6
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.004046c0
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x44b9e7
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00439a30
add esp, 0xc
lea eax, [ebp - 0xa4]
push eax
mov dword [ebp - 0xa4], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x94], 2
jne 0x44b9e0
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x44b9e7
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00437c7d
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x44b9fc
call fcn.0044b5a7
push dword [ebp + 0x20]
push ebx
push eax
call fcn.00439a30
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0x20]
mov dword [esi + 0x74], eax
add esp, 0xc
neg eax
sbb eax, eax
add eax, 0x7005
mov dword [esi + 0x50], eax
mov eax, dword [esi + 0x70]
mov dword [esi + 0x1c0], ebx
lea ecx, [esi + 0x7c]
mov byte [ecx], bl
lea edi, [esi + 0xbc]
mov byte [edi], bl
mov dword [eax], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0xc]
mov dword [eax + 0x1c], edi
mov eax, dword [esi + 0x70]
mov dword [eax + 0x20], 0x104
mov eax, dword [esi + 0x70]
mov dword [eax + 0x3c], edx
mov eax, dword [esi + 0x70]
mov edx, dword [ebp + 0x14]
mov dword [eax + 0x24], ecx
mov eax, dword [esi + 0x70]
push 0x40
pop ecx
mov dword [eax + 0x28], ecx
mov eax, dword [esi + 0x70]
or edx, 0x80020
or dword [eax + 0x34], edx
test byte [ebp + 0x14], cl
je 0x44ba79
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.00472506
cmp dword [ebp + 0x10], ebx
mov eax, dword [eax + 0xc]
mov ecx, dword [esi + 0x70]
mov dword [ecx + 8], eax
mov eax, dword [esi + 0x70]
mov dword [eax + 0x44], 0x44c1ae
je 0x44baa5
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x44badb
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00406db0
push ebx
mov ecx, edi
call fcn.00404700
jmp 0x44bac4
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.00436e82
cmp eax, ebx
pop ecx
pop ecx
jne 0x44bac1
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, esi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004368a4
leave
ret 0x1c

Function at 0x453c11
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x453c4a
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040aa70
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00404010
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x45505e
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
xor ebx, ebx
cmp dword [esp + 0x14], edi
mov ebp, ecx
je 0x4550a1
call fcn.00472506
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x4550a1
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4550bc
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.004541c3
test ebx, ebx
mov esi, eax
je 0x4550ba
test edi, edi
je 0x4550ba
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x455db5
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x47f46e
call fcn.00439a10
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x455dda
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x455e26
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp - 0x10], eax
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
and dword [ebp - 4], 0
lea edx, [ebp - 0x10]
push edx
call dword [eax + 0x8c]
push dword [ebp + 0xc]
push dword [ebp - 0x10]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401830
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x45732b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x47f814
call fcn.00439a10
sub esp, 0x150
mov eax, dword [0x4a9e6c]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x154]
push eax
push edi
mov esi, 0x104
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
xor ebx, ebx
cmp eax, ebx
jne 0x457373
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x457377
cmp eax, esi
jb 0x45737e
xor eax, eax
jmp 0x457453
call fcn.00456579
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0xc]
add eax, 0x10
mov dword [ebp + 8], eax
lea eax, [ebp + 8]
push eax
push edi
mov dword [ebp - 4], ebx
call fcn.004572e9
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x457443
push ebx
push ebx
lea eax, [ebp - 0x158]
push eax
lea eax, [ebp - 0x15c]
push eax
push ebx
push ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x4573d2
xor esi, esi
jmp 0x457446
test byte [ebp - 0x158], 2
jne 0x4573e2
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x457443
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x457443
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x4573ce
cmp dword [ebp - 0x154], edi
jbe 0x4573ce
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x4573ce
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401830
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
pop ebx
call fcn.004368a4
leave
ret 8

Function at 0x4584df
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, ecx
cmp dword [edi + 0x54], 0
mov eax, dword [edi + 0x58]
mov esi, dword [edi + 0x5c]
mov dword [ebp - 4], eax
je 0x458516
call fcn.00472506
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x458527
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x458560
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x458545
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x45854d
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x45855e
test ax, ax
jne 0x45855e
test si, si
je 0x458560
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x45856f
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x4587c1
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x47fa94
call fcn.00439a10
sub esp, 0x18
push ebx
push esi
mov esi, ecx
mov eax, dword [esi + 0x58]
mov ebx, dword [esi + 0x5c]
push edi
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], eax
call fcn.00472506
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x45880f
call fcn.00472506
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x458820
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x45882c
or eax, 0xffffffff
jmp 0x45892f
mov ecx, esi
call fcn.00458301
mov dword [ebp - 0x14], eax
call fcn.00452cd8
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x45886f
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x45886f
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45886f
push 0
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
mov dword [ebp - 0x20], 1
and dword [ebp - 4], 0
push esi
call fcn.004546f2
push dword [ebp - 0x14]
call fcn.00452c30
push edi
push eax
push ebx
mov ecx, esi
call fcn.004585b4
xor ebx, ebx
cmp eax, ebx
je 0x4588e3
test byte [esi + 0x38], 0x10
je 0x4588b1
push 4
pop edi
mov ecx, esi
call fcn.00455636
test ah, 1
je 0x4588a9
push 5
pop edi
push edi
mov ecx, esi
call fcn.004526d4
cmp dword [esi + 0x1c], ebx
je 0x4588e3
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00455954
jmp 0x4588e3
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x4588f7
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x458910
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x458910
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_SetActiveWindow]
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x60]
mov ecx, esi
call fcn.0045833b
cmp dword [esi + 0x54], ebx
je 0x45892c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, dword [esi + 0x40]
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
leave
ret

Function at 0x458969
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov dword [ebp - 4], ecx
xor ebx, ebx
call fcn.00472506
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x4589a0
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
mov ecx, dword [ebp - 4]
push esi
push dword [ebp + 0xc]
push ebx
call fcn.004585b4
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 8
Function at 0x4589f8
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
test ebx, 0xffff0000
push esi
push edi
mov edi, ecx
mov dword [edi + 0x54], ebx
jne 0x458a18
cmp dword [edi + 0x50], 0
jne 0x458a18
movzx eax, bx
mov dword [edi + 0x50], eax
call fcn.00472506
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
push dword [esp + 0x18]
mov ebx, eax
push ebx
mov ecx, edi
call fcn.004589bf
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
mov eax, esi
pop esi
pop ebx
ret 8

Function at 0x4592bc
Capabilities:
Resume thread
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
push edi
push 0x1c
xor ebx, ebx
lea eax, [ebp - 0x1c]
push ebx
push eax
mov esi, ecx
call fcn.00439a30
add esp, 0xc
call fcn.004724d0
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventA]
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x18], esi
call edi
push ebx
push ebx
push 1
push ebx
mov dword [ebp - 0xc], eax
call edi
cmp dword [ebp - 0xc], ebx
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x14], eax
je 0x45938c
cmp dword [ebp - 8], ebx
je 0x459387
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x45918e
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0043b3b4
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x459396
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push 0xffffffffffffffff
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [ebp - 0xc]
call edi
test byte [ebp + 8], 4
je 0x45935f
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x459379
push 0xffffffffffffffff
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push dword [esi + 0x28]
call edi
mov dword [esi + 0x28], ebx
jmp 0x459391
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x459398
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x459396
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc