joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100254a0
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x314
push ebx
mov ebx, dword [esp + 0x31c]
push ebp
push esi
test ebx, ebx
push edi
je 0x10025667
mov esi, dword [esp + 0x32c]
cmp esi, 0x40
jle 0x10025667
mov edx, dword [esp + 0x330]
mov ebp, dword [esp + 0x334]
test edx, edx
jne 0x10025509
test ebp, ebp
jne 0x10025509
mov eax, dword [esp + 0x338]
test eax, eax
jne 0x10025509
mov eax, dword [esp + 0x33c]
test eax, eax
jne 0x10025509
mov eax, dword [esp + 0x340]
test eax, eax
jge 0x10025509
cmp eax, 0x10
ja 0x10025667
cmp word [ebx], 0x5a4d
jne 0x10025667
mov ecx, dword [ebx + 0x3c]
lea eax, [ecx + 4]
cmp eax, 0x10
jl 0x10025667
cmp eax, esi
jge 0x10025667
cmp dword [ecx + ebx], 0x4550
jne 0x10025667
lea edi, [eax + 0x14]
cmp edi, esi
jge 0x10025667
lea esi, [ecx + ebx + 4]
mov ecx, 5
lea edi, [esp + 0x10]
test edx, edx
rep movsd dword es:[edi], dword [esi]
je 0x10025563
mov ecx, 5
lea esi, [esp + 0x10]
mov edi, edx
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x32c]
lea ecx, [eax + 0x74]
cmp ecx, edx
jge 0x10025667
lea esi, [eax + ebx + 0x14]
mov ecx, 0x18
lea edi, [esp + 0x24]
test ebp, ebp
rep movsd dword es:[edi], dword [esi]
je 0x10025595
mov ecx, 0x18
lea esi, [esp + 0x24]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x32c]
lea edx, [eax + 0xf4]
cmp edx, ecx
jge 0x10025667
mov ebp, dword [esp + 0x338]
test ebp, ebp
je 0x100255df
cmp dword [esp + 0x80], 0x10
ja 0x10025667
lea esi, [eax + ebx + 0x74]
mov ecx, 0x20
lea edi, [esp + 0x24]
rep movsd dword es:[edi], dword [esi]
mov ecx, 0x20
lea esi, [esp + 0x24]
mov edi, ebp
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x12]
mov ebp, dword [esp + 0x340]
mov eax, ecx
and eax, 0xffff
cmp ebp, eax
jle 0x100255f7
mov ebp, eax
test cx, cx
jbe 0x10025667
cmp cx, 0x10
ja 0x10025667
lea eax, [ebp + ebp*4]
lea ecx, [edx + eax*8]
mov eax, dword [esp + 0x32c]
cmp ecx, eax
jge 0x10025667
mov ecx, dword [esp + 0x33c]
test ecx, ecx
je 0x10025657
test ebp, ebp
jle 0x10025657
add edx, ebx
mov ebx, ecx
lea ecx, [esp + 0xa4]
lea eax, [esp + 0xa4]
sub ebx, ecx
mov ecx, 0xa
mov esi, edx
mov edi, eax
add edx, 0x28
rep movsd dword es:[edi], dword [esi]
lea edi, [ebx + eax]
mov esi, eax
mov ecx, 0xa
add eax, 0x28
dec ebp
rep movsd dword es:[edi], dword [esi]
jne 0x10025637
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x314
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x314
ret
Function at 0x10028b40
Capabilities:
Terminate process

Disassembly:
push ecx
mov eax, dword [esp + 8]
push esi
push eax
push 1
push 1
mov dword [esp + 0x10], 0
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
jne 0x10028b62
pop esi
pop ecx
ret
lea ecx, [esp + 4]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [esp + 4]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ecx
ret

Function at 0x10028cf0
Capabilities:
Get common file path

Disassembly:
push edi
mov edi, dword [esp + 8]
test edi, edi
jne 0x10028cfd
xor eax, eax
pop edi
ret
mov eax, dword [esp + 0xc]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
jne 0x10028d0f
pop edi
ret
push 0x5c
push edi
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
je 0x10028d22
mov byte [eax], 0
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop edi
mov eax, ecx
ret

Function at 0x10028d60
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa
Encrypt data using rc4 prga

