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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401d7f
mov eax, dword [0x4d0034]
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.00405e75
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x495301
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x49545d
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00405fc9
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 + 0x4d3b80]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0040325b
mov ecx, dword [esi*4 + 0x4d3b80]
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 0x495456
cmp eax, dword [edi + ecx + 0x24]
jne 0x495456
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 0x495456
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0040325b
add esp, 0x14
test edx, edx
jl 0x495456
jg 0x4953cc
test eax, eax
jb 0x495456
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x495456
jl 0x4953e6
cmp dword [ebp - 0x1008], eax
ja 0x495456
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x495404
test ebx, ebx
je 0x49543d
cmp ecx, edi
jae 0x49543d
mov al, byte [ecx]
cmp al, 0xd
jne 0x49541e
lea eax, [edi - 1]
cmp ecx, eax
jae 0x49542a
cmp byte [ecx + 1], 0xa
jne 0x49542a
inc ecx
jmp 0x49542a
movzx eax, al
movsx eax, byte [eax + 0x4d0358]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x495404
cmp edx, ebx
jne 0x495404
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x49545b
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00403044
leave
ret
Function at 0x495b9c
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 + 0x4d3b80]
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 0x495bdc
cmp byte [ebx], 0xa
jne 0x495bdc
or byte [eax + edi + 0x28], 4
jmp 0x495be1
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x495cdf
mov al, byte [edx]
cmp al, 0x1a
je 0x495cc1
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x495c10
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x495c35
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x495c3f
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 0x495bf2
jmp 0x495cdf
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 0x495cbc
cmp dword [ebp - 0xc], 0
je 0x495cbc
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4d3b80]
test byte [eax + edi + 0x28], 0x48
je 0x495c96
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x495c81
mov byte [esi], dl
jmp 0x495c92
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4d3b80]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x495cdf
cmp byte [ebp - 1], 0xa
jne 0x495ca5
cmp esi, ebx
jne 0x495ca5
mov byte [esi], 0xa
jmp 0x495cde
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401924
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x495cdf
mov byte [esi], 0xd
jmp 0x495cde
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4d3b80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x495cdb
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x495cdf
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x495d3b
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 + 0x4d3b80]
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 0x495d7e
cmp word [esi], dx
jne 0x495d7e
or byte [edi + eax + 0x28], 4
jmp 0x495d83
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 0x495ed6
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 0x495eb6
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x495dc5
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x495dfb
cmp eax, edx
jae 0x495e07
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 0x495d9d
jmp 0x495ed6
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 0x495eb2
cmp dword [ebp - 0x14], 0
je 0x495eb2
mov eax, dword [ebx*4 + 0x4d3b80]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x495e8a
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x495e53
mov word [esi], cx
jmp 0x495e86
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4d3b80]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4d3b80]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4d3b80]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x495ed6
pop ebx
cmp word [ebp - 4], bx
jne 0x495e9b
cmp esi, dword [ebp + 0xc]
jne 0x495e9b
mov word [esi], bx
jmp 0x495ed3
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401924
add esp, 0x10
cmp word [ebp - 4], bx
je 0x495ed6
push 0xd
jmp 0x495ecf
mov ecx, dword [ebx*4 + 0x4d3b80]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x495ecd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x495ed6
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 0x49ad81
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4d0034]
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 0x49adcc
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.0049b243
test al, al
jne 0x49adc6
sub edx, 2
cmp edx, edi
jne 0x49adac
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x49adee
lea eax, [edi + 2]
cmp edx, eax
je 0x49adee
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.0049a97a
add esp, 0x10
jmp 0x49aee8
push esi
lea ecx, [ebp - 0x255]
call fcn.0049b243
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 0x49ae31
push dword [ebp - 0x25c]
jmp 0x49adde
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 0x49ae6e
cmp word [ebp - 0x226], 0
je 0x49ae8f
cmp word [ebp - 0x226], ax
jne 0x49ae6e
cmp word [ebp - 0x224], 0
je 0x49ae8f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.0049a97a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x49aedb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x49ae48
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x49aec3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x49aee8
push 0x49a362
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.0040555b
add esp, 0x10
jmp 0x49aeb8
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.00403044
leave
ret
Function at 0x408182
Capabilities:
Encode data using xor

