joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4095e0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x524], 0
and byte [ebp - 0x523], 0
mov byte [ebp - 0x522], 0x15
and byte [ebp - 0x521], 0
mov byte [ebp - 0x520], 0xa2
jmp dword [edx - 0x51e7a3a]
invalid
dec dword [edi - 0x51d7a3a]
invalid
dec dword [ebx - 0x51c7a3a]
invalid
call [edx - 0x51b7a3a]
invalid
jmp [esi + eax*8 - 0x51a7b]
call [eax - 0x5197a3a]
invalid
dec dword [edi - 0x5187a3a]
invalid
dec dword [edi - 0x5177a3a]
invalid
invalid
ljmp 0xffff
push eax
call fcn.00408a5f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00408a14
add esp, 0xc
mov dword [ebp - 0x39c], eax
call fcn.00408a4f
loopne 0x409693
std
xor al, byte [eax - 0x5135b]
inc dword [eax]
and byte [ebp - 0x513], 0
mov byte [ebp - 0x512], 0xe3
and byte [ebp - 0x511], 0
mov byte [ebp - 0x510], 0x5b
mov byte [ebp - 0x50f], 0x79
mov byte [ebp - 0x50e], 0x68
mov byte [ebp - 0x50d], 0x5a
mov byte [ebp - 0x50c], 0x75
mov byte [ebp - 0x50b], 0x70
mov byte [ebp - 0x50a], 0x79
mov byte [ebp - 0x509], 0x4f
mov byte [ebp - 0x508], 0x75
mov byte [ebp - 0x507], 0x66
mov byte [ebp - 0x506], 0x79
mov byte [ebp - 0x505], 0x1c
lea eax, [ebp - 0x514]
push eax
call fcn.00408a5f
pop ecx
push eax
push dword [ebp + 0x18]
push dword [ebp + 0x14]
call fcn.00408a14
add esp, 0xc
mov dword [ebp - 0x33c], eax
call fcn.00408a4f
invalid
cli
invalid

Function at 0x40ba00
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5abf58
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esp + 0x18], ebx
cmp dword [esi + 0x30], 0x10
jb 0x40ba41
mov eax, dword [esi + 0x1c]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x18], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x40ba67
mov eax, dword [esi]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret

Function at 0x40d150
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5aae18
mov eax, dword fs:[0]
push eax
push ebx
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esp + 0x14], ebx
mov esi, dword [esp + 0x1c]
cmp dword [esi + 0x30], 0x10
jb 0x40d18e
mov eax, dword [esi + 0x1c]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov dword [esp + 0x14], 0xffffffff
cmp dword [esi + 0x14], 0x10
jb 0x40d1b4
mov eax, dword [esi]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
mov byte [esi], bl
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x40e050
Capabilities:
Create thread

Disassembly:
push esi
push 8
call fcn.00548a50
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x40e020
test edi, edi
push 0
setne cl
push 0
mov dword [esi], eax
mov byte [esi + 4], cl
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40e090
push esi
call fcn.00548a36
add esp, 4
xor al, al
pop esi
ret
test edi, edi
je 0x40e09a
mov dword [edi], eax
mov al, 1
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x40e0b0
Capabilities:
Create thread

Disassembly:
push esi
push 8
call fcn.00548a50
add esp, 4
push 0
mov esi, eax
mov eax, dword [esp + 0xc]
push 0
push esi
push 0x40e020
push 0
push 0
mov dword [esi], eax
mov byte [esi + 4], 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
test eax, eax
jne 0x40e0ec
push esi
call fcn.00548a36
add esp, 4
xor al, al
pop esi
ret
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop esi
ret

Function at 0x40e100
Capabilities:
Check os version