Disassembly:
sub esp, 0x108
push ebp
mov ebp, dword [esp + 0x118]
test ebp, ebp
push edi
je 0x10028ec4
mov eax, dword [esp + 0x114]
test eax, eax
je 0x10028ec4
mov eax, dword [esp + 0x118]
test eax, eax
je 0x10028ec4
mov edi, dword [esp + 0x120]
test edi, edi
je 0x10028ec4
xor eax, eax
mov byte [esp + eax + 0x10], al
inc eax
cmp eax, 0x100
jl 0x10028da6
mov eax, dword [esp + 0x12c]
push ebx
cmp eax, 1
push esi
mov byte [esp + 0x10], 0
jne 0x10028e02
xor ecx, ecx
mov eax, ecx
mov bl, byte [esp + ecx + 0x18]
cdq
idiv edi
mov al, byte [edx + ebp]
mov dl, byte [esp + 0x10]
add al, bl
add dl, al
mov byte [esp + 0x10], dl
mov edx, dword [esp + 0x10]
and edx, 0xff
inc ecx
cmp ecx, 0x100
mov al, byte [esp + edx + 0x18]
lea esi, [esp + edx + 0x18]
mov byte [esp + ecx + 0x17], al
mov byte [esi], bl
jb 0x10028dc7
jmp 0x10028e32
xor ecx, ecx
mov eax, ecx
mov bl, byte [esp + ecx + 0x18]
cdq
idiv edi
mov al, byte [esp + 0x10]
mov dl, byte [edx + ebp]
add dl, bl
add al, dl
mov byte [esp + 0x10], al
mov eax, dword [esp + 0x10]
and eax, 0xff
inc ecx
cmp ecx, 0x100
mov byte [esp + eax + 0x18], bl
jb 0x10028e04
mov eax, dword [esp + 0x130]
xor dl, dl
cmp eax, 1
jne 0x10028e44
mov byte [esp + 0x10], dl
mov ecx, dword [esp + 0x120]
xor eax, eax
test ecx, ecx
jle 0x10028eb4
mov cl, byte [esp + 0x12c]
mov bl, byte [esp + 0x10]
add dl, cl
mov byte [esp + 0x14], dl
mov ecx, dword [esp + 0x14]
and ecx, 0xff
lea esi, [esp + ecx + 0x18]
mov cl, byte [esp + ecx + 0x18]
add bl, cl
mov byte [esp + 0x10], bl
mov edi, dword [esp + 0x10]
and edi, 0xff
mov bl, byte [esp + edi + 0x18]
lea edi, [esp + edi + 0x18]
mov byte [esi], bl
mov byte [edi], cl
mov bl, byte [esi]
add ebx, ecx
mov ecx, dword [esp + 0x11c]
and ebx, 0xff
mov bl, byte [esp + ebx + 0x18]
xor byte [eax + ecx], bl
mov ecx, dword [esp + 0x120]
inc eax
cmp eax, ecx
jl 0x10028e51
pop esi
pop ebx
pop edi
mov eax, 1
pop ebp
add esp, 0x108
ret
pop edi
xor eax, eax
pop ebp
add esp, 0x108
ret
Function at 0x1002b040
Capabilities:
Set file attributes

Disassembly:
push esi
push edi
mov edi, dword [esp + 0x10]
push 0x80
push edi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esp + 0xc]
push 0x180
push edi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x38]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x3c]
pop edi
pop esi
test eax, eax
je 0x1002b07e
mov eax, dword [esp + 0xc]
mov dword [eax], 1
xor eax, eax
ret
mov eax, 1
ret

Function at 0x1002b090
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x404
mov ecx, 0x100
xor eax, eax
mov edx, dword [esp + 0x410]
push ebx
push esi
push edi
mov esi, dword [esp + 0x420]
lea edi, [esp + 0x10]
mov ebx, dword [esp + 0x414]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x418]
lea eax, [esp + 0xc]
push 1
lea ecx, [esp + 0x14]
push eax
push ecx
push 0x400
push 0x400
push esi
push edx
push edi
push ebx
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x1002b12f
cmp dword [esp + 0xc], 0x400
jne 0x1002b12f
cmp word [esp + 0x10], 0x5a4d
jne 0x1002b12f
mov eax, dword [esp + 0x4c]
lea ecx, [eax + 4]
cmp ecx, 0x400
ja 0x1002b12f
cmp dword [esp + eax + 0x10], 0x4550
jne 0x1002b12f
push esi
push edi
push ebx
call fcn.10029b90
add esp, 0xc
neg eax
sbb eax, eax
pop edi
pop esi
pop ebx
neg eax
add esp, 0x404
ret
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x404
ret
Function at 0x1002b140
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x10a0
call fcn.102244a0
mov eax, dword [esp + 0x10b4]
mov ecx, dword [esp + 0x10b0]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x10b0]
push edi
mov edi, dword [esp + 0x10b8]
mov dword [eax], 0
mov dword [ecx], 0
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x20]
test eax, eax
mov dword [esp + 0x14], eax
jle 0x1002b343
lea ecx, [esp + 0x10]
push 1
lea edx, [esp + 0xb4]
push ecx
mov ecx, dword [esp + 0x10c4]
push edx
push 0x1000
push 0x1000
push ecx
push eax
push edi
push esi
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x1002b343
mov edx, dword [esp + 0x10]
cmp edx, 0x400
jl 0x1002b343
cmp edx, 0x40
jb 0x1002b343
cmp word [esp + 0xb0], 0x5a4d
jne 0x1002b343
mov eax, dword [esp + 0xec]
lea ecx, [edx - 4]
cmp eax, ecx
ja 0x1002b343
cmp dword [esp + eax + 0xb0], 0x4550
jne 0x1002b343
add eax, 4
lea ecx, [edx - 0x14]
cmp eax, ecx
ja 0x1002b343
lea esi, [esp + eax + 0xb0]
mov ecx, 5
lea edi, [esp + 0x18]
rep movsd dword es:[edi], dword [esi]
mov ebp, dword [esp + 0x1a]
and ebp, 0xffff
jle 0x1002b343
add eax, 0x14
lea ecx, [edx - 2]
cmp eax, ecx
ja 0x1002b343
mov cx, word [esp + eax + 0xb0]
lea esi, [esp + eax + 0xb0]
cmp cx, 0x20b
jne 0x1002b281
lea ecx, [edx - 0x70]
cmp eax, ecx
ja 0x1002b343
mov ecx, 0x1c
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0xac]
lea eax, [eax + ecx*8 + 0x70]
jmp 0x1002b2ad
cmp cx, 0x10b
jne 0x1002b343
lea ecx, [edx - 0x60]
cmp eax, ecx
ja 0x1002b343
mov ecx, 0x18
lea edi, [esp + 0x40]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [esp + 0x9c]
lea eax, [eax + ecx*8 + 0x60]
lea ecx, [ebp + ebp*4]
mov esi, edx
shl ecx, 3
sub esi, ecx
cmp eax, esi
jg 0x1002b343
xor ebx, ebx
add edx, 0xffffffd8
mov dword [esp + 0x10], edx
lea edx, [esp + eax + 0xb0]
cmp eax, dword [esp + 0x10]
ja 0x1002b343
mov esi, edx
add eax, 0x28
add edx, 0x28
inc ebx
mov ecx, 0xa
lea edi, [esp + 0x18]
cmp ebx, ebp
rep movsd dword es:[edi], dword [esi]
jl 0x1002b2d0
mov edx, dword [esp + 0x10c4]
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x28]
mov dword [edx], 1
mov edx, dword [esp + 0x10bc]
add ecx, eax
mov eax, dword [esp + 0x14]
add ecx, edx
cmp eax, ecx
je 0x1002b326
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x10a0
ret
mov edx, dword [esp + 0x10c0]
pop edi
pop esi
pop ebp
mov dword [edx], 1
mov eax, 1
pop ebx
add esp, 0x10a0
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x10a0
ret
Function at 0x1002b460
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x400
mov ecx, 0x100
xor eax, eax
push ebx
push esi
push edi
mov ebx, dword [esp + 0x414]
lea edi, [esp + 0xc]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
cmp ecx, 0x400
jb 0x1002b499
pop edi
pop esi
pop ebx
add esp, 0x400
ret
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [esp + 0x10]
push ecx
call esi
add esp, 8
test eax, eax
je 0x1002b4d5
inc eax
jmp 0x1002b4d9
lea eax, [esp + 0xc]
push 0x2e
push eax
call esi
add esp, 8
test eax, eax
jne 0x1002b4f4
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x400
ret
mov edx, dword [esp + 0x418]
mov byte [eax], 0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0xc]
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
cmp esi, 0x400
jb 0x1002b52c
pop edi
pop esi
pop ebx
add esp, 0x400
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push ebp
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea ebp, [esp + 0x10]
mov esi, edi
mov edx, ecx
mov edi, ebp
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
push 0x80
and ecx, 3
push ebx
rep movsb byte es:[edi], byte [esi]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esp + 0x414]
push 0x180
push ebx
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x38]
mov edx, dword [esi]
lea eax, [esp + 0x10]
push eax
push ebx
mov ecx, esi
call dword [edx + 0x4c]
xor ecx, ecx
cmp eax, 0xffffffff
pop ebp
pop edi
setne cl
pop esi
mov eax, ecx
pop ebx
add esp, 0x400
ret
Function at 0x1002b5a0
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x404
push ebx
push ebp
mov ebp, dword [esp + 0x414]
push esi
push edi
push 0x80
push ebp
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov ebx, dword [esp + 0x418]
push 0x180
push ebp
mov ecx, ebx
mov eax, dword [ebx]
call dword [eax + 0x38]
mov edx, dword [ebx]
push ebp
mov ecx, ebx
call dword [edx + 0x3c]
test eax, eax
je 0x1002b5f7
mov eax, dword [esp + 0x420]
pop edi
pop esi
pop ebp
mov dword [eax], 1
xor eax, eax
pop ebx
add esp, 0x404
ret
mov edi, ebp
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
push 0x5c
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.MSVCRT.dll_strrchr]
lea ecx, [esp + 0x18]
push ecx
call esi
add esp, 8
test eax, eax
je 0x1002b633
inc eax
jmp 0x1002b637
lea eax, [esp + 0x14]
push 0x2e
push eax
call esi
add esp, 8
test eax, eax
jne 0x1002b653
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x404
ret
mov edx, dword [esp + 0x424]
mov byte [eax], 0
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
lea edi, [esp + 0x14]
mov esi, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
add esi, ecx
cmp esi, 0x400
jb 0x1002b68c
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x404
ret
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
lea esi, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
mov eax, esi
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
mov edx, dword [ebx]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea eax, [esp + 0x18]
mov ecx, ebx
push eax
call dword [edx]
test eax, eax
je 0x1002b6db
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x404
ret
lea ecx, [esp + 0x14]
push 0x80
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [ebx]
lea eax, [esp + 0x14]
push 0x180
push eax
mov ecx, ebx
call dword [edx + 0x38]
mov edx, dword [ebx]
lea eax, [esp + 0x14]
push ebp
push eax
mov ecx, ebx
call dword [edx + 0x4c]
xor ecx, ecx
cmp eax, 0xffffffff
pop edi
pop esi
setne cl
pop ebp
mov eax, ecx
pop ebx
add esp, 0x404
ret

Function at 0x1002bac0
Capabilities:
Set file attributes

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
push edi
mov edi, dword [esp + 0x14]
push 0x80
push edi
mov dword [ebx], 0
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov esi, dword [esp + 0x10]
push 0x180
push edi
mov ecx, esi
mov eax, dword [esi]
call dword [eax + 0x38]
mov edx, dword [esi]
push edi
mov ecx, esi
call dword [edx + 0x3c]
test eax, eax
je 0x1002bb06
pop edi
mov dword [ebx], 1
pop esi
xor eax, eax
pop ebx
ret
pop edi
pop esi
mov eax, 1
pop ebx
ret
Function at 0x100317b0
Capabilities:
Parse pe header

Disassembly:
mov ecx, dword [0x107ab964]
sub esp, 0x410
mov eax, dword [ecx]
push ebx
push ebp
push esi
mov esi, dword [esp + 0x420]
push edi
push esi
call dword [eax + 0x20]
mov ecx, dword [0x107ab964]
mov ebx, eax
push 0
mov edx, dword [ecx]
lea edi, [ebx - 0xa]
push edi
push esi
call dword [edx + 8]
cmp eax, edi
jne 0x100318f6
xor eax, eax
mov ecx, dword [0x107ab964]
mov dword [esp + 0x10], eax
push 0xa
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov edx, dword [ecx]
lea eax, [esp + 0x14]
push eax
push esi
call dword [edx + 0xc]
cmp eax, 0xa
jne 0x100318f6
cmp dword [esp + 0x10], 0x4e524542
jne 0x100318f6
cmp word [esp + 0x14], 0x4549
jne 0x100318f6
mov eax, dword [esp + 0x16]
test eax, eax
mov ebp, eax
jle 0x100318f6
cmp eax, ebx
jge 0x100318f6
mov ecx, dword [0x107ab964]
push 0
push eax
push esi
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, ebp
jne 0x100318f6
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x20]
lea edx, [esp + 0x20]
rep stosd dword es:[edi], eax
mov ecx, dword [0x107ab964]
push 0x400
push edx
push esi
mov eax, dword [ecx]
call dword [eax + 0xc]
cmp eax, 0x400
jne 0x100318f6
cmp word [esp + 0x20], 0x5a4d
jne 0x100318f6
mov eax, dword [esp + 0x5c]
lea ecx, [eax + 4]
cmp ecx, 0x400
ja 0x100318f6
cmp dword [esp + eax + 0x20], 0x4550
jne 0x100318f6
mov edx, dword [0x107ab964]
push ebp
push esi
push edx
call fcn.10029b90
add esp, 0xc
cmp eax, 0xffffffff
je 0x100318f6
mov ecx, dword [0x107ab964]
push esi
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ecx, dword [0x107ab964]
push 1
add eax, 0xfffffff6
push 0
push eax
push esi
push ecx
call fcn.10013800
add esp, 0x14
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x410
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x410
ret
Function at 0x10031e40
Capabilities:
Parse pe header

