joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c2c70
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4f75c3
mov eax, dword fs:[0]
push eax
sub esp, 0x14
mov eax, dword [0x572734]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], 5
mov eax, dword [ebp - 0x10]
movzx ecx, byte [eax + 0x18]
test ecx, ecx
je 0x4c2cbd
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call dword [sym.imp.mfc120u.dll_Ordinal_1658]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x10], 0
je 0x4c2cd5
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x10]
push ecx
call fcn.004c4230
add esp, 4
mov edx, dword [ebp - 0x10]
mov dword [edx + 0x10], 0
mov eax, dword [ebp - 0x10]
cmp dword [eax + 0x54], 0
je 0x4c2d13
mov ecx, dword [ebp - 0x10]
mov edx, dword [ecx + 0x54]
mov dword [ebp - 0x18], edx
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x4c2d0c
push 1
mov ecx, dword [ebp - 0x14]
call fcn.004c3fe0
mov dword [ebp - 0x1c], eax
jmp 0x4c2d13
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x10]
mov dword [ecx + 0x54], 0
mov edx, dword [ebp - 0x10]
cmp dword [edx + 0x50], 0
je 0x4c2d3b
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax + 0x50]
mov dword [ebp - 0x20], ecx
mov edx, dword [ebp - 0x20]
push edx
call sub.mfc120u.dll_Ordinal_1508
add esp, 4
mov byte [ebp - 4], 4
mov ecx, dword [ebp - 0x10]
add ecx, 0x38
call fcn.0047d340
mov byte [ebp - 4], 3
mov ecx, dword [ebp - 0x10]
add ecx, 0x20
call fcn.0047d340
mov byte [ebp - 4], 2
mov ecx, dword [ebp - 0x10]
add ecx, 0x14
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 1
mov ecx, dword [ebp - 0x10]
add ecx, 0xc
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov byte [ebp - 4], 0
mov ecx, dword [ebp - 0x10]
add ecx, 4
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
call dword [sym.imp.mfc120u.dll_Ordinal_1042]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
mov esp, ebp
pop ebp
ret

Function at 0x4c4780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
jne 0x4c4794
xor eax, eax
jmp 0x4c47e7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 4]
sub eax, dword [edx + 8]
cmp dword [ebp + 0xc], eax
jbe 0x4c47b4
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 4]
mov eax, dword [ecx + 4]
sub eax, dword [edx + 8]
mov dword [ebp + 0xc], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 0x10]
push edx
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.MSVCR120.dll_fread]
add esp, 0x10
imul eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
add eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret 8
Function at 0x4c9d70
Capabilities:
Contain obfuscated stackstrings

Disassembly:
add ebx, esp
push eax
lea eax, [ebp - 0x394]
push eax
call fcn.004c88fc
add esp, 0xc
and dword [ebp - 0x700], 0
jmp 0x4c9d98
mov eax, dword [ebp - 0x700]
inc eax
mov dword [ebp - 0x700], eax
cmp dword [ebp - 0x700], 5
jge 0x4c9de1
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
movsx ecx, byte [ebp - 0x24]
xor eax, ecx
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
mov eax, dword [ebp - 0x700]
movsx eax, byte [ebp + eax - 0x394]
not eax
mov ecx, dword [ebp - 0x700]
mov byte [ebp + ecx - 0x394], al
jmp 0x4c9d8b
call fcn.004c898b
lahf
outsd dx, dword [esi]
invalid