Disassembly:
sub esp, 0x120
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x11c], eax
cmp byte [0x63dcbd], 0
jne 0x40e1af
lea eax, [esp]
push eax
mov dword [esp + 4], 0x11c
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [esp + 4]
mov ecx, 1
cmp eax, 5
jne 0x40e16e
mov eax, dword [esp + 8]
sub eax, 0
je 0x40e166
sub eax, ecx
je 0x40e15a
mov dword [0x63dcc0], 3
jmp 0x40e1a9
mov dword [0x63dcc0], 2
jmp 0x40e1a9
mov dword [0x63dcc0], ecx
jmp 0x40e1a9
cmp eax, 6
jne 0x40e19d
cmp byte [esp + 0x11a], cl
je 0x40e188
mov dword [0x63dcc0], 5
jmp 0x40e1a9
xor edx, edx
cmp dword [esp + 8], edx
setne dl
lea edx, [edx + edx + 4]
mov dword [0x63dcc0], edx
jmp 0x40e1a9
jbe 0x40e1a9
mov dword [0x63dcc0], 6
mov byte [0x63dcbd], cl
mov ecx, dword [esp + 0x11c]
mov eax, dword [0x63dcc0]
xor ecx, esp
call fcn.00548a41
add esp, 0x120
ret
Function at 0x410860
Capabilities:
Query or enumerate registry value

Disassembly:
push eax
mov eax, dword [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x10]
push edx
mov edx, dword [ecx]
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x41088d
mov eax, dword [esp + 8]
sub eax, 3
neg eax
sbb eax, eax
and eax, 0xd
ret 8

Function at 0x410890
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov eax, dword [edi]
lea ecx, [esp]
push ecx
mov ecx, dword [esp + 0xc]
push esi
add eax, eax
lea edx, [esp + 0x14]
push edx
mov dword [esp + 0xc], eax
mov eax, dword [esp + 0x18]
push 0
mov dword [edi], 0
mov edx, dword [ecx]
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4108fe
mov eax, dword [esp + 0xc]
cmp eax, 1
je 0x4108cf
cmp eax, 2
jne 0x4108ea
mov eax, dword [esp]
test esi, esi
je 0x4108f8
test eax, eax
je 0x4108f3
test al, 1
jne 0x4108ea
mov ecx, eax
shr ecx, 1
cmp word [esi + ecx*2 - 2], 0
je 0x4108f8
mov eax, 0xd
pop ecx
ret 8
xor edx, edx
mov word [esi], dx
shr eax, 1
mov dword [edi], eax
xor eax, eax
pop ecx
ret 8

Function at 0x4109e0
Capabilities:
Get session user name

Disassembly:
sub esp, 0x210
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x20c], eax
xor eax, eax
push 0x206
push eax
lea ecx, [esp + 0xe]
push ecx
mov word [esp + 0x10], ax
call fcn.0054e420
add esp, 0xc
lea edx, [esp]
push edx
lea eax, [esp + 8]
push eax
mov dword [esp + 8], 0x104
call dword [sym.imp.ADVAPI32.dll_GetUserNameW]
test eax, eax
je 0x410a56
lea ecx, [esp + 4]
push str.SYSTEM
push ecx
call fcn.0054bc3c
add esp, 8
test eax, eax
jne 0x410a56
mov al, 1
mov ecx, dword [esp + 0x20c]
xor ecx, esp
call fcn.00548a41
add esp, 0x210
ret
mov ecx, dword [esp + 0x20c]
xor ecx, esp
xor al, al
call fcn.00548a41
add esp, 0x210
ret

Function at 0x414b10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5be378
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x44], eax
push ebx
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x48], eax
fldz
fstp qword [esp + 0x24]
mov dword [esp + 0xc], vtable.ipc::proto::Variable.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
mov byte [esp + 0x18], al
mov dword [esp + 0x2c], 0x625620
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
or eax, 1
or eax, 4
mov dword [esp + 0x40], eax
mov eax, dword [esp + 0x60]
push edx
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x68]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 2
mov dword [esp + 0x28], eax
call fcn.00414810
lea ecx, [esp + 0xc]
mov bl, al
mov dword [esp + 0x58], 0xffffffff
call fcn.00420640
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x44]
xor ecx, esp
call fcn.00548a41
add esp, 0x54
ret 8
Function at 0x414be0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5be348
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x40]
mov dword fs:[0], eax
fldz
xor eax, eax
fstp qword [esp + 0x1c]
mov dword [esp + 4], vtable.ipc::proto::Variable.0
mov dword [esp + 8], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0xc], eax
mov byte [esp + 0x10], al
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
mov dword [esp + 0x24], 0x625620
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], eax
mov dword [esp + 0x30], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x48], eax
lea eax, [esp + 4]
push eax
call fcn.004149c0
test al, al
jne 0x414c78
lea ecx, [esp + 4]
mov dword [esp + 0x48], 0xffffffff
call fcn.00420640
xor al, al
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
add esp, 0x48
ret
cmp dword [esp + 0xc], 2
jne 0x414c55
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
lea ecx, [esp + 4]
mov dword [esi + 4], edx
mov dword [esp + 0x48], 0xffffffff
call fcn.00420640
mov al, 1
mov ecx, dword [esp + 0x40]
mov dword fs:[0], ecx
pop ecx
add esp, 0x48
ret

Function at 0x414cb0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5be318
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x4c]
mov dword fs:[0], eax
fldz
xor ebx, ebx
fstp qword [esp + 0x24]
mov dword [esp + 0xc], vtable.ipc::proto::Variable.0
mov dword [esp + 0x10], ebx
mov dword [esp + 0x3c], ebx
mov dword [esp + 0x14], ebx
mov byte [esp + 0x18], bl
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x20], ebx
mov dword [esp + 0x2c], 0x625620
mov dword [esp + 0x30], ebx
mov dword [esp + 0x34], ebx
mov dword [esp + 0x38], ebx
mov dword [esp + 0x40], ebx
lea eax, [esp + 0xc]
push eax
mov dword [esp + 0x58], ebx
call fcn.004149c0
test al, al
jne 0x414d4c
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0xffffffff
call fcn.00420640
xor al, al
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x50
ret 4
cmp dword [esp + 0x14], 4
jne 0x414d26
mov ecx, dword [esp + 0x2c]
push 0xffffffffffffffff
push ebx
push ecx
mov ecx, dword [esp + 0x68]
call fcn.00409870
lea ecx, [esp + 0xc]
mov dword [esp + 0x54], 0xffffffff
call fcn.00420640
mov al, 1
mov ecx, dword [esp + 0x4c]
mov dword fs:[0], ecx
pop ecx
pop ebx
add esp, 0x50
ret 4
Function at 0x414d90
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x5be2e8
mov eax, dword fs:[0]
push eax
sub esp, 0x48
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x50]
mov dword fs:[0], eax
xor eax, eax
mov dword [esp + 0x44], eax
fldz
fstp qword [esp + 0x24]
mov dword [esp + 0xc], vtable.ipc::proto::Variable.0
mov dword [esp + 0x10], eax
mov dword [esp + 0x3c], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x2c], 0x625620
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], eax
mov dword [esp + 0x38], eax
mov dword [esp + 0x58], eax
or eax, 1
or eax, 2
push edx
mov dword [esp + 0x44], eax
mov al, byte [ebp + 8]
push ecx
lea ecx, [esp + 0x14]
mov dword [esp + 0x1c], 1
mov byte [esp + 0x20], al
call fcn.00414810
lea ecx, [esp + 0xc]
mov bl, al
mov dword [esp + 0x58], 0xffffffff
call fcn.00420640
mov al, bl
mov ecx, dword [esp + 0x50]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00548a41
mov esp, ebp
pop ebp
ret 4
Function at 0x45f3f0
Capabilities:
Delete registry value

Disassembly:
push 0xffffffffffffffff
push 0x5b56e0
mov eax, dword fs:[0]
push eax
sub esp, 0x44
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x40], eax
push ebx
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x54]
mov dword fs:[0], eax
mov edi, dword [esp + 0x64]
lea eax, [esp + 0x34]
xor ebx, ebx
push eax
mov esi, edx
mov dword [esp + 0x18], ebx
call fcn.00410bc0
add esp, 4
mov dword [esp + 0x5c], ebx
cmp dword [esp + 0x48], 8
mov ecx, dword [esp + 0x34]
jae 0x45f44d
lea ecx, [esp + 0x34]
mov eax, dword [esi + 0x60]
push ecx
mov ecx, dword [eax]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
mov byte [esp + 0x5c], 1
cmp dword [edi + 0xc], ebx
je 0x45f529
mov edx, dword [edi]
mov eax, dword [edx + 0x10]
mov ecx, edi
call eax
test al, al
je 0x45f529
lea eax, [esp + 0x18]
mov ebx, edi
call fcn.004e9d20
test al, al
je 0x45f527
mov ecx, dword [esp + 0x18]
mov edi, 0x10
cmp dword [esp + 0x2c], edi
jae 0x45f4af
lea ecx, [esp + 0x18]
cmp dword [esp + 0x48], 8
mov eax, dword [esp + 0x34]
jae 0x45f4be
lea eax, [esp + 0x34]
mov edx, dword [esp + 0x28]
mov esi, dword [esi + 0x60]
push edx
push ecx
push 3
push 0
push eax
mov eax, dword [esi]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
sete bl
mov byte [esp + 0x5c], 0
cmp dword [esp + 0x2c], edi
jb 0x45f4f2
mov ecx, dword [esp + 0x18]
push ecx
call fcn.00548a36
add esp, 4
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x48], 8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], 0
mov byte [esp + 0x18], 0
jb 0x45f523
mov edx, dword [esp + 0x34]
push edx
call fcn.00548a36
add esp, 4
mov al, bl
jmp 0x45f56f
xor ebx, ebx
mov byte [esp + 0x5c], bl
cmp dword [esp + 0x2c], 0x10
jb 0x45f541
mov eax, dword [esp + 0x18]
push eax
call fcn.00548a36
add esp, 4
mov dword [esp + 0x5c], 0xffffffff
cmp dword [esp + 0x48], 8
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
jb 0x45f56d
mov ecx, dword [esp + 0x34]
push ecx
call fcn.00548a36
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x54]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x40]
xor ecx, esp
call fcn.00548a41
add esp, 0x50
ret 4
Function at 0x508dd0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ae071
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov eax, dword [esp + 0x40]
xor ebx, ebx
push 0xffffffffffffffff
mov dword [esp + 0xc], ebx
push ebx
push eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x18], esi
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.00409870
mov dword [esp + 0x38], 1
lea eax, [esp + 0x10]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push eax
mov ecx, esi
mov byte [esi], bl
call fcn.00407740
mov ecx, dword [esp + 0x44]
mov edx, dword [ecx]
mov dword [esi + 0x1c], edx
mov byte [esp + 0x38], bl
cmp dword [esp + 0x24], 0x10
mov dword [esp + 8], 1
jb 0x508e73
mov eax, dword [esp + 0x10]
push eax
call fcn.00548a36
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00548a41
add esp, 0x34
ret

Function at 0x508ea0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5ae021
mov eax, dword fs:[0]
push eax
sub esp, 0x28
mov eax, dword [0x6216ec]
xor eax, esp
mov dword [esp + 0x24], eax
push ebx
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov eax, dword [esp + 0x44]
xor ebx, ebx
mov dword [esp + 0xc], ebx
mov edi, dword [ecx]
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x20]
mov dword [esp + 0x1c], esi
mov dword [esp + 0x34], 0xf
mov dword [esp + 0x30], ebx
mov byte [esp + 0x20], bl
call fcn.00409870
mov dword [esp + 0x3c], 1
lea edx, [esp + 0x14]
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], ebx
push edx
mov ecx, esi
mov byte [esi], bl
call fcn.00407740
mov dword [esi + 0x1c], edi
mov byte [esp + 0x3c], bl
cmp dword [esp + 0x28], 0x10
mov dword [esp + 0xc], 1
jb 0x508f40
mov eax, dword [esp + 0x14]
push eax
call fcn.00548a36
add esp, 4
mov eax, esi
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebx
mov ecx, dword [esp + 0x24]
xor ecx, esp
call fcn.00548a41
add esp, 0x34
ret

