joyce8/EMBER2024-capa huggingface dataset:
Function at 0x403d88
Capabilities:
Write file on windows

Disassembly:
push 0x2c
mov eax, 0x42fc6f
call fcn.0041c3e8
mov ebx, ecx
mov esi, dword [ebp + 0xc]
mov eax, dword [ebp + 8]
mov dword [ebp - 0x38], eax
test esi, esi
jne 0x403daa
mov al, 1
jmp 0x403ee6
cmp dword [ebx + 0x10], 1
lea ecx, [ebx + 8]
mov dword [ebp - 0x34], ecx
jne 0x403dc8
push 0xfffffffffffffff5
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
lea ecx, [ebx + 8]
mov dword [ecx], eax
jmp 0x403eaf
mov dword [ebp - 0x34], ecx
and dword [ebp - 0x30], 0
xor dl, dl
cmp dword [ebx + 0x10], 0
mov byte [ebp - 0x29], dl
je 0x403e1f
xor edi, edi
test esi, esi
je 0x403e3f
mov eax, esi
mov edx, 0x4000
sub eax, edi
cmp eax, edx
jb 0x403def
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 0x403e37
mov ecx, dword [ebp - 0x34]
add edi, 0x4000
cmp edi, esi
jb 0x403de0
jmp 0x403e37
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 0x403edf
cmp byte [ebx + 0x1e], 0
je 0x403edf
cmp dword [ebx + 0x10], 0
jne 0x403edf
push 0
lea edi, [ebx + 0x34]
mov ecx, 0x4594e8
push edi
call fcn.00402d73
test al, al
je 0x403eb7
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
cmp dword [ebp - 0x30], esi
jae 0x403dcb
cmp dword [ebp - 0x30], 0
jbe 0x403dcb
mov edi, dword [ebx]
push 0
mov esi, dword [edi + 0x14]
mov ecx, esi
call dword [0x43224c]
mov ecx, ebx
call esi
sub eax, dword [ebp - 0x30]
mov ecx, dword [edi + 0x10]
sbb edx, 0
push edx
push eax
call dword [0x43224c]
mov ecx, ebx
call dword [edi + 0x10]
mov esi, dword [ebp + 0xc]
mov ecx, dword [ebp - 0x34]
mov eax, dword [ebp - 0x38]
jmp 0x403dcb
push 0x432668
lea ecx, [ebp - 0x28]
call fcn.004014a3
and dword [ebp - 4], 0
lea eax, [ebp - 0x28]
push edi
push eax
mov ecx, 0x4594e8
call fcn.00403183
lea ecx, [ebp - 0x28]
call fcn.00401770
mov al, byte [ebp - 0x29]
mov byte [ebx + 0xc], 1
call fcn.0041c397
ret 8
Function at 0x404461
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push 0x24
mov eax, 0x42fbfc
call fcn.0041c3e8
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x40447a
mov eax, dword [esi]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
cmp edi, 0xffffffff
jne 0x4044fe
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.004060a8
test al, al
je 0x4044c3
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4044ba
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov edi, eax
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x4044fe
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x4044f5
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041c336
pop ecx
pop ecx
mov eax, edi
call fcn.0041c397
ret 4

Function at 0x404740
Capabilities:
Create directory

