joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4db09c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
push ebp
push 0x4db178
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x31], 0
mov byte [ebx + 0x4c], 1
mov byte [ebx + 0x30], 0
mov eax, dword [ebx + 0x44]
mov byte [eax + 8], 0
mov eax, dword [ebx + 0x34]
mov dword [eax + 0x38], 5
mov dword [eax + 0x3c], 4
mov byte [eax + 4], 1
mov eax, dword [ebx + 0x3c]
add eax, 4
mov edx, dword [0x4eddac]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 8
mov edx, dword [0x4edb20]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 0xc
mov edx, dword [0x4eda4c]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 0x10
mov edx, dword [0x4ed688]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 4
mov edx, dword [0x4ed9f8]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 8
mov edx, dword [0x4ed920]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0x10
mov edx, dword [0x4ed774]
mov edx, dword [edx]
call fcn.00404d28
mov dword [ebx + 0x54], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4db182
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4db40c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
push ebp
push 0x4db4e4
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x31], 0
mov byte [ebx + 0x30], 1
mov eax, dword [ebx + 0x44]
mov byte [eax + 8], 0
mov eax, dword [ebx + 0x34]
mov dword [eax + 0x38], 6
mov dword [eax + 0x3c], 4
mov byte [eax + 4], 1
mov eax, dword [ebx + 0x3c]
add eax, 4
mov edx, dword [0x4edc4c]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 8
mov edx, dword [0x4ed994]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 0xc
mov edx, dword [0x4ed8b0]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 0x10
mov edx, dword [0x4edd04]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 4
mov edx, dword [0x4ed860]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 8
mov edx, dword [0x4ed78c]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0x10
mov edx, dword [0x4ede0c]
mov edx, dword [edx]
call fcn.00404d28
mov dword [ebx + 0x54], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4db4ee
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4db71c
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
push ebp
push 0x4db879
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x70], 0
mov eax, dword [ebx + 0x44]
add eax, 0x18
mov edx, dword [0x4ed7a0]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x44]
add eax, 0x1c
mov edx, dword [0x4edbd4]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x44]
mov byte [eax + 8], 1
mov byte [eax + 0x20], 7
mov dword [eax + 0x28], 8
mov dword [eax + 0x2c], 8
mov dword [eax + 0x34], 3
mov byte [eax + 9], 0
mov byte [ebx + 0x18], 1
mov eax, dword [ebx + 0x44]
xor edx, edx
mov dword [eax + 0x30], edx
mov byte [eax + 0xa], 0
mov byte [eax + 0x21], 2
mov eax, dword [ebx + 0x34]
mov byte [eax + 4], 0
mov dword [eax + 0x38], 6
mov eax, dword [ebx + 0x3c]
add eax, 4
mov edx, dword [0x4edc8c]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 8
mov edx, dword [0x4eda04]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 0xc
mov edx, dword [0x4ed924]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 0x10
mov edx, dword [0x4edd5c]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 4
mov edx, dword [0x4ed8d8]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 8
mov edx, dword [0x4ed7f4]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0xc
mov edx, dword [0x4ed9a8]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0x1c
mov edx, dword [0x4ed9cc]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0x24
mov edx, dword [0x4eda10]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0x28
mov edx, dword [0x4ed9b4]
mov edx, dword [edx]
call fcn.00404d28
mov dword [ebx + 0x54], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4db883
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4dbcf0
Capabilities:
Access peb ldr_data
Get process heap flags
Get process heap force flags

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
xor edx, edx
push ebp
push 0x4dbe5d
push dword fs:[edx]
mov dword fs:[edx], esp
mov byte [ebx + 0x64], 0
mov byte [ebx + 0x70], 0
mov byte [ebx + 0x31], 1
mov eax, dword [ebx + 0x44]
add eax, 0x18
mov edx, dword [0x4ed710]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x44]
add eax, 0x1c
mov edx, dword [0x4edb44]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x44]
mov byte [eax + 8], 1
mov byte [eax + 0x20], 8
mov dword [eax + 0x28], 8
mov dword [eax + 0x2c], 8
mov dword [eax + 0x34], 3
mov byte [eax + 9], 0
xor edx, edx
mov dword [eax + 0x30], edx
mov byte [eax + 0xa], 0
mov byte [eax + 0x21], 2
mov eax, dword [ebx + 0x34]
mov byte [eax + 4], 1
mov dword [eax + 0x38], 6
mov eax, dword [ebx + 0x3c]
add eax, 4
mov edx, dword [0x4edc0c]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 8
mov edx, dword [0x4ed960]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 0xc
mov edx, dword [0x4ed868]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x3c]
add eax, 0x10
mov edx, dword [0x4edcb4]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0x20
mov edx, dword [0x4edde0]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 4
mov edx, dword [0x4ed824]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 8
mov edx, dword [0x4ed770]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0xc
mov edx, dword [0x4ed900]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0x1c
mov edx, dword [0x4ed938]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0x24
mov edx, dword [0x4ed968]
mov edx, dword [edx]
call fcn.00404d28
mov eax, dword [ebx + 0x38]
add eax, 0x28
mov edx, dword [0x4ed928]
mov edx, dword [edx]
call fcn.00404d28
mov dword [ebx + 0x54], ebx
mov eax, dword [ebx]
mov eax, dword [eax + 0xc]
mov dword [ebx + 0x50], eax
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4dbe67
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4e7374
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov ebx, eax
mov eax, ebx
call fcn.0048bb74
xor edx, edx
push ebp
push 0x4e73e6
push dword fs:[edx]
mov dword fs:[edx], esp
mov eax, dword [ebx + 0x70]
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 4]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 8]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0xc]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x10]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x14]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x18]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov ecx, dword [eax + 0x1c]
mov byte [ecx + 0x30], dl
mov dl, byte [ebx + 0x30]
mov eax, dword [eax + 0x20]
mov byte [eax + 0x30], dl
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
jmp 0x4e73f0
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401610
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
je 0x401642
test dl, 7
je 0x401642
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x432d80]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x401622
cmp esi, 8
jb 0x4016d2
push edi
mov edi, esi
shr edi, 3
xor ebx, dword [edx]
sub esi, 8
mov edx, dword [edx + 4]
mov ecx, edx
shr ecx, 0x18
mov eax, edx
shr eax, 0x10
movzx eax, al
mov ecx, dword [ecx*4 + 0x432d80]
xor ecx, dword [eax*4 + 0x433180]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x433580]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x433d80]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x434180]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x434580]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x433980]
movzx eax, bl
xor ecx, dword [eax*4 + 0x434980]
mov ebx, ecx
sub edi, 1
jne 0x401651
pop edi
test esi, esi
je 0x4016ee
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x432d80]
inc edx
sub esi, 1
jne 0x4016d6
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401cee
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, ecx
push edi
cmp dword [esi + 0xc], 1
jne 0x401d07
push 0xfffffffffffffff6
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [esi + 4], eax
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x401d7a
mov ecx, esi
call fcn.00401dfd
test al, al
je 0x401d42
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401d42
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401cee
jmp 0x401d7d
cmp dword [esi + 0xc], 1
jne 0x401d57
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401d57
xor eax, eax
jmp 0x401d7d
cmp dword [esi + 0xc], 0
jne 0x401d75
mov edi, 0x8000
cmp dword [ebp + 0xc], edi
jbe 0x401d75
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401d75
push edi
jmp 0x401d36
or eax, 0xffffffff
jmp 0x401d7d
mov eax, dword [ebp - 4]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x401e30
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1054
call fcn.00413660
push ebx
mov ebx, dword [esp + 0x1060]
push ebp
push edi
mov edi, ecx
and dword [edi + 0x1024], 0
cmp byte [edi + 0x22], 0
jne 0x401e5c
test bl, 4
jne 0x401e5c
xor cl, cl
jmp 0x401e5e
mov cl, 1
mov eax, ebx
shr eax, 1
push esi
and al, 1
movzx esi, al
neg esi
sbb esi, esi
and esi, 0xc0000000
add esi, 0x80000000
test bl, 1
je 0x401e83
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401e92
or ebx, 2
xor eax, eax
lea ecx, [esp + 0x1c]
cmp byte [edi + 0x1b], al
setne al
dec eax
and eax, 0x8000000
mov dword [esp + 0x10], eax
call fcn.00401ac4
cmp byte [edi + 0x20], 0
je 0x401eb9
or esi, 0x100
push 0
push dword [esp + 0x14]
push 3
push 0
push ebx
push esi
push dword [esp + 0x1080]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x1070]
call fcn.004033d9
test al, al
je 0x401f2a
push 0
push dword [esp + 0x14]
lea eax, [esp + 0x24]
push 3
push 0
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x401f25
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x401f3b
cmp dword [esp + 0x14], 2
jne 0x401f3b
mov dword [edi + 0x1024], 1
cmp byte [edi + 0x20], 0
pop esi
je 0x401f61
cmp ebp, 0xffffffff
je 0x401f61
or dword [esp + 0x10], 0xffffffff
lea eax, [esp + 0x10]
or dword [esp + 0x14], 0xffffffff
push 0
push eax
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileTime]
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x18], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
cmp ebp, 0xffffffff
je 0x401f93
push 0x800
push dword [esp + 0x1068]
lea ecx, [edi + 0x24]
mov dword [edi + 4], ebp
push ecx
call fcn.00406748
mov byte [edi + 0x21], 0
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1054
ret 8
Function at 0x40230f
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov ebx, ecx
test ebp, ebp
jne 0x402324
mov al, 1
jmp 0x402428
cmp dword [ebx + 0xc], 1
jne 0x402335
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov dword [ebx + 4], eax
push esi
push edi
mov edi, 0x4000
and dword [esp + 0x10], 0
cmp dword [ebx + 0xc], 0
mov byte [esp + 0x14], 0
je 0x402389
xor esi, esi
test ebp, ebp
je 0x4023ad
mov eax, ebp
sub eax, esi
cmp eax, edi
jb 0x40235c
mov eax, edi
push 0
lea ecx, [esp + 0x14]
push ecx
push eax
mov eax, dword [esp + 0x28]
add eax, esi
push eax
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
add al, 1
mov dword [esp + 0x14], eax
je 0x4023ad
add esi, edi
cmp esi, ebp
jb 0x402352
jmp 0x4023a9
push 0
lea eax, [esp + 0x14]
push eax
push ebp
push dword [esp + 0x28]
push dword [ebx + 4]
call dword [sym.imp.KERNEL32.dll_WriteFile]
dec eax
neg eax
sbb al, al
inc al
mov dword [esp + 0x14], eax
test al, al
jne 0x40241e
cmp byte [ebx + 0x1a], 0
je 0x40241e
cmp dword [ebx + 0xc], 0
jne 0x40241e
push 0
lea esi, [ebx + 0x24]
mov ecx, 0x451b84
push esi
call fcn.004017d2
test al, al
je 0x402411
cmp dword [esp + 0x10], ebp
jae 0x40233c
cmp dword [esp + 0x10], 0
jbe 0x40233c
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x428220]
mov ecx, ebx
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x428220]
mov ecx, ebx
call dword [edi + 0x10]
jmp 0x402337
push esi
push 0
mov ecx, 0x451b84
call fcn.00401a1b
mov al, byte [esp + 0x14]
pop edi
mov byte [ebx + 8], 1
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413660
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4025b9
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004033d9
test al, al
je 0x4025b9
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x4025f6
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413660
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.004036e8
movzx eax, word [eax]
cmp eax, 0x2e
je 0x402627
cmp eax, 0x20
je 0x402627
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40265a
push esi
call fcn.00402560
test al, al
jne 0x40266d
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.004033d9
test al, al
je 0x40266d
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40266d
cmp byte [ebp + 0xc], 0
je 0x402669
push dword [ebp + 0x10]
push esi
call fcn.00402833
xor eax, eax
jmp 0x402685
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402682
cmp eax, 3
je 0x402682
xor eax, eax
inc eax
jmp 0x402685
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc

Function at 0x402833
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413660
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test bl, bl
jne 0x402883
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004033d9
test al, al
je 0x402883
push dword [ebp + 0xc]
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x4029e3
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.00413660
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebx, 0xffffffff
mov ebp, 0x800
push eax
cmp esi, ebx
jne 0x402a80
push dword [esp + 0x126c]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebx
jne 0x402aa7
push ebp
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.004033d9
test al, al
je 0x402a59
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebx
jne 0x402aa7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402a73
cmp eax, 3
je 0x402a73
cmp eax, 0x12
je 0x402a73
xor eax, eax
inc eax
jmp 0x402a75
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x402b50
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402a9f
mov esi, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebx
je 0x402b50
push ebp
push dword [esp + 0x126c]
push edi
call fcn.00406748
push ebp
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004037bf
mov ecx, dword [esp + 0x2c]
xor eax, eax
add eax, dword [esp + 0x30]
mov dword [edi + 0x1000], eax
mov eax, dword [esp + 0x10]
adc ecx, 0
mov dword [edi + 0x1008], eax
mov eax, dword [esp + 0x14]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x18]
mov dword [edi + 0x102c], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x20]
mov dword [edi + 0x1034], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1038], eax
mov eax, dword [esp + 0x28]
mov dword [edi + 0x103c], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x1004], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.004071da
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.004071da
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.004071da
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x4033d9
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00413660
push esi
mov esi, dword [ebp + 8]
cmp word [esi], 0
jne 0x4033f7
xor al, al
jmp 0x403561
push ebx
push edi
push esi
call fcn.00403568
push esi
call fcn.00418973
pop ecx
push esi
mov edi, eax
call fcn.00403594
test al, al
je 0x403489
push esi
call fcn.00403568
test al, al
je 0x403440
lea eax, [edi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x40355d
push dword [ebp + 0x10]
push 0x4285a8
push dword [ebp + 0xc]
call fcn.00406748
push dword [ebp + 0x10]
jmp 0x403550
push 0x5c
pop eax
cmp word [esi], ax
jne 0x40355d
lea ebx, [esi + 2]
cmp word [ebx], ax
jne 0x40355d
mov esi, dword [ebp + 0x10]
lea eax, [edi + 6]
cmp esi, eax
jbe 0x40355d
push esi
push 0x4285a8
push dword [ebp + 0xc]
call fcn.00406748
push esi
push 0x4285b4
push dword [ebp + 0xc]
call fcn.00406720
push esi
push ebx
jmp 0x403551
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x40355d
cmp eax, ebx
ja 0x40355d
movzx eax, word [esi]
push eax
call fcn.004035ca
test al, al
je 0x4034f0
lea eax, [edi + 6]
mov edi, dword [ebp + 0x10]
cmp edi, eax
jbe 0x40355d
push edi
push 0x4285a8
push dword [ebp + 0xc]
call fcn.00406748
xor eax, eax
mov word [ebp - 0xffc], ax
lea eax, [ebp - 0x1000]
push edi
push eax
push dword [ebp + 0xc]
call fcn.00406720
jmp 0x40354f
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00403006
lea eax, [ebp - 0x1000]
push eax
call fcn.00418973
add edi, 4
add eax, edi
mov edi, dword [ebp + 0x10]
pop ecx
cmp edi, eax
jbe 0x40355d
push edi
push 0x4285a8
push dword [ebp + 0xc]
call fcn.00406748
push edi
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 0xc]
call fcn.00406720
cmp word [esi], 0x2e
jne 0x40354f
movzx eax, word [esi + 2]
push eax
call fcn.004035ca
test al, al
je 0x40354f
add esi, 4
push edi
push esi
push dword [ebp + 0xc]
call fcn.00406720
mov al, 1
jmp 0x40355f
xor al, al
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x405395
Capabilities:
Encrypt data using aes via x86 extensions

Disassembly:
push ecx
cmp dword [esp + 0xc], 0
movups xmm1, xmmword [ecx + 8]
push esi
mov esi, dword [esp + 0xc]
push edi
lea edi, [ecx + 0x18]
jbe 0x405410
mov edx, dword [esp + 0x18]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x4053c0
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x4053f2
lea edx, [edi + 0x10]
lea edi, [eax - 1]
mov dword [esp + 8], edi
lea edi, [ecx + 0x18]
sub dword [esp + 8], 1
movups xmm0, xmmword [edx]
lea edx, [edx + 0x10]
aesenc xmm1, xmm0
jne 0x4053dc
mov edx, dword [esp + 0x18]
add eax, eax
movups xmm0, xmmword [edi + eax*8]
mov eax, edx
add edx, 0x10
sub dword [esp + 0x14], 1
aesenclast xmm1, xmm0
mov dword [esp + 0x18], edx
movups xmmword [eax], xmm1
jne 0x4053ae
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
pop ecx
ret 0xc

Function at 0x40541a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x20
push ebp
push edi
mov ebp, ecx
xor edi, edi
inc edi
mov dword [esp + 0x14], ebp
mov dword [esp + 8], edi
cmp dword [ebp + 4], edi
jle 0x4054c8
push ebx
lea ebx, [ebp + 0x28]
push esi
mov dword [esp + 0x14], ebx
lea eax, [ebx + 2]
xor esi, esi
mov dword [esp + 0x18], eax
lea edi, [esp + 0x20]
mov ebp, eax
push 4
add edi, esi
pop ebx
movzx eax, byte [ebp + 1]
movzx ecx, byte [ebp - 1]
mov dl, byte [esi + eax*4 + 0x43bbf0]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x43b3f0]
xor dl, byte [esi + eax*4 + 0x43aff0]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x43b7f0]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x405452
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x405447
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.00414f50
mov edi, dword [esp + 0x1c]
add esp, 0xc
mov ebp, dword [esp + 0x1c]
inc edi
add ebx, 0x10
mov dword [esp + 0x10], edi
mov dword [esp + 0x14], ebx
cmp edi, dword [ebp + 4]
jl 0x40543e
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret