joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48b274
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffe8c
xor edx, edx
mov dword [ebp - 0x170], edx
mov dword [ebp - 0x174], edx
mov dword [ebp - 0x16c], edx
mov dword [ebp - 0x164], edx
mov dword [ebp - 0x168], edx
mov dword [ebp - 0x160], edx
mov dword [ebp - 4], edx
lea eax, [ebp - 0x15c]
mov edx, dword [0x407e04]
call fcn.004052ac
xor eax, eax
push ebp
push 0x48b42f
push dword fs:[eax]
mov dword fs:[eax], esp
mov edx, dword [0x498654]
mov edx, dword [edx]
lea eax, [ebp - 0x160]
mov ecx, 0x48b444
call fcn.00404a04
mov eax, dword [ebp - 0x160]
lea edx, [ebp - 4]
call fcn.0040e584
mov edx, dword [0x49890c]
mov edx, dword [edx]
lea eax, [ebp - 0x168]
mov ecx, 0x48b444
call fcn.00404a04
mov eax, dword [ebp - 0x168]
lea edx, [ebp - 0x164]
call fcn.0040e584
mov edx, dword [ebp - 0x164]
mov eax, dword [0x498810]
call fcn.0040474c
mov eax, dword [0x498810]
mov eax, dword [eax]
call fcn.00409878
lea eax, [ebp - 0x16c]
mov ecx, 0x48b458
mov edx, dword [ebp - 4]
call fcn.00404a04
mov eax, dword [ebp - 0x16c]
lea ecx, [ebp - 0x15c]
mov edx, 0x3f
call fcn.004099cc
test eax, eax
jne 0x48b3f8
mov eax, dword [ebp - 0x150]
mov edx, 0x48b468
call fcn.00404b04
je 0x48b3da
mov eax, dword [ebp - 0x150]
mov edx, 0x48b474
call fcn.00404b04
je 0x48b3da
cmp dword [ebp - 0x150], 0
je 0x48b3da
push 0
mov edx, dword [0x498810]
mov edx, dword [edx]
lea eax, [ebp - 0x170]
mov ecx, dword [ebp - 0x150]
call fcn.00404a04
mov eax, dword [ebp - 0x170]
call fcn.00404bb8
push eax
lea eax, [ebp - 0x174]
mov ecx, dword [ebp - 0x150]
mov edx, dword [ebp - 4]
call fcn.00404a04
mov eax, dword [ebp - 0x174]
call fcn.00404bb8
push eax
call sub.kernel32.dll_CopyFileA
lea eax, [ebp - 0x15c]
call fcn.00409a1c
test eax, eax
je 0x48b361
lea eax, [ebp - 0x15c]
call fcn.00409a40
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x48b436
lea eax, [ebp - 0x174]
mov edx, 6
call fcn.0040471c
lea eax, [ebp - 0x15c]
mov edx, dword [0x407e04]
call fcn.0040537c
lea eax, [ebp - 4]
call fcn.004046f8
ret
Function at 0x4942a4
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffe8
push ebx
push esi
xor ecx, ecx
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x14], ecx
mov dword [ebp - 4], edx
xor eax, eax
push ebp
push 0x4943bd
push dword fs:[eax]
mov dword fs:[eax], esp
xor eax, eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
push 0
call sub.iphlpapi.dll_GetAdaptersInfo
cmp eax, 0x6f
je 0x4942e3
cmp eax, 0x7a
jne 0x4943a2
mov eax, dword [ebp - 8]
call fcn.00408af0
mov dword [ebp - 0xc], eax
xor eax, eax
push ebp
push 0x49439b
push dword fs:[eax]
mov dword fs:[eax], esp
lea eax, [ebp - 8]
push eax
mov eax, dword [ebp - 0xc]
push eax
call sub.iphlpapi.dll_GetAdaptersInfo
test eax, eax
jne 0x494385
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x494385
lea eax, [ebp - 0x14]
call fcn.004046f8
mov eax, dword [ebp - 0x10]
mov ebx, dword [eax + 0x190]
dec ebx
test ebx, ebx
jl 0x49436c
inc ebx
xor esi, esi
cmp dword [ebp - 0x14], 0
je 0x494345
lea eax, [ebp - 0x14]
mov edx, 0x4943d4
call fcn.004049c0
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax + esi + 0x194]
lea ecx, [ebp - 0x18]
mov edx, 2
call fcn.00409450
mov edx, dword [ebp - 0x18]
lea eax, [ebp - 0x14]
call fcn.004049c0
inc esi
dec ebx
jne 0x494332
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
call dword [ecx + 0x38]
mov eax, dword [ebp - 0x10]
mov eax, dword [eax]
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x494319
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4943a2
mov eax, dword [ebp - 0xc]
call fcn.00402ae4
ret
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4943c4
lea eax, [ebp - 0x18]
mov edx, 2
call fcn.0040471c
ret

