joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4fb600
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x570f00
call fcn.004ec368
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x595f40], edi
jne 0x4fb644
push edi
push edi
push ebx
push edi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fb62f
mov dword [0x595f40], ebx
jmp 0x4fb644
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x4fb644
mov dword [0x595f40], 2
mov eax, dword [0x595f40]
cmp eax, ebx
jne 0x4fb664
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
jmp 0x4fb727
cmp eax, 2
je 0x4fb66d
cmp eax, edi
jne 0x4fb695
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x4fb680
mov eax, dword [0x595dd0]
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 0x4fb69c
xor eax, eax
jmp 0x4fb727
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.004ea990
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4fb6cf
cmp esi, edi
jne 0x4fb6e5
push dword [ebp - 0x20]
call fcn.004ea96f
pop ecx
mov esi, eax
cmp esi, edi
je 0x4fb695
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 0x4fb718
cmp dword [ebp + 0x14], edi
jne 0x4fb702
push edi
push edi
jmp 0x4fb708
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 0x4fb724
push esi
call fcn.004ea481
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.004ec3a3
ret
Function at 0x4fb730
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x570f10
call fcn.004ec368
xor esi, esi
cmp dword [0x595f44], esi
jne 0x4fb774
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.kernel32.dll_GetLocaleInfoW]
test eax, eax
je 0x4fb75f
mov dword [0x595f44], edi
jmp 0x4fb774
call dword [sym.imp.kernel32.dll_GetLastError]
cmp eax, 0x78
jne 0x4fb774
mov dword [0x595f44], 2
mov eax, dword [0x595f44]
cmp eax, 2
je 0x4fb855
cmp eax, esi
je 0x4fb855
cmp eax, 1
jne 0x4fb7b9
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x4fb7a2
mov eax, dword [0x595dd0]
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 0x4fb7c0
xor eax, eax
jmp 0x4fb867
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.004ea990
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4fb7f6
cmp edi, esi
jne 0x4fb811
lea eax, [ebx + ebx]
push eax
call fcn.004ea96f
pop ecx
mov edi, eax
cmp edi, esi
je 0x4fb7b9
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 0x4fb844
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x4fb82e
push esi
push esi
jmp 0x4fb834
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 0x4fb850
push edi
call fcn.004ea481
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x4fb867
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.004ec3a3
ret
Function at 0x4fbe22
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 0x4fbe3b
or eax, 0xffffffff
jmp 0x4fbe9c
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4fbe98
push 0x3d
push esi
call fcn.004ea5fe
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4fbe98
cmp esi, eax
je 0x4fbe98
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x595a8c]
sete cl
cmp eax, dword [0x595a90]
mov dword [ebp - 8], ecx
jne 0x4fbe7e
mov edi, eax
call fcn.004fbdc1
mov dword [0x595a8c], eax
cmp eax, ebx
jne 0x4fbed7
cmp dword [ebp + 0xc], ebx
je 0x4fbea0
cmp dword [0x595a94], ebx
je 0x4fbea0
call fcn.004fb570
test eax, eax
je 0x4fbed7
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4fbea9
xor eax, eax
jmp 0x4fbe9b
push 4
call fcn.004ea96f
cmp eax, ebx
pop ecx
mov dword [0x595a8c], eax
je 0x4fbe98
mov dword [eax], ebx
cmp dword [0x595a94], ebx
jne 0x4fbed7
push 4
call fcn.004ea96f
cmp eax, ebx
pop ecx
mov dword [0x595a94], eax
je 0x4fbe98
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x595a8c]
call fcn.004fbd74
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x4fbf38
cmp dword [esi], ebx
je 0x4fbf38
lea esi, [esi + edi*4]
push dword [esi]
call fcn.004ea481
cmp dword [ebp - 8], ebx
pop ecx
jne 0x4fbf1b
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4fbf79
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x4fbf12
mov eax, edi
shl eax, 2
push eax
push dword [0x595a8c]
call fcn.004ec1a5
cmp eax, ebx
pop ecx
pop ecx
je 0x4fbf79
jmp 0x4fbf74
cmp dword [ebp - 8], ebx
jne 0x4fbfe4
cmp edi, ebx
jge 0x4fbf47
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x595a8c]
call fcn.004ec1a5
cmp eax, ebx
pop ecx
pop ecx
je 0x4fbe98
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 [0x595a8c], eax
cmp dword [ebp + 0xc], ebx
je 0x4fbfce
push dword [ebp - 4]
call fcn.004ec020
inc eax
inc eax
push eax
call fcn.004ea96f
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x4fbfce
push dword [ebp - 4]
push esi
call fcn.004f5140
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 0x4fbfc7
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.004ea481
pop ecx
cmp dword [ebp - 8], ebx
je 0x4fbfdc
push dword [ebp - 4]
call fcn.004ea481
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4fbe9b
push dword [ebp - 4]
call fcn.004ea481
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4fbea5
Function at 0x4fdae9
Capabilities:
Check os version
Resolve function by parsing pe exports

