joyce8/EMBER2024-capa huggingface dataset:
Function at 0x444369
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 0x44453d
mov eax, dword [ebp + 8]
mov ecx, eax
and eax, 0x1f
sar ecx, 5
lea esi, [eax + eax*8]
lea edi, [ecx*4 + 0x468d00]
mov eax, dword [edi]
shl esi, 2
add eax, esi
mov cl, byte [eax + 4]
test cl, 2
jne 0x44453d
test cl, 0x48
je 0x4443d4
cmp byte [eax + 5], 0xa
je 0x4443d4
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 0x444426
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 5
pop esi
cmp eax, esi
jne 0x44440e
call fcn.00442bb5
mov dword [eax], 9
call fcn.00442bbe
mov dword [eax], esi
jmp 0x44441e
cmp eax, 0x6d
je 0x44453d
push eax
call fcn.00442bc7
pop ecx
or eax, 0xffffffff
jmp 0x44453f
mov eax, dword [ebp - 0xc]
mov ecx, dword [edi]
add dword [ebp - 8], eax
test byte [ecx + esi + 4], 0x80
je 0x444538
test eax, eax
je 0x44444d
cmp byte [ebx], 0xa
jne 0x44444d
mov eax, ecx
lea eax, [eax + esi + 4]
or byte [eax], 4
jmp 0x444456
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 0x444532
mov eax, dword [ebp + 0x10]
mov al, byte [eax]
cmp al, 0x1a
je 0x444522
cmp al, 0xd
je 0x444488
mov byte [ebx], al
inc ebx
inc dword [ebp + 0x10]
jmp 0x444514
dec ecx
cmp dword [ebp + 0x10], ecx
jae 0x4444a2
mov eax, dword [ebp + 0x10]
inc eax
cmp byte [eax], 0xa
jne 0x44449d
add dword [ebp + 0x10], 2
jmp 0x4444f6
mov dword [ebp + 0x10], eax
jmp 0x444510
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 0x4444ca
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x444510
cmp dword [ebp - 0xc], 0
je 0x444510
mov eax, dword [edi]
test byte [eax + esi + 4], 0x48
je 0x4444eb
mov al, byte [ebp - 1]
cmp al, 0xa
je 0x4444f6
mov byte [ebx], 0xd
mov ecx, dword [edi]
mov byte [ecx + esi + 5], al
jmp 0x444513
cmp ebx, dword [ebp + 0xc]
jne 0x4444fb
cmp byte [ebp - 1], 0xa
jne 0x4444fb
mov byte [ebx], 0xa
jmp 0x444513
push 1
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00444a21
add esp, 0xc
cmp byte [ebp - 1], 0xa
je 0x444514
mov byte [ebx], 0xd
inc ebx
mov ecx, dword [ebp - 8]
cmp dword [ebp + 0x10], ecx
jb 0x44446c
jmp 0x444532
mov eax, dword [edi]
test byte [eax + esi + 4], 0x40
jne 0x444532
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 0x44453f
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4445ef
Capabilities:
Write file on windows

