joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4de250
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6963d0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x729140]
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
call fcn.0040cdb0
test al, al
je 0x4de28d
xor al, al
jmp 0x4de439
mov ecx, edi
call fcn.004de0d0
test al, al
je 0x4de29f
mov al, 1
jmp 0x4de439
push 0
mov ecx, edi
call fcn.00405860
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x4de2ee
lea ecx, [ebp - 0x28]
call fcn.004058d0
mov dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004f8010
test al, al
je 0x4de2df
push 0
lea ecx, [ebp - 0x28]
call fcn.00405860
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405870
mov ecx, edi
call fcn.004de0d0
test al, al
jne 0x4de298
mov ecx, edi
call fcn.004060c0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x4de3de
mov ecx, edi
call fcn.004028e0
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x4de322
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x4de345
mov eax, ebx
cmp ecx, 8
jb 0x4de33b
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x4de3ce
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.0043fc80
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.0040cdb0
test al, al
jne 0x4de3bf
lea ecx, [ebp - 0x28]
call fcn.004ddec0
test al, al
jne 0x4de3bf
push 0
lea ecx, [ebp - 0x28]
call fcn.00405860
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4de3bf
lea ecx, [ebp - 0x40]
call fcn.004058d0
mov byte [ebp - 4], 2
lea edx, [ebp - 0x40]
lea ecx, [ebp - 0x28]
call fcn.004f8010
test al, al
je 0x4de3b3
push 0
lea ecx, [ebp - 0x40]
call fcn.00405860
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.00405870
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00405870
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x4de316
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.004ddec0
test al, al
jne 0x4de432
push 0
mov ecx, edi
call fcn.00405860
push eax
call ebx
test eax, eax
jne 0x4de432
lea ecx, [ebp - 0x40]
call fcn.004058d0
mov dword [ebp - 4], 3
lea edx, [ebp - 0x40]
mov ecx, edi
call fcn.004f8010
test al, al
je 0x4de423
push 0
lea ecx, [ebp - 0x40]
call fcn.00405860
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.00405870
mov ecx, edi
call fcn.004de0d0
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.00634bf3
mov esp, ebp
pop ebp
ret
Function at 0x4e09d0
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [ecx]
test eax, eax
je 0x4e0a08
mov edx, dword [esp + 4]
test edx, edx
je 0x4e0a08
cmp dword [eax], 0xffffffff
je 0x4e0a08
mov eax, dword [esp + 0xc]
push 0
push eax
push dword [esp + 0x10]
mov dword [eax], 0
mov eax, dword [ecx]
push edx
push dword [eax]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4e0a08
mov al, 1
ret 0xc
xor al, al
ret 0xc

Function at 0x4e0a10
Capabilities:
Write file on windows

Disassembly:
mov eax, dword [ecx]
push esi
push edi
test eax, eax
je 0x4e0a4a
mov ecx, dword [esp + 0xc]
test ecx, ecx
je 0x4e0a4a
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4e0a4a
mov esi, dword [esp + 0x14]
mov edi, dword [esp + 0x10]
push 0
push esi
push edi
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e0a4a
cmp edi, dword [esi]
jne 0x4e0a4a
pop edi
mov al, 1
pop esi
ret 0xc
pop edi
xor al, al
pop esi
ret 0xc

Function at 0x4e0ac0
Capabilities:
Get file size

Disassembly:
sub esp, 8
mov eax, dword [0x729140]
xor eax, esp
mov dword [esp + 4], eax
mov eax, dword [ecx]
push esi
push edi
mov edi, dword [esp + 0x14]
test eax, eax
je 0x4e0b23
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4e0b23
lea ecx, [esp + 8]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4e0afe
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jne 0x4e0b23
mov eax, dword [esp + 8]
xor ecx, ecx
add ecx, esi
mov dword [edi], ecx
adc eax, 0
mov dword [edi + 4], eax
mov al, 1
pop edi
pop esi
mov ecx, dword [esp + 4]
xor ecx, esp
call fcn.00634bf3
add esp, 8
ret 4
mov ecx, dword [esp + 0xc]
xor al, al
pop edi
pop esi
xor ecx, esp
call fcn.00634bf3
add esp, 8
ret 4

Function at 0x4e0c20
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x14
push ebx
push esi
mov esi, ecx
push edi
cmp dword [esi], 0
je 0x4e0cce
lea eax, [esp + 0x18]
xorps xmm0, xmm0
push eax
push 1
push 0
push 0
movlpd qword [esp + 0x28], xmm0
call fcn.004e0b40
test al, al
je 0x4e0cce
mov edi, dword [ebp + 0xc]
lea eax, [esp + 0x10]
push eax
push 0
push edi
push dword [ebp + 8]
xorps xmm0, xmm0
mov ecx, esi
movlpd qword [esp + 0x20], xmm0
call fcn.004e0b40
test al, al
je 0x4e0cce
mov eax, dword [ebp + 8]
xor bl, bl
cmp dword [esp + 0x10], eax
jne 0x4e0ca4
cmp dword [esp + 0x14], edi
jne 0x4e0ca4
mov eax, dword [esi]
test eax, eax
jne 0x4e0c91
xor bl, bl
jmp 0x4e0ca4
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4e0c8d
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne bl
lea eax, [esp + 0x10]
xorps xmm0, xmm0
push eax
push 0
push dword [esp + 0x24]
mov ecx, esi
movlpd qword [esp + 0x1c], xmm0
push dword [esp + 0x24]
call fcn.004e0b40
mov al, bl
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
pop edi
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4e0ce0
Capabilities:
Check for peb ntglobalflag flag

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x696b04
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x729140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 0x10], esi
call fcn.004058d0
mov dword [ebp - 4], 0
lea ecx, [esi + 0x18]
call fcn.004058d0
mov byte [ebp - 4], 1
lea ecx, [esi + 0x30]
call fcn.004058d0
mov byte [ebp - 4], 2
lea ecx, [esi + 0x48]
call fcn.004058d0
mov byte [ebp - 4], 3
lea ecx, [esi + 0x70]
mov word [esi + 0x60], 0x101
mov dword [esi + 0x64], 0
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
call fcn.004058d0
mov dword [ebp - 4], 0xffffffff
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4e1f10
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x68ad98
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x729140]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [esi + 8]
test edi, edi
jne 0x4e1f53
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
push 4
lea ecx, [ebp - 0x10]
call fcn.00407a60
lea eax, [edi + 0x20]
push eax
lea ecx, [ebp - 0x10]
call fcn.0042ab70
mov dword [ebp - 4], 0
mov eax, dword [esi + 8]
cmp dword [eax + 4], 0
je 0x4e1fca
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchangeAdd]
lea edi, [esi + 4]
push 1
push edi
call ebx
mov eax, dword [esi + 8]
add eax, 0xc
push eax
push 4
push esi
push 0x4e1af0
push 0
push 0
call fcn.00662401
mov ecx, dword [esi + 8]
add esp, 0x18
mov dword [ecx + 0x10], eax
mov eax, dword [esi + 8]
cmp dword [eax + 0x10], 0
jne 0x4e1fef
push 0xffffffffffffffff
push edi
call ebx
sub eax, 1
jne 0x4e1fc2
mov eax, dword [esi]
mov ecx, esi
call dword [eax + 4]
mov ecx, dword [esi + 8]
call fcn.004e1c80
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.0042aba0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov byte [eax + 8], 1
mov eax, dword [esi + 8]
mov ecx, dword [eax + 0x24]
test ecx, ecx
je 0x4e2007
push ecx
call dword [sym.imp.KERNEL32.dll_ResetEvent]
mov eax, dword [esi + 8]
push dword [eax + 0x10]
call dword [sym.imp.KERNEL32.dll_ResumeThread]
cmp eax, 0xffffffff
je 0x4e1fb1
mov bl, 1
jmp 0x4e1fcc
Function at 0x4e3920
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x696fe7
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push 4
call fcn.00634eb5
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], 0
mov dword [eax], 0
mov dword [eax], 0xffffffff
mov dword [ebp - 4], 0xffffffff
mov dword [ebp - 0x50], eax
mov dword [ebp - 4], 1
lea eax, [ebp - 0x50]
push 2
push 0
push 0x40000000
push esi
push eax
call fcn.004e4ea0
test al, al
je 0x4e3ae3
lea eax, [ebp - 0x5c]
xorps xmm0, xmm0
push eax
lea ecx, [ebp - 0x50]
movlpd qword [ebp - 0x5c], xmm0
call fcn.004e0ac0
test al, al
je 0x4e39c4
cmp dword [ebp - 0x58], 0
ja 0x4e39bd
cmp dword [ebp - 0x5c], 0
jbe 0x4e39c4
mov bl, 1
jmp 0x4e3ae5
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040d600
call fcn.0040cd90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.0040cd90
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x40]
call fcn.0040cd90
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x34]
call fcn.0040cd90
mov byte [ebp - 4], 5
mov dword [ebp - 0x28], 0xffffffff
mov byte [ebp - 4], 6
lea ecx, [edi + 0x24]
call fcn.00425220
test al, al
je 0x4e3a1b
lea ecx, [ebp - 0x4c]
call fcn.004e2850
jmp 0x4e3a24
push ecx
lea ecx, [ebp - 0x4c]
call fcn.004e4fe0
lea edx, [ebp - 0x24]
lea ecx, [ebp - 0x4c]
call fcn.004e3560
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x18], 0
call fcn.004028e0
mov edx, dword [eax]
call fcn.00425210
mov esi, dword [ebp - 0x50]
mov edi, eax
test esi, esi
jne 0x4e3a52
xor bl, bl
jmp 0x4e3a9a
test edx, edx
jne 0x4e3a5a
xor bl, bl
jmp 0x4e3a82
mov eax, dword [esi]
cmp eax, 0xffffffff
jne 0x4e3a65
xor bl, bl
jmp 0x4e3a82
push 0
lea ecx, [ebp - 0x18]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4e3a7c
xor bl, bl
jmp 0x4e3a82
cmp edi, dword [ebp - 0x18]
sete bl
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4e3a9a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
je 0x4e3a9a
mov dword [esi], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00425210
cmp dword [ebp - 0x18], eax
jne 0x4e3aaf
test bl, bl
je 0x4e3aaf
mov bl, 1
jmp 0x4e3ab1
xor bl, bl
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x34]
call fcn.00425230
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x40]
call fcn.00425230
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x4c]
call fcn.00425230
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x24]
call fcn.00425230
jmp 0x4e3ae8
xor bl, bl
mov esi, dword [ebp - 0x50]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4e3b1d
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x4e3b0b
test eax, eax
je 0x4e3b0b
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push 4
push esi
call fcn.00634ee5
add esp, 8
mov dword [ebp - 0x50], 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 - 0x14]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret 4
Function at 0x4e4b70
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x6971e8
mov eax, dword fs:[0]
push eax
sub esp, 0x58
mov eax, dword [0x729140]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
push ecx
lea ecx, [ebp - 0x24]
call fcn.0040d600
call fcn.0040cd90
mov dword [ebp - 4], 0
mov eax, ecx
push eax
mov ecx, edi
call fcn.004e4480
test al, al
jne 0x4e4bca
xor bl, bl
jmp 0x4e4d66
lea ecx, [ebp - 0x5c]
call fcn.0040cd90
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x50]
call fcn.0040cd90
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x44]
call fcn.0040cd90
mov byte [ebp - 4], 3
mov dword [ebp - 0x38], 0xffffffff
mov byte [ebp - 4], 4
lea ecx, [edi + 0x24]
call fcn.00425220
test al, al
jne 0x4e4c0e
push ecx
lea ecx, [ebp - 0x5c]
call fcn.004e4fe0
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x5c]
push eax
call fcn.004e3fc0
test al, al
jne 0x4e4c26
xor bl, bl
jmp 0x4e4d42
push ecx
lea ecx, [ebp - 0x30]
call fcn.0040d600
call fcn.0040cd90
mov byte [ebp - 4], 5
mov edx, ecx
lea ecx, [ebp - 0x5c]
call fcn.004e3560
lea ecx, [ebp - 0x30]
call fcn.00425220
test al, al
jne 0x4e4d34
mov ecx, esi
call fcn.004e0bd0
test al, al
je 0x4e4d34
lea ecx, [ebp - 0x30]
mov dword [ebp - 0x18], 0
call fcn.004028e0
mov edx, dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00425210
push eax
push edx
mov ecx, esi
call fcn.004e0a10
test al, al
je 0x4e4d34
lea ecx, [ebp - 0x30]
call fcn.00425210
cmp dword [ebp - 0x18], eax
jne 0x4e4d34
lea ecx, [ebp - 0x24]
call fcn.00425210
mov dword [ebp - 0x34], eax
mov eax, dword [esi]
test eax, eax
je 0x4e4d34
mov eax, dword [eax]
cmp eax, 0xffffffff
je 0x4e4d34
push 0
lea ecx, [ebp - 0x18]
push ecx
push 4
lea ecx, [ebp - 0x34]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x4e4d34
cmp dword [ebp - 0x18], 4
jne 0x4e4d34
lea ecx, [ebp - 0x24]
call fcn.00425220
test al, al
jne 0x4e4d0c
call fcn.004028e0
mov edx, dword [eax]
lea eax, [ebp - 0x18]
push eax
call fcn.00425210
push eax
push edx
mov ecx, esi
call fcn.004e0a10
test al, al
je 0x4e4d34
lea ecx, [ebp - 0x24]
call fcn.00425210
cmp dword [ebp - 0x18], eax
jne 0x4e4d34
lea eax, [ebp - 0x64]
xorps xmm0, xmm0
push eax
mov ecx, esi
movlpd qword [ebp - 0x64], xmm0
call fcn.004e0a90
test al, al
je 0x4e4d30
push dword [ebp - 0x60]
mov ecx, esi
push dword [ebp - 0x64]
call fcn.004e0c20
mov bl, 1
jmp 0x4e4d36
xor bl, bl
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x30]
call fcn.00425230
mov byte [ebp - 4], 7
lea ecx, [ebp - 0x44]
call fcn.00425230
mov byte [ebp - 4], 6
lea ecx, [ebp - 0x50]
call fcn.00425230
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x5c]
call fcn.00425230
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
call fcn.00425230
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 - 0x14]
xor ecx, ebp
call fcn.00634bf3
mov esp, ebp
pop ebp
ret 4
Function at 0x4e9870
Capabilities:
Query environment variable

