joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
jmp 0x4418c6
push 0x14
push 0x458da8
call fcn.00441910
push 1
call fcn.004414aa
pop ecx
test al, al
je 0x4418b0
xor bl, bl
mov byte [ebp - 0x19], bl
and dword [ebp - 4], 0
call fcn.00441478
mov byte [ebp - 0x24], al
mov eax, dword [0x45bdbc]
xor ecx, ecx
inc ecx
cmp eax, ecx
je 0x4418b0
test eax, eax
jne 0x4417d4
mov dword [0x45bdbc], ecx
push 0x4502d0
push 0x4502b4
call fcn.00445f4f
pop ecx
pop ecx
test eax, eax
je 0x4417b7
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
jmp 0x4418a0
push 0x4502b0
push 0x450260
call fcn.00445f0a
pop ecx
pop ecx
mov dword [0x45bdbc], 2
jmp 0x4417d9
mov bl, cl
mov byte [ebp - 0x19], bl
push dword [ebp - 0x24]
call fcn.004415fe
pop ecx
call fcn.00441e34
mov esi, eax
xor edi, edi
cmp dword [esi], edi
je 0x44180a
push esi
call fcn.0044156a
pop ecx
test al, al
je 0x44180a
mov esi, dword [esi]
push edi
push 2
push edi
mov ecx, esi
call dword [0x45025c]
call esi
call fcn.00441e3a
mov esi, eax
cmp dword [esi], edi
je 0x441828
push esi
call fcn.0044156a
pop ecx
test al, al
je 0x441828
push dword [esi]
call fcn.00445472
pop ecx
call fcn.00441c51
movzx esi, ax
call fcn.00445eb7
push esi
push eax
push edi
push 0x400000
call main
mov esi, eax
call fcn.00441c87
test al, al
je 0x4418b7
test bl, bl
jne 0x441856
call fcn.0044544d
push edi
push 1
call fcn.0044161b
pop ecx
pop ecx
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4418a0
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
leave
ret
push 7
call fcn.00441b36
push esi
call fcn.00445498
push dword [ebp - 0x20]
call fcn.0044545c
int3
call fcn.00441d81
jmp 0x44174a
Function at 0x401ab0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
xor edx, edx
mov ecx, edx
mov eax, edx
and ecx, 1
shr eax, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
neg ecx
and ecx, 0xedb88320
xor ecx, eax
mov eax, ecx
shr ecx, 1
and eax, 1
neg eax
and eax, 0xedb88320
xor eax, ecx
mov dword [edx*4 + 0x45e8c0], eax
inc edx
cmp edx, 0x100
jb 0x401ab2
push esi
mov eax, 0x45e8c4
mov esi, 0x1c0
mov edx, dword [eax - 4]
lea eax, [eax + 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45e8c0]
mov dword [eax + 0x3ec], edx
mov edx, dword [eax - 0x10]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45e8c0]
mov dword [eax + 0x3f0], edx
mov edx, dword [eax - 0xc]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45e8c0]
mov dword [eax + 0x3f4], edx
mov edx, dword [eax - 8]
movzx ecx, dl
shr edx, 8
xor edx, dword [ecx*4 + 0x45e8c0]
mov dword [eax + 0x3f8], edx
sub esi, 1
jne 0x401b57
mov dword [0x45e8a8], 0x401bd0
pop esi
ret
Function at 0x401d10
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
xor eax, eax
nop dword [eax + eax]
movzx ecx, byte [eax + str.cw]
mov byte [ecx + 0x45c660], al
inc eax
cmp eax, 0x100
jb 0x401d20
push ebx
push esi
xor ebx, ebx
push edi
mov dword [ebp - 4], ebx
nop dword [eax]
movzx edi, byte [ebx + str.cw]
mov eax, edi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edi + edi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
mov ecx, edi
mov edx, esi
shl ecx, 8
xor edx, edi
mov eax, edx
shl eax, 8
or eax, edi
shl eax, 8
or eax, edi
shl eax, 8
or eax, esi
mov dword [ebx*4 + 0x45c760], eax
mov eax, ecx
or ecx, esi
or eax, edi
shl eax, 8
or eax, esi
shl ecx, 8
or ecx, edx
shl esi, 8
shl ecx, 8
or esi, edx
or ecx, edi
shl eax, 8
mov dword [ebx*4 + 0x45cf60], ecx
or eax, edx
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x45cb60], eax
shl esi, 8
or esi, edi
mov dword [ebx*4 + 0x45d360], esi
movzx ebx, byte [ebx + 0x45c660]
mov eax, ebx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [ebx + ebx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx esi, cl
mov eax, esi
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [esi + esi]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx edx, cl
mov eax, edx
and al, 0x80
movzx ecx, al
neg ecx
lea eax, [edx + edx]
sbb ecx, ecx
and ecx, 0x1b
xor ecx, eax
movzx ecx, cl
mov eax, ecx
mov edi, ecx
xor ecx, edx
xor edi, esi
xor eax, ebx
mov dword [ebp - 8], ecx
xor edi, ebx
mov dword [ebp - 0xc], eax
xor ecx, ebx
mov ebx, dword [ebp - 8]
xor ebx, esi
mov edx, dword [ebp - 0xc]
mov eax, edi
mov esi, dword [ebp - 4]
shl eax, 8
or eax, ecx
shl eax, 8
or eax, edx
shl eax, 8
or eax, ebx
mov dword [esi*4 + 0x45d760], eax
mov eax, ecx
shl eax, 8
or eax, edx
shl eax, 8
or eax, ebx
shl eax, 8
or eax, edi
mov dword [esi*4 + 0x45db60], eax
mov eax, edx
shl eax, 8
or eax, ebx
shl ebx, 8
or ebx, edi
shl eax, 8
shl ebx, 8
or eax, edi
or ebx, ecx
shl eax, 8
shl ebx, 8
or eax, ecx
or ebx, edx
mov dword [esi*4 + 0x45df60], eax
mov dword [esi*4 + 0x45e360], ebx
mov ebx, esi
inc ebx
mov dword [ebp - 4], ebx
cmp ebx, 0x100
jb 0x401d40
pop edi
pop esi
mov dword [0x45e8a4], 0x402520
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x401eb0
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov esi, edx
shr edi, 2
xor edx, edx
mov eax, edi
mov dword [ebp - 4], 1
shr eax, 1
add eax, 3
mov dword [ecx], eax
add ecx, 0x10
test edi, edi
je 0x401ee5
mov eax, dword [esi]
lea esi, [esi + 4]
mov dword [ecx + edx*4], eax
inc edx
cmp edx, edi
jb 0x401ed8
mov ebx, dword [ecx + edi*4 - 4]
lea eax, [edi + 0xe]
lea eax, [edi + eax*2]
lea esi, [ecx + eax*4]
mov dword [ebp + 8], esi
xor esi, esi
mov eax, dword [ebp + 8]
nop word [eax + eax]
test esi, esi
jne 0x401f61
movzx eax, bl
mov esi, dword [ebp - 4]
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
mov eax, ebx
shr eax, 0x10
movzx eax, al
shr ebx, 8
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
mov eax, 0x1b
xor ebx, esi
add esi, esi
or ebx, edx
test esi, 0x100
cmovne esi, eax
mov dword [ebp - 4], esi
mov esi, edi
jmp 0x401fae
cmp esi, 4
jne 0x401fb1
cmp edi, 6
jbe 0x401fb1
mov eax, ebx
shr eax, 0x10
movzx eax, al
movzx edx, byte [eax + str.cw]
mov eax, ebx
shr eax, 0x18
movzx eax, byte [eax + str.cw]
shl eax, 8
or edx, eax
mov eax, ebx
shr eax, 8
movzx eax, al
shl edx, 8
movzx eax, byte [eax + str.cw]
or edx, eax
movzx eax, bl
shl edx, 8
movzx ebx, byte [eax + str.cw]
or ebx, edx
mov eax, dword [ebp + 8]
xor ebx, dword [ecx]
dec esi
mov dword [ecx + edi*4], ebx
add ecx, 4
cmp ecx, eax
jne 0x401f00
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x403130
Capabilities:
Check os version
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2d4
mov eax, dword [0x45b008]
xor eax, ebp
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_GetVersion]
cmp ax, 6
je 0x403179
push str.SetDefaultDllDirectories
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x403179
push 0xc00
call eax
test eax, eax
jne 0x403218
push 0x106
lea eax, [ebp - 0x2d4]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
je 0x403218
cmp eax, 0x104
ja 0x403218
cmp word [ebp + eax*2 - 0x2d6], 0x5c
je 0x4031b3
mov ecx, 0x5c
mov word [ebp + eax*2 - 0x2d4], cx
inc eax
mov cl, byte [str.userenv]
push esi
mov esi, str.userenv
test cl, cl
je 0x403217
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
push edi
lea edi, [ebp - 0x2d4]
lea edi, [edi + eax*2]
inc esi
mov eax, edi
test cl, cl
je 0x4031f0
nop dword [eax + eax]
movzx ecx, cl
mov word [eax], cx
add eax, 2
mov cl, byte [esi]
inc esi
test cl, cl
jne 0x4031e0
xor ecx, ecx
mov dword [eax], 0x64002e
push 8
mov dword [eax + 4], 0x6c006c
mov word [eax + 8], cx
lea eax, [ebp - 0x2d4]
push ecx
push eax
call ebx
mov cl, byte [esi]
test cl, cl
jne 0x4031d4
pop edi
pop ebx
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00441023
mov esp, ebp
pop ebp
ret
Function at 0x408060
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebx
push esi
mov esi, ecx
mov ecx, 0x20
push edi
mov eax, dword [esi + 4]
cmp eax, ecx
mov dword [esi + 0x78], 0
cmova eax, ecx
mov dword [esi + 0x7c], 0
mov dword [esi + 0x54], eax
mov eax, dword [esi]
mov dword [esi + 0x30], 1
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x40], 0
mov dword [esi + 0x44], 1
mov dword [esi + 0x70], 0
mov dword [esi + 0x88], 0
mov dword [esi + 0x90], 0xffffffff
mov dword [esi + 0x94], 0xffffffff
mov dword [esi + 0x68], 0
mov dword [esi + 0x6c], 0
mov dword [esi + 0x48], 0
mov dword [esi + 0x4c], 0
mov dword [esi + 0x50], 0
mov dword [esi + 0x60], 0
mov dword [esi + 0x64], 0
mov dword [esi + 0x80], 0
mov dword [esi + 0x84], 0
mov dword [esi + 0x58], 0
cmp eax, dword [esi + 0x20]
je 0x40815e
lea edi, [esi + 0xc8]
mov ebx, ecx
nop dword [eax]
cmp dword [edi + 8], 0
je 0x40813d
mov ecx, edi
call fcn.00406dc0
add edi, 0x28
sub ebx, 1
jne 0x408130
mov ecx, dword [esi + 0x5c]
test ecx, ecx
je 0x408159
mov eax, dword [esi + 0x14]
push ecx
push eax
mov eax, dword [eax + 4]
call eax
mov dword [esi + 0x5c], ebx
mov eax, dword [esi]
mov dword [esi + 0x20], eax
mov edx, dword [esi + 0x10]
lea ecx, [esi + 0x98]
call fcn.00406c90
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x24], 0
mov dword [esi + 0x28], 0
lea eax, [ecx + 5]
lea eax, [eax + eax*4]
lea ebx, [esi + eax*8]
lea eax, [ecx + 1]
mov ecx, ebx
mov dword [esi + 0x58], eax
call fcn.00406d70
mov edi, eax
test edi, edi
jne 0x4081cf
lea ecx, [ebx + 0x20]
call fcn.004088a0
mov edi, eax
test edi, edi
jne 0x4081cf
lea ecx, [ebx + 0x1c]
call fcn.004088a0
mov edi, eax
test edi, edi
jne 0x4081cf
push ebx
call fcn.00407d70
mov edi, eax
test edi, edi
je 0x4081cf
mov ecx, esi
mov dword [esi + 0x44], 0
call fcn.00406e30
mov ecx, edi
call fcn.00406c80
test eax, eax
je 0x4081dd
mov dword [esi + 0x40], eax
cmp dword [esi + 0x38], 0
jne 0x4081f6
cmp dword [esi + 0x40], 0
jne 0x4081f6
cmp dword [esi + 0x3c], 0
jne 0x4081f6
mov dword [esi + 0x44], 0
xor ecx, ecx
cmp dword [esi + 0x44], ecx
pop edi
pop esi
cmovne eax, ecx
pop ebx
ret

Function at 0x408260
Capabilities:
Hash data using sha256

Disassembly:
mov dword [ecx + 8], 0
mov dword [ecx + 0xc], 0
mov dword [ecx + 0x20], 0x6a09e667
mov dword [ecx + 0x24], 0xbb67ae85
mov dword [ecx + 0x28], 0x3c6ef372
mov dword [ecx + 0x2c], 0xa54ff53a
mov dword [ecx + 0x30], 0x510e527f
mov dword [ecx + 0x34], 0x9b05688c
mov dword [ecx + 0x38], 0x1f83d9ab
mov dword [ecx + 0x3c], 0x5be0cd19
ret
mov dword [ecx], 0x408270
jmp 0x408210
Function at 0x4086e0
Capabilities:
Hash data using sha256

Disassembly:
push ebx
mov ebx, ecx
push esi
push edi
mov edi, edx
mov edx, dword [ebx + 8]
and edx, 0x3f
mov byte [edx + ebx + 0x40], 0x80
inc edx
cmp edx, 0x38
jbe 0x408727
cmp edx, 0x40
je 0x408715
mov eax, 0x40
lea ecx, [ebx + 0x40]
sub eax, edx
add ecx, edx
push eax
push 0
push ecx
call fcn.00442a40
add esp, 0xc
mov eax, dword [ebx]
lea esi, [ebx + 0x20]
lea edx, [ebx + 0x40]
mov ecx, esi
push 1
call eax
xor edx, edx
jmp 0x40872a
lea esi, [ebx + 0x20]
mov eax, 0x38
sub eax, edx
push eax
lea eax, [ebx + 0x40]
add eax, edx
push 0
push eax
call fcn.00442a40
mov ecx, dword [ebx + 8]
lea edx, [ebx + 0x40]
mov eax, dword [ebx + 0xc]
add esp, 0xc
shld eax, ecx, 3
shl ecx, 3
bswap eax
bswap ecx
mov dword [ebx + 0x78], eax
mov eax, dword [ebx]
mov dword [ebx + 0x7c], ecx
mov ecx, esi
push 1
call eax
mov edx, 4
nop dword [eax]
mov ecx, dword [esi + 4]
lea edi, [edi + 8]
mov eax, dword [esi]
lea esi, [esi + 8]
bswap eax
mov dword [edi - 8], eax
bswap ecx
mov dword [edi - 4], ecx
sub edx, 1
jne 0x408770
pop edi
pop esi
mov ecx, ebx
pop ebx
jmp 0x408210