Disassembly:
push ebp
lea ebp, [esp - 0x3a0]
sub esp, 0x420
mov eax, dword [0x46059c]
push edi
xor edi, edi
cmp dword [ebp + 0x3b0], edi
mov dword [ebp + 0x39c], eax
mov dword [ebp - 0x78], edi
mov dword [ebp - 0x7c], edi
jne 0x444620
xor eax, eax
jmp 0x4447a9
mov eax, dword [ebp + 0x3a8]
push ebx
mov ebx, dword [ebp + 0x3a8]
and eax, 0x1f
sar ebx, 5
push esi
lea esi, [eax + eax*8]
lea ebx, [ebx*4 + 0x468d00]
mov eax, dword [ebx]
shl esi, 2
test byte [eax + esi + 4], 0x20
je 0x44465c
push 2
push edi
push edi
push dword [ebp + 0x3a8]
call fcn.00447791
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x444737
cmp dword [ebp + 0x3b0], edi
mov eax, dword [ebp + 0x3ac]
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x6c], edi
jbe 0x444775
mov ecx, dword [ebp - 0x74]
sub ecx, dword [ebp + 0x3ac]
lea eax, [ebp - 0x68]
mov dword [ebp - 0x70], edi
cmp ecx, dword [ebp + 0x3b0]
jae 0x4446c0
mov edx, dword [ebp - 0x74]
inc dword [ebp - 0x74]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x4446b1
inc dword [ebp - 0x7c]
mov byte [eax], 0xd
inc eax
inc dword [ebp - 0x70]
mov byte [eax], dl
inc eax
inc dword [ebp - 0x70]
cmp dword [ebp - 0x70], 0x400
jl 0x444691
mov edi, eax
lea eax, [ebp - 0x68]
sub edi, eax
push 0
lea eax, [ebp - 0x80]
push eax
push edi
lea eax, [ebp - 0x68]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x444700
mov eax, dword [ebp - 0x80]
add dword [ebp - 0x78], eax
cmp eax, edi
jl 0x444709
mov eax, dword [ebp - 0x74]
sub eax, dword [ebp + 0x3ac]
xor edi, edi
cmp eax, dword [ebp + 0x3b0]
jb 0x444682
jmp 0x44470b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
xor edi, edi
mov eax, dword [ebp - 0x78]
cmp eax, edi
jne 0x4447a4
cmp dword [ebp - 0x6c], edi
je 0x444775
push 5
pop esi
cmp dword [ebp - 0x6c], esi
jne 0x44476a
call fcn.00442bb5
mov dword [eax], 9
call fcn.00442bbe
mov dword [eax], esi
jmp 0x44479f
push edi
lea ecx, [ebp - 0x80]
push ecx
push dword [ebp + 0x3b0]
push dword [ebp + 0x3ac]
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x44475f
mov eax, dword [ebp - 0x80]
mov dword [ebp - 0x6c], edi
mov dword [ebp - 0x78], eax
jmp 0x44470b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x6c], eax
jmp 0x44470b
push dword [ebp - 0x6c]
call fcn.00442bc7
pop ecx
jmp 0x44479f
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x44478d
mov eax, dword [ebp + 0x3ac]
cmp byte [eax], 0x1a
jne 0x44478d
xor eax, eax
jmp 0x4447a7
call fcn.00442bb5
mov dword [eax], 0x1c
call fcn.00442bbe
mov dword [eax], edi
or eax, 0xffffffff
jmp 0x4447a7
sub eax, dword [ebp - 0x7c]
pop esi
pop ebx
mov ecx, dword [ebp + 0x39c]
pop edi
call fcn.00439ccc
add ebp, 0x3a0
leave
ret
Function at 0x444c89
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x467940], ebx
push esi
push edi
jne 0x444d09
push str.user32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x444d44
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x458a34
push edi
call esi
test eax, eax
mov dword [0x467940], eax
je 0x444d44
push str.GetActiveWindow
push edi
call esi
push str.GetLastActivePopup
push edi
mov dword [0x467944], eax
call esi
cmp dword [0x467524], 2
mov dword [0x467948], eax
jne 0x444d09
push str.GetUserObjectInformationA
push edi
call esi
test eax, eax
mov dword [0x467950], eax
je 0x444d09
push str.GetProcessWindowStation
push edi
call esi
mov dword [0x46794c], eax
mov eax, dword [0x46794c]
test eax, eax
je 0x444d4e
call eax
test eax, eax
je 0x444d35
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x467950]
test eax, eax
je 0x444d35
test byte [ebp - 8], 1
jne 0x444d4e
cmp dword [0x467530], 4
jb 0x444d48
or byte [ebp + 0x12], 0x20
jmp 0x444d6d
xor eax, eax
jmp 0x444d7d
or byte [ebp + 0x12], 4
jmp 0x444d6d
mov eax, dword [0x467944]
test eax, eax
je 0x444d6d
call eax
mov ebx, eax
test ebx, ebx
je 0x444d6d
mov eax, dword [0x467948]
test eax, eax
je 0x444d6d
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x467940]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4485b4
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x100c
call fcn.0043b3a0
mov eax, dword [0x46059c]
push ebx
push esi
push 1
xor esi, esi
push esi
push dword [ebp + 8]
mov dword [ebp - 4], eax
call fcn.00444a21
or ebx, 0xffffffff
add esp, 0xc
cmp eax, ebx
mov dword [ebp - 0x1008], eax
je 0x4486e7
push 2
push esi
push dword [ebp + 8]
call fcn.00444a21
add esp, 0xc
cmp eax, ebx
je 0x4486e7
push edi
mov edi, dword [ebp + 0xc]
sub edi, eax
test edi, edi
jle 0x448687
mov ebx, 0x1000
push ebx
lea eax, [ebp - 0x1004]
push esi
push eax
call fcn.0043b3e0
push 0x8000
push dword [ebp + 8]
call fcn.00449240
add esp, 0x14
mov dword [ebp - 0x100c], eax
cmp edi, ebx
mov eax, ebx
jge 0x44863d
mov eax, edi
push eax
lea eax, [ebp - 0x1004]
push eax
push dword [ebp + 8]
call fcn.004445ef
add esp, 0xc
cmp eax, 0xffffffff
je 0x44865d
sub edi, eax
test edi, edi
jg 0x448635
jmp 0x448675
call fcn.00442bbe
cmp dword [eax], 5
jne 0x448672
call fcn.00442bb5
mov dword [eax], 0xd
or esi, 0xffffffff
push dword [ebp - 0x100c]
push dword [ebp + 8]
call fcn.00449240
pop ecx
pop ecx
jmp 0x4486cf
jge 0x4486cf
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00444a21
push dword [ebp + 8]
call fcn.00447512
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 0x4486cf
call fcn.00442bb5
mov dword [eax], 0xd
call fcn.00442bbe
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.00444a21
add esp, 0xc
mov eax, esi
pop edi
jmp 0x4486e9
mov eax, ebx
mov ecx, dword [ebp - 4]
pop esi
pop ebx
call fcn.00439ccc
leave
ret
Function at 0x4486f5
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x459958
call fcn.0043b248
xor edi, edi
xor ebx, ebx
inc ebx
cmp dword [0x4679ec], edi
jne 0x448739
push edi
push edi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x448724
mov dword [0x4679ec], ebx
jmp 0x448739
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x448739
mov dword [0x4679ec], 2
mov eax, dword [0x4679ec]
cmp eax, ebx
jne 0x448759
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
jmp 0x44881c
cmp eax, 2
je 0x448762
cmp eax, edi
jne 0x44878a
mov dword [ebp - 0x1c], edi
mov dword [ebp - 0x24], edi
cmp dword [ebp + 0x18], edi
jne 0x448775
mov eax, dword [0x467998]
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 0x448791
xor eax, eax
jmp 0x44881c
mov dword [ebp - 4], edi
add eax, 3
and eax, 0xfffffffc
call fcn.0043b3a0
mov dword [ebp - 0x18], esp
mov esi, esp
mov dword [ebp - 0x28], esi
or dword [ebp - 4], 0xffffffff
jmp 0x4487c4
cmp esi, edi
jne 0x4487da
push dword [ebp - 0x20]
call fcn.0043b0e1
pop ecx
mov esi, eax
cmp esi, edi
je 0x44878a
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 0x44880d
cmp dword [ebp + 0x14], edi
jne 0x4487f7
push edi
push edi
jmp 0x4487fd
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 0x448819
push esi
call fcn.0043b0f3
pop ecx
mov eax, dword [ebp - 0x1c]
lea esp, [ebp - 0x34]
call fcn.0043b283
ret
Function at 0x448825
Capabilities:
Get geographical location

Disassembly:
push 0x18
push 0x459968
call fcn.0043b248
xor esi, esi
cmp dword [0x4679f0], esi
jne 0x448869
push esi
push esi
xor edi, edi
inc edi
push edi
push esi
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
je 0x448854
mov dword [0x4679f0], edi
jmp 0x448869
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x78
jne 0x448869
mov dword [0x4679f0], 2
mov eax, dword [0x4679f0]
cmp eax, 2
je 0x44894a
cmp eax, esi
je 0x44894a
cmp eax, 1
jne 0x4488ae
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x20], esi
cmp dword [ebp + 0x18], esi
jne 0x448897
mov eax, dword [0x467998]
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 0x4488b5
xor eax, eax
jmp 0x44895c
mov dword [ebp - 4], esi
lea eax, [ebx + ebx]
add eax, 3
and eax, 0xfffffffc
call fcn.0043b3a0
mov dword [ebp - 0x18], esp
mov edi, esp
mov dword [ebp - 0x28], edi
or dword [ebp - 4], 0xffffffff
jmp 0x4488eb
cmp edi, esi
jne 0x448906
lea eax, [ebx + ebx]
push eax
call fcn.0043b0e1
pop ecx
mov edi, eax
cmp edi, esi
je 0x4488ae
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 0x448939
push esi
push esi
cmp dword [ebp + 0x14], esi
jne 0x448923
push esi
push esi
jmp 0x448929
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 0x448945
push edi
call fcn.0043b0f3
pop ecx
mov eax, dword [ebp - 0x1c]
jmp 0x44895c
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.0043b283
ret
Function at 0x44906b
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 0x449084
or eax, 0xffffffff
jmp 0x4490e5
push esi
mov esi, dword [eax]
cmp esi, ebx
mov dword [ebp - 4], esi
je 0x4490e1
push 0x3d
push esi
call fcn.004492ac
cmp eax, ebx
pop ecx
pop ecx
mov dword [ebp - 0xc], eax
je 0x4490e1
cmp esi, eax
je 0x4490e1
xor ecx, ecx
cmp byte [eax + 1], bl
mov eax, dword [0x467544]
sete cl
cmp eax, dword [0x467548]
mov dword [ebp - 8], ecx
jne 0x4490c7
mov edi, eax
call fcn.0044900a
mov dword [0x467544], eax
cmp eax, ebx
jne 0x449120
cmp dword [ebp + 0xc], ebx
je 0x4490e9
cmp dword [0x46754c], ebx
je 0x4490e9
call fcn.00448524
test eax, eax
je 0x449120
or eax, 0xffffffff
pop esi
pop edi
pop ebx
leave
ret
cmp dword [ebp - 8], ebx
je 0x4490f2
xor eax, eax
jmp 0x4490e4
push 4
call fcn.0043b0e1
cmp eax, ebx
pop ecx
mov dword [0x467544], eax
je 0x4490e1
mov dword [eax], ebx
cmp dword [0x46754c], ebx
jne 0x449120
push 4
call fcn.0043b0e1
cmp eax, ebx
pop ecx
mov dword [0x46754c], eax
je 0x4490e1
mov dword [eax], ebx
mov edi, dword [ebp - 0xc]
sub edi, dword [ebp - 4]
push dword [ebp - 4]
mov esi, dword [0x467544]
call fcn.00448fbd
mov edi, eax
cmp edi, ebx
pop ecx
jl 0x449181
cmp dword [esi], ebx
je 0x449181
lea esi, [esi + edi*4]
push dword [esi]
call fcn.0043b0f3
cmp dword [ebp - 8], ebx
pop ecx
jne 0x449164
mov eax, dword [ebp - 4]
mov dword [esi], eax
mov eax, dword [ebp + 8]
mov dword [eax], ebx
jmp 0x4491c2
mov eax, dword [esi + 4]
mov dword [esi], eax
inc edi
add esi, 4
cmp dword [esi], ebx
jne 0x44915b
mov eax, edi
shl eax, 2
push eax
push dword [0x467544]
call fcn.0043b9db
cmp eax, ebx
pop ecx
pop ecx
je 0x4491c2
jmp 0x4491bd
cmp dword [ebp - 8], ebx
jne 0x44922d
cmp edi, ebx
jge 0x449190
neg edi
lea eax, [edi*4 + 8]
push eax
push dword [0x467544]
call fcn.0043b9db
cmp eax, ebx
pop ecx
pop ecx
je 0x4490e1
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 [0x467544], eax
cmp dword [ebp + 0xc], ebx
je 0x449217
push dword [ebp - 4]
call fcn.00439ce0
inc eax
inc eax
push eax
call fcn.0043b0e1
mov esi, eax
cmp esi, ebx
pop ecx
pop ecx
je 0x449217
push dword [ebp - 4]
push esi
call fcn.00439d80
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 0x449210
or dword [ebp - 0x10], 0xffffffff
push esi
call fcn.0043b0f3
pop ecx
cmp dword [ebp - 8], ebx
je 0x449225
push dword [ebp - 4]
call fcn.0043b0f3
pop ecx
mov eax, dword [ebp - 0x10]
jmp 0x4490e4
push dword [ebp - 4]
call fcn.0043b0f3
mov eax, dword [ebp + 8]
pop ecx
mov dword [eax], ebx
jmp 0x4490ee
Function at 0x405360
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov esi, eax
mov al, byte [esi]
cmp al, 0x22
jne 0x40538e
mov al, byte [esi + 1]
mov ecx, esi
inc esi
cmp al, 0x22
je 0x405385
test al, al
jne 0x405377
cmp byte [esi], 0x22
cmovne esi, ecx
inc esi
jmp 0x405398
cmp al, 0x20
jle 0x405398
inc esi
cmp byte [esi], 0x20
jg 0x405392
mov al, byte [esi]
test al, al
je 0x4053ac
nop
cmp al, 0x20
jg 0x4053ac
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x4053a0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x18], 0
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x18], 1
movzx ebx, word [ebp - 0x14]
jne 0x4053cc
mov ebx, 0xa
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
mov edi, eax
push 0
push edi
call fcn.00405fd0
test eax, eax
je 0x405453
call fcn.00405be0
test eax, eax
je 0x405428
push edi
push 1
call fcn.00405a00
add esp, 8
test eax, eax
je 0x405428
push 0
push 0x2b3c088
push str.LabWindows_CVI
call fcn.004061d0
add esp, 0xc
or esi, 0xffffffff
call fcn.00405f60
push esi
call fcn.00406480
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0
push edi
call fcn.004066a0
mov esi, eax
call fcn.00405ce0
call fcn.00405c90
call fcn.00405f60
push esi
call fcn.00406480
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or esi, 0xffffffff
push esi
call fcn.00406480
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405660
Capabilities:
Check mutex on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [0x40806c], 0
je 0x405678
xor eax, eax
mov esp, ebp
pop ebp
ret
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x114]
push str.National_Instruments_LabWindows_CVI_Startup_library__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x114]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov edi, eax
test edi, edi
jne 0x4056b4
lea eax, [edi - 3]
pop edi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x40806c], 0
je 0x4056db
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push esi
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
push str.winmm.dll
call esi
mov dword [ebp - 8], eax
test eax, eax
jne 0x405707
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push str.advapi32.dll
call esi
mov ebx, eax
test ebx, ebx
je 0x405731
push str.kernel32.dll
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x405731
push str.user32.dll
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x405749
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
or eax, 0xffffffff
pop edi
mov esp, ebp
pop ebp
ret
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.timeGetTime
push dword [ebp - 8]
call esi
mov dword [0x408070], eax
test eax, eax
je 0x4057de
push str.RegOpenKeyExA
push ebx
call esi
mov dword [0x408074], eax
test eax, eax
je 0x4057de
push str.RegQueryValueExA
push ebx
call esi
mov dword [0x408078], eax
test eax, eax
je 0x4057de
push str.GetFileTime
push dword [ebp - 0xc]
call esi
mov dword [0x40807c], eax
test eax, eax
je 0x4057de
push str.KillTimer
push dword [ebp - 4]
call esi
mov dword [0x408080], eax
test eax, eax
je 0x4057de
push str.SetTimer
push dword [ebp - 4]
call esi
mov dword [0x408084], eax
test eax, eax
je 0x4057de
push edi
mov dword [0x40806c], 1
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
push dword [ebp - 8]
mov esi, dword [sym.imp.KERNEL32.dll_FreeLibrary]
call esi
push ebx
call esi
push dword [ebp - 0xc]
call esi
push dword [ebp - 4]
call esi
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop esi
mov eax, 0xfffffffe
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x405a00
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x407aaf]
xorps xmm0, xmm0
push ebx
push esi
cdq
push edi
mov edi, eax
mov byte [ebp - 1], 0
mov ebx, edx
movlpd qword [ebp - 0xc], xmm0
add edi, 0x83aa6260
push 0
adc ebx, 0
call sub.cvirte.dll_time
add esp, 4
test ebx, ebx
jl 0x405a7c
jg 0x405a3f
cmp edi, eax
jbe 0x405a7c
mov esi, dword [ebp - 0xc]
sub edi, eax
mov eax, dword [ebp - 8]
mov ecx, 0x3e8
sbb ebx, 0
nop
add esi, edi
adc eax, ebx
sub ecx, 1
jne 0x405a50
test eax, eax
jg 0x405a75
jl 0x405a7c
cmp esi, 0x927c0
jb 0x405a7c
test eax, eax
jl 0x405a88
jg 0x405a75
cmp esi, 0xfc5d36bf
jb 0x405a88
mov esi, 0xfc5d36bf
jmp 0x405a88
mov dword [ebp - 8], 0
mov esi, 0x927c0
call fcn.00405660
test eax, eax
je 0x405a9b
push 0
call fcn.00406480
add esp, 4
push 0x405830
push esi
push 0
push 0
call dword [0x408084]
mov dword [0x408060], eax
test eax, eax
jne 0x405ac0
pop edi
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [ebp + 8], 0
mov esi, dword [sym.imp.USER32.dll_wsprintfA]
mov edi, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
je 0x405afb
call edi
push eax
lea eax, [ebp - 0x10c]
push str.CVI_Demo_Exe__x
push eax
call esi
add esp, 0xc
lea eax, [ebp - 0x10c]
push eax
push 1
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
test eax, eax
je 0x405ab4
push 0x104
push 0x408088
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x405b33
xor ecx, ecx
nop dword [eax]
nop dword [eax + eax]
mov al, byte [ecx + str.Unknown_DLL_EXE]
lea ecx, [ecx + 1]
mov byte [ecx + 0x408087], al
test al, al
jne 0x405b20
call edi
push eax
lea eax, [ebp - 0x10c]
push str.CVI_Demo_Last_Time_Timer_Called___d
push eax
call esi
lea eax, [ebp - 0x10c]
push eax
push 4
push 0
push 4
push 0
push 0xffffffffffffffff
call fcn.00406430
add esp, 0x24
mov dword [0x408064], eax
test eax, eax
je 0x405ab4
call dword [sym.imp.KERNEL32.dll_GetLastError]
movzx ebx, byte [ebp - 1]
cmp eax, 0xb7
push 0
push 0
push 0
push 2
push dword [0x408064]
mov esi, 1
cmovne ebx, esi
call fcn.00406560
add esp, 0x14
mov dword [0x408068], eax
test eax, eax
jne 0x405ba9
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x405bce
call fcn.00405660
test eax, eax
je 0x405bc0
push 0
call fcn.00406480
add esp, 4
call dword [0x408070]
mov ecx, dword [0x408068]
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4065f0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x408448], 0
je 0x40660b
mov eax, 1
mov esp, ebp
pop ebp
ret
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
lea eax, [ebp - 0x108]
push str.National_Instruments_LabWindows_CVI_Startup_SDK_stubs__d
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov esi, eax
test esi, esi
jne 0x406644
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x408448], 0
jne 0x40667a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x408448], eax
test eax, eax
jne 0x40667a
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x408448], eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x408448], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret