joyce8/EMBER2024-capa huggingface dataset:
Function at 0x51ece0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x634c70
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push esi
push edi
mov eax, dword [0x6db1a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov eax, dword [ebp + 8]
mov esi, dword [eax]
cmp dword [esi - 0xc], 0
lea eax, [esi - 0xc]
jl 0x51ed1f
mov dword [ebp + 8], esi
lock inc dword [eax]
jmp 0x51ed40
mov eax, dword [0x6ce014]
mov dword [ebp + 8], eax
test esi, esi
jne 0x51ed2f
xor eax, eax
jmp 0x51ed36
push esi
call dword [0x64c2e4]
push esi
push eax
lea ecx, [ebp + 8]
call fcn.004fccc0
push 0x651400
mov dword [ebp - 4], 0
call dword [0x64c2e4]
push 0x651400
push eax
lea ecx, [ebp + 8]
call fcn.00516890
push dword [edi + 4]
mov esi, dword [ebp + 8]
push 1
push dword [esi - 8]
push esi
call fcn.005db5ae
push dword [edi + 4]
call fcn.005da4bd
add esp, 0x14
test eax, eax
jne 0x51edb6
lea eax, [esi - 0xc]
cmp eax, dword [0x6ce010]
je 0x51eda3
add esi, 0xfffffff4
or eax, 0xffffffff
lock xadd dword [esi], eax
dec eax
test eax, eax
jg 0x51eda3
push esi
call fcn.005b9a8a
add esp, 4
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push dword [edi + 4]
call fcn.005da2c8
add esp, 4
lea ecx, [ebp - 0x10]
call fcn.00506350
push dword [edi + 8]
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 1
push str.CFileStream::WriteString___s_
push eax
call fcn.004fd790
add esp, 0xc
lea eax, [ebp - 0x10]
lea ecx, [ebp - 0x1c]
push eax
call fcn.004f9030
push 0x6b10c8
lea eax, [ebp - 0x1c]
push eax
call fcn.005bc076
int3

Function at 0x51f860
Capabilities:
Encode data using xor
Hash data using murmur3

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov eax, dword [0x6db1a4]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x1c]
push ebx
push esi
push edi
push dword [eax]
call fcn.0051f720
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
mov edi, dword [ebp - 0x1c]
mov eax, dword [ebp - 0xc]
cmovae ecx, edi
add eax, ecx
cmp dword [ebp - 8], 0x10
lea ecx, [ebp - 0x1c]
mov ebx, eax
cmovae ecx, edi
xor edx, edx
sub ebx, ecx
xor esi, esi
cmp ecx, eax
cmova ebx, edx
test ebx, ebx
je 0x51f8d8
nop dword [eax]
movsx eax, byte [ecx]
lea ecx, [ecx + 1]
imul eax, eax, 0xcc9e2d51
inc edx
rol eax, 0xf
imul eax, eax, 0x1b873593
xor esi, eax
rol esi, 0xd
add esi, 0xfaddaf14
lea esi, [esi + esi*4]
cmp edx, ebx
jne 0x51f8b0
mov eax, dword [ebp - 8]
cmp eax, 0x10
jb 0x51f907
lea ecx, [eax + 1]
mov eax, edi
cmp ecx, 0x1000
jb 0x51f8fd
mov edi, dword [edi - 4]
add ecx, 0x23
sub eax, edi
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x51f91a
push ecx
push edi
call fcn.005b9a73
add esp, 8
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.005ba1ab
mov esp, ebp
pop ebp
ret
call fcn.005c5e19
int3
Function at 0x524300
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635370
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x6db1a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
lea ecx, [ebp - 0x28]
call fcn.005233d0
push dword [ebp + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 0
call fcn.00524470
or ebx, 0xffffffff
cmp eax, 0x80004005
jne 0x524355
mov edi, eax
jmp 0x524415
lea ecx, [ebp - 0x28]
call fcn.0051c9e0
mov esi, eax
push esi
mov dword [ebp - 0x10], esi
call fcn.005b9a81
add esp, 4
mov dword [ebp - 0x1c], eax
lea ecx, [ebp - 0x18]
push dword [ebp + 8]
push eax
call fcn.0051ada0
mov eax, dword [edi]
mov ecx, edi
mov byte [ebp - 4], 1
call dword [eax + 0x14]
mov ecx, eax
lea eax, [esi - 1]
push ecx
push eax
call fcn.00522ae0
lea eax, [ebp - 0x14]
push eax
push esi
mov esi, dword [ebp - 0x1c]
lea ecx, [ebp - 0x28]
push esi
call fcn.0051ddc0
cmp eax, 0x80004005
jne 0x5243ad
mov edi, eax
jmp 0x5243e0
mov al, byte [esi]
xor esi, esi
mov byte [ebp + 0xb], al
mov eax, dword [ebp - 0x10]
dec eax
test eax, eax
jle 0x5243de
mov ebx, eax
nop
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x1c]
mov eax, dword [eax]
mov cl, byte [ecx + esi + 1]
xor cl, byte [ebp + 0xb]
mov byte [esi + eax], cl
inc esi
cmp esi, ebx
jl 0x5243c0
or ebx, 0xffffffff
xor edi, edi
mov esi, dword [ebp - 0x18]
mov byte [ebp - 4], 2
test esi, esi
je 0x524415
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x524415
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
mov edx, ebx
lock xadd dword [eax], edx
cmp edx, 1
jne 0x524415
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
lea ecx, [ebp - 0x28]
mov dword [ebp - 4], 3
mov dword [ebp - 0x28], vtable.CFileStream.0
call fcn.0051be30
mov ecx, dword [ebp - 0x20]
lea eax, [ecx - 0xc]
cmp eax, dword [0x6ce010]
je 0x524454
add ecx, 0xfffffff4
lock xadd dword [ecx], ebx
dec ebx
test ebx, ebx
jg 0x524454
mov ecx, dword [ebp - 0x20]
add ecx, 0xfffffff4
push ecx
call fcn.005b9a8a
add esp, 4
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x5246d0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x635408
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x6db1a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ecx, dword [0x6e19b0]
push 0xff
call fcn.00519090
mov edx, dword [edi]
mov ecx, edi
mov byte [ebp - 0xd], al
call dword [edx + 0x14]
mov ebx, dword [eax + 4]
sub ebx, dword [eax]
lea eax, [ebx + 1]
push eax
mov dword [ebp - 0x18], eax
call fcn.005b9a81
add esp, 4
mov dword [ebp - 0x24], eax
lea ecx, [ebp - 0x20]
push dword [ebp + 8]
push eax
call fcn.0051ada0
mov ecx, dword [ebp - 0x24]
xor esi, esi
mov al, byte [ebp - 0xd]
mov dword [ebp - 4], 0
mov byte [ecx], al
test ebx, ebx
jle 0x52476b
nop dword [eax]
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0x14]
mov ecx, dword [ebp - 0x24]
mov eax, dword [eax]
mov al, byte [eax + esi]
xor al, byte [ebp - 0xd]
mov byte [ecx + esi + 1], al
inc esi
cmp esi, ebx
jl 0x524750
lea ecx, [ebp - 0x30]
call fcn.005233d0
mov eax, dword [0x6ce014]
mov ecx, 0x651bfc
mov dword [ebp - 0x14], eax
mov eax, ecx
shr eax, 0x10
mov byte [ebp - 4], 1
test eax, eax
jne 0x52479b
movzx eax, cx
lea ecx, [ebp - 0x14]
push eax
call fcn.0050a620
jmp 0x5247ce
push 0x651bfc
call dword [0x64c2e4]
mov esi, eax
test esi, esi
je 0x5247ce
push esi
lea ecx, [ebp - 0x14]
call fcn.004fcc00
test eax, eax
je 0x5247ce
push esi
push 0x651bfc
lea eax, [esi + 1]
push eax
push dword [ebp - 0x14]
call fcn.00502200
add esp, 0x10
lea eax, [ebp - 0x14]
mov byte [ebp - 4], 2
push eax
push dword [ebp + 8]
lea ecx, [ebp - 0x30]
call fcn.0051d680
cmp eax, 0x80004005
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x14]
sete byte [ebp + 0xb]
or ebx, 0xffffffff
lea ecx, [eax - 0xc]
cmp ecx, dword [0x6ce010]
je 0x52481c
lea ecx, [eax - 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x52481c
mov eax, dword [ebp - 0x14]
add eax, 0xfffffff4
push eax
call fcn.005b9a8a
add esp, 4
cmp byte [ebp + 0xb], 0
je 0x524829
mov edi, 0x80004005
jmp 0x52483d
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea ecx, [ebp - 0x30]
push dword [ebp - 0x24]
call fcn.0051ea00
mov edi, eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
mov dword [ebp - 0x30], vtable.CFileStream.0
call fcn.0051be30
mov eax, dword [ebp - 0x28]
lea ecx, [eax - 0xc]
cmp ecx, dword [0x6ce010]
je 0x52487b
lea ecx, [eax - 0xc]
mov eax, ebx
lock xadd dword [ecx], eax
dec eax
test eax, eax
jg 0x52487b
mov eax, dword [ebp - 0x28]
add eax, 0xfffffff4
push eax
call fcn.005b9a8a
add esp, 4
mov dword [ebp - 0x30], vtable.IFile.0
mov esi, dword [ebp - 0x20]
mov dword [ebp - 4], 4
test esi, esi
je 0x5248b8
lea eax, [esi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x5248b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
lea eax, [esi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x5248b8
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 8]
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x53a050
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x636b87
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x6db1a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov ebx, dword [edi + 4]
push ebx
mov dword [ebp - 0x24], ebx
call dword [0x64c44c]
mov dword [ebp - 0x28], eax
push 0x20
push dword [edi + 0xc]
lea ecx, [edi + 0x28]
mov dword [ebp - 4], 0
push dword [edi + 8]
push eax
call fcn.005365f0
mov eax, dword [edi + 0x2c]
lea ecx, [edi + 0x28]
mov edx, dword [edi + 0x30]
push 0xff
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], edx
call fcn.00530bf0
push 0x60
call fcn.005b9a43
add esp, 4
mov dword [ebp - 0x2c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x53a0f8
push 0x20
push dword [edi + 0xc]
mov ecx, eax
push dword [edi + 8]
call fcn.0052f9d0
jmp 0x53a0fa
xor eax, eax
push eax
lea ecx, [edi + 0x10]
mov byte [ebp - 4], 0
call fcn.00537ff0
mov ecx, dword [edi + 0x10]
push 0xff
push 0
mov eax, dword [ecx + 4]
mov edx, dword [ecx + 8]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x14], edx
call fcn.00530bf0
push dword [ebp - 0x28]
push ebx
call dword [0x64c3ec]
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ba1ab
mov esp, ebp
pop ebp
ret
Function at 0x550a80
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6395cc
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x6db1a4]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x18], esi
mov dword [esi + 4], 0
mov dword [ebp - 4], 0
mov dword [esi + 8], vtable.IWinMsgHook.0
mov dword [esi], vtable.CWaveSoundStream.0
mov dword [esi + 8], vtable.CWaveSoundStream.1.0
mov eax, dword [0x6ce014]
mov dword [esi + 0xc], eax
mov dword [esi + 0x10], 4
mov dword [esi + 0x1c], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 0x30], 0
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x44], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x54], 0
mov dword [esi + 0x58], 0
mov dword [esi + 0x5c], 0
mov dword [esi + 0x60], 0
push 4
mov byte [ebp - 4], 7
call fcn.005b9a43
add esp, 4
mov dword [ebp - 0x14], eax
test eax, eax
je 0x550b5d
mov dword [eax], vtable.CNullSoundBuffer.0
jmp 0x550b5f
xor eax, eax
sub esp, 8
mov ecx, esp
push eax
call fcn.005502a0
mov ecx, esi
call fcn.00552740
push 0x20
call fcn.005b9a43
add esp, 4
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 8
test eax, eax
je 0x550b90
push esi
mov ecx, eax
call fcn.0054dc30
jmp 0x550b92
xor eax, eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], 0
push eax
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 9
call fcn.0054e480
mov edx, dword [ebp - 0x1c]
mov ecx, dword [eax]
mov dword [ebp - 0x1c], ecx
mov dword [eax], edx
mov edi, dword [ebp - 0x14]
or ebx, 0xffffffff
mov byte [ebp - 4], 0xa
test edi, edi
je 0x550bee
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x550bee
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
mov edx, ebx
lock xadd dword [eax], edx
cmp edx, 1
jne 0x550bee
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
mov eax, dword [ebp - 0x10]
push eax
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.005025f0
mov eax, dword [esi + 0x5c]
add esp, 0xc
mov ecx, dword [ebp - 0x20]
mov dword [esi + 0x5c], ecx
mov edi, dword [esi + 0x60]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [esi + 0x60], eax
mov dword [ebp - 0x1c], edi
mov byte [ebp - 4], 0xb
test edi, edi
je 0x550c47
lea eax, [edi + 4]
mov ecx, ebx
lock xadd dword [eax], ecx
cmp ecx, 1
jne 0x550c47
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 4]
lea eax, [edi + 8]
lock xadd dword [eax], ebx
cmp ebx, 1
jne 0x550c47
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 8]
lea eax, [esi + 8]
mov byte [ebp - 4], 7
push eax
call fcn.005172c0
mov ecx, eax
call fcn.0051a620
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x5b1970
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x646094
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x6db1a4]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov dword [ebp - 0x40], edi
mov dword [edi], vtable.boost::detail::thread_data_base.0
mov dword [edi + 4], 0
mov dword [ebp - 0x44], edi
mov dword [edi + 8], 0
lea esi, [edi + 0x14]
mov dword [edi + 0xc], 0
mov dword [edi + 0x10], 0
mov ecx, esi
mov dword [ebp - 4], 0
mov dword [ebp - 0x40], esi
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.00552ef0
mov dword [esi], eax
mov dword [edi + 0x1c], 0
mov dword [edi + 0x20], 0
mov dword [edi + 0x24], 0
mov dword [edi + 0x28], 0
mov dword [edi + 0x2c], 0
mov dword [edi + 0x30], 0
push 0
push 0
push 1
push 0
mov byte [ebp - 4], 3
call dword [0x64c310]
test eax, eax
je 0x5b1a4b
mov dword [edi + 0x34], eax
mov eax, edi
mov byte [edi + 0x38], 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.005ba1ab
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x3c]
call fcn.004f9f20
push eax
mov byte [ebp - 4], 4
call fcn.004f8720
int3

