joyce8/EMBER2024-capa huggingface dataset:
Function at 0x421720
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42174d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42174d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret

Function at 0x4060b6
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004021ba
and dword [ebp - 4], 0
cmp dword [0x40b654], 0
mov ebx, eax
jne 0x406167
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406218
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406218
push eax
call fcn.00402148
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40b654], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40b658], eax
call esi
push eax
call fcn.00402148
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40b65c], eax
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b664], eax
test eax, eax
je 0x406167
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402148
pop ecx
mov dword [0x40b660], eax
mov eax, dword [0x40b660]
cmp eax, ebx
je 0x4061bf
cmp dword [0x40b664], ebx
je 0x4061bf
push eax
call fcn.004021c3
push dword [0x40b664]
mov esi, eax
call fcn.004021c3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4061bf
test edi, edi
je 0x4061bf
call esi
test eax, eax
je 0x4061b6
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4061b6
test byte [ebp - 0xc], 1
jne 0x4061bf
or dword [ebp + 0x10], 0x200000
jmp 0x4061f8
mov eax, dword [0x40b658]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4061f8
mov eax, dword [0x40b65c]
cmp eax, ebx
je 0x4061f8
push eax
call fcn.004021c3
pop ecx
test eax, eax
je 0x4061f8
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40b654]
call fcn.004021c3
pop ecx
test eax, eax
je 0x406218
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40621a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
mov eax, section..text
nop
nop
mov ebx, 0x408ecc
nop
mov ecx, 0x1294b54
test eax, eax
nop
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x5cdc30e9
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
add eax, 4
nop
nop
nop
nop
nop
cmp eax, ebx
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x430002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
mov eax, section..text
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
nop
mov esi, 0x6cab3684
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x430060
nop
mov eax, section..data
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
mov ebx, 0x42e1d0
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
mov esi, 0x254c7301
xor dword [eax], esi
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
nop
popal
jmp 0x401219
Function at 0x401643
Capabilities:
Encode data using xor

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [esp + 0x10]
test esi, esi
je 0x40166d
movzx ecx, byte [edi]
movzx eax, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x435f10]
inc edi
sub esi, 1
jne 0x401655
pop edi
mov eax, edx
pop esi
ret 0xc

Function at 0x401fc0
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x1058
call fcn.004163d0
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x1054], eax
push ebx
mov ebx, dword [esp + 0x1064]
push ebp
mov ebp, dword [esp + 0x1064]
push edi
mov edi, ecx
mov dword [esp + 0xc], ebp
and dword [edi + 0x1034], 0
cmp byte [edi + 0x30], 0
jne 0x402005
test bl, 4
jne 0x402005
xor al, al
jmp 0x402007
mov al, 1
push esi
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x402020
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test al, al
je 0x40202f
or ebx, 2
lea ecx, [esp + 0x1c]
call fcn.00401c4a
cmp byte [edi + 0x24], 0
je 0x402044
or esi, 0x100
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x4020ab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x14], eax
lea eax, [esp + 0x1c]
push 0x800
push eax
push dword [esp + 0x18]
call fcn.0040382f
test al, al
je 0x4020b8
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea eax, [esp + 0x34]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov ebp, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x4020b3
mov dword [esp + 0x14], eax
jmp 0x4020b3
mov eax, dword [esp + 0x10]
mov dword [esp + 0x14], eax
cmp ebp, 0xffffffff
jne 0x4020c9
cmp dword [esp + 0x14], 2
jne 0x4020c9
mov dword [edi + 0x1034], 1
cmp byte [edi + 0x24], 0
pop esi
je 0x4020ef
cmp ebp, 0xffffffff
je 0x4020ef
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 + 0x1c], al
mov dword [edi + 0x10], eax
setne bl
mov byte [edi + 0x15], al
je 0x40211b
push 0x800
push dword [esp + 0x10]
lea ecx, [edi + 0x32]
mov dword [edi + 8], ebp
push ecx
call fcn.00406d8c
mov byte [edi + 0x25], 0
mov ecx, dword [esp + 0x1060]
mov al, bl
pop edi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416329
add esp, 0x1058
ret 8
Function at 0x40263a
Capabilities:
Write file on windows

Disassembly:
push ecx
push ecx
push ebp
push esi
mov esi, dword [esp + 0x18]
mov ebp, ecx
test esi, esi
jne 0x40264f
mov al, 1
jmp 0x40276a
cmp dword [ebp + 0x10], 1
lea ecx, [ebp + 8]
mov dword [esp + 0xc], ecx
jne 0x40266b
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebp + 8]
mov dword [ecx], eax
jmp 0x40266f
mov dword [esp + 0xc], ecx
push ebx
push edi
and dword [esp + 0x10], 0
xor bl, bl
cmp dword [ebp + 0x10], 0
je 0x4026c3
xor edi, edi
test esi, esi
je 0x4026e4
mov eax, esi
sub eax, edi
cmp eax, 0x4000
jb 0x402694
mov eax, 0x4000
push 0
lea edx, [esp + 0x14]
push edx
push eax
mov eax, dword [esp + 0x28]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, 1
sete bl
jne 0x4026e0
mov ecx, dword [esp + 0x14]
add edi, 0x4000
cmp edi, esi
jb 0x402684
jmp 0x4026e0
push 0
lea eax, [esp + 0x14]
push eax
push esi
push dword [esp + 0x28]
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
test bl, bl
jne 0x402762
cmp byte [ebp + 0x1e], 0
je 0x402762
cmp dword [ebp + 0x10], 0
jne 0x402762
push 0
lea edi, [ebp + 0x32]
mov ecx, 0x45bdac
push edi
call fcn.00401867
test al, al
je 0x402755
mov ecx, dword [esp + 0x14]
cmp dword [esp + 0x10], esi
jae 0x402671
cmp dword [esp + 0x10], 0
jbe 0x402671
mov edi, dword [ebp]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x42a22c]
mov ecx, ebp
call esi
sub eax, dword [esp + 0x14]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x42a22c]
mov ecx, ebp
call dword [edi + 0x10]
mov esi, dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
jmp 0x402671
push edi
push 0
mov ecx, 0x45bdac
call fcn.00401b8e
pop edi
mov al, bl
mov byte [ebp + 0xc], 1
pop ebx
pop esi
pop ebp
pop ecx
pop ecx
ret 8

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

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004163d0
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x402946
push 0x800
lea eax, [ebp - 0x1004]
push eax
push edi
call fcn.0040382f
test al, al
je 0x402946
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.00416329
leave
ret 4
Function at 0x40298a
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004163d0
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push esi
call fcn.00403b9f
movzx eax, word [eax]
cmp eax, 0x2e
je 0x4029c5
cmp eax, 0x20
je 0x4029c5
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x4029f8
push esi
call fcn.004028e5
test al, al
jne 0x402a0b
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040382f
test al, al
je 0x402a0b
push 0
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x402a0b
cmp byte [ebp + 0xc], 0
je 0x402a07
push dword [ebp + 0x10]
push esi
call fcn.00402be3
xor eax, eax
jmp 0x402a23
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x402a23
xor eax, eax
cmp ecx, 3
sete al
inc eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416329
leave
ret 0xc

Function at 0x402be3
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1004
call fcn.004163d0
mov eax, dword [0x43565c]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push dword [ebp + 0xc]
mov esi, dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x402c3d
push 0x800
lea eax, [ebp - 0x1004]
push eax
push esi
call fcn.0040382f
test al, al
je 0x402c3d
push dword [ebp + 0xc]
lea eax, [ebp - 0x1004]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov ecx, dword [ebp - 4]
mov al, bl
pop esi
xor ecx, ebp
pop ebx
call fcn.00416329
leave
ret 8
Function at 0x402dc2
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
mov eax, 0x1254
call fcn.004163d0
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x1250], eax
push ebx
mov ebx, dword [esp + 0x1260]
lea eax, [esp + 4]
push ebp
push esi
mov esi, dword [esp + 0x1264]
or ebp, 0xffffffff
push edi
mov edi, dword [esp + 0x1270]
push eax
cmp esi, ebp
jne 0x402e62
push ebx
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x402e7d
push 0x800
lea eax, [esp + 0x264]
push eax
push ebx
call fcn.0040382f
test al, al
je 0x402e3c
lea eax, [esp + 0x10]
push eax
lea eax, [esp + 0x264]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, ebp
jne 0x402e7d
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x402e55
cmp eax, 3
je 0x402e55
cmp eax, 0x12
je 0x402e55
mov al, 1
jmp 0x402e57
xor al, al
mov byte [edi + 0x1044], al
jmp 0x402f25
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x402e7d
mov esi, ebp
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x402e57
mov ebp, 0x800
push ebp
push ebx
push edi
call fcn.00406d8c
push ebp
lea eax, [esp + 0x40]
push eax
push edi
call fcn.00403c76
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 + 0x1004], ecx
mov ecx, dword [esp + 0x18]
mov dword [edi + 0x1028], eax
mov eax, dword [esp + 0x1c]
mov dword [edi + 0x102c], ecx
mov ecx, dword [esp + 0x20]
mov dword [edi + 0x1030], eax
mov eax, dword [esp + 0x24]
mov dword [edi + 0x1034], ecx
mov ecx, dword [esp + 0x28]
mov dword [edi + 0x1038], eax
lea eax, [esp + 0x24]
mov dword [edi + 0x103c], ecx
lea ecx, [edi + 0x1010]
push eax
call fcn.0040783f
lea eax, [esp + 0x14]
push eax
lea ecx, [edi + 0x1018]
call fcn.0040783f
lea eax, [esp + 0x1c]
push eax
lea ecx, [edi + 0x1020]
call fcn.0040783f
and dword [edi + 0x1040], 0
mov eax, esi
mov ecx, dword [esp + 0x1260]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416329
add esp, 0x1254
ret 0xc
Function at 0x40382f
Capabilities:
Get common file path

Disassembly:
mov eax, 0x1004
call fcn.004163d0
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x1000], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x101c]
cmp word [esi], 0
je 0x4039c8
push esi
call fcn.004039e5
push esi
call fcn.0041b003
pop ecx
push esi
mov ebx, eax
call fcn.00403a10
test al, al
je 0x403908
push esi
call fcn.004039e5
test al, al
je 0x4038c1
lea eax, [ebx + 4]
cmp dword [esp + 0x1020], eax
jbe 0x4039c8
push dword [esp + 0x1020]
push 0x42a5e8
push edi
call fcn.00406d8c
push dword [esp + 0x1020]
push esi
push edi
call fcn.00406d64
mov al, 1
jmp 0x4039ca
push 0x5c
pop eax
cmp word [esi], ax
jne 0x4039c8
lea ebp, [esi + 2]
cmp word [ebp], ax
jne 0x4039c8
mov esi, dword [esp + 0x1020]
lea eax, [ebx + 6]
cmp esi, eax
jbe 0x4039c8
push esi
push 0x42a5e8
push edi
call fcn.00406d8c
push esi
push 0x42a5f4
push edi
call fcn.00406d64
push esi
push ebp
jmp 0x4038b4
lea eax, [esp + 0x10]
mov ebp, 0x7ff
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
test eax, eax
je 0x4039c8
cmp eax, ebp
ja 0x4039c8
movzx eax, word [esi]
push eax
call fcn.00403a45
test al, al
je 0x40396d
lea eax, [ebx + 6]
mov ebx, dword [esp + 0x1020]
cmp ebx, eax
jbe 0x4039c8
push ebx
push 0x42a5e8
push edi
call fcn.00406d8c
xor eax, eax
mov word [esp + 0x14], ax
lea eax, [esp + 0x10]
push ebx
push eax
push edi
call fcn.00406d64
push ebx
jmp 0x4038b3
push 0x800
lea eax, [esp + 0x14]
push eax
call fcn.004033cf
lea eax, [esp + 0x10]
push eax
call fcn.0041b003
add ebx, 4
add eax, ebx
mov ebx, dword [esp + 0x1024]
pop ecx
cmp ebx, eax
jbe 0x4039c8
push ebx
push 0x42a5e8
push edi
call fcn.00406d8c
push ebx
lea eax, [esp + 0x14]
push eax
push edi
call fcn.00406d64
cmp word [esi], 0x2e
jne 0x403967
movzx eax, word [esi + 2]
push eax
call fcn.00403a45
test al, al
je 0x403967
add esi, 4
jmp 0x403967
xor al, al
mov ecx, dword [esp + 0x1010]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416329
add esp, 0x1004
ret 0xc
Function at 0x404ff5
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ecx
push ecx
push ebx
push ebp
xor ebp, ebp
push edi
mov ecx, ebp
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x43bf38], cl
inc ecx
cmp ecx, 0x100
jl 0x404ffe
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x43cc39], al
mov byte [ebp*4 + 0x43cc38], al
mov byte [ebp*4 + 0x43c83b], al
mov byte [ebp*4 + 0x43c838], al
mov byte [ebp*4 + 0x43c43b], al
mov byte [ebp*4 + 0x43c43a], al
mov byte [ebp*4 + 0x43c03a], al
mov byte [ebp*4 + 0x43c039], al
call fcn.004057cc
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x43cc3b], al
mov byte [ebp*4 + 0x43c83a], al
mov byte [ebp*4 + 0x43c439], al
mov byte [ebp*4 + 0x43c038], al
call fcn.004057cc
mov bl, byte [ebp + 0x43bf38]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43cc3a], al
mov byte [ebp*4 + 0x43c839], al
mov byte [ebp*4 + 0x43c438], al
mov byte [ebp*4 + 0x43c03b], al
call fcn.004057cc
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43dc3a], al
mov byte [ebp*4 + 0x43d839], al
mov byte [ebp*4 + 0x43d438], al
mov byte [ebp*4 + 0x43d03b], al
mov byte [edi*4 + 0x43ec3a], al
mov byte [edi*4 + 0x43e839], al
mov byte [edi*4 + 0x43e438], al
mov byte [edi*4 + 0x43e03b], al
call fcn.004057cc
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43dc38], al
mov byte [ebp*4 + 0x43d83b], al
mov byte [ebp*4 + 0x43d43a], al
mov byte [ebp*4 + 0x43d039], al
mov byte [edi*4 + 0x43ec38], al
mov byte [edi*4 + 0x43e83b], al
mov byte [edi*4 + 0x43e43a], al
mov byte [edi*4 + 0x43e039], al
call fcn.004057cc
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x43dc39], al
mov byte [ebp*4 + 0x43d838], al
mov byte [ebp*4 + 0x43d43b], al
mov byte [ebp*4 + 0x43d03a], al
mov byte [edi*4 + 0x43ec39], al
mov byte [edi*4 + 0x43e838], al
mov byte [edi*4 + 0x43e43b], al
mov byte [edi*4 + 0x43e03a], al
call fcn.004057cc
mov byte [ebp*4 + 0x43dc3b], al
mov byte [ebp*4 + 0x43d83a], al
mov byte [ebp*4 + 0x43d439], al
mov byte [ebp*4 + 0x43d038], al
inc ebp
mov byte [edi*4 + 0x43ec3b], al
mov byte [edi*4 + 0x43e83a], al
mov byte [edi*4 + 0x43e439], al
mov byte [edi*4 + 0x43e038], al
cmp ebp, 0x100
jl 0x405014
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x405747
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 0x4057c2
mov edx, dword [esp + 0x18]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x405772
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x4057a4
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 0x40578e
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 0x405760
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
pop ecx
ret 0xc

Function at 0x4057f6
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x43565c]
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 0x4058af
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 + 0x43ec38]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x43e438]
xor dl, byte [esi + eax*4 + 0x43e038]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x43e838]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x405839
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x40582e
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.00417a90
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 0x405825
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.00416329
add esp, 0x24
ret
Function at 0x4058c0
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
mov eax, dword [0x43565c]
xor eax, esp
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x34]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x20
push eax
mov esi, dword [ebp + 4]
lea eax, [esp + 0x24]
sub esi, 6
mov dword [esp + 0x18], ebp
push eax
mov dword [esp + 0x20], esi
call fcn.00417a90
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x40594c
cmp ebx, dword [ebp + 4]
jg 0x405aa4
cmp edi, esi
jge 0x405939
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x405935
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x405915
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x40593f
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x405900
cmp ebx, dword [ebp + 4]
jg 0x405aa4
mov edi, 0x435108
movzx eax, byte [esp + esi*4 + 0x19]
mov cl, byte [esp + 0x1c]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x1c], cl
movzx eax, byte [esp + esi*4 + 0x1a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1d], al
movzx eax, byte [esp + esi*4 + 0x1b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1e], al
movzx eax, byte [esp + esi*4 + 0x18]
mov al, byte [eax + str.cw]
xor byte [esp + 0x1f], al
mov al, byte [edi]
xor al, cl
inc edi
mov byte [esp + 0x1c], al
mov dword [esp + 0x18], edi
cmp esi, 8
je 0x4059db
cmp esi, 1
jle 0x4059cf
lea ecx, [esp + 0x20]
lea ebp, [esi - 1]
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4059bb
sub ebp, 1
jne 0x4059b8
mov ebp, dword [esp + 0x10]
xor edi, edi
test esi, esi
jle 0x405a97
jmp 0x405a4b
push 3
lea ecx, [esp + 0x24]
pop ebp
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x4059e5
sub ebp, 1
jne 0x4059e2
movzx eax, byte [esp + 0x28]
lea ecx, [esp + 0x30]
push 3
pop ebp
mov al, byte [eax + str.cw]
xor byte [esp + 0x2c], al
movzx eax, byte [esp + 0x29]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2d], al
movzx eax, byte [esp + 0x2a]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2e], al
movzx eax, byte [esp + 0x2b]
mov al, byte [eax + str.cw]
xor byte [esp + 0x2f], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x405a3b
sub ebp, 1
jne 0x405a38
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax + 4]
jg 0x405a93
cmp edi, esi
jge 0x405a80
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x405a83
mov esi, dword [esp + 0x10]
lea ecx, [edx + ebx*4]
mov eax, dword [ebp]
inc edi
add ebp, 4
inc edx
mov dword [esi + ecx*4 + 0x18], eax
mov esi, dword [esp + 0x14]
cmp edi, esi
jl 0x405a60
cmp edx, 4
jne 0x405a86
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x405a4b
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp ebx, dword [ebp + 4]
jle 0x40595a
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00416329
add esp, 0x30
ret 4
Function at 0x405d51
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x43f040]
test esi, esi
jne 0x405d6f
mov ecx, 0x43f038
call fcn.00405cdc
mov esi, dword [0x43f040]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x405dba
test esi, esi
je 0x405dde
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a22c]
call esi
test eax, eax
jne 0x405e02
push str.CryptProtectMemory_failed
mov esi, 0x45bdac
push esi
call fcn.004018e8
pop ecx
pop ecx
mov ecx, esi
call fcn.00401a92
push 2
mov ecx, esi
call fcn.004018e3
jmp 0x405e02
mov esi, dword [0x43f044]
test esi, esi
je 0x405dde
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x42a22c]
call esi
test eax, eax
jne 0x405e02
push str.CryptUnprotectMemory_failed
jmp 0x405d9b
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
cmp dword [ebp + 0xc], edx
jbe 0x405e01
mov esi, dword [ebp + 8]
lea eax, [ebx + 0x4b]
add al, dl
lea ecx, [edx + esi]
xor byte [ecx], al
inc edx
cmp edx, dword [ebp + 0xc]
jb 0x405df1
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x406835
Capabilities:
Hash data using sha1

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x18], 0
and dword [eax + 0x1c], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
mov dword [eax + 0x10], 0xc3d2e1f0
ret 4