Disassembly:
push ebp
lea ebp, [esp - 0x414]
sub esp, 0x414
push 0xfffffffffffffffe
push 0x716360
push 0x64c3b0
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x729140]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp + 0x410], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov esi, edx
mov edi, ecx
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x24], esi
mov dword [ebp - 4], 0
mov ecx, esi
call fcn.004142e0
mov ecx, edi
call fcn.004e9990
mov bl, al
mov byte [ebp - 0x19], bl
mov dword [ebp - 4], 0xfffffffe
jmp 0x4e98fc
test bl, bl
jne 0x4e995f
cmp edi, 0x1a
jne 0x4e995f
mov ecx, esi
call fcn.004142e0
push 0x410
push 0
lea eax, [ebp]
push eax
call fcn.0064d010
add esp, 0xc
push 0x207
lea eax, [ebp]
push eax
push str.APPDATA
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
lea eax, [ebp]
push eax
call fcn.00405dd0
add esp, 4
push eax
lea eax, [ebp]
push eax
mov ecx, esi
call fcn.00405b20
mov ecx, esi
call fcn.0040cdb0
movzx ebx, bl
mov ecx, 1
test al, al
cmove ebx, ecx
mov al, bl
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x410]
xor ecx, ebp
call fcn.00634bf3
lea esp, [ebp + 0x414]
pop ebp
ret
Function at 0x4e9bf0
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x691a81
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x729140]
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, edx
mov esi, ecx
mov dword [ebp - 0x30], esi
mov dword [ebp - 0x34], esi
mov ecx, edi
mov dword [ebp - 0x2c], 0
call fcn.004028e0
mov edx, eax
cmp dword [eax + 0x14], 8
jb 0x4e9c3d
mov edx, dword [eax]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x4e9c54
mov eax, edx
cmp word [eax], 0x25
je 0x4e9c88
add eax, 2
sub ecx, 1
jne 0x4e9c46
push edi
mov ecx, esi
call fcn.00414330
mov dword [ebp - 4], 0
mov dword [ebp - 0x2c], 1
mov eax, esi
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.00634bf3
mov esp, ebp
pop ebp
ret
test eax, eax
je 0x4e9c54
sub eax, edx
sar eax, 1
cmp eax, 0xffffffff
je 0x4e9c54
push edi
lea ecx, [ebp - 0x28]
call fcn.00414330
mov dword [ebp - 4], 1
mov ecx, edi
push 0
push 0
call fcn.00405860
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
mov dword [ebp - 0x30], eax
test eax, eax
jne 0x4e9cdb
push edi
mov ecx, esi
call fcn.00414330
mov dword [ebp - 0x2c], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x28]
call fcn.00405870
jmp 0x4e9c6a
xor ecx, ecx
add eax, 2
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006354e1
mov edx, dword [ebp - 0x30]
add esp, 4
inc edx
mov ebx, eax
mov ecx, edi
push edx
push ebx
call fcn.00405860
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x4e9d2f
cmp eax, dword [ebp - 0x30]
ja 0x4e9d2f
xor ecx, ecx
push ebx
mov word [ebx + eax*2], cx
call fcn.00405dd0
add esp, 4
lea ecx, [ebp - 0x28]
push eax
push ebx
call fcn.00405b20
push ebx
call fcn.00634f16
add esp, 4
lea eax, [ebp - 0x28]
mov ecx, esi
push eax
call fcn.00406120
jmp 0x4e9cc6