Function at 0x5b7e50
Capabilities:
Create thread

Disassembly:
push ebx
push esi
mov esi, ecx
mov edx, dword [esi]
lea eax, [edx + 0x10]
push eax
push 4
push edx
push 0x5b7f20
push 0
push 0
call fcn.005e64e1
mov ebx, eax
add esp, 0x18
test ebx, ebx
jne 0x5b7e79
pop esi
xor al, al
pop ebx
ret
mov eax, dword [esi]
push edi
add eax, 4
lock inc dword [eax]
mov edi, dword [esi]
mov eax, dword [edi + 8]
test eax, eax
je 0x5b7e97
cmp eax, 0xffffffff
je 0x5b7e97
push eax
call dword [0x64c31c]
mov dword [edi + 8], ebx
mov eax, dword [esi]
push dword [eax + 8]
call dword [0x64c1ec]
pop edi
pop esi
mov al, 1
pop ebx
ret

Function at 0x5f1c82
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.005f1877
Function at 0x40b350
Capabilities:
Get common file path
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x45c
mov eax, dword [0x4e506c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
lea eax, [ebp - 0x420]
push esi
push edi
push 0x208
push 0
push eax
mov dword [ebp - 0x45c], ebx
call fcn.00485bb0
add esp, 0xc
test ebx, ebx
je 0x40b547
push 0x204
lea eax, [ebp - 0x218]
push 0
push eax
call fcn.00485bb0
add esp, 0xc
lea eax, [ebp - 0x218]
push 0x102
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x40b541
push 0
push 0
push 0
push 0
push 0
push 0
push 3
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x218]
push eax
call fcn.0048bfa0
add esp, 0x24
test eax, eax
jne 0x40b541
lea eax, [ebp - 0xc]
push eax
push str.__s
lea eax, [ebp - 0x420]
push 0x104
push eax
call fcn.0040c790
add esp, 0x10
lea eax, [ebp - 0x420]
push 0
push 0x80
push 3
push 0
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40b541
push 0
lea eax, [ebp - 0x424]
mov dword [ebp - 0x428], 0
push eax
push 8
lea eax, [ebp - 0x458]
mov dword [ebp - 0x430], 0
push eax
push 0xc
lea eax, [ebp - 0x430]
mov dword [ebp - 0x42c], 0
push eax
xorps xmm0, xmm0
mov dword [ebp - 0x424], 0
push 0x2d1400
push ebx
movups xmmword [ebp - 0x458], xmm0
movups xmmword [ebp - 0x448], xmm0
movq qword [ebp - 0x438], xmm0
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40b541
mov edi, dword [ebp - 0x454]
test edi, edi
je 0x40b547
push edi
call fcn.0046dcae
mov esi, eax
add esp, 4
test esi, esi
je 0x40b4c5
push edi
push 0
push esi
call fcn.00485bb0
add esp, 0xc
jmp 0x40b4c7
xor esi, esi
push 0
lea eax, [ebp - 0x424]
push eax
push edi
push esi
push 0xc
lea eax, [ebp - 0x430]
push eax
push 0x2d1400
push ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
jne 0x40b515
call dword [sym.imp.KERNEL32.dll_GetLastError]
xor edi, edi
test esi, esi
je 0x40b500
push esi
call fcn.0046daa5
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0046d546
mov esp, ebp
pop ebp
ret 8
test esi, esi
je 0x40b4f1
mov eax, dword [esi + 0x18]
test eax, eax
je 0x40b4f1
add eax, esi
je 0x40b4f1
mov ecx, dword [ebp - 0x45c]
push eax
call fcn.0040b270
add esp, 4
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov edi, 1
jmp 0x40b4f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0046d546
mov esp, ebp
pop ebp
ret 8
Function at 0x404cb0
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esp + 8]
mov dword [esi], 0
mov word [esi + 4], 0
call fcn.00402620
test al, al
jne 0x404cdf
mov ecx, dword [esp + 8]
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x404ce1
mov eax, dword [eax]
jmp 0x404ce1
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x404d09
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
mov eax, esi
jne 0x404d0b
mov byte [esi + 5], 1
pop esi
ret 4
mov eax, esi
pop esi
ret 4