Disassembly:
push 0x24
mov eax, 0x42fbfc
call fcn.0041c3e8
mov esi, dword [ebp + 8]
push esi
call fcn.00405e94
movzx eax, ax
cmp eax, 0x2e
je 0x404782
cmp eax, 0x20
je 0x404782
cmp dword [esi + 0x14], 8
mov eax, esi
jb 0x40476c
mov eax, dword [esi]
xor edi, edi
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
test ebx, ebx
jne 0x404821
jmp 0x404786
xor edi, edi
mov ebx, edi
push esi
call fcn.0040444f
test al, al
jne 0x404834
xor eax, eax
mov dword [ebp - 0x28], edi
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], edi
push eax
push esi
call fcn.004060a8
test al, al
je 0x4047ce
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x4047c4
mov eax, dword [ebp - 0x28]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ebx, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x40480d
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x404804
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041c336
pop ecx
pop ecx
xor eax, eax
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test ebx, ebx
je 0x404834
cmp byte [ebp + 0xc], 0
je 0x404830
push dword [ebp + 0x10]
push esi
call fcn.00404a2f
xor eax, eax
jmp 0x40484c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, eax
push 2
pop eax
cmp ecx, eax
je 0x40484c
xor eax, eax
cmp ecx, 3
sete al
inc eax
call fcn.0041c397
ret 0xc
Function at 0x404a2f
Capabilities:
Set file attributes

Disassembly:
push 0x24
mov eax, 0x42fbfc
call fcn.0041c3e8
mov esi, dword [ebp + 8]
mov eax, esi
cmp dword [esi + 0x14], 8
jb 0x404a48
mov eax, dword [esi]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
test eax, eax
jne 0x404ad5
xor ecx, ecx
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push esi
call fcn.004060a8
test al, al
je 0x404a9a
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x404a8b
mov eax, dword [ebp - 0x28]
push dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne bl
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404ad5
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x30], ecx
cmp eax, 0x1000
jb 0x404acc
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x2c]
mov ecx, dword [ebp - 0x30]
push eax
push ecx
call fcn.0041c336
pop ecx
pop ecx
mov al, bl
call fcn.0041c397
ret 8
Function at 0x404d8a
Capabilities:
Check if file exists
Enumerate files on windows

Disassembly:
push 0x274
mov eax, 0x42fd1e
call fcn.0041c3e8
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov edi, dword [ebp + 0x10]
cmp esi, 0xffffffff
jne 0x404e89
cmp dword [ebx + 0x14], 8
mov eax, ebx
jb 0x404db5
mov eax, dword [ebx]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x404eac
xor ecx, ecx
mov dword [ebp - 0x14], 7
xor eax, eax
mov dword [ebp - 0x28], ecx
mov dword [ebp - 0x18], ecx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], ecx
push eax
push ebx
call fcn.004060a8
test al, al
je 0x404e10
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x404e00
mov eax, dword [ebp - 0x28]
lea ecx, [ebp - 0x278]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 0x14]
cmp eax, 8
jb 0x404e61
mov ecx, dword [ebp - 0x28]
lea eax, [eax*2 + 2]
mov dword [ebp - 0x27c], eax
mov dword [ebp - 0x280], ecx
cmp eax, 0x1000
jb 0x404e58
lea eax, [ebp - 0x27c]
push eax
lea eax, [ebp - 0x280]
push eax
call fcn.004016b3
mov eax, dword [ebp - 0x27c]
mov ecx, dword [ebp - 0x280]
push eax
push ecx
call fcn.0041c336
pop ecx
pop ecx
cmp esi, 0xffffffff
jne 0x404eac
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x404e7f
cmp eax, 3
je 0x404e7f
cmp eax, 0x12
je 0x404e7f
mov al, 1
jmp 0x404e81
xor al, al
mov byte [edi + 0x5c], al
jmp 0x404f63
lea eax, [ebp - 0x278]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x404eac
or esi, 0xffffffff
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
setne al
jmp 0x404e81
push ebx
mov ecx, edi
call fcn.004021d7
lea eax, [ebp - 0x24c]
push eax
lea ecx, [ebp - 0x28]
call fcn.004014a3
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 1
push eax
push edi
call fcn.004066d5
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.00401770
mov ecx, dword [ebp - 0x25c]
xor eax, eax
add eax, dword [ebp - 0x258]
mov dword [edi + 0x18], eax
mov eax, dword [ebp - 0x278]
adc ecx, 0
mov dword [edi + 0x20], eax
mov eax, dword [ebp - 0x274]
mov dword [edi + 0x1c], ecx
mov ecx, dword [ebp - 0x270]
mov dword [edi + 0x40], eax
mov eax, dword [ebp - 0x26c]
mov dword [edi + 0x44], ecx
mov ecx, dword [ebp - 0x268]
mov dword [edi + 0x48], eax
mov eax, dword [ebp - 0x264]
mov dword [edi + 0x4c], ecx
mov ecx, dword [ebp - 0x260]
mov dword [edi + 0x50], eax
lea eax, [ebp - 0x264]
mov dword [edi + 0x54], ecx
lea ecx, [edi + 0x28]
push eax
call fcn.0040ae56
lea eax, [ebp - 0x274]
push eax
lea ecx, [edi + 0x30]
call fcn.0040ae56
lea eax, [ebp - 0x26c]
push eax
lea ecx, [edi + 0x38]
call fcn.0040ae56
and dword [edi + 0x58], 0
mov eax, esi
call fcn.0041c397
ret 0xc
Function at 0x408069
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 + 0x445038], cl
inc ecx
cmp ecx, 0x100
jl 0x408072
mov al, byte [ebp + str.cw]
mov byte [esp + 0x10], al
push 2
push dword [esp + 0x14]
mov byte [ebp*4 + 0x445d39], al
mov byte [ebp*4 + 0x445d38], al
mov byte [ebp*4 + 0x44593b], al
mov byte [ebp*4 + 0x445938], al
mov byte [ebp*4 + 0x44553b], al
mov byte [ebp*4 + 0x44553a], al
mov byte [ebp*4 + 0x44513a], al
mov byte [ebp*4 + 0x445139], al
call fcn.00408840
push 3
push dword [esp + 0x14]
mov byte [ebp*4 + 0x445d3b], al
mov byte [ebp*4 + 0x44593a], al
mov byte [ebp*4 + 0x445539], al
mov byte [ebp*4 + 0x445138], al
call fcn.00408840
mov bl, byte [ebp + 0x445038]
push 0xb
mov byte [esp + 0x10], bl
push dword [esp + 0x10]
mov byte [ebp*4 + 0x445d3a], al
mov byte [ebp*4 + 0x445939], al
mov byte [ebp*4 + 0x445538], al
mov byte [ebp*4 + 0x44513b], al
call fcn.00408840
movzx edi, bl
push 9
push dword [esp + 0x10]
mov byte [ebp*4 + 0x446d3a], al
mov byte [ebp*4 + 0x446939], al
mov byte [ebp*4 + 0x446538], al
mov byte [ebp*4 + 0x44613b], al
mov byte [edi*4 + 0x447d3a], al
mov byte [edi*4 + 0x447939], al
mov byte [edi*4 + 0x447538], al
mov byte [edi*4 + 0x44713b], al
call fcn.00408840
push 0xd
push dword [esp + 0x10]
mov byte [ebp*4 + 0x446d38], al
mov byte [ebp*4 + 0x44693b], al
mov byte [ebp*4 + 0x44653a], al
mov byte [ebp*4 + 0x446139], al
mov byte [edi*4 + 0x447d38], al
mov byte [edi*4 + 0x44793b], al
mov byte [edi*4 + 0x44753a], al
mov byte [edi*4 + 0x447139], al
call fcn.00408840
push 0xe
push dword [esp + 0x10]
mov byte [ebp*4 + 0x446d39], al
mov byte [ebp*4 + 0x446938], al
mov byte [ebp*4 + 0x44653b], al
mov byte [ebp*4 + 0x44613a], al
mov byte [edi*4 + 0x447d39], al
mov byte [edi*4 + 0x447938], al
mov byte [edi*4 + 0x44753b], al
mov byte [edi*4 + 0x44713a], al
call fcn.00408840
mov byte [ebp*4 + 0x446d3b], al
mov byte [ebp*4 + 0x44693a], al
mov byte [ebp*4 + 0x446539], al
mov byte [ebp*4 + 0x446138], al
inc ebp
mov byte [edi*4 + 0x447d3b], al
mov byte [edi*4 + 0x44793a], al
mov byte [edi*4 + 0x447539], al
mov byte [edi*4 + 0x447138], al
cmp ebp, 0x100
jl 0x408088
pop edi
pop ebp
pop ebx
pop ecx
pop ecx
ret
Function at 0x4087bb
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 0x408836
mov edx, dword [esp + 0x18]
mov eax, esi
add esi, 0x10
cmp byte [ecx + 1], 0
movups xmm0, xmmword [eax]
je 0x4087e6
pxor xmm0, xmm1
movups xmm1, xmmword [edi]
mov eax, dword [ecx + 4]
pxor xmm1, xmm0
cmp eax, 1
jle 0x408818
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 0x408802
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 0x4087d4
pop edi
movups xmmword [ecx + 8], xmm1
pop esi
pop ecx
ret 0xc