Function at 0x4caa10
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push dword [ebp + 0x14]
call fcn.004c8950
add esp, 0xc
mov dword [ebp - 0x37c], eax
cmp dword [ebp - 0x37c], 0
je 0x4caa2c
jmp 0x4caa31
jmp 0x4ca32d
Function at 0x4ccad0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 0x10], ecx
mov byte [ebp - 1], 0
cmp dword [ebp + 0xc], 0x104
jbe 0x4ccb83
call fcn.00406200
mov dword [ebp - 0x18], eax
push 0
push 0x80
push 3
push 0
push 1
push SysReAllocString
mov ecx, dword [ebp - 0x10]
add ecx, 4
call fcn.004157f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x4ccb83
mov dword [ebp - 8], 0x104
cmp dword [ebp + 8], 0
je 0x4ccb79
mov eax, dword [ebp - 8]
add eax, 1
push eax
push 0
mov ecx, dword [ebp + 8]
push ecx
call sub.MSVCR120.dll_memset
add esp, 0xc
push 0
lea edx, [ebp - 0x14]
push edx
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [ebp + 8]
push ecx
mov edx, dword [ebp - 0xc]
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4ccb79
mov eax, dword [ebp - 8]
cmp eax, dword [ebp - 0x14]
jne 0x4ccb79
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
mov ecx, dword [ebp - 0x10]
call fcn.004ccd00
mov byte [ebp - 1], 1
mov eax, dword [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret 8
Function at 0x4d3d40
Capabilities:
Encrypt data using blowfish

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
mov dword [ebp - 4], 0
jmp 0x4d3d59
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x4d3da1
mov dword [ebp - 8], 0
jmp 0x4d3d71
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x4d3d9f
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp - 4]
shl eax, 0xa
mov ecx, dword [ebp + 8]
lea eax, [ecx + eax + 0x48]
mov ecx, dword [ebp - 8]
mov esi, dword [ebp - 8]
mov edx, dword [edx + esi*4 + 0x548290]
mov dword [eax + ecx*4], edx
jmp 0x4d3d68
jmp 0x4d3d50
mov dword [ebp - 8], 0
mov dword [ebp - 4], 0
jmp 0x4d3dba
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0x12
jge 0x4d3e25
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 0
jmp 0x4d3dd9
mov ecx, dword [ebp - 0x14]
add ecx, 1
mov dword [ebp - 0x14], ecx
cmp dword [ebp - 0x14], 4
jge 0x4d3e0d
mov edx, dword [ebp - 0x18]
shl edx, 8
mov eax, dword [ebp + 0xc]
add eax, dword [ebp - 8]
movzx ecx, byte [eax]
or edx, ecx
mov dword [ebp - 0x18], edx
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
mov eax, dword [ebp - 8]
cmp eax, dword [ebp + 0x10]
jl 0x4d3e0b
mov dword [ebp - 8], 0
jmp 0x4d3dd0
mov ecx, dword [ebp - 4]
mov edx, dword [ecx*4 + 0x548248]
xor edx, dword [ebp - 0x18]
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov dword [ecx + eax*4], edx
jmp 0x4d3db1
mov dword [ebp - 0xc], 0
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
jmp 0x4d3e45
mov edx, dword [ebp - 4]
add edx, 2
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0x12
jge 0x4d3e7a
lea eax, [ebp - 0x10]
push eax
lea ecx, [ebp - 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.004d3f00
add esp, 0xc
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0xc]
mov dword [ecx + eax*4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 0x10]
mov dword [ecx + eax*4 + 4], edx
jmp 0x4d3e3c
mov dword [ebp - 4], 0
jmp 0x4d3e8c
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 4
jge 0x4d3ef2
mov dword [ebp - 8], 0
jmp 0x4d3ea4
mov ecx, dword [ebp - 8]
add ecx, 2
mov dword [ebp - 8], ecx
cmp dword [ebp - 8], 0x100
jge 0x4d3ef0
lea edx, [ebp - 0x10]
push edx
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.004d3f00
add esp, 0xc
mov edx, dword [ebp - 4]
shl edx, 0xa
mov eax, dword [ebp + 8]
lea ecx, [eax + edx + 0x48]
mov edx, dword [ebp - 8]
mov eax, dword [ebp - 0xc]
mov dword [ecx + edx*4], eax
mov ecx, dword [ebp - 4]
shl ecx, 0xa
mov edx, dword [ebp + 8]
lea eax, [edx + ecx + 0x48]
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x10]
mov dword [eax + ecx*4 + 4], edx
jmp 0x4d3e9b
jmp 0x4d3e83
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4017c5
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x134
mov eax, dword [0x59099c]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x134], 0
push esi
push ebx
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov esi, eax
cmp esi, 0xffffffff
je 0x40181e
lea eax, [ebp - 0x130]
push eax
push esi
call sub.KERNEL32.dll_Process32First
jmp 0x401813
cmp dword [ebp - 0x128], ebx
je 0x401839
lea eax, [ebp - 0x130]
push eax
push esi
call sub.KERNEL32.dll_Process32Next
test eax, eax
jne 0x4017fe
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push 0x5604fd
mov ecx, edi
call fcn.0040a2a0
mov ecx, dword [ebp - 4]
xor ecx, ebp
mov eax, edi
pop esi
call fcn.0050bc9c
leave
ret
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [ebp - 0x10c]
push eax
jmp 0x401823

Function at 0x401c85
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [0x5eebd0]
xor ebx, ebx
push ebx
push ebx
push 0x10
push esi
call dword [sym.imp.USER32.dll_PostMessageA]
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 8]
push ebx
push 0x401
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
cmp esi, ebx
je 0x401d08
push edi
mov byte [ebp - 1], bl
xor edi, edi
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
lea eax, [ebp - 0xc]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
test eax, eax
je 0x401cf3
cmp dword [ebp - 0xc], 0x103
sete byte [ebp - 1]
cmp byte [ebp - 1], bl
je 0x401d00
inc edi
cmp edi, 0xa
jl 0x401cc6
cmp byte [ebp - 1], bl
je 0x401d00
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d0c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
sub esp, 0x50
lea ebp, [esp - 4]
mov eax, dword [0x59099c]
xor eax, ebp
mov dword [ebp + 0x50], eax
push 0x38
mov eax, 0x5371ac
call fcn.00512afb
mov eax, dword [ebp + 0x5c]
mov dword [ebp + 4], eax
mov eax, dword [ebp + 0x60]
mov dword [ebp + 8], eax
mov eax, dword [ebp + 0x64]
xor ebx, ebx
cmp dword [0x5923b0], ebx
mov esi, ecx
mov dword [ebp + 0xc], esi
mov dword [ebp], eax
jne 0x401d6a
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 + 0x50]
xor ecx, ebp
call fcn.0050bc9c
add ebp, 0x54
leave
ret
push 0x59239c
lea eax, [ebp - 0x28]
push str.SOFTWARE_
push eax
call fcn.0040dcca
push eax
lea eax, [ebp + 0x18]
push eax
mov dword [ebp - 4], ebx
call fcn.004791d0
add esp, 0x14
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040aca3
push ebx
lea ecx, [ebp + 0x34]
mov dword [ebp + 0x4c], 0xf
call fcn.0040b7b2
push 1
or edi, 0xffffffff
push edi
lea eax, [ebp + 0x14]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
mov byte [ebp + 0x14], 0x5c
call fcn.0040abb6
mov esi, eax
cmp esi, edi
je 0x401e3f
mov ecx, dword [ebp + 0xc]
push esi
push ebx
lea eax, [ebp - 0x44]
push eax
call fcn.0040a369
push eax
lea eax, [ebp - 0x28]
push 0x5605a0
push eax
mov byte [ebp - 4], 4
call fcn.0040dcca
add esp, 0xc
push edi
push ebx
push eax
lea ecx, [ebp + 0x18]
mov byte [ebp - 4], 5
call fcn.0040b546
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040aca3
push ebx
push 1
lea ecx, [ebp - 0x44]
mov byte [ebp - 4], 3
call fcn.0040aca3
mov ecx, dword [ebp + 0xc]
push edi
inc esi
push esi
lea eax, [ebp - 0x44]
push eax
call fcn.0040a369
push edi
push ebx
push eax
lea ecx, [ebp + 0x34]
mov byte [ebp - 4], 6
call fcn.0040a999
push ebx
push 1
lea ecx, [ebp - 0x44]
call fcn.0040aca3
jmp 0x401e4c
push edi
push ebx
push dword [ebp + 0xc]
lea ecx, [ebp + 0x34]
call fcn.0040a999
cmp dword [ebp + 0x30], 0x10
mov eax, dword [ebp + 0x1c]
jae 0x401e58
lea eax, [ebp + 0x1c]
lea ecx, [ebp + 0x10]
push ecx
push 0x20019
push ebx
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401ec7
cmp dword [ebp + 0x4c], 0x10
mov eax, dword [ebp + 0x38]
jae 0x401e7e
lea eax, [ebp + 0x38]
push dword [ebp]
push dword [ebp + 8]
push dword [ebp + 4]
push ebx
push eax
push dword [ebp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
push dword [ebp + 0x10]
jne 0x401ec1
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp + 0x14], 1
push ebx
push 1
lea ecx, [ebp + 0x34]
call fcn.0040aca3
push ebx
push 1
lea ecx, [ebp + 0x18]
call fcn.0040aca3
mov al, byte [ebp + 0x14]
jmp 0x401d4d
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp + 0x14], bl
jmp 0x401ea3
Function at 0x401f92
Capabilities:
Get disk information

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x59099c]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x78], 0
mov eax, 0x100
push eax
lea ecx, [ebp + 0x8c]
push ecx
lea ecx, [ebp - 0x80]
push ecx
lea ecx, [ebp - 0x7c]
push ecx
lea ecx, [ebp - 0x78]
push ecx
push eax
lea eax, [ebp - 0x74]
push eax
push 0x5605c4
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
mov ecx, dword [ebp + 0x18c]
mov eax, dword [ebp - 0x78]
xor ecx, ebp
call fcn.0050bc9c
add ebp, 0x190
leave
ret
Function at 0x402b93
Capabilities:
Set registry value