Function at 0x404d60
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f250
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x498098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebx]
test eax, eax
je 0x404da6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebx], 0
push 0x2c
mov word [ebx + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0044b576
mov esi, eax
lea ecx, [ebp - 0x30]
add esp, 4
mov dword [ebp - 0x14], esi
mov dword [esi], 0
lea edi, [esi + 0x14]
mov dword [esi + 4], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], edi
push str.Advapi32.dll
mov dword [esi + 0x10], 0
call fcn.00403280
mov dword [ebp - 4], 0
lea eax, [ebp - 0x30]
push eax
call fcn.004084c0
mov ecx, eax
call fcn.00408580
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x30]
call fcn.004026b0
push 0
push 0
push edi
lea ecx, [ebp - 0x14]
call fcn.00407800
mov esi, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x404e3c
lea edi, [esi + 8]
jmp 0x404e3e
xor edi, edi
mov ecx, dword [ebp - 0x18]
call fcn.00402620
test al, al
jne 0x404e5c
mov ecx, dword [ebp - 0x18]
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x404e5e
mov eax, dword [eax]
jmp 0x404e5e
xor eax, eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx], eax
test eax, eax
je 0x404e7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x404e7f
mov byte [ebx + 5], 1
cmp dword [ebx], 0
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x404ea8
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x404ebd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0044b5a6
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b565
mov esp, ebp
pop ebp
ret 4
Function at 0x404ef0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x46f290
mov eax, dword fs:[0]
push eax
sub esp, 0x2c
mov eax, dword [0x498098]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x20], esi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x1c], eax
mov eax, dword [esi]
test eax, eax
je 0x404f39
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 0x2c
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.0044b576
mov esi, eax
lea ecx, [ebp - 0x38]
add esp, 4
mov dword [ebp - 0x14], esi
lea ebx, [esi + 4]
mov dword [esi], 0
lea edi, [esi + 0x14]
mov dword [ebx], 0
mov dword [esi + 8], 0xc
mov dword [esi + 0xc], edi
push str.Advapi32.dll
mov dword [esi + 0x10], 0
call fcn.00403280
mov dword [ebp - 4], 0
lea eax, [ebp - 0x38]
push eax
call fcn.004084c0
mov ecx, eax
call fcn.00408580
mov dword [esi + 0x28], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x38]
call fcn.004026b0
push ebx
push 1
push edi
lea ecx, [ebp - 0x14]
call fcn.00407800
mov esi, dword [ebp - 0x14]
mov dword [esi], eax
mov dword [ebp - 4], 1
cmp dword [esi], 0
je 0x404fd0
lea ebx, [esi + 8]
jmp 0x404fd2
xor ebx, ebx
mov edi, dword [ebp - 0x1c]
mov ecx, edi
mov dword [ebp - 0x18], ebx
call fcn.00402620
test al, al
jne 0x404ff4
mov ecx, edi
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x404ff6
mov eax, dword [eax]
jmp 0x404ff6
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ebx, dword [ebp - 0x20]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx], eax
test eax, eax
jne 0x405050
call ecx
cmp eax, 5
jne 0x40504a
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.00402620
test al, al
jne 0x40503a
mov ecx, edi
call fcn.00402810
cmp dword [eax + 0x14], 8
jb 0x40503c
mov eax, dword [eax]
jmp 0x40503c
xor eax, eax
push eax
push 0
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [ebx], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [ebx]
test eax, eax
je 0x40506e
call ecx
cmp eax, 0xb7
jne 0x405063
mov byte [ebx + 5], 1
mov ecx, dword [ebx]
call fcn.00406060
mov eax, dword [ebx]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
mov eax, dword [esi]
test eax, eax
je 0x405094
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], 0
mov eax, dword [esi + 4]
test eax, eax
je 0x4050a9
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [esi + 4], 0
push 0x2c
push esi
call fcn.0044b5a6
add esp, 8
mov dword [ebp - 0x14], 0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.0044b565
mov esp, ebp
pop ebp
ret 4
Function at 0x405130
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x498098]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.0044b576
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.0044dc70
add esp, 0x10
mov dword [esp + 4], 0x11c
lea eax, [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
mov eax, esi
je 0x40518c
cmp dword [esp + 8], 6
mov ecx, dword [esi]
setae dl
mov byte [ecx], dl
mov ecx, dword [esp + 0x120]
pop esi
xor ecx, esp
call fcn.0044b565
add esp, 0x120
ret