joyce8/EMBER2024-capa huggingface dataset:
Function at 0x407acb
Capabilities:
Hash data using sha256

Disassembly:
cmp dword [0x44a804], 2
push esi
push edi
mov edi, edx
mov esi, ecx
jl 0x407adf
call fcn.0040675f
call fcn.004080ca
xor edx, edx
mov ecx, dword [esi + 0xf4]
mov eax, dword [edx + 0x442330]
mov dword [edx + ecx], eax
add edx, 4
cmp edx, 0x20
jl 0x407ae6
mov eax, dword [esi + 0xf4]
xor dword [eax], 0x2080020
mov eax, dword [esi + 0xf4]
xor dword [eax + 8], edi
mov ecx, dword [esi + 0xf4]
mov eax, dword [esp + 0xc]
or eax, 0x2000
shl eax, 0x10
xor dword [ecx + 0xc], eax
pop edi
pop esi
ret 4
Function at 0x408d89
Capabilities:
Encode data using xor

Disassembly:
push esi
mov esi, dword [esp + 8]
push edi
mov edi, edx
test esi, esi
je 0x408dad
movzx edx, byte [edi]
movzx eax, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x44b430]
inc edi
sub esi, 1
jne 0x408d95
pop edi
mov eax, ecx
pop esi
ret 4
Function at 0x40909a
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1e0
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x1dc], eax
push ebx
mov eax, ecx
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x1e8]
mov ebx, edx
mov edx, dword [esp + 0x1f8]
mov dword [esp + 0x1c], ecx
mov ecx, dword [esp + 0x1f0]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x1fc]
mov dword [esp + 0xc], ecx
mov ecx, dword [esp + 0x200]
mov dword [esp + 8], edx
mov dword [esp + 0x14], ecx
push ebp
push esi
push edi
mov edi, dword [esp + 0x200]
mov dword [esp + 0x24], edi
cmp ebx, 0x40
jbe 0x40913a
lea ecx, [esp + 0x100]
call fcn.00415a0f
push ebx
mov edx, eax
call fcn.00415c10
lea edx, [esp + 0x1ac]
lea ecx, [esp + 0x100]
call fcn.00415c79
mov edx, dword [esp + 0x14]
lea eax, [esp + 0x1ac]
push 0x20
mov dword [esp + 0x20], eax
pop ebx
xor ebp, ebp
test edi, edi
je 0x409156
cmp byte [edx], 0
je 0x409156
mov esi, edi
lea edi, [esp + 0x30]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x24]
jmp 0x4091ba
mov edx, ebp
test ebx, ebx
je 0x40917c
mov esi, eax
lea eax, [esp + 0x168]
sub esi, eax
lea ecx, [esp + 0x168]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x409167
cmp ebx, 0x40
jae 0x40919b
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x168]
push eax
add ecx, ebx
push 0x36
push ecx
call fcn.00424b20
add esp, 0xc
lea ecx, [esp + 0x30]
call fcn.00415a0f
push 0x40
lea edx, [esp + 0x16c]
call fcn.00415c10
test edi, edi
je 0x4091cb
mov edx, dword [esp + 0x14]
cmp byte [edx], 0
jne 0x4091cb
push 0x1a
pop ecx
lea esi, [esp + 0x30]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1f8]
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x34]
call fcn.00415c10
lea edx, [esp + 0x1cc]
lea ecx, [esp + 0x30]
call fcn.00415c79
mov edi, dword [esp + 0x18]
test edi, edi
je 0x409214
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
je 0x409214
mov esi, edi
lea edi, [esp + 0x98]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x18]
jmp 0x40927b
test ebx, ebx
je 0x40923a
mov edx, dword [esp + 0x1c]
lea eax, [esp + 0x168]
sub edx, eax
lea ecx, [esp + 0x168]
add ecx, ebp
mov al, byte [edx + ecx]
xor al, 0x5c
inc ebp
mov byte [ecx], al
cmp ebp, ebx
jb 0x409225
cmp ebx, 0x40
jae 0x409259
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x168]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.00424b20
add esp, 0xc
lea ecx, [esp + 0x98]
call fcn.00415a0f
push 0x40
lea edx, [esp + 0x16c]
call fcn.00415c10
test edi, edi
je 0x40928f
mov eax, dword [esp + 0x20]
cmp byte [eax], 0
jne 0x40928f
push 0x1a
pop ecx
lea esi, [esp + 0x98]
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea edx, [esp + 0x1d0]
lea ecx, [esp + 0x9c]
call fcn.00415c10
mov edx, dword [esp + 0x2c]
lea ecx, [esp + 0x98]
call fcn.00415c79
mov ecx, dword [esp + 0x1ec]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422eb5
add esp, 0x1e0
ret 0x1c
Function at 0x4092cf
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x1ac
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x1a8], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 0x10]
push edi
mov edi, dword [ebp + 0x14]
push 0x10
push eax
lea eax, [esp + 0x150]
mov dword [esp + 0x1c], edx
push eax
mov dword [esp + 0x24], ecx
call fcn.004245a0
mov edx, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x18]
xor eax, eax
mov dword [esp + 0x158], 0x1000000
push eax
push eax
push eax
push eax
lea eax, [esp + 0x118]
push eax
push 0x14
lea eax, [esp + 0x160]
push eax
call fcn.0040909a
push 0x20
lea eax, [esp + 0x10c]
push eax
lea eax, [esp + 0x130]
push eax
call fcn.004245a0
mov eax, dword [ebp + 0x1c]
add esp, 0xc
dec eax
mov dword [esp + 0xfc], esi
mov dword [esp + 0xf0], eax
xor esi, esi
mov dword [esp + 0x104], ebx
push 0x10
pop eax
push 0x20
mov dword [esp + 0xf8], eax
mov dword [esp + 0xfc], eax
mov dword [esp + 0x104], edi
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x20], esi
pop ebx
mov edi, dword [esp + esi + 0xf0]
test edi, edi
je 0x40941a
mov esi, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x24]
mov edx, esi
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x94]
push eax
lea eax, [esp + 0x1a4]
push eax
push ebx
lea eax, [esp + 0x120]
push eax
call fcn.0040909a
push ebx
lea eax, [esp + 0x198]
push eax
lea eax, [esp + 0x110]
push eax
call fcn.004245a0
add esp, 0xc
xor ecx, ecx
mov al, byte [esp + ecx + 0x108]
xor byte [esp + ecx + 0x128], al
inc ecx
cmp ecx, ebx
jb 0x4093fe
sub edi, 1
jne 0x4093b0
mov esi, dword [esp + 0x1c]
push ebx
lea eax, [esp + 0x12c]
push eax
push dword [esp + esi + 0x104]
call fcn.004245a0
add esi, 4
add esp, 0xc
mov dword [esp + 0x1c], esi
cmp esi, 0xc
jb 0x4093a1
push 0x44
pop edx
lea ecx, [esp + 0x148]
call fcn.00414cd7
mov edx, ebx
lea ecx, [esp + 0x128]
call fcn.00414cd7
mov edx, ebx
lea ecx, [esp + 0x108]
call fcn.00414cd7
mov edx, ebx
lea ecx, [esp + 0x194]
call fcn.00414cd7
mov ecx, dword [esp + 0x1b4]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00422eb5
mov esp, ebp
pop ebp
ret 0x18
Function at 0x409735
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x28], eax
push ebx
push esi
push edi
mov edi, ecx
mov ebx, edx
xor eax, eax
mov dword [esp + 0x10], ebx
cmp dword [edi], 2
lea esi, [edi + 4]
jne 0x4097ac
mov ecx, dword [esi]
lea edx, [esp + 0xc]
call fcn.004080c7
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
push 4
mov eax, edx
push eax
push 0x20
pop edx
call fcn.0040909a
xor edx, edx
and dword [esp + 0xc], edx
mov ebx, dword [esp + 0xc]
movzx eax, byte [esp + edx + 0x14]
mov ecx, edx
and ecx, 3
shl ecx, 3
shl eax, cl
xor eax, ebx
inc edx
mov ebx, eax
cmp edx, 0x20
jb 0x40978b
mov ebx, dword [esp + 0x10]
mov dword [esi], eax
xor eax, eax
cmp dword [edi], 3
jne 0x4097d7
push eax
push eax
push eax
push eax
lea eax, [esp + 0x24]
mov ecx, ebx
push eax
push 0x20
push esi
push 0x20
pop edx
call fcn.0040909a
push 0x20
lea eax, [esp + 0x18]
push eax
push esi
call fcn.004245a0
add esp, 0xc
mov ecx, dword [esp + 0x34]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.00422eb5
mov esp, ebp
pop ebp
ret
Function at 0x40e4e0
Capabilities:
Check if file exists

