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

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x867808
push 0x857288
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 0x853329
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 0x853329
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.008561d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x853329
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 0x853329
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 0x85332c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.00853351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x853d20
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 0x853d58
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 0x853d60
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 0x853d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x853d94
push eax
push esi
call fcn.0085620b
add esp, 8
pop esi
ret 0x10

Function at 0x853da0
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 0x853e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x853e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x86c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00855dff
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 0x853dda
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 0x853e30
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 0x853ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x853eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x86c320
push ecx
mov dword [esp + 0x1c], 4
call fcn.00855dff
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 0x853eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x853e6a
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 0x854000
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 0x854131
push esi
call fcn.00857145
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.00846080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x854131
push 0
push ebp
call fcn.008463a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.00846260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x85408b
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.008462f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x854121
push 0x86c918
push edi
call fcn.008553f0
push eax
push ebx
push esi
call fcn.00853f60
push 0x86c8f8
push edi
call fcn.008553f0
push eax
push ebx
push esi
call fcn.00853f60
push 0x86c8d8
push edi
call fcn.008553f0
push eax
push ebx
push esi
call fcn.00853f60
push 0x86c8c0
push edi
call fcn.008553f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.00853f60
push 0x86c8a0
push edi
call fcn.008553f0
push eax
push ebx
push esi
call fcn.00853f60
push 0x86c888
push edi
call fcn.008553f0
push eax
push ebx
push esi
call fcn.00853f60
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 0x8551b0
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.00855140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00855140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00855140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00855140
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 0x855bfa
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 0x855c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x86787c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x855c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x855c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412cf0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412e9a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc4
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x32
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf6
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x3d
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xb3
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xd6
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x2a
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x13
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xf8
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4b
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x88
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
xor byte [esi + ebx], 0x40
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x89
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4e
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d10
pop ebx
pop edi
pop esi
ret

Function at 0x4035d5
Capabilities:
Terminate process

Disassembly:
jmp 0x451b59
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451b6a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058fd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403706
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b002
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b013
pop esi
ret
push ebx
push edi
push esi
call fcn.0049aee9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b03b
push ebx
push esi
push edi
call fcn.004056f0
add esp, 0xc
push 0
call fcn.0040623a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x60906af8
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
xor ebx, ebx
test edx, edx
jg 0x60906b21
mov edx, esi
mov edi, edx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea edx, [ecx - 1]
test edx, edx
jle 0x60906b40
mov ecx, 0x60905ef1
mov esi, esi
lea eax, [ebx*8]
xor ebx, eax
movzx eax, byte [esi]
movzx eax, byte [eax + ecx]
xor ebx, eax
inc esi
dec edx
test edx, edx
jg 0x60906b28
and ebx, 0x7fffffff
mov eax, ebx
pop ebx
pop esi
pop edi
leave
ret

