joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41d521
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x41d54f
mov eax, dword fs:[0x18]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 8]
cmp ebx, ecx
mov dword [ebp - 4], ecx
jb 0x41d556
cmp ebx, dword [eax + 4]
jae 0x41d556
xor eax, eax
jmp 0x41d746
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x41d567
xor eax, eax
inc eax
jmp 0x41d745
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x41d57d
cmp ecx, edx
jae 0x41d6c2
cmp dword [eax + 4], 0
je 0x41d586
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x41d56e
cmp dword [ebp + 8], 0
je 0x41d5a8
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x41d6c2
cmp eax, esi
jae 0x41d6c2
mov eax, dword [0x44f6f8]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x41d5cd
cmp dword [esi*4 + 0x44f700], edi
je 0x41d6c6
inc esi
cmp esi, eax
jl 0x41d5bb
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x41d742
cmp dword [ebp - 8], 0x1000000
jne 0x41d742
test byte [ebp - 0xc], 0xcc
je 0x41d64b
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x41d742
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x41d742
cmp word [eax + 0x18], 0x10b
jne 0x41d742
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x41d742
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x41d64b
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x41d64b
test byte [ecx + 0x27], 0x80
jne 0x41d6c2
push 1
push 0x44f740
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x41d55f
mov ecx, dword [0x44f6f8]
test ecx, ecx
mov edx, ecx
jle 0x41d67f
lea eax, [ecx*4 + 0x44f6fc]
cmp dword [eax], edi
je 0x41d67f
dec edx
sub eax, 4
test edx, edx
jg 0x41d673
test edx, edx
jne 0x41d6b0
push 0xf
pop ebx
cmp ecx, ebx
jg 0x41d68c
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x41d6a4
lea eax, [edx*4 + 0x44f700]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x41d692
cmp ecx, 0x10
jge 0x41d6b0
inc ecx
mov dword [0x44f6f8], ecx
push 0
push 0x44f740
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x41d55f
xor eax, eax
jmp 0x41d745
test esi, esi
jle 0x41d55f
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x44f740
call ebx
test eax, eax
jne 0x41d55f
cmp dword [esi*4 + 0x44f700], edi
je 0x41d71c
mov eax, dword [0x44f6f8]
lea esi, [eax - 1]
test esi, esi
jl 0x41d70a
cmp dword [esi*4 + 0x44f700], edi
je 0x41d706
dec esi
jns 0x41d6fa
test esi, esi
jge 0x41d71a
cmp eax, 0x10
jge 0x41d715
inc eax
mov dword [0x44f6f8], eax
lea esi, [eax - 1]
jmp 0x41d71c
je 0x41d734
xor ecx, ecx
test esi, esi
jl 0x41d734
lea eax, [ecx*4 + 0x44f700]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x41d722
push 0
push 0x44f740
call ebx
jmp 0x41d55f
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x41d98d
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x8c]
sub esp, 0x10c
mov eax, dword [0x44c41c]
mov ecx, dword [ebp + 0x94]
push ebx
push esi
mov dword [ebp + 0x88], eax
xor edx, edx
push edi
xor eax, eax
cmp ecx, dword [eax*8 + 0x44c9f8]
je 0x41d9c2
inc eax
cmp eax, 0x13
jb 0x41d9b3
mov esi, eax
shl esi, 3
cmp ecx, dword [esi + 0x44c9f8]
jne 0x41dae8
mov eax, dword [0x44f52c]
cmp eax, 1
je 0x41dac0
cmp eax, edx
jne 0x41d9f2
cmp dword [0x44c474], 1
je 0x41dac0
cmp ecx, 0xfc
je 0x41dae8
push 0x104
lea eax, [ebp - 0x80]
push eax
push edx
mov byte [ebp + 0x84], dl
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x41da28
lea eax, [ebp - 0x80]
push str._program_name_unknown_
push eax
call fcn.0041ef10
pop ecx
pop ecx
lea edi, [ebp - 0x80]
mov eax, edi
push eax
call fcn.00416fd0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x41da5c
mov eax, edi
push eax
call fcn.00416fd0
mov edi, eax
lea eax, [ebp - 0x80]
sub eax, 0x3b
push 3
add edi, eax
push 0x441944
push edi
call fcn.004155a0
add esp, 0x10
push edi
call fcn.00416fd0
push dword [esi + 0x44c9fc]
mov ebx, eax
call fcn.00416fd0
lea eax, [ebx + eax + 0x1c]
pop ecx
add eax, 3
pop ecx
and eax, 0xfffffffc
call fcn.00416420
mov ebx, esp
push str.Runtime_Error__n_nProgram:
push ebx
call fcn.0041ef10
push edi
push ebx
call fcn.0041ef20
push 0x441940
push ebx
call fcn.0041ef20
push dword [esi + 0x44c9fc]
push ebx
call fcn.0041ef20
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebx
call fcn.004205ad
add esp, 0x2c
jmp 0x41dae8
push edx
lea eax, [ebp + 0x94]
push eax
lea esi, [esi + 0x44c9fc]
push dword [esi]
call fcn.00416fd0
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea esp, [ebp - 0x8c]
mov ecx, dword [ebp + 0x88]
call fcn.004148c1
pop edi
pop esi
pop ebx
add ebp, 0x8c
leave
ret