Function at 0x408840
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
mov esi, ecx
push eax
push 0
push dword [ebp + 8]
push edx
push 0
push 0
call fcn.00444cc6
add esp, 0x18
mov dword [esi], eax
mov ecx, eax
call fcn.004087c0
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x40b8b0
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c4d1], 0
push esi
mov esi, edx
jne 0x40b8e9
mov edx, ecx
lea ecx, [ebp - 0xc]
call fcn.0040a000
push esi
mov ecx, eax
call fcn.00408a70
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00408a20
test esi, esi
jmp 0x40b8f3
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x40b8fc
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40b910
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c4d1], 0
jne 0x40b947
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0040a000
mov ecx, eax
call fcn.00408a70
push eax
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryA]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00408a20
test esi, esi
pop esi
jmp 0x40b950
push ecx
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
je 0x40b958
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret

Function at 0x40b960
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c4d1], 0
jne 0x40b999
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0040a000
push 0
mov ecx, eax
call fcn.00408a70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00408a20
test esi, esi
pop esi
jmp 0x40b9a4
push 0
push ecx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40b9ac
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret
Function at 0x40b9c0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44d9ad
mov eax, dword fs:[0]
push eax
sub esp, 0x44
push ebx
push esi
push edi
mov eax, dword [0x45b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x45c4d1], 0
jne 0x40ba1b
mov edx, edi
lea ecx, [ebp - 0x18]
call fcn.0040a000
push 0
mov ecx, eax
call fcn.00408a70
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
lea ecx, [ebp - 0x18]
mov esi, eax
call fcn.00408a20
test esi, esi
jmp 0x40ba26
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x40ba3c
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x40ba5d
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea ecx, [ebp - 0x50]
call fcn.0040bab0
push 0
push edi
lea ecx, [ebp - 0x50]
mov dword [ebp - 4], 0
call fcn.0040cd20
test al, al
jne 0x40ba7f
xor bl, bl
jmp 0x40ba89
lea ecx, [ebp - 0x50]
call fcn.0040b800
mov bl, al
lea ecx, [ebp - 0x50]
call fcn.0040bad0
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40bcb0
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, ecx
call fcn.0040ccd0
cmp eax, 0xffffffff
je 0x40bcdd
mov edx, eax
and dl, 0x11
cmp dl, 1
jne 0x40bcdd
and eax, 0xfffffffe
mov ecx, esi
mov edx, eax
call fcn.0040b8b0
test al, al
je 0x40bd1e
cmp byte [0x45c4d1], 0
jne 0x40bd0c
mov edx, esi
lea ecx, [ebp - 0xc]
call fcn.0040a000
mov ecx, eax
call fcn.00408a70
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00408a20
test esi, esi
jmp 0x40bd15
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x40bd1e
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
xor al, al
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x40bfd0
Capabilities:
Set current directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c4d1], 0
jne 0x40c010
mov edx, ecx
lea ecx, [ebp - 0xc]
push ebx
call fcn.0040a000
mov ecx, eax
call fcn.00408a70
push eax
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryA]
mov ecx, eax
call fcn.0040b070
lea ecx, [ebp - 0xc]
mov bl, al
call fcn.00408a20
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_SetCurrentDirectoryW]
mov ecx, eax
call fcn.0040b070
mov esp, ebp
pop ebp
ret
Function at 0x40c030
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44daab
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x45b008]
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
call fcn.00408a60
cmp byte [0x45c4d1], 0
jne 0x40c0d0
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
test eax, eax
je 0x40c172
cmp eax, 0x114
jae 0x40c172
lea edx, [ebp - 0x128]
mov byte [ebp - 0x14], 0
lea ecx, [ebp - 0x360]
call fcn.0040a070
mov dword [ebp - 4], 0
push eax
mov ecx, edi
call fcn.00409a20
lea ecx, [ebp - 0x360]
call fcn.00408a20
mov al, 1
jmp 0x40c174
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call ebx
mov esi, eax
test esi, esi
je 0x40c172
cmp esi, 0x114
jae 0x40c116
xor eax, eax
mov ecx, edi
mov word [ebp - 0x12c], ax
lea eax, [ebp - 0x354]
push eax
call fcn.004099c0
mov al, 1
jmp 0x40c174
lea ecx, [ebp - 0x360]
call fcn.00409860
push esi
lea ecx, [ebp - 0x360]
mov dword [ebp - 4], 1
call fcn.0040a1b0
push eax
push esi
call ebx
mov ebx, eax
test ebx, ebx
je 0x40c167
push esi
lea ecx, [ebp - 0x360]
call fcn.0040b790
lea ecx, [ebp - 0x360]
call fcn.00408a40
cmp eax, ebx
jne 0x40c167
lea eax, [esi - 1]
cmp eax, ebx
jne 0x40c167
mov eax, ecx
jmp 0x40c0b6
lea ecx, [ebp - 0x360]
call fcn.00408a20
xor al, al
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.00441023
mov esp, ebp
pop ebp
ret

Function at 0x40c1e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44daf0
mov eax, dword fs:[0]
push eax
sub esp, 0x354
mov eax, dword [0x45b008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
cmp byte [0x45c4d1], 0
jne 0x40c267
lea eax, [ebp - 0x128]
mov byte [ebp - 0x128], 0
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea edx, [ebp - 0x128]
mov esi, eax
lea ecx, [ebp - 0x360]
call fcn.0040a070
push eax
mov ecx, edi
mov dword [ebp - 4], 0
call fcn.00409a20
lea ecx, [ebp - 0x360]
mov dword [ebp - 4], 0xffffffff
call fcn.00408a20
jmp 0x40c292
xor eax, eax
mov word [ebp - 0x354], ax
lea eax, [ebp - 0x354]
push eax
push 0x114
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov esi, eax
mov ecx, edi
lea eax, [ebp - 0x354]
push eax
call fcn.004099c0
mov ecx, edi
call fcn.0040dac0
test esi, esi
je 0x40c2a9
cmp esi, 0x114
jae 0x40c2a9
mov al, 1
jmp 0x40c2ab
xor al, al
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.00441023
mov esp, ebp
pop ebp
ret
Function at 0x40ccd0
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x45c4d1], 0
jne 0x40cd09
mov edx, ecx
lea ecx, [ebp - 0xc]
push esi
call fcn.0040a000
mov ecx, eax
call fcn.00408a70
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
lea ecx, [ebp - 0xc]
mov esi, eax
call fcn.00408a20
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push ecx
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, 0xffffffff
cmovne ecx, eax
mov eax, ecx
mov esp, ebp
pop ebp
ret

Function at 0x40d490
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x44dce0
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x45b008]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x10], 0
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40d4ec
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x40d4ec
xor al, al
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 0x10]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x413090
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov ebx, ecx
mov ecx, edi
call fcn.0040e390
lea ecx, [ebx + 0xf0]
call fcn.00408a70
test eax, eax
je 0x413233
lea ecx, [ebx + 0xe8]
call fcn.00408a70
test eax, eax
je 0x413233
mov eax, dword [ebp + 8]
lea ecx, [ebx + 0xf0]
lea edx, [eax*4]
call fcn.00408a70
lea ecx, [ebx + 0xf0]
mov eax, dword [eax + edx]
mov dword [ebp + 0xc], eax
call fcn.00408a70
mov esi, dword [eax + edx + 4]
sub esi, dword [ebp + 0xc]
cmp esi, 0x4000
jae 0x413233
lea edx, [esi - 1]
mov ecx, edi
call fcn.0040e1b0
test eax, eax
jne 0x413235
mov edx, dword [edi + 8]
lea ecx, [ebx + 0xe8]
call fcn.00408a70
mov ecx, dword [ebp + 0xc]
xor edi, edi
lea ecx, [eax + ecx*2]
test esi, esi
je 0x413233
cmp esi, 0x10
jb 0x413204
lea eax, [esi - 1]
lea eax, [ecx + eax*2]
lea ebx, [edx - 2]
lea ebx, [ebx + esi*2]
cmp edx, eax
ja 0x413152
cmp ebx, ecx
jae 0x413204
movaps xmm5, xmmword [str._________]
mov eax, esi
movaps xmm6, xmmword [0x456a60]
and eax, 0xfffffff0
movaps xmm4, xmmword [0x456a40]
movaps xmm7, xmmword [0x456a50]
movups xmm0, xmmword [ecx]
add edi, 0x10
movaps xmm3, xmm5
pcmpeqw xmm3, xmm0
movaps xmm2, xmm3
pandn xmm2, xmm0
movaps xmm0, xmm3
pand xmm0, xmm4
pxor xmm3, xmm6
por xmm2, xmm0
movaps xmm1, xmm2
pcmpeqw xmm1, xmm4
pand xmm1, xmm3
movaps xmm3, xmm5
movaps xmm0, xmm1
pand xmm1, xmm7
pandn xmm0, xmm2
por xmm0, xmm1
movups xmmword [edx], xmm0
movups xmm0, xmmword [ecx + 0x10]
add ecx, 0x20
pcmpeqw xmm3, xmm0
movaps xmm2, xmm3
pandn xmm2, xmm0
movaps xmm0, xmm3
pand xmm0, xmm4
pxor xmm3, xmm6
por xmm2, xmm0
movaps xmm1, xmm2
pcmpeqw xmm1, xmm4
pand xmm1, xmm3
movaps xmm0, xmm1
pand xmm1, xmm7
pandn xmm0, xmm2
por xmm0, xmm1
movups xmmword [edx + 0x10], xmm0
add edx, 0x20
cmp edi, eax
jb 0x413173
cmp edi, esi
jae 0x413233
sub esi, edi
mov edi, 0xf05c
nop dword [eax + eax]
movzx eax, word [ecx]
lea ecx, [ecx + 2]
cmp eax, 0x2f
jne 0x413222
mov eax, 0x5c
jmp 0x413228
cmp eax, 0x5c
cmove eax, edi
mov word [edx], ax
add edx, 2
sub esi, 1
jne 0x413210
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 8