Disassembly:
mov eax, 0x53ff25
call fcn.004ec0ac
sub esp, 0x9c
mov eax, dword [0x590f68]
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.00504538
lea ecx, [esi + 0x78]
mov dword [ebp - 4], ebx
mov dword [esi], 0x568e24
call fcn.00401a90
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
jne 0x4fdb7a
mov edi, 0x94
push edi
lea eax, [ebp - 0xa4]
push ebx
push eax
call fcn.004ec3c0
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 0x4fdb73
cmp dword [ebp - 0xa0], 5
mov dword [ebp + 0x20], 0x58
jae 0x4fdb7a
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.004ea96f
cmp eax, ebx
pop ecx
mov dword [esi + 0x70], eax
jne 0x4fdb8f
call fcn.004fd73a
push dword [ebp + 0x20]
push ebx
push eax
call fcn.004ec3c0
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 0x4fdc0c
mov eax, dword [esi + 0x70]
and byte [eax + 0x36], 0x7f
call fcn.00527fd7
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], 0x4fe1f7
je 0x4fdc38
push 0x104
push dword [ebp + 0x10]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
cmp dword [ebp + 0x18], ebx
je 0x4fdc6e
push dword [ebp + 0x18]
lea edi, [esi + 0x78]
mov ecx, edi
call fcn.00401830
push ebx
mov ecx, edi
call fcn.004015f0
jmp 0x4fdc57
mov byte [eax], bl
inc eax
push 0x7c
push eax
call fcn.004ea5fe
cmp eax, ebx
pop ecx
pop ecx
jne 0x4fdc54
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.004e9911
leave
ret 0x1c
Function at 0x504c03
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, 0x53fbff
call fcn.004ec0ac
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.00527fd7
cmp dword [esi + 0x54], 0
mov edi, dword [eax + 0xc]
je 0x504c51
call fcn.00527fd7
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 0x504c62
push dword [ebp - 0x18]
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
test ebx, ebx
jne 0x504c6e
or eax, 0xffffffff
jmp 0x504d71
mov ecx, esi
call fcn.00504743
mov dword [ebp - 0x14], eax
call fcn.00506b10
and dword [ebp - 0x20], 0
cmp dword [ebp - 0x14], 0
je 0x504cb1
call dword [sym.imp.user32.dll_GetDesktopWindow]
cmp dword [ebp - 0x14], eax
je 0x504cb1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_IsWindowEnabled]
test eax, eax
je 0x504cb1
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.0050852a
push dword [ebp - 0x14]
call fcn.00506a68
push edi
push eax
push ebx
mov ecx, esi
call fcn.005049f6
xor ebx, ebx
cmp eax, ebx
je 0x504d25
test byte [esi + 0x38], 0x10
je 0x504cf3
push 4
pop edi
mov ecx, esi
call fcn.0050934f
test ah, 1
je 0x504ceb
push 5
pop edi
push edi
mov ecx, esi
call fcn.0050650c
cmp dword [esi + 0x1c], ebx
je 0x504d25
push 0x97
push ebx
push ebx
push ebx
push ebx
push ebx
mov ecx, esi
call fcn.0050966d
jmp 0x504d25
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x20], ebx
je 0x504d39
push 1
push dword [ebp - 0x14]
call dword [sym.imp.user32.dll_EnableWindow]
cmp dword [ebp - 0x14], ebx
je 0x504d52
call dword [sym.imp.user32.dll_GetActiveWindow]
cmp eax, dword [esi + 0x1c]
jne 0x504d52
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.0050477d
cmp dword [esi + 0x54], ebx
je 0x504d6e
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 0x507a49
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x507a82
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.004e3edb
push eax
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00434640
pop esi
ret 4
mov ecx, dword [esi + 0x4c]
mov eax, dword [ecx]
pop esi
jmp dword [eax + 0x8c]
Function at 0x508e96
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 0x508ed9
call fcn.00527fd7
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x18]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
test eax, eax
je 0x508ed9
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edi, eax
test edi, edi
je 0x508ef4
push edi
call dword [sym.imp.kernel32.dll_LockResource_1]
mov ebx, eax
push ebx
mov ecx, ebp
call fcn.00507ffb
test ebx, ebx
mov esi, eax
je 0x508ef2
test edi, edi
je 0x508ef2
push edi
call dword [sym.imp.kernel32.dll_FreeResource]
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x509ace
Capabilities:
Get graphical window text