Function at 0x40886a
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x24
mov eax, dword [0x43e748]
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 0x408923
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 + 0x447d38]
movzx eax, byte [ebp - 2]
xor dl, byte [esi + ecx*4 + 0x447538]
xor dl, byte [esi + eax*4 + 0x447138]
movzx eax, byte [ebp]
lea ebp, [ebp + 4]
xor dl, byte [esi + eax*4 + 0x447938]
mov byte [ebx], dl
lea ebx, [ebx + 4]
sub edi, 1
jne 0x4088ad
mov eax, dword [esp + 0x18]
inc esi
cmp esi, 4
jl 0x4088a2
mov edi, dword [esp + 0x14]
lea eax, [esp + 0x20]
push 0x10
push eax
push edi
call fcn.0041d630
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 0x408899
pop edi
pop esi
mov ecx, dword [esp + 0x28]
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c344
add esp, 0x24
ret
Function at 0x408934
Capabilities:
Encode data using xor
Encrypt data using aes
Reference aes constants

Disassembly:
sub esp, 0x30
mov eax, dword [0x43e748]
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.0041d630
add esp, 0xc
xor ebx, ebx
xor edx, edx
xor edi, edi
test esi, esi
jle 0x4089c0
cmp ebx, dword [ebp + 4]
jg 0x408b18
cmp edi, esi
jge 0x4089ad
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x4089a9
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 0x408989
mov ebp, dword [esp + 0x10]
cmp edx, 4
jne 0x4089b3
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x408974
cmp ebx, dword [ebp + 4]
jg 0x408b18
mov edi, 0x43e108
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 0x408a4f
cmp esi, 1
jle 0x408a43
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 0x408a2f
sub ebp, 1
jne 0x408a2c
mov ebp, dword [esp + 0x10]
xor edi, edi
test esi, esi
jle 0x408b0b
jmp 0x408abf
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 0x408a59
sub ebp, 1
jne 0x408a56
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 0x408aaf
sub ebp, 1
jne 0x408aac
mov eax, dword [esp + 0x10]
cmp ebx, dword [eax + 4]
jg 0x408b07
cmp edi, esi
jge 0x408af4
lea ebp, [esp + 0x1c]
lea ebp, [ebp + edi*4]
cmp edx, 4
jge 0x408af7
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 0x408ad4
cmp edx, 4
jne 0x408afa
inc ebx
lea eax, [edx - 4]
neg eax
sbb eax, eax
and edx, eax
cmp edi, esi
jl 0x408abf
mov ebp, dword [esp + 0x10]
mov edi, dword [esp + 0x18]
cmp ebx, dword [ebp + 4]
jle 0x4089ce
mov ecx, dword [esp + 0x3c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0041c344
add esp, 0x30
ret 4
Function at 0x408c7e
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [0x448140]
test esi, esi
jne 0x408c9c
mov ecx, 0x448138
call fcn.00408c09
mov esi, dword [0x448140]
mov eax, dword [ebp + 0xc]
movzx ecx, byte [ebp + 0x14]
and eax, 0xfffffff0
cmp byte [ebp + 0x10], 0
je 0x408ce7
test esi, esi
je 0x408d0b
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x43224c]
call esi
test eax, eax
jne 0x408d2f
push str.CryptProtectMemory_failed
mov esi, 0x4594e8
push esi
call fcn.00402e2e
pop ecx
pop ecx
mov ecx, esi
call fcn.00403030
push 2
mov ecx, esi
call fcn.00402e29
jmp 0x408d2f
mov esi, dword [0x448144]
test esi, esi
je 0x408d0b
push ecx
push eax
push dword [ebp + 8]
mov ecx, esi
call dword [0x43224c]
call esi
test eax, eax
jne 0x408d2f
push str.CryptUnprotectMemory_failed
jmp 0x408cc8
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
xor edx, edx
mov ebx, eax
cmp dword [ebp + 0xc], edx
jbe 0x408d2e
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 0x408d1e
pop ebx
pop esi
pop ebp
ret 0x10
Function at 0x4096e1
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