Function at 0x41fa32
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x41fa60
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 0x41fa65
cmp eax, 1
je 0x41fa65
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x41fa69
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x44c41c]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x41fae1
push ebx
call fcn.0041fa32
test eax, eax
pop ecx
jne 0x41fab0
call fcn.00418bd3
mov dword [eax], 0xf
call fcn.00418bca
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004148c1
leave
ret
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x108]
push eax
push 0x104
lea eax, [ebp + 8]
add bl, 0x40
push eax
mov byte [ebp + 8], bl
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x2e
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
jmp 0x41faf3
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x41faa3
inc eax
cmp eax, 0x104
ja 0x41faa3
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x41fb2b
cmp eax, dword [ebp + 0x10]
jg 0x41fb0e
mov eax, dword [ebp + 0x10]
push eax
call fcn.004166cb
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x41fb40
call fcn.00418bca
mov dword [eax], 0xc
jmp 0x41faa3
cmp eax, dword [ebp + 0x10]
jle 0x41fb40
call fcn.00418bca
mov dword [eax], 0x22
jmp 0x41faa3
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.0041ef10
pop ecx
pop ecx
jmp 0x41faa5

Function at 0x4205ad
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x44f978], ebx
push esi
push edi
jne 0x42062d
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x420668
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x44287c
push edi
call esi
test eax, eax
mov dword [0x44f978], eax
je 0x420668
push 0x44286c
push edi
call esi
push 0x442858
push edi
mov dword [0x44f97c], eax
call esi
cmp dword [0x44f538], 2
mov dword [0x44f980], eax
jne 0x42062d
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x44f988], eax
je 0x42062d
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x44f984], eax
mov eax, dword [0x44f984]
test eax, eax
je 0x420672
call eax
test eax, eax
je 0x420659
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x44f988]
test eax, eax
je 0x420659
test byte [ebp - 8], 1
jne 0x420672
cmp dword [0x44f544], 4
jb 0x42066c
or byte [ebp + 0x12], 0x20
jmp 0x420691
xor eax, eax
jmp 0x4206a1
or byte [ebp + 0x12], 4
jmp 0x420691
mov eax, dword [0x44f97c]
test eax, eax
je 0x420691
call eax
mov ebx, eax
test ebx, ebx
je 0x420691
mov eax, dword [0x44f980]
test eax, eax
je 0x420691
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x44f978]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x422c52
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 0x422c6b
or eax, 0xffffffff
jmp 0x422ccc
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x422cc8
push 0x3d
push esi
call fcn.004176a3
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x422cc8
cmp esi, eax
je 0x422cc8
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x44f558]
sete cl
cmp eax, dword [0x44f55c]
mov dword [ebp - 8], ecx
jne 0x422cae
mov edi, eax
call fcn.00422bf1
mov dword [0x44f558], eax
cmp eax, ebx
jne 0x422d07
cmp dword [ebp + 0xc], ebx
je 0x422cd0
cmp dword [0x44f560], ebx
je 0x422cd0
call fcn.004224bc
test eax, eax
je 0x422d07
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x422cd9
xor eax, eax
jmp 0x422ccb
push 4
call fcn.004166cb
cmp eax, ebx
pop ecx
mov dword [0x44f558], eax
je 0x422cc8
mov dword [eax], ebx
cmp dword [0x44f560], ebx
jne 0x422d07
push 4
call fcn.004166cb
cmp eax, ebx
pop ecx
mov dword [0x44f560], eax
je 0x422cc8
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x44f558]
call fcn.00422ba4
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x422d68
cmp dword [esi], ebx
je 0x422d68
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004166dd
cmp dword [ebp - 8], ebx
pop ecx
jne 0x422d4b
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x422da9
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x422d42
mov eax, edi
shl eax, 2
push eax
push dword [0x44f558]
call fcn.00417128
cmp eax, ebx
pop ecx
pop ecx
je 0x422da9
jmp 0x422da4
cmp dword [ebp - 8], ebx
jne 0x422e14
cmp edi, ebx
jge 0x422d77
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x44f558]
call fcn.00417128
cmp eax, ebx
pop ecx
pop ecx
je 0x422cc8
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 [0x44f558], eax
cmp dword [ebp + 0xc], ebx
je 0x422dfe
push dword [ebp - 4]
call fcn.00416fd0
inc eax
inc eax
push eax
call fcn.004166cb
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x422dfe
push dword [ebp - 4]
push esi
call fcn.0041ef10
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 0x422df7
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004166dd
pop ecx
cmp dword [ebp - 8], ebx
je 0x422e0c
push dword [ebp - 4]
call fcn.004166dd
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x422ccb
push dword [ebp - 4]
call fcn.004166dd
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x422cd5
Function at 0x424795
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 0x4247cc
call fcn.00435a29
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 0x4247dd
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
xor ebx, ebx
inc ebx
test esi, esi
je 0x424816
cmp word [esi + 2], 0xffff
mov ecx, dword [esi]
jne 0x4247fb
mov ecx, dword [esi + 0xc]
mov ax, word [esi + 0x12]
mov si, word [esi + 0x14]
jmp 0x424803
mov ax, word [esi + 0xa]
mov si, word [esi + 0xc]
test cx, 0x1801
jne 0x424814
test ax, ax
jne 0x424814
test si, si
je 0x424816
xor ebx, ebx
cmp dword [edi + 0x54], 0
je 0x424825
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_FreeResource]
pop edi
pop esi
mov eax, ebx
pop ebx
leave
ret
Function at 0x424a77
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x438cd0
call fcn.00416c70
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.00435a29
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x424ac5
call fcn.00435a29
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 0x424ad6
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x424ae2
or eax, 0xffffffff
jmp 0x424be5
mov ecx, esi
call fcn.004245b7
mov dword [ebp - 0x14], eax
call fcn.004267e4
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x424b25
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x424b25
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x424b25
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.00427ea8
push dword [ebp - 0x14]
call fcn.0042673c
push edi
push eax
push ebx
mov ecx, esi
call fcn.0042486a
xor ebx, ebx
cmp eax, ebx
je 0x424b99
test byte [esi + 0x38], 0x10
je 0x424b67
push 4
pop edi
mov ecx, esi
call fcn.00428b24
test ah, 1
je 0x424b5f
push 5
pop edi
push edi
mov ecx, esi
call fcn.004261e0
cmp dword [esi + 0x1c], ebx
je 0x424b99
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00428d95
jmp 0x424b99
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x424bad
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x424bc6
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x424bc6
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.004245f1
cmp dword [esi + 0x54], ebx
je 0x424be2
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 0x424c1f
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.00435a29
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 0x424c56
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.0042486a
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 0x4274c6
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4274ff
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.0040b21b
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040b10e
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]

Function at 0x428814
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 0x428857
call fcn.00435a29
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x428857
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x428872
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00427979
test ebx, ebx
mov esi, eax
je 0x428870
test edi, edi
je 0x428870
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x429201
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x438f7e
call fcn.00416c70
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x42921b
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x429267
call fcn.004297f8
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.00401160
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x42a337
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.00416c10
add esp, 0xc
call fcn.00435a19
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 0x42a407
cmp dword [ebp - 8], ebx
je 0x42a402
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x42a209
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00417618
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x42a411
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 0x42a3da
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x42a3f4
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 0x42a40c
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x42a413
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x42a411
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x42a41a
Capabilities:
Resume thread

Disassembly:
mov eax, 0x439049
call fcn.00416c70
push ecx
push esi
push 0x40
call fcn.004298cd
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x42a449
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.004356ba
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.0042a337
test eax, eax
jne 0x42a470
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x42a48d
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x42a48b
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
Function at 0x42b1f3
Capabilities:
Get disk information

Disassembly:
mov eax, 0x43939f
call fcn.00416c70
sub esp, 0x150
mov eax, dword [0x44c41c]
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 0x42b23b
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x42b23f
cmp eax, esi
jb 0x42b246
xor eax, eax
jmp 0x42b31b
call fcn.004297f8
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.0042b1b1
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x42b30b
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 0x42b29a
xor esi, esi
jmp 0x42b30e
test byte [ebp - 0x158], 2
jne 0x42b2aa
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x42b30b
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x42b30b
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x42b296
cmp dword [ebp - 0x154], edi
jbe 0x42b296
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 0x42b296
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.00401160
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.004148c1
leave
ret 8