Disassembly:
mov eax, 0x53fdb3
call fcn.004ec0ac
push ecx
push esi
mov esi, ecx
cmp dword [esi + 0x4c], 0
jne 0x509af3
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 0x1c]
call dword [sym.imp.user32.dll_GetWindowTextA]
jmp 0x509b3f
call fcn.00503c89
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_lstrcpyn]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_lstrlen]
mov ecx, dword [ebp - 0x10]
add ecx, 0xfffffff0
mov esi, eax
call fcn.00401210
mov eax, esi
mov ecx, dword [ebp - 0xc]
pop esi
mov dword fs:[0], ecx
leave
ret 8
Function at 0x50a92c
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.004ec3c0
add esp, 0xc
call fcn.00527fa1
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 0x50a9fc
cmp dword [ebp - 8], ebx
je 0x50a9f7
lea ecx, [esi + 0x2c]
push ecx
or eax, 4
push eax
lea eax, [ebp - 0x1c]
push eax
push 0x50a7fe
push dword [ebp + 0xc]
push dword [ebp + 0x10]
call fcn.004ec5d2
add esp, 0x18
cmp eax, ebx
mov dword [esi + 0x28], eax
je 0x50aa06
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 0x50a9cf
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_SuspendThread]
cmp dword [ebp - 4], ebx
je 0x50a9e9
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 0x50aa01
push dword [ebp - 8]
call dword [sym.imp.kernel32.dll_SetEvent]
xor eax, eax
inc eax
jmp 0x50aa08
push dword [ebp - 0xc]
call edi
cmp dword [ebp - 8], ebx
je 0x50aa06
push dword [ebp - 8]
call edi
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x50aa0f
Capabilities:
Resume thread

Disassembly:
mov eax, 0x5401ee
call fcn.004ec0ac
push ecx
push esi
push 0x40
call fcn.005043b5
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
xor esi, esi
cmp ecx, esi
mov dword [ebp - 4], esi
je 0x50aa3e
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.005280c5
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.0050a92c
test eax, eax
jne 0x50aa65
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 0x78]
xor eax, eax
jmp 0x50aa82
push dword [ebp + 0x10]
push dword [esi + 0x28]
call dword [sym.imp.kernel32.dll_SetThreadPriority]
test byte [ebp + 0x18], 4
jne 0x50aa80
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 0x50b121
Capabilities:
Get disk information

