joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44f74c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x44f77a
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 0x44f77f
cmp eax, 1
je 0x44f77f
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x44f783
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x487490]
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
mov dword [ebp - 4], eax
je 0x44f7fb
push ebx
call fcn.0044f74c
test eax, eax
pop ecx
jne 0x44f7ca
call fcn.00447699
mov dword [eax], 0xf
call fcn.00447690
mov dword [eax], 0xd
xor eax, eax
mov ecx, dword [ebp - 4]
pop ebx
call fcn.004457b0
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 0x44f80d
lea eax, [ebp - 0x108]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x44f7bd
inc eax
cmp eax, 0x104
ja 0x44f7bd
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jne 0x44f845
cmp eax, dword [ebp + 0x10]
jg 0x44f828
mov eax, dword [ebp + 0x10]
push eax
call fcn.00443d3c
pop ecx
mov ecx, eax
test ecx, ecx
jne 0x44f85a
call fcn.00447690
mov dword [eax], 0xc
jmp 0x44f7bd
cmp eax, dword [ebp + 0x10]
jle 0x44f85a
call fcn.00447690
mov dword [eax], 0x22
jmp 0x44f7bd
lea eax, [ebp - 0x108]
push eax
push ecx
call fcn.004454c0
pop ecx
pop ecx
jmp 0x44f7bf