Function at 0x6090797c
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
and eax, 0x7fffffff
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 4]
push eax
push edx
push dword [esi + 4]
call sub.KERNEL32.dll_SetFilePointer
cmp eax, 0xffffffff
jne 0x609079c0
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x609079c0
mov eax, 0xd
jmp 0x60907a06
add esp, 0xfffffff4
push 0
lea eax, [ebp - 8]
push eax
push ebx
push edi
push dword [esi + 4]
call sub.KERNEL32.dll_ReadFile
add esp, 0xc
test eax, eax
jne 0x609079e4
mov eax, 0x10a
jmp 0x60907a06
mov eax, dword [ebp - 8]
cmp eax, ebx
je 0x60907a04
add esp, 0xfffffffc
sub ebx, eax
push ebx
push 0
add eax, edi
push eax
call sym._memset
mov eax, 0x20a
jmp 0x60907a06
xor eax, eax
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x60907a10
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
push esi
push ebx
mov edi, dword [ebp + 0xc]
mov esi, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x18]
and eax, 0x7fffffff
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 4]
push eax
push edx
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_SetFilePointer
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x60907a5c
call sub.KERNEL32.dll_GetLastError
test eax, eax
je 0x60907a5c
mov eax, 0xd
jmp 0x60907a91
sub esi, eax
add edi, eax
test esi, esi
jle 0x60907a86
add esp, 0xfffffff4
push 0
lea eax, [ebp - 8]
push eax
push esi
push edi
mov eax, dword [ebp + 8]
push dword [eax + 4]
call sub.KERNEL32.dll_WriteFile
mov ebx, eax
add esp, 0xc
test ebx, ebx
je 0x60907a4f
mov eax, dword [ebp - 8]
test eax, eax
jne 0x60907a58
test ebx, ebx
je 0x60907a4f
cmp esi, dword [ebp - 8]
jg 0x60907a4f
xor eax, eax
lea esp, [ebp - 0x28]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x60907afc
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov edx, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
add esp, 0xfffffff8
lea eax, [ebp - 4]
push eax
push dword [edx + 4]
call sub.KERNEL32.dll_GetFileSize
mov ecx, eax
mov eax, dword [ebp - 4]
xor edx, edx
mov edx, eax
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], edx
add dword [ebx], ecx
adc dword [ebx + 4], 0
xor eax, eax
mov ebx, dword [ebp - 0x28]
leave
ret
Function at 0x609080a0
Capabilities:
Check if file exists
Delete file
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push esi
push ebx
xor edi, edi
add esp, 0xfffffff4
push dword [ebp + 0xc]
call sym._convertUtf8Filename
mov esi, eax
add esp, 0x10
test esi, esi
jne 0x609080cc
mov eax, 7
jmp 0x60908164
call sym._isNT
test eax, eax
je 0x60908114
lea esi, [esi]
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_DeleteFileW
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x60908150
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_GetFileAttributesW
add esp, 0xc
cmp eax, 0xffffffff
je 0x60908150
mov eax, edi
inc edi
cmp eax, 2
jg 0x60908150
add esp, 0xfffffff4
push 0x64
call sub.KERNEL32.dll_Sleep
add esp, 0xc
jmp 0x609080d8
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_DeleteFileA
mov ebx, eax
add esp, 0xc
test ebx, ebx
jne 0x60908150
add esp, 0xfffffff4
push esi
call sub.KERNEL32.dll_GetFileAttributesA
add esp, 0xc
cmp eax, 0xffffffff
je 0x60908150
mov eax, edi
inc edi
cmp eax, 2
jg 0x60908150
add esp, 0xfffffff4
push 0x64
call sub.KERNEL32.dll_Sleep
add esp, 0xc
jmp 0x60908114
add esp, 0xfffffff4
push esi
call sym._free
xor eax, eax
test ebx, ebx
jne 0x60908164
mov eax, 0xa
lea esp, [ebp - 0x18]
pop ebx
pop esi
pop edi
leave
ret