Function at 0x6f8000
Capabilities:
Access peb ldr_data
Get ntdll base address
Resolve function by parsing pe exports

Disassembly:
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
movzx ecx, word [eax + 0x3c]
mov edx, dword [eax + ecx + 0x78]
add edx, eax
mov ecx, dword [edx + 0x18]
mov ebx, dword [edx + 0x20]
add ebx, eax
dec ecx
mov esi, dword [ebx + ecx*4]
add esi, eax
cmp dword [esi], 0x45746553
jne 0x6f8024
cmp dword [esi + 4], 0x7269766e
jne 0x6f8024
cmp dword [esi + 0x13], 0x41656c62
je 0x6f8048
or ecx, ecx
jne 0x6f8024
mov ebx, dword [edx + 0x24]
add ebx, eax
movzx ecx, word [ebx + ecx*2]
mov ebx, dword [edx + 0x1c]
add ebx, eax
mov ebx, dword [ebx + ecx*4]
add ebx, eax
call fcn.006f807e
add edi, 0x21
cmp byte [edi], 0
je 0x6f8077
push edi
xor ecx, ecx
dec ecx
xor al, al
repne scasb al, byte es:[edi]
push edi
repne scasb al, byte es:[edi]
call ebx
jmp 0x6f8063
popal
push 0x496e5c
ret
Function at 0x453e30
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x40000]
push edi
jmp 0x453e4a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x453e51
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x453e40
mov eax, 1
add ebx, ebx
jne 0x453e63
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x453e74
jne 0x453e93
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x453e93
dec eax
add ebx, ebx
jne 0x453e80
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x453e58
add ebx, ebx
jne 0x453e8f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x453ee5
xor ecx, ecx
sub eax, 3
jb 0x453eab
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x453f1a
sar eax, 1
mov ebp, eax
jmp 0x453eb6
add ebx, ebx
jne 0x453eb6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x453e84
inc ecx
add ebx, ebx
jne 0x453ec4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x453e84
add ebx, ebx
jne 0x453ed1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x453ec6
jne 0x453ee2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x453ec6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x453f04
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x453ef6
jmp 0x453e46
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x453f04
add edi, ecx
jmp 0x453e46
pop esi
mov edi, esi
mov ecx, 0x2b3a
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x453f22
cmp byte [edi], 6
jne 0x453f22
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x453f27
lea edi, [esi + 0x51000]
mov eax, dword [edi]
or eax, eax
je 0x453f9f
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x54364]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x543a0]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x453f54
mov ecx, edi
jns 0x453f83
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x543a8]
or eax, eax
je 0x453f99
mov dword [ebx], eax
add ebx, 4
jmp 0x453f71
call dword [esi + 0x543a4]
mov ebp, dword [esi + 0x543ac]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x1d7]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x453fd3
sub esp, 0xffffff80
jmp 0x404e98
Function at 0x5112a0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x24
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov esi, dword [ebp + 0xc]
mov dword [esp + 4], esi
mov edi, dword [ebp + 8]
mov dword [esp], edi
mov dword [esp + 8], 0x263
call sub.cvirte.dll_GetCtrlAttribute
sub esp, 0x10
test eax, eax
js 0x5113fe
mov ecx, dword [ebp - 0x10]
mov eax, 0xffffffd3
cmp ecx, 0x1df
ja 0x511321
mov edx, dword [ebp + 0x10]
cmp ecx, 0x150
ja 0x511335
cmp ecx, 0x13d
ja 0x511342
cmp ecx, 0xea
ja 0x5113bb
cmp ecx, 0xcc
je 0x5113cb
cmp ecx, 0xce
je 0x5113cb
jmp 0x5113fe
add ecx, 0xfffffe20
cmp ecx, 2
jae 0x5113fe
jmp 0x5113cb
cmp ecx, 0x151
je 0x51134e
jmp 0x5113fe
cmp ecx, 0x13e
jne 0x5113fe
cmp edx, 0xffffffff
jne 0x5113cb
lea eax, [ebp - 0x14]
mov dword [esp + 8], eax
mov dword [esp + 4], esi
mov dword [esp], edi
call sub.cvirte.dll_GetNumListItems
sub esp, 0xc
test eax, eax
js 0x5113fe
mov ecx, dword [ebp - 0x14]
test ecx, ecx
jle 0x5113fe
xor ebx, ebx
nop
nop
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
mov dword [esp], edi
call fcn.00523140
sub esp, 0x1c
test eax, eax
js 0x5113fe
inc ebx
cmp ebx, dword [ebp - 0x14]
jge 0x5113fe
jmp 0x511380
cmp ecx, 0xeb
je 0x5113cb
cmp ecx, 0xf1
jne 0x5113fe
mov eax, dword [ebp + 0x20]
mov dword [esp + 0x18], eax
mov eax, dword [ebp + 0x1c]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x18]
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 4], esi
mov dword [esp], edi
mov dword [esp + 8], 0
call fcn.00523140
sub esp, 0x1c
add esp, 0x24
pop esi
pop edi
pop ebx
pop ebp
ret 0x1c
Function at 0x515cf0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xac
call sub.cvirte.dll_GetBreakOnLibraryErrors
mov dword [ebp - 0x98], eax
call sub.cvirte.dll_DisableBreakOnLibraryErrors
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cvirte.dll_ftell
mov dword [ebp - 0x9c], eax
xor esi, esi
mov edi, 0xffffffa3
cmp eax, 0xffffffff
je 0x515e4c
mov ebx, dword [ebp + 0xc]
call sub.cvirte.dll__GetErrno
cmp dword [eax], 0x64
je 0x515e4c
lea eax, [ebx + 1]
mov dword [ebp - 0x94], eax
mov edx, ebx
xor ebx, ebx
mov dword [ebp - 0x90], 1
xor eax, eax
xor ecx, ecx
mov edi, edx
jmp 0x515d67
inc dword [ebp - 0x90]
inc ecx
mov esi, edi
test eax, eax
jne 0x515d98
mov eax, dword [ebp + 8]
mov dword [esp + 0xc], eax
lea edi, [ebp - 0x8c]
mov dword [esp], edi
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 1
call sub.cvirte.dll_fread
test eax, eax
mov ecx, edi
je 0x515dc7
dec eax
mov dl, byte [ecx]
mov edi, esi
cmp dl, byte [edi]
jne 0x515db0
inc ebx
cmp ebx, dword [ebp + 0x10]
je 0x515dd5
inc edi
jmp 0x515d60
mov esi, dword [ebp + 0xc]
cmp dl, byte [esi]
mov edi, dword [ebp - 0x94]
je 0x515dbf
mov edi, esi
sete dl
movzx ebx, dl
jmp 0x515d60
mov esi, dword [ebp - 0x90]
dec esi
xor eax, eax
mov edi, dword [ebp + 0x10]
jmp 0x515de0
mov edi, dword [ebp + 0x10]
mov ebx, edi
mov esi, dword [ebp - 0x90]
cmp ebx, edi
sete cl
mov edx, edi
je 0x515deb
xor edx, edx
sub esi, edx
mov edx, dword [ebp + 0x14]
test edx, edx
je 0x515df6
mov dword [edx], esi
mov edx, dword [ebp + 0x18]
test edx, edx
je 0x515e05
add esi, dword [ebp - 0x9c]
mov dword [edx], esi
movzx esi, cl
cmp ebx, edi
jne 0x515e30
neg eax
mov dword [esp + 4], eax
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 8], 1
call sub.cvirte.dll_fseek
test eax, eax
je 0x515e30
mov edi, 0xffffffa3
jmp 0x515e4c
call sub.cvirte.dll_GetBreakOnLibraryErrors
cmp dword [ebp - 0x98], 0
je 0x515e45
call sub.cvirte.dll_EnableBreakOnLibraryErrors
jmp 0x515e4a
call sub.cvirte.dll_DisableBreakOnLibraryErrors
xor edi, edi
test edi, edi
js 0x515e52
mov edi, esi
mov eax, edi
add esp, 0xac
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
Function at 0x515e70
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0xa4
mov dword [ebp - 0x90], 0
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x14]
test eax, eax
je 0x515e96
mov dword [eax], 0
test ecx, ecx
je 0x515ea0
mov dword [ecx], 0
mov dword [esp], 0x53701b
call sub.cvirte.dll_strlen
mov esi, eax
inc esi
mov dword [esp], esi
call sub.cvirte.dll_malloc
mov edi, eax
test edi, edi
je 0x515fdc
mov dword [esp + 8], esi
mov dword [esp], edi
mov dword [esp + 4], 0x53701b
call sub.cvirte.dll_memcpy
mov dword [ebp - 0x90], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.cvirte.dll_ftell
mov dword [ebp - 0x9c], eax
mov esi, 0xffffffa3
cmp eax, 0xffffffff
je 0x515feb
call sub.cvirte.dll__GetErrno
cmp dword [eax], 0x64
je 0x515feb
mov dword [ebp - 0x98], 0
lea edx, [ebp - 0x8c]
mov edi, dword [ebp + 0x10]
xor ebx, ebx
nop
nop
nop
mov eax, pe_nt_image_headers32
cmp dword [ebp + 0x10], 0
js 0x515f42
mov eax, pe_nt_image_headers32
cmp edi, 0x80
ja 0x515f3a
mov eax, edi
test eax, eax
je 0x51602c
mov dword [ebp - 0x94], ebx
mov ecx, dword [ebp + 8]
mov dword [esp + 0xc], ecx
mov dword [esp + 8], eax
mov dword [esp], edx
mov dword [esp + 4], 1
mov esi, edx
call sub.cvirte.dll_fread
mov ebx, eax
test ebx, ebx
je 0x51600f
mov dword [esp + 8], ebx
mov dword [esp + 4], esi
lea eax, [ebp - 0x90]
mov dword [esp], eax
call fcn.00507ed0
sub esp, 0xc
mov dword [ebp - 0x98], eax
test eax, eax
js 0x51601e
mov dword [esp + 8], ebx
mov dword [esp], esi
mov dword [esp + 4], 0
cmp dword [ebp + 0x10], 0
mov eax, ebx
jns 0x515faf
xor eax, eax
sub edi, eax
mov esi, dword [ebp - 0x94]
add ebx, esi
call sub.cvirte.dll_memchr
test eax, eax
lea edx, [ebp - 0x8c]
je 0x515f20
mov edi, 1
sub edi, edx
add edi, esi
add edi, eax
jmp 0x516071
mov dword [ebp - 0x90], 0
mov esi, 0xfffffff4
mov ecx, dword [ebp - 0x90]
mov dword [esp], ecx
call sub.cvirte.dll_free
xor ecx, ecx
mov eax, esi
mov edx, dword [ebp + 0xc]
mov dword [edx], ecx
add esp, 0xa4
pop esi
pop edi
pop ebx
pop ebp
ret 0x14
mov eax, dword [ebp + 0x14]
test eax, eax
mov ebx, dword [ebp - 0x94]
jne 0x516033
jmp 0x516039
mov esi, dword [ebp - 0x98]
mov ecx, dword [ebp - 0x90]
jmp 0x515ff1
mov eax, dword [ebp + 0x18]
test eax, eax
je 0x516039
mov dword [eax], 1
cmp dword [0x56a054], 0
je 0x51606b
mov eax, dword [ebp - 0x90]
lea edi, [ebx - 1]
mov dword [esp + 4], edi
mov dword [esp], eax
call sub.cvirte.dll_CVI__mbsbtype
cmp eax, 1
jne 0x51606f
mov eax, dword [ebp - 0x90]
mov byte [eax + edi], 0
jmp 0x516071
mov edi, ebx
jmp 0x516071
mov edi, ebx
add edi, dword [ebp - 0x9c]
mov dword [esp + 4], edi
mov eax, dword [ebp + 8]
mov dword [esp], eax
mov dword [esp + 8], 0
call sub.cvirte.dll_fseek
test eax, eax
mov esi, dword [ebp - 0x98]
je 0x51609d
mov esi, 0xffffffa3
xor eax, eax
mov ecx, dword [ebp - 0x90]
test esi, esi
jns 0x515ffd
jmp 0x515ff1
Function at 0x5253a0
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 0x5253ce
mov al, byte [esi + 1]
mov ecx, esi
inc esi
cmp al, 0x22
je 0x5253c5
test al, al
jne 0x5253b7
cmp byte [esi], 0x22
cmovne esi, ecx
inc esi
jmp 0x5253d8
cmp al, 0x20
jle 0x5253d8
inc esi
cmp byte [esi], 0x20
jg 0x5253d2
mov al, byte [esi]
test al, al
je 0x5253ec
nop
cmp al, 0x20
jg 0x5253ec
mov al, byte [esi + 1]
inc esi
test al, al
jne 0x5253e0
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 0x52540c
mov ebx, 0xa
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push 0
mov edi, eax
push 0
push edi
call fcn.00526740
test eax, eax
je 0x5254cb
push 0
push edi
call fcn.005255c0
add esp, 8
call fcn.00526350
test eax, eax
je 0x525480
push edi
push 1
call fcn.00526170
add esp, 8
test eax, eax
je 0x525480
push 0
push str.This_Demo_of_LabWindows_CVI_has_expired.
push str.LabWindows_CVI
call fcn.00526940
add esp, 0xc
or esi, 0xffffffff
call fcn.005266d0
push edi
call fcn.005254e0
add esp, 4
push esi
call fcn.00526bf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x56a450], 0
je 0x525497
push fcn.00526fc0
push esi
call sub.cvirte.dll___CreatePtrInfoForWinMainCommandLine
add esp, 8
push ebx
push esi
push 0
push edi
call fcn.00526fc0
mov esi, eax
call fcn.00526450
call fcn.00526400
call fcn.005266d0
push edi
call fcn.005254e0
add esp, 4
push esi
call fcn.00526bf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
or esi, 0xffffffff
push esi
call fcn.00526bf0
add esp, 4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x525dd0
Capabilities:
Check mutex on windows
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
cmp dword [0x56a074], 0
je 0x525de8
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 0x525e24
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 [0x56a074], 0
je 0x525e4b
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 0x525e77
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 0x525ea1
push str.kernel32.dll
call esi
mov dword [ebp - 0xc], eax
test eax, eax
je 0x525ea1
push str.user32.dll
call esi
mov dword [ebp - 4], eax
test eax, eax
jne 0x525eb9
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 [0x56a078], eax
test eax, eax
je 0x525f4e
push str.RegOpenKeyExA
push ebx
call esi
mov dword [0x56a07c], eax
test eax, eax
je 0x525f4e
push str.RegQueryValueExA
push ebx
call esi
mov dword [0x56a080], eax
test eax, eax
je 0x525f4e
push str.GetFileTime
push dword [ebp - 0xc]
call esi
mov dword [0x56a084], eax
test eax, eax
je 0x525f4e
push str.KillTimer
push dword [ebp - 4]
call esi
mov dword [0x56a088], eax
test eax, eax
je 0x525f4e
push str.SetTimer
push dword [ebp - 4]
call esi
mov dword [0x56a08c], eax
test eax, eax
je 0x525f4e
push edi
mov dword [0x56a074], 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 0x526170
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
mov eax, dword [0x549c1a]
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 0x5261ec
jg 0x5261af
cmp edi, eax
jbe 0x5261ec
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 0x5261c0
test eax, eax
jg 0x5261e5
jl 0x5261ec
cmp esi, 0x927c0
jb 0x5261ec
test eax, eax
jl 0x5261f8
jg 0x5261e5
cmp esi, 0xfc5d36bf
jb 0x5261f8
mov esi, 0xfc5d36bf
jmp 0x5261f8
mov dword [ebp - 8], 0
mov esi, 0x927c0
call fcn.00525dd0
test eax, eax
je 0x52620b
push 0
call fcn.00526bf0
add esp, 4
push 0x525fa0
push esi
push 0
push 0
call dword [0x56a08c]
mov dword [0x56a068], eax
test eax, eax
jne 0x526230
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 0x52626b
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 0x526224
push 0x104
push 0x56a090
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x5262a3
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 + 0x56a08f], al
test al, al
jne 0x526290
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.00526ba0
add esp, 0x24
mov dword [0x56a06c], eax
test eax, eax
je 0x526224
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 [0x56a06c]
mov esi, 1
cmovne ebx, esi
call fcn.00526cd0
add esp, 0x14
mov dword [0x56a070], eax
test eax, eax
jne 0x526319
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
test bl, bl
je 0x52633e
call fcn.00525dd0
test eax, eax
je 0x526330
push 0
call fcn.00526bf0
add esp, 4
call dword [0x56a078]
mov ecx, dword [0x56a070]
mov dword [ecx], eax
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x526d60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
cmp dword [0x56a45c], 0
je 0x526d7b
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 0x526db4
pop esi
mov esp, ebp
pop ebp
ret
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp dword [0x56a45c], 0
jne 0x526dea
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x56a45c], eax
test eax, eax
jne 0x526dea
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov dword [0x56a45c], eax
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [0x56a45c], eax
pop esi
setne al
mov esp, ebp
pop ebp
ret