Function at 0x44fa90
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x4a8df0], ebx
push esi
push edi
jne 0x44fb10
push 0x46ec1c
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x44fb4b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x471004
push edi
call esi
test eax, eax
mov dword [0x4a8df0], eax
je 0x44fb4b
push 0x470ff4
push edi
call esi
push 0x470fe0
push edi
mov dword [0x4a8df4], eax
call esi
cmp dword [0x4a89b0], 2
mov dword [0x4a8df8], eax
jne 0x44fb10
push 0x470fc4
push edi
call esi
test eax, eax
mov dword [0x4a8e00], eax
je 0x44fb10
push 0x470fac
push edi
call esi
mov dword [0x4a8dfc], eax
mov eax, dword [0x4a8dfc]
test eax, eax
je 0x44fb55
call eax
test eax, eax
je 0x44fb3c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x4a8e00]
test eax, eax
je 0x44fb3c
test byte [ebp - 8], 1
jne 0x44fb55
cmp dword [0x4a89bc], 4
jb 0x44fb4f
or byte [ebp + 0x12], 0x20
jmp 0x44fb74
xor eax, eax
jmp 0x44fb84
or byte [ebp + 0x12], 4
jmp 0x44fb74
mov eax, dword [0x4a8df4]
test eax, eax
je 0x44fb74
call eax
mov ebx, eax
test ebx, ebx
je 0x44fb74
mov eax, dword [0x4a8df8]
test eax, eax
je 0x44fb74
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x4a8df0]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4511c6
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.00445c90
mov eax, dword [0x487490]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.0044ecbf
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4512f9
push 2
push esi
push dword [ebp + 8]
call fcn.0044ecbf
add esp, 0xc
cmp eax, ebx
je 0x4512f9
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x451299
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.00444850
push 0x8000
push dword [ebp + 8]
call fcn.004521a4
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x45124f
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.0044d98e
add esp, 0xc
cmp eax, 0xffffffff
je 0x45126f
sub edi, eax
test edi, edi
jg 0x451247
jmp 0x451287
call fcn.00447699
cmp dword [eax], 5
jne 0x451284
call fcn.00447690
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.004521a4
pop ecx
pop ecx
jmp 0x4512e1
jge 0x4512e1
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0044ecbf
push dword [ebp + 8]
call fcn.00448d39
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 0x4512e1
call fcn.00447690
mov dword [eax], 0xd
call fcn.00447699
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.0044ecbf
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4512fb
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004457b0
leave
ret
Function at 0x451fcf
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 0x451fe8
or eax, 0xffffffff
jmp 0x452049
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x452045
push 0x3d
push esi
call fcn.00446c0f
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x452045
cmp esi, eax
je 0x452045
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x4a89d0]
sete cl
cmp eax, dword [0x4a89d4]
mov dword [ebp - 8], ecx
jne 0x45202b
mov edi, eax
call fcn.00451f6e
mov dword [0x4a89d0], eax
cmp eax, ebx
jne 0x452084
cmp dword [ebp + 0xc], ebx
je 0x45204d
cmp dword [0x4a89d8], ebx
je 0x45204d
call fcn.00450f8f
test eax, eax
je 0x452084
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x452056
xor eax, eax
jmp 0x452048
push 4
call fcn.00443d3c
cmp eax, ebx
pop ecx
mov dword [0x4a89d0], eax
je 0x452045
mov dword [eax], ebx
cmp dword [0x4a89d8], ebx
jne 0x452084
push 4
call fcn.00443d3c
cmp eax, ebx
pop ecx
mov dword [0x4a89d8], eax
je 0x452045
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x4a89d0]
call fcn.00451f21
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4520e5
cmp dword [esi], ebx
je 0x4520e5
lea esi, [esi + edi*4]
push dword [esi]
call fcn.00443c24
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4520c8
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x452126
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4520bf
mov eax, edi
shl eax, 2
push eax
push dword [0x4a89d0]
call fcn.004469f6
cmp eax, ebx
pop ecx
pop ecx
je 0x452126
jmp 0x452121
cmp dword [ebp - 8], ebx
jne 0x452191
cmp edi, ebx
jge 0x4520f4
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x4a89d0]
call fcn.004469f6
cmp eax, ebx
pop ecx
pop ecx
je 0x452045
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 [0x4a89d0], eax
cmp dword [ebp + 0xc], ebx
je 0x45217b
push dword [ebp - 4]
call fcn.00444520
inc eax
inc eax
push eax
call fcn.00443d3c
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x45217b
push dword [ebp - 4]
push esi
call fcn.004454c0
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 0x452174
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.00443c24
pop ecx
cmp dword [ebp - 8], ebx
je 0x452189
push dword [ebp - 4]
call fcn.00443c24
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x452048
push dword [ebp - 4]
call fcn.00443c24
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x452052
Function at 0x452eae
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x46488b
call fcn.00446bf0
sub esp, 0x9c
mov eax, dword [0x487490]
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.00454bbd
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], 0x46e184
call fcn.004014e0
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x452f3f
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.00444850
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 0x452f38
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x452f3f
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.00443d3c
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x452f54
call fcn.00452c2e
push dword [ebp + 0x20]
push ebx
push eax
call fcn.00444850
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 0x452fd1
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.00460e66
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], 0x453500
je 0x452ffd
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
cmp dword [ebp + 0x18], ebx
je 0x453033
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00404b70
push ebx
mov ecx, edi
call fcn.00401740
jmp 0x45301c
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.00446c0f
cmp eax, ebx
pop ecx
pop ecx
jne 0x453019
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.004457b0
leave
ret 0x1c
Function at 0x45524c
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x4645df
call fcn.00446bf0
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.00460e66
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x45529a
call fcn.00460e66
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 0x4552ab
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
jne 0x4552b7
or eax, 0xffffffff
jmp 0x4553ba
mov ecx, esi
call fcn.00454d8c
mov dword [ebp - 0x14], eax
call fcn.00456acc
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x4552fa
call dword [sym.imp.USER32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x4552fa
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_IsWindowEnabled]
test eax, eax
je 0x4552fa
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.00457d5c
push dword [ebp - 0x14]
call fcn.00456a24
push edi
push eax
push ebx
mov ecx, esi
call fcn.0045503f
xor ebx, ebx
cmp eax, ebx
je 0x45536e
test byte [esi + 0x38], 0x10
je 0x45533c
push 4
pop edi
mov ecx, esi
call fcn.00458a6d
test ah, 1
je 0x455334
push 5
pop edi
push edi
mov ecx, esi
call fcn.004564c8
cmp dword [esi + 0x1c], ebx
je 0x45536e
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.00458cbb
jmp 0x45536e
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x455382
push 1
push dword [ebp - 0x14]
call dword [sym.imp.USER32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x45539b
call dword [sym.imp.USER32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x45539b
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.00454dc6
cmp dword [esi + 0x54], ebx
je 0x4553b7
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 0x4574a1
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x4574da
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.0043a5a4
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00407790
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x4586c8
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 0x45870b
call fcn.00460e66
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
test eax, eax
je 0x45870b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x458726
push edi
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.0045782d
test ebx, ebx
mov esi, eax
je 0x458724
test edi, edi
je 0x458724
push edi
call dword [sym.imp.KERNEL32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x458871
Capabilities:
Get graphical window text

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
mov esi, ecx
push 0x474f58
mov ecx, edi
call fcn.00404b70
cmp dword [esi + 0x48], 0
push dword [esp + 0xc]
jne 0x4588c4
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetDlgItem]
mov esi, eax
test esi, esi
je 0x4588d7
push esi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
push eax
mov ecx, edi
call fcn.0043a5a4
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
push 0xffffffffffffffff
mov ecx, edi
call fcn.00407790
jmp 0x4588d7
mov ecx, esi
call fcn.004589cd
test eax, eax
je 0x4588d7
push edi
mov ecx, eax
call fcn.004574a1
mov eax, dword [edi]
mov eax, dword [eax - 0xc]
pop edi
pop esi
ret 8

Function at 0x459127
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x4646e7
call fcn.00446bf0
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x459141
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
jmp 0x45918d
call fcn.00454986
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.004011e0
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x45963b
Capabilities:
Get disk information

Disassembly:
mov eax, 0x46470e
call fcn.00446bf0
sub esp, 0x150
mov eax, dword [0x487490]
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 0x459683
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
jmp 0x459687
cmp eax, esi
jb 0x45968e
xor eax, eax
jmp 0x459763
call fcn.00454986
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.004595f9
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathIsUNCA]
test eax, eax
jne 0x459753
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 0x4596e2
xor esi, esi
jmp 0x459756
test byte [ebp - 0x158], 2
jne 0x4596f2
push edi
call dword [sym.imp.USER32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x459753
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x459753
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x4596de
cmp dword [ebp - 0x154], edi
jbe 0x4596de
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 0x4596de
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.004011e0
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.004457b0
leave
ret 8
Function at 0x45a18b
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.00444850
add esp, 0xc
call fcn.00460e56
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 0x45a25b
cmp dword [ebp - 8], ebx
je 0x45a256
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x45a05d
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.00447d5f
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x45a265
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 0x45a22e
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x45a248
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 0x45a260
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x45a267
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x45a265
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x45a26e
Capabilities:
Resume thread

Disassembly:
mov eax, 0x4647a5
call fcn.00446bf0
push ecx
push esi
push 0x40
call fcn.004554b0
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x45a29d
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0045fdfa
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.0045a18b
test eax, eax
jne 0x45a2c4
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x45a2e1
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x45a2df
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 0x45a2f0
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
push esi
call fcn.0045a592
mov esi, eax
test esi, esi
jne 0x45a307
call fcn.00452c2e
push dword [ebp + 0x18]
mov eax, dword [ebp + 0x14]
push dword [ebp + 0x10]
and dword [esi + 0x30], 0
or eax, 4
push eax
mov ecx, esi
call fcn.0045a18b
test eax, eax
jne 0x45a32e
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x45a34b
push dword [ebp + 0xc]
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
test byte [ebp + 0x14], 4
jne 0x45a349
push dword [esi + 0x28]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, esi
pop esi
pop ebp
ret 0x14

Function at 0x45aaee
Capabilities:
Check if file exists
Get file attributes
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
push pe_nt_image_headers32
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.00444850
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynA]
mov eax, dword [edi + 4]
cmp eax, dword [0x46d604]
je 0x45abf5
lea ecx, [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileTime]
test eax, eax
je 0x45ab5e
push ebx
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], ebx
jne 0x45ab65
cmp ebx, ebx
jne 0x45ab65
xor eax, eax
jmp 0x45abf8
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x45ab72
mov byte [esi + 0x20], bl
jmp 0x45ab86
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
sete cl
dec cl
and ecx, eax
mov byte [esi + 0x20], cl
push 0xffffffffffffffff
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043b5df
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043b5df
mov ecx, dword [eax]
mov dword [esi + 0x10], ecx
mov eax, dword [eax + 4]
mov dword [esi + 0x14], eax
push 0xffffffffffffffff
lea eax, [ebp - 0x18]
push eax
lea ecx, [ebp - 0x20]
call fcn.0043b5df
mov ecx, dword [eax]
mov dword [esi + 8], ecx
mov ecx, dword [eax + 4]
mov dword [esi + 0xc], ecx
mov ecx, dword [esi]
or ecx, dword [esi + 4]
jne 0x45abe1
mov ecx, dword [eax]
mov dword [esi], ecx
mov eax, dword [eax + 4]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x10]
or eax, dword [esi + 0x14]
jne 0x45abf5
mov eax, dword [esi + 8]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0xc]
mov dword [esi + 0x14], eax
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret 4