Disassembly:
push 0x8c
mov eax, 0x439b36
call fcn.004388b6
mov edi, ecx
and dword [edi + 0x4c], 0
cmp byte [edi + 0x30], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
jne 0x40e510
test bl, 4
jne 0x40e510
xor cl, cl
jmp 0x40e512
mov cl, 1
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x40e52a
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x40e539
or ebx, 2
lea ecx, [ebp - 0x88]
call fcn.0040a782
xor eax, eax
mov dword [ebp - 4], eax
cmp byte [edi + 0x24], al
je 0x40e554
or esi, 0x100
mov ecx, dword [ebp - 0x90]
push eax
push 0x8000000
push 3
push eax
push ebx
push esi
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
jne 0x40e5f1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x94], eax
call fcn.004021e6
mov ecx, dword [ebp - 0x90]
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004115b1
test al, al
je 0x40e5d7
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40e5d7
push eax
pop ebx
jmp 0x40e5dd
mov ebx, dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401e5c
mov eax, dword [ebp - 0x8c]
jmp 0x40e5f7
mov ebx, dword [ebp - 0x94]
cmp eax, 0xffffffff
jne 0x40e608
cmp ebx, 2
jne 0x40e608
mov dword [edi + 0x4c], 1
cmp byte [edi + 0x24], 0
je 0x40e639
cmp eax, 0xffffffff
je 0x40e639
or dword [ebp - 0x98], 0xffffffff
lea ecx, [ebp - 0x98]
or dword [ebp - 0x94], 0xffffffff
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 0x8c]
xor ecx, ecx
cmp eax, 0xffffffff
mov byte [edi + 0x1c], cl
mov dword [edi + 0x10], ecx
setne bl
mov byte [edi + 0x15], cl
je 0x40e661
push dword [ebp - 0x90]
lea ecx, [edi + 0x34]
mov dword [edi + 8], eax
call fcn.0040335d
mov byte [edi + 0x25], 0
lea ecx, [ebp - 0x88]
call fcn.0040a7a6
mov al, bl
call fcn.00438865
ret 8
Function at 0x40e83f
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x439a50
call fcn.004388b6
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x40e861
mov al, 1
jmp 0x40e992
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x40e87f
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x40e960
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x40e8d6
xor edi, edi
test esi, esi
je 0x40e8f6
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x40e8a6
mov eax, edx
push 0
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x38]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test eax, eax
je 0x40e8ee
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x40e897
jmp 0x40e8ee
push 0
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test dl, dl
jne 0x40e98b
cmp byte [ebx + 0x1e], 0
je 0x40e98b
cmp dword [ebx + 0x10], 0
jne 0x40e98b
push ecx
lea edi, [ebx + 0x34]
push edi
call fcn.00409f12
test al, al
je 0x40e968
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x40e882
cmp dword [ebp - 0x30], 0
jbe 0x40e882
mov edi, dword [ebx]
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43c270]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
push 0
sbb edx, 0
push edx
push eax
call dword [0x43c270]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x40e882
push 0x4422dc
lea ecx, [ebp - 0x28]
call fcn.00401d16
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00409ef4
lea ecx, [ebp - 0x28]
call fcn.00401e5c
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.00438865
ret 8

Function at 0x40f044
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x439513
call fcn.004388b6
mov bl, dl
mov esi, ecx
call fcn.00410a1a
movzx eax, ax
cmp eax, 0x2e
je 0x40f07e
cmp eax, 0x20
je 0x40f07e
push 0
mov ecx, esi
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
jne 0x40f0c8
jmp 0x40f080
xor edi, edi
mov ecx, esi
call fcn.0040f354
test al, al
jne 0x40f0da
lea ecx, [ebp - 0x2c]
call fcn.004021e6
and dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.004115b1
test al, al
je 0x40f0b8
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401e5c
test edi, edi
je 0x40f0da
test bl, bl
je 0x40f0d6
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.0040f3de
xor eax, eax
jmp 0x40f0f2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40f0f2
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.00438865
ret 4
Function at 0x40f382
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x4390a7
call fcn.004388b6
mov edi, ecx
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f3d6
lea ecx, [ebp - 0x28]
call fcn.004021e6
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004115b1
test al, al
je 0x40f3ce
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00401e5c
mov eax, esi
call fcn.00438865
ret

Function at 0x40f3de
Capabilities:
Set file attributes

Disassembly:
push 0x1c
mov eax, 0x4390a7
call fcn.004388b6
mov esi, edx
mov edi, ecx
push esi
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40f43b
lea ecx, [ebp - 0x28]
call fcn.004021e6
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004115b1
test al, al
je 0x40f433
push esi
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea ecx, [ebp - 0x28]
call fcn.00401e5c
mov al, bl
call fcn.00438865
ret
Function at 0x40fa43
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x270
mov eax, 0x439cc0
call fcn.004388b6
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x27c]
push eax
cmp esi, 0xffffffff
jne 0x40fae4
mov ecx, ebx
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fb00
lea ecx, [ebp - 0x2c]
call fcn.004021e6
and dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.004115b1
test al, al
je 0x40fab0
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401e5c
cmp esi, 0xffffffff
jne 0x40fb00
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40fada
cmp eax, 3
je 0x40fada
cmp eax, 0x12
je 0x40fada
mov al, 1
jmp 0x40fadc
xor al, al
mov byte [edi + 0x5c], al
jmp 0x40fbb3
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fb00
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40fadc
push ebx
mov ecx, edi
call fcn.0040335d
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401d16
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov ecx, edi
call fcn.00410c14
lea ecx, [ebp - 0x2c]
call fcn.00401e5c
mov ecx, dword [ebp - 0x260]
xor eax, eax
add eax, dword [ebp - 0x25c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x27c]
adc ecx, 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x278]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x274]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x270]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x26c]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x268]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x264]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x268]
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x28]
push eax
call fcn.004176d0
lea eax, [ebp - 0x278]
push eax
lea ecx, [edi + 0x30]
call fcn.004176d0
lea eax, [ebp - 0x270]
push eax
lea ecx, [edi + 0x38]
call fcn.004176d0
and dword [edi + 0x58], 0
mov eax, esi
call fcn.00438865
ret 4
Function at 0x41022e
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push 0x2c
mov eax, 0x439d6b
call fcn.00438883
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 0x43c8a0
push 1
push ebx
push 0x43c8b0
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41041d
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
push 0x442948
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
call fcn.004105cc
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00410614
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x43c270]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00410589
test esi, esi
js 0x41040a
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x10]
js 0x4103fa
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
push str.SELECT__FROM_Win32_OperatingSystem
mov edi, dword [eax + 0x50]
call fcn.004104cf
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00410614
push 0x442984
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.004104cf
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00410614
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 0x30
push esi
push eax
push dword [ebp - 0x10]
mov ecx, edi
call dword [0x43c270]
call edi
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.00410589
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00410589
test esi, esi
js 0x4103f7
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x4103f7
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], ebx
mov esi, dword [eax]
push ecx
push 1
push 0xffffffffffffffff
mov ecx, dword [esi + 0x10]
push eax
call dword [0x43c270]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4103ba
cmp dword [ebp - 0x20], ebx
jbe 0x4103ba
mov esi, dword [eax]
lea ecx, [ebp - 0x38]
push ebx
push ebx
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push 0x442988
push eax
call dword [0x43c270]
call dword [esi + 0x10]
mov ecx, dword [ebp - 0x30]
call fcn.004104a2
test eax, eax
lea eax, [ebp - 0x38]
push eax
setne bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
mov al, bl
jmp 0x41041f
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
xor al, al
call fcn.00438851
ret
Function at 0x410425
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x449020]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x450531], 0
jne 0x410488
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x410478
jne 0x410474
cmp dword [ebp - 0x74], 0x55f0
jb 0x410474
call fcn.0041022e
test al, al
je 0x410478
xor al, al
jmp 0x41047a
mov al, 1
mov byte [0x450530], al
mov byte [0x450531], 1
jmp 0x41048d
mov al, byte [0x450530]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00422eb5
add ebp, 0x98
leave
ret

Function at 0x4146bf
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
mov edx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [edx + 0x18]
mov dword [esp + 0xc], eax
movups xmm2, xmmword [edx + 8]
test esi, esi
je 0x414742
mov ecx, dword [ebp + 8]
mov eax, ecx
add ecx, 0x10
mov dword [ebp + 8], ecx
mov ecx, dword [edx + 4]
movups xmm3, xmmword [eax]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0xc]
dec ecx
movups xmm1, xmmword [eax]
pxor xmm1, xmm3
test ecx, ecx
jle 0x41471f
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0xc]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x41470f
cmp byte [edx + 1], 0
movups xmm0, xmmword [edx + 0x18]
aesdeclast xmm1, xmm0
je 0x414732
pxor xmm1, xmm2
mov eax, edi
movaps xmm2, xmm3
add edi, 0x10
movups xmmword [eax], xmm1
sub esi, 1
jne 0x4146e0
pop edi
movups xmmword [edx + 8], xmm2
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41474e
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x34
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x20
push eax
mov esi, dword [ebp + 4]
lea eax, [esp + 0x28]
sub esi, 6
mov dword [esp + 0x1c], ebp
push eax
mov dword [esp + 0x24], esi
call fcn.004245a0
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x4147da
cmp ebx, dword [ebp + 4]
jg 0x41493e
cmp edi, esi
jge 0x4147c7
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x4147c3
mov esi, dword [esp + 0x14]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x4147a3
mov ebp, dword [esp + 0x14]
cmp edx, 4
jne 0x4147cd
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x41478e
cmp ebx, dword [ebp + 4]
jg 0x41493e
mov edi, 0x4423f0
movzx eax, byte [esp + esi*4 + 0x1d]
mov cl, byte [esp + 0x20]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x20], cl
movzx eax, byte [esp + esi*4 + 0x1e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x21], al
movzx eax, byte [esp + esi*4 + 0x1f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x22], al
movzx eax, byte [esp + esi*4 + 0x1c]
mov al, byte [eax + str.cw]
xor byte [esp + 0x23], al
mov al, byte [edi]
inc edi
xor al, cl
mov dword [esp + 0x1c], edi
mov byte [esp + 0x20], al
cmp esi, 8
je 0x41486b
cmp esi, 1
jle 0x41485f
lea eax, [esi - 1]
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], eax
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x41484d
sub dword [esp + 0x10], 1
jne 0x41484a
xor edi, edi
test esi, esi
jle 0x414931
jmp 0x4148e9
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 3
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x41487a
sub dword [esp + 0x10], 1
jne 0x414877
movzx eax, byte [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 3
mov al, byte [eax + str.cw]
xor byte [esp + 0x30], al
movzx eax, byte [esp + 0x2d]
mov al, byte [eax + str.cw]
xor byte [esp + 0x31], al
movzx eax, byte [esp + 0x2e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x32], al
movzx eax, byte [esp + 0x2f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x33], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4148d7
sub dword [esp + 0x10], 1
jne 0x4148d4
cmp ebx, dword [ebp + 4]
jg 0x414934
cmp edi, esi
jge 0x41491e
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x41491a
mov esi, dword [esp + 0x14]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x18]
cmp edi, esi
jl 0x4148fa
mov ebp, dword [esp + 0x14]
cmp edx, 4
jne 0x414924
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x4148e9
cmp ebx, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
jle 0x4147e8
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00422eb5
add esp, 0x34
ret 4