joyce8/EMBER2024-capa huggingface dataset:
Function at 0x417ef2
Capabilities:
Enumerate files on windows

Disassembly:
push 0x298
mov eax, 0x433a99
call fcn.00423669
and dword [ebp - 0x2a0], 0
mov dword [ebp - 0x2a4], ebx
lea eax, [ebp - 0x48]
xor esi, esi
push eax
inc esi
lea eax, [ebp + 8]
mov dword [ebp - 4], esi
call fcn.00417d3c
cmp dword [eax + 0x14], 8
jb 0x417f28
mov eax, dword [eax]
lea ecx, [ebp - 0x298]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
push esi
xor edi, edi
lea esi, [ebp - 0x48]
mov dword [ebp - 0x29c], eax
call fcn.0040cdbb
xor eax, eax
mov dword [ebx], eax
mov dword [ebx + 4], eax
mov dword [ebx + 8], eax
lea eax, [ebp - 0x26c]
inc edi
push eax
lea esi, [ebp - 0x2c]
mov dword [ebp - 0x2a0], edi
call fcn.00417732
mov ecx, esi
mov esi, ebx
mov byte [ebp - 4], 2
call fcn.00418dd9
push edi
jmp 0x417f95
lea eax, [ebp - 0x26c]
push eax
lea esi, [ebp - 0x2c]
call fcn.00417732
mov ecx, esi
mov esi, ebx
mov byte [ebp - 4], 3
call fcn.00418dd9
push 1
xor edi, edi
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 1
call fcn.0040cdbb
lea eax, [ebp - 0x298]
push eax
push dword [ebp - 0x29c]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x417f77
push eax
push 1
lea ecx, [ebp + 8]
call fcn.004049d5
mov eax, ebx
call fcn.004236b3
ret 0x1c

Function at 0x41c5f4
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov esi, ecx
xor edi, edi
mov ebx, eax
mov dword [esi + 0x6af78], edi
cmp dword [esi + 0x6af70], edi
jne 0x41c622
mov dword [esi + 0x6af78], 1
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
push edi
push eax
mov dword [esi + 0x6af6c], edi
call fcn.0041f660
mov eax, ebx
movzx ecx, word [eax*8 + 0x43d2aa]
mov dword [esi + 0x6af98], ecx
movzx ecx, word [eax*8 + 0x43d2a8]
mov dword [esi + 0x6af9c], ecx
movzx ecx, word [eax*8 + 0x43d2ac]
mov dword [esi + 0x6afa0], ecx
movzx eax, word [eax*8 + 0x43d2ae]
add esp, 0xc
mov dword [esi + 0x6af94], eax
cmp ebx, 2
jg 0x41c685
mov eax, dword [ebp + 8]
or word [eax], 4
jmp 0x41c691
cmp ebx, 8
jl 0x41c691
mov eax, dword [ebp + 8]
or word [eax], 2
push 0x10000
lea ebx, [esi + 0x1af70]
push ebx
push esi
mov dword [esi + 0x6af84], edi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
cmp eax, edi
je 0x41c6f6
cmp eax, 0xffffffff
je 0x41c6f6
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x41c6d1
call fcn.0041c84c
mov dword [esi + 0x6af7c], edi
xor eax, eax
movzx ecx, byte [ebx + eax]
shl edi, 5
xor edi, ecx
and edi, 0x7fff
inc eax
mov dword [esi + 0x6af7c], edi
cmp eax, 2
jb 0x41c6d9
jmp 0x41c706
mov dword [esi + 0x6af8c], 1
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x41c95d
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, eax
xor ebx, ebx
mov dword [ebp - 4], ebx
mov dword [esi + 0x6af80], 2
cmp dword [esi + 0x6af90], ebx
je 0x41cb5b
push edi
mov edi, 0x7fff
cmp dword [esi + 0x6af90], 3
jb 0x41c9d7
mov ecx, dword [esi + 0x6af84]
movzx eax, byte [ecx + esi + 0x1af72]
mov edx, dword [esi + 0x6af7c]
shl edx, 5
xor eax, edx
and eax, edi
mov dword [esi + 0x6af7c], eax
mov eax, dword [esi + eax*4 + 0x4af70]
and ecx, edi
mov dword [esi + ecx*4 + 0x2af70], eax
mov ecx, dword [esi + 0x6af84]
mov dword [ebp - 4], eax
mov eax, dword [esi + 0x6af7c]
mov dword [esi + eax*4 + 0x4af70], ecx
cmp dword [ebp - 4], 0
je 0x41ca1a
mov eax, dword [esi + 0x6af84]
sub eax, dword [ebp - 4]
cmp eax, 0x7efa
ja 0x41ca1a
mov ecx, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], ecx
jbe 0x41ca01
mov dword [esi + 0x6afa0], ecx
push dword [ebp - 4]
mov edx, esi
call fcn.0041c70b
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
cmp ebx, eax
jbe 0x41ca1a
mov ebx, eax
cmp ebx, 3
jb 0x41cadb
mov edx, dword [esi + 0x6af84]
sub edx, dword [esi + 0x6af88]
lea ecx, [ebx - 3]
mov eax, esi
call fcn.0041c0e6
sub dword [esi + 0x6af90], ebx
mov dword [ebp - 8], eax
mov eax, dword [esi + 0x6af90]
cmp ebx, dword [esi + 0x6af98]
ja 0x41caa8
cmp eax, 3
jb 0x41caa8
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [esi + edx + 0x1af72]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
xor ecx, eax
and ecx, edi
mov dword [esi + 0x6af7c], ecx
mov ecx, dword [esi + ecx*4 + 0x4af70]
and edx, edi
dec ebx
mov dword [esi + edx*4 + 0x2af70], ecx
mov eax, dword [esi + 0x6af7c]
mov dword [ebp - 4], ecx
mov ecx, dword [esi + 0x6af84]
mov dword [esi + eax*4 + 0x4af70], ecx
jne 0x41ca56
jmp 0x41cafb
add dword [esi + 0x6af84], ebx
mov edx, dword [esi + 0x6af84]
movzx ecx, byte [edx + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx edx, byte [edx + esi + 0x1af71]
shl ecx, 5
xor edx, ecx
xor ebx, ebx
and edx, edi
mov dword [esi + 0x6af7c], edx
jmp 0x41cb01
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
xor edx, edx
mov eax, esi
call fcn.0041c0e6
dec dword [esi + 0x6af90]
mov dword [ebp - 8], eax
inc dword [esi + 0x6af84]
cmp dword [ebp - 8], 0
je 0x41cb3c
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41cb1a
lea edx, [ecx + esi + 0x1af70]
jmp 0x41cb1c
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 0
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041bf1d
mov eax, dword [esi + 0x6af84]
pop ecx
pop ecx
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x41cb4d
call fcn.0041c84c
cmp dword [esi + 0x6af90], 0
jne 0x41c987
pop edi
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x41cb6e
lea edx, [ecx + esi + 0x1af70]
jmp 0x41cb70
xor edx, edx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push edx
mov ecx, esi
call fcn.0041bf1d
pop ecx
pop ecx
pop esi
pop ebx
leave
ret
Function at 0x41d718
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push edi
mov edi, edx
test ecx, ecx
jne 0x41d723
xor eax, eax
pop edi
ret
push esi
not eax
mov edx, 0xff
cmp edi, 8
jb 0x41d7d7
mov esi, edi
shr esi, 3
push ebx
movzx ebx, byte [ecx]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d2f8]
movzx ebx, byte [ecx + 1]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d2f8]
movzx ebx, byte [ecx + 2]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d2f8]
movzx ebx, byte [ecx + 3]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d2f8]
movzx ebx, byte [ecx + 4]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d2f8]
movzx ebx, byte [ecx + 5]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d2f8]
movzx ebx, byte [ecx + 6]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d2f8]
movzx ebx, byte [ecx + 7]
xor ebx, eax
and ebx, edx
shr eax, 8
xor eax, dword [ebx*4 + 0x43d2f8]
add ecx, 8
sub edi, 8
dec esi
jne 0x41d73a
pop ebx
test edi, edi
je 0x41d7f0
movzx esi, byte [ecx]
xor esi, eax
and esi, edx
shr eax, 8
xor eax, dword [esi*4 + 0x43d2f8]
inc ecx
dec edi
jne 0x41d7db
pop esi
not eax
pop edi
ret

Function at 0x41d7f5
Capabilities:
Generate random numbers using the delphi lcg
Hash data with crc32

Disassembly:
mov eax, dword [ecx]
movsx edx, dl
xor edx, eax
push esi
mov esi, 0xff
and edx, esi
mov edx, dword [edx*4 + 0x43d2f8]
shr eax, 8
xor edx, eax
mov eax, dword [ecx + 8]
mov dword [ecx], edx
movzx edx, dl
add edx, dword [ecx + 4]
imul edx, edx, 0x8088405
inc edx
mov dword [ecx + 4], edx
shr edx, 0x18
xor edx, eax
and edx, esi
shr eax, 8
xor eax, dword [edx*4 + 0x43d2f8]
pop esi
mov dword [ecx + 8], eax
ret
Function at 0x41d99e
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
mov eax, dword [0x444664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov dword [ebp - 0x50], eax
mov eax, dword [ebp + 0x10]
push edi
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x38]
mov esi, ecx
push eax
push esi
mov ebx, edx
call dword [0x447470]
test eax, eax
jne 0x41d9e0
mov eax, 0x200
jmp 0x41db64
mov ecx, dword [ebp - 0x38]
xor eax, eax
xor edi, edi
inc eax
mov dword [ebp - 0x40], ecx
and dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edi
je 0x41d9f6
mov dword [ebp - 0x3c], eax
test cl, 2
je 0x41d9ff
or dword [ebp - 0x3c], 2
test cl, 4
je 0x41da08
or dword [ebp - 0x3c], 4
mov eax, ecx
and eax, 0x10
je 0x41da13
or dword [ebp - 0x3c], 0x10
test cl, 0x20
je 0x41da1c
or dword [ebp - 0x3c], 0x20
cmp eax, edi
je 0x41da29
or dword [ebp - 0x3c], 0x40000000
jmp 0x41da30
or dword [ebp - 0x3c], 0x80000000
or dword [ebp - 0x3c], 0x1000000
cmp dword [ebp - 0x40], edi
jne 0x41da43
or dword [ebp - 0x3c], 0x800000
push edi
push esi
call dword [0x447550]
mov dword [ebp - 0x48], eax
cmp eax, 0x28
jbe 0x41dae8
push edi
push edi
push edi
push esi
call dword [0x447390]
push edi
lea eax, [ebp - 0x44]
push eax
push 2
lea eax, [ebp - 0x40]
push eax
push esi
call dword [0x44749c]
push edi
push edi
push 0x24
push esi
call dword [0x447390]
push edi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x4c]
push eax
push esi
call dword [0x44749c]
mov eax, 0x54ad
cmp word [ebp - 0x40], ax
jne 0x41dae8
mov eax, dword [ebp - 0x4c]
lea ecx, [eax + 0x34]
cmp dword [ebp - 0x48], ecx
jbe 0x41dae8
push edi
push edi
push eax
push esi
call dword [0x447390]
push edi
lea eax, [ebp - 0x44]
push eax
push 4
lea eax, [ebp - 0x5c]
push eax
push esi
call dword [0x44749c]
mov eax, dword [ebp - 0x5c]
cmp eax, 0x5a4d
je 0x41dae1
cmp eax, 0x454e
je 0x41dae1
cmp eax, 0x454c
je 0x41dae1
cmp eax, 0x4550
jne 0x41dae8
or dword [ebp - 0x3c], 0x400000
mov eax, dword [ebp - 0x58]
cmp eax, edi
je 0x41daf4
mov ecx, dword [ebp - 0x3c]
mov dword [eax], ecx
mov eax, dword [ebp - 0x50]
cmp eax, edi
je 0x41db00
mov ecx, dword [ebp - 0x48]
mov dword [eax], ecx
cmp ebx, edi
je 0x41db39
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.0041d913
push dword [ebp - 0x20]
mov dword [ebx], eax
push dword [ebp - 0x24]
mov dword [ebx + 4], edx
call fcn.0041d913
push dword [ebp - 0x30]
mov dword [ebx + 8], eax
push dword [ebp - 0x34]
mov dword [ebx + 0xc], edx
call fcn.0041d913
add esp, 0x18
mov dword [ebx + 0x10], eax
mov dword [ebx + 0x14], edx
mov ebx, dword [ebp - 0x54]
cmp ebx, edi
je 0x41db62
push dword [ebp - 0x20]
lea edi, [ebp - 0x3c]
push dword [ebp - 0x24]
lea esi, [ebp - 0x40]
call fcn.0041d937
movzx eax, word [ebp - 0x40]
pop ecx
pop ecx
movzx ecx, word [ebp - 0x3c]
shl eax, 0x10
or eax, ecx
mov dword [ebx], eax
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f64e
leave
ret

Function at 0x41f64e
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x444664]
jne 0x41f658
repz ret
jmp fcn.00425d8f
Function at 0x42d71c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x444664]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.00427fb2
and dword [ebp - 0x14], 0
cmp dword [0x4469b8], 0
mov dword [ebp - 0x18], eax
jne 0x42d7cf
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x42d877
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x42d877
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x4469b8], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x4469bc], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x4469c0], eax
call edi
push eax
call esi
mov dword [0x4469c8], eax
test eax, eax
je 0x42d7cf
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x4469c4], eax
mov eax, dword [0x4469c4]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x42d828
cmp dword [0x4469c8], ecx
je 0x42d828
push eax
call esi
push dword [0x4469c8]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x42d828
test ebx, ebx
je 0x42d828
call edi
test eax, eax
je 0x42d81f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x42d81f
test byte [ebp - 8], 1
jne 0x42d828
or dword [ebp + 0x10], 0x200000
jmp 0x42d85b
mov eax, dword [0x4469bc]
cmp eax, dword [ebp - 0x18]
je 0x42d85b
push eax
call esi
test eax, eax
je 0x42d85b
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x42d85b
mov eax, dword [0x4469c0]
cmp eax, dword [ebp - 0x18]
je 0x42d85b
push eax
call esi
test eax, eax
je 0x42d85b
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x4469b8]
call esi
test eax, eax
je 0x42d877
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x42d879
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041f64e
leave
ret
Function at 0x401c8d
Capabilities:
Contain obfuscated stackstrings

Disassembly:
adc al, 0x8d
je 0x401cc9
sbb byte [ecx - 0x1017438b], cl
std
invalid
dec esi
or al, 0xf
mov bh, 0xd0
mov eax, dword [ecx + 4]
mov esi, dword [ecx]
add eax, esi
cmp dword [ebp - 8], eax
jae 0x401cdd
mov dword [ebp - 8], eax
add ecx, 0x28
dec edx
jne 0x401cce
mov byte [ebp - 0x58], bl
mov byte [ebp - 0x57], bl
mov byte [ebp - 0x56], 0x58
mov byte [ebp - 0x55], bl
mov byte [ebp - 0x54], 0xe0
mov byte [ebp - 0x53], 0xc2
mov byte [ebp - 0x52], 0xd3
mov byte [ebp - 0x51], 0xf4

