joyce8/EMBER2024-capa huggingface dataset:
Function at 0x968c8c
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x14]
push ebx
mov edx, dword [esp + 0x1c]
push ebp
push esi
mov esi, dword [esp + 0x1c]
mov ecx, 8
push edi
mov ebp, dword [esi + 0x4834]
mov edi, dword [eax + 0x2c]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x24], ecx
mov ecx, dword [esi + 0x78]
mov dword [esp + 0x14], ebp
dec ecx
mov dword [esp + 0x18], edi
cmp edx, ecx
mov edx, dword [esp + 0x2c]
jne 0x968ce6
mov ecx, dword [esi + 0x24]
and ecx, 7
je 0x968cd5
mov dword [esp + 0x20], ecx
mov ebx, dword [esi + 0x3c]
lea ecx, [edx + 1]
imul ebx, ecx
mov ecx, dword [esi + 0x20]
lea ecx, [ecx + ebx*8]
jmp 0x968cec
mov ecx, dword [esi + 0x30]
lea ecx, [edi + ecx*8]
mov dword [eax + 0x2c], ecx
mov eax, dword [esi + 0x7c]
dec eax
cmp edx, eax
jne 0x968d11
mov eax, dword [esi + 0x28]
cdq
xor eax, edx
sub eax, edx
and eax, 0x80000007
jns 0x968d0b
dec eax
or eax, 0xfffffff8
inc eax
je 0x968d11
mov dword [esp + 0x24], eax
mov ecx, dword [esi + 0x54]
xor eax, eax
test ecx, ecx
mov dword [esp + 0x28], eax
jle 0x968e53
lea ecx, [edi + 2]
mov dword [esp + 0x2c], ecx
jmp 0x968d2f
mov edi, dword [esp + 0x18]
cmp dword [esi + 0x34], 2
jne 0x968d41
cmp dword [esi + 0x58], 1
jne 0x968d41
mov edi, dword [esp + 0x2c]
jmp 0x968d43
add edi, eax
mov eax, dword [esp + 0x24]
xor edx, edx
test eax, eax
jle 0x968dec
mov eax, dword [esp + 0x20]
lea ebx, [ebp + eax*2]
mov dword [esp + 0x10], ebx
mov ecx, dword [esp + 0x20]
xor eax, eax
test ecx, ecx
jle 0x968dad
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x968d87
cmp dword [esi + 0x34], 4
jne 0x968d87
cmp dword [esi + 0x58], 3
jne 0x968d87
lea ecx, [eax + edx*8]
mov word [ebp + ecx*2], 0
jmp 0x968da4
mov ecx, dword [esi + 0x30]
lea ebx, [eax + edx*8]
imul ecx, eax
movzx cx, byte [ecx + edi]
sub ecx, 0x80
mov word [ebp + ebx*2], cx
mov ebx, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
inc eax
cmp eax, ecx
jl 0x968d67
mov ecx, dword [esp + 0x20]
mov eax, 8
cmp ecx, eax
jge 0x968dd3
mov ebp, dword [esp + 0x20]
mov ecx, ebx
sub eax, ebp
mov bp, word [ebx - 2]
mov word [ecx], bp
add ecx, 2
dec eax
jne 0x968dc2
mov ebp, dword [esp + 0x14]
mov ecx, dword [esi + 0x3c]
mov eax, dword [esp + 0x24]
add edi, ecx
inc edx
add ebx, 0x10
cmp edx, eax
mov dword [esp + 0x10], ebx
jl 0x968d5d
mov edx, dword [esp + 0x24]
lea ecx, [edx*8]
cmp ecx, 0x40
jge 0x968e2c
mov edi, 0x47
lea eax, [ebp + ecx*2]
sub edi, ecx
shr edi, 3
mov ecx, dword [esp + 0x24]
mov edx, 8
shl ecx, 4
lea ecx, [ecx + ebp - 0x10]
mov bx, word [ecx]
add ecx, 2
mov word [eax], bx
add eax, 2
dec edx
jne 0x968e1a
dec edi
jne 0x968e0a
mov eax, dword [esp + 0x28]
mov edx, dword [esp + 0x2c]
mov ecx, dword [esi + 0x54]
add ebp, 0x80
inc eax
dec edx
cmp eax, ecx
mov dword [esp + 0x14], ebp
mov dword [esp + 0x28], eax
mov dword [esp + 0x2c], edx
jl 0x968d2b
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x40172c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x818
mov eax, dword [0x40600c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0x18]
push ebx
push esi
mov esi, dword [ebp + 0x1c]
xor ebx, ebx
push edi
mov edi, dword [ebp + 8]
push eax
push ecx
push dword [ebp + 0xc]
lea eax, [ebp - 0x804]
mov dword [ebp - 0x818], edx
push 0x400
push eax
call fcn.0040196b
add esp, 0x14
test eax, eax
js 0x4017fe
lea eax, [ebp - 0x808]
mov dword [ebp - 0x808], ebx
push eax
push 1
push ebx
lea eax, [ebp - 0x804]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017fe
push 4
pop edi
lea eax, [ebp - 0x814]
mov dword [ebp - 0x80c], ebx
push eax
lea eax, [ebp - 0x810]
mov dword [ebp - 0x810], ebx
push eax
lea eax, [ebp - 0x80c]
mov dword [ebp - 0x814], edi
push eax
push ebx
push dword [ebp - 0x818]
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x4017f2
cmp dword [ebp - 0x80c], edi
jne 0x4017f2
cmp dword [ebp - 0x810], eax
mov bl, 1
setne al
mov dword [esi], eax
push dword [ebp - 0x808]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
mov al, bl
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004028f0
leave
ret

Function at 0x401f72
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
lea eax, [ebp - 4]
xor esi, esi
push eax
push 0x20019
push esi
push str.SoftwarePoliciesAdobeAcrobat_ReaderDCFeatureLockDown
push 0x80000002
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x401fde
lea eax, [ebp - 0x10]
mov dword [ebp - 8], esi
push eax
lea eax, [ebp - 0xc]
mov dword [ebp - 0xc], esi
push eax
lea eax, [ebp - 8]
mov dword [ebp - 0x10], 4
push eax
push esi
push str.bEnableATL7Compat
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x401fd5
cmp dword [ebp - 8], 4
jne 0x401fd5
inc eax
cmp dword [ebp - 0xc], eax
cmove esi, eax
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
leave
ret

Function at 0x401fe3
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 8]
push esi
push edi
push eax
push 0x20019
xor edi, edi
xor esi, esi
push edi
push str.SoftwareAdobeAdobe_AcrobatDCSecurity
push 0x80000002
inc esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x402049
lea eax, [ebp - 0xc]
mov dword [ebp - 0x10], edi
push eax
lea eax, [ebp - 4]
mov dword [ebp - 4], edi
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0xc], 4
push eax
push edi
push 0x404588
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x402040
cmp dword [ebp - 4], eax
cmove esi, eax
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x40547d
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14c
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.0040573b
test bl, 8
mov dword [ebp - 0xc], eax
je 0x4054bc
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
neg eax
sbb eax, eax
inc eax
add dword [0x423768], eax
jmp 0x405646
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4054d6
test eax, eax
je 0x4055f4
test bl, 2
je 0x4055f4
mov esi, 0x420ce0
push edi
push esi
call fcn.00405bbd
cmp dword [ebp + 8], 0
je 0x4054f5
push 0x40937c
push esi
call sub.KERNEL32.dll_lstrcatA
jmp 0x4054fb
push edi
call fcn.00405694
cmp byte [edi], 0
jne 0x405509
cmp byte [0x420ce0], 0x5c
jne 0x405514
push 0x409014
push edi
call sub.KERNEL32.dll_lstrcatA
push edi
call sub.KERNEL32.dll_lstrlenA
mov ebx, eax
lea eax, [ebp - 0x14c]
push eax
push esi
add ebx, edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
je 0x4055ea
lea eax, [ebp - 0x120]
push 0x3f
push eax
lea esi, [ebp - 0x120]
call fcn.00405678
cmp byte [eax], 0
je 0x40555a
cmp byte [ebp - 0x1c], 0
je 0x40555a
lea esi, [ebp - 0x1c]
cmp byte [esi], 0x2e
jne 0x405570
mov al, byte [esi + 1]
test al, al
je 0x4055c9
cmp al, 0x2e
jne 0x405570
cmp byte [esi + 2], 0
je 0x4055c9
push esi
push ebx
call fcn.00405bbd
test byte [ebp - 0x14c], 0x10
je 0x405595
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x4055c9
push dword [ebp + 0xc]
push edi
call fcn.0040547d
jmp 0x4055c9
push dword [ebp - 4]
push edi
call fcn.00405435
test eax, eax
jne 0x4055c1
cmp dword [ebp - 4], eax
je 0x4055b9
push edi
push 0xfffffffffffffff1
call fcn.00404ea6
push 0
push edi
call fcn.00405a71
jmp 0x4055c9
inc dword [0x423768]
jmp 0x4055c9
push edi
push 0xfffffffffffffff2
call fcn.00404ea6
lea eax, [ebp - 0x14c]
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x405538
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x4055f4
and byte [ebx - 1], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405646
cmp dword [ebp - 0xc], esi
jne 0x405608
inc dword [0x423768]
jmp 0x405646
push edi
call fcn.00405ec1
test eax, eax
je 0x405646
push edi
call fcn.0040564d
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405435
test eax, eax
jne 0x40563e
cmp dword [ebp - 4], esi
je 0x405600
push edi
push 0xfffffffffffffff1
call fcn.00404ea6
push esi
push edi
call fcn.00405a71
jmp 0x405646
push edi
push 0xffffffffffffffe5
call fcn.00404ea6
pop edi
pop esi
pop ebx
leave
ret 8
Function at 0x4015ae
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 0x4015e0
test dl, 7
je 0x4015e0
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42fa30]
inc edx
mov dword [ebp + 0xc], edx
sub esi, 1
jne 0x4015c0
cmp esi, 8
jb 0x401670
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 + 0x42fa30]
xor ecx, dword [eax*4 + 0x42fe30]
mov eax, edx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x430230]
mov eax, ebx
shr eax, 0x18
xor ecx, dword [eax*4 + 0x430a30]
mov eax, ebx
shr eax, 0x10
movzx eax, al
xor ecx, dword [eax*4 + 0x430e30]
mov eax, ebx
shr eax, 8
movzx eax, al
xor ecx, dword [eax*4 + 0x431230]
movzx eax, dl
mov edx, dword [ebp + 0xc]
add edx, 8
mov dword [ebp + 0xc], edx
xor ecx, dword [eax*4 + 0x430630]
movzx eax, bl
xor ecx, dword [eax*4 + 0x431630]
mov ebx, ecx
sub edi, 1
jne 0x4015ef
pop edi
test esi, esi
je 0x40168c
movzx ecx, byte [edx]
movzx eax, bl
xor ecx, eax
shr ebx, 8
xor ebx, dword [ecx*4 + 0x42fa30]
inc edx
sub esi, 1
jne 0x401674
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc

Function at 0x401c0b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
cmp dword [esi + 0xc], 1
jne 0x401c24
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 0x401c97
mov ecx, esi
call fcn.00401cf8
test al, al
je 0x401c5f
mov eax, 0x4e20
cmp dword [ebp + 0xc], eax
jbe 0x401c5f
push eax
push dword [ebp + 8]
mov ecx, esi
call fcn.00401c0b
jmp 0x401c9a
cmp dword [esi + 0xc], 1
jne 0x401c74
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x6d
jne 0x401c74
xor eax, eax
jmp 0x401c9a
cmp dword [esi + 0xc], 0
jne 0x401c92
mov ebx, 0x8000
cmp dword [ebp + 0xc], ebx
jbe 0x401c92
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x21
jne 0x401c92
push ebx
jmp 0x401c53
or eax, 0xffffffff
jmp 0x401c9a
mov eax, dword [ebp - 4]
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x401d23
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1008
call fcn.00411a60
push ebx
mov ebx, dword [esp + 0x1014]
xor edx, edx
push ebp
push edi
mov edi, ecx
mov dword [edi + 0x1020], edx
cmp byte [edi + 0x1c], dl
jne 0x401d4d
mov cl, dl
test bl, 4
je 0x401d4f
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 0x401d74
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x401d83
or ebx, 2
xor eax, eax
cmp byte [edi + 0x15], al
push edx
setne al
dec eax
and eax, 0x8000000
push eax
push 3
push edx
push ebx
push esi
push dword [esp + 0x1034]
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x401e12
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
lea eax, [esp + 0x18]
push 0x800
push eax
push dword [esp + 0x1024]
call fcn.004031fd
test al, al
je 0x401e01
push 0
push dword [esp + 0x18]
lea eax, [esp + 0x20]
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 0x401dfc
mov dword [esp + 0x10], eax
cmp ebp, 0xffffffff
jne 0x401e12
cmp dword [esp + 0x10], 2
jne 0x401e12
mov dword [edi + 0x1020], 1
xor eax, eax
cmp ebp, 0xffffffff
mov byte [edi + 0x12], al
setne bl
mov dword [edi + 0xc], eax
mov byte [edi + 0x10], al
pop esi
cmp ebp, 0xffffffff
je 0x401e41
push 0x800
push dword [esp + 0x101c]
lea ecx, [edi + 0x1e]
mov dword [edi + 4], ebp
push ecx
call fcn.00405b8a
pop edi
pop ebp
mov al, bl
pop ebx
add esp, 0x1008
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411a60
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4023eb
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004031fd
test al, al
je 0x4023eb
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 0x402428
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411a60
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00403508
movzx eax, word [eax]
cmp eax, 0x2e
je 0x402459
cmp eax, 0x20
je 0x402459
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x40248c
push esi
call fcn.00402392
test al, al
jne 0x40249f
push 0x800
lea eax, [ebp - 0x1000]
push eax
push esi
call fcn.004031fd
test al, al
je 0x40249f
push 0
lea eax, [ebp - 0x1000]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40249f
cmp byte [ebp + 0xc], 0
je 0x40249b
push dword [ebp + 0x10]
push esi
call fcn.00402665
xor eax, eax
jmp 0x4024b7
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x4024b4
cmp eax, 3
je 0x4024b4
xor eax, eax
inc eax
jmp 0x4024b7
push 2
pop eax
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x402665
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411a60
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 0x4026b5
push 0x800
lea eax, [ebp - 0x1000]
push eax
push dword [ebp + 8]
call fcn.004031fd
test al, al
je 0x4026b5
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 0x402812
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1250
call fcn.00411a60
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1260]
lea eax, [esp + 0xc]
push edi
mov edi, dword [esp + 0x126c]
or ebp, 0xffffffff
push eax
cmp esi, ebp
jne 0x4028ac
push dword [esp + 0x126c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindFirstFileW]
call ebx
mov esi, eax
cmp esi, ebp
jne 0x4028d3
push 0x800
lea eax, [esp + 0x264]
push eax
push dword [esp + 0x1270]
call fcn.004031fd
test al, al
je 0x402885
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call ebx
mov esi, eax
cmp esi, ebp
jne 0x4028d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40289f
cmp eax, 3
je 0x40289f
cmp eax, 0x12
je 0x40289f
xor eax, eax
inc eax
jmp 0x4028a1
xor eax, eax
mov byte [edi + 0x1044], al
jmp 0x402981
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x4028cb
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
mov byte [edi + 0x1044], al
cmp esi, ebp
je 0x402981
mov ebx, 0x800
push ebx
push dword [esp + 0x126c]
push edi
call fcn.00405b8a
push ebx
lea eax, [esp + 0x40]
push eax
push edi
call fcn.004035df
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.004065ad
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.004065ad
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.004065ad
and dword [edi + 0x1040], 0
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1250
ret 0xc
Function at 0x4031fd
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1000
call fcn.00411a60
push edi
mov edi, dword [ebp + 8]
cmp word [edi], 0
jne 0x40321b
xor al, al
jmp 0x40339d
push esi
push edi
call fcn.004033a4
push edi
call fcn.00416cb5
pop ecx
push edi
mov esi, eax
call fcn.004033d0
test al, al
je 0x4032bb
push edi
call fcn.004033a4
test al, al
je 0x40326a
lea eax, [esi + 4]
cmp dword [ebp + 0x10], eax
jbe 0x4032b4
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.00418076
lea eax, [esi + 8]
push edi
push eax
call fcn.00416c93
add esp, 0x14
jmp 0x4032ad
push 0x5c
pop eax
cmp word [edi], ax
jne 0x4032b4
add edi, 2
cmp word [edi], ax
jne 0x4032b4
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x4032b4
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.00418076
lea eax, [esi + 8]
push 0x42530c
push eax
call fcn.00416c93
lea eax, [esi + 0xe]
push edi
push eax
call fcn.00416c93
add esp, 0x1c
mov al, 1
jmp 0x40339c
xor al, al
jmp 0x40339c
push ebx
lea eax, [ebp - 0x1000]
mov ebx, 0x7ff
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x403399
cmp eax, ebx
ja 0x403399
movzx eax, word [edi]
push eax
call fcn.00403406
test al, al
je 0x403329
lea eax, [esi + 6]
cmp dword [ebp + 0x10], eax
jbe 0x403399
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.00418076
push 2
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00418076
lea eax, [esi + 0xc]
push edi
push eax
call fcn.00416c93
add esp, 0x20
jmp 0x403395
push 0x800
lea eax, [ebp - 0x1000]
push eax
call fcn.00402e0f
lea eax, [ebp - 0x1000]
push eax
call fcn.00416cb5
add eax, 4
add eax, esi
pop ecx
cmp dword [ebp + 0x10], eax
jbe 0x403399
mov esi, dword [ebp + 0xc]
push 4
push 0x425300
push esi
call fcn.00418076
lea eax, [ebp - 0x1000]
push eax
lea eax, [esi + 8]
push eax
call fcn.00416c93
add esp, 0x14
cmp word [edi], 0x2e
jne 0x40338b
movzx eax, word [edi + 2]
push eax
call fcn.00403406
test al, al
je 0x40338b
add edi, 4
push dword [ebp + 0x10]
push edi
push esi
call fcn.00405b5e
mov al, 1
jmp 0x40339b
xor al, al
pop ebx
pop esi
pop edi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x40480c
Capabilities:
Encrypt data using aes via x86 extensions

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