Function at 0x409adc
Capabilities:
Query environment variable

Disassembly:
push 0x10
mov eax, 0x43005f
call fcn.0041c3b5
mov edi, dword [ebp + 8]
mov eax, edi
cmp dword [edi + 0x14], 8
jb 0x409af5
mov eax, dword [edi]
xor ebx, ebx
push ebx
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
jne 0x409b08
xor al, al
jmp 0x409b6d
push eax
lea ecx, [ebp - 0x1c]
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], ebx
call fcn.004018cd
mov eax, dword [ebp - 0x18]
mov ecx, edi
mov esi, dword [ebp - 0x1c]
sub eax, esi
sar eax, 1
cmp dword [edi + 0x14], 8
mov dword [ebp - 4], ebx
mov dword [ebp - 0x10], eax
jb 0x409b34
mov ecx, dword [edi]
push eax
push esi
push ecx
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
test eax, eax
je 0x409b58
cmp eax, dword [ebp - 0x10]
ja 0x409b58
push esi
call fcn.0042145e
pop ecx
push eax
push esi
mov ecx, edi
call fcn.0040180c
mov bl, 1
test esi, esi
je 0x409b6b
mov ecx, dword [ebp - 0x14]
sub ecx, esi
and ecx, 0xfffffffe
push ecx
push esi
call fcn.004012a3
mov al, bl
call fcn.0041c383
ret 4

Function at 0x40a473
Capabilities:
Get common file path

Disassembly:
push 0x60
mov eax, 0x4300ee
call fcn.0041c3e8
mov ebx, dword [ebp + 8]
push 0x208
call fcn.0041c306
mov edi, eax
pop ecx
mov dword [ebp - 0x6c], edi
lea esi, [edi + 0x208]
push esi
push edi
mov dword [ebp - 0x64], esi
call fcn.00401485
mov dword [ebp - 0x68], esi
and dword [ebp - 4], 0
push 0x104
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
test eax, eax
jne 0x40a4c0
xor ebx, ebx
jmp 0x40a576
and dword [ebp - 0x28], 0
xor eax, eax
and dword [ebp - 0x18], 0
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
push ebx
lea ecx, [ebp - 0x58]
mov byte [ebp - 4], 1
call fcn.004014a3
push edi
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 2
call fcn.004014a3
lea eax, [ebp - 0x28]
mov byte [ebp - 4], 3
push eax
lea eax, [ebp - 0x58]
push eax
lea eax, [ebp - 0x40]
push eax
call fcn.00406449
lea ecx, [ebp - 0x40]
call fcn.00401770
lea ecx, [ebp - 0x58]
call fcn.00401770
cmp dword [ebp - 0x14], 8
lea eax, [ebp - 0x28]
jb 0x40a520
mov eax, dword [ebp - 0x28]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ecx, dword [ebp - 0x14]
mov ebx, eax
cmp ecx, 8
jb 0x40a565
mov edx, dword [ebp - 0x28]
lea ecx, [ecx*2 + 2]
mov dword [ebp - 0x5c], ecx
mov dword [ebp - 0x60], edx
cmp ecx, 0x1000
jb 0x40a55c
lea eax, [ebp - 0x5c]
push eax
lea eax, [ebp - 0x60]
push eax
call fcn.004016b3
mov ecx, dword [ebp - 0x5c]
mov edx, dword [ebp - 0x60]
push ecx
push edx
call fcn.0041c336
pop ecx
pop ecx
and dword [ebp - 0x18], 0
xor eax, eax
mov dword [ebp - 0x14], 7
mov word [ebp - 0x28], ax
test edi, edi
je 0x40a586
sub esi, edi
and esi, 0xfffffffe
push esi
push edi
call fcn.004012a3
mov eax, ebx
call fcn.0041c397
ret 4
Function at 0x40f617
Capabilities:
Encode data using xor

Disassembly:
cmp dword [0x4587b0], 0
je 0x40f624
or eax, 0xffffffff
ret
mov eax, dword [0x44868c]
push ebx
push ebp
xor ebp, ebp
cmp eax, ebp
jg 0x40f662
mov ecx, dword [0x448688]
jl 0x40f63d
cmp ecx, ebp
ja 0x40f662
or ebx, 0xffffffff
mov dword [0x4586d0], ebp
add ecx, ebx
mov dword [0x4586d4], ebp
mov dword [0x448688], ecx
adc eax, ebx
mov dword [0x44868c], eax
mov eax, ebx
jmp 0x40f76f
push esi
push edi
mov edi, dword [0x4586d4]
or ebx, 0xffffffff
cmp edi, ebp
jg 0x40f6c7
jl 0x40f67d
mov esi, dword [0x4586d0]
cmp esi, ebp
ja 0x40f6cd
mov esi, 0x2000
push esi
push dword [0x4586c4]
call fcn.0040f949
cdq
mov ecx, eax
mov dword [0x4586d0], eax
or ecx, edx
mov dword [0x4586d4], edx
je 0x40f70c
and eax, edx
cmp eax, ebx
je 0x40f6fd
add dword [0x458708], esi
mov eax, dword [0x4586c4]
adc dword [0x45870c], ebp
mov dword [0x4586c8], eax
call fcn.0040efc9
mov edi, dword [0x4586d4]
mov esi, dword [0x4586d0]
mov eax, dword [0x4486b8]
test byte [eax + 0x80], 1
je 0x40f74f
cmp byte [0x458888], 0
mov eax, esi
je 0x40f71c
or eax, edi
je 0x40f74f
push esi
push dword [0x4586c8]
push 0x458898
call fcn.0041305d
jmp 0x40f743
push 0x4591e4
mov ecx, 0x4594e8
call fcn.00402f83
mov dword [0x4586d0], ebp
mov eax, ebx
mov dword [0x4586d4], ebp
jmp 0x40f76d
or eax, edi
mov ebp, dword [0x4586c8]
je 0x40f74f
add esi, ebx
adc edi, ebx
call fcn.00412e25
xor byte [ebp], al
movzx eax, byte [ebp]
push eax
call fcn.00412f4f
mov eax, esi
inc ebp
or eax, edi
jne 0x40f726
mov esi, dword [0x4586d0]
mov edi, dword [0x4586d4]
mov eax, dword [0x4586c8]
add esi, ebx
mov dword [0x4586d0], esi
adc edi, ebx
mov dword [0x4586d4], edi
movzx eax, byte [eax]
inc dword [0x4586c8]
pop edi
pop esi
pop ebp
pop ebx
ret