joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e170
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
mov eax, dword [0x636b1c]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x14]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, dword [ebp + 0xc]
push edi
push dword [ebx]
mov dword [ebp - 0x58], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x50], eax
call fcn.004695b0
push dword [ebp + 0x10]
mov dword [ebp - 0x48], 0
push esi
push ebx
mov byte [ebp - 0x49], al
mov byte [ebp - 0x45], 1
call fcn.004697d0
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x46e361
cmp dword [ebp + 0x20], eax
je 0x46e346
lea ebx, [ebx]
push dword [ebp + 0x18]
push dword [ebp - 0x58]
push ebx
call fcn.00469a10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x46e346
push 4
lea eax, [ebp - 0x48]
push eax
push ebx
call fcn.00469a10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x46e346
lea eax, [ebp - 0x24]
push eax
push ebx
call fcn.004696a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x46e346
push ebx
call fcn.00469780
mov edi, eax
add esp, 4
test edi, edi
jne 0x46e346
movzx esi, byte [ebp - 0x49]
lea eax, [ebp - 0x24]
push esi
push eax
lea eax, [ebp - 0x44]
push eax
call sub.MSVCR120.dll_memcpy
add esp, 0xc
mov dword [ebp - 0x54], 1
cmp dword [ebp + 0x1c], 1
jbe 0x46e304
push esi
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.00469a10
mov edi, eax
add esp, 0xc
test edi, edi
jne 0x46e346
lea eax, [ebp - 0x44]
push eax
push ebx
call fcn.004696a0
mov edi, eax
add esp, 8
test edi, edi
jne 0x46e346
push ebx
call fcn.00469780
mov edi, eax
add esp, 4
test edi, edi
jne 0x46e346
test esi, esi
jle 0x46e2f4
cmp esi, 0x20
jb 0x46e2e3
mov ecx, esi
and ecx, 0x8000001f
jns 0x46e2ac
dec ecx
or ecx, 0xffffffe0
inc ecx
mov edx, esi
sub edx, ecx
movdqu xmm0, xmmword [ebp + eax - 0x24]
movdqu xmm1, xmmword [ebp + eax - 0x44]
pxor xmm1, xmm0
movdqu xmmword [ebp + eax - 0x24], xmm1
movdqu xmm0, xmmword [ebp + eax - 0x14]
movdqu xmm1, xmmword [ebp + eax - 0x34]
pxor xmm1, xmm0
movdqu xmmword [ebp + eax - 0x14], xmm1
add eax, 0x20
cmp eax, edx
jl 0x46e2b0
cmp eax, esi
jge 0x46e2f4
mov cl, byte [ebp + eax - 0x44]
xor byte [ebp + eax - 0x24], cl
inc eax
cmp eax, esi
jl 0x46e2e7
mov eax, dword [ebp - 0x54]
inc eax
mov dword [ebp - 0x54], eax
cmp eax, dword [ebp + 0x1c]
jb 0x46e252
cmp dword [ebp + 0x20], esi
lea eax, [ebp - 0x24]
cmovb esi, dword [ebp + 0x20]
push esi
push eax
push dword [ebp - 0x50]
call sub.MSVCR120.dll_memcpy
sub dword [ebp + 0x20], esi
lea ecx, [ebp - 0x45]
add dword [ebp - 0x50], esi
mov edx, 4
mov eax, ecx
add esp, 0xc
sub edx, eax
lea ecx, [ecx]
inc byte [ecx]
jne 0x46e33c
dec ecx
lea eax, [edx + ecx]
test eax, eax
jne 0x46e330
cmp dword [ebp + 0x20], 0
jne 0x46e1d0
lea eax, [ebp - 0x24]
push 0x20
push eax
call fcn.0046b4d0
lea eax, [ebp - 0x44]
push 0x20
push eax
call fcn.0046b4d0
add esp, 0x10
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004743e6
mov esp, ebp
pop ebp
ret
Function at 0x46e5e0
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [ebp + 0x18]
test ebx, ebx
jne 0x46e5fa
mov eax, dword [ebp + 0x10]
mov dword [eax], ebx
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, 0xaaaaaaab
mul ebx
mov eax, ebx
shr edx, 1
lea ecx, [edx + edx*2]
sub eax, ecx
neg eax
sbb eax, eax
neg eax
add eax, edx
cmp eax, 0x3fffffff
jbe 0x46e62c
mov eax, dword [ebp + 0x10]
pop ebx
mov dword [eax], 0xffffffff
mov eax, 0xffffffd6
mov esp, ebp
pop ebp
ret
lea edx, [eax*4 + 1]
cmp dword [ebp + 0xc], edx
jb 0x46e79d
mov eax, dword [ebp + 8]
test eax, eax
je 0x46e79d
push esi
xor edx, edx
mov esi, eax
push edi
test ecx, ecx
je 0x46e705
dec ecx
mov eax, 0xaaaaaaab
mul ecx
mov ecx, dword [ebp + 0x14]
mov eax, edx
shr eax, 1
inc eax
mov dword [ebp - 4], eax
lea eax, [eax + eax*2]
mov dword [ebp - 0x10], eax
mov edi, edi
movzx eax, byte [ecx + 2]
movzx edi, byte [ecx]
movzx ebx, byte [ecx + 1]
add ecx, 3
mov dword [ebp - 0xc], eax
mov eax, edi
sar eax, 2
and eax, 0x3f
mov dword [ebp - 8], ecx
push eax
push 0x40
push 0x4e19f8
call fcn.0046e7b0
mov byte [esi], al
mov eax, ebx
sar eax, 4
shl edi, 4
add eax, edi
and eax, 0x3f
push eax
push 0x40
push 0x4e19f8
call fcn.0046e7b0
mov edi, dword [ebp - 0xc]
mov byte [esi + 1], al
mov eax, edi
sar eax, 6
lea eax, [eax + ebx*4]
and eax, 0x3f
push eax
push 0x40
push 0x4e19f8
call fcn.0046e7b0
and edi, 0x3f
mov byte [esi + 2], al
push edi
push 0x40
push 0x4e19f8
call fcn.0046e7b0
mov ecx, dword [ebp - 8]
add esp, 0x30
mov byte [esi + 3], al
add esi, 4
dec dword [ebp - 4]
jne 0x46e670
mov ebx, dword [ebp + 0x18]
mov eax, ecx
mov edx, dword [ebp - 0x10]
jmp 0x46e708
mov eax, dword [ebp + 0x14]
cmp edx, ebx
jae 0x46e787
movzx ecx, byte [eax]
inc edx
mov dword [ebp + 0x18], ecx
mov dword [ebp - 0x10], edx
cmp edx, ebx
jae 0x46e720
movzx edi, byte [eax + 1]
jmp 0x46e722
xor edi, edi
mov eax, ecx
sar eax, 2
and eax, 0x3f
push eax
push 0x40
push 0x4e19f8
call fcn.0046e7b0
mov ecx, dword [ebp + 0x18]
mov byte [esi], al
mov eax, edi
sar eax, 4
shl ecx, 4
add eax, ecx
and eax, 0x3f
push eax
push 0x40
push 0x4e19f8
call fcn.0046e7b0
add esp, 0x18
mov byte [esi + 1], al
cmp dword [ebp - 0x10], ebx
jae 0x46e77c
and edi, 0xf
shl edi, 2
push edi
push 0x40
push 0x4e19f8
call fcn.0046e7b0
add esp, 0xc
mov byte [esi + 2], al
jmp 0x46e780
mov byte [esi + 2], 0x3d
add esi, 3
mov byte [esi], 0x3d
inc esi
mov eax, dword [ebp + 0x10]
mov ecx, esi
sub ecx, dword [ebp + 8]
pop edi
mov dword [eax], ecx
xor eax, eax
mov byte [esi], 0
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0x10]
pop ebx
mov dword [eax], edx
mov eax, 0xffffffd6
mov esp, ebp
pop ebp
ret
Function at 0x46e7b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
xor bl, bl
xor esi, esi
test edi, edi
je 0x46e7f3
mov eax, esi
xor eax, dword [ebp + 0x10]
mov ecx, eax
shr eax, 0x1f
neg ecx
shr ecx, 0x1f
or cl, al
mov eax, dword [ebp + 8]
xor cl, 1
mov dl, cl
neg dl
mov al, byte [esi + eax]
or dl, cl
shr dl, 7
inc esi
neg dl
and al, dl
not dl
and bl, dl
or bl, al
cmp esi, edi
jb 0x46e7c1
pop edi
pop esi
mov al, bl
pop ebx
pop ebp
ret

Function at 0x46edb0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
lea eax, [edi + 1]
push eax
push 0
push esi
call sub.MSVCR120.dll_memset
add esp, 0xc
xor ebx, ebx
test edi, edi
je 0x46ee1c
mov eax, dword [ebp + 0x10]
movzx eax, al
mov dword [ebp - 4], eax
jmp 0x46ede0
xor esi, esi
test eax, eax
je 0x46ee14
mov edi, ebx
jmp 0x46edf0
push edi
push dword [ebp + 0x14]
call fcn.004718b0
add edi, dword [ebp + 0xc]
mov ecx, esi
shl al, cl
inc esi
mov ecx, dword [ebp + 8]
add esp, 8
or byte [ebx + ecx], al
mov eax, dword [ebp - 4]
cmp esi, eax
jb 0x46edf0
mov edi, dword [ebp + 0xc]
inc ebx
cmp ebx, edi
jb 0x46ede0
mov esi, dword [ebp + 8]
mov ebx, 1
xor ah, ah
mov dword [ebp + 0xc], ebx
cmp edi, ebx
jb 0x46ee6f
lea ebx, [ebx]
mov ch, byte [ebx + esi]
mov dl, 1
mov bl, ch
xor ch, ah
and bl, ah
mov eax, dword [ebp + 0xc]
mov byte [eax + esi], ch
mov al, ch
and al, 1
sub dl, al
mov eax, dword [ebp + 0xc]
mov cl, byte [eax + esi - 1]
mov al, cl
imul dl
shl dl, 7
mov ah, al
or dl, cl
and ah, ch
or ah, bl
mov ebx, dword [ebp + 0xc]
xor byte [ebx + esi], al
mov byte [ebx + esi - 1], dl
inc ebx
mov dword [ebp + 0xc], ebx
cmp ebx, edi
jbe 0x46ee30
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4720e0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 8]
sub esp, 8
mov eax, dword [edx + 4]
push edi
mov edi, dword [ebp + 0xc]
cmp eax, dword [edi + 4]
je 0x4720ff
mov eax, 0xfffffffc
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [edi]
push ebx
mov ebx, dword [edx]
sar eax, 1
sar ebx, 1
and eax, 1
and ebx, 1
push esi
mov esi, dword [ebp + 0x10]
xor eax, ebx
mov ecx, eax
and ecx, ebx
mov dword [esi], ecx
mov esi, dword [edx + 4]
mov dword [ebp - 4], esi
test esi, esi
je 0x4721b8
mov ecx, 1
sub ecx, ebx
mov dword [ebp - 8], ecx
mov ecx, dword [edx + 8]
mov esi, dword [ecx + esi*4 - 4]
mov ecx, dword [edi + 8]
mov edi, dword [ebp - 4]
mov edi, dword [ecx + edi*4 - 4]
mov edx, edi
xor edx, esi
sub edi, esi
mov ecx, edx
and edx, esi
not ecx
and edi, ecx
mov ecx, 1
or edi, edx
sub ecx, eax
mov edx, dword [ebp + 0x10]
shr edi, 0x1f
and ecx, edi
or eax, edi
and ecx, ebx
or dword [edx], ecx
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp - 4]
mov ecx, dword [ecx + 8]
mov esi, dword [ecx + edx*4 - 4]
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx + 8]
mov edi, dword [ecx + edx*4 - 4]
mov edx, edi
xor edx, esi
sub edi, esi
mov ecx, edx
and edx, esi
mov esi, dword [ebp - 4]
not ecx
and edi, ecx
mov ecx, 1
or edi, edx
sub ecx, eax
mov edx, dword [ebp + 0x10]
and ecx, dword [ebp - 8]
shr edi, 0x1f
and ecx, edi
or eax, edi
or dword [edx], ecx
dec esi
mov edx, dword [ebp + 8]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], esi
jne 0x472132
pop esi
pop ebx
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x5e0fe0
Capabilities:
Encode data using xor

Disassembly:
mov edx, 0x38d907e2
add si, si
cmp edx, dword [eax + 0x1d]
out dx, eax
leave
aad 0x81
fistp qword [edi + eax*8]
lock or al, byte [esi]
lcall 0xb1b2, 0x996693ac
xor byte [eax], ah
out dx, al
xchg byte [ecx + 0x74853457], ch
mov dl, 0xbc
lahf
cmc
lodsd eax, dword [esi]
dec esi
jbe sym.NS110_unprotected.exe__cJSON_AddItemReferenceToObject_12
or dh, byte [edi - 0x1ba52e73]
cmp eax, 0xfaacd0ce
ret 0x4e56

Function at 0x1342058
Capabilities:
Decompress data using aplib

Disassembly:
call fcn.013421a8
push ebx
mov ebx, esp
push ebx
mov esi, dword [ebx + 8]
mov edi, dword [ebx + 0x10]
cld
mov dl, 0x80
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
mov ebx, 2
add dl, dl
jne 0x134207e
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x134206a
add dl, dl
jne 0x1342089
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x13420dc
xor eax, eax
add dl, dl
jne 0x1342096
mov dl, byte [esi]
inc esi
adc dl, dl
jae 0x134217d
add dl, dl
jne 0x13420a5
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13420b0
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13420bb
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13420c6
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
je 0x13420d2
push edi
mov eax, eax
sub edi, eax
mov al, byte [edi]
pop edi
mov byte [edi], al
inc edi
mov ebx, 2
jmp 0x1342075
mov eax, 1
add dl, dl
jne 0x13420ea
mov dl, byte [esi]
inc esi
adc dl, dl
adc eax, eax
add dl, dl
jne 0x13420f5
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x13420e1
sub eax, ebx
mov ebx, 1
jne 0x1342128
mov ecx, 1
add dl, dl
jne 0x134210e
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x1342119
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1342105
push esi
mov esi, edi
sub esi, ebp
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1342075
dec eax
shl eax, 8
mov al, byte [esi]
inc esi
mov ebp, eax
mov ecx, 1
add dl, dl
jne 0x134213f
mov dl, byte [esi]
inc esi
adc dl, dl
adc ecx, ecx
add dl, dl
jne 0x134214a
mov dl, byte [esi]
inc esi
adc dl, dl
jb 0x1342136
cmp eax, 0x7d00
jae 0x134216d
cmp eax, 0x500
jb 0x1342168
inc ecx
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1342075
cmp eax, 0x7f
ja 0x1342170
add ecx, 2
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x1342075
mov al, byte [esi]
inc esi
xor ecx, ecx
shr al, 1
je 0x134219e
adc ecx, 2
mov ebp, eax
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
mov ebx, 1
jmp 0x1342075
pop ebx
sub edi, dword [ebx + 0x10]
mov eax, edi
pop ebx
ret 0x10
Function at 0x401bee
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x22c
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x224], eax
push ebx
push ebp
push esi
mov esi, dword [esp + 0x23c]
mov ebx, edx
xor ebp, ebp
mov dword [esp + 0x28], ecx
push edi
mov dword [esp + 0x24], ebx
mov ecx, ebp
xor edx, edx
mov byte [esp + ecx + 0x30], cl
push 0x17
mov eax, ecx
pop edi
div edi
mov al, byte [edx + esi]
mov byte [esp + ecx + 0x130], al
inc ecx
cmp ecx, 0x100
jl 0x401c1b
mov edi, ebp
mov esi, ebp
mov dl, byte [esp + esi + 0x30]
movzx eax, byte [esp + esi + 0x130]
add edi, eax
movzx ecx, dl
add edi, ecx
and edi, 0x800000ff
jns 0x401c62
dec edi
or edi, 0xffffff00
inc edi
mov al, byte [esp + edi + 0x30]
mov byte [esp + esi + 0x30], al
inc esi
mov byte [esp + edi + 0x30], dl
cmp esi, 0x100
jl 0x401c3f
mov edi, ebp
mov dword [esp + 0x10], ebp
mov eax, ebp
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], eax
mov esi, 0x3e8
mov dword [esp + 0x14], edi
mov dword [esp + 0x20], edi
cmp eax, edi
je 0x401ca3
mov dword [eax], ebx
add eax, 4
mov dword [esp + 0x1c], eax
jmp 0x401cba
lea ecx, [esp + 0x24]
push ecx
push eax
lea ecx, [esp + 0x20]
call fcn.004046fe
mov edi, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
sub esi, 1
jne 0x401c94
mov ebx, dword [esp + 0x18]
mov dword [esp + 0x14], edi
cmp dword [ebx], ebp
jle 0x401d3d
mov edi, ebp
inc edi
and edi, 0x800000ff
jns 0x401cde
dec edi
or edi, 0xffffff00
inc edi
mov cl, byte [esp + edi + 0x30]
mov edx, dword [esp + 0x10]
movzx esi, cl
add edx, esi
and edx, 0x800000ff
jns 0x401cfb
dec edx
or edx, 0xffffff00
inc edx
mov al, byte [esp + edx + 0x30]
mov byte [esp + edi + 0x30], al
mov eax, ebp
xor eax, 4
mov dword [esp + 0x10], edx
push 0
push eax
mov byte [esp + edx + 0x38], cl
call fcn.004024e6
push eax
call fcn.00403860
movzx eax, byte [esp + edi + 0x34]
add eax, esi
pop ecx
mov ecx, dword [esp + 0x2c]
movzx eax, al
mov al, byte [esp + eax + 0x30]
xor byte [ecx + ebp], al
inc ebp
cmp ebp, dword [ebx]
jl 0x401ccd
mov edi, dword [esp + 0x14]
sub edi, ebx
and edi, 0xfffffffc
push edi
push ebx
call fcn.00404209
pop ecx
pop ecx
mov ecx, dword [esp + 0x234]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069fc
add esp, 0x22c
ret
Function at 0x401f34
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x24
mov eax, dword [0x42c040]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
push ebp
push esi
mov esi, dword [0x486348]
xor ebp, ebp
push edi
mov eax, dword [esi + 0x3c]
mov ebx, dword [eax + esi + 0x78]
add ebx, esi
mov edi, dword [ebx + 0x20]
mov eax, dword [ebx + 0x18]
add edi, esi
mov dword [esp + 0x10], eax
test eax, eax
je 0x401f98
mov eax, dword [edi]
lea ecx, [esp + 0x14]
add eax, esi
push eax
call fcn.0040262d
lea ecx, [esp + 0x14]
call fcn.00401d64
cmp eax, 0x8aafdc01
je 0x401fb0
lea ecx, [esp + 0x14]
add edi, 4
call fcn.00402ef2
inc ebp
cmp ebp, dword [esp + 0x10]
jb 0x401f67
xor edi, edi
mov ecx, dword [esp + 0x2c]
lea eax, [esi + edi]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004069fc
add esp, 0x24
ret
mov edx, str.QwruxAA
call fcn.00403892
push eax
call fcn.00403860
mov eax, dword [ebx + 0x24]
pop ecx
lea eax, [eax + ebp*2]
movzx ecx, word [eax + esi]
mov eax, dword [ebx + 0x1c]
lea eax, [eax + ecx*4]
mov edi, dword [eax + esi]
lea ecx, [esp + 0x14]
call fcn.00402ef2
jmp 0x401f9a
Function at 0x41834a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00407940
mov eax, dword [0x42c040]
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.00414745
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x41838c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4184e8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00421760
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 + 0x485f40]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.00418770
mov ecx, dword [esi*4 + 0x485f40]
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 0x4184e1
cmp eax, dword [edi + ecx + 0x24]
jne 0x4184e1
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 0x4184e1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00418770
add esp, 0x14
test edx, edx
jl 0x4184e1
jg 0x418457
test eax, eax
jb 0x4184e1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4184e1
jl 0x418471
cmp dword [ebp - 0x1008], eax
ja 0x4184e1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x41848f
test ebx, ebx
je 0x4184c8
cmp ecx, edi
jae 0x4184c8
mov al, byte [ecx]
cmp al, 0xd
jne 0x4184a9
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4184b5
cmp byte [ecx + 1], 0xa
jne 0x4184b5
inc ecx
jmp 0x4184b5
movzx eax, al
movsx eax, byte [eax + 0x42c9b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x41848f
cmp edx, ebx
jne 0x41848f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4184e6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004069fc
leave
ret
Function at 0x4198d1
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x42c040]
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 0x41991c
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00419a70
test al, al
jne 0x419916
sub edx, 2
cmp edx, edi
jne 0x4198fc
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x41993e
lea eax, [edi + 2]
cmp edx, eax
je 0x41993e
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0041981d
add esp, 0x10
jmp 0x419a38
push esi
lea ecx, [ebp - 0x255]
call fcn.00419a70
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 0x419981
push dword [ebp - 0x25c]
jmp 0x41992e
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 0x4199be
cmp word [ebp - 0x226], 0
je 0x4199df
cmp word [ebp - 0x226], ax
jne 0x4199be
cmp word [ebp - 0x224], 0
je 0x4199df
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0041981d
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x419a2b
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x419998
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x419a13
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x419a38
push 0x41964d
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0041f640
add esp, 0x10
jmp 0x419a08
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.004069fc
leave
ret
Function at 0x40825d
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
xor ebx, ebx
push esi
push edi
cmp dword [esp + 0x10], ebx
je 0x4082ac
push dword [esp + 0x10]
push 0x4081db
call dword [sym.imp.USER32.DLL_EnumWindows]
mov esi, dword [0x41363c]
cmp esi, ebx
je 0x408300
mov edi, dword [esi]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [esi + 8], eax
jne 0x4082a4
cmp byte [esi + 0x10], bl
je 0x4082a4
push 3
push ebx
push ebx
push ebx
push ebx
push 0xfffffffffffffffe
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
mov esi, edi
cmp edi, ebx
jne 0x408281
jmp 0x408300
mov esi, dword [0x41363c]
cmp esi, ebx
je 0x408300
push ebp
mov ebp, dword [esi]
lea edi, [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [edi], eax
jne 0x4082f9
cmp byte [esi + 0x11], bl
je 0x4082d6
push 1
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_EnableWindow]
cmp byte [esi + 0x10], bl
je 0x4082ec
push 3
push ebx
push ebx
push ebx
push ebx
push 0xffffffffffffffff
push dword [esi + 0xc]
call dword [sym.imp.USER32.DLL_SetWindowPos]
push edi
push 0x41363c
call fcn.0040f08d
pop ecx
pop ecx
mov esi, ebp
cmp ebp, ebx
jne 0x4082b7
pop ebp
pop edi
pop esi
pop ebx
ret 4
Function at 0x40ba80
Capabilities:
Log keystrokes via polling

Disassembly:
sub esp, 0xc
push ebx
push esi
push edi
call dword [sym.imp.USER32.DLL_GetFocus]
mov esi, dword [sym.imp.USER32.DLL_GetKeyState]
mov edi, eax
mov bl, pe_nt_image_headers32
test edi, edi
je 0x40bafc
push 9
call esi
test bl, al
je 0x40bafc
push 0x11
call esi
test bl, al
jne 0x40bafc
push 0x10
call esi
test bl, al
jne 0x40bafc
push 0x12
call esi
test bl, al
jne 0x40bafc
push 5
lea eax, [esp + 0x14]
push eax
push edi
call dword [sym.imp.USER32.DLL_GetClassNameA]
push 4
lea eax, [esp + 0x14]
push str.Rich
push eax
call sub.MSVCRT.dll_strncmp
add esp, 0xc
test eax, eax
jne 0x40bafc
push eax
push eax
push 0x44e
push edi
call dword [sym.imp.USER32.DLL_SendMessageA]
test eax, 0x800
jne 0x40bafc
xor eax, eax
jmp 0x40bb7e
push ebp
mov ebp, dword [esp + 0x20]
test ebp, ebp
je 0x40bb25
push 0x11
call esi
test bl, al
jne 0x40bb1d
push 0x10
call esi
test bl, al
jne 0x40bb1d
push 0x12
call esi
test bl, al
je 0x40bb25
push 1
push ebp
call fcn.0040ba39
mov esi, dword [sym.imp.USER32.DLL_GetPropA]
test edi, edi
je 0x40bb3b
push str.PB_Hotkey
push edi
call esi
test eax, eax
jne 0x40bb7b
push str.PB_WindowID
push ebp
call esi
mov esi, eax
test esi, esi
je 0x40bb7b
lea eax, [esp + 0x10]
push eax
push ebp
call dword [sym.imp.USER32.DLL_GetWindowThreadProcessId]
test eax, eax
je 0x40bb7b
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [esp + 0x10], eax
jne 0x40bb7b
dec esi
push esi
push dword [0x413bc8]
call fcn.0040e9ba
test eax, eax
je 0x40bb7b
mov eax, dword [eax + 8]
jmp 0x40bb7d
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 0xc
ret 4

Function at 0x40caf0
Capabilities:
Write file on windows

Disassembly:
push ecx
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
mov dword [esp + 4], eax
cmp dword [esi + 0x14], eax
jne 0x40cb25
mov ecx, dword [esi + 8]
sub ecx, dword [esi + 0xc]
mov edx, dword [esi + 4]
push eax
lea eax, [esp + 8]
push eax
mov eax, dword [esi]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov ecx, dword [esi + 8]
mov eax, dword [esp + 4]
mov dword [esi + 0xc], ecx
pop esi
pop ecx
ret 4