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

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x7584]
test eax, eax
jle 0x441633
mov ecx, dword [esi + 0x7594]
push ecx
push eax
call fcn.0050194a
mov edx, dword [esi + 0x7594]
mov eax, dword [esi + 0x7584]
push edx
push eax
lea ecx, [esi + 0x75a8]
push 1
push ecx
call fcn.00501c99
add esp, 0x18
mov dword [esi + 0x7584], 0
pop esi
ret

Function at 0x441c80
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 0x20]
push esi
push edi
mov edi, ecx
mov dword [edi + 0x1c], eax
mov ecx, ebx
mov eax, 1
shl eax, cl
mov ecx, dword [ebp + 0x10]
mov dword [edi + 8], ecx
mov dword [ebp + 0x20], 2
mov dword [ebp + 0x14], eax
mov eax, dword [ebp + 0xc]
mov dword [edi + 4], eax
imul eax, ecx
mov dword [edi + 0x14], eax
xor eax, eax
mov dword [edi + 0x18], eax
cmp ebx, 1
jle 0x441cc3
mov dword [ebp + 0x20], ebx
cmp dword [ebp + 0x1c], eax
mov dword [edi + 0x10], eax
mov dword [edi + 0xc], eax
mov eax, str.GIF87a
jl 0x441cd8
mov eax, str.GIF89a
mov esi, dword [ebp + 8]
push esi
push 6
push 1
push eax
call fcn.00501c99
mov ecx, dword [ebp + 0xc]
add esp, 0x10
push esi
push ecx
mov ecx, edi
call fcn.00441540
mov edx, dword [ebp + 0x10]
push esi
push edx
mov ecx, edi
call fcn.00441540
mov eax, ebx
shl eax, 5
sub eax, 0x20
dec ebx
or eax, ebx
or eax, 0x80
push esi
push eax
call fcn.0050194a
mov ecx, dword [ebp + 0x18]
push esi
push ecx
call fcn.0050194a
push esi
push 0
call fcn.0050194a
add esp, 0x18
cmp dword [ebp + 0x14], 0
jle 0x441d7e
mov ebx, dword [ebp + 0x28]
mov eax, dword [ebp + 0x24]
mov ecx, dword [ebp + 0x2c]
mov edx, dword [ebp + 0x14]
sub eax, ebx
sub ecx, ebx
mov dword [ebp + 0x10], eax
mov dword [ebp + 8], ecx
mov dword [ebp + 0xc], edx
jmp 0x441d53
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + ebx]
push esi
push eax
call fcn.0050194a
mov ecx, dword [ebx]
push esi
push ecx
call fcn.0050194a
mov edx, dword [ebp + 8]
mov eax, dword [edx + ebx]
push esi
push eax
call fcn.0050194a
add esp, 0x18
add ebx, 4
dec dword [ebp + 0xc]
jne 0x441d50
mov ebx, dword [ebp + 0x1c]
test ebx, ebx
js 0x441dcd
push esi
push 0x21
call fcn.0050194a
push esi
push 0xf9
call fcn.0050194a
push esi
push 4
call fcn.0050194a
push esi
push 1
call fcn.0050194a
push esi
push 0
call fcn.0050194a
push esi
push 0
call fcn.0050194a
movzx ecx, bl
push esi
push ecx
call fcn.0050194a
push esi
push 0
call fcn.0050194a
add esp, 0x40
push esi
push 0x2c
call fcn.0050194a
add esp, 8
push esi
push 0
mov ecx, edi
call fcn.00441540
push esi
push 0
mov ecx, edi
call fcn.00441540
mov edx, dword [edi + 4]
push esi
push edx
mov ecx, edi
call fcn.00441540
mov eax, dword [edi + 8]
push esi
push eax
mov ecx, edi
call fcn.00441540
cmp dword [edi + 0x1c], 0
push esi
je 0x441e0f
push 0x40
jmp 0x441e11
push 0
call fcn.0050194a
mov ebx, dword [ebp + 0x20]
add esp, 8
push esi
push ebx
call fcn.0050194a
mov ecx, dword [ebp + 0x30]
add esp, 8
push ecx
push esi
inc ebx
push ebx
mov ecx, edi
call fcn.00441aa0
push esi
push 0
call fcn.0050194a
push esi
push 0x3b
call fcn.0050194a
add esp, 0x10
pop edi
pop esi
pop ebx
pop ebp
ret 0x2c
Function at 0x441eb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537e8b
mov eax, dword fs:[0]
push eax
mov eax, 0x76b8
call fcn.00500f90
mov eax, dword [0x5bc684]
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 eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
mov edi, dword [ebp + 8]
mov esi, ecx
mov ecx, dword [ebp + 0x1c]
mov dword [ebp - 0x76c4], eax
mov eax, dword [ebp + 0x10]
push edx
mov dword [ebp - 0x76c0], ecx
push eax
mov ecx, esi
xor ebx, ebx
call fcn.00440b60
test eax, eax
je 0x441fc3
mov ebx, dword [ebp + 0x18]
mov eax, dword [ebp - 0x76c4]
mov ecx, ebx
mov edx, 1
shl edx, cl
mov ecx, esi
push edx
push eax
call fcn.004412e0
cmp ebx, 8
jne 0x441f3c
push edi
mov ecx, esi
call fcn.00440fb0
jmp 0x441f58
cmp ebx, 4
jne 0x441f4b
push edi
mov ecx, esi
call fcn.00441090
jmp 0x441f58
cmp ebx, 1
jne 0x441fc7
push edi
mov ecx, esi
call fcn.004411b0
test eax, eax
je 0x441fc9
lea ecx, [ebp - 0x76bc]
call fcn.004417e0
mov dword [ebp - 4], 0
mov ebx, dword [ebp - 0x76c0]
push 0x561c60
push ebx
call fcn.005020e6
mov ecx, dword [esi + 4]
add esp, 8
push ecx
mov edi, eax
push edi
lea ecx, [ebp - 0x76bc]
call fcn.00441e50
push edi
mov esi, eax
call fcn.00501fb6
add esp, 4
test esi, esi
je 0x441fb5
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
xor eax, eax
mov dword [ebp - 4], 0xffffffff
jmp 0x441fc9
mov eax, 1
mov dword [ebp - 4], 0xffffffff
jmp 0x441fc9
mov eax, ebx
jmp 0x441fc9
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.004fe1f5
mov esp, ebp
pop ebp
ret 0x18
Function at 0x442310
Capabilities:
Get session user name

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x537f4b
mov eax, dword fs:[0]
push eax
sub esp, 0x124
mov eax, dword [0x5bc684]
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 dword [ebp - 0x10], esp
mov edx, dword [ebp + 8]
mov dword [ebp - 0x124], edx
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x12c], eax
xor ebx, ebx
mov dword [ebp - 0x120], ebx
cmp edx, ebx
jne 0x442366
xor eax, eax
jmp 0x44252f
mov dword [ebp - 4], ebx
mov ecx, dword [eax + 0x60]
add ecx, 0x97c8
cmp byte [ecx], bl
je 0x44238f
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x442376
mov dword [ebp - 0x120], 1
jmp 0x442522
mov edi, 1
mov dword [ebp - 0x128], 0x104
lea eax, [ebp - 0x128]
push eax
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.ADVAPI32.dll_GetUserNameA]
xor ecx, ecx
mov dword [ebp - 0x130], ecx
lea eax, [ebp - 0x118]
lea esi, [eax + 1]
mov dl, byte [eax]
inc eax
cmp dl, bl
jne 0x4423c3
sub eax, esi
cmp ecx, eax
jae 0x4423f0
movsx eax, byte [ebp + ecx - 0x118]
add eax, ecx
xor edx, edx
mov esi, 0x19
div esi
add edx, 0x41
mov byte [ebp + ecx - 0x118], dl
inc ecx
jmp 0x4423b4
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x442400
sub eax, edx
cmp eax, 8
jbe 0x442414
mov byte [ebp - 0x110], bl
lea eax, [ebp - 0x118]
lea edx, [eax + 1]
lea ecx, [ecx]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x442420
sub eax, edx
je 0x4424cb
mov edx, dword [0x5bbfe4]
mov dword [ebp - 0x11c], edx
mov byte [ebp - 4], 1
push 0x55fb08
lea ecx, [ebp - 0x11c]
call fcn.004bfd50
lea eax, [ebp - 0x118]
push eax
lea ecx, [ebp - 0x11c]
call fcn.004bfd50
mov ecx, dword [ebp - 0x11c]
mov eax, dword [ecx - 8]
cmp eax, 6
jle 0x442480
add eax, 0xfffffffa
push eax
push 6
lea ecx, [ebp - 0x11c]
call fcn.004c0980
push 0x55fb04
lea ecx, [ebp - 0x11c]
call fcn.004bfd50
lea ecx, [ebp - 0x11c]
call fcn.004c00e0
mov ecx, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x124]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x4424a7
mov dword [ebp - 0x120], 1
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x11c]
call fcn.004bfa40
jmp 0x4424f0
cmp edi, ebx
je 0x4424f0
mov ecx, str.xsrque32
mov edx, dword [ebp - 0x124]
lea ebx, [ebx]
mov al, byte [ecx]
mov byte [edx], al
inc ecx
inc edx
cmp al, bl
jne 0x4424e0
mov dword [ebp - 0x120], edi
mov edx, dword [ebp - 0x124]
cmp byte [edx], bl
je 0x442522
mov esi, dword [ebp - 0x12c]
mov eax, dword [esi + 0x60]
add eax, 0x97c8
mov cl, byte [edx]
mov byte [eax], cl
inc edx
inc eax
cmp cl, bl
jne 0x442508
mov edx, dword [esi]
push 1
push str.QueuePath
mov ecx, esi
mov eax, dword [edx + 0x10]
call eax
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x120]
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.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x4490d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x538dd0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x20], ecx
xor edi, edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 4], edi
push edi
push edi
push 0x1004
mov eax, dword [ecx + 0x6c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x1c], eax
cmp eax, edi
je 0x449232
mov ecx, dword [0x5bbfe4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
mov eax, dword [0x5bfd6c]
push eax
push 0x475
lea ecx, [ebp - 0x14]
call fcn.004c1150
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push edi
lea edx, [ebp - 0x24]
push edx
push ecx
push eax
push esi
mov ebx, dword [sym.imp.KERNEL32.dll_WriteFile]
call ebx
mov dword [ebp - 0x28], edi
cmp edi, dword [ebp - 0x1c]
jae 0x449218
push 0x34
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.004ff6f0
add esp, 0xc
mov dword [ebp - 0x58], edi
mov dword [ebp - 0x5c], 4
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0x1005
mov edx, dword [ebp - 0x20]
mov eax, dword [edx + 0x6c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x3c]
test eax, eax
je 0x449212
cmp dword [eax + 0x104], 0
je 0x449212
mov ecx, dword [eax + 0x104]
cmp byte [ecx], 0
je 0x449212
mov edx, dword [0x5bbfe4]
mov dword [ebp + 8], edx
mov byte [ebp - 4], 2
mov eax, dword [eax + 0x104]
push eax
lea ecx, [ebp + 8]
call fcn.004bfc00
push 0x560e54
lea ecx, [ebp + 8]
call fcn.004bfd50
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push 0
lea edx, [ebp - 0x24]
push edx
push ecx
push eax
push esi
call ebx
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004bfa40
inc edi
jmp 0x449173
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bfa40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
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 0x44dc70
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x539768
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 4], 0
mov esi, dword [ebp + 8]
test esi, esi
je 0x44dd8d
mov ecx, dword [ebp + 0xc]
test ecx, ecx
je 0x44dd8d
mov eax, dword [ebp + 0x10]
test eax, eax
je 0x44dd8d
add eax, eax
add eax, eax
push eax
push 0
push ecx
call fcn.004ff6f0
mov ecx, dword [0x5bbfe4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
push 0x104
call fcn.004fc6be
add esp, 0x10
mov edi, eax
push 0x104
push edi
push esi
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ebx, edi
mov dword [ebp - 0x1c], ebx
xor esi, esi
mov dword [ebp - 0x18], esi
mov al, byte [ebx]
test al, al
je 0x44dd54
cmp esi, dword [ebp + 0x10]
jae 0x44dd54
cmp al, 0x20
jne 0x44dd45
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
je 0x44dd37
push eax
call fcn.004ffc65
mov edx, dword [ebp - 0x14]
push edx
call fcn.004ffc65
add esp, 8
mov ecx, dword [ebp + 0xc]
mov dword [ecx + esi*4], eax
inc esi
mov dword [ebp - 0x18], esi
lea ecx, [ebp - 0x14]
call fcn.004c0c60
inc ebx
mov dword [ebp - 0x1c], ebx
jmp 0x44dd03
push eax
lea ecx, [ebp - 0x14]
call fcn.004bfd90
inc ebx
mov dword [ebp - 0x1c], ebx
jmp 0x44dd03
mov eax, dword [ebp - 0x14]
cmp dword [eax - 8], 0
je 0x44dd71
cmp esi, dword [ebp + 0x10]
jae 0x44dd71
push eax
call fcn.004ffc65
add esp, 4
mov edx, dword [ebp + 0xc]
mov dword [edx + esi*4], eax
push edi
call fcn.004fedfc
add esp, 4
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bfa40
mov dword [ebp - 4], 0xffffffff
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 0x4589d0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53adc0
mov eax, dword fs:[0]
push eax
sub esp, 0x50
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov esi, ecx
mov dword [ebp - 0x28], esi
xor ebx, ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 4], ebx
push ebx
push ebx
push 0x1004
mov eax, dword [esi + 0x6c]
push eax
call dword [sym.imp.USER32.dll_SendMessageA]
mov dword [ebp - 0x1c], eax
cmp eax, ebx
je 0x458b61
mov ecx, dword [0x5bbfe4]
mov dword [ebp - 0x14], ecx
mov byte [ebp - 4], 1
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
mov eax, dword [0x5bfd6c]
push eax
push 0x475
lea ecx, [ebp - 0x14]
call fcn.004c1150
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax - 8]
push ebx
lea edx, [ebp - 0x20]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov dword [ebp - 0x24], ebx
cmp ebx, dword [ebp - 0x1c]
jae 0x458b47
push 0x34
push 0
lea eax, [ebp - 0x5c]
push eax
call fcn.004ff6f0
add esp, 0xc
mov dword [ebp - 0x58], ebx
mov dword [ebp - 0x5c], 4
lea ecx, [ebp - 0x5c]
push ecx
push 0
push 0x1005
mov edx, dword [esi + 0x6c]
push edx
call dword [sym.imp.USER32.dll_SendMessageA]
mov eax, dword [ebp - 0x3c]
mov esi, eax
test eax, eax
je 0x458b3e
cmp dword [eax + 0x108], 0
je 0x458b3e
mov ecx, dword [eax + 0x108]
cmp byte [ecx], 0
je 0x458b3e
mov edx, dword [0x5bbfe4]
mov dword [ebp + 8], edx
mov byte [ebp - 4], 2
mov eax, dword [eax + 0x108]
push eax
lea ecx, [ebp + 8]
call fcn.004bfc00
push 0x54f320
lea ecx, [ebp + 8]
call fcn.004bfd50
cmp dword [esi], 0
mov eax, 0x5630f4
jne 0x458b07
mov eax, 0x5630f0
push eax
lea ecx, [ebp + 8]
call fcn.004bfd50
push 0x560e54
lea ecx, [ebp + 8]
call fcn.004bfd50
mov eax, dword [ebp + 8]
mov ecx, dword [eax - 8]
push 0
lea edx, [ebp - 0x20]
push edx
push ecx
push eax
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov byte [ebp - 4], 1
lea ecx, [ebp + 8]
call fcn.004bfa40
inc ebx
mov esi, dword [ebp - 0x28]
jmp 0x458a73
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x18], 1
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.004bfa40
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x18]
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 0x459550
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53af30
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x5bc684]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov dword [ebp - 0x28], ecx
xor edi, edi
mov dword [ebp - 0x1c], edi
mov dword [ebp - 4], edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x4596f1
cmp byte [esi], 0
je 0x4596f1
push esi
call fcn.004c4aa0
add esp, 4
test eax, eax
je 0x4596f1
mov dword [ebp + 8], edi
push edi
push 0x80
push 3
push edi
push edi
push SysReAllocString
push esi
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x18], eax
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
lea edi, [esi + 1]
push edi
call fcn.004fc6be
mov ebx, eax
mov dword [ebp - 0x2c], ebx
push edi
push 0
push ebx
call fcn.004ff6f0
add esp, 0x10
push 0
lea eax, [ebp - 0x30]
push eax
push esi
push ebx
mov ecx, dword [ebp - 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], ebx
lea edx, [ebp + 8]
push edx
lea eax, [ebp - 0x20]
push eax
call fcn.004be910
add esp, 8
test eax, eax
je 0x4596d7
mov ecx, dword [ebp + 8]
test ecx, ecx
je 0x459600
mov al, byte [ecx]
test al, al
je 0x459600
cmp al, 0x23
je 0x459600
cmp al, 0xd
je 0x459600
cmp al, 0xa
je 0x459600
mov dword [ebp - 0x14], 1
mov eax, ecx
lea esi, [eax + 1]
lea ecx, [ecx]
mov dl, byte [eax]
inc eax
test dl, dl
jne 0x459640
sub eax, esi
lea esi, [eax + ecx]
mov dword [ebp - 0x24], esi
push 0x20
push ecx
call fcn.004ff460
add esp, 8
test eax, eax
je 0x45967b
mov cl, byte [eax + 1]
cmp cl, 0x30
je 0x45966b
cmp cl, 0x31
jne 0x45967b
mov esi, eax
mov dword [ebp - 0x24], esi
xor edx, edx
cmp cl, 0x30
setne dl
mov dword [ebp - 0x14], edx
mov eax, esi
sub eax, dword [ebp + 8]
add eax, 9
push eax
call fcn.004fc6be
mov edi, eax
lea ebx, [edi + 4]
mov eax, esi
sub eax, dword [ebp + 8]
inc eax
push eax
push 0
push ebx
call fcn.004ff6f0
mov eax, dword [ebp + 8]
sub esi, eax
push esi
push eax
push ebx
call fcn.004ff0c0
add esp, 0x1c
mov ecx, dword [ebp - 0x14]
mov dword [edi], ecx
push 0
push edi
mov esi, dword [ebp - 0x28]
mov ecx, esi
call fcn.004592f0
push edi
call fcn.004808a0
add esp, 4
mov dword [esi + 0x5c], 1
mov ebx, dword [ebp - 0x2c]
jmp 0x459600
push ebx
call fcn.004fedfc
add esp, 4
mov edx, dword [ebp - 0x18]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x1c]
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 0x46a430
Capabilities:
Check mutex on windows
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d1a0
mov eax, dword fs:[0]
push eax
sub esp, 0x6c
mov eax, dword [0x5bc684]
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 dword [ebp - 0x10], esp
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x58], esi
mov dword [ebp - 4], esi
cmp dword [edi + 0x2c], esi
jne 0x46a516
mov byte [ebp - 0x54], 0
push 0x3f
push esi
lea eax, [ebp - 0x53]
push eax
call fcn.004ff6f0
add esp, 0xc
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
call ebx
cmp eax, 0x80000000
jae 0x46a4b1
call ebx
cmp al, 5
jb 0x46a4b1
push str.sepbfclizmoveps
push str.Global_s
lea ecx, [ebp - 0x54]
push ecx
call fcn.004ff1e4
add esp, 0xc
jmp 0x46a4d4
mov edx, dword [str.sepbfclizmoveps]
mov dword [ebp - 0x54], edx
mov eax, dword [0x56511c]
mov dword [ebp - 0x50], eax
mov ecx, dword [0x565120]
mov dword [ebp - 0x4c], ecx
mov edx, dword [0x565124]
mov dword [ebp - 0x48], edx
mov dword [ebp - 0x64], 0xc
mov dword [ebp - 0x5c], 1
lea eax, [ebp - 0x78]
mov dword [ebp - 0x60], eax
push 1
mov ecx, eax
push ecx
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
lea edx, [ebp - 0x78]
push edx
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea eax, [ebp - 0x54]
push eax
push 0
lea ecx, [ebp - 0x64]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateMutexA]
mov dword [edi + 0x2c], eax
mov eax, dword [edi + 0x2c]
test eax, eax
je 0x46a546
push 0x493e0
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x58], esi
jne 0x46a546
mov edx, dword [edi + 0x2c]
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [edi + 0x2c], 0
mov dword [ebp - 4], 0xffffffff
jmp 0x46a570
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 - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret
Function at 0x46c740
Capabilities:
Create directory
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x53d4fe
mov eax, dword fs:[0]
push eax
sub esp, 0x220
mov eax, dword [0x5bc684]
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 dword [ebp - 0x10], esp
mov ebx, ecx
mov eax, dword [ebp + 8]
mov dword [ebp - 0x228], eax
xor esi, esi
mov dword [ebp - 0x220], esi
xor edi, edi
mov dword [ebp - 0x224], edi
mov byte [ebp - 0x118], 0
push 0x103
push edi
lea ecx, [ebp - 0x117]
push ecx
call fcn.004ff6f0
add esp, 0xc
mov dword [ebp - 4], edi
mov byte [ebp - 0x21c], 0
push 0x103
push edi
lea edx, [ebp - 0x21b]
push edx
call fcn.004ff6f0
add esp, 0xc
lea eax, [ebp - 0x118]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
push edi
call fcn.004ff06e
push eax
push 0x5658d8
lea ecx, [ebp - 0x21c]
push ecx
call fcn.004ff1e4
push 0x103
lea edx, [ebp - 0x21c]
push edx
lea eax, [ebp - 0x118]
push eax
call fcn.00502460
add esp, 0x1c
push edi
lea ecx, [ebp - 0x118]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea edx, [ebp - 0x118]
push edx
call fcn.004c46e0
add esp, 4
test eax, eax
je 0x46c89c
push 0x148
call fcn.00480850
add esp, 4
mov dword [ebp - 0x22c], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x46c868
push edi
push edi
push 0x5658d4
push 0x5658d0
lea ecx, [ebp - 0x118]
push ecx
mov edx, dword [ebx + 0x28]
push edx
mov ecx, eax
call fcn.0042a7a0
jmp 0x46c86a
xor eax, eax
mov byte [ebp - 4], 0
mov edi, eax
mov dword [ebp - 0x224], edi
push 1
push 1
mov ecx, dword [ebp - 0x228]
push ecx
push 1
push 1
push eax
push 0
mov ecx, ebx
call fcn.0046bde0
mov esi, eax
neg esi
sbb esi, esi
inc esi
mov dword [ebp - 0x220], esi
mov dword [ebp - 4], 0xffffffff
jmp 0x46c8cf
mov dword [ebp - 4], 3
test edi, edi
je 0x46c8ea
mov ecx, edi
call fcn.0042b210
push edi
call fcn.004808a0
add esp, 4
cmp byte [ebp - 0x118], 0
je 0x46c915
lea edx, [ebp - 0x118]
push edx
call fcn.004c46e0
add esp, 4
test eax, eax
je 0x46c915
lea eax, [ebp - 0x118]
push eax
call fcn.004c86a0
add esp, 4
mov dword [ebp - 4], 0xffffffff
jmp 0x46c942
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 - 0x14]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret 4
Function at 0x46e5d0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x5bc684]
xor eax, ebp
mov dword [ebp - 4], eax
cmp byte [0x5bf538], 0
push ebx
mov ebx, dword [ebp + 8]
jne 0x46e6e1
mov eax, dword [0x5c0834]
push 0x104
push 0x5bf538
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
push 0x5c
push 0x5bf538
call fcn.004ff460
add esp, 8
test eax, eax
je 0x46e620
mov byte [eax], 0
push 0x5bf538
call fcn.004bf2e0
add esp, 4
xor eax, eax
nop
mov cl, byte [eax + 0x5bf538]
mov byte [ebp + eax - 0x108], cl
inc eax
test cl, cl
jne 0x46e630
mov eax, str.ocxdrv32.dll
mov edx, eax
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46e650
push esi
push edi
lea edi, [ebp - 0x108]
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46e662
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebp - 0x108]
push ecx
call fcn.004c4aa0
add esp, 4
pop edi
pop esi
test eax, eax
jne 0x46e696
mov byte [0x5bf538], al
jmp 0x46e69f
cmp byte [0x5bf538], 0
jne 0x46e6e1
push 1
push 0x104
push 0x5bf538
call fcn.0046e2e0
add esp, 0xc
test eax, eax
je 0x46e6cd
push 0x5c
push 0x5bf538
call fcn.004ff460
add esp, 8
test eax, eax
je 0x46e6cd
mov byte [eax], 0
cmp byte [0x5bf538], 0
jne 0x46e6e1
mov edx, dword [ebp + 0xc]
push edx
push ebx
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edx, ebx
mov eax, 0x5bf538
sub edx, eax
pop ebx
jmp 0x46e6f0
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x46e6f0
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004fe1f5
mov esp, ebp
pop ebp
ret

Function at 0x46e710
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0x104
push 0x5bf538
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
push 0x5bf538
call fcn.004bf2e0
mov eax, dword [ebp + 8]
add esp, 4
mov edx, eax
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x46e735
push esi
push edi
mov edi, 0x5bf538
sub eax, edx
dec edi
mov cl, byte [edi + 1]
inc edi
test cl, cl
jne 0x46e746
mov ecx, eax
shr ecx, 2
mov esi, edx
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
pop ebp
ret