joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001c492
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x1001c4bc
mov eax, 0x1004e62c
push eax
push eax
push 0
push 0
call fcn.1001a923
add esp, 0x10
xor eax, eax
pop ebp
ret
xor eax, eax
inc eax
pop ebp
ret

Function at 0x1001d1fe
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
pop ebp
ret

Function at 0x1001d73f
Capabilities:
Hash data using sha256

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
and dword [eax + 0x20], 0
and dword [eax + 0x24], 0
mov dword [eax], 0x6a09e667
mov dword [eax + 4], 0xbb67ae85
mov dword [eax + 8], 0x3c6ef372
mov dword [eax + 0xc], 0xa54ff53a
mov dword [eax + 0x10], 0x510e527f
mov dword [eax + 0x14], 0x9b05688c
mov dword [eax + 0x18], 0x1f83d9ab
mov dword [eax + 0x1c], 0x5be0cd19
pop ebp
ret

Function at 0x1001d9fe
Capabilities:
Check mutex on windows

Disassembly:
push 0xa4
mov eax, 0x1004302b
call fcn.1001fd9c
mov esi, ecx
mov dword [ebp - 0xa0], esi
xor ebx, ebx
mov dword [esi], ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
push eax
push str.1830B7BD_F7A3_4c4d_989B_C004DE465EDE
push str._s__u
push 0x41
lea eax, [ebp - 0x98]
push eax
call fcn.1001e1ea
add esp, 0x14
xor eax, eax
mov word [ebp - 0x18], ax
lea eax, [ebp - 0x98]
push eax
push 1
push ebx
call dword [sym.imp.KERNEL32.dll_CreateMutexW]
mov edi, eax
mov dword [ebp - 0x9c], edi
test edi, edi
je 0x1001db4a
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
jne 0x1001da77
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov dword [ebp - 4], ebx
call fcn.1001e03d
test eax, eax
je 0x1001daac
mov dword [esi], eax
mov eax, dword [esi]
inc dword [eax + 0x5bc]
or dword [ebp - 4], 0xffffffff
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
test ebx, ebx
jne 0x1001db4a
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1001db4a
push 0x5c0
call fcn.1001dd09
pop ecx
mov dword [ebp - 0xac], eax
mov byte [ebp - 4], 1
test eax, eax
je 0x1001dacf
push edi
mov ecx, eax
call fcn.1001db8b
jmp 0x1001dad1
mov eax, ebx
mov byte [ebp - 4], bl
mov dword [esi], eax
test eax, eax
je 0x1001db52
xor ebx, ebx
inc ebx
mov dword [ebp - 0xb0], ebx
push eax
call fcn.1001e189
pop ecx
test eax, eax
jne 0x1001da85
mov dword [ebp - 0xa8], 3
push 0x10052bb4
lea eax, [ebp - 0xa8]
jmp 0x1001db67
mov eax, esi
call fcn.1001fce9
ret
mov dword [ebp - 0xa4], 1
push 0x10052bb4
lea eax, [ebp - 0xa4]
push eax
call fcn.100233d9
int3
Function at 0x1001db8b
Capabilities:
Allocate thread local storage

Disassembly:
push 4
mov eax, 0x1004305e
call fcn.1001fcfa
mov esi, ecx
mov dword [ebp - 0x10], esi
and dword [esi], 0
lea ecx, [esi + 8]
or dword [esi + 4], 0xffffffff
call fcn.1001d9cf
and dword [ebp - 4], 0
and dword [esi + 0x5bc], 0
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov dword [esi + 4], eax
cmp eax, 0xffffffff
je 0x1001dbd7
mov eax, dword [ebp + 8]
mov dword [esi], eax
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.1001fcc3
ret 4
push 0x10052bb4
lea eax, [ebp + 8]
mov dword [ebp + 8], 2
push eax
call fcn.100233d9
int3

Function at 0x1001dda3
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov ebx, ecx
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, dword [ebx]
add ecx, 8
mov dword [ebp - 4], eax
mov eax, dword [ecx + 0x5a8]
mov dword [ecx + 0x5b0], eax
call fcn.1001df46
mov edi, eax
test edi, edi
je 0x1001de2e
mov eax, dword [ebp - 4]
cmp eax, dword [edi]
jne 0x1001ddde
mov esi, edi
jmp 0x1001de1a
push dword [edi]
push 1
push 0x40
call dword [sym.imp.KERNEL32.dll_OpenThread]
test eax, eax
jne 0x1001de13
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x1001de06
mov ecx, dword [ebx]
push edi
add ecx, 8
call fcn.1001dee1
jmp 0x1001de1a
push 0x10047b50
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x1001de1a
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [ebx]
add ecx, 8
call fcn.1001df46
mov edi, eax
test edi, edi
jne 0x1001ddd3
test esi, esi
jne 0x1001de43
mov ecx, dword [ebx]
add ecx, 8
call fcn.1001e0da
mov esi, eax
test esi, esi
je 0x1001de43
mov eax, dword [ebp - 4]
mov dword [esi], eax
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10020b60
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2ec
mov eax, dword [0x1005545c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x2ec], ebx
push edi
test ebx, ebx
je 0x10020d64
mov edi, dword [ebp + 0xc]
test edi, edi
je 0x10020d64
push esi
push 0x64
lea eax, [ebp - 0x68]
push 0
push eax
call fcn.10023f50
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ebp - 0x2e4]
add esp, 0xc
push eax
push 8
push 0
push str.SOFTWAREMicrosoftWindows_NTCurrentVersionNetworkCards
push 0x80000002
call esi
test eax, eax
jne 0x10020d39
xor edi, edi
mov dword [ebp - 0x2d8], 0x104
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x2d8]
push eax
lea eax, [ebp - 0x1d0]
push eax
push edi
push dword [ebp - 0x2e4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x10020d28
lea eax, [ebp - 0x2e8]
push eax
push 1
push 0
lea eax, [ebp - 0x1d0]
push eax
push dword [ebp - 0x2e4]
call esi
test eax, eax
jne 0x10020cf2
lea eax, [ebp - 0x2dc]
mov dword [ebp - 0x2e0], 1
push eax
lea eax, [ebp - 0x2d4]
mov dword [ebp - 0x2dc], 0x104
push eax
lea eax, [ebp - 0x2e0]
push eax
push 0
push str.ServiceName
push dword [ebp - 0x2e8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x10020cea
push 0x64
push eax
lea eax, [ebp - 0xcc]
push eax
call fcn.10023f50
push 0x64
lea eax, [ebp - 0xcc]
push eax
lea eax, [ebp - 0x2d4]
push eax
call fcn.10020d80
add esp, 0x18
test eax, eax
je 0x10020cea
cmp byte [ebp - 0x68], 0
je 0x10020cac
lea eax, [ebp - 0x68]
push eax
lea eax, [ebp - 0xcc]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
jns 0x10020cea
lea ecx, [ebp - 0x68]
mov edx, 0x64
lea esi, [ebp - 0xcc]
mov eax, ecx
sub esi, eax
nop
lea eax, [edx + 0x7fffff9a]
test eax, eax
je 0x10020cd9
mov al, byte [esi + ecx]
test al, al
je 0x10020cd9
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x10020cc0
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov byte [eax], 0
push dword [ebp - 0x2e8]
call ebx
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x2d8]
mov dword [ebp - 0x2d8], 0x104
push eax
lea eax, [ebp - 0x1d0]
inc edi
push eax
push edi
push dword [ebp - 0x2e4]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
test eax, eax
je 0x10020c00
push dword [ebp - 0x2e4]
call ebx
mov ebx, dword [ebp - 0x2ec]
mov edi, dword [ebp + 0xc]
cmp byte [ebp - 0x68], 0
pop esi
je 0x10020d64
lea eax, [ebp - 0x68]
push eax
push edi
push ebx
call fcn.10001330
xor ecx, ecx
test eax, eax
pop edi
setns cl
mov eax, ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f332
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
xor ecx, ebp
pop ebx
call fcn.1001f332
mov esp, ebp
pop ebp
ret
Function at 0x10021000
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x1005545c]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [0x10058270]
mov byte [ebp - 0x20d], 0x40
push ebx
mov ebx, dword [ebp + 8]
test ecx, ecx
jne 0x100210ed
push 0x208
push ecx
lea eax, [ebp - 0x20c]
push eax
call fcn.10023f50
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
dec eax
cmp eax, 0xf5
ja 0x100210ce
push esi
push edi
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
lea edi, [edi + 2]
test ax, ax
jne 0x10021066
mov eax, dword [0x1004f2a4]
mov dword [edi], eax
lea edi, [ebp - 0x20c]
add edi, 0xfffffffe
mov ax, word [edi + 2]
add edi, 2
test ax, ax
jne 0x10021082
mov ecx, 6
lea eax, [ebp - 0x20c]
mov esi, str.Netapi32.dll
rep movsd dword es:[edi], dword [esi]
push eax
movsw word es:[edi], word [esi]
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
pop edi
pop esi
test eax, eax
je 0x100210ce
push str.Netbios
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov ecx, dword [0x10058270]
test eax, eax
cmovne ecx, eax
mov dword [0x10058270], ecx
jmp 0x100210d4
mov ecx, dword [0x10058270]
test ecx, ecx
jne 0x100210ed
mov al, byte [ebp - 0x20d]
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f332
mov esp, ebp
pop ebp
ret
push ebx
call ecx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1001f332
mov esp, ebp
pop ebp
ret
Function at 0x10021800
Capabilities:
Get storage device properties

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2c10
call fcn.100201c0
mov eax, dword [0x1005545c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c10], eax
test eax, eax
je 0x10021962
cmp dword [ebp + 0xc], 0
je 0x10021962
push ebx
push esi
xor ebx, ebx
xor esi, esi
push edi
nop dword [eax]
push esi
push str..PhysicalDrive_d
lea eax, [ebp - 0x104]
push 0x100
push eax
call fcn.10021b60
add esp, 0x10
lea eax, [ebp - 0x104]
push 0
push 0
push 3
push 0
push 3
push 0
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov edi, eax
cmp edi, 0xffffffff
je 0x10021945
push 0x2710
lea eax, [ebp - 0x2bfc]
mov dword [ebp - 0x2c00], 0
push 0
push eax
mov dword [ebp - 0x2c04], 0
mov dword [ebp - 0x2c0c], 0
mov dword [ebp - 0x2c08], 0
call fcn.10023f50
add esp, 0xc
lea eax, [ebp - 0x2c00]
push 0
push eax
push 0x2710
lea eax, [ebp - 0x2bfc]
push eax
push 0xc
lea eax, [ebp - 0x2c0c]
push eax
push 0x2d1400
push edi
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x1002193a
push 0x3e8
lea eax, [ebp - 0x4ec]
push 0
push eax
call fcn.10023f50
lea eax, [ebp - 0x4ec]
push eax
push 1
push dword [ebp - 0x2be4]
lea eax, [ebp - 0x2bfc]
push eax
call fcn.100228b0
add esp, 0x1c
lea eax, [ebp - 0x4ec]
push eax
push dword [ebp + 0xc]
push dword [ebp - 0x2c10]
call fcn.10001330
test eax, eax
mov eax, 1
cmove ebx, eax
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jne 0x1002194f
inc esi
cmp esi, 0x10
jl 0x10021840
pop edi
pop esi
mov eax, ebx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1001f332
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.1001f332
mov esp, ebp
pop ebp
ret
Function at 0x10021980
Capabilities:
Query or enumerate registry value
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x290
mov eax, dword [0x1005545c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x84]
push edi
push 0x80
push 0
push eax
call fcn.10023f50
push 0x80
lea eax, [ebp - 0x84]
push eax
push esi
call fcn.10020ea0
lea ecx, [ebp - 0x188]
mov edi, esi
mov eax, ecx
add esp, 0x18
mov edx, 0x104
sub edi, eax
lea eax, [edx + 0x7ffffefa]
test eax, eax
je 0x100219ea
mov al, byte [edi + ecx]
test al, al
je 0x100219ea
mov byte [ecx], al
inc ecx
sub edx, 1
jne 0x100219d1
lea eax, [ecx - 1]
test edx, edx
cmovne eax, ecx
mov ecx, 0x104
mov byte [eax], 0
lea eax, [ebp - 0x188]
cmp byte [eax], 0
je 0x10021a0b
inc eax
sub ecx, 1
jne 0x10021a00
mov edx, 0x104
mov edi, ecx
mov eax, edx
sub eax, ecx
neg edi
sbb edi, edi
and edi, eax
test ecx, ecx
je 0x10021a60
lea ecx, [ebp - 0x188]
lea ecx, [ecx + edi]
sub edx, edi
je 0x10021a55
lea edi, [ebp - 0x84]
mov eax, 0x7fffffff
sub edi, ecx
push ebx
nop dword [eax + eax]
test eax, eax
je 0x10021a54
mov bl, byte [edi + ecx]
test bl, bl
je 0x10021a54
mov byte [ecx], bl
dec eax
inc ecx
sub edx, 1
jne 0x10021a40
pop ebx
test edx, edx
lea eax, [ecx - 1]
cmovne eax, ecx
mov byte [eax], 0
push 0x100
lea eax, [ebp - 0x288]
mov dword [ebp - 0x290], 1
push 0
push eax
call fcn.10023f50
add esp, 0xc
mov dword [ebp - 0x28c], 0x100
lea eax, [ebp - 0x28c]
push eax
lea eax, [ebp - 0x288]
push eax
lea eax, [ebp - 0x290]
push eax
push 0x10047cd8
push str.Software360SafeLiveup
push 0x80000002
call dword [sym.imp.SHLWAPI.dll_SHGetValueA]
mov edi, dword [sym.imp.SHLWAPI.dll_SHSetValueA]
test eax, eax
jne 0x10021b1a
lea eax, [ebp - 0x288]
mov cl, byte [eax]
cmp cl, byte [esi]
jne 0x10021ae4
test cl, cl
je 0x10021ae0
mov cl, byte [eax + 1]
cmp cl, byte [esi + 1]
jne 0x10021ae4
add eax, 2
add esi, 2
test cl, cl
jne 0x10021ac4
xor eax, eax
jmp 0x10021ae9
sbb eax, eax
or eax, 1
test eax, eax
je 0x10021b1a
lea ecx, [ebp - 0x288]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021af6
sub ecx, edx
lea eax, [ebp - 0x288]
push ecx
push eax
push 1
push str.mid_old
push str.Software360SafeLiveup
push 0x80000002
call edi
lea ecx, [ebp - 0x188]
lea edx, [ecx + 1]
mov al, byte [ecx]
inc ecx
test al, al
jne 0x10021b23
sub ecx, edx
lea eax, [ebp - 0x188]
push ecx
push eax
push 1
push 0x10047cd8
push str.Software360SafeLiveup
push 0x80000002
call edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1001f332
mov esp, ebp
pop ebp
ret
Function at 0x86c350
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov esi, dword [ebp + 0xc]
mov ebx, 4
lea eax, [edi + ecx]
sub esi, ecx
lea edx, [ebp + edx - 0x14]
add edi, ebx
mov cl, byte [esi + eax]
mov byte [edx], cl
mov byte [eax], cl
add edx, 4
inc eax
dec ebx
jne 0x86c377
mov eax, dword [ebp - 4]
inc eax
cmp eax, 4
mov dword [ebp - 4], eax
jl 0x86c35e
cmp edi, 0xb0
jge 0x86c437
mov esi, 0x7fad78
jmp 0x86c3a7
mov esi, dword [ebp + 0xc]
xor eax, eax
lea ecx, [ebp - 0x14]
inc eax
mov edx, eax
and edx, 0x80000003
jns 0x86c3bc
dec edx
or edx, 0xfffffffc
inc edx
xor ebx, ebx
add ecx, 4
mov bl, byte [ebp + edx*4 - 0x11]
mov dl, byte [ebx + 0x7fab78]
mov bl, byte [ecx - 4]
xor bl, dl
cmp eax, 4
mov byte [ecx - 4], bl
jl 0x86c3ac
mov al, byte [esi]
mov cl, byte [ebp - 0x14]
xor cl, al
add esi, 4
mov dword [ebp + 0xc], esi
mov byte [ebp - 0x14], cl
mov esi, 1
lea eax, [ebp + esi - 0x14]
mov ecx, 4
mov dl, byte [eax - 1]
mov bl, byte [eax]
xor bl, dl
mov byte [eax], bl
add eax, 4
dec ecx
jne 0x86c3f6
inc esi
cmp esi, 4
jl 0x86c3ed
xor esi, esi
lea eax, [ebp + esi - 0x14]
mov ecx, 4
mov ebx, dword [ebp + 8]
mov dl, byte [eax]
add eax, 4
mov byte [edi + ebx], dl
inc edi
dec ecx
jne 0x86c416
inc esi
cmp esi, 4
jl 0x86c40d
cmp edi, 0xb0
jl 0x86c3a4
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x86c8e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x10]
push esi
cmp ebx, 0x10
push edi
jae 0x86c942
mov al, bl
lea edx, [ebp - 0x10]
mov cl, al
push edx
mov ch, cl
mov eax, ecx
shl eax, 0x10
mov ax, cx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push eax
call fcn.0086c440
add esp, 8
test ebx, ebx
jbe 0x86c995
mov edx, dword [ebp + 0xc]
lea ecx, [ebp - 0x10]
sub ecx, edx
mov esi, ebx
lea eax, [edx + ebx]
mov dl, byte [ecx + eax - 1]
mov bl, byte [eax - 1]
dec eax
xor bl, dl
dec esi
mov byte [eax], bl
jne 0x86c92c
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebx - 4]
xor edx, edx
mov ecx, 0xc
mov edi, dword [ebp + 8]
div ecx
mov esi, edx
test esi, esi
jle 0x86c96a
mov edx, dword [ebp + 0xc]
lea eax, [edx + ebx - 0x10]
push eax
push edi
call fcn.0086c650
add esp, 8
sub ebx, esi
cmp ebx, 0x10
jb 0x86c995
mov ecx, dword [ebp + 0xc]
mov eax, 0xaaaaaaab
lea esi, [ecx + ebx - 0x10]
add ebx, 0xfffffffc
mul ebx
mov ebx, edx
shr ebx, 3
push esi
push edi
call fcn.0086c650
add esp, 8
sub esi, 0xc
dec ebx
jne 0x86c985
pop edi
pop esi

Function at 0x86c9c0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
lea eax, [0x86ca02]
lea ecx, [0x86ca0a]
sub ecx, eax
mov dword [ebp - 4], ecx
lea eax, [ebp - 8]
push eax
push 0x40
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
je 0x86ca26
mov edi, dword [ebp + 8]
lea esi, [0x86ca02]
mov ecx, dword [ebp - 4]
rep movsb byte es:[edi], byte [esi]
jmp 0x86ca21
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x86ca30
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov cl, 0x65
mov al, 0x6d
mov byte [ebp - 0xa], cl
mov byte [ebp - 9], al
mov byte [ebp - 8], al
mov byte [ebp - 6], cl
mov byte [ebp - 5], al
mov byte [ebp - 4], al
mov cl, 0x6a
mov al, 0x66
push esi
mov dl, 0x75
push edi
mov byte [ebp - 0x1c], cl
mov byte [ebp - 0x1a], al
mov byte [ebp - 0x16], al
mov byte [ebp - 0x13], al
mov byte [ebp - 0x10], cl
mov byte [ebp - 0xb], dl
mov byte [ebp - 0x17], dl
lea edi, [ebp - 0xc]
or ecx, 0xffffffff
xor eax, eax
mov byte [ebp - 0xc], 0x6f
mov byte [ebp - 7], 0x2f
mov byte [ebp - 3], 0
xor edx, edx
mov byte [ebp - 0x20], 0x45
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [ebp - 0x1f], 0x63
mov byte [ebp - 0x1e], 0x68
mov byte [ebp - 0x1d], 0x56
mov byte [ebp - 0x1b], 0x53
mov byte [ebp - 0x19], 0x6e
mov byte [ebp - 0x18], 0x70
mov byte [ebp - 0x15], 0x43
mov byte [ebp - 0x14], 0x73
mov byte [ebp - 0x12], 0x62
mov byte [ebp - 0x11], 0x6c
mov byte [ebp - 0xf], 0x6f
mov byte [ebp - 0xe], 0
je 0x86cad6
mov cl, byte [ebp + edx - 0xc]
lea edi, [ebp - 0xc]
dec cl
xor eax, eax
mov byte [ebp + edx - 0xc], cl
or ecx, 0xffffffff
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x86caba
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
mov esi, eax
test esi, esi
jne 0x86caec
pop edi
pop esi
mov esp, ebp
pop ebp
ret
lea edi, [ebp - 0x20]
or ecx, 0xffffffff
xor eax, eax
xor edx, edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
je 0x86cb19
mov al, byte [ebp + edx - 0x20]
lea edi, [ebp - 0x20]
dec al
or ecx, 0xffffffff
mov byte [ebp + edx - 0x20], al
xor eax, eax
inc edx
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp edx, ecx
jb 0x86cafd
lea ecx, [ebp - 0x20]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x86cb31
push eax
call fcn.0086c9c0
add esp, 4
pop edi
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x870060
Capabilities:
Hash data using sha1

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x10
lea edi, [ebp - 0x44]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
mov dword [ebp - 0x50], 0xc3d2e1f0
mov dword [ebp - 0x4c], eax
mov dword [ebp - 0x48], eax
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov dword [ebp + 0x10], eax
mov eax, dword [ebp - 0x4c]
mov ebx, eax
add eax, ecx
and ebx, 0x3f
cmp eax, ecx
mov dword [ebp - 0x4c], eax
jae 0x8700bb
inc dword [ebp - 0x48]
add ecx, ebx
cmp ecx, 0x40
mov dword [ebp + 0x14], ecx
jb 0x870119
shr ecx, 6
mov dword [ebp - 4], ecx
mov esi, dword [ebp + 0x10]
mov ecx, 0x40
sub ecx, ebx
lea edi, [ebp + ebx - 0x44]
mov edx, ecx
lea eax, [ebp - 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0086eb70
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp - 4]
mov ecx, 0x40
add esp, 4
sub ecx, ebx
xor ebx, ebx
add edx, ecx
mov ecx, dword [ebp + 0x14]
sub ecx, 0x40
dec eax
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ecx
mov dword [ebp - 4], eax
jne 0x8700cb
mov eax, dword [ebp - 0x4c]
cmp ecx, ebx
jbe 0x870137
mov esi, dword [ebp + 0x10]
sub ecx, ebx
mov edx, ecx
lea edi, [ebp + ebx - 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov dword [ebp + 0x10], ecx
mov ecx, dword [ebp + 0xc]
add eax, ecx
and ebx, 0x3f
cmp eax, ecx
mov dword [ebp - 0x4c], eax
jae 0x870151
inc dword [ebp - 0x48]
add ecx, ebx
cmp ecx, 0x40
mov dword [ebp + 0x14], ecx
jb 0x8701ac
shr ecx, 6
mov dword [ebp + 8], ecx
mov esi, dword [ebp + 0x10]
mov ecx, 0x40
sub ecx, ebx
lea edi, [ebp + ebx - 0x44]
mov edx, ecx
lea eax, [ebp - 0x60]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
call fcn.0086eb70
mov edx, dword [ebp + 0x10]
mov eax, dword [ebp + 8]
mov ecx, 0x40
add esp, 4
sub ecx, ebx
xor ebx, ebx
add edx, ecx
mov ecx, dword [ebp + 0x14]
sub ecx, 0x40
dec eax
mov dword [ebp + 0x10], edx
mov dword [ebp + 0x14], ecx
mov dword [ebp + 8], eax
jne 0x870161
cmp ecx, ebx
jbe 0x8701c7
mov esi, dword [ebp + 0x10]
sub ecx, ebx
mov edx, ecx
lea edi, [ebp + ebx - 0x44]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [ebp + 0x18]
lea eax, [ebp - 0x60]
push eax
push esi
call fcn.0086ff70
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x14
Function at 0x8740a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor eax, eax
push ebx
mov dword [ebp - 0xf], eax
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetTickCount]
mov dword [ebp - 0xb], eax
mov dword [ebp - 7], eax
mov byte [ebp - 0xf], 0x10
mov word [ebp - 3], ax
mov byte [ebp - 0x10], 1
mov byte [ebp - 1], al
call esi
sub al, 0x10
mov byte [ebp - 4], al
call esi
shr eax, 4
sub al, 0x33
mov byte [ebp - 3], al
call esi
shr eax, 8
sub al, 0x55
mov byte [ebp - 2], al
call esi
shr eax, 0xc
add al, 0x12
mov ecx, 0xa
mov byte [ebp - 1], al
xor eax, eax
mov bl, byte [eax + 0x7faed0]
mov edx, eax
shr edx, 2
mov dl, byte [ebp + edx - 4]
xor dl, bl
mov byte [ebp + eax - 0xe], dl
inc eax
dec ecx
jne 0x8740f4
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0xc]
pop esi
mov dword [eax], ecx
mov ecx, dword [ebp - 8]
pop ebx
mov dword [eax + 4], edx
mov edx, dword [ebp - 4]
mov dword [eax + 8], ecx
mov dword [eax + 0xc], edx
mov esp, ebp
pop ebp
ret

Function at 0x874130
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
xor ecx, ecx
xor eax, eax
mov dword [ebp - 0x17], ecx
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x13], ecx
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [ebp - 0x24], eax
mov dword [ebp - 0xf], ecx
xor ebx, ebx
mov dword [ebp - 0x20], eax
mov word [ebp - 0xb], cx
cmp esi, 0xffffffff
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x1c], eax
mov byte [ebp - 0x18], bl
mov byte [ebp - 9], cl
jne 0x874173
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 0x2c]
lea eax, [ebp - 8]
push edx
push eax
lea ecx, [ebp - 0x18]
push 0x10
push ecx
push esi
mov dword [ebp - 0x24], ebx
mov dword [ebp - 0x20], ebx
call fcn.008712b0
test eax, eax
jne 0x8741a9
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3e5
je 0x8741a9
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
lea edx, [ebp - 8]
push 1
lea eax, [ebp - 0x2c]
push edx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetOverlappedResult]
cmp dword [ebp - 8], 0x10
je 0x8741cb
pop esi
mov eax, 1
pop ebx
mov esp, ebp
pop ebp
ret
mov edx, dword [ebp - 0x18]
xor eax, eax
mov dword [ebp - 4], edx
mov ecx, 0xa
mov esi, eax
shr esi, 2
mov bl, byte [ebp + esi - 0xc]
xor byte [ebp + eax - 0x16], bl
inc eax
dec ecx
jne 0x8741d8
push edi
mov ecx, 0xa
mov edi, 0x7faed0
lea esi, [ebp - 0x16]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
pop edi
je 0x874203
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x87420f
mov ecx, dword [ebp + 0x10]
mov byte [ecx], 0x10
jmp 0x874255
mov al, byte [ebp + 0xc]
xor esi, esi
cmp al, 1
jne 0x874236
cmp dl, 0xca
jne 0x87422e
cmp dh, 0xfe
jne 0x87422e
cmp byte [ebp - 2], 0xba
jne 0x87422e
cmp byte [ebp - 1], 0xbe
je 0x87425a
mov edx, dword [ebp + 0x10]
mov byte [edx], 0
jmp 0x874255
cmp al, 2
jne 0x87425a
cmp byte [ebp - 2], 0x53
jne 0x87424f
cmp dh, 0x57
jne 0x87424f
cmp dl, 0x46
je 0x87425a
cmp dl, 0x43
je 0x87425a
mov eax, dword [ebp + 0x10]
mov byte [eax], 0
mov esi, 1
mov ecx, dword [ebp + 8]
push 0
push 0
push 0
push ecx
call fcn.00871370
xor eax, eax
cmp esi, 1
pop esi
pop ebx
setne al
mov esp, ebp
pop ebp
ret