Disassembly:
mov eax, 0x5403c3
call fcn.004ec0ac
sub esp, 0x150
mov eax, dword [0x590f68]
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 0x50b169
push esi
push dword [ebp + 0xc]
push edi
call dword [sym.imp.kernel32.dll_lstrcpyn]
jmp 0x50b16d
cmp eax, esi
jb 0x50b174
xor eax, eax
jmp 0x50b249
call fcn.00503c89
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.0050b0df
push dword [ebp + 8]
call dword [sym.imp.shlwapi.dll_PathIsUNCA]
test eax, eax
jne 0x50b239
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 0x50b1c8
xor esi, esi
jmp 0x50b23c
test byte [ebp - 0x158], 2
jne 0x50b1d8
push edi
call dword [sym.imp.user32.dll_CharUpperA]
test byte [ebp - 0x158], 4
jne 0x50b239
lea eax, [ebp - 0x150]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.kernel32.dll_FindFirstFileA]
cmp eax, 0xffffffff
je 0x50b239
push eax
call dword [sym.imp.kernel32.dll_FindClose]
cmp dword [ebp - 0x154], ebx
je 0x50b1c4
cmp dword [ebp - 0x154], edi
jbe 0x50b1c4
lea eax, [ebp - 0x124]
push eax
call dword [sym.imp.kernel32.dll_lstrlen]
sub eax, edi
add eax, dword [ebp - 0x154]
cmp eax, esi
jge 0x50b1c4
lea eax, [ebp - 0x124]
push eax
push dword [ebp - 0x154]
call dword [sym.imp.kernel32.dll_lstrcpy]
xor esi, esi
inc esi
mov ecx, dword [ebp + 8]
add ecx, 0xfffffff0
call fcn.00401210
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.004e9911
leave
ret 8
Function at 0x50d588
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 0x128
xor ebx, ebx
push ebx
push esi
mov edi, ecx
call fcn.004ec3c0
add esp, 0xc
push 0x104
push dword [edi + 0xc]
lea eax, [esi + 0x22]
push eax
call dword [sym.imp.kernel32.dll_lstrcpyn]
mov eax, dword [edi + 4]
cmp eax, dword [0x56aa68]
je 0x50d68f
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 0x50d5f8
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 0x50d5ff
cmp ebx, ebx
jne 0x50d5ff
xor eax, eax
jmp 0x50d692
mov edi, dword [edi + 0xc]
cmp dword [edi - 0xc], ebx
jne 0x50d60c
mov byte [esi + 0x20], bl
jmp 0x50d620
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.004e9234
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.004e9234
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.004e9234
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 0x50d67b
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 0x50d68f
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

Function at 0x51444a
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
mov eax, dword [0x590f68]
push esi
push dword [ebp + 0xc]
mov dword [ebp - 4], eax
call dword [sym.imp.kernel32.dll_lstrlen]
mov esi, eax
mov eax, 0x100
cmp esi, eax
ja 0x514499
push eax
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextA]
cmp eax, esi
jne 0x514499
push dword [ebp + 0xc]
lea eax, [ebp - 0x104]
push eax
call dword [sym.imp.kernel32.dll_lstrcmp]
test eax, eax
je 0x5144a5
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.user32.dll_SetWindowTextA]
mov ecx, dword [ebp - 4]
pop esi
call fcn.004e9911
leave
ret 8
Function at 0x515327
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
mov eax, dword [0x590f68]
push ebx
push esi
mov esi, dword [ebp + 8]
push dword [ebp + 0xc]
mov ecx, esi
mov dword [ebp - 4], eax
call fcn.00515310
cmp dword [esi], 0
mov ebx, eax
je 0x515387
push edi
mov edi, dword [ebp + 0x18]
push 0x40
lea eax, [ebp - 0x44]
push eax
push ebx
call dword [sym.imp.user32.dll_GetWindowTextA]
push edi
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.004ec4d8
add esp, 0xc
cmp eax, 1
pop edi
je 0x5153a4
push 0xffffffffffffffff
push 0
push dword [ebp + 0x14]
call fcn.00515e91
mov ecx, esi
call fcn.00514f42
jmp 0x5153a4
lea eax, [ebp + 0x18]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 0x44]
push eax
call fcn.004ea70d
add esp, 0xc
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.0051444a
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.004e9911
leave
ret