joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4337e4
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x10c
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [ebp - 0x4c], esi
mov esi, esp
lea edi, [ebp - 0x4c]
mov dword [esi + 4], edi
mov dword [esi], edi
mov dword [ebp - 0xc8], ecx
mov dword [ebp - 0xcc], eax
mov dword [ebp - 0xd0], edx
call fcn.00407b78
mov eax, dword [ebp - 0xd0]
mov dword [ebp - 0x50], eax
mov dword [ebp - 0x28], 0x780834
mov dword [ebp - 0x24], 0x795e34
mov ecx, ebp
mov dword [ebp - 0x20], ecx
mov ecx, esp
mov dword [ebp - 0x18], ecx
mov dword [ebp - 0x20], 0x433af6
mov dword [ebp - 0x3c], 1
lea eax, [ebp - 0x44]
call fcn.007811a9
mov eax, esp
lea ecx, [ebp - 0x50]
mov dword [eax + 4], ecx
mov dword [eax], ecx
call fcn.00407b78
jmp 0x433868
mov eax, dword [ebp - 0xc8]
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x3c], 2
mov ecx, esp
lea edx, [ebp - 0x5c]
mov dword [ecx + 4], edx
mov dword [ecx], edx
call fcn.00407b78
jmp 0x433889
mov eax, dword [ebp - 0xcc]
mov dword [ebp - 0x60], eax
mov dword [ebp - 0x64], 0
mov dword [ebp - 0x3c], 3
mov ecx, esp
lea edx, [ebp - 0x4c]
mov dword [ecx + 4], edx
lea edx, [ebp - 0x64]
mov dword [ecx], edx
call fcn.004177d0
jmp 0x4338b4
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x3c], 4
mov edx, 1
call fcn.004c0ea8
mov byte [ebp - 0xd1], al
jmp 0x4338d0
lea eax, [ebp - 0x64]
mov cl, byte [ebp - 0xd1]
xor cl, 0xff
mov dword [esp], eax
mov byte [ebp - 0xd2], cl
call fcn.0078556c
mov cl, byte [ebp - 0xd2]
test cl, 1
jne 0x4338fa
jmp 0x433989
mov byte [ebp - 0x45], 0
mov dword [ebp - 0x68], 1
jmp 0x433a73
mov dword [ebp - 0x3c], 5
mov eax, esp
lea ecx, [ebp - 0xc0]
mov dword [eax], ecx
mov dword [eax + 8], 0x3c
mov dword [eax + 4], 0
call fcn.0076d60f
mov dword [ebp - 0xf8], eax
jmp 0x4339b5
mov dword [ebp - 0xc0], 0x3c
mov dword [ebp - 0xbc], 0x40
mov dword [ebp - 0xb4], str.open
mov dword [ebp - 0x3c], 6
mov eax, esp
lea ecx, [ebp - 0x4c]
mov dword [eax], ecx
call fcn.00407ba4
mov dword [ebp - 0xfc], eax
jmp 0x4339ee
mov eax, dword [ebp - 0xfc]
mov dword [ebp - 0xb0], eax
mov dword [ebp - 0x3c], 7
mov ecx, esp
lea edx, [ebp - 0x50]
mov dword [ecx], edx
call fcn.00407ba4
mov dword [ebp - 0x100], eax
jmp 0x433a15
mov eax, dword [ebp - 0x100]
mov dword [ebp - 0xac], eax
mov ecx, dword [ebp - 0x60]
mov dword [ebp - 0xa4], ecx
mov dword [ebp - 0x3c], 8
mov ecx, esp
lea edx, [ebp - 0xc0]
mov dword [ecx], edx
call fcn.0078de94
sub esp, 4
mov dword [ebp - 0x104], eax
jmp 0x433a4b
mov eax, dword [ebp - 0x104]
cmp eax, 0
setne cl
and cl, 1
mov byte [ebp - 0xc1], cl
mov cl, byte [ebp - 0xc1]
and cl, 1
mov byte [ebp - 0x45], cl
mov dword [ebp - 0x68], 1
lea eax, [ebp - 0x5c]
mov dword [esp], eax
call fcn.0040782c
lea eax, [ebp - 0x50]
mov dword [esp], eax
call fcn.0040782c
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call fcn.0040782c
jmp 0x433ab9
lea eax, [ebp - 0x44]
mov cl, byte [ebp - 0x45]
mov dword [esp], eax
mov byte [ebp - 0x105], cl
call fcn.007811ca
mov cl, byte [ebp - 0x105]
and cl, 1
movzx eax, cl
add esp, 0x10c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x438108
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 0xc], eax
call sub.KERNEL32.DLL_GetFileAttributesA
sub esp, 4
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x43813d
mov eax, dword [ebp - 8]
and eax, 0x10
cmp eax, 0
je 0x43813d
mov byte [ebp - 1], 1
jmp 0x438141
mov byte [ebp - 1], 0
mov al, byte [ebp - 1]
and al, 1
movzx eax, al
add esp, 0x10
pop ebp
ret

Function at 0x4384e8
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x288
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
lea esi, [0x7b8874]
mov edi, 0x104
lea ebx, str._s
mov dword [ebp - 0x258], eax
mov eax, dword [ebp + 8]
mov dword [esp], esi
mov dword [esp + 4], 0x104
mov dword [esp + 8], ebx
mov dword [esp + 0xc], eax
mov dword [ebp - 0x25c], edi
mov dword [ebp - 0x260], ecx
mov dword [ebp - 0x264], edx
call fcn.00770c98
lea ecx, [0x7b8874]
lea edx, [ebp - 0x14c]
mov esi, esp
lea edi, [ebp - 0x14c]
mov dword [esi + 4], edi
mov dword [esi], 0x7b8874
mov dword [ebp - 0x268], eax
mov dword [ebp - 0x26c], ecx
mov dword [ebp - 0x270], edx
call sub.KERNEL32.DLL_FindFirstFileA
sub esp, 8
mov ecx, 0xffffffff
mov dword [ebp - 0x150], eax
cmp dword [ebp - 0x150], ecx
je 0x43869e
jmp 0x438591
mov eax, 0x104
lea ecx, [0x7968a8]
lea edx, [ebp - 0x14c]
lea esi, [ebp - 0x254]
mov edi, dword [ebp + 8]
add edx, 0x2c
mov dword [esp], esi
mov dword [esp + 4], 0x104
mov dword [esp + 8], ecx
mov dword [esp + 0xc], edi
mov dword [esp + 0x10], edx
mov dword [ebp - 0x274], eax
call fcn.00770c98
mov ecx, dword [ebp - 0x14c]
and ecx, 0x10
cmp ecx, 0
mov dword [ebp - 0x278], eax
jne 0x4385f4
lea eax, [ebp - 0x254]
mov dword [esp], eax
call fcn.00439ba8
jmp 0x438654
cmp dword [ebp + 0xc], 0
je 0x438652
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], 0x7968ae
call fcn.0076d6d8
cmp eax, 0
je 0x438652
lea eax, [ebp - 0x14c]
add eax, 0x2c
mov ecx, esp
mov dword [ecx], eax
mov dword [ecx + 4], 0x7968b0
call fcn.0076d6d8
cmp eax, 0
je 0x438652
lea eax, [ebp - 0x254]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
mov dword [esp], eax
mov dword [esp + 4], ecx
mov dword [esp + 8], edx
call fcn.004384e8
jmp 0x438654
jmp 0x438656
lea eax, [ebp - 0x14c]
mov ecx, dword [ebp - 0x150]
mov edx, esp
lea esi, [ebp - 0x14c]
mov dword [edx + 4], esi
mov dword [edx], ecx
mov dword [ebp - 0x27c], eax
call sub.KERNEL32.DLL_FindNextFileA
sub esp, 8
cmp eax, 0
jne 0x438591
mov eax, dword [ebp - 0x150]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_FindClose
sub esp, 4
mov dword [ebp - 0x280], eax
add esp, 0x288
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x43d0fc
Capabilities:
Hash data with md5

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

Function at 0x43fab0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
xor esi, esi
mov edi, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
mov dword [ebp - 0x14], eax
mov eax, esp
mov dword [eax + 0xc], ebx
mov dword [eax + 8], edi
mov dword [eax + 0x14], 0
mov dword [eax + 0x10], 0
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x20], edx
call sub.KERNEL32.DLL_CreateThread
sub esp, 0x18
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0
jne 0x43fb18
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x10], eax
jmp 0x43fb1f
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0x2c
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x443120
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x2c
mov eax, dword [ebp + 0x14]
mov cl, byte [ebp + 0x10]
mov dl, byte [ebp + 0xc]
mov esi, dword [ebp + 8]
mov edi, dword [ebp + 0x14]
mov dword [edi], 0
mov edi, dword [ebp + 8]
mov dword [ebp - 0x10], edi
mov dword [ebp - 0x20], eax
mov byte [ebp - 0x21], cl
mov byte [ebp - 0x22], dl
mov dword [ebp - 0x28], esi
cmp dword [ebp - 0x10], 0
je 0x443267
movzx eax, byte [ebp + 0xc]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
movzx ecx, byte [ebp + 0x10]
cmp eax, ecx
jg 0x443259
mov eax, 0x20
mov dword [esp], 0x20
mov dword [ebp - 0x2c], eax
call fcn.00466a00
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x443198
mov dword [ebp - 0xc], 1
jmp 0x44326e
mov dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
movzx ecx, byte [ecx]
cmp eax, ecx
jge 0x4431dc
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x18]
movzx eax, byte [eax + ecx + 1]
xor eax, dword [ebp - 0x1c]
mov dl, al
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov byte [eax + ecx + 1], dl
mov eax, dword [ebp - 0x14]
mov ecx, dword [ebp - 0x18]
mov byte [eax + ecx + 5], 0xff
mov eax, dword [ebp - 0x18]
add eax, 1
mov dword [ebp - 0x18], eax
jmp 0x44319f
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
cmp eax, 4
jge 0x4431f2
mov eax, dword [ebp - 0x10]
movzx eax, byte [eax]
mov dword [ebp - 0x30], eax
jmp 0x4431fc
mov eax, 4
mov dword [ebp - 0x30], eax
jmp 0x4431fc
mov eax, dword [ebp - 0x30]
mov cl, al
mov eax, dword [ebp - 0x14]
mov byte [eax], cl
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov esi, dword [eax + 0xc]
mov dword [edx + 0xc], esi
mov eax, dword [eax + 0x10]
mov dword [edx + 0x10], eax
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x14]
mov esi, dword [eax + 0x14]
mov dword [edx + 0x14], esi
mov eax, dword [eax + 0x18]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x10]
mov di, word [eax + 0xa]
mov eax, dword [ebp - 0x14]
mov word [eax + 0xa], di
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 0x14]
mov dword [edx + 0x1c], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 0x14]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
add eax, 1
mov dword [ebp - 0x1c], eax
jmp 0x443160
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x1c]
mov dword [ebp - 0x10], eax
jmp 0x44314f
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add esp, 0x2c
pop esi
pop edi
pop ebp
ret
Function at 0x45200c
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0xc], 0x40
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x18], ecx
jae 0x452037
mov dword [ebp - 4], 0
jmp 0x4520dd
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x452056
mov dword [ebp - 4], 0
jmp 0x4520dd
mov eax, dword [ebp - 8]
cmp dword [eax + 0x3c], 0
jge 0x452068
mov dword [ebp - 4], 0
jmp 0x4520dd
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x3c]
add eax, 4
add eax, 0x14
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x10]
jae 0x452088
mov dword [ebp - 4], 0
jmp 0x4520dd
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 8]
add eax, dword [ecx + 0x3c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
add eax, 0xe0
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
cmp dword [eax], 0x4550
jne 0x4520d6
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
cmp eax, 0x14c
je 0x4520c6
mov eax, dword [ebp - 0xc]
movzx eax, word [eax + 4]
cmp eax, 0x8664
jne 0x4520d6
mov eax, dword [ebp + 0xc]
cmp eax, dword [ebp - 0x10]
jbe 0x4520d6
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x4520dd
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 0x18
pop ebp
ret
Function at 0x4520e8
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff8
sub esp, 0x40
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x14]
mov esi, dword [ebp + 8]
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x24], 0
mov eax, dword [ebp + 8]
add eax, 0x18
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + 0x14]
add eax, ecx
mov dword [esp + 0x20], eax
mov dword [esp + 0x1c], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], esi
mov dword [esp + 0x10], edx
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 8]
movzx ecx, word [ecx + 6]
cmp ecx, 0x3c
mov dword [esp + 0xc], eax
jge 0x45215a
mov eax, dword [ebp + 8]
movzx eax, word [eax + 6]
mov dword [esp + 8], eax
jmp 0x452165
mov eax, 0x3c
mov dword [esp + 8], eax
jmp 0x452165
mov eax, dword [esp + 8]
mov ecx, dword [esp + 0xc]
cmp ecx, eax
jge 0x4521f7
mov eax, dword [esp + 0x20]
mov ecx, dword [ebp + 8]
sub eax, ecx
add eax, 0x28
cmp eax, dword [ebp + 0x14]
jae 0x4521e0
mov eax, dword [esp + 0x28]
mov ecx, dword [esp + 0x2c]
mov edx, dword [esp + 0x20]
mov edx, dword [edx + 0xc]
sub eax, edx
sbb ecx, 0
mov dword [esp + 4], eax
mov dword [esp], ecx
jb 0x4521c8
jmp 0x4521a5
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
cmp eax, dword [ecx + 0xc]
ja 0x4521c8
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0xc]
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x20]
add eax, 0x28
mov dword [esp + 0x20], eax
mov eax, dword [esp + 0x24]
add eax, 1
mov dword [esp + 0x24], eax
jmp 0x4521f2
mov dword [esp + 0x34], 0
mov dword [esp + 0x30], 0
jmp 0x452219
jmp 0x452139
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov esi, dword [esp + 0x1c]
sub ecx, esi
sbb edx, 0
add eax, ecx
adc edx, 0
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], edx
mov eax, dword [esp + 0x30]
mov edx, dword [esp + 0x34]
lea esp, [ebp - 4]
pop esi
pop ebp
ret
Function at 0x48e23c
Capabilities:
Acquire debug privileges
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x78
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, 0x28
mov dword [ebp - 0x2c], 0
mov dword [esp], 0x28
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x38], ecx
mov dword [ebp - 0x3c], edx
call fcn.00466a00
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
jne 0x48e281
mov dword [ebp - 0x10], 1
jmp 0x48e3d2
call sub.KERNEL32.DLL_GetCurrentProcess
mov ecx, 0x20
lea edx, [ebp - 0x2c]
mov esi, esp
lea edi, [ebp - 0x2c]
mov dword [esi + 8], edi
mov dword [esi], eax
mov dword [esi + 4], 0x20
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x44], ecx
call sub.ADVAPI32.DLL_OpenProcessToken
sub esp, 0xc
cmp eax, 0
je 0x48e34d
xor eax, eax
lea ecx, str.SeDebugPrivilege
lea edx, [ebp - 0x28]
mov esi, esp
lea edi, [ebp - 0x28]
mov dword [esi + 8], edi
mov dword [esi + 4], str.SeDebugPrivilege
mov dword [esi], 0
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
call sub.ADVAPI32.DLL_LookupPrivilegeValueW
sub esp, 0xc
cmp eax, 0
je 0x48e34d
xor eax, eax
lea ecx, [ebp - 0x20]
mov edx, 0x10
mov dword [ebp - 0x20], 1
mov esi, dword [ebp - 0x28]
mov dword [ebp - 0x1c], esi
mov esi, dword [ebp - 0x24]
mov dword [ebp - 0x18], esi
mov dword [ebp - 0x14], 2
mov esi, dword [ebp - 0x2c]
mov edi, esp
lea ebx, [ebp - 0x20]
mov dword [edi + 8], ebx
mov dword [edi], esi
mov dword [edi + 0x14], 0
mov dword [edi + 0x10], 0
mov dword [edi + 0xc], 0x10
mov dword [edi + 4], 0
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x58], ecx
mov dword [ebp - 0x5c], edx
call sub.ADVAPI32.DLL_AdjustTokenPrivileges
sub esp, 0x18
mov dword [ebp - 0x60], eax
cmp dword [ebp - 0x2c], 0
je 0x48e365
mov eax, dword [ebp - 0x2c]
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [ebp - 0x64], eax
mov eax, 0x410
xor ecx, ecx
mov edx, dword [ebp + 8]
mov esi, esp
mov dword [esi + 8], edx
mov dword [esi + 4], 0
mov dword [esi], 0x410
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x6c], ecx
call sub.KERNEL32.DLL_OpenProcess
sub esp, 0xc
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov eax, dword [ebp - 0x30]
cmp dword [eax], 0
jne 0x48e3b0
mov eax, dword [ebp - 0x30]
mov dword [esp], eax
call fcn.00466ac4
mov dword [ebp - 0x10], 2
jmp 0x48e3d2
mov eax, dword [ebp - 0x30]
add eax, 4
mov ecx, esp
mov dword [ecx], eax
call sub.KERNEL32.DLL_GetSystemInfo
sub esp, 4
mov eax, dword [ebp - 0x30]
mov ecx, dword [ebp + 0xc]
mov dword [ecx + 0x20], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 0x10]
add esp, 0x78
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x49b6d4
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 8]
mov dword [ebp - 8], eax
call fcn.0078da80
mov ecx, dword [ebp + 8]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
cmp dword [eax], 0xffffffff
jne 0x49b6fb
mov dword [ebp - 4], 0x1f
jmp 0x49b702
mov dword [ebp - 4], 0
mov eax, dword [ebp - 4]
add esp, 8
pop ebp
ret

Function at 0x49b748
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
mov edx, dword [ebp + 8]
mov edx, dword [edx]
mov esi, dword [ebp + 0xc]
mov edi, esp
mov dword [edi + 4], esi
mov dword [edi], edx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
call fcn.0078da92
sub esp, 8
cmp eax, 0
jne 0x49b781
mov dword [ebp - 0xc], 0x1f
jmp 0x49b788
mov dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
add esp, 0x14
pop esi
pop edi
pop ebp
ret

Function at 0x49b794
Capabilities:
Get thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 8]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
mov edx, esp
mov dword [edx], ecx
mov dword [ebp - 8], eax
call fcn.0078da8c
sub esp, 4
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
add esp, 0xc
pop ebp
ret

Function at 0x49c788
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
dec eax
test eax, eax
jl 0x49c7cd
inc eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], 0
mov eax, dword [ebp - 4]
mov edx, dword [ebp - 0x10]
mov al, byte [eax + edx]
mov edx, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor al, byte [edx + ecx]
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
mov byte [edx + ecx], al
inc dword [ebp - 0x10]
dec dword [ebp - 0x14]
jne 0x49c7aa
mov esp, ebp
pop ebp
ret 4
Function at 0x49cd0c
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffee8
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call sub.KERNEL32.DLL_GetVersionExW
test eax, eax
je 0x49cd38
cmp dword [ebp - 0x114], 6
jae 0x49cd3c
xor eax, eax
jmp 0x49cd3e
mov al, 1
mov byte [ebp - 1], al
mov al, byte [ebp - 1]
mov esp, ebp
pop ebp
ret

Function at 0x49cf00
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.004a7e3c
push eax
call sub.KERNEL32.DLL_GetFileAttributesW
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x49cf7f
test byte [ebp - 0xb], 4
je 0x49cf75
test byte [ebp - 0xc], 0x10
je 0x49cf32
mov byte [ebp - 5], 0
jmp 0x49cfb0
push 0
push 0
push 3
push 0
push 1
push 0x80000000
mov eax, dword [ebp - 4]
call fcn.004a7e3c
push eax
call sub.KERNEL32.DLL_CreateFileW
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x49cf67
mov eax, dword [ebp - 0x10]
push eax
call sub.KERNEL32.DLL_CloseHandle
mov byte [ebp - 5], 1
jmp 0x49cfb0
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x20
sete byte [ebp - 5]
jmp 0x49cfb0
test byte [ebp - 0xc], 0x10
sete byte [ebp - 5]
jmp 0x49cfb0
call sub.KERNEL32.DLL_GetLastError
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 2
je 0x49cfa7
cmp dword [ebp - 0x14], 3
je 0x49cfa7
cmp dword [ebp - 0x14], 0x7b
je 0x49cfa7
push ebp
mov eax, dword [ebp - 4]
call fcn.0049ceb4
pop ecx
test al, al
jne 0x49cfab
xor eax, eax
jmp 0x49cfad
mov al, 1
mov byte [ebp - 5], al
mov al, byte [ebp - 5]
mov esp, ebp
pop ebp
ret
Function at 0x49d244
Capabilities:
Spoof parent pid

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
xor eax, eax
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x44], edx
call sym.a1runscanner.exe__Processutils_InitiatorPID_qqrv
push eax
push 0
push 0x80
call sub.KERNEL32.DLL_OpenProcess
mov edx, dword [ebp - 4]
mov dword [edx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x49d365
lea eax, [ebp - 0x10]
push eax
push 0
push 1
push 0
call sub.KERNEL32.DLL_InitializeProcThreadAttributeList
test eax, eax
jne 0x49d2a5
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0x7a
jne 0x49d365
xor eax, eax
push ebp
push 0x49d35e
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 0x10]
call fcn.004a3a3c
mov edx, dword [ebp - 8]
mov dword [edx + 0x44], eax
lea eax, [ebp - 0x10]
push eax
push 0
push 1
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
push eax
call sub.KERNEL32.DLL_InitializeProcThreadAttributeList
test eax, eax
jne 0x49d2e3
call fcn.004a68c8
jmp 0x49d365
push 0
push 0
push 4
mov eax, dword [ebp - 4]
push eax
push 0x20000
push 0
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
push eax
call sub.KERNEL32.DLL_UpdateProcThreadAttribute
test eax, eax
jne 0x49d317
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
push eax
call sub.KERNEL32.DLL_DeleteProcThreadAttributeList
call fcn.004a68c8
jmp 0x49d365
mov byte [ebp - 9], 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d365
cmp byte [ebp - 9], 0
jne 0x49d35d
mov eax, dword [ebp - 8]
cmp dword [eax + 0x44], 0
je 0x49d34a
mov eax, dword [ebp - 8]
mov eax, dword [eax + 0x44]
call fcn.004a3a58
mov eax, dword [ebp - 8]
xor edx, edx
mov dword [eax + 0x44], edx
mov eax, dword [ebp - 4]
cmp dword [eax], 0
je 0x49d35d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
push eax
call sub.KERNEL32.DLL_CloseHandle
ret
mov al, byte [ebp - 9]
mov esp, ebp
pop ebp
ret

Function at 0x49d36c
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
xor ecx, ecx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 8]
call fcn.004a70e8
xor eax, eax
push ebp
push 0x49d3f1
push dword fs:[eax]
mov dword fs:[eax], esp
cmp dword [ebp - 4], 0
je 0x49d3d6
cmp dword [ebp - 4], 0x2e4
je 0x49d3d6
push dword [ebp - 8]
push 0x49d408
lea edx, [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0049ce84
push dword [ebp - 0x10]
lea eax, [ebp - 0xc]
mov edx, 3
call fcn.004a812c
mov eax, dword [ebp - 0xc]
call fcn.004a7e3c
push eax
call sub.KERNEL32.DLL_OutputDebugStringW
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x49d3f8
lea eax, [ebp - 0x10]
mov edx, 3
call fcn.004a7064
ret