Function at 0x4e9d70
Capabilities:
Check mutex on windows

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi]
test eax, eax
je 0x4e9d86
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
mov ecx, dword [esp + 8]
mov word [esi + 4], 0
call fcn.0040cdb0
test al, al
jne 0x4e9da4
mov ecx, dword [esp + 8]
call fcn.00405860
jmp 0x4e9da6
xor eax, eax
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x4e9dc8
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4e9dc8
mov byte [esi + 5], 1
cmp dword [esi], 0
pop esi
setne al
ret 4
Function at 0x4e9de0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x697c98
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x729140]
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 eax, dword [esi]
mov ebx, dword [ebp + 8]
test eax, eax
je 0x4e9e23
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004f80e0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x4e9e4c
lea edi, [eax + 8]
jmp 0x4e9e4e
xor edi, edi
mov ecx, ebx
call fcn.0040cdb0
test al, al
jne 0x4e9e62
mov ecx, ebx
call fcn.00405860
jmp 0x4e9e64
xor eax, eax
push eax
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
test eax, eax
je 0x4e9e85
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x4e9e85
mov byte [esi + 5], 1
cmp dword [esi], 0
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004f8260
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.00634bf3
mov esp, ebp
pop ebp
ret 4

Function at 0x4e9ec0
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x697c98
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x729140]
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 eax, dword [esi]
mov edi, dword [ebp + 8]
test eax, eax
je 0x4e9f03
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [esi], 0
push ecx
lea ecx, [ebp - 0x14]
mov word [esi + 4], 0
mov dword [ebp - 0x14], 0
call fcn.004f81a0
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x14]
cmp dword [eax], 0
je 0x4e9f2d
lea ebx, [eax + 8]
jmp 0x4e9f2f
xor ebx, ebx
mov ecx, edi
call fcn.0040cdb0
test al, al
jne 0x4e9f43
mov ecx, edi
call fcn.00405860
jmp 0x4e9f45
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esi], eax
test eax, eax
jne 0x4e9f92
call ecx
cmp eax, 5
jne 0x4e9f8c
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, edi
call fcn.0040cdb0
test al, al
jne 0x4e9f7e
mov ecx, edi
call fcn.00405860
jmp 0x4e9f80
xor eax, eax
push eax
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov dword [esi], eax
mov ecx, dword [sym.imp.KERNEL32.dll_GetLastError]
mov eax, dword [esi]
test eax, eax
je 0x4e9fb0
call ecx
cmp eax, 0xb7
jne 0x4e9fa5
mov byte [esi + 5], 1
mov ecx, dword [esi]
call fcn.004ee0d0
mov eax, dword [esi]
test eax, eax
setne bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x14]
call fcn.004f8260
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.00634bf3
mov esp, ebp
pop ebp
ret 4
Function at 0x4ec670
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x697fb6
mov eax, dword fs:[0]
push eax
sub esp, 0x82c
mov eax, dword [0x729140]
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 dword [ebp - 0x820], ecx
lea eax, [ebp - 0x810]
push eax
push 0x3fe
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
mov ebx, eax
mov dword [ebp - 0x818], ebx
test ebx, ebx
je 0x4ec74e
lea edi, [ebp - 0x810]
mov dword [ebp - 0x814], 0
xor esi, esi
mov dword [ebp - 0x81c], edi
mov dword [ebp - 0x814], esi
mov dword [ebp - 4], esi
cmp ebx, 0x3fe
jbe 0x4ec76c
xor ecx, ecx
lea eax, [ebx + 2]
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.006354e1
add esp, 4
mov dword [ebp - 0x81c], eax
mov edi, eax
mov esi, edi
mov dword [ebp - 0x814], esi
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
test eax, eax
je 0x4ec73a
cmp eax, ebx
ja 0x4ec73a
xor ecx, ecx
mov ebx, eax
mov dword [edi + eax*2], ecx
mov dword [ebp - 0x818], ebx
jmp 0x4ec79a
mov dword [ebp - 4], 0xffffffff
test edi, edi
je 0x4ec74e
push edi
call fcn.00634f16
add esp, 4
xor al, al
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.00634bf3
mov esp, ebp
pop ebp
ret
lea eax, [ebx + ebx]
cmp eax, 0x800
jae 0x4ec825
xor ecx, ecx
mov word [ebp + eax - 0x810], cx
add eax, 2
cmp eax, 0x800
jae 0x4ec825
mov word [ebp + eax - 0x810], cx
xor ecx, ecx
xor edi, edi
test ebx, ebx
je 0x4ec80a
mov esi, dword [ebp - 0x81c]
mov ebx, 2
mov eax, dword [ebp - 0x818]
cmp word [esi + ebx - 2], 0
jne 0x4ec7fc
cmp ecx, edi
je 0x4ec7fc
lea eax, [esi + ecx*2]
push eax
lea ecx, [ebp - 0x838]
call fcn.00405880
mov byte [ebp - 4], 1
lea eax, [ebp - 0x838]
mov ecx, dword [ebp - 0x820]
push eax
call fcn.0040cd20
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x838]
call fcn.00405870
mov eax, dword [ebp - 0x818]
lea ecx, [edi + 1]
inc edi
add ebx, 2
cmp edi, eax
jb 0x4ec7b3
mov esi, dword [ebp - 0x814]
mov dword [ebp - 4], 0xffffffff
test esi, esi
je 0x4ec81e
push esi
call fcn.00634f16
add esp, 4
mov al, 1
jmp 0x4ec750
call fcn.0063570d
int3
Function at 0x4ecc20
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x729140]
xor eax, esp
mov dword [esp + 0x11c], eax
push esi
push 1
mov esi, ecx
call fcn.00634eb5
mov dword [esi], eax
push 0x118
push 0
mov byte [eax], 0
lea eax, [esp + 0x14]
push eax
call fcn.0064d010
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 0x4ecc7c
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.00634bf3
add esp, 0x120
ret