Function at 0x40488f
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 0x40493d
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 + 0x4368a0]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x4360a0]
xor dl, byte [esi + eax*4 + 0x435ca0]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x4364a0]
mov byte [edi], dl
lea edi, [edi + 4]
sub ebx, 1
jne 0x4048c7
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x4048bc
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push ebx
call fcn.004132a0
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 0x4048b3
pop esi
pop ebx
pop edi
pop ebp
add esp, 0x20
ret
Function at 0x404943
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x28
push ebx
push ebp
push esi
mov ebp, ecx
lea eax, [esp + 0x14]
push edi
push 0x20
push dword [esp + 0x40]
mov esi, dword [ebp + 4]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.004132a0
add esp, 0xc
xor ebx, ebx
xor edi, edi
xor edx, edx
test esi, esi
jle 0x4049bc
cmp ebx, dword [ebp + 4]
jg 0x404b19
cmp edx, esi
jge 0x4049b0
lea ebp, [esp + 0x18]
lea ebp, [ebp + edx*4]
cmp edi, 4
jge 0x4049ac
mov esi, dword [esp + 0x10]
lea ecx, [edi + ebx*4]
mov eax, dword [ebp]
inc edx
add ebp, 4
inc edi
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edx, esi
jl 0x40498c
mov ebp, dword [esp + 0x10]
cmp edi, 4
jne 0x4049b8
inc ebx
xor edi, edi
cmp edx, esi
jl 0x404977
cmp ebx, dword [ebp + 4]
jg 0x404b19
mov edx, 0x433c80
movzx eax, byte [esp + esi*4 + 0x15]
mov cl, byte [esp + 0x18]
xor cl, byte [eax + 0x433a80]
mov byte [esp + 0x18], cl
movzx eax, byte [esp + esi*4 + 0x16]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x19], al
movzx eax, byte [esp + esi*4 + 0x17]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x1a], al
movzx eax, byte [esp + esi*4 + 0x14]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x1b], al
mov al, byte [edx]
xor byte [esp + 0x18], al
inc edx
mov dword [esp + 0x14], edx
cmp esi, 8
je 0x404a49
cmp esi, 1
jle 0x404ac7
lea eax, [esi - 1]
lea edx, [esp + 0x1c]
mov dword [esp + 0x3c], eax
xor ecx, ecx
mov al, byte [edx + ecx - 4]
xor byte [edx + ecx], al
inc ecx
cmp ecx, 4
jl 0x404a30
add edx, 4
sub dword [esp + 0x3c], 1
jne 0x404a2e
jmp 0x404ac7
lea ecx, [esp + 0x1c]
mov dword [esp + 0x3c], 3
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404a58
sub dword [esp + 0x3c], 1
jne 0x404a55
movzx eax, byte [esp + 0x24]
lea ecx, [esp + 0x2c]
mov dword [esp + 0x3c], 3
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x28], al
movzx eax, byte [esp + 0x25]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x29], al
movzx eax, byte [esp + 0x26]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x2a], al
movzx eax, byte [esp + 0x27]
mov al, byte [eax + 0x433a80]
xor byte [esp + 0x2b], al
push 4
pop edx
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x404ab5
sub dword [esp + 0x3c], 1
jne 0x404ab2
xor edx, edx
test esi, esi
jle 0x404b0c
cmp ebx, dword [ebp + 4]
jg 0x404b0f
cmp edx, esi
jge 0x404b00
lea eax, [esp + 0x18]
lea eax, [eax + edx*4]
mov dword [esp + 0x3c], eax
cmp edi, 4
jge 0x404b03
mov eax, dword [eax]
lea ecx, [edi + ebx*4]
mov dword [ebp + ecx*4 + 0x18], eax
inc edx
mov eax, dword [esp + 0x3c]
add eax, 4
inc edi
mov dword [esp + 0x3c], eax
cmp edx, esi
jl 0x404ae1
cmp edi, 4
jne 0x404b08
inc ebx
xor edi, edi
cmp edx, esi
jl 0x404acd
cmp ebx, dword [ebp + 4]
mov edx, dword [esp + 0x14]
jle 0x4049ca
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4