Function at 0x6090816c
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push edi
push esi
push ebx
add esp, 0xfffffff4
push dword [ebp + 0xc]
call sym._convertUtf8Filename
mov ebx, eax
add esp, 0x10
test ebx, ebx
jne 0x60908190
mov eax, 7
jmp 0x609081ea
call sym._isNT
test eax, eax
je 0x609081a4
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_GetFileAttributesW
jmp 0x609081ad
add esp, 0xfffffff4
push ebx
call sub.KERNEL32.dll_GetFileAttributesA
mov esi, eax
add esp, 0xc
add esp, 0xfffffff4
push ebx
call sym._free
cmp dword [ebp + 0x10], 1
je 0x609081e0
jg 0x609081cc
cmp dword [ebp + 0x10], 0
je 0x609081d2
jmp 0x609081e8
cmp dword [ebp + 0x10], 2
jne 0x609081e8
cmp esi, 0xffffffff
setne al
movzx edi, al
jmp 0x609081e8
mov edi, esi
xor edi, 1
and edi, 1
mov eax, edi
lea esp, [ebp - 0x18]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x60908200
Capabilities:
Encrypt data using rc4 ksa
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x43c
push edi
push esi
push ebx
mov esi, dword [ebp + 0x10]
mov eax, dword [0x609480c0]
test eax, eax
je 0x60908234
push eax
push 0x609081f2
lea ebx, [ebp - 0x110]
push ebx
push 0xe6
call sym.sqlite3.dll_sqlite3_snprintf
add esp, 0x10
jmp 0x609082af
call sym._isNT
test eax, eax
je 0x6090825c
add esp, 0xfffffff8
lea ebx, [ebp - 0x320]
push ebx
push 0xe6
call sub.KERNEL32.dll_GetTempPathW
add esp, 0xfffffffc
push ebx
call sym._unicodeToUtf8
jmp 0x60908279
add esp, 0xfffffff8
lea ebx, [ebp - 0x430]
push ebx
push 0xe6
call sub.KERNEL32.dll_GetTempPathA
add esp, 0xfffffffc
push ebx
call sym._mbcsToUtf8
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x6090828c
mov eax, 7
jmp 0x60908349
push edi
push 0x609081f2
lea ebx, [ebp - 0x110]
push ebx
push 0xe6
call sym.sqlite3.dll_sqlite3_snprintf
add esp, 0xfffffff4
push edi
call sym._free
add esp, 0x20
mov edx, ebx
mov edi, edx
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ebx, ecx
not ebx
lea ecx, [ebx - 1]
test ecx, ecx
jle 0x609082df
lea eax, [ebx - 2]
cmp byte [eax + edx], 0x5c
jne 0x609082df
add eax, edx
nop
dec eax
dec ecx
test ecx, ecx
jle 0x609082df
cmp byte [eax], 0x5c
je 0x609082d4
mov byte [ecx + edx], 0
push edx
push 0x609081f5
push esi
mov eax, dword [ebp + 8]
mov eax, dword [eax + 8]
add eax, 0xffffffe2
push eax
call sym.sqlite3.dll_sqlite3_snprintf
mov edi, esi
mov al, 0
cld
mov ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
lea ebx, [ecx - 1]
add esp, 0xfffffff8
lea eax, [ebx + esi]
push eax
push 0x14
call sym._sqlite3Randomness
mov edi, 0x3e
mov ecx, 0x13
mov esi, esi
movzx ax, byte [ebx + esi]
xor dx, dx
div di
mov al, dl
and eax, 0xff
mov al, byte [eax + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [ebx + esi], al
inc ebx
dec ecx
jns 0x60908324
mov byte [ebx + esi], 0
xor eax, eax
lea esp, [ebp - 0x448]
pop ebx
pop esi
pop edi
leave
ret
Function at 0x4013c0
Capabilities:
Encode data using xor

Disassembly:
jmp 0x412cf0
push esi
push edi
mov edi, dword [esp + 0x10]
xor esi, esi
test edi, edi
je 0x412e9a
push ebx
mov ebx, dword [esp + 0x10]
nop word [eax + eax]
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x4b
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xc1
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xc0
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x56
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xa6
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
add esp, 0x44
push eax
call fcn.004013a7
add byte [esi + ebx], 0xdf
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x8d
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xba
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x38
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe1
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0xe9
add esp, 0x40
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x5b
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
xor byte [esi + ebx], 0xa1
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x6a
push str.Protocol_of_Mind
push 0x4d04b0
call fcn.0040349a
push eax
call fcn.004013a7
add byte [esi + ebx], 0x52
add esp, 0x30
inc esi
cmp esi, edi
jb 0x412d10
pop ebx
pop edi
pop esi
ret

Function at 0x4035d5
Capabilities:
Terminate process

Disassembly:
jmp 0x451b59
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x451b6a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.004058fd
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403706
Capabilities:
Query environment variable

Disassembly:
jmp 0x49b002
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x49b013
pop esi
ret
push ebx
push edi
push esi
call fcn.0049aee9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00403fd0
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x49b03b
push ebx
push esi
push edi
call fcn.004056f0
add esp, 0xc
push 0
call fcn.0040623a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret
Function at 0x100d9440
Capabilities:
Packed with generic packer

Disassembly:
cmp byte [esp + 8], 1
jne 0x100d962d
pushal
mov esi, section.UPX1
lea edi, [esi - 0x7f000]
push edi
or ebp, 0xffffffff
jmp 0x100d946a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x100d9471
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100d9460
mov eax, 1
add ebx, ebx
jne 0x100d9483
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x100d9494
jne 0x100d94b3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100d94b3
dec eax
add ebx, ebx
jne 0x100d94a0
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x100d9478
add ebx, ebx
jne 0x100d94af
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x100d9505
xor ecx, ecx
sub eax, 3
jb 0x100d94cb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x100d953a
sar eax, 1
mov ebp, eax
jmp 0x100d94d6
add ebx, ebx
jne 0x100d94d6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100d94a4
inc ecx
add ebx, ebx
jne 0x100d94e4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x100d94a4
add ebx, ebx
jne 0x100d94f1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x100d94e6
jne 0x100d9502
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x100d94e6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x100d9524
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x100d9516
jmp 0x100d9466
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x100d9524
add edi, ecx
jmp 0x100d9466
pop esi
mov edi, esi
mov ecx, 0x2361
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x100d9542
cmp byte [edi], 0x12
jne 0x100d9542
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 0x100d9547
lea edi, [esi + 0xd5000]
mov eax, dword [edi]
or eax, eax
je 0x100d95bf
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0xd9424]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0xd94c4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x100d9574
mov ecx, edi
jns 0x100d95a3
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 + 0xd94c8]
or eax, eax
je 0x100d95b9
mov dword [ebx], eax
add ebx, 4
jmp 0x100d9591
popal
xor eax, eax
ret 0xc
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x100d95f0
cmp al, 0xef
ja 0x100d95e3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x100d95c5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x100d95d2
mov ebp, dword [esi + 0xd94cc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x24f]
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 0x100d9624
sub esp, 0xffffff80
jmp 0x1003241a