Function at 0x401ec0
Capabilities:
Contain obfuscated stackstrings

Disassembly:
fimul dword [edx - 0x3a]
inc ebp
fisttp dword [edi - 0x3a]
inc ebp
fsub qword [edi - 0x3a]
inc ebp
fld qword [edx - 0x3a]
inc ebp
fimul word [ecx - 0x3a]
inc ebp
fistp word [ecx - 0x3a]
inc ebp
loopne 0x401f24
mov byte [ebp - 0x1f], 0x59
mov byte [ebp - 0x1e], 0x52
mov byte [ebp - 0x1d], 0x6a
mov byte [ebp - 0x1c], 0x2b
call fcn.00401a99
push eax
push esi
push dword [ebp + 8]
call fcn.00401a4e
add esp, 0x30
mov dword [ebp - 0xb8], eax
call fcn.00401a89
pop eax
push ebp
mov edi, 0x7c9d884d
invalid
mov byte [ebp - 0x80], 0x51
mov byte [ebp - 0x7f], 0x73
mov byte [ebp - 0x7e], 0x62
mov byte [ebp - 0x7d], 0x5b
mov byte [ebp - 0x7c], 0x79
mov byte [ebp - 0x7b], 0x72
mov byte [ebp - 0x7a], 0x63
mov byte [ebp - 0x79], 0x7a
mov byte [ebp - 0x78], 0x73
mov byte [ebp - 0x77], 0x5e
mov byte [ebp - 0x76], 0x77
mov byte [ebp - 0x75], 0x78
mov byte [ebp - 0x74], 0x72
mov byte [ebp - 0x73], 0x7a
mov byte [ebp - 0x72], 0x73
mov byte [ebp - 0x71], 0x57
mov byte [ebp - 0x70], 0x16
call fcn.00401a89
mov al, byte [0x8d6701c6]
test dword [edi + edi*8 - 1], edi
call dword [eax - 0x18]
sbb al, 0xfb
invalid
Function at 0x4021a0
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
cmp ax, word [edi + 6]
jne 0x402160
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x40217e
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x4021dc
mov edx, edi
mov dword [ebp + 8], edi
or byte [ecx + 0x865], al
add byte [eax - 0x77], al
jge 0x4021bb
or byte [ecx + 0x865], al
add byte [eax - 0x77], al
jge 0x4021bb
and edx, 0x20000000
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x4021c3
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x4021cc
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x4021d6
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x4021b8
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
mov ecx, dword [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x402142
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x402229
dec eax
je 0x402220
sub eax, 3
je 0x402217
mov dword [ebp - 4], 0x40
jmp 0x402246
mov dword [ebp - 4], 4
jmp 0x40222c
mov dword [ebp - 4], 0x20
jmp 0x40222c
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x402278
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x4021f8
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.00401a89
invalid
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40330a
Capabilities:
Contain obfuscated stackstrings

Disassembly:
inc dword [eax]
mov byte [ebp - 0x742], 2
and byte [ebp - 0x741], 0
mov byte [ebp - 0x740], 0xb1
mov byte [ebp - 0x73f], 0x92
mov byte [ebp - 0x73e], 0x9c
mov byte [ebp - 0x73d], 0x99
mov byte [ebp - 0x73c], 0xb1
mov byte [ebp - 0x73b], 0x94
mov byte [ebp - 0x73a], 0x9f
mov byte [ebp - 0x739], 0x8f
invalid
test eax, ecx
clc

Function at 0x403794
Capabilities:
Contain obfuscated stackstrings

Disassembly:
and byte [ebp - 0x7a9], 0
mov byte [ebp - 0x7a8], 0x4e
mov byte [ebp - 0x7a7], 0x55
mov byte [ebp - 0x7a6], 0x56
mov byte [ebp - 0x7a5], 0x7e
mov byte [ebp - 0x7a4], 0x21
mov byte [ebp - 0x7a3], 0x20
mov byte [ebp - 0x7a2], 0x3c
mov byte [ebp - 0x7a1], 0x76
mov byte [ebp - 0x7a0], 0x7e
mov byte [ebp - 0x79f], 0x7e
mov byte [ebp - 0x79e], 0x12
push 0xb
lea eax, [ebp - 0x7ac]
push esp
clc
invalid
call dword [eax - 0x18]
mov dword [0x59ffffe2], eax
push eax
mov eax, dword [ebp - 0x338]
lea eax, [ebp + eax - 0x230]
push eax
call fcn.004019fa
add esp, 0xc
Function at 0x404812
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
mov ecx, esi
call fcn.0040163e
push 0x208
xor edi, edi
lea eax, [ebp - 0x20c]
push edi
push eax
call fcn.00417a80
add esp, 0xc
lea eax, [ebp - 0x20c]
push eax
push edi
push edi
push ebx
push edi
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov edi, eax
test edi, edi
jns 0x4048ac
movzx ecx, bl
cmp ecx, 0x26
jne 0x404870
mov edx, 0x43b754
jmp 0x40487a
cmp ecx, 0x1c
jne 0x40489b
mov edx, str.LocalAppData
lea ecx, [ebp - 0x210]
call fcn.004047cd
push eax
mov ecx, esi
call fcn.004015e6
mov ecx, dword [ebp - 0x210]
lea ecx, [ecx - 0x10]
call fcn.004015ce
mov eax, dword [esi]
cmp dword [eax - 0xc], 0
je 0x4048a8
xor eax, eax
inc eax
jmp 0x4048ca
mov eax, edi
jmp 0x4048ca
lea eax, [ebp - 0x20c]
push eax
call fcn.00423592
pop ecx
push eax
lea eax, [ebp - 0x20c]
mov ecx, esi
push eax
call fcn.004016da
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00416f09
leave
ret
Function at 0x404fd6
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
test edi, edi
jle 0x4050ee
mov esi, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
cmp edi, 2
jle 0x405056
sub edx, 4
js 0x4050ee
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx ecx, byte [ebx + 1]
movzx eax, byte [ebx + 2]
and ecx, 0xf
shr eax, 6
mov al, byte [eax + ecx*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
movzx eax, byte [ebx + 2]
add ebx, 3
and eax, 0x3f
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 3], al
add esi, 4
sub edi, 3
jmp 0x404fee
sub edi, 1
je 0x4050b2
sub edi, 1
jne 0x4050e7
sub edx, 3
js 0x4050ee
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx ecx, byte [ebx]
movzx eax, byte [ebx + 1]
and ecx, 3
shr eax, 4
add ecx, ecx
mov al, byte [eax + ecx*8 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
movzx eax, byte [ebx + 1]
and eax, 0xf
mov al, byte [eax*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 2], al
lea eax, [edx - 1]
test eax, eax
js 0x4050ee
mov byte [esi + 3], 0x3d
jmp 0x4050e4
sub edx, 2
js 0x4050ee
movzx eax, byte [ebx]
shr eax, 2
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi], al
movzx eax, byte [ebx]
and eax, 3
shl eax, 4
mov al, byte [eax + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [esi + 1], al
lea eax, [edx - 2]
test eax, eax
js 0x4050ee
mov word [esi + 2], 0x3d3d
add esi, 4
sub esi, dword [ebp + 8]
mov eax, esi
jmp 0x4050f0
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4057d2
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
mov eax, dword [0x442008]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
test esi, esi
jne 0x4057ed
mov al, 1
jmp 0x405830
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call fcn.00417a80
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x405828
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.LOG_SYSTEM:_ERROR____::GetFileInformationByHandle_failed___d_
call fcn.00409210
pop ecx
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
jmp 0x4057e9
mov eax, dword [ebp - 0x38]
shr eax, 0xa
and al, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00416f09
leave
ret