Disassembly:
push ebp
sub esp, 0x68
lea ebp, [esp - 4]
mov eax, dword [0x59099c]
xor eax, ebp
mov dword [ebp + 0x68], eax
push 0x1c
mov eax, 0x537157
call fcn.00512afb
mov eax, dword [ebp + 0x78]
push 0x59239c
mov dword [ebp + 0x20], eax
lea eax, [ebp]
mov esi, ecx
push str.SOFTWARE_
push eax
mov dword [ebp + 0x24], esi
call fcn.0040dcca
push eax
lea eax, [ebp + 0x4c]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.004791d0
add esp, 0x14
push ebx
push 1
lea ecx, [ebp]
call fcn.0040aca3
push ebx
lea ecx, [ebp + 0x30]
mov dword [ebp + 0x48], 0xf
call fcn.0040b7b2
push 1
or edi, 0xffffffff
push edi
lea eax, [ebp + 0x2c]
mov byte [ebp - 4], 3
push eax
mov ecx, esi
mov byte [ebp + 0x2c], 0x5c
call fcn.0040abb6
mov esi, eax
cmp esi, edi
je 0x402c93
mov ecx, dword [ebp + 0x24]
push esi
push ebx
lea eax, [ebp - 0x28]
push eax
call fcn.0040a369
push eax
lea eax, [ebp]
push 0x5605a0
push eax
mov byte [ebp - 4], 4
call fcn.0040dcca
add esp, 0xc
push edi
push ebx
push eax
lea ecx, [ebp + 0x4c]
mov byte [ebp - 4], 5
call fcn.0040b546
push ebx
push 1
lea ecx, [ebp]
call fcn.0040aca3
push ebx
push 1
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 3
call fcn.0040aca3
mov ecx, dword [ebp + 0x24]
push edi
inc esi
push esi
lea eax, [ebp - 0x28]
push eax
call fcn.0040a369
push edi
push ebx
push eax
lea ecx, [ebp + 0x30]
mov byte [ebp - 4], 6
call fcn.0040a999
push ebx
push 1
lea ecx, [ebp - 0x28]
call fcn.0040aca3
jmp 0x402ca0
push edi
push ebx
push dword [ebp + 0x24]
lea ecx, [ebp + 0x30]
call fcn.0040a999
cmp dword [ebp + 0x64], 0x10
mov eax, dword [ebp + 0x50]
jae 0x402cac
lea eax, [ebp + 0x50]
lea ecx, [ebp + 0x28]
push ecx
push 0x20006
push ebx
push eax
mov esi, 0x80000001
push esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
je 0x402d2d
cmp dword [ebp + 0x64], 0x10
mov eax, dword [ebp + 0x50]
jae 0x402cd3
lea eax, [ebp + 0x50]
lea ecx, [ebp + 0x1c]
push ecx
lea ecx, [ebp + 0x28]
push ecx
push ebx
push 0xf003f
push ebx
push 0x5606e8
push ebx
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp eax, ebx
je 0x402d2d
mov byte [ebp + 0x2c], bl
push ebx
push 1
lea ecx, [ebp + 0x30]
call fcn.0040aca3
push ebx
push 1
lea ecx, [ebp + 0x4c]
call fcn.0040aca3
mov al, byte [ebp + 0x2c]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x68]
xor ecx, ebp
call fcn.0050bc9c
add ebp, 0x6c
leave
ret
cmp dword [ebp + 0x48], 0x10
mov eax, dword [ebp + 0x34]
jae 0x402d39
lea eax, [ebp + 0x34]
push dword [ebp + 0x7c]
push dword [ebp + 0x20]
push dword [ebp + 0x74]
push ebx
push eax
push dword [ebp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp + 0x28]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp + 0x2c], 1
jmp 0x402cf7
Function at 0x40772f
Capabilities:
Delete file

Disassembly:
push edi
xor edi, edi
push 0x1f4
call dword [sym.imp.KERNEL32.dll_Sleep]
cmp dword [esi + 0x18], 0x10
jb 0x407748
mov eax, dword [esi + 4]
jmp 0x40774b
lea eax, [esi + 4]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
jne 0x40775c
inc edi
cmp edi, 0xa
jl 0x407732
pop edi
ret
Function at 0x4080aa
Capabilities:
Create process on windows
Create process suspended

Disassembly:
push 0xb8
mov eax, 0x53bda0
call fcn.00512b64
mov eax, dword [ebp + 8]
mov ebx, ecx
cmp dword [ebx + 0x18], 0x10
mov dword [ebp - 0x34], eax
jb 0x4080cc
mov edx, dword [ebx + 4]
jmp 0x4080cf
lea edx, [ebx + 4]
cmp dword [eax + 0x18], 0x10
jb 0x4080da
mov ecx, dword [eax + 4]
jmp 0x4080dd
lea ecx, [eax + 4]
push edx
push ecx
call fcn.0040102d
push eax
mov esi, 0x5611b0
lea eax, [ebp - 0x7c]
push esi
push eax
call fcn.0040dcca
add esp, 0x14
push esi
push eax
lea eax, [ebp - 0x30]
xor edi, edi
push eax
mov dword [ebp - 4], edi
call fcn.0040dd15
add esp, 0xc
xor esi, esi
push edi
inc esi
push esi
lea ecx, [ebp - 0x7c]
mov byte [ebp - 4], 2
call fcn.0040aca3
cmp dword [ebx + 0x14], edi
jbe 0x408150
push ebx
lea eax, [ebp - 0x60]
push 0x56058c
push eax
call fcn.0040dcca
add esp, 0xc
push 0xffffffffffffffff
push edi
push eax
lea ecx, [ebp - 0x30]
mov byte [ebp - 4], 3
call fcn.0040b546
push edi
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0040aca3
push 0x44
pop ebx
push ebx
lea eax, [ebp - 0xc4]
push edi
push eax
call fcn.00509c30
mov ecx, dword [0x5922c0]
add esp, 0xc
cmp dword [0x5922d4], 0x10
mov dword [ebp - 0xc4], ebx
jae 0x40817e
mov ecx, 0x5922c0
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
jae 0x40818a
lea eax, [ebp - 0x2c]
lea edx, [ebp - 0x44]
push edx
lea edx, [ebp - 0xc4]
push edx
push ecx
push edi
push 4
push edi
push edi
push edi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4081ff
push edi
push dword [ebp - 0x34]
lea eax, [ebp - 0x60]
push eax
call fcn.00477ec0
add esp, 0xc
mov byte [ebp - 4], 4
push dword [ebp - 0x3c]
push eax
call fcn.00402d7e
pop ecx
pop ecx
push edi
push esi
lea ecx, [ebp - 0x60]
mov byte [ebp - 4], 2
call fcn.0040aca3
push dword [ebp - 0x3c]
mov edx, dword [ebp - 0x40]
push dword [ebp - 0x34]
mov ecx, dword [ebp - 0x44]
call fcn.004077ff
pop ecx
pop ecx
push dword [ebp - 0x40]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push esi
lea ecx, [ebp - 0x30]
call fcn.0040aca3
mov al, 1
jmp 0x40824d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0x5922a0
lea eax, [ebp - 0x60]
push str.Failed_to_execute_game_r_n_r_n
push eax
call fcn.0040dcca
add esp, 0xc
cmp dword [eax + 0x18], 0x10
jb 0x408226
mov eax, dword [eax + 4]
jmp 0x408229
add eax, 4
push edi
push 0x5611b4
push eax
push edi
call dword [sym.imp.USER32.dll_MessageBoxA]
push edi
push esi
lea ecx, [ebp - 0x60]
call fcn.0040aca3
push edi
push esi
lea ecx, [ebp - 0x30]
call fcn.0040aca3
xor al, al
call fcn.00512be7
ret
Function at 0x40909b
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0xbc
mov eax, 0x539c7f
call fcn.00512afb
cmp dword [0x592538], 0
push str.ProdName
lea ecx, [ebp - 0x74]
sete byte [ebp - 0xd]
call fcn.0040a406
and dword [ebp - 4], 0
lea eax, [ebp - 0x74]
push eax
lea ebx, [ebp - 0x90]
call fcn.00401931
pop ecx
push eax
lea eax, [ebp - 0xac]
push eax
mov byte [ebp - 4], 1
call fcn.004785c0
push eax
lea eax, [ebp - 0xc8]
push str.NotifyDRM
push eax
mov byte [ebp - 4], 2
call fcn.0040dcca
add esp, 0x14
cmp dword [eax + 0x18], 0x10
jb 0x40910b
mov eax, dword [eax + 4]
jmp 0x40910e
add eax, 4
push eax
call dword [sym.imp.USER32.dll_RegisterWindowMessageA]
xor ebx, ebx
xor edi, edi
push ebx
inc edi
push edi
lea ecx, [ebp - 0xc8]
mov esi, eax
call fcn.0040aca3
push ebx
push edi
lea ecx, [ebp - 0xac]
call fcn.0040aca3
push ebx
push edi
lea ecx, [ebp - 0x90]
call fcn.0040afb1
push ebx
push edi
lea ecx, [ebp - 0x74]
call fcn.0040afb1
cmp byte [ebp - 0xd], bl
jne 0x409211
push 9
xor eax, eax
pop ecx
mov dword [ebp - 0x3c], ebx
lea edi, [ebp - 0x38]
rep stosd dword es:[edi], eax
mov eax, dword [0x5ca5d8]
mov dword [ebp - 0x2c], eax
lea eax, [ebp - 0x3c]
mov edi, str.NotifyDRMRecvWindow
push eax
mov dword [ebp - 0x38], 0x408ee6
mov dword [ebp - 0x18], edi
call dword [sym.imp.USER32.dll_RegisterClassA]
test ax, ax
je 0x409211
push ebx
push dword [0x5ca5d8]
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push edi
push ebx
call dword [sym.imp.USER32.dll_CreateWindowExA]
cmp eax, ebx
je 0x409211
push dword [0x592538]
push eax
push esi
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
mov edi, dword [sym.imp.KERNEL32.dll_GetTickCount]
call edi
mov dword [ebp - 0x14], eax
call edi
mov esi, 0x1388
jmp 0x409208
push 1
push ebx
push ebx
push ebx
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_PeekMessageA]
test eax, eax
je 0x4091fe
cmp dword [ebp - 0x54], 0x12
je 0x40921f
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x58]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageA]
jmp 0x409206
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
call edi
sub eax, dword [ebp - 0x14]
cmp eax, esi
jl 0x4091cf
jmp 0x40921f
push ebx
push ebx
push esi
push 0xffff
call dword [sym.imp.USER32.dll_PostMessageA]
call fcn.00512bd3
ret
Function at 0x40fef0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov eax, dword [0x59099c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
push edi
mov dword [ebp - 0x64], eax
push 0x10
lea eax, [ebp - 0x44]
mov dword [ebp - 0x50], eax
pop ebx
mov esi, ecx
lea eax, [ebp - 0x34]
push ebx
mov dword [ebp - 0x60], eax
lea eax, [ebp - 0x44]
push esi
push eax
mov dword [ebp - 0x68], esi
lea edi, [ebp - 0x24]
mov dword [ebp - 0x4c], esi
call fcn.0050bcb0
push ebx
add esi, ebx
lea eax, [ebp - 0x34]
push esi
push eax
call fcn.0050bcb0
mov eax, dword [ebp + 8]
add esi, ebx
add esp, 0x18
add eax, 0xffffffe0
mov dword [ebp - 0x5c], esi
mov dword [ebp - 0x54], eax
cmp dword [ebp - 0x54], ebx
mov esi, ebx
jae 0x40ff56
mov esi, dword [ebp - 0x54]
push esi
push dword [ebp - 0x5c]
push edi
call fcn.0050bcb0
push dword [ebp - 0x64]
add dword [ebp - 0x5c], esi
sub dword [ebp - 0x54], esi
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x60]
call fcn.004b3a70
add esp, 0x18
test esi, esi
mov dword [ebp - 0x58], ebx
je 0x40fff4
cmp esi, ebx
je 0x40fff4
xor ecx, ecx
test esi, esi
mov dword [ebp - 0x58], esi
jbe 0x40ffa6
mov dword [ebp - 0x48], edi
lea eax, [ebp - 0x14]
sub dword [ebp - 0x48], eax
mov edx, dword [ebp - 0x48]
lea eax, [ebp + ecx - 0x14]
mov dl, byte [edx + eax]
xor byte [eax], dl
inc ecx
cmp ecx, esi
jb 0x40ff95
cmp esi, ebx
jae 0x40ffc0
mov edx, ebx
sub edx, esi
push edx
lea ecx, [ebp + esi - 0x14]
lea eax, [esi + edi]
push ecx
push eax
call fcn.0050bcb0
add esp, 0xc
push dword [ebp - 0x64]
push edi
push edi
call fcn.004b3a70
mov ecx, dword [ebp - 0x50]
add esp, 0xc
mov eax, edi
sub ecx, edi
mov dword [ebp - 0x48], ebx
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec dword [ebp - 0x48]
jne 0x40ffd7
push ebx
push edi
push dword [ebp - 0x4c]
call fcn.0050bcb0
add esp, 0xc
add dword [ebp - 0x4c], ebx
jmp 0x410014
mov edx, dword [ebp - 0x50]
lea eax, [ebp - 0x14]
xor ecx, ecx
sub edx, eax
mov dword [ebp - 0x48], edx
jmp 0x410006
mov edx, dword [ebp - 0x48]
lea eax, [ebp + ecx - 0x14]
mov dl, byte [edx + eax]
xor byte [eax], dl
inc ecx
cmp ecx, ebx
jl 0x410003
push dword [ebp - 0x58]
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x4c]
call fcn.0050bcb0
mov eax, dword [ebp - 0x4c]
add eax, dword [ebp - 0x58]
add esp, 0xc
cmp esi, ebx
mov dword [ebp - 0x4c], eax
jne 0x410046
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0x60], edi
mov dword [ebp - 0x50], ecx
mov edi, eax
jmp 0x40ff4c
mov ecx, dword [ebp - 4]
sub eax, dword [ebp - 0x68]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0050bc9c
leave
ret 8