joyce8/EMBER2024-capa huggingface dataset:
Function at 0xb7d1b0
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.00b7d140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.00b7d140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.00b7d140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.00b7d140
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 0xb7dbfa
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 0xb7dc50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0xb8f87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0xb7dc43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0xb7dc52
xor eax, eax
pop esi
leave
ret 4

Function at 0x1000274e
Capabilities:
Allocate or change rwx memory

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x80c], 0
jne 0x100027a4
inc dword [0x10004040]
mov eax, dword [0x10004040]
or dword [esi + 0x810], 2
push 0x40
push 0x1000
push 0xa
push 0
mov dword [esi + 0x1498], eax
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi + 0x80c], eax
mov byte [eax], 0xb8
inc eax
mov ecx, 0x100013e7
mov dword [eax], esi
add eax, 4
mov byte [eax], 0xe9
inc eax
sub ecx, eax
sub ecx, 4
mov dword [eax], ecx
mov eax, dword [esi + 0x80c]
pop esi
ret
Function at 0x13141d20
Capabilities:
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80c
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebp - 0x808], ecx
xor edi, edi
mov dword [ebp - 0x80c], edx
xor ebx, ebx
lea ecx, [esi + 1]
nop dword [eax]
mov al, byte [esi]
inc esi
test al, al
jne 0x13141d50
sub esi, ecx
mov edi, 2
xor ebx, ebx
lea eax, [edi - 2]
mov ecx, dword [ebp + 8]
cdq
lea ebx, [ebx + 0x10]
idiv esi
mov dword [ebp + ebx - 0x40c], edi
movsx eax, byte [edx + ecx]
lea ecx, [edi - 2]
mov dword [ebp + ebx - 0x814], eax
lea eax, [edi - 1]
cdq
idiv esi
mov dword [ebp + ebx - 0x414], ecx
mov ecx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
lea ecx, [edi - 1]
mov dword [ebp + ebx - 0x810], eax
mov eax, edi
cdq
idiv esi
mov dword [ebp + ebx - 0x410], ecx
mov ecx, dword [ebp + 8]
movsx eax, byte [edx + ecx]
mov dword [ebp + ebx - 0x80c], eax
lea eax, [edi + 1]
cdq
idiv esi
movsx eax, byte [edx + ecx]
lea ecx, [edi + 1]
add edi, 4
mov dword [ebp + ebx - 0x808], eax
mov dword [ebp + ebx - 0x408], ecx
lea eax, [edi - 2]
cmp eax, 0x100
jl 0x13141d60
xor esi, esi
xor eax, eax
xor edi, edi
xor ebx, ebx
nop dword [eax]
mov ecx, dword [ebp + eax - 0x804]
mov edx, dword [ebp + eax - 0x404]
add ecx, edx
add esi, ecx
and esi, 0x800000ff
jns 0x13141e12
dec esi
or esi, 0xffffff00
inc esi
mov ecx, dword [ebp + esi*4 - 0x404]
mov dword [ebp + eax - 0x404], ecx
add eax, 4
mov dword [ebp + esi*4 - 0x404], edx
cmp eax, 0x400
jl 0x13141df0
mov esi, dword [ebp - 0x80c]
push esi
call fcn.131a89ce
add esp, 4
mov dword [ebp - 0x80c], eax
test esi, esi
jle 0x13141eca
sub dword [ebp - 0x808], eax
mov edx, eax
inc edi
and edi, 0x800000ff
jns 0x13141e67
dec edi
or edi, 0xffffff00
inc edi
mov ecx, dword [ebp + edi*4 - 0x404]
add ebx, ecx
and ebx, 0x800000ff
jns 0x13141e80
dec ebx
or ebx, 0xffffff00
inc ebx
mov eax, dword [ebp + ebx*4 - 0x404]
mov dword [ebp + edi*4 - 0x404], eax
mov dword [ebp + ebx*4 - 0x404], ecx
mov eax, dword [ebp + edi*4 - 0x404]
add eax, ecx
and eax, 0x800000ff
jns 0x13141eac
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp - 0x808]
mov al, byte [ebp + eax*4 - 0x404]
xor al, byte [ecx + edx]
mov byte [edx], al
inc edx
sub esi, 1
jne 0x13141e56
mov eax, dword [ebp - 0x80c]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.13198da3
mov esp, ebp
pop ebp
ret
Function at 0x13144320
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x131c3320
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x131e90f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esi], vtable.CryptoPP::FilterWithBufferedInput.0
mov dword [esi + 4], vtable.CryptoPP::FilterWithBufferedInput.1.0
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.131724b0
add esp, 4
mov dword [ebp - 4], 1
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x1314438f
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x131443a0
push 0x48
push esi
call fcn.1319928a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x13144a70
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x131c3340
mov eax, dword fs:[0]
push eax
push esi
push edi
mov eax, dword [0x131e90f0]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [ebp - 4], 0
mov eax, dword [esi + 0x2c]
cmp eax, dword [esi + 0x30]
mov edx, dword [esi + 0x34]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x30]
rep stosb byte es:[edi], al
call fcn.131724b0
mov dword [ebp - 4], 1
mov eax, dword [esi + 0x1c]
cmp eax, dword [esi + 0x20]
mov edx, dword [esi + 0x24]
mov edi, edx
sbb ecx, ecx
xor al, al
and ecx, 0xfffffffc
push edx
mov ecx, dword [ecx + esi + 0x20]
rep stosb byte es:[edi], al
call fcn.131724b0
add esp, 8
mov dword [ebp - 4], 2
mov ecx, dword [esi + 0xc]
test ecx, ecx
je 0x13144af7
mov eax, dword [ecx]
push 1
call dword [eax]
test byte [ebp + 8], 1
je 0x13144b08
push 0x40
push esi
call fcn.1319928a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x13145790
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x131c3658
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ecx, edx
mov dword [ebp - 4], 0
call fcn.13145470
mov edx, eax
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x131457e7
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.13161f40
mov byte [ebp - 4], 1
mov edx, dword [ebp - 0x18]
mov eax, edx
mov ecx, dword [ebp - 0x1c]
sub eax, ecx
push 3
push 0x131da6b0
cmp eax, 3
jb 0x13145835
cmp edx, 0x10
lea esi, [ebp - 0x2c]
lea eax, [ecx + 3]
cmovae esi, dword [ebp - 0x2c]
add esi, ecx
mov dword [ebp - 0x1c], eax
push esi
call fcn.1319af10
add esp, 0xc
mov byte [esi + 3], 0
jmp 0x13145846
mov byte [ebp - 0x30], 0
lea ecx, [ebp - 0x2c]
push dword [ebp - 0x30]
push 3
call fcn.131642b0
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
mov byte [eax], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x131458a3
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x13145899
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x131458c5
push edx
push ecx
call fcn.1319928a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
call fcn.131a753d
int3
Function at 0x131458d0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x131c3680
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov dword [ebp - 0x10], esp
mov edi, ecx
mov ecx, edx
mov dword [ebp - 4], 0
call fcn.13145470
mov edx, eax
mov dword [ebp - 0x1c], 0
mov ecx, edx
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x13145927
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x2c]
call fcn.13161f40
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
push 0
push dword [ebp - 0x1c]
cmovae eax, dword [ebp - 0x2c]
push eax
push edi
call dword [sym.imp.WS2_32.dll_send]
cmp dword [ebp - 0x18], 0x10
lea eax, [ebp - 0x2c]
mov dword [ebp - 0x1c], 0
cmovae eax, dword [ebp - 0x2c]
mov byte [eax], 0
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x13145997
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1314598d
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x131459b9
push edx
push ecx
call fcn.1319928a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
call fcn.131a753d
int3
Function at 0x13145bd0
Capabilities:
Send data
Send data on socket

