joyce8/EMBER2024-capa huggingface dataset:
Function at 0x9c8250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x9dc808
push 0x9cc288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x9c8329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x9c8329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.009cb1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x9c8329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x9c8329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x9c832c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.009c8351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x9c8d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9c8d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x9c8d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x9c8d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x9c8d94
push eax
push esi
call fcn.009cb20b
add esp, 8
pop esi
ret 0x10

Function at 0x9c8da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9c8e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x9c8e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x9e1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009cadff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x9c8dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x9c8e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x9c8ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x9c8eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x9e1320
push ecx
mov dword [esp + 0x1c], 4
call fcn.009cadff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x9c8eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x9c8e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x9c9000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x9c9131
push esi
call fcn.009cc145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.009bb080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x9c9131
push 0
push ebp
call fcn.009bb3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.009bb260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x9c908b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.009bb2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x9c9121
push 0x9e1918
push edi
call fcn.009ca3f0
push eax
push ebx
push esi
call fcn.009c8f60
push 0x9e18f8
push edi
call fcn.009ca3f0
push eax
push ebx
push esi
call fcn.009c8f60
push 0x9e18d8
push edi
call fcn.009ca3f0
push eax
push ebx
push esi
call fcn.009c8f60
push 0x9e18c0
push edi
call fcn.009ca3f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.009c8f60
push 0x9e18a0
push edi
call fcn.009ca3f0
push eax
push ebx
push esi
call fcn.009c8f60
push 0x9e1888
push edi
call fcn.009ca3f0
push eax
push ebx
push esi
call fcn.009c8f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x9ca1b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.009ca140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.009ca140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.009ca140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.009ca140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x9cabfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x9cac50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x9dc87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x9cac43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x9cac52
xor eax, eax
pop esi
leave
ret 4
Function at 0x5a5890
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x151000]
push edi
jmp 0x5a58aa
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x5a58b1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a58a0
mov eax, 1
add ebx, ebx
jne 0x5a58c3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x5a58d4
jne 0x5a58f3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a58f3
dec eax
add ebx, ebx
jne 0x5a58e0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x5a58b8
add ebx, ebx
jne 0x5a58ef
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5a5945
xor ecx, ecx
sub eax, 3
jb 0x5a590b
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x5a597a
sar eax, 1
mov ebp, eax
jmp 0x5a5916
add ebx, ebx
jne 0x5a5916
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a58e4
inc ecx
add ebx, ebx
jne 0x5a5924
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5a58e4
add ebx, ebx
jne 0x5a5931
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5a5926
jne 0x5a5942
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5a5926
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x5a5964
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x5a5956
jmp 0x5a58a6
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x5a5964
add edi, ecx
jmp 0x5a58a6
pop esi
mov edi, esi
mov ecx, 0x3ed9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x5a5982
cmp byte [edi], 0x11
jne 0x5a5982
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x5a5987
lea edi, [esi + 0x19e000]
mov eax, dword [edi]
or eax, eax
je 0x5a59ff
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x2746c0]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x27483c]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x5a59b4
mov ecx, edi
jns 0x5a59e3
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x274840]
or eax, eax
je 0x5a59f9
mov dword [ebx], eax
add ebx, 4
jmp 0x5a59d1
call dword [esi + 0x274850]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5a5a30
cmp al, 0xef
ja 0x5a5a23
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5a5a05
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5a5a12
mov ebp, dword [esi + 0x274844]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x227]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x5a5a64
sub esp, 0xffffff80
jmp 0x425f74
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x42e000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
mov ebx, 0x407ef8
mov ecx, 0x788c6b61
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x42e04e
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e024
nop
mov eax, section..data
nop
mov ebx, 0x42cd70
nop
mov ecx, 0xead3a68
nop
nop
test eax, eax
nop
nop
nop
nop
je 0x42e084
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
jne 0x42e06c
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x3004f1aa
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push esi
lea eax, [ebp - 0x20]
push eax
xor esi, esi
mov dword [ebp - 0x20], 0x20
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
mov eax, dword [ebp - 0x1c]
cmp eax, 0x1e
jbe 0x3004f1d4
cmp eax, 0x55
ja 0x3004f1d9
inc esi
jmp 0x3004f1ee
cmp eax, 0x55
jbe 0x3004f1ee
cmp eax, 0x64
jne 0x3004f1eb
cmp dword [ebp - 0x14], 0x4000
jae 0x3004f1eb
push 3
jmp 0x3004f1ed
push 2
pop esi
mov eax, esi
pop esi
leave
ret

Function at 0x300507ee
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov edx, dword [ebp + 8]
cmp dx, 0x80
mov word [ebp - 0x48], 0x80
mov word [ebp - 0x46], 0xa6
mov word [ebp - 0x44], 0xa9
mov word [ebp - 0x42], 0xaf
mov word [ebp - 0x40], 0xb2
mov word [ebp - 0x3e], 0xb3
mov word [ebp - 0x3c], 0xb5
mov word [ebp - 0x3a], 0xd6
mov word [ebp - 0x38], 0xd8
mov word [ebp - 0x36], 0xf6
mov word [ebp - 0x34], 0xf8
mov word [ebp - 0x32], 0xff
mov word [ebp - 0x30], 0x152
mov word [ebp - 0x2e], 0x153
mov word [ebp - 0x2c], 0x160
mov word [ebp - 0x2a], 0x161
mov word [ebp - 0x28], 0x178
mov word [ebp - 0x26], 0x178
mov word [ebp - 0x24], 0x192
mov word [ebp - 0x22], 0x192
mov word [ebp - 0x20], 0x2c6
mov word [ebp - 0x1e], 0x2c6
mov word [ebp - 0x1c], 0x2dc
mov word [ebp - 0x1a], 0x2dc
mov word [ebp - 0x18], 0x2013
mov word [ebp - 0x16], 0x2014
mov word [ebp - 0x14], 0x2020
mov word [ebp - 0x12], 0x2022
mov word [ebp - 0x10], 0x2026
mov word [ebp - 0xe], 0x2030
mov word [ebp - 0xc], 0x2038
mov word [ebp - 0xa], 0x203a
mov word [ebp - 8], 0x20ac
mov word [ebp - 6], 0x20ac
mov word [ebp - 4], 0x2122
mov word [ebp - 2], 0x2122
jb 0x300508e6
cmp byte [ebp + 0x14], 0
jne 0x300508ff
push edx
call fcn.300502a9
test al, al
je 0x30050911
cmp dx, 0xd
je 0x300508f9
cmp dx, 0xb
je 0x300508f9
xor eax, eax
jmp 0x300509b4
cmp byte [ebp + 0x14], 0
je 0x30050911
push edx
call fcn.300502a9
test al, al
je 0x30050911
push 3
pop eax
jmp 0x300509b4
push edx
call fcn.300502da
test al, al
je 0x3005091f
push 4
jmp 0x3005090b
call fcn.3005030c
test al, al
jne 0x300508f2
push edx
call fcn.30050433
test al, al
je 0x3005093d
xor eax, eax
cmp byte [ebp + 0x18], al
sete al
inc eax
jmp 0x300509b4
cmp dx, 0xb6
jne 0x3005095a
movzx eax, byte [0x301ad9ac]
sub eax, 0x86
je 0x30050956
dec eax
dec eax
jne 0x300509b1
push 2
jmp 0x3005090b
xor eax, eax
cmp word [ebp + eax*4 - 0x48], dx
ja 0x3005096a
cmp dx, word [ebp + eax*4 - 0x46]
jbe 0x30050956
inc eax
cmp eax, 0x12
jb 0x3005095c
mov al, byte [ebp + 0xc]
cmp al, byte [ebp + 0x10]
je 0x30050984
neg al
sbb eax, eax
and eax, 0xfffffffd
add eax, 4
jmp 0x300509b4
push 5
push 1
lea eax, [ebp + 8]
push eax
call sub.USP10.dll_ScriptIsComplex
test eax, eax
je 0x3005091b
push dword [ebp + 8]
call fcn.30050570
test al, al
jne 0x300509b1
push dword [ebp + 8]
call fcn.300502c1
test al, al
jne 0x3005091b
xor eax, eax
inc eax
leave
ret 0x14
Function at 0x30058ca4
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
cmp dword [0x301b6d28], 0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetVersion]
push esi
jne 0x30058ce8
call ebx
test eax, eax
jns 0x30058cde
push 0x30001ec4
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
push 0x30001eb8
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov dword [0x301b6d24], eax
mov dword [0x301b6d28], 1
mov eax, dword [0x301b6d24]
test eax, eax
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
je 0x30058d04
push dword [ebp + 0x10]
push eax
call esi
test eax, eax
mov dword [ebp - 4], eax
jne 0x30058d34
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [edi]
test eax, eax
jne 0x30058d2a
call ebx
test eax, eax
mov eax, dword [ebp + 8]
jns 0x30058d1f
push dword [eax + 0xc]
call dword [eax + 8]
jmp 0x30058d24
push dword [eax + 4]
call dword [eax]
test eax, eax
je 0x30058d33
mov dword [edi], eax
push dword [ebp + 0x10]
push eax
call esi
mov dword [ebp - 4], eax
pop edi
mov eax, dword [ebp - 4]
pop esi
pop ebx
leave
ret 0xc

Function at 0x3005b3c7
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa0
mov eax, dword [0x30024a78]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x98
lea eax, [ebp - 0x9c]
push 0
push eax
mov dword [ebp - 0xa0], 0x9c
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0xa0]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
test eax, eax
je 0x3005b420
cmp dword [ebp - 0x90], 2
jne 0x3005b420
cmp dword [ebp - 0x9c], 5
sbb eax, eax
inc eax
jmp 0x3005b422
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3010f365
leave
ret

Function at 0x3005b42e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x30024a78]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
push 0x18
pop ecx
mov esi, 0x300021a8
lea edi, [ebp - 0x78]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
mov esi, 0x30002198
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x288]
push eax
push 0x20019
xor ebx, ebx
push ebx
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x78]
push eax
push reloc.OLEAUT32.dll_SysReAllocString
movsd dword es:[edi], dword [esi]
mov word [ebp - 0x284], bx
mov dword [ebp - 0x288], ebx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x3005b4e6
lea eax, [ebp - 0x290]
push eax
lea eax, [ebp - 0x284]
push eax
lea eax, [ebp - 0x28c]
push eax
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x288]
mov dword [ebp - 0x290], 0x20a
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x3005b4da
cmp dword [ebp - 0x28c], 1
jne 0x3005b4da
lea eax, [ebp - 0x284]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
push dword [ebp - 0x288]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop edi
pop esi
mov eax, ebx
xor ecx, ebp
pop ebx
call fcn.3010f365
leave
ret
Function at 0x3005d337
Capabilities:
Get common file path
Set current directory

Disassembly:
push 0xc98
mov eax, 0x301843fa
call fcn.3010f738
mov ebx, ecx
mov esi, edx
lea ecx, [ebp - 0xc3d]
mov dword [ebp - 0xc48], esi
call fcn.300eae69
and dword [ebp - 4], 0
push 0x1cdc
call fcn.30147180
mov dword [ebp - 0xc44], eax
mov ecx, eax
mov byte [ebp - 4], 1
call fcn.300f1072
mov dword [ebp - 0xc44], eax
mov dword [ebp - 0xc38], eax
test eax, eax
je 0x3005d53d
lea eax, [ebp - 0x21c]
push eax
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
mov eax, dword [0x30025c28]
mov dword [ebp - 0xc34], eax
mov dword [ebp - 0xc3c], eax
push edi
lea eax, [ebp - 0x424]
push eax
push ebx
mov byte [ebp - 4], 5
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
test eax, eax
je 0x3005d3d3
cmp eax, edi
ja 0x3005d3d3
lea ebx, [ebp - 0x424]
push 0
push ebx
lea eax, [ebp - 0xc34]
push eax
call fcn.300627f9
push ebx
lea eax, [ebp - 0xc3c]
push eax
call fcn.30062cc6
push dword [ebp - 0xc34]
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov edi, dword [ebp - 0xc44]
push edi
lea eax, [esi + 0xc]
push eax
push dword [ebp - 0xc3c]
call fcn.300f4a22
xor ebx, ebx
test al, al
je 0x3005d501
cmp byte [esi + 0x15], bl
je 0x3005d4bd
push edi
lea ecx, [ebp - 0xca4]
mov dword [ebp - 0xc38], ebx
call fcn.30089262
cmp dword [esi + 0x1c], 1
mov byte [ebp - 4], 6
jl 0x3005d46b
push edi
call fcn.300f4dde
mov eax, dword [eax + 4]
cmp dword [esi + 0x1c], eax
jg 0x3005d46b
push edi
call fcn.300f4dde
push dword [esi + 0x1c]
mov ecx, eax
call fcn.301009c5
cmp eax, ebx
je 0x3005d46b
mov eax, dword [eax + 0x10]
mov dword [ebp - 0xc84], eax
push ebx
push ebx
lea eax, [ebp - 0xca4]
push eax
push edi
call fcn.3008ad36
mov edi, eax
mov eax, dword [edi + 0x1c]
push dword [eax + 8]
push dword [esi + 0x18]
call fcn.3005b35d
push dword [esi + 0x18]
mov edi, dword [edi + 0x1c]
mov edi, dword [edi + 8]
push 0x300023d0
push edi
call dword [sym.imp.USER32.dll_SetPropA]
push ebx
push dword [esi + 0x18]
call dword [sym.imp.USER32.dll_ShowWindow]
call fcn.300609d2
lea ecx, [ebp - 0xca4]
mov byte [ebp - 4], 5
call fcn.30088a18
cmp byte [esi + 0x14], 0
je 0x3005d501
lea ecx, [ebp - 0xc60]
call fcn.301006e2
cmp dword [esi + 8], ebx
jne 0x3005d4e8
push ebx
push esi
lea eax, [ebp - 0xc60]
push eax
call fcn.30100595
test al, al
jne 0x3005d4e8
mov byte [esi + 0x14], al
cmp byte [esi + 0x14], 0
je 0x3005d501
push esi
lea eax, [ebp - 0xc60]
push eax
push dword [ebp - 0xc38]
call fcn.30100809
mov eax, dword [ebp - 0xc3c]
cmp word [eax], bx
je 0x3005d515
add eax, 0xfffffff8
push eax
call fcn.301471a2
mov eax, dword [ebp - 0xc34]
cmp word [eax], bx
je 0x3005d529
add eax, 0xfffffff8
push eax
call fcn.301471a2
mov dword [ebp - 4], 2
lea eax, [ebp - 0x21c]
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, dword [ebp - 0xc38]
test ecx, ecx
mov byte [ebp - 4], 0
je 0x3005d552
push 1
call fcn.3005c72a
push 0
mov ecx, 0x301f7fdc
call fcn.3005c832
call fcn.3010f791
ret