Disassembly:
sub esp, 0x434
mov ecx, dword [0x107ab964]
push ebx
mov ebx, dword [esp + 0x43c]
push ebp
mov eax, dword [ecx]
push esi
push edi
push ebx
call dword [eax + 0x20]
mov ebp, eax
mov ecx, 0xa
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
xor ecx, ecx
lea edx, [esp + 0x1c]
mov dword [esp + 0x10], ecx
lea eax, [esp + 0x10]
mov dword [esp + 0x14], ecx
push edx
mov byte [esp + 0x1c], cl
mov ecx, dword [0x107ab964]
push eax
push ebx
push ecx
call fcn.10010a00
add esp, 0x10
test eax, eax
je 0x10031f47
mov edx, dword [esp + 0x30]
mov eax, dword [esp + 0x2c]
lea edi, [eax + edx]
cmp edi, ebp
jge 0x10031f47
test edi, edi
je 0x10031f47
mov ecx, dword [0x107ab964]
push 0
push edi
push ebx
mov edx, dword [ecx]
call dword [edx + 8]
cmp eax, edi
jne 0x10031f47
mov ecx, dword [0x107ab964]
lea edx, [esp + 0x44]
push 0x400
push edx
mov eax, dword [ecx]
push ebx
call dword [eax + 0xc]
cmp eax, 0x400
jne 0x10031f47
cmp word [esp + 0x44], 0x5a4d
jne 0x10031f47
mov eax, dword [esp + 0x80]
cmp eax, 0x3fc
ja 0x10031f47
cmp dword [esp + eax + 0x44], 0x4550
jne 0x10031f47
mov eax, dword [0x107ab964]
mov esi, ebp
sub esi, edi
push 0
push esi
push edi
push ebx
push eax
call fcn.10029bd0
add esp, 0x14
test eax, eax
je 0x10031f47
mov ecx, dword [0x107ab964]
sub ebp, esi
push ebp
push esi
push ebx
push ecx
call section..text
add esp, 0x10
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x434
ret
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x434
ret
Function at 0x10031f60
Capabilities:
Set file attributes

