joyce8/EMBER2024-capa huggingface dataset:
Function at 0x408a7e
Capabilities:
Move file

Disassembly:
sub esp, 0x34
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x30], eax
push esi
mov esi, dword [esp + 0x40]
push edi
mov edi, dword [esp + 0x40]
mov ecx, edi
push esi
call fcn.0040c1bd
test eax, eax
jne 0x408aa6
mov al, 1
jmp 0x408b07
push ebx
push ebp
xor ebp, ebp
lea eax, [esp + 0x28]
push ebp
push esi
push eax
call fcn.00409151
mov esi, eax
add esp, 0xc
cmp dword [esi + 0x14], 8
jb 0x408ac3
mov esi, dword [esi]
push ebp
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00409151
add esp, 0xc
cmp dword [eax + 0x14], 8
jb 0x408ada
mov eax, dword [eax]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
push ebp
push 1
lea ecx, [esp + 0x18]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
call fcn.0040b62d
push ebp
push 1
lea ecx, [esp + 0x30]
call fcn.0040b62d
pop ebp
mov al, bl
pop ebx
mov ecx, dword [esp + 0x38]
pop edi
pop esi
xor ecx, esp
call fcn.004189a5
add esp, 0x34
ret
Function at 0x40a0d4
Capabilities:
Write file on windows

Disassembly:
sub esp, 0x20
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
cmp dword [esi + 0x40], ebx
je 0x40a1dc
cmp byte [esi + 0x45], bl
je 0x40a1dc
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x40a10d
xor al, al
jmp 0x40a1de
push ebp
push edi
push ebx
push 8
lea ecx, [esp + 0x1c]
mov dword [esp + 0x30], 0xf
mov dword [esp + 0x2c], ebx
mov byte [esp + 0x1c], bl
call fcn.0040badc
lea ebp, [esi + 0x48]
mov edi, dword [esp + 0x14]
mov eax, dword [esp + 0x28]
mov ebx, edi
cmp eax, 0x10
jae 0x40a143
lea ebx, [esp + 0x14]
mov edi, ebx
mov ecx, dword [esi + 0x40]
lea eax, [esp + 0x10]
push eax
mov eax, dword [esp + 0x28]
add eax, ebx
mov edx, dword [ecx]
push eax
push edi
push ebp
call dword [edx + 0x20]
sub eax, 0
je 0x40a169
dec eax
je 0x40a16d
dec eax
dec eax
je 0x40a1c7
xor bl, bl
jmp 0x40a1c9
mov byte [esi + 0x45], 0
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
mov ecx, edi
cmp eax, 0x10
jae 0x40a180
lea ecx, [esp + 0x14]
mov ebx, dword [esp + 0x10]
sub ebx, ecx
je 0x40a1ac
cmp eax, 0x10
jae 0x40a191
lea edi, [esp + 0x14]
push dword [esi + 0x50]
push ebx
push 1
push edi
call fcn.00414a78
add esp, 0x10
cmp ebx, eax
jne 0x40a165
mov eax, dword [esp + 0x28]
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x45], 0
je 0x40a1c7
test ebx, ebx
jne 0x40a136
push ebx
push 8
lea ecx, [esp + 0x1c]
call fcn.0040b7d6
jmp 0x40a12e
mov bl, 1
push 0
push 1
lea ecx, [esp + 0x1c]
call fcn.0040b5eb
pop edi
mov al, bl
pop ebp
jmp 0x40a1de
mov al, 1
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
call fcn.004189a5
add esp, 0x20
ret
Function at 0x40c565
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 8]
test edx, edx
jne 0x40c570
xor eax, eax
ret
mov ecx, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
not ecx
mov ebx, 0xff
cmp esi, 8
jb 0x40c62d
push edi
mov edi, esi
shr edi, 3
movzx eax, byte [edx]
sub esi, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4315c0]
movzx eax, byte [edx + 1]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4315c0]
movzx eax, byte [edx + 2]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4315c0]
movzx eax, byte [edx + 3]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4315c0]
movzx eax, byte [edx + 4]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4315c0]
movzx eax, byte [edx + 5]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4315c0]
movzx eax, byte [edx + 6]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4315c0]
movzx eax, byte [edx + 7]
add edx, 8
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4315c0]
dec edi
jne 0x40c590
pop edi
test esi, esi
je 0x40c646
movzx eax, byte [edx]
xor eax, ecx
shr ecx, 8
and eax, ebx
xor ecx, dword [eax*4 + 0x4315c0]
inc edx
dec esi
jne 0x40c631
not ecx
pop esi
mov eax, ecx
pop ebx
ret
Function at 0x40cd6b
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
xor edi, edi
mov ebp, edi
mov ebx, edi
mov dword [esi + 0x6af80], 2
jmp 0x40cf5b
cmp dword [esi + 0x6af90], 3
jb 0x40cdda
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [edx + esi + 0x1af72]
xor ecx, eax
mov eax, 0x7fff
and ecx, eax
and edx, eax
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
test ebp, ebp
je 0x40ce18
mov eax, dword [esi + 0x6af84]
sub eax, ebp
cmp eax, 0x7efa
ja 0x40ce18
mov eax, dword [esi + 0x6af90]
cmp dword [esi + 0x6afa0], eax
jbe 0x40ce01
mov dword [esi + 0x6afa0], eax
push ebp
push esi
call fcn.0040f29e
mov ebx, eax
mov eax, dword [esi + 0x6af90]
pop ecx
pop ecx
cmp ebx, eax
jbe 0x40ce18
mov ebx, eax
cmp ebx, 3
jb 0x40cee9
lea eax, [ebx - 3]
push eax
mov eax, dword [esi + 0x6af84]
sub eax, dword [esi + 0x6af88]
push eax
push esi
call fcn.0040c89d
sub dword [esi + 0x6af90], ebx
add esp, 0xc
mov dword [esp + 0x14], eax
cmp ebx, dword [esi + 0x6af98]
ja 0x40ceaf
cmp dword [esi + 0x6af90], 3
jb 0x40ceaf
dec ebx
inc dword [esi + 0x6af84]
mov edx, dword [esi + 0x6af84]
mov eax, dword [esi + 0x6af7c]
shl eax, 5
movzx ecx, byte [esi + edx + 0x1af72]
xor ecx, eax
mov eax, 0x7fff
and ecx, eax
and edx, eax
mov dword [esi + 0x6af7c], ecx
mov ebp, dword [esi + ecx*4 + 0x4af70]
mov dword [esi + edx*4 + 0x2af70], ebp
mov ecx, dword [esi + 0x6af7c]
mov eax, dword [esi + 0x6af84]
mov dword [esi + ecx*4 + 0x4af70], eax
dec ebx
jne 0x40ce57
mov eax, dword [esp + 0x14]
jmp 0x40cf08
add dword [esi + 0x6af84], ebx
mov ebx, edi
mov eax, dword [esi + 0x6af84]
movzx ecx, byte [eax + esi + 0x1af70]
mov dword [esi + 0x6af7c], ecx
movzx eax, byte [eax + esi + 0x1af71]
shl ecx, 5
xor eax, ecx
and eax, 0x7fff
mov dword [esi + 0x6af7c], eax
mov eax, dword [esp + 0x14]
jmp 0x40cf0e
mov eax, dword [esi + 0x6af84]
movzx eax, byte [eax + esi + 0x1af70]
push eax
push edi
push esi
call fcn.0040c89d
add esp, 0xc
dec dword [esi + 0x6af90]
inc dword [esi + 0x6af84]
test eax, eax
je 0x40cf48
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x40cf26
lea edx, [esi + 0x1af70]
add edx, ecx
jmp 0x40cf28
mov edx, edi
mov eax, dword [esi + 0x6af84]
push edi
sub eax, ecx
push eax
push edx
push esi
call fcn.0040e62a
mov eax, dword [esi + 0x6af84]
add esp, 0x10
mov dword [esi + 0x6af74], eax
cmp dword [esi + 0x6af90], 0x106
jae 0x40cf5b
push esi
call fcn.0040e29a
pop ecx
cmp dword [esi + 0x6af90], edi
jne 0x40cd88
mov ecx, dword [esi + 0x6af74]
test ecx, ecx
js 0x40cf79
lea edi, [esi + 0x1af70]
add edi, ecx
mov eax, dword [esi + 0x6af84]
push 1
sub eax, ecx
push eax
push edi
push esi
call fcn.0040e62a
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x40d5bb
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x40
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x3c], eax
mov eax, dword [esp + 0x54]
push ebx
push ebp
mov ebp, dword [esp + 0x4c]
mov ebx, ecx
push esi
push edi
mov edi, dword [esp + 0x60]
mov byte [esp + 0x18], al
test dword [edi + 0x14], 0x4000
jne 0x40d608
mov edx, dword [esp + 0x68]
mov esi, dword [ebx]
movzx edx, dl
push edx
push dword [esp + 0x1c]
push edi
push dword [esp + 0x68]
push dword [esp + 0x68]
push ebp
call dword [esi + 0x24]
jmp 0x40d730
mov ecx, dword [edi + 0x30]
mov ecx, dword [ecx]
mov dword [esp + 0x10], ecx
mov eax, dword [ecx]
call dword [eax + 4]
lea eax, [esp + 0x10]
push eax
call fcn.00402605
pop ecx
lea ecx, [esp + 0x10]
mov esi, eax
call fcn.00403029
and dword [esp + 0x2c], 0
lea ecx, [esp + 0x34]
cmp byte [esp + 0x68], 0
mov dword [esp + 0x30], 0xf
mov byte [esp + 0x1c], 0
mov eax, dword [esi]
push ecx
mov ecx, esi
je 0x40d653
call dword [eax + 0x1c]
jmp 0x40d656
call dword [eax + 0x18]
lea eax, [esp + 0x34]
push eax
lea ecx, [esp + 0x20]
call fcn.0040ba26
push 0
push 1
lea ecx, [esp + 0x3c]
call fcn.0040b5eb
cmp dword [edi + 0x24], 0
mov ecx, dword [esp + 0x2c]
jl 0x40d68e
jg 0x40d683
cmp dword [edi + 0x20], 0
jbe 0x40d68e
mov esi, dword [edi + 0x20]
cmp esi, ecx
jbe 0x40d68e
sub esi, ecx
jmp 0x40d690
xor esi, esi
mov eax, dword [edi + 0x14]
and eax, 0x1c0
cmp eax, 0x40
je 0x40d6c9
push esi
push dword [esp + 0x1c]
lea eax, [esp + 0x18]
push dword [esp + 0x64]
push dword [esp + 0x64]
push eax
push ebx
call fcn.0040b4d5
add esp, 0x18
xor esi, esi
mov edx, dword [eax]
mov dword [esp + 0x58], edx
mov eax, dword [eax + 4]
mov dword [esp + 0x5c], eax
jmp 0x40d6d1
mov eax, dword [esp + 0x5c]
mov edx, dword [esp + 0x58]
cmp dword [esp + 0x30], 0x10
mov ecx, dword [esp + 0x1c]
jae 0x40d6e0
lea ecx, [esp + 0x1c]
mov dword [esp + 0x10], ecx
mov ecx, dword [esp + 0x2c]
push ecx
push dword [esp + 0x14]
push eax
push edx
lea eax, [esp + 0x20]
push eax
push ebx
call fcn.0040b41e
push esi
push dword [esp + 0x34]
mov ecx, dword [eax]
mov dword [esp + 0x78], ecx
mov eax, dword [eax + 4]
and dword [edi + 0x20], 0
and dword [edi + 0x24], 0
push eax
push ecx
push ebp
push ebx
mov dword [esp + 0x8c], eax
call fcn.0040b4d5
add esp, 0x30
lea ecx, [esp + 0x1c]
push 0
push 1
call fcn.0040b5eb
mov ecx, dword [esp + 0x4c]
mov eax, ebp
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004189a5
add esp, 0x40
ret 0x18
Function at 0x40f16c
Capabilities:
Encode data using xor
Encrypt data using rc4 prga

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
mov esi, dword [esp + 0x10]
push edi
push 7
pop ecx
lea eax, [ebx - 1]
cmp ecx, eax
push str.bad_pack_level
sbb al, al
inc al
push eax
push esi
call fcn.0040405e
xor ebp, ebp
xor edi, edi
add esp, 0xc
mov dword [esi + 0x6af78], edi
inc ebp
cmp dword [esi + 0x6af70], edi
jne 0x40f1b6
mov dword [esi + 0x6af78], ebp
mov dword [esi + 0x6af70], 0x10000
push 0x1fffc
lea eax, [esi + 0x4af70]
mov dword [esi + 0x6af6c], edi
push edi
push eax
call fcn.00417630
movzx eax, word [ebx*8 + 0x431572]
add esp, 0xc
mov dword [esi + 0x6af98], eax
movzx eax, word [ebx*8 + 0x431570]
mov dword [esi + 0x6af9c], eax
movzx eax, word [ebx*8 + 0x431574]
push 2
mov dword [esi + 0x6afa0], eax
movzx eax, word [ebx*8 + 0x431576]
pop ecx
mov dword [esi + 0x6af94], eax
cmp ebx, ecx
jg 0x40f21a
mov eax, dword [esp + 0x1c]
or word [eax], 4
jmp 0x40f226
cmp ebx, 8
jl 0x40f226
mov eax, dword [esp + 0x1c]
or word [eax], cx
push 0x10000
lea ebx, [esi + 0x1af70]
mov dword [esi + 0x6af84], edi
push ebx
push esi
mov dword [esi + 0x6af74], edi
call dword [esi + 0xc]
add esp, 0xc
mov dword [esi + 0x6af90], eax
test eax, eax
je 0x40f28d
cmp eax, 0xffffffff
je 0x40f28d
mov dword [esi + 0x6af8c], edi
cmp eax, 0x106
jae 0x40f268
push esi
call fcn.0040e29a
pop ecx
mov dword [esi + 0x6af7c], edi
mov ecx, edi
movzx eax, byte [ebx + edi]
shl ecx, 5
xor ecx, eax
and ecx, 0x7fff
inc edi
mov dword [esi + 0x6af7c], ecx
cmp edi, 2
jb 0x40f270
jmp 0x40f299
mov dword [esi + 0x6af8c], ebp
mov dword [esi + 0x6af90], edi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x4107bc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov ecx, dword [edi + 0x84]
test ecx, ecx
je 0x410813
mov eax, dword [edi + 0x8c]
mov esi, dword [edi + 0x88]
cmp eax, esi
jae 0x410850
sub esi, eax
cmp esi, dword [ebp + 0xc]
jbe 0x4107e8
mov esi, dword [ebp + 0xc]
push esi
add eax, ecx
push eax
push dword [ebp + 8]
call fcn.00416f60
add dword [edi + 0x8c], esi
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.0040c565
add esp, 0x18
mov dword [edi + 0x78], eax
mov eax, esi
jmp 0x410852
cmp dword [edi + 0x7c], 0
je 0x410849
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [edi + 0x7c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x410850
mov esi, dword [ebp - 4]
add dword [edi + 0x74], esi
push esi
push dword [ebp + 8]
push dword [edi + 0x78]
call fcn.0040c565
add esp, 0xc
jmp 0x41080c
mov dword [edi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8

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

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
movsx eax, al
push esi
mov ecx, dword [edx]
mov esi, 0xff
xor eax, ecx
shr ecx, 8
and eax, esi
mov eax, dword [eax*4 + 0x4315c0]
xor eax, ecx
mov dword [edx], eax
movzx eax, al
add eax, dword [edx + 4]
imul ecx, eax, 0x8088405
mov eax, dword [edx + 8]
inc ecx
mov dword [edx + 4], ecx
shr ecx, 0x18
xor ecx, eax
shr eax, 8
and ecx, esi
pop esi
xor eax, dword [ecx*4 + 0x4315c0]
mov dword [edx + 8], eax
ret

Function at 0x412140
Capabilities:
Write file on windows

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov esi, ecx
push edi
mov edi, dword [esp + 0x14]
cmp byte [esi + 0x2d], 0
je 0x4121b7
cmp dword [esi + 0x3c], 0
je 0x412171
cmp dword [esi + 0x40], edi
jae 0x41216b
push dword [esi + 0x3c]
call fcn.0041854a
and dword [esi + 0x3c], 0
pop ecx
cmp dword [esi + 0x3c], 0
jne 0x412181
lea eax, [edi + edi]
push eax
call fcn.00413102
pop ecx
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], edi
push edi
push ebx
push dword [esi + 0x3c]
call fcn.00416f60
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x4121b4
push ebp
lea ebp, [esi + 0x30]
mov eax, dword [esi + 0x3c]
movzx eax, byte [ebx + eax]
push eax
push ebp
call fcn.00412410
pop ecx
pop ecx
mov ecx, dword [esi + 0x3c]
mov byte [ebx + ecx], al
inc ebx
cmp ebx, edi
jb 0x412198
pop ebp
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x20]
test ecx, ecx
je 0x4121e6
mov edx, dword [esi + 0x24]
lea eax, [edx + edi]
cmp eax, dword [esi + 0x28]
jb 0x4121d2
mov dword [esi + 0x14], 0x30000
jmp 0x41220a
push edi
add ecx, edx
push ebx
push ecx
call fcn.00416f60
add esp, 0xc
mov eax, edi
add dword [esi + 0x24], edi
jmp 0x41220c
mov eax, dword [esi + 4]
test eax, eax
je 0x412203
push 0
lea ecx, [esp + 0x14]
push ecx
push edi
push ebx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov eax, dword [esp + 0x10]
jmp 0x41220c
mov dword [esi + 0x14], 0x1000000
xor eax, eax
pop edi
pop esi
pop ebx
ret 8
Function at 0x412e85
Capabilities:
Set registry value

Disassembly:
sub esp, 0x38
mov eax, dword [0x43c580]
xor eax, esp
mov dword [esp + 0x34], eax
push ebx
push ebp
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
lea eax, [esp + 0xc]
push edi
xor ebp, ebp
mov ebx, 0x80000001
push ebp
push eax
push ebp
push 2
push ebp
push ebp
push ebp
push str.SoftwareClassesApplications
push ebx
call esi
push dword [esp + 0x10]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
call edi
push ebp
lea eax, [esp + 0x14]
push eax
push ebp
push 2
push 1
push ebp
push ebp
push str.SoftwareClassesApplicationscrashreporter.exe
push ebx
call esi
test eax, eax
jne 0x412f16
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push ebp
push ebp
push ebp
push ebp
push str.IsHostApp
push dword [esp + 0x24]
call esi
push ebp
push ebp
push ebp
push ebp
push str.NoOpenWith
push dword [esp + 0x24]
call esi
push ebp
push ebp
push ebp
push ebp
push str.NoStartPage
push dword [esp + 0x24]
call esi
push dword [esp + 0x10]
call edi
mov esi, dword [0x43dfec]
mov eax, esi
shl eax, 2
push eax
call fcn.00415516
mov ebx, eax
mov edi, ebp
pop ecx
test esi, esi
jle 0x412f8a
mov ecx, dword [0x43dff4]
push dword [ecx + edi*4]
lea ecx, [esp + 0x18]
call fcn.004029e5
push ebp
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x34]
push eax
call fcn.00409cc2
add esp, 0xc
cmp dword [eax + 0x14], 0x10
jb 0x412f5d
mov eax, dword [eax]
push eax
call fcn.0042e147
pop ecx
push ebp
push 1
lea ecx, [esp + 0x34]
mov dword [ebx + edi*4], eax
call fcn.0040b5eb
push ebp
push 1
lea ecx, [esp + 0x1c]
call fcn.0040b62d
mov esi, dword [0x43dfec]
inc edi
cmp edi, esi
jl 0x412f30
push ebx
push esi
call fcn.00412451
pop ecx
pop ecx
mov ecx, dword [esp + 0x44]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004189a5
add esp, 0x38
ret 0x10
Function at 0x42a481
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x43c580]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0041b101
mov dword [ebp - 0x14], eax
cmp dword [0x43ebf8], esi
jne 0x42a574
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x42a501
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x42a654
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x42a654
push 0x437c4c
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x42a654
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x43ebf8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x43ebfc], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x43ec00], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ec08], eax
test eax, eax
je 0x42a571
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x43ec04], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x42a599
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x42a58c
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x42a5ae
push 4
pop eax
jmp 0x42a656
cmp dword [ebp - 0x14], esi
je 0x42a5ae
push dword [0x43ebf8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x42a593
mov eax, dword [0x43ec04]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x42a60c
cmp dword [0x43ec08], edi
je 0x42a60c
push eax
call ebx
push dword [0x43ec08]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x42a60c
test eax, eax
je 0x42a60c
call ecx
test eax, eax
je 0x42a601
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x42a601
test byte [ebp - 8], 1
jne 0x42a60c
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x42a63c
mov eax, dword [0x43ebfc]
cmp eax, edi
je 0x42a639
push eax
call ebx
test eax, eax
je 0x42a639
call eax
mov esi, eax
test esi, esi
je 0x42a639
mov eax, dword [0x43ec00]
cmp eax, edi
je 0x42a639
push eax
call ebx
test eax, eax
je 0x42a639
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x43ebf8]
call ebx
test eax, eax
je 0x42a654
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x42a656
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004189a5
mov esp, ebp
pop ebp
ret
Function at 0x402810
Capabilities:
Contain obfuscated stackstrings
Create new key via cryptacquirecontext
Encrypt data using aes via winapi

Disassembly:
sub esp, 0x4c
cmp dword [esi], 0
mov cl, 0xec
mov al, 0x91
mov byte [esp], 0x6c
mov byte [esp + 1], 0x4f
mov byte [esp + 2], cl
mov byte [esp + 3], 0x98
mov byte [esp + 4], 0xd5
mov byte [esp + 5], al
mov byte [esp + 6], 0xfd
mov byte [esp + 7], 0xcd
mov byte [esp + 8], 0x24
mov byte [esp + 9], 0x21
mov byte [esp + 0xa], 0xa7
mov byte [esp + 0xb], 0x9e
mov byte [esp + 0xc], al
mov byte [esp + 0xd], 0xcc
mov byte [esp + 0xe], 7
mov byte [esp + 0xf], 0xf0
mov byte [esp + 0x10], 0x6b
mov byte [esp + 0x11], cl
mov byte [esp + 0x12], 0x67
mov byte [esp + 0x13], 0x50
mov byte [esp + 0x14], 0xde
mov byte [esp + 0x15], 0x17
mov byte [esp + 0x16], 0xbc
mov byte [esp + 0x17], 0xd8
mov byte [esp + 0x18], 0x90
mov byte [esp + 0x19], 0xb5
mov byte [esp + 0x1a], 0x19
mov byte [esp + 0x1b], 0x3b
mov byte [esp + 0x1c], 0xf9
mov byte [esp + 0x1d], 0xb6
mov byte [esp + 0x1e], 0x56
mov byte [esp + 0x1f], 0xc5
jne 0x4028d5
push 0xf0000000
push 0x18
push 0
push 0
push esi
call dword [sym.imp.ADVAPI32.dll_CryptAcquireContextW]
test eax, eax
jne 0x4028d5
mov dword [esi], eax
xor al, al
add esp, 0x4c
ret
push 0x2c
lea eax, [esp + 0x24]
push 0
push eax
call fcn.00401100
push 0x20
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x40]
push edx
mov word [esp + 0x38], 0x208
mov word [esp + 0x3c], 0x6610
mov byte [esp + 0x40], 0x20
call fcn.00401140
mov edx, dword [esi]
add esp, 0x18
lea eax, [esi + 4]
push eax
push 0
push 0
push 0x2c
lea ecx, [esp + 0x30]
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_CryptImportKey]
test eax, eax
jne 0x40293b
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00407a30
add esp, 4
xor al, al
add esp, 0x4c
ret
mov al, 1
add esp, 0x4c
ret
Function at 0x40adc0
Capabilities:
Clear file content

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1014
call fcn.00404730
push ebx
push esi
push edi
mov ebx, dword [ebp + 8]
mov dword [ebp - 4], 0
mov eax, dword [0x4170bc]
cmp ebx, eax
jae 0x40adfb
mov eax, ebx
and eax, 0x1f
mov edx, ebx
sar edx, 5
mov edx, dword [edx*4 + 0x4170c0]
test byte [edx + eax*8 + 4], 1
jne 0x40ae0d
mov dword [0x415c84], 9
or eax, 0xffffffff
jmp 0x40af32
push 1
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 0xc], eax
cmp eax, 0xffffffff
je 0x40ae37
push 2
push 0
push ebx
call fcn.00409fd0
add esp, 0xc
mov dword [ebp - 8], eax
cmp eax, 0xffffffff
jne 0x40ae3f
or eax, 0xffffffff
jmp 0x40af32
mov eax, dword [ebp + 0xc]
mov esi, eax
sub esi, dword [ebp - 8]
test esi, esi
jle 0x40aee4
lea edx, [ebp - 0x1010]
mov ecx, 0x1000
xor eax, eax
push edi
mov edi, edx
rep stosb byte es:[edi], al
pop edi
mov eax, edx
push 0x8000
push ebx
call fcn.0040b330
add esp, 8
mov dword [ebp - 0x10], eax
mov eax, esi
cmp eax, 0x1000
jb 0x40ae8a
mov dword [ebp - 0x1014], 0x1000
jmp 0x40ae92
mov eax, esi
mov dword [ebp - 0x1014], eax
mov eax, dword [ebp - 0x1014]
push eax
lea eax, [ebp - 0x1010]
push eax
push ebx
call fcn.004086d0
add esp, 0xc
mov edi, eax
cmp eax, 0xffffffff
jne 0x40aecb
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x40aec5
mov dword [0x415c84], 0xd
or dword [ebp - 4], 0xffffffff
jmp 0x40aed5
mov eax, esi
sub eax, edi
mov esi, eax
test eax, eax
jg 0x40ae75
mov eax, dword [ebp - 0x10]
push eax
push ebx
call fcn.0040b330
add esp, 8
jmp 0x40af20
test esi, esi
jge 0x40af20
push 0
mov eax, dword [ebp + 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
push ebx
call fcn.00408b00
pop ecx
push eax
call dword [sym.imp.KERNEL32.DLL_SetEndOfFile]
test eax, eax
setne al
and eax, 1
dec eax
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
jne 0x40af20
mov dword [0x415c84], 0xd
push 0
mov eax, dword [ebp - 0xc]
push eax
push ebx
call fcn.00409fd0
add esp, 0xc
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x433001
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
call 0x43300c
nop
pop eax
nop
nop
nop
nop
nop
add eax, 0x40a063
sub eax, 0x40a009
nop
nop
nop
nop
nop
mov ebx, dword [eax]
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
jl 0x433030
nop
nop
nop
nop
nop
nop
nop
add eax, 0xc
nop
nop
cmp dword [eax], 0
nop
nop
nop
nop
jne 0x43301e
nop
nop
nop
nop
nop
popal
nop
jmp 0x431219