joyce8/EMBER2024-capa huggingface dataset:
Function at 0x453fae
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4ad848], ebx
push esi
push edi
jne 0x45402e
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x454069
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
mov dword [0x4ad848], eax
je 0x454069
push 0x497b64
push edi
call esi
push 0x497b50
push edi
mov dword [0x4ad84c], eax
call esi
cmp dword [0x4ad2dc], 2
mov dword [0x4ad850], eax
jne 0x45402e
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x4ad858], eax
je 0x45402e
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x4ad854], eax
mov eax, dword [0x4ad854]
test eax, eax
je 0x454073
call eax
test eax, eax
je 0x45405a
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4ad858]
test eax, eax
je 0x45405a
test byte [ebp - 8], 1
jne 0x454073
cmp dword [0x4ad2e8], 4
jb 0x45406d
or byte [ebp + 0x12], 0x20
jmp 0x454092
xor eax, eax
jmp 0x4540a2
or byte [ebp + 0x12], 4
jmp 0x454092
mov eax, dword [0x4ad84c]
test eax, eax
je 0x454092
call eax
mov ebx, eax
test ebx, ebx
je 0x454092
mov eax, dword [0x4ad850]
test eax, eax
je 0x454092
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4ad848]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x454314
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x4a8ae4]
push esi
mov esi, dword [ebp + 8]
xor eax, ebp
test esi, esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
je 0x45439c
push esi
call fcn.00457988
test eax, eax
pop ecx
jne 0x454364
call fcn.0044d0a3
mov dword [eax], 0xf
call fcn.0044d09a
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0044a318
leave
ret
and word [ebp - 6], 0
lea eax, [ebp - 0x218]
push eax
add esi, 0x40
lea eax, [ebp - 0x214]
push eax
mov word [ebp - 0xc], si
mov esi, 0x104
push esi
lea eax, [ebp - 0xc]
push eax
mov word [ebp - 0xa], 0x3a
mov word [ebp - 8], 0x2e
call dword [sym.imp.KERNEL32.dll_GetFullPathNameW]
jmp 0x4543af
lea eax, [ebp - 0x214]
push eax
mov esi, 0x104
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x454354
inc eax
cmp eax, esi
ja 0x454354
test edi, edi
mov ecx, edi
jne 0x4543e5
cmp eax, dword [ebp + 0x10]
jg 0x4543c6
mov eax, dword [ebp + 0x10]
add eax, eax
push eax
call fcn.0044a731
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x4543fa
call fcn.0044d09a
mov dword [eax], 0xc
jmp 0x454354
cmp eax, dword [ebp + 0x10]
jle 0x4543fa
call fcn.0044d09a
mov dword [eax], 0x22
jmp 0x454354
lea eax, [ebp - 0x214]
push eax
push ecx
call fcn.0044a5c9
pop ecx
pop ecx
jmp 0x454356
Function at 0x4553cf
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a4]
sub esp, 0x424
mov eax, dword [0x4a8ae4]
xor ecx, ecx
xor eax, ebp
cmp dword [ebp + 0x3b4], ecx
push edi
mov edi, dword [ebp + 0x3b0]
mov dword [ebp + 0x3a0], eax
mov dword [ebp - 0x7c], edi
mov dword [ebp - 0x74], ecx
mov dword [ebp - 0x78], ecx
jne 0x45540b
xor eax, eax
jmp 0x455575
mov eax, dword [ebp + 0x3ac]
push ebx
mov ebx, dword [ebp + 0x3ac]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x4aeca0]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x455449
push 2
push ecx
push ecx
push dword [ebp + 0x3ac]
call fcn.00457f17
add esp, 0x10
xor ecx, ecx
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x4554e3
cmp dword [ebp + 0x3b4], ecx
mov dword [ebp - 0x70], edi
mov dword [ebp - 0x68], ecx
jbe 0x455546
jmp 0x45546d
xor ecx, ecx
mov dword [ebp - 0x6c], ecx
mov ecx, dword [ebp - 0x70]
sub ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x64]
cmp ecx, dword [ebp + 0x3b4]
jae 0x4554a8
mov edx, dword [ebp - 0x70]
inc dword [ebp - 0x70]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x455499
inc dword [ebp - 0x78]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x6c]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x6c]
cmp dword [ebp - 0x6c], 0x400
jl 0x455479
mov edi, eax
lea eax, [ebp - 0x64]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x64]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455507
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x74], eax
cmp eax, edi
jl 0x455510
mov eax, dword [ebp - 0x70]
sub eax, dword [ebp - 0x7c]
cmp eax, dword [ebp + 0x3b4]
jb 0x45546b
jmp 0x455510
push ecx
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b4]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x455507
mov eax, dword [ebp - 0x80]
and dword [ebp - 0x68], 0
mov dword [ebp - 0x74], eax
jmp 0x455510
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x68], eax
mov eax, dword [ebp - 0x74]
test eax, eax
jne 0x455570
cmp dword [ebp - 0x68], eax
je 0x455543
push 5
pop esi
cmp dword [ebp - 0x68], esi
jne 0x455538
call fcn.0044d09a
mov dword [eax], 9
call fcn.0044d0a3
mov dword [eax], esi
jmp 0x45556b
push dword [ebp - 0x68]
call fcn.0044d0ac
pop ecx
jmp 0x45556b
mov edi, dword [ebp - 0x7c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x455558
cmp byte [edi], 0x1a
jne 0x455558
xor eax, eax
jmp 0x455573
call fcn.0044d09a
mov dword [eax], 0x1c
call fcn.0044d0a3
and dword [eax], 0
or eax, 0xffffffff
jmp 0x455573
sub eax, dword [ebp - 0x78]
pop esi
pop ebx
mov ecx, dword [ebp + 0x3a0]
xor ecx, ebp
pop edi
call fcn.0044a318
add ebp, 0x3a4
leave
ret
Function at 0x457988
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x4579b6
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x4579bb
cmp eax, 1
je 0x4579bb
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x459215
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 0x45922e
or eax, 0xffffffff
jmp 0x45928f
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 8], esi
je 0x45928b
push 0x3d
push esi
call fcn.00459a80
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x45928b
cmp esi, eax
je 0x45928b
xor ecx, ecx
cmp byte [eax + 1], cl
mov eax, dword [0x4ad2fc]
sete cl
cmp eax, dword [0x4ad300]
mov dword [ebp - 4], ecx
jne 0x459271
mov edi, eax
call fcn.004591b4
mov dword [0x4ad2fc], eax
cmp eax, ebx
jne 0x4592ca
cmp dword [ebp + 0xc], ebx
je 0x459293
cmp dword [0x4ad304], ebx
je 0x459293
call fcn.00458110
test eax, eax
je 0x4592ca
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 4], ebx
je 0x45929c
xor eax, eax
jmp 0x45928e
push 4
call fcn.0044a731
cmp eax, ebx
pop ecx
mov dword [0x4ad2fc], eax
je 0x45928b
mov dword [eax], ebx
cmp dword [0x4ad304], ebx
jne 0x4592ca
push 4
call fcn.0044a731
cmp eax, ebx
pop ecx
mov dword [0x4ad304], eax
je 0x45928b
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
mov ebx, dword [0x4ad2fc]
sub edi, esi
push esi
call fcn.00459167
mov edi, eax
test edi, edi
pop ecx
jl 0x459331
cmp dword [ebx], 0
je 0x459331
lea esi, [ebx + edi*4]
push dword [esi]
call fcn.00449dbf
xor eax, eax
cmp dword [ebp - 4], eax
pop ecx
jne 0x459311
mov ecx, dword [ebp - 8]
mov dword [esi], ecx
mov ecx, dword [ebp + 8]
mov esi, dword [ebp - 8]
mov dword [ecx], eax
jmp 0x459372
mov ecx, dword [esi + 4]
inc edi
mov dword [esi], ecx
lea esi, [ebx + edi*4]
cmp dword [esi], eax
jne 0x459308
mov eax, edi
shl eax, 2
push eax
push dword [0x4ad2fc]
call fcn.0044c548
test eax, eax
mov esi, dword [ebp - 8]
pop ecx
pop ecx
je 0x459372
jmp 0x45936d
cmp dword [ebp - 4], 0
jne 0x4593d9
test edi, edi
jge 0x459341
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4ad2fc]
call fcn.0044c548
test eax, eax
pop ecx
pop ecx
je 0x45928b
lea ecx, [eax + edi*4]
and dword [ecx + 4], 0
mov dword [ecx], esi
mov ecx, dword [ebp + 8]
and dword [ecx], 0
mov dword [0x4ad2fc], eax
cmp dword [ebp + 0xc], 0
je 0x4593c4
push esi
call fcn.0044c700
inc eax
inc eax
push eax
call fcn.0044a731
mov edi, eax
test edi, edi
pop ecx
pop ecx
je 0x4593c4
push esi
push edi
call fcn.0044fa20
mov eax, edi
sub eax, esi
add eax, dword [ebp - 0xc]
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov byte [eax], 0
inc eax
neg ecx
sbb ecx, ecx
not ecx
and ecx, eax
push ecx
push edi
call dword [sym.imp.KERNEL32.dll_SetEnvironmentVariableA]
test eax, eax
jne 0x4593bd
or dword [ebp - 0x10], 0xffffffff
push edi
call fcn.00449dbf
pop ecx
cmp dword [ebp - 4], 0
je 0x4593d1
push esi
call fcn.00449dbf
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x45928e
push esi
call fcn.00449dbf
mov eax, dword [ebp + 8]
and dword [eax], 0
pop ecx
jmp 0x459298
Function at 0x4596af
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 8], 0
cmp dword [ebp + 0x10], 0
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edx, ebx
je 0x459885
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x4aeca0]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x459885
test cl, 0x48
je 0x45971a
cmp byte [eax + 5], 0xa
je 0x45971a
mov eax, dword [edi]
mov al, byte [eax + esi + 5]
dec dword [ebp + 0x10]
mov byte [ebx], al
mov eax, dword [edi]
lea edx, [ebx + 1]
mov dword [ebp - 8], 1
mov byte [eax + esi + 5], 0xa
push 0
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
mov eax, dword [edi]
push edx
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x45976c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x459754
call fcn.0044d09a
mov dword [eax], 9
call fcn.0044d0a3
mov dword [eax], esi
jmp 0x459764
cmp eax, 0x6d
je 0x459885
push eax
call fcn.0044d0ac
pop ecx
or eax, 0xffffffff
jmp 0x459887
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x459880
test eax, eax
je 0x459793
cmp byte [ebx], 0xa
jne 0x459793
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x45979c
mov eax, dword [edi]
lea eax, [eax + esi + 4]
and byte [eax], 0xfb
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 8]
add ecx, eax
cmp eax, ecx
mov dword [ebp + 0x10], eax
mov dword [ebp - 8], ecx
jae 0x45987a
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x45986a
cmp al, 0xd
je 0x4597ce
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x45985c
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4597e8
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x4597e3
add dword [ebp + 0x10], 2
jmp 0x45983c
mov dword [ebp + 0x10], eax
jmp 0x459858
inc dword [ebp + 0x10]
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
mov eax, dword [edi]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x459810
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x459858
cmp dword [ebp - 0xc], 0
je 0x459858
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x459831
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x45983c
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x45985b
cmp ebx, dword [ebp + 0xc]
jne 0x459841
cmp byte [ebp - 1], 0xa
jne 0x459841
mov byte [ebx], 0xa
jmp 0x45985b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00457f17
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x45985c
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x4597b2
jmp 0x45987a
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x45987a
lea esi, [eax + esi + 4]
or byte [esi], 2
sub ebx, dword [ebp + 0xc]
mov dword [ebp - 8], ebx
mov eax, dword [ebp - 8]
jmp 0x459887
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x45aa9e
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x480b04
call fcn.0044c464
sub esp, 0x124
mov eax, dword [0x4a8ae4]
xor eax, ebp
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0x10]
push ebx
push esi
mov dword [ebp - 0x12c], eax
mov eax, dword [ebp + 0x18]
push edi
mov dword [ebp - 0x128], eax
mov eax, dword [ebp + 0x1c]
push eax
mov esi, ecx
xor ebx, ebx
push ebx
mov dword [ebp - 0x130], esi
call fcn.0045ce32
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], vtable.CFileDialog.0
call fcn.0043efb8
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x45ab44
mov edi, 0x114
push edi
lea eax, [ebp - 0x124]
push ebx
push eax
call fcn.0044b8b0
add esp, 0xc
lea eax, [ebp - 0x124]
push eax
mov dword [ebp - 0x124], edi
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x45ab3d
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x45ab44
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.0044a731
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x45ab59
call fcn.0045a75c
push dword [ebp + 0x20]
push ebx
push eax
call fcn.0044b8b0
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 + 0x304], ebx
lea ecx, [esi + 0x7c]
mov word [ecx], bx
lea edi, [esi + 0xfc]
mov word [edi], bx
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 0x45abd8
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.00476002
cmp dword [ebp - 0x12c], 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], 0x45ac97
je 0x45ac0a
push 0x104
push dword [ebp - 0x12c]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp - 0x128], ebx
je 0x45ac49
push dword [ebp - 0x128]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.0043fcad
push ebx
mov ecx, edi
call fcn.0043faff
jmp 0x45ac32
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.0044a7a1
cmp eax, ebx
pop ecx
pop ecx
jne 0x45ac2c
mov eax, dword [esi + 0x70]
mov ecx, dword [esi + 0x78]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
pop edi
mov dword fs:[0], ecx
mov ecx, dword [ebp - 0x10]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.0044a318
leave
ret 0x1c
Function at 0x45d1db
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 0x45d212
call fcn.00476002
mov ebx, dword [eax + 0xc]
push 5
push dword [edi + 0x54]
push ebx
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45d223
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x45d25c
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x45d241
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x45d249
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x45d25a
test ax, ax
jne 0x45d25a
test si, si
je 0x45d25c
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x45d26b
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x45d4bd
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4806f4
call fcn.0044c464
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.00476002
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x45d50b
call fcn.00476002
mov edi, dword [eax + 0xc]
push 5
push dword [esi + 0x54]
push edi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
je 0x45d51c
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x45d528
or eax, 0xffffffff
jmp 0x45d62b
mov ecx, esi
call fcn.0045cfff
mov dword [ebp - 0x14], eax
call fcn.0045ef52
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x45d56b
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x45d56b
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x45d56b
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.004604e0
push dword [ebp - 0x14]
call fcn.0045eeaa
push edi
push eax
push ebx
mov ecx, esi
call fcn.0045d2b0
xor ebx, ebx
cmp eax, ebx
je 0x45d5df
test byte [esi + 0x38], 0x10
je 0x45d5ad
push 4
pop edi
mov ecx, esi
call fcn.004611a6
test ah, 1
je 0x45d5a5
push 5
pop edi
push edi
mov ecx, esi
call fcn.0045e94e
cmp dword [esi + 0x1c], ebx
je 0x45d5df
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00461459
jmp 0x45d5df
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x45d5f3
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x45d60c
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x45d60c
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.0045d039
cmp dword [esi + 0x54], ebx
je 0x45d628
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 0x45d665
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.00476002
mov esi, dword [eax + 0xc]
push 5
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x45d69c
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.0045d2b0
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 0x45fbc4
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x45fbfd
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0043fc23
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043fa4f
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x460e4d
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 0x460e90
call fcn.00476002
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceW]
test eax, eax
je 0x460e90
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x460eab
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0045ffc1
test ebx, ebx
mov esi, eax
je 0x460ea9
test edi, edi
je 0x460ea9
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x4618f9
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x480811
call fcn.0044c464
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x46191e
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextW]
jmp 0x46196a
call fcn.004621d7
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_lstrcpynW]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401230
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x462c9a
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.0044b8b0
add esp, 0xc
call fcn.00475ff2
mov edi, dword [sym.imp.KERNEL32.dll_CreateEventW]
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 0x462d6a
cmp dword [ebp - 8], ebx
je 0x462d65
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x462b6c
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.0044c851
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x462d74
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 0x462d3d
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x462d57
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 0x462d6f
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x462d76
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x462d74
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x462d7d
Capabilities:
Resume thread

Disassembly:
mov eax, 0x4809cb
call fcn.0044c464
push ecx
push esi
push 0x40
call fcn.004620a8
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x462dac
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00476171
mov esi, eax
push dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x14]
or dword [ebp - 4], 0xffffffff
or eax, 4
push eax
mov ecx, esi
call fcn.00462c9a
test eax, eax
jne 0x462dd3
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x462df0
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x462dee
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 0x18