Disassembly:
sub esp, 0x400
push ebx
mov ebx, dword [esp + 0x408]
push ebp
mov ebp, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push 0x80
push ebx
call ebp
mov ecx, dword [0x107ab964]
push 0x180
push ebx
mov eax, dword [ecx]
call dword [eax + 0x38]
mov ecx, dword [0x107ab964]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x3c]
test eax, eax
je 0x10031fb6
mov eax, dword [esp + 0x410]
pop ebp
pop ebx
mov dword [eax], 1
xor eax, eax
add esp, 0x400
ret
push esi
push edi
mov ecx, 0x100
xor eax, eax
lea edi, [esp + 0x10]
lea edx, [esp + 0x10]
rep stosd dword es:[edi], eax
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push ecx
push ebx
call sub.platform.dll_Ordinal_13
add esp, 8
test eax, eax
jne 0x10032019
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x10]
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
push 0x2e
push ecx
call dword [sym.imp.MSVCRT.dll_strrchr]
add esp, 8
test eax, eax
pop edi
pop esi
jne 0x1003203d
pop ebp
mov eax, 1
pop ebx
add esp, 0x400
ret
mov byte [eax], 0
mov ecx, dword [0x107ab964]
lea eax, [esp + 8]
push 0
mov edx, dword [ecx]
push eax
call dword [edx]
test eax, eax
je 0x10032063
pop ebp
mov eax, 1
pop ebx
add esp, 0x400
ret
lea ecx, [esp + 8]
push 0x80
push ecx
call ebp
mov ecx, dword [0x107ab964]
lea eax, [esp + 8]
push 0x180
push eax
mov edx, dword [ecx]
call dword [edx + 0x38]
mov ecx, dword [0x107ab964]
lea eax, [esp + 8]
push ebx
push eax
mov edx, dword [ecx]
call dword [edx + 0x4c]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
pop ebp
mov eax, ecx
pop ebx
add esp, 0x400
ret
Function at 0x10033940
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x1004
call fcn.102244a0
push ebx
push ebp
push esi
mov edx, dword [esp + 0x1014]
push edi
mov edi, dword [esp + 0x101c]
push 0
push 0x8002
mov dword [edi], 0
mov ecx, dword [0x107ab964]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov esi, eax
cmp esi, 0xffffffff
je 0x10033af0
mov ecx, dword [0x107ab964]
push esi
xor ebp, ebp
mov eax, dword [ecx]
call dword [eax + 0x20]
mov ebx, dword [esp + 0x1020]
mov edx, eax
cmp ebx, 0xbbb
je 0x100339be
cmp ebx, 0xbbc
je 0x100339be
cmp ebx, 0xbc8
je 0x100339be
cmp ebx, 0xe39
jne 0x100339c3
mov ebp, 0xa201
jmp 0x100339c3
mov ebp, 0x1b85
cmp edx, ebp
jg 0x100339fc
mov ecx, dword [0x107ab964]
push esi
mov edx, dword [ecx]
call dword [edx + 0x18]
mov eax, dword [esp + 0x1018]
mov ecx, dword [0x107ab964]
push edi
push eax
push ecx
call fcn.1002bac0
add esp, 0xc
neg eax
pop edi
pop esi
sbb eax, eax
pop ebp
neg eax
pop ebx
add esp, 0x1004
ret
mov ecx, 0x400
xor eax, eax
lea edi, [esp + 0x14]
push 1
rep stosd dword es:[edi], eax
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0x1000
push 0x1000
push ebp
push edx
mov edx, dword [0x107ab964]
push esi
push edx
call fcn.100253e0
add esp, 0x24
test eax, eax
je 0x10033ae4
cmp dword [esp + 0x10], 0x1000
jne 0x10033ae4
cmp word [esp + 0x14], 0x5a4d
je 0x10033a69
mov ecx, dword [0x107ab964]
push esi
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1004
ret
mov eax, dword [esp + 0x50]
lea ecx, [eax + 4]
cmp ecx, 0x1000
ja 0x10033ae4
cmp ebx, 0xbbb
je 0x10033a90
cmp ebx, 0xbbc
je 0x10033a90
cmp ebx, 0xbc8
jne 0x10033ab3
cmp dword [esp + eax + 0x14], 0x4550
je 0x10033ab3
mov ecx, dword [0x107ab964]
push esi
mov eax, dword [ecx]
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1004
ret
mov ecx, dword [0x107ab964]
push ebp
push esi
push ecx
call fcn.10029b90
mov ecx, dword [0x107ab964]
add esp, 0xc
test eax, eax
je 0x10033aea
mov eax, dword [ecx]
push esi
call dword [eax + 0x18]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x1004
ret
mov ecx, dword [0x107ab964]
mov edx, dword [ecx]
push esi
call dword [edx + 0x18]
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1004
ret