Disassembly:
or byte [eax + 0x56], bh
push edi
mov edi, dword [ebp + 0x14]
scasb al, byte es:[edi]
ror byte [ebx - 0x74f48b09], 0x65
adc bh, al
add byte [eax], al
add byte [eax], al
add bl, ch
jmp 0x3351145c
add al, 0x85
test al, 0x75
and dword [ebp + 0x7c417f74], eax
jno 0x4080f8
sti
invalid
adc al, 0x7f
or byte [ecx + 0xfb], al
cmpsb byte [esi], byte es:[edi]
jb 0x4081a8
test dword [0xb2a41b75], edx
mov al, 0x8b
push ebp
adc al, 0x50
push edi
adc dword fs:[ebx - 0x18], 0x4f
invalid
test dword [edx + 0x23], ecx
or esi, dword [esi + 0x1c71448]
add byte [eax], al
add byte [edi - 0x3f7adc15], dl
cld
or eax, 0xdb648446
jae 0x4081c8
mov ecx, 0x80
jmp 0x4081ca
xor ecx, ecx
mov edx, dword [ebp + 0xe]
test ecx, ecx
mov dword [edx], ecx
je 0x4081da
neg ebx
adc eax, 0
jns 0x40816b
push esi
fadd qword [eax]
push 0xa
push eax
xor eax, 0x773629e8
add byte [ebx - 0x750df338], cl
sal dword [edx - 0x7d155af6], 0xd8
sub byte [eax - 0x3974cffd], al
mov byte [edi], bl
mov ebx, ecx
or ecx, esi
jne 0x4081db
mov eax, dword [ebp + 0x18]
mov ecx, dword [ebp + 0x1c]
push ds
invalid
Function at 0x4039ae
Capabilities:
Terminate process

Disassembly:
jmp 0x455c39
push 0x17
call dword [sym.imp.KERNEL32.dll_IsProcessorFeaturePresent]
test eax, eax
je 0x455c4a
push 5
pop ecx
int 0x29
push esi
push 1
mov esi, 0xc0000417
push esi
push 2
call fcn.00406014
add esp, 0xc
push esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
ret

Function at 0x403ae4
Capabilities:
Query environment variable

Disassembly:
jmp 0x4ab3c2
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x4ab3d3
pop esi
ret
push ebx
push edi
push esi
call fcn.004ab2a9
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0040444e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x4ab3fb
push ebx
push esi
push edi
call fcn.00405dd5
add esp, 0xc
push 0
call fcn.00406a6e
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x405eb1
Capabilities:
Parse pe header

Disassembly:
jmp 0x4449f9
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x444a38
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x444a38
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x444a38
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x444a38
cmp dword [ecx + 0x74], 0xe
jbe 0x444a38
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret
Function at 0x4a1f7e
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00401ef6
mov eax, dword [0x4de034]
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.004065fa
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x4a1fc0
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x4a211c
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.0040677b
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 + 0x4e1e90]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.004035a8
mov ecx, dword [esi*4 + 0x4e1e90]
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 0x4a2115
cmp eax, dword [edi + ecx + 0x24]
jne 0x4a2115
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 0x4a2115
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.004035a8
add esp, 0x14
test edx, edx
jl 0x4a2115
jg 0x4a208b
test eax, eax
jb 0x4a2115
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x4a2115
jl 0x4a20a5
cmp dword [ebp - 0x1008], eax
ja 0x4a2115
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x4a20c3
test ebx, ebx
je 0x4a20fc
cmp ecx, edi
jae 0x4a20fc
mov al, byte [ecx]
cmp al, 0xd
jne 0x4a20dd
lea eax, [edi - 1]
cmp ecx, eax
jae 0x4a20e9
cmp byte [ecx + 1], 0xa
jne 0x4a20e9
inc ecx
jmp 0x4a20e9
movzx eax, al
movsx eax, byte [eax + 0x4de360]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x4a20c3
cmp edx, ebx
jne 0x4a20c3
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x4a211a
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.0040335a
leave
ret
Function at 0x4a285b
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 + 0x4e1e90]
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 0x4a289b
cmp byte [ebx], 0xa
jne 0x4a289b
or byte [eax + edi + 0x28], 4
jmp 0x4a28a0
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x4a299e
mov al, byte [edx]
cmp al, 0x1a
je 0x4a2980
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x4a28cf
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x4a28f4
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x4a28fe
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 0x4a28b1
jmp 0x4a299e
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 0x4a297b
cmp dword [ebp - 0xc], 0
je 0x4a297b
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x4e1e90]
test byte [eax + edi + 0x28], 0x48
je 0x4a2955
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x4a2940
mov byte [esi], dl
jmp 0x4a2951
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x4e1e90]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x4a299e
cmp byte [ebp - 1], 0xa
jne 0x4a2964
cmp esi, ebx
jne 0x4a2964
mov byte [esi], 0xa
jmp 0x4a299d
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00401a19
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x4a299e
mov byte [esi], 0xd
jmp 0x4a299d
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x4e1e90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a299a
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a299e
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4a29fa
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 + 0x4e1e90]
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 0x4a2a3d
cmp word [esi], dx
jne 0x4a2a3d
or byte [edi + eax + 0x28], 4
jmp 0x4a2a42
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 0x4a2b95
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 0x4a2b75
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x4a2a84
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x4a2aba
cmp eax, edx
jae 0x4a2ac6
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 0x4a2a5c
jmp 0x4a2b95
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 0x4a2b71
cmp dword [ebp - 0x14], 0
je 0x4a2b71
mov eax, dword [ebx*4 + 0x4e1e90]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x4a2b49
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x4a2b12
mov word [esi], cx
jmp 0x4a2b45
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x4e1e90]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x4e1e90]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x4e1e90]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x4a2b95
pop ebx
cmp word [ebp - 4], bx
jne 0x4a2b5a
cmp esi, dword [ebp + 0xc]
jne 0x4a2b5a
mov word [esi], bx
jmp 0x4a2b92
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00401a19
add esp, 0x10
cmp word [ebp - 4], bx
je 0x4a2b95
push 0xd
jmp 0x4a2b8e
mov ecx, dword [ebx*4 + 0x4e1e90]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x4a2b8c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x4a2b95
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 0x4a9961
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x4de034]
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 0x4a99ac
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.004a9e23
test al, al
jne 0x4a99a6
sub edx, 2
cmp edx, edi
jne 0x4a998c
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x4a99ce
lea eax, [edi + 2]
cmp edx, eax
je 0x4a99ce
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.004a955a
add esp, 0x10
jmp 0x4a9ac8
push esi
lea ecx, [ebp - 0x255]
call fcn.004a9e23
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 0x4a9a11
push dword [ebp - 0x25c]
jmp 0x4a99be
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 0x4a9a4e
cmp word [ebp - 0x226], 0
je 0x4a9a6f
cmp word [ebp - 0x226], ax
jne 0x4a9a4e
cmp word [ebp - 0x224], 0
je 0x4a9a6f
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.004a955a
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x4a9abb
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x4a9a28
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x4a9aa3
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x4a9ac8
push 0x4a8f42
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00405bd7
add esp, 0x10
jmp 0x4a9a98
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.0040335a
leave
ret
Function at 0x10003368
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
push ebx
xor ebx, ebx
mov byte [ebp - 8], bl
mov dword [ebp - 0x14], 0x695b
cmp dword [ebp - 0x14], 0x6afd
push esi
push edi
jle 0x10003402
xor esi, esi
mov dword [ebp - 0x10], esi
xor edi, edi
mov dword [ebp - 0xc], edi
and dword [ebp - 0x1c], 0
mov ecx, edi
mov edi, esi
mov dword [ebp - 0x18], esi
mov esi, dword [ebp - 0x1c]
sar edi, cl
mov ecx, esi
mov eax, edi
shl eax, cl
lea ecx, [ebp - 0x34]
or eax, ebx
cdq
push edx
push eax
call fcn.10002a51
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100033bd
mov eax, dword [eax]
push eax
call fcn.1004498a
pop ecx
push 0
push 1
lea ecx, [ebp - 0x34]
call fcn.10001643
inc esi
cmp esi, 0x5932
jl 0x100033a0
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp - 0x10]
inc edi
mov dword [ebp - 0xc], edi
cmp edi, 0x25db
jl 0x10003390
inc esi
mov dword [ebp - 0x10], esi
cmp esi, 0x7f28
jl 0x1000338b
inc ebx
cmp ebx, 0x1215
jl 0x10003386
xor ebx, ebx
cmp dword [ebp - 0x14], 0x686b
jge 0x10003416
push str.vorgjx_duqtnswb_dehekg_xcrademhx_qsjrp_bmzza_cxpnq_txlmihym
call fcn.1004498a
pop ecx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x1000357b
Capabilities:
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
cmp byte [ebp + 0x24], 0
push ebx
push esi
push edi
je 0x100035b0
mov edx, dword [ebp + 0x3c]
xor esi, esi
mov dword [edx], esi
cmp dword [edx], 2
jge 0x1000365b
mov edi, dword [ebp + 0x38]
mov ecx, dword [edx]
mov eax, dword [edi]
mov dword [eax + ecx*4], esi
inc dword [edx]
cmp dword [edx], 2
jl 0x1000359d
jmp 0x1000365b
mov dword [ebp - 0xc], 0x641d
cmp dword [ebp - 0xc], 0x652f
push 0
pop esi
jle 0x10003636
push esi
push 0x9a2
push esi
push esi
push 0x1dbd
push 0x1b8b
call dword [sym.imp.USER32.dll_ToAsciiEx]
mov edi, esi
mov ebx, esi
mov eax, esi
mov dword [ebp - 8], esi
and eax, ebx
lea ecx, [ebp - 0x24]
and eax, edi
cdq
push edx
push eax
call fcn.10002a51
pop ecx
pop ecx
cmp dword [eax + 0x14], 0x10
jb 0x100035fd
mov eax, dword [eax]
push eax
call fcn.1004498a
pop ecx
push esi
push 1
lea ecx, [ebp - 0x24]
call fcn.10001643
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, 0x40d
jl 0x100035e4
inc ebx
cmp ebx, 0x7428
jl 0x100035df
inc edi
cmp edi, 0xc55
jl 0x100035dd
push esi
call dword [sym.imp.COMDLG32.dll_GetOpenFileNameW]
cmp dword [ebp - 0xc], 0x6260
jge 0x1000364a
push str.bihzyjcy_srfas_avbhskktu_rsiggda_jblpwb_zjvdt_omwigmhn_dvihn_spa_bjhkoca_vlmots_tkow
call fcn.1004498a
pop ecx
mov eax, dword [ebp + 0xc]
cmp byte [eax], 0
je 0x1000365b
push esi
push esi
push esi
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret