joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e490
Capabilities:
Check if file exists

Disassembly:
push 0x8c
mov eax, 0x439da6
call fcn.00438b26
mov edi, ecx
and dword [edi + 0x4c], 0
cmp byte [edi + 0x30], 0
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0x90], eax
jne 0x40e4c0
test bl, 4
jne 0x40e4c0
xor cl, cl
jmp 0x40e4c2
mov cl, 1
mov esi, ebx
shr esi, 1
not esi
and esi, 1
inc esi
shl esi, 0x1e
test bl, 1
je 0x40e4da
or esi, 0x40000000
shr ebx, 3
not ebx
and ebx, 1
test cl, cl
je 0x40e4e9
or ebx, 2
lea ecx, [ebp - 0x88]
call fcn.0040a772
xor eax, eax
mov dword [ebp - 4], eax
cmp byte [edi + 0x24], al
je 0x40e504
or esi, 0x100
mov ecx, dword [ebp - 0x90]
push eax
push 0x8000000
push 3
push eax
push ebx
push esi
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
cmp eax, 0xffffffff
jne 0x40e5a1
call dword [sym.imp.KERNEL32.dll_GetLastError]
lea ecx, [ebp - 0x28]
mov dword [ebp - 0x94], eax
call fcn.004021e6
mov ecx, dword [ebp - 0x90]
lea edx, [ebp - 0x28]
mov byte [ebp - 4], 1
call fcn.004117c2
test al, al
je 0x40e587
push 0
push 0x8000000
push 3
push 0
push ebx
push esi
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x8c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
jne 0x40e587
push eax
pop ebx
jmp 0x40e58d
mov ebx, dword [ebp - 0x94]
lea ecx, [ebp - 0x28]
mov byte [ebp - 4], 0
call fcn.00401e5c
mov eax, dword [ebp - 0x8c]
jmp 0x40e5a7
mov ebx, dword [ebp - 0x94]
cmp eax, 0xffffffff
jne 0x40e5b8
cmp ebx, 2
jne 0x40e5b8
mov dword [edi + 0x4c], 1
cmp byte [edi + 0x24], 0
je 0x40e5e9
cmp eax, 0xffffffff
je 0x40e5e9
or dword [ebp - 0x98], 0xffffffff
lea ecx, [ebp - 0x98]
or dword [ebp - 0x94], 0xffffffff
push 0
push ecx
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFileTime]
mov eax, dword [ebp - 0x8c]
xor ecx, ecx
cmp eax, 0xffffffff
mov byte [edi + 0x1c], cl
mov dword [edi + 0x10], ecx
setne bl
mov byte [edi + 0x15], cl
je 0x40e611
push dword [ebp - 0x90]
lea ecx, [edi + 0x34]
mov dword [edi + 8], eax
call fcn.0040335d
mov byte [edi + 0x25], 0
lea ecx, [ebp - 0x88]
call fcn.0040a796
mov al, bl
call fcn.00438ad5
ret 8
Function at 0x40e7ef
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x439cc0
call fcn.00438b26
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x40e811
mov al, 1
jmp 0x40e942
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x40e82f
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x40e910
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x40e886
xor edi, edi
test esi, esi
je 0x40e8a6
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x40e856
mov eax, edx
push 0
lea edx, [ebp - 0x30]
push edx
push eax
mov eax, dword [ebp - 0x38]
add eax, edi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test eax, eax
je 0x40e89e
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x40e847
jmp 0x40e89e
push 0
lea edx, [ebp - 0x30]
push edx
push esi
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
setne dl
mov byte [ebp - 0x29], dl
test dl, dl
jne 0x40e93b
cmp byte [ebx + 0x1e], 0
je 0x40e93b
cmp dword [ebx + 0x10], 0
jne 0x40e93b
push ecx
lea edi, [ebx + 0x34]
push edi
call fcn.00409f02
test al, al
je 0x40e918
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x40e832
cmp dword [ebp - 0x30], 0
jbe 0x40e832
mov edi, dword [ebx]
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43c270]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
push 0
sbb edx, 0
push edx
push eax
call dword [0x43c270]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x40e832
push 0x4422dc
lea ecx, [ebp - 0x28]
call fcn.00401d16
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
call fcn.00409ee4
lea ecx, [ebp - 0x28]
call fcn.00401e5c
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.00438ad5
ret 8

Function at 0x40eff4
Capabilities:
Create directory

Disassembly:
push 0x20
mov eax, 0x439783
call fcn.00438b26
mov bl, dl
mov esi, ecx
call fcn.00410c2c
movzx eax, ax
cmp eax, 0x2e
je 0x40f02e
cmp eax, 0x20
je 0x40f02e
push 0
mov ecx, esi
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
test edi, edi
jne 0x40f078
jmp 0x40f030
xor edi, edi
mov ecx, esi
call fcn.0040f304
test al, al
jne 0x40f08a
lea ecx, [ebp - 0x2c]
call fcn.004021e6
and dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, esi
call fcn.004117c2
test al, al
je 0x40f068
push 0
lea ecx, [ebp - 0x2c]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov edi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401e5c
test edi, edi
je 0x40f08a
test bl, bl
je 0x40f086
mov edx, dword [ebp + 8]
mov ecx, esi
call fcn.0040f391
xor eax, eax
jmp 0x40f0a2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40f0a2
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.00438ad5
ret 4
Function at 0x40f335
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x1c
mov eax, 0x439317
call fcn.00438b26
mov edi, ecx
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40f389
lea ecx, [ebp - 0x28]
call fcn.004021e6
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004117c2
test al, al
je 0x40f381
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
lea ecx, [ebp - 0x28]
call fcn.00401e5c
mov eax, esi
call fcn.00438ad5
ret

Function at 0x40f391
Capabilities:
Set file attributes

Disassembly:
push 0x1c
mov eax, 0x439317
call fcn.00438b26
mov esi, edx
mov edi, ecx
push esi
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x40f3ee
lea ecx, [ebp - 0x28]
call fcn.004021e6
and dword [ebp - 4], 0
lea edx, [ebp - 0x28]
mov ecx, edi
call fcn.004117c2
test al, al
je 0x40f3e6
push esi
lea ecx, [ebp - 0x28]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
lea ecx, [ebp - 0x28]
call fcn.00401e5c
mov al, bl
call fcn.00438ad5
ret
Function at 0x40f9f6
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x270
mov eax, 0x439f30
call fcn.00438b26
mov ebx, edx
mov esi, ecx
mov edi, dword [ebp + 8]
lea eax, [ebp - 0x27c]
push eax
cmp esi, 0xffffffff
jne 0x40fa97
mov ecx, ebx
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x40fab3
lea ecx, [ebp - 0x2c]
call fcn.004021e6
and dword [ebp - 4], 0
lea edx, [ebp - 0x2c]
mov ecx, ebx
call fcn.004117c2
test al, al
je 0x40fa63
lea eax, [ebp - 0x27c]
push eax
lea ecx, [ebp - 0x2c]
call fcn.0040126f
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x2c]
call fcn.00401e5c
cmp esi, 0xffffffff
jne 0x40fab3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x40fa8d
cmp eax, 3
je 0x40fa8d
cmp eax, 0x12
je 0x40fa8d
mov al, 1
jmp 0x40fa8f
xor al, al
mov byte [edi + 0x5c], al
jmp 0x40fb66
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x40fab3
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x40fa8f
push ebx
mov ecx, edi
call fcn.0040335d
lea eax, [ebp - 0x250]
push eax
lea ecx, [ebp - 0x2c]
call fcn.00401d16
lea edx, [ebp - 0x2c]
mov dword [ebp - 4], 1
mov ecx, edi
call fcn.00410e26
lea ecx, [ebp - 0x2c]
call fcn.00401e5c
mov ecx, dword [ebp - 0x260]
xor eax, eax
add eax, dword [ebp - 0x25c]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x27c]
adc ecx, 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x278]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x274]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x270]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x26c]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x268]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x264]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x268]
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x28]
push eax
call fcn.004178f0
lea eax, [ebp - 0x278]
push eax
lea ecx, [edi + 0x30]
call fcn.004178f0
lea eax, [ebp - 0x270]
push eax
lea ecx, [edi + 0x38]
call fcn.004178f0
and dword [edi + 0x58], 0
mov eax, esi
call fcn.00438ad5
ret 4

Function at 0x410005
Capabilities:
Hash data using crc32b

Disassembly:
mov ecx, dword [esp + 4]
push edi
xor edi, edi
test ecx, ecx
je 0x41003c
push esi
mov esi, dword [esp + 0x10]
test esi, esi
je 0x41003b
mov eax, esi
mov edx, ecx
and al, 1
movzx eax, al
neg eax
sbb eax, eax
sar edx, 0x1f
and eax, ecx
shr esi, 1
and edx, 0x4c11db7
add ecx, ecx
xor edi, eax
xor ecx, edx
jne 0x410015
pop esi
mov eax, edi
pop edi
ret 8
Function at 0x410440
Capabilities:
Connect to wmi namespace via wbemlocator
Reference wmi statements

Disassembly:
push 0x2c
mov eax, 0x43a01d
call fcn.00438af3
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 0x43c8a0
push 1
push ebx
push 0x43c8b0
mov dword [ebp - 0x14], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x41062f
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
mov dword [ebp - 0x10], ebx
push 0x442948
mov eax, dword [eax]
mov esi, dword [eax + 0xc]
call fcn.004107de
mov ecx, eax
mov dword [ebp - 4], ebx
call fcn.00410826
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push eax
push dword [ebp - 0x14]
mov ecx, esi
call dword [0x43c270]
call esi
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0041079b
test esi, esi
js 0x41061c
push ebx
push ebx
push 3
push 3
push ebx
push ebx
push 0xa
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoSetProxyBlanket]
test eax, eax
mov eax, dword [ebp - 0x10]
js 0x41060c
mov dword [ebp - 0x1c], ebx
lea ecx, [ebp - 0x28]
mov eax, dword [eax]
push str.SELECT__FROM_Win32_OperatingSystem
mov edi, dword [eax + 0x50]
call fcn.004106e1
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.00410826
push 0x442984
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.004106e1
mov ecx, eax
mov byte [ebp - 4], 2
call fcn.00410826
lea ecx, [ebp - 0x1c]
push ecx
push ebx
push 0x30
push esi
push eax
push dword [ebp - 0x10]
mov ecx, edi
call dword [0x43c270]
call edi
lea ecx, [ebp - 0x24]
mov esi, eax
call fcn.0041079b
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.0041079b
test esi, esi
js 0x410609
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x410609
lea ecx, [ebp - 0x20]
mov dword [ebp - 0x18], ebx
push ecx
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x20], ebx
mov esi, dword [eax]
push ecx
push 1
push 0xffffffffffffffff
mov ecx, dword [esi + 0x10]
push eax
call dword [0x43c270]
call dword [esi + 0x10]
mov eax, dword [ebp - 0x18]
test eax, eax
je 0x4105cc
cmp dword [ebp - 0x20], ebx
jbe 0x4105cc
mov esi, dword [eax]
lea ecx, [ebp - 0x38]
push ebx
push ebx
push ecx
mov ecx, dword [esi + 0x10]
push ebx
push 0x442988
push eax
call dword [0x43c270]
call dword [esi + 0x10]
mov ecx, dword [ebp - 0x30]
call fcn.004106b4
test eax, eax
lea eax, [ebp - 0x38]
push eax
setne bl
call dword [sym.imp.OLEAUT32.dll_VariantCopy]
mov eax, dword [ebp - 0x18]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
mov eax, dword [ebp - 0x10]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
mov ecx, dword [ebp - 0x1c]
push ecx
mov edx, dword [ecx]
mov esi, dword [edx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
mov al, bl
jmp 0x410631
mov eax, dword [ebp - 0x10]
mov ecx, dword [eax]
push eax
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
mov eax, dword [ebp - 0x14]
push eax
mov ecx, dword [eax]
mov esi, dword [ecx + 8]
mov ecx, esi
call dword [0x43c270]
call esi
xor al, al
call fcn.00438ac1
ret
Function at 0x410637
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x98]
sub esp, 0x118
mov eax, dword [0x449020]
xor eax, ebp
mov dword [ebp + 0x94], eax
cmp byte [0x452531], 0
jne 0x41069a
lea eax, [ebp - 0x80]
mov dword [ebp - 0x80], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x7c], 0xa
ja 0x41068a
jne 0x410686
cmp dword [ebp - 0x74], 0x55f0
jb 0x410686
call fcn.00410440
test al, al
je 0x41068a
xor al, al
jmp 0x41068c
mov al, 1
mov byte [0x452530], al
mov byte [0x452531], 1
jmp 0x41069f
mov al, byte [0x452530]
mov ecx, dword [ebp + 0x94]
xor ecx, ebp
call fcn.00423125
add ebp, 0x98
leave
ret

Function at 0x4148df
Capabilities:
Decrypt data using aes via x86 extensions

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ecx
mov edx, ecx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 0x10]
lea eax, [edx + 0x18]
mov dword [esp + 0xc], eax
movups xmm2, xmmword [edx + 8]
test esi, esi
je 0x414962
mov ecx, dword [ebp + 8]
mov eax, ecx
add ecx, 0x10
mov dword [ebp + 8], ecx
mov ecx, dword [edx + 4]
movups xmm3, xmmword [eax]
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0xc]
dec ecx
movups xmm1, xmmword [eax]
pxor xmm1, xmm3
test ecx, ecx
jle 0x41493f
mov eax, ecx
shl eax, 4
add eax, dword [esp + 0xc]
movups xmm0, xmmword [eax]
dec ecx
lea eax, [eax - 0x10]
aesdec xmm1, xmm0
test ecx, ecx
jg 0x41492f
cmp byte [edx + 1], 0
movups xmm0, xmmword [edx + 0x18]
aesdeclast xmm1, xmm0
je 0x414952
pxor xmm1, xmm2
mov eax, edi
movaps xmm2, xmm3
add edi, 0x10
movups xmmword [eax], xmm1
sub esi, 1
jne 0x414900
pop edi
movups xmmword [edx + 8], xmm2
pop esi
mov esp, ebp
pop ebp
ret 0xc
Function at 0x41496e
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x34
mov eax, dword [0x449020]
xor eax, esp
mov dword [esp + 0x30], eax
mov eax, dword [esp + 0x38]
push ebx
push ebp
push esi
mov ebp, ecx
push edi
push 0x20
push eax
mov esi, dword [ebp + 4]
lea eax, [esp + 0x28]
sub esi, 6
mov dword [esp + 0x1c], ebp
push eax
mov dword [esp + 0x24], esi
call fcn.00424810
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x4149fa
cmp ebx, dword [ebp + 4]
jg 0x414b5e
cmp edi, esi
jge 0x4149e7
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x4149e3
mov esi, dword [esp + 0x14]
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 + 0x18]
cmp edi, esi
jl 0x4149c3
mov ebp, dword [esp + 0x14]
cmp edx, 4
jne 0x4149ed
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x4149ae
cmp ebx, dword [ebp + 4]
jg 0x414b5e
mov edi, 0x4423f0
movzx eax, byte [esp + esi*4 + 0x1d]
mov cl, byte [esp + 0x20]
xor cl, byte [eax + str.cw]
mov byte [esp + 0x20], cl
movzx eax, byte [esp + esi*4 + 0x1e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x21], al
movzx eax, byte [esp + esi*4 + 0x1f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x22], al
movzx eax, byte [esp + esi*4 + 0x1c]
mov al, byte [eax + str.cw]
xor byte [esp + 0x23], al
mov al, byte [edi]
inc edi
xor al, cl
mov dword [esp + 0x1c], edi
mov byte [esp + 0x20], al
cmp esi, 8
je 0x414a8b
cmp esi, 1
jle 0x414a7f
lea eax, [esi - 1]
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], eax
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414a6d
sub dword [esp + 0x10], 1
jne 0x414a6a
xor edi, edi
test esi, esi
jle 0x414b51
jmp 0x414b09
lea ecx, [esp + 0x24]
mov dword [esp + 0x10], 3
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414a9a
sub dword [esp + 0x10], 1
jne 0x414a97
movzx eax, byte [esp + 0x2c]
lea ecx, [esp + 0x34]
mov dword [esp + 0x10], 3
mov al, byte [eax + str.cw]
xor byte [esp + 0x30], al
movzx eax, byte [esp + 0x2d]
mov al, byte [eax + str.cw]
xor byte [esp + 0x31], al
movzx eax, byte [esp + 0x2e]
mov al, byte [eax + str.cw]
xor byte [esp + 0x32], al
movzx eax, byte [esp + 0x2f]
mov al, byte [eax + str.cw]
xor byte [esp + 0x33], al
push 4
pop edi
mov al, byte [ecx - 4]
xor byte [ecx], al
inc ecx
sub edi, 1
jne 0x414af7
sub dword [esp + 0x10], 1
jne 0x414af4
cmp ebx, dword [ebp + 4]
jg 0x414b54
cmp edi, esi
jge 0x414b3e
lea ebp, [esp + 0x20]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x414b3a
mov esi, dword [esp + 0x14]
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 + 0x18]
cmp edi, esi
jl 0x414b1a
mov ebp, dword [esp + 0x14]
cmp edx, 4
jne 0x414b44
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x414b09
cmp ebx, dword [ebp + 4]
mov edi, dword [esp + 0x1c]
jle 0x414a08
mov ecx, dword [esp + 0x40]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00423125
add esp, 0x34
ret 4
Function at 0x414b73
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x449020]
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 0x414c2c
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 + 0x452130]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x451930]
xor dl, byte [esi + eax*4 + 0x451530]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x451d30]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x414bb6
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x414bab
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.00424810
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 0x414ba2
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.00423125
add esp, 0x24
ret
Function at 0x414c58
Capabilities:
Encrypt data using aes
Reference aes constants

Disassembly:
push ebx
push ebp
push esi
push edi
xor edi, edi
mov ebp, 0x100
mov ecx, edi
movzx eax, byte [ecx + str.cw]
mov byte [eax + 0x44f430], cl
inc ecx
cmp ecx, ebp
jl 0x414c65
mov bl, byte [edi + str.cw]
mov dl, 2
mov cl, bl
mov byte [edi*4 + 0x450131], bl
mov byte [edi*4 + 0x450130], bl
mov byte [edi*4 + 0x44fd33], bl
mov byte [edi*4 + 0x44fd30], bl
mov byte [edi*4 + 0x44f933], bl
mov byte [edi*4 + 0x44f932], bl
mov byte [edi*4 + 0x44f532], bl
mov byte [edi*4 + 0x44f531], bl
call fcn.00414c3d
mov dl, 3
mov byte [edi*4 + 0x450133], al
mov cl, bl
mov byte [edi*4 + 0x44fd32], al
mov byte [edi*4 + 0x44f931], al
mov byte [edi*4 + 0x44f530], al
call fcn.00414c3d
mov bl, byte [edi + 0x44f430]
mov dl, 0xb
mov cl, bl
mov byte [edi*4 + 0x450132], al
mov byte [edi*4 + 0x44fd31], al
mov byte [edi*4 + 0x44f930], al
mov byte [edi*4 + 0x44f533], al
call fcn.00414c3d
movzx esi, bl
mov dl, 9
mov cl, bl
mov byte [edi*4 + 0x451132], al
mov byte [edi*4 + 0x450d31], al
mov byte [edi*4 + 0x450930], al
mov byte [edi*4 + 0x450533], al
mov byte [esi*4 + 0x452132], al
mov byte [esi*4 + 0x451d31], al
mov byte [esi*4 + 0x451930], al
mov byte [esi*4 + 0x451533], al
call fcn.00414c3d
mov dl, 0xd
mov byte [edi*4 + 0x451130], al
mov cl, bl
mov byte [edi*4 + 0x450d33], al
mov byte [edi*4 + 0x450932], al
mov byte [edi*4 + 0x450531], al
mov byte [esi*4 + 0x452130], al
mov byte [esi*4 + 0x451d33], al
mov byte [esi*4 + 0x451932], al
mov byte [esi*4 + 0x451531], al
call fcn.00414c3d
mov dl, 0xe
mov byte [edi*4 + 0x451131], al
mov cl, bl
mov byte [edi*4 + 0x450d30], al
mov byte [edi*4 + 0x450933], al
mov byte [edi*4 + 0x450532], al
mov byte [esi*4 + 0x452131], al
mov byte [esi*4 + 0x451d30], al
mov byte [esi*4 + 0x451933], al
mov byte [esi*4 + 0x451532], al
call fcn.00414c3d
mov byte [edi*4 + 0x451133], al
mov byte [edi*4 + 0x450d32], al
mov byte [edi*4 + 0x450931], al
mov byte [edi*4 + 0x450530], al
inc edi
mov byte [esi*4 + 0x452133], al
mov byte [esi*4 + 0x451d32], al
mov byte [esi*4 + 0x451931], al
mov byte [esi*4 + 0x451530], al
cmp edi, ebp
jl 0x414c77
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x415041
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push ecx
push ebx
push esi
mov esi, dword [0x44a868]
mov ebx, ecx
push edi
mov edi, edx
test esi, esi
jne 0x415069
mov ecx, 0x44a860
call fcn.00414e52
mov esi, dword [0x44a868]
movzx ecx, byte [ebp + 0xc]
mov eax, edi
and eax, 0xfffffff0
cmp byte [ebp + 8], 0
je 0x4150af
test esi, esi
je 0x4150d1
push ecx
push eax
push ebx
mov ecx, esi
call dword [0x43c270]
call esi
test eax, eax
jne 0x4150f3
push str.CryptProtectMemory_failed
mov esi, 0x44a850
push esi
call fcn.00409f5c
pop ecx
pop ecx
call fcn.0040a1e6
push 2
mov ecx, esi
call fcn.0040a119
jmp 0x4150f3
mov esi, dword [0x44a86c]
test esi, esi
je 0x4150d1
push ecx
push eax
push ebx
mov ecx, esi
call dword [0x43c270]
call esi
test eax, eax
jne 0x4150f3
push str.CryptUnprotectMemory_failed
jmp 0x415092
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov dword [esp + 0xc], eax
test edi, edi
je 0x4150f3
add al, 0x4b
lea ecx, [edx + ebx]
add al, dl
xor byte [ecx], al
inc edx
mov eax, dword [esp + 0xc]
cmp edx, edi
jb 0x4150e1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x41598c
Capabilities:
Hash data using sha1

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

Function at 0x415c2f
Capabilities:
Hash data using sha256

Disassembly:
and dword [ecx + 0x20], 0
and dword [ecx + 0x24], 0
mov dword [ecx], 0x6a09e667
mov dword [ecx + 4], 0xbb67ae85
mov dword [ecx + 8], 0x3c6ef372
mov dword [ecx + 0xc], 0xa54ff53a
mov dword [ecx + 0x10], 0x510e527f
mov dword [ecx + 0x14], 0x9b05688c
mov dword [ecx + 0x18], 0x1f83d9ab
mov dword [ecx + 0x1c], 0x5be0cd19
ret