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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x516124]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
xor eax, eax
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
xor edi, edi
mov dword [ebp - 0x108], ecx
mov dword [ebp - 0x110], edx
xor ebx, ebx
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x114], 1
jmp 0x457805
mov ecx, dword [ebp - 0x108]
mov esi, ebx
sub esi, edi
cmp esi, 0x12
jge 0x457881
push ecx
call fcn.004b39dc
pop ecx
test eax, eax
jne 0x457a19
push dword [ebp - 0x108]
call fcn.004b39b0
pop ecx
test eax, eax
jne 0x457a19
test esi, esi
jle 0x45784e
lea eax, [ebp - 0x104]
add eax, edi
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.004a3850
add esp, 0xc
push dword [ebp - 0x108]
sub edi, ebx
lea eax, [ebp - 0x104]
add edi, 0x100
add eax, esi
push edi
push 1
push eax
call fcn.004ac9b1
mov edx, dword [ebp - 0x110]
add esp, 0x10
xor edi, edi
lea ebx, [esi + eax]
mov eax, dword [ebp - 0x10c]
mov ecx, dword [ebp - 0x114]
sub ecx, 0
je 0x457953
sub ecx, 1
jne 0x4577ff
lea esi, [ebp - 0x104]
add esi, edi
cmp byte [esi], 0xff
jne 0x457a19
mov cl, byte [ebp + edi - 0x103]
cmp cl, 0xd8
je 0x457924
cmp cl, 0xed
jne 0x4578db
push 0xe
lea eax, [ebp - 0x100]
add eax, edi
push str.Photoshop_3.0
push eax
call fcn.004a2938
add esp, 0xc
test eax, eax
je 0x4579d7
mov al, byte [ebp + edi - 0x103]
cmp al, 0xda
je 0x457a02
cmp dword [ebp + 0x10], 0
je 0x4578fc
cmp al, 0xe0
je 0x4578fc
cmp al, 0xe1
jne 0x457a02
and dword [ebp - 0x114], 0
lea eax, [ebp - 0x102]
add eax, edi
push 0
push eax
call fcn.00457c6b
mov edx, dword [ebp - 0x110]
pop ecx
movzx eax, ax
pop ecx
mov dword [ebp - 0x10c], eax
test edx, edx
je 0x45794b
push edx
push 2
push 1
push esi
call fcn.004ad811
add esp, 0x10
cmp eax, 2
jb 0x457a19
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x110]
add edi, 2
jmp 0x4577ff
mov esi, ebx
sub esi, edi
cmp eax, esi
jle 0x457999
test edx, edx
je 0x457988
push edx
push esi
lea eax, [ebp - 0x104]
add eax, edi
push 1
push eax
call fcn.004ad811
add esp, 0x10
cmp eax, esi
jl 0x457a19
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x110]
sub edi, ebx
add eax, edi
mov edi, ebx
mov dword [ebp - 0x10c], eax
jmp 0x4577ff
test edx, edx
je 0x4579c6
push edx
push eax
lea eax, [ebp - 0x104]
add eax, edi
push 1
push eax
call fcn.004ad811
add esp, 0x10
cmp eax, dword [ebp - 0x10c]
jl 0x457a19
mov eax, dword [ebp - 0x10c]
mov edx, dword [ebp - 0x110]
mov dword [ebp - 0x114], 1
add edi, eax
jmp 0x4577ff
lea eax, [ebp - 0x102]
add eax, edi
push 0
push eax
call fcn.00457c6b
push 1
sub edi, ebx
movzx esi, ax
push edi
push dword [ebp - 0x108]
call fcn.004ace01
add esp, 0x14
lea eax, [esi - 2]
jmp 0x457a1c
push 1
sub edi, ebx
push edi
push dword [ebp - 0x108]
call fcn.004ace01
add esp, 0xc
xor eax, eax
jmp 0x457a1c
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004588b0
mov esp, ebp
pop ebp
ret
Function at 0x48fbd6
Capabilities:
Terminate process

Disassembly:
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
test eax, eax
je 0x48fc0f
push edi
mov edi, 0x120
cmp dword [esp + 0x10], edi
jae 0x48fc02
push eax
call fcn.0049ac75
push 2
call fcn.0049ac64
mov dword [esi], eax
pop ecx
pop ecx
test eax, eax
je 0x48fc0e
push edi
push 0
push eax
call fcn.004a3dd0
add esp, 0xc
pop edi
pop esi
ret
Function at 0x494fa3
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x20
mov eax, dword [0x516124]
xor eax, esp
mov dword [esp + 0x1c], eax
push ebx
mov ebx, dword [esp + 0x2c]
push esi
mov esi, dword [esp + 0x2c]
mov al, byte [esi + 8]
mov byte [esp + 0xb], al
cmp al, 3
je 0x49513e
mov edx, dword [esi]
push ebp
xor ebp, ebp
mov dword [esp + 0x10], edx
push edi
test al, 2
je 0x495006
mov edi, dword [esp + 0x3c]
movzx edx, byte [esi + 9]
mov ecx, edx
push 3
movzx eax, byte [edi]
sub ecx, eax
movzx eax, byte [edi + 1]
mov dword [esp + 0x20], ecx
mov ecx, edx
sub ecx, eax
movzx eax, byte [edi + 2]
sub edx, eax
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], edx
pop edi
jmp 0x49501b
mov eax, dword [esp + 0x3c]
xor edi, edi
movzx ecx, byte [esi + 9]
movzx eax, byte [eax + 3]
sub ecx, eax
inc edi
mov dword [esp + 0x1c], ecx
test byte [esp + 0x13], 4
mov dword [esp + 0x18], edi
je 0x49503d
mov eax, dword [esp + 0x3c]
movzx ecx, byte [esi + 9]
movzx eax, byte [eax + 4]
sub ecx, eax
mov dword [esp + edi*4 + 0x1c], ecx
inc edi
mov dword [esp + 0x18], edi
mov eax, ebp
test edi, edi
je 0x49513c
mov edx, ebp
cmp dword [esp + eax*4 + 0x1c], ebp
jg 0x495055
mov dword [esp + eax*4 + 0x1c], ebp
jmp 0x495058
xor edx, edx
inc edx
inc eax
cmp eax, edi
jl 0x495049
test dx, dx
mov edx, dword [esp + 0x14]
je 0x49513c
movzx eax, byte [esi + 9]
dec eax
sub eax, 1
je 0x495127
dec eax
sub eax, 1
je 0x4950f7
sub eax, 4
je 0x4950d6
sub eax, 8
jne 0x49513c
imul edx, edi
mov dword [esp + 0x14], edx
test edx, edx
je 0x49513c
xor edx, edx
movzx esi, byte [ebx]
mov eax, ebp
div dword [esp + 0x18]
mov eax, 0x100
imul esi, eax
movzx eax, byte [ebx + 1]
mov cx, word [esp + edx*4 + 0x1c]
add si, ax
shr si, cl
movzx ecx, si
mov eax, ecx
shr eax, 8
inc ebp
mov byte [ebx], al
lea ebx, [ebx + 2]
mov byte [ebx - 1], cl
cmp ebp, dword [esp + 0x14]
jb 0x49509b
jmp 0x49513c
imul edx, edi
mov dword [esp + 0x14], edx
test edx, edx
je 0x49513c
xor edx, edx
mov eax, ebp
div edi
mov cl, byte [esp + edx*4 + 0x1c]
shr byte [ebx], cl
inc ebx
inc ebp
cmp ebp, dword [esp + 0x14]
jb 0x4950e1
jmp 0x49513c
mov ecx, dword [esp + 0x1c]
mov edx, 0xf0
mov esi, dword [esi + 4]
sar edx, cl
push 0xf
pop eax
and dl, 0xf0
sar eax, cl
or dl, al
test esi, esi
je 0x49513c
mov al, byte [ebx]
mov cl, byte [esp + 0x1c]
shr al, cl
and al, dl
mov byte [ebx], al
inc ebx
sub esi, 1
jne 0x495113
jmp 0x49513c
mov ecx, dword [esi + 4]
test ecx, ecx
je 0x49513c
mov al, byte [ebx]
shr al, 1
and al, 0x55
mov byte [ebx], al
inc ebx
sub ecx, 1
jne 0x49512e
pop edi
pop ebp
mov ecx, dword [esp + 0x24]
pop esi
pop ebx
xor ecx, esp
call fcn.004588b0
add esp, 0x20
ret
Function at 0x49a9aa
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x74
mov eax, dword [0x516124]
xor eax, esp
mov dword [esp + 0x70], eax
movaps xmm0, xmmword [0x4fe020]
xor eax, eax
push ebp
push esi
mov esi, dword [esp + 0x80]
inc eax
movups xmmword [esp + 0x40], xmm0
xor ecx, ecx
mov dword [esp + 0x54], eax
movaps xmm0, xmmword [0x4fe030]
inc dword [esi + 0xe8]
movups xmmword [esp + 0x24], xmm0
push 2
movaps xmm0, xmmword [0x4fe010]
pop ebp
mov dword [esp + 0x3c], eax
movups xmmword [esp + 0x5c], xmm0
mov dword [esp + 0x74], eax
movaps xmm0, xmmword [0x4fe040]
mov eax, dword [esi + 0xe8]
mov dword [esp + 0x50], ecx
mov dword [esp + 0x58], ecx
mov dword [esp + 0x34], ebp
mov dword [esp + 0x38], ebp
mov dword [esp + 0x6c], ebp
mov dword [esp + 0x70], ecx
movups xmmword [esp + 8], xmm0
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], ebp
mov dword [esp + 0x20], ebp
cmp eax, dword [esi + 0xd4]
jb 0x49ab1b
cmp byte [esi + 0x127], cl
je 0x49ab1b
mov eax, dword [esi + 0xdc]
inc eax
mov dword [esi + 0xe8], ecx
push eax
push ecx
push dword [esi + 0xec]
call fcn.004a3dd0
add esp, 0xc
push ebx
push edi
inc byte [esi + 0x128]
mov al, byte [esi + 0x128]
cmp al, 1
jne 0x49aa89
cmp dword [esi + 0xcc], 5
jb 0x49aaa2
cmp al, 3
jne 0x49aa96
cmp dword [esi + 0xcc], 3
jb 0x49aaa2
cmp al, 5
jne 0x49aaaa
cmp dword [esi + 0xcc], ebp
jae 0x49aaaa
inc al
mov byte [esi + 0x128], al
mov al, byte [esi + 0x128]
cmp al, 7
jbe 0x49aabc
dec al
mov byte [esi + 0x128], al
mov al, byte [esi + 0x128]
cmp al, 7
jae 0x49ab19
movzx edi, al
xor edx, edx
mov eax, dword [esi + 0xcc]
sub eax, dword [esp + edi*4 + 0x48]
mov ecx, dword [esp + edi*4 + 0x2c]
dec eax
add eax, ecx
div ecx
test byte [esi + 0x74], 2
mov ebx, eax
mov dword [esi + 0xe4], ebx
jne 0x49ab19
mov edx, dword [esp + edi*4 + 0x10]
sub edx, dword [esp + edi*4 + 0x64]
mov eax, dword [esi + 0xd0]
dec eax
add eax, edx
xor edx, edx
div dword [esp + edi*4 + 0x10]
mov dword [esi + 0xd4], eax
test ebx, ebx
je 0x49aa70
test eax, eax
je 0x49aa70
pop edi
pop ebx
mov ecx, dword [esp + 0x78]
pop esi
pop ebp
xor ecx, esp
call fcn.004588b0
add esp, 0x74
ret
Function at 0x4ad2dc
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.004589d0
mov eax, dword [0x516124]
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.004c19ab
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4ad31e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4ad47a
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.004d0ed0
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 + 0x518da0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004c2fa9
mov ecx, dword [esi*4 + 0x518da0]
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 0x4ad473
cmp eax, dword [edi + ecx + 0x24]
jne 0x4ad473
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 0x4ad473
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c2fa9
add esp, 0x14
test edx, edx
jl 0x4ad473
jg 0x4ad3e9
test eax, eax
jb 0x4ad473
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4ad473
jl 0x4ad403
cmp dword [ebp - 0x1008], eax
ja 0x4ad473
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4ad421
test ebx, ebx
je 0x4ad45a
cmp ecx, edi
jae 0x4ad45a
mov al, byte [ecx]
cmp al, 0xd
jne 0x4ad43b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4ad447
cmp byte [ecx + 1], 0xa
jne 0x4ad447
inc ecx
jmp 0x4ad447
movzx eax, al
movsx eax, byte [eax + 0x5163b8]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4ad421
cmp edx, ebx
jne 0x4ad421
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4ad478
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.004588b0
leave
ret

Function at 0x4bfc92
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x502f68
push 0x502f60
push str.FlsAlloc
push 0x1e
call fcn.004bfaff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bfcc6
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d5464]
call esi
jmp 0x4bfccc
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x4bfd10
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x502f78
push 0x502f70
push str.FlsGetValue
push 0x20
call fcn.004bfaff
mov esi, eax
add esp, 0x10
test esi, esi
je 0x4bfd47
push dword [ebp + 8]
mov ecx, esi
call dword [0x4d5464]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x4c22ad
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 + 0x518da0]
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 0x4c22ed
cmp byte [ebx], 0xa
jne 0x4c22ed
or byte [eax + edi + 0x28], 4
jmp 0x4c22f2
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4c23f0
mov al, byte [edx]
cmp al, 0x1a
je 0x4c23d2
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4c2321
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4c2346
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4c2350
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 0x4c2303
jmp 0x4c23f0
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 0x4c23cd
cmp dword [ebp - 0xc], 0
je 0x4c23cd
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x518da0]
test byte [eax + edi + 0x28], 0x48
je 0x4c23a7
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4c2392
mov byte [esi], dl
jmp 0x4c23a3
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x518da0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4c23f0
cmp byte [ebp - 1], 0xa
jne 0x4c23b6
cmp esi, ebx
jne 0x4c23b6
mov byte [esi], 0xa
jmp 0x4c23ef
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.004c2fc7
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4c23f0
mov byte [esi], 0xd
jmp 0x4c23ef
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x518da0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c23ec
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c23f0
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4c23f9
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 + 0x518da0]
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 0x4c243c
cmp word [esi], dx
jne 0x4c243c
or byte [edi + eax + 0x28], 4
jmp 0x4c2441
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 0x4c2594
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 0x4c2574
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4c2483
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4c24b9
cmp eax, edx
jae 0x4c24c5
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 0x4c245b
jmp 0x4c2594
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 0x4c2570
cmp dword [ebp - 0x14], 0
je 0x4c2570
mov eax, dword [ebx*4 + 0x518da0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4c2548
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4c2511
mov word [esi], cx
jmp 0x4c2544
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x518da0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x518da0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x518da0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4c2594
pop ebx
cmp word [ebp - 4], bx
jne 0x4c2559
cmp esi, dword [ebp + 0xc]
jne 0x4c2559
mov word [esi], bx
jmp 0x4c2591
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004c2fc7
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4c2594
push 0xd
jmp 0x4c258d
mov ecx, dword [ebx*4 + 0x518da0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4c258b
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4c2594
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 0x4c2db5
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004c2c26
Function at 0x4c96e4
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x516124]
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 0x4c972f
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004c9883
test al, al
jne 0x4c9729
sub edx, 2
cmp edx, edi
jne 0x4c970f
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4c9751
lea eax, [edi + 2]
cmp edx, eax
je 0x4c9751
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004c9630
add esp, 0x10
jmp 0x4c984b
push esi
lea ecx, [ebp - 0x255]
call fcn.004c9883
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 0x4c9794
push dword [ebp - 0x25c]
jmp 0x4c9741
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 0x4c97d1
cmp word [ebp - 0x226], 0
je 0x4c97f2
cmp word [ebp - 0x226], ax
jne 0x4c97d1
cmp word [ebp - 0x224], 0
je 0x4c97f2
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004c9630
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4c983e
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4c97ab
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4c9826
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4c984b
push 0x4c9460
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.004b3b60
add esp, 0x10
jmp 0x4c981b
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.004588b0
leave
ret
Function at 0x4ca16f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4ca20c
push ebx
push esi
call fcn.004ca138
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.004c8581
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x4ca1b9
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4ca20b
push edi
push eax
call fcn.004bf655
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4ca1d9
call fcn.004bf61b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4ca20a
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.004c8581
add esp, 0x20
test eax, eax
jne 0x4ca1f8
push edi
call fcn.004bf61b
jmp 0x4ca200
push ebx
call fcn.004bf61b
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4ca20f
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ca220
pop esi
ret
push ebx
push edi
push esi
call fcn.004ca138
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.004bf655
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ca248
push ebx
push esi
push edi
call fcn.004a3850
add esp, 0xc
push 0
call fcn.004bf61b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x4ca994
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004ca4bb
Function at 0x4d0725
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x2c]
push esi
push edi
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004d06a1
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x4d089d
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x4d089d
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x4d084c
jg 0x4d077e
test eax, eax
je 0x4d0842
push 1
push 0x1000
call fcn.004bf801
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x4d07a4
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x4d0839
push 0x8000
push ebx
call fcn.004bcdcb
mov edi, dword [ebp + 0x14]
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x4d07d0
jg 0x4d07cb
cmp ecx, 0x1000
jb 0x4d07d0
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.004c3912
add esp, 0x10
cmp eax, 0xffffffff
je 0x4d0815
mov ecx, dword [ebp - 4]
cdq
sub ecx, eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], ecx
sbb eax, edx
mov dword [ebp - 8], eax
test eax, eax
jg 0x4d07cb
jl 0x4d07fc
test ecx, ecx
jne 0x4d07bd
push dword [ebp - 0xc]
push ebx
call fcn.004bcdcb
push esi
call fcn.004bf61b
add esp, 0xc
xor edi, edi
jmp 0x4d08ae
cmp byte [edi + 0x24], 0
je 0x4d082c
cmp dword [edi + 0x20], 5
jne 0x4d082c
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x4d0837
mov edi, dword [edi + 0x18]
jmp 0x4d0839
xor edi, edi
push esi
call fcn.004bf61b
pop ecx
jmp 0x4d08ae
test ecx, ecx
jg 0x4d080e
jl 0x4d084c
test eax, eax
jae 0x4d080e
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004c2fc7
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x4d086f
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d080e
jmp 0x4d08a6
push ebx
call fcn.004caf79
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x4d080e
mov esi, dword [ebp + 0x14]
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [esi + 0x24], 1
mov dword [esi + 0x20], eax
pop edi
mov byte [esi + 0x1c], 1
mov dword [esi + 0x18], edi
jmp 0x4d08ae
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x4d08ab
mov edi, dword [edi + 0x18]
jmp 0x4d08ae
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.004c2fc7
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x430006
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0x18c139e6
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
je 0x43004e
nop
nop
xor dword [eax], ecx
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
jne 0x430024
nop
nop
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
nop
mov ecx, 0xfc36db
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
add eax, 4
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219