Disassembly:
push ebx
mov ebx, esp
sub esp, 8
and esp, 0xfffffff8
add esp, 4
push ebp
mov ebp, dword [ebx + 4]
mov dword [esp + 4], ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x131c3700
mov eax, dword fs:[0]
push eax
push ebx
sub esp, 0x50
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [0x13c2628c]
mov ecx, edx
mov dword [ebp - 0x60], eax
call fcn.13145470
mov edx, eax
mov dword [ebp - 0x34], 0
mov ecx, edx
mov dword [ebp - 0x30], 0xf
mov byte [ebp - 0x44], 0
lea esi, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x13145c36
sub ecx, esi
push ecx
push edx
lea ecx, [ebp - 0x44]
call fcn.13161f40
mov dword [ebp - 4], 0
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov byte [ebp - 4], 1
mov esi, dword [sym.imp.WS2_32.dll_send]
mov edi, dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [ebp - 0x34]
nop word [eax + eax]
mov ecx, 0x400
mov dword [ebp - 0x4c], 0
cmp eax, ecx
mov dword [ebp - 0x48], 0xf
mov byte [ebp - 0x5c], 0
cmovb ecx, eax
cmp dword [ebp - 0x30], 0x10
lea eax, [ebp - 0x44]
cmovae eax, dword [ebp - 0x44]
push ecx
push eax
lea ecx, [ebp - 0x5c]
call fcn.13161f40
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x13145ce5
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x13145cdb
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x13145ded
push edx
push ecx
call fcn.1319928a
add esp, 8
mov eax, dword [ebp - 0x34]
lea ecx, [ebp - 0x44]
movups xmm0, xmmword [ebp - 0x5c]
mov edx, 0x400
cmp eax, edx
movups xmmword [ebp - 0x2c], xmm0
cmovb edx, eax
cmp dword [ebp - 0x30], 0x10
movq xmm0, qword [ebp - 0x4c]
cmovae ecx, dword [ebp - 0x44]
sub eax, edx
mov dword [ebp - 0x34], eax
inc eax
push eax
movq qword [ebp - 0x1c], xmm0
lea eax, [ecx + edx]
push eax
push ecx
call fcn.1319af10
add esp, 0xc
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 0x10
cmovae eax, dword [ebp - 0x2c]
push 0
push dword [ebp - 0x1c]
push eax
push dword [ebp - 0x60]
call esi
push 1
call edi
mov eax, dword [ebp - 0x34]
test eax, eax
jne 0x13145c80
push 0x3e8
call edi
push 0
push 5
push str._0022
push dword [ebp - 0x60]
call esi
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x13145d8d
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x13145d83
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x13145ded
push edx
push ecx
call fcn.1319928a
add esp, 8
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
cmp edx, 0x10
jb 0x13145dcf
mov ecx, dword [ebp - 0x44]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x13145dc5
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x13145df2
push edx
push ecx
call fcn.1319928a
add esp, 8
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
mov esp, ebx
pop ebx
ret
call fcn.131a753d
call fcn.131a753d
int3
Function at 0x13145e00
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x131c375c
mov eax, dword fs:[0]
push eax
sub esp, 0x26c
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x274]
push eax
push 0x20019
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov dword [ebp - 0x260], 0
mov dword [ebp - 0x25c], 0xf
mov byte [ebp - 0x270], 0
mov dword [ebp - 4], 0
mov dword [ebp - 0x248], 0
mov dword [ebp - 0x244], 0xf
mov byte [ebp - 0x258], 0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x240]
push 3
push 0x131da6fc
mov dword [ebp - 0x230], 0
mov dword [ebp - 0x22c], 0xf
mov byte [ebp - 0x240], 0
call fcn.13161f40
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x228]
push 7
push str.AppData
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0xf
mov byte [ebp - 0x228], 0
call fcn.13161f40
mov byte [ebp - 4], 3
lea eax, [ebp - 0x240]
cmp dword [ebp - 0x22c], 0x10
lea ecx, [ebp - 0x258]
push dword [ebp - 0x230]
cmovae eax, dword [ebp - 0x240]
mov esi, dword [ebp - 0x274]
push eax
call fcn.13161f40
cmp dword [ebp - 0x214], 0x10
lea ecx, [ebp - 0x278]
push ecx
lea ecx, [ebp - 0x210]
mov dword [ebp - 0x278], 0x200
push ecx
push 0
lea eax, [ebp - 0x228]
cmovae eax, dword [ebp - 0x228]
push 0
push eax
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x13145f7c
lea ecx, [ebp - 0x210]
lea edx, [ecx + 1]
nop
mov al, byte [ecx]
inc ecx
test al, al
jne 0x13145f60
sub ecx, edx
lea eax, [ebp - 0x210]
push ecx
push eax
lea ecx, [ebp - 0x258]
call fcn.13161f40
mov edx, dword [ebp - 0x214]
cmp edx, 0x10
jb 0x13145fb6
mov ecx, dword [ebp - 0x228]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x13145fac
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x1314607c
push edx
push ecx
call fcn.1319928a
add esp, 8
mov edx, dword [ebp - 0x22c]
mov dword [ebp - 0x218], 0
mov dword [ebp - 0x214], 0xf
mov byte [ebp - 0x228], 0
cmp edx, 0x10
jb 0x1314600b
mov ecx, dword [ebp - 0x240]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x13146001
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x13146081
push edx
push ecx
call fcn.1319928a
add esp, 8
cmp dword [ebp - 0x244], 0x10
lea eax, [ebp - 0x258]
cmovae eax, dword [ebp - 0x258]
push eax
call fcn.131a44d5
mov edx, dword [ebp - 0x244]
add esp, 4
mov esi, eax
cmp edx, 0x10
jb 0x13146060
mov ecx, dword [ebp - 0x258]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x13146056
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
ja 0x13146086
push edx
push ecx
call fcn.1319928a
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret
call fcn.131a753d
call fcn.131a753d
call fcn.131a753d
int3
Function at 0x13146090
Capabilities:
Persist via run registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 4], eax
push 0
lea eax, [ebp - 0x408]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionExplorerShell_Folders
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea eax, [ebp - 0x40c]
push eax
lea eax, [ebp - 0x404]
push eax
push 0
push 0
push str.AppData
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push dword [ebp - 0x408]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x404]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret

Function at 0x13146150
Capabilities:
Query or enumerate registry value
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40c
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x40c]
mov dword [ebp - 0x408], 0x200
push eax
push 0x13bfd748
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x1314618f
mov ecx, 0x131da42a
jmp 0x131461c2
lea eax, [ebp - 0x408]
push eax
lea eax, [ebp - 0x204]
push eax
push 0
push 0
push 0x131da708
push dword [ebp - 0x40c]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea ecx, [ebp - 0x204]
mov edx, 0x131da42a
cmovne ecx, edx
lea edx, [ebp - 0x404]
sub edx, ecx
nop word [eax + eax]
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x131461d0
lea eax, [ebp - 0x404]
push eax
call fcn.131a85ab
add esp, 4
push eax
push 0
push 0x1f0fff
call dword [sym.imp.KERNEL32.dll_OpenProcess]
push 0
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret

Function at 0x13146220
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push 0
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push edx
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [ebp + 0xc]
mov eax, edx
lea esi, [eax + 1]
nop dword [eax]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x13146250
sub eax, esi
inc eax
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x13146280
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
lea eax, [ebp - 4]
push eax
push 0xf003f
push 0
push edx
push ecx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x131462a7
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esp, ebp
pop ebp
ret
Function at 0x131462c0
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
lea eax, [ebp - 8]
push esi
push eax
lea eax, [ebp - 4]
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x13bfd748
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
mov edx, dword [ebp + 0xc]
mov eax, edx
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x131462f4
sub eax, esi
inc eax
push eax
push edx
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x13146be0
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov eax, dword [0x131e90f0]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x220]
mov dword [ebp - 8], 0
push eax
push 0x13bfd748
xorps xmm0, xmm0
mov dword [ebp - 0x21c], 0x200
push closesocket
movups xmmword [ebp - 0x18], xmm0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
je 0x13146c2d
mov ecx, 0x131da42a
jmp 0x13146c60
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x218]
push eax
push 0
push 0
push 0x131da7ac
push dword [ebp - 0x220]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
lea ecx, [ebp - 0x218]
mov edx, 0x131da42a
cmovne ecx, edx
lea edx, [ebp - 0x18]
sub edx, ecx
mov al, byte [ecx]
lea ecx, [ecx + 1]
mov byte [edx + ecx - 1], al
test al, al
jne 0x13146c65
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x13146c78
sub ecx, edx
cmp ecx, 3
jae 0x13146d16
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push eax
call fcn.131a41a9
call fcn.131a4188
cdq
mov ecx, 0xf4240
idiv ecx
lea eax, [ebp - 0x18]
add edx, 0x64
push edx
push str._d.dce
push eax
call fcn.13141a40
add esp, 0x10
lea eax, [ebp - 0x21c]
push 0
push eax
push 0
push 0xf003f
push 0
push 0
push 0
push 0x13bfd748
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
lea ecx, [ebp - 0x18]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x13146ce4
sub ecx, edx
lea eax, [ecx + 1]
push eax
lea eax, [ebp - 0x18]
push eax
push 1
push 0
push 0x131da7ac
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x21c]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x18]
xor ecx, ebp
call fcn.13198da3
mov esp, ebp
pop ebp
ret

Function at 0x13146e50
Capabilities:
Get file size

Disassembly:
push edi
push 0
push 0
push 3
push 0
push 3
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x13146e83
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push edi
mov esi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
pop edi
ret
push 0xffffffffffffffff
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
pop edi
ret
Function at 0x1314a3d0
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push edi
push 0
push 0x80
push 3
push 0
push 1
push closesocket
push 0x13c25220
mov dword [ebp - 4], edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
jne 0x1314a40a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov esp, ebp
pop ebp
ret
push ebx
push esi
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
mov dword [ebp - 8], esi
call fcn.13199298
add esp, 4
mov ebx, eax
lea eax, [ebp - 0xc]
push 0
push eax
push esi
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call edi
push 0
push 0x80
push 2
push 0
push 0
push 0x40000000
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
push 0
mov esi, eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call edi
pop esi
pop ebx
pop edi
mov esp, ebp
pop ebp
ret

Function at 0x1314adf0
Capabilities:
Encode data using xor

Disassembly:
test ecx, ecx
je 0x1314ae7c
mov edx, ecx
push esi
lea esi, [edx + 1]
nop
mov al, byte [edx]
inc edx
test al, al
jne 0x1314ae00
sub edx, esi
xor esi, esi
test edx, edx
jle 0x1314ae7b
cmp edx, 0x40
jb 0x1314ae69
mov eax, edx
push edi
and eax, 0x8000003f
jns 0x1314ae23
dec eax
or eax, 0xffffffc0
inc eax
movaps xmm1, xmmword [0x131dea30]
mov edi, edx
sub edi, eax
nop
movups xmm0, xmmword [ecx]
add esi, 0x40
pxor xmm0, xmm1
movups xmmword [ecx], xmm0
movups xmm0, xmmword [ecx + 0x10]
pxor xmm0, xmm1
movups xmmword [ecx + 0x10], xmm0
movups xmm0, xmmword [ecx + 0x20]
pxor xmm0, xmm1
movups xmmword [ecx + 0x20], xmm0
movups xmm0, xmmword [ecx + 0x30]
pxor xmm0, xmm1
movups xmmword [ecx + 0x30], xmm0
add ecx, 0x40
cmp esi, edi
jl 0x1314ae30
pop edi
cmp esi, edx
jge 0x1314ae7b
sub edx, esi
nop
xor byte [ecx], 0xe9
lea ecx, [ecx + 1]
sub edx, 1
jne 0x1314ae70
pop esi
ret