joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1003f190
Capabilities:
Create thread
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004a5a4
mov eax, dword fs:[0]
push eax
sub esp, 0x10
mov eax, dword [0x1007c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp dword [0x1007c1b4], 0xf
mov esi, 0x1007c1a0
mov ebx, dword [0x1007c1b0]
mov edx, 0x811c9dc5
cmova esi, dword [0x1007c1a0]
xor ecx, ecx
test ebx, ebx
je 0x1003f1f2
movzx eax, byte [esi + ecx]
inc ecx
xor eax, edx
imul edx, eax, 0x1000193
cmp ecx, ebx
jb 0x1003f1e1
push edx
push 0x1007c1a0
lea eax, [ebp - 0x1c]
push eax
call fcn.100435e0
mov ecx, dword [0x1008048c]
mov eax, dword [eax + 4]
test eax, eax
cmovne ecx, eax
cmp ecx, dword [0x1008048c]
je 0x1003f23d
push 0x1007c1a0
call fcn.10041c20
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [edi + 4], eax
mov dword [edi], ecx
movzx eax, ax
test ecx, ecx
je 0x1003f249
test ax, ax
jne 0x1003f2ca
jmp 0x1003f249
xor eax, eax
mov dword [edi], 0
mov word [edi + 4], ax
push 0x1c
call fcn.10045a46
mov esi, eax
add esp, 4
mov dword [ebp - 0x14], esi
push 0x1007c1a0
mov ecx, esi
mov dword [ebp - 4], 0
call fcn.10018950
mov dword [esi + 0x18], fcn.1003fbd0
mov dword [ebp - 0x14], esi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 1
push eax
push 0
push esi
push 0x100443f0
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [ebp - 0x1c], eax
test eax, eax
je 0x1003f2f0
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x14], 0
call fcn.10043c30
mov dword [ebp - 4], 2
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x1003f2e8
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.MSVCP140.dll__Thrd_detach]
add esp, 8
test eax, eax
jne 0x1003f2e8
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10045a07
mov esp, ebp
pop ebp
ret
push 1
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
push 6
mov dword [ebp - 0x18], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x10042a00
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ab9d
mov eax, dword fs:[0]
push eax
sub esp, 8
mov eax, dword [0x1007c040]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
push 4
call fcn.10045a46
mov dword [ebp - 0x14], eax
mov dword [eax], 0x100411f0
lea edi, [esi + 4]
mov dword [ebp - 4], 0
push edi
push 0
push eax
push 0x10044650
push 0
push 0
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x1c
mov dword [esi], eax
test eax, eax
je 0x10042a81
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.10045a07
mov esp, ebp
pop ebp
ret 4
push 6
mov dword [edi], 0
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Throw_Cpp_error_int_]
int3
Function at 0x10042b80
Capabilities:
Encode data using xor
Hash data using fnv

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004ac35
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push esi
push edi
mov eax, dword [0x1007c040]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edx, dword [ebp + 0xc]
mov edi, edx
mov ebx, dword [ebp + 8]
mov dword [ebp - 0x10], edx
cmp dword [edx + 0x14], 0xf
jbe 0x10042bbb
mov edi, dword [edx]
xor ecx, ecx
mov esi, 0x811c9dc5
cmp dword [edx + 0x10], ecx
jbe 0x10042bd9
movzx eax, byte [edi + ecx]
inc ecx
xor eax, esi
imul esi, eax, 0x1000193
cmp ecx, dword [edx + 0x10]
jb 0x10042bc7
push esi
push edx
lea eax, [ebp - 0x18]
push eax
call fcn.100435e0
mov eax, dword [ebp - 0x14]
test eax, eax
je 0x10042bf6
mov dword [ebx], eax
mov byte [ebx + 4], 0
jmp 0x10042d62
cmp dword [0x10080490], 0x6666666
jne 0x10042c0d
push str.unordered_map_set_too_long
call dword [sym.imp.MSVCP140.dll_void___cdecl_std::_Xlength_error_char_const__]
mov dword [ebp - 0x20], 0x1008048c
mov dword [ebp - 4], 0
push 0x28
mov dword [ebp - 0x1c], 0
call fcn.10045a46
add esp, 4
mov edi, eax
mov dword [ebp - 0x1c], edi
push dword [ebp - 0x10]
lea ecx, [edi + 8]
call fcn.10018950
xor ecx, ecx
mov dword [edi + 0x20], 0
mov word [edi + 0x24], cx
mov dword [ebp - 4], 1
mov edx, dword [0x10080490]
lea eax, [edx + 1]
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
addsd xmm0, qword [eax*8 + 0x10072000]
mov eax, dword [0x100804a4]
cvtpd2ps xmm2, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
shr eax, 0x1f
movaps xmm1, xmm2
addsd xmm0, qword [eax*8 + 0x10072000]
cvtpd2ps xmm0, xmm0
divss xmm1, xmm0
movss xmm0, dword [0x10080488]
comiss xmm1, xmm0
jbe 0x10042d11
divss xmm2, xmm0
sub esp, 8
cvtps2pd xmm0, xmm2
movsd qword [ebp - 0x18], xmm0
fld qword [ebp - 0x18]
fstp qword [esp]
call sub.api_ms_win_crt_math_l1_1_0.dll_ceil
fstp qword [ebp - 0x18]
movsd xmm0, qword [ebp - 0x18]
add esp, 8
cvtpd2ps xmm0, xmm0
call fcn.10046e20
mov ecx, 8
cmp eax, ecx
cmova ecx, eax
mov eax, dword [0x100804a4]
cmp eax, ecx
jae 0x10042cf3
cmp eax, 0x200
jae 0x10042cf1
shl eax, 3
cmp eax, ecx
jae 0x10042cf3
mov eax, ecx
push eax
call fcn.10043070
push esi
lea eax, [edi + 8]
push eax
lea eax, [ebp - 0x20]
push eax
call fcn.100435e0
mov edx, dword [0x10080490]
mov ecx, dword [eax]
jmp 0x10042d14
mov ecx, dword [ebp - 0x18]
mov eax, dword [ecx + 4]
inc edx
mov dword [0x10080490], edx
mov dword [edi], ecx
mov dword [edi + 4], eax
mov dword [eax], edi
mov dword [ecx + 4], edi
and esi, dword [0x100804a0]
mov dword [ebp - 0x10], eax
mov eax, dword [0x10080494]
mov edx, dword [eax + esi*8]
cmp edx, dword [0x1008048c]
jne 0x10042d46
mov dword [eax + esi*8], edi
jmp 0x10042d58
cmp edx, ecx
jne 0x10042d4f
mov dword [eax + esi*8], edi
jmp 0x10042d5c
mov ecx, dword [ebp - 0x10]
cmp dword [eax + esi*8 + 4], ecx
jne 0x10042d5c
mov dword [eax + esi*8 + 4], edi
mov dword [ebx], edi
mov byte [ebx + 4], 1
mov eax, ebx
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x408997
Capabilities:
Authenticate hmac
Encode data using xor

Disassembly:
sub esp, 0x1d4
mov eax, dword [0x448778]
xor eax, esp
mov dword [esp + 0x1d0], eax
mov eax, dword [esp + 0x1e0]
mov edx, dword [esp + 0x1f0]
push ebx
mov ebx, dword [esp + 0x1e0]
mov dword [esp + 0x14], eax
mov eax, dword [esp + 0x1ec]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x1f8]
mov dword [esp + 8], eax
mov eax, dword [esp + 0x1fc]
mov dword [esp + 4], edx
mov dword [esp + 0xc], eax
push ebp
mov ebp, dword [esp + 0x1e0]
push esi
push edi
mov edi, dword [esp + 0x1fc]
mov dword [esp + 0x1c], edi
cmp ebx, 0x40
jbe 0x408a43
lea eax, [esp + 0xf8]
push eax
call fcn.00415bc6
push ebx
push ebp
lea eax, [esp + 0x100]
push eax
call fcn.00415c0c
lea eax, [esp + 0x1a0]
push eax
lea eax, [esp + 0xfc]
push eax
call fcn.00415a9b
mov edx, dword [esp + 0x10]
lea ebp, [esp + 0x1a0]
push 0x20
pop ebx
test edi, edi
je 0x408a5d
cmp byte [edx], 0
je 0x408a5d
mov esi, edi
lea edi, [esp + 0x28]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x1c]
jmp 0x408ac8
xor edx, edx
test ebx, ebx
je 0x408a83
mov esi, ebp
lea eax, [esp + 0x160]
sub esi, eax
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [esi + ecx]
xor al, 0x36
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x408a6e
cmp ebx, 0x40
jae 0x408aa2
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x36
push ecx
call fcn.00426700
add esp, 0xc
lea eax, [esp + 0x28]
push eax
call fcn.00415bc6
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00415c0c
test edi, edi
je 0x408ad9
mov edx, dword [esp + 0x10]
cmp byte [edx], 0
jne 0x408ad9
push 0x1a
pop ecx
lea esi, [esp + 0x28]
rep movsd dword es:[edi], dword [esi]
mov byte [edx], 1
push dword [esp + 0x1f4]
lea eax, [esp + 0x2c]
push dword [esp + 0x24]
push eax
call fcn.00415c0c
lea eax, [esp + 0x1c0]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.00415a9b
mov edi, dword [esp + 0x14]
test edi, edi
je 0x408b25
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
je 0x408b25
mov esi, edi
lea edi, [esp + 0x90]
push 0x1a
pop ecx
rep movsd dword es:[edi], dword [esi]
mov edi, dword [esp + 0x14]
jmp 0x408b94
test ebx, ebx
je 0x408b49
lea eax, [esp + 0x160]
sub ebp, eax
xor edx, edx
lea ecx, [esp + 0x160]
add ecx, edx
mov al, byte [ecx + ebp]
xor al, 0x5c
inc edx
mov byte [ecx], al
cmp edx, ebx
jb 0x408b34
cmp ebx, 0x40
jae 0x408b68
push 0x40
pop eax
sub eax, ebx
lea ecx, [esp + 0x160]
push eax
add ecx, ebx
push 0x5c
push ecx
call fcn.00426700
add esp, 0xc
lea eax, [esp + 0x90]
push eax
call fcn.00415bc6
push 0x40
lea eax, [esp + 0x164]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00415c0c
test edi, edi
je 0x408ba8
mov eax, dword [esp + 0x18]
cmp byte [eax], 0
jne 0x408ba8
push 0x1a
pop ecx
lea esi, [esp + 0x90]
rep movsd dword es:[edi], dword [esi]
mov byte [eax], 1
push 0x20
lea eax, [esp + 0x1c4]
push eax
lea eax, [esp + 0x98]
push eax
call fcn.00415c0c
push dword [esp + 0x24]
lea eax, [esp + 0x94]
push eax
call fcn.00415a9b
mov ecx, dword [esp + 0x1e0]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424c44
add esp, 0x1d4
ret 0x24
Function at 0x408beb
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x19c
mov eax, dword [0x448778]
xor eax, esp
mov dword [esp + 0x198], eax
mov eax, dword [esp + 0x1a0]
mov ecx, dword [esp + 0x1a8]
push ebx
mov ebx, dword [esp + 0x1b8]
push ebp
mov ebp, dword [esp + 0x1c0]
push esi
mov esi, dword [esp + 0x1b8]
push edi
mov edi, dword [esp + 0x1c0]
push 0x40
mov dword [esp + 0x18], eax
pop eax
cmp esi, eax
jae 0x408c3a
mov eax, esi
push eax
push ecx
lea eax, [esp + 0x14c]
push eax
call fcn.00426180
add esp, 0xc
cmp esi, 0x44
jae 0x408e0d
xor ecx, ecx
lea eax, [esi + 1]
mov byte [esp + esi + 0x144], cl
cmp eax, 0x44
jae 0x408e0d
mov byte [esp + eax + 0x144], cl
lea eax, [esi + 2]
cmp eax, 0x44
jae 0x408e0d
push ecx
push ecx
push ecx
mov byte [esp + eax + 0x150], cl
lea eax, [esp + 0x110]
push ecx
push eax
lea eax, [esi + 4]
mov byte [esp + esi + 0x15b], 1
push eax
lea eax, [esp + 0x15c]
push eax
push dword [esp + 0x1d0]
push dword [esp + 0x34]
call fcn.00408997
push 0x20
lea eax, [esp + 0x108]
push eax
lea eax, [esp + 0x12c]
push eax
call fcn.00426180
mov eax, dword [esp + 0x1d8]
add esp, 0xc
dec eax
mov dword [esp + 0xfc], ebx
mov dword [esp + 0xec], eax
xor esi, esi
mov dword [esp + 0xf8], edi
push 0x10
pop eax
push 0x20
mov dword [esp + 0xf4], eax
mov dword [esp + 0xf8], eax
mov dword [esp + 0x104], ebp
mov byte [esp + 0x17], 0
mov byte [esp + 0x16], 0
mov dword [esp + 0x1c], esi
pop ebx
mov edi, dword [esp + esi + 0xec]
test edi, edi
je 0x408d91
mov esi, dword [esp + 0x14]
lea eax, [esp + 0x12]
push eax
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x1b]
push eax
lea eax, [esp + 0x90]
push eax
lea eax, [esp + 0x198]
push eax
push ebx
lea eax, [esp + 0x11c]
push eax
push dword [esp + 0x1d0]
push esi
call fcn.00408997
push ebx
lea eax, [esp + 0x18c]
push eax
lea eax, [esp + 0x10c]
push eax
call fcn.00426180
add esp, 0xc
xor ecx, ecx
mov al, byte [esp + ecx + 0x104]
xor byte [esp + ecx + 0x124], al
inc ecx
cmp ecx, ebx
jb 0x408d75
sub edi, 1
jne 0x408d25
mov esi, dword [esp + 0x18]
push ebx
lea eax, [esp + 0x128]
push eax
push dword [esp + esi + 0x100]
call fcn.00426180
add esi, 4
add esp, 0xc
mov dword [esp + 0x18], esi
cmp esi, 0xc
jb 0x408d16
push 0x44
lea eax, [esp + 0x148]
push eax
call fcn.00414f54
push ebx
lea eax, [esp + 0x128]
push eax
call fcn.00414f54
push ebx
lea eax, [esp + 0x108]
push eax
call fcn.00414f54
push ebx
lea eax, [esp + 0x18c]
push eax
call fcn.00414f54
mov ecx, dword [esp + 0x1a8]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00424c44
add esp, 0x19c
ret 0x20
call fcn.004251f1
int3
Function at 0x40e938
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x4392dd
call fcn.00424ce8
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x40e95a
mov al, 1
jmp 0x40ea96
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x40e978
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x40ea5f
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x40e9cf
xor edi, edi
test esi, esi
je 0x40e9ef
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x40e99f
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 0x40e9e7
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x40e990
jmp 0x40e9e7
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 0x40ea8f
cmp byte [ebx + 0x1e], 0
je 0x40ea8f
cmp dword [ebx + 0x10], 0
jne 0x40ea8f
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x44b0c8
push edi
call fcn.00409206
test al, al
je 0x40ea67
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x40e97b
cmp dword [ebp - 0x30], 0
jbe 0x40e97b
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43b27c]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43b27c]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x40e97b
push 0x43b6c8
lea ecx, [ebp - 0x28]
call fcn.004014a7
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x44b0c8
call fcn.00409629
lea ecx, [ebp - 0x28]
call fcn.00401a66
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.00424c97
ret 8
Function at 0x40ed0f
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x438981
call fcn.00424ce8
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40ed28
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x40edac
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.0041141a
test al, al
je 0x40ed71
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40ed68
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40edac
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40eda3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00424c36
pop ecx
pop ecx
mov eax, edi
call fcn.00424c97
ret 4

Function at 0x40efdf
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x438981
call fcn.00424ce8
mov esi, dword [ebp + 8]
push esi
call fcn.0041115a
movzx eax, ax
cmp eax, 0x2e
je 0x40f021
cmp eax, 0x20
je 0x40f021
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40f00b
mov eax, dword [esi]
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x40f0c0
jmp 0x40f025
xor edi, edi
mov ebx, edi
push esi
call fcn.0040ecfd
test al, al
jne 0x40f0d3
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push esi
call fcn.0041141a
test al, al
je 0x40f06d
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f063
mov eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f0ac
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40f0a3
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00424c36
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x40f0d3
cmp byte [ebp + 0xc], 0
je 0x40f0cf
push dword [ebp + 0x10]
push esi
call fcn.0040f57b
xor eax, eax
jmp 0x40f0eb
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40f0eb
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.00424c97
ret 0xc
Function at 0x40f57b
Capabilities:
Set file attributes

Disassembly:
push 0x24
mov eax, 0x438981
call fcn.00424ce8
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40f594
mov eax, dword [esi]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40f621
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.0041141a
test al, al
je 0x40f5e6
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f5d7
mov eax, dword [ebp - 0x28]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f621
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x40f618
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.00424c36
pop ecx
pop ecx
mov al, bl
call fcn.00424c97
ret 8
Function at 0x40f816
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x43952c
call fcn.00424ce8
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x40f915
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x40f841
mov eax, dword [ebx]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f938
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push ebx
call fcn.0041141a
test al, al
je 0x40f89c
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40f88c
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40f8ed
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x40f8e4
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004019a9
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.00424c36
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x40f938
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40f90b
cmp eax, 3
je 0x40f90b
cmp eax, 0x12
je 0x40f90b
mov al, 1
jmp 0x40f90d
xor al, al
mov byte [edi + 0x5c], al
jmp 0x40f9ef
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40f938
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40f90d
push ebx
mov ecx, edi
call fcn.004025c3
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004014a7
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.00411fcc
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401a66
mov ecx, dword [ebp - 0x25c]
xor eax, eax
add eax, dword [ebp - 0x258]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x278]
adc ecx, 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x270]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x26c]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x268]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x264]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x260]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x264]
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x28]
push eax
call fcn.004178d4
lea eax, [ebp - 0x274]
push eax
lea ecx, [edi + 0x30]
call fcn.004178d4
lea eax, [ebp - 0x26c]
push eax
lea ecx, [edi + 0x38]
call fcn.004178d4
and dword [edi + 0x58], 0
mov eax, esi
call fcn.00424c97
ret 0xc
Function at 0x41013e
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x448778]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x44b0e0], 0
jne 0x4101a1
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x410191
jne 0x41018d
cmp dword [ebp - 0x74], 0x55f0
jb 0x41018d
call fcn.004101e9
test al, al
je 0x410191
xor al, al
jmp 0x410193
mov al, 1
mov byte [0x44b0e1], al
mov byte [0x44b0e0], 1
jmp 0x4101a6
mov al, byte [0x44b0e1]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00424c44
add ebp, 0x98
leave
ret
Function at 0x414910
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ecx
mov edx, ecx
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x18]
lea eax, [edx + 0x18]
mov dword [esp + 8], eax
movups xmm2, xmmword [edx + 8]
test esi, esi
je 0x414990
mov ecx, dword [esp + 0x10]
mov eax, ecx
add ecx, 0x10
mov dword [esp + 0x10], ecx
mov ecx, dword [edx + 4]
movups xmm3, xmmword [eax]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 8]
dec ecx
movups xmm1, xmmword [eax]
pxor xmm1, xmm3
test ecx, ecx
jle 0x41496d
mov eax, ecx
shl eax, 4
add eax, dword [esp + 8]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x41495d
cmp byte [edx + 1], 0
movups xmm0, xmmword [edx + 0x18]
aesdeclast xmm1, xmm0
je 0x414980
pxor xmm1, xmm2
mov eax, edi
movaps xmm2, xmm3
add edi, 0x10
movups xmmword [eax], xmm1
sub esi, 1
jne 0x41492c
pop edi
movups xmmword [edx + 8], xmm2
pop esi
pop ecx
ret 0xc

Function at 0x4149c4
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x448778]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push ebp
mov ebp, ecx
xor ebx, ebx
inc ebx
mov dword [esp + 0x14], ebp
mov dword [esp + 8], ebx
cmp dword [ebp + 4], ebx
jle 0x414a7d
push esi
push edi
lea edi, [ebp + 0x28]
mov dword [esp + 0x14], edi
lea eax, [edi + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea ebx, [esp + 0x20]
mov ebp, eax
push 4
add ebx, esi
pop edi
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x451df8]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x4515f8]
xor dl, byte [esi + eax*4 + 0x4511f8]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x4519f8]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x414a07
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x4149fc
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.00426180
mov ebx, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc ebx
add edi, 0x10
mov dword [esp + 0x10], ebx
mov dword [esp + 0x14], edi
cmp ebx, dword [ebp + 4]
jl 0x4149f3
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.00424c44
add esp, 0x24
ret