Function at 0x50b300
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5b4799
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, dword [esp + 0x1c]
xor eax, eax
mov dword [esp + 8], eax
mov dword [esi + 0x14], 0xf
mov dword [esi + 0x10], eax
mov byte [esi], al
mov ecx, dword [esp + 0x40]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x44]
push eax
mov eax, dword [esp + 0x40]
push ecx
mov ecx, dword [esp + 0x40]
push edx
mov edx, dword [esp + 0x40]
push eax
mov eax, dword [esp + 0x3c]
push ecx
mov ecx, dword [esp + 0x3c]
push edx
mov edx, dword [esp + 0x38]
push eax
push ecx
mov ecx, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x54]
push esi
mov dword [esp + 0x30], 1
call fcn.0050b3a0
add esp, 0x28
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret
Function at 0x51d420
Capabilities:
Encode data using xor
Generate random numbers using the delphi lcg

Disassembly:
cmp dword [esi + 0x4090], 0
je 0x51d4cf
cmp dword [esi + 0x6c], 0
jbe 0x51d4cf
push ebx
push ebp
mov ebp, 0xffffff78
push edi
lea edi, [esi + 0x88]
sub ebp, esi
jmp 0x51d450
movzx ecx, byte [edi]
mov eax, dword [esi + 0x4094]
mov ebx, dword [esi + 0x40a0]
xor ecx, eax
mov edx, dword [esi + 0x409c]
shr eax, 8
and ecx, 0xff
mov ecx, dword [ebx + ecx*4]
xor ecx, eax
movzx eax, cl
add eax, dword [esi + 0x4098]
mov dword [esi + 0x4094], ecx
mov ecx, dword [esi + 0x409c]
imul eax, eax, 0x8088405
inc eax
mov dword [esi + 0x4098], eax
shr eax, 0x18
xor eax, ecx
and eax, 0xff
and edx, 0xfffd
shr ecx, 8
xor ecx, dword [ebx + eax*4]
or edx, 2
mov eax, edx
xor eax, 1
imul eax, edx
mov dword [esi + 0x409c], ecx
shr eax, 8
xor byte [edi], al
inc edi
lea ecx, [edi + ebp]
cmp ecx, dword [esi + 0x6c]
jb 0x51d450
pop edi
pop ebp
pop ebx
mov edx, dword [esi + 0x6c]
mov ecx, dword [esi + 0x20]
push edx
mov edx, dword [esi + 0x1c]
lea eax, [esi + 0x88]
push eax
mov eax, dword [esi + 8]
push ecx
push edx
call eax
add esp, 0x10
cmp eax, dword [esi + 0x6c]
mov dword [esi + 0x6c], 0
je 0x51d4fa
or eax, 0xffffffff
ret
xor eax, eax
ret
Function at 0x53b130
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5ba1e0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
lea esi, [edi + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov byte [esp + 0x1c], 1
cmp dword [esi + 0x30], 0x10
jb 0x53b17c
mov eax, dword [esi + 0x1c]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov byte [esp + 0x1c], bl
cmp dword [esi + 0x14], 8
jb 0x53b19e
mov eax, dword [esi]
push eax
call fcn.00548a36
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, edi
mov word [esi], ax
mov dword [esp + 0x1c], 0xffffffff
call fcn.0053fe50
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x53b630
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5ba180
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
lea esi, [edi + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov byte [esp + 0x1c], 1
cmp dword [esi + 0x30], 0x10
jb 0x53b67c
mov eax, dword [esi + 0x1c]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov byte [esp + 0x1c], bl
cmp dword [esi + 0x14], 8
jb 0x53b69e
mov eax, dword [esi]
push eax
call fcn.00548a36
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, edi
mov word [esi], ax
mov dword [esp + 0x1c], 0xffffffff
call fcn.00540c70
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4

Function at 0x53bb40
Capabilities:
Get process heap force flags

Disassembly:
push 0xffffffffffffffff
push 0x5ad8a0
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x6216ec]
xor eax, esp
push eax
lea eax, [esp + 0x14]
mov dword fs:[0], eax
mov edi, dword [esp + 0x24]
xor ebx, ebx
lea esi, [edi + 0x18]
mov dword [esp + 0x1c], ebx
mov dword [esp + 0x10], esi
mov byte [esp + 0x1c], 1
cmp dword [esi + 0x30], 0x10
jb 0x53bb8c
mov eax, dword [esi + 0x1c]
push eax
call fcn.00548a36
add esp, 4
mov dword [esi + 0x30], 0xf
mov dword [esi + 0x2c], ebx
mov byte [esi + 0x1c], bl
mov byte [esp + 0x1c], bl
cmp dword [esi + 0x14], 8
jb 0x53bbae
mov eax, dword [esi]
push eax
call fcn.00548a36
add esp, 4
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], ebx
mov ecx, edi
mov word [esi], ax
mov dword [esp + 0x1c], 0xffffffff
call fcn.005417e0
mov ecx, dword [esp + 0x14]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x10
ret 4
Function at 0x5a1210
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x240
mov eax, dword [0x6216ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x23c], ecx
lea eax, [ebp - 0x238]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x5a1246
xor al, al
jmp 0x5a1357
call fcn.005a2470
movzx ecx, al
test ecx, ecx
jne 0x5a1276
push 0x105
lea edx, [ebp - 0x238]
push edx
lea eax, [ebp - 0x238]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x5a1276
xor al, al
jmp 0x5a1357
lea ecx, [ebp - 0x238]
push ecx
call fcn.005a2450
add esp, 4
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0
jbe 0x5a12c7
mov edx, dword [ebp - 0x24]
movzx eax, word [ebp + edx*2 - 0x23a]
cmp eax, 0x5c
je 0x5a12c7
push 0xffffffffffffffff
push 0x5ce90c
mov ecx, 0x105
sub ecx, dword [ebp - 0x24]
push ecx
mov edx, dword [ebp - 0x24]
lea eax, [ebp + edx*2 - 0x238]
push eax
call fcn.005a2500
add esp, 0x10
add eax, dword [ebp - 0x24]
mov dword [ebp - 0x24], eax
cmp dword [ebp - 0x24], 0x104
jb 0x5a12d7
xor al, al
jmp 0x5a1357
mov ecx, dword [ebp + 8]
call fcn.00598b20
lea ecx, [ebp - 0x238]
push ecx
lea edx, [ebp - 0x20]
push edx
call fcn.0059a380
add esp, 8
push eax
mov ecx, dword [ebp + 8]
call fcn.00598f80
lea ecx, [ebp - 0x20]
call fcn.004c0ca0
cmp dword [ebp + 0x10], 0
je 0x5a1315
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
call fcn.00598fe0
movzx ecx, byte [ebp + 0xc]
test ecx, ecx
je 0x5a1347
mov edx, dword [ebp + 8]
push edx
mov eax, dword [ebp - 0x23c]
mov edx, dword [eax]
mov ecx, dword [ebp - 0x23c]
mov eax, dword [edx + 0x20]
call eax
movzx ecx, al
test ecx, ecx
jne 0x5a1347
mov dword [ebp - 0x240], 0
jmp 0x5a1351
mov dword [ebp - 0x240], 1
mov al, byte [ebp - 0x240]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00548a41
mov esp, ebp
pop ebp
ret 0xc

Function at 0x5a1a90
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
mov eax, dword [0x6216ec]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x258], ecx
lea eax, [ebp - 0x250]
push eax
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test eax, eax
jne 0x5a1ac6
xor al, al
jmp 0x5a1b56
call fcn.005a2470
movzx ecx, al
test ecx, ecx
jne 0x5a1af3
push 0x105
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x250]
push eax
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
jne 0x5a1af3
xor al, al
jmp 0x5a1b56
lea ecx, [ebp - 0x250]
push ecx
call fcn.005a2450
add esp, 4
push eax
lea edx, [ebp - 0x250]
push edx
lea eax, [ebp - 0x20]
push eax
mov ecx, dword [ebp + 8]
call fcn.00598bb0
push eax
lea ecx, [ebp - 0x3c]
push ecx
call fcn.0056d370
add esp, 8
mov ecx, eax
call fcn.00404c40
push eax
call fcn.005a24b0
add esp, 0xc
neg eax
sbb eax, eax
add eax, 1
mov byte [ebp - 0x251], al
lea ecx, [ebp - 0x3c]
call fcn.00404e90
lea ecx, [ebp - 0x20]
call fcn.004c0ca0
mov al, byte [ebp - 0x251]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00548a41
mov esp, ebp
pop ebp
ret 4