joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6e29c0
Capabilities:
Encode data using add xor sub operations
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov eax, 0xa4
call fcn.00702be0
mov eax, dword [0x8fc044]
xor eax, ebp
mov dword [ebp - 4], eax
mov edx, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0x10]
test edi, edi
je 0x6e2b95
push ebx
dec edi
lea ebx, [edx + 0xc]
add edx, 0x14
shr edi, 3
push esi
mov esi, dword [ebp + 0xc]
inc edi
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], edx
movzx eax, byte [esi + 1]
lea esi, [esi + 8]
movzx ecx, byte [esi - 8]
shl eax, 8
or ecx, eax
movzx eax, byte [esi - 6]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 5]
shl eax, 0x18
or ecx, eax
movzx eax, byte [esi - 3]
shl eax, 8
mov dword [ebp - 0x88], ecx
mov dword [ebp - 0x9c], ecx
mov dword [ebp - 0xa4], ecx
movzx ecx, byte [esi - 4]
or ecx, eax
movzx eax, byte [esi - 2]
shl eax, 0x10
or ecx, eax
movzx eax, byte [esi - 1]
shl eax, 0x18
or ecx, eax
movzx eax, byte [ebx]
and al, 0xdf
mov dword [ebp - 0x8c], ecx
or al, 0x40
mov dword [ebp - 0x98], ecx
mov byte [ebx], al
movzx eax, byte [edx]
and al, 0xbf
mov dword [ebp - 0xa0], ecx
or al, 0x20
push ebx
mov byte [edx], al
call fcn.006458c0
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.00645670
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0xa4]
push eax
call fcn.00404180
mov ebx, dword [ebp - 0x90]
push ebx
call fcn.006458c0
lea eax, [ebp - 0x84]
push eax
push ebx
call fcn.00645670
push 1
lea eax, [ebp - 0x84]
push eax
lea eax, [ebp - 0x9c]
push eax
call fcn.00404180
mov ecx, dword [ebp - 0x8c]
add esp, 0x30
mov edx, dword [ebp - 0x98]
mov eax, dword [ebp - 0x88]
xor edx, ecx
xor ecx, dword [ebp - 0xa0]
mov ebx, dword [ebp - 0x9c]
xor ebx, eax
mov dword [ebp - 0x8c], ecx
xor eax, dword [ebp - 0xa4]
mov ecx, dword [ebp - 0x94]
mov dword [ebp - 0x88], eax
mov byte [ecx], al
shr eax, 8
mov byte [ecx + 1], al
mov eax, dword [ebp - 0x88]
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, dword [ebp - 0x88]
shr eax, 0x18
mov byte [ecx + 3], al
mov byte [ecx + 4], dl
mov eax, edx
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
mov byte [ecx + 6], al
mov eax, ebx
shr edx, 0x18
mov byte [ecx + 7], dl
mov ecx, dword [ebp - 0x90]
mov edx, dword [ebp - 0x8c]
shr eax, 8
mov byte [ecx], bl
mov byte [ecx + 1], al
mov eax, ebx
shr eax, 0x10
mov byte [ecx + 2], al
mov eax, edx
shr ebx, 0x18
mov byte [ecx + 3], bl
mov ebx, dword [ebp - 0x94]
mov byte [ecx + 4], dl
shr eax, 8
mov byte [ecx + 5], al
mov eax, edx
shr eax, 0x10
shr edx, 0x18
mov byte [ecx + 6], al
mov byte [ecx + 7], dl
mov edx, ecx
sub edi, 1
jne 0x6e2a02
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.00703eaa
mov esp, ebp
pop ebp
ret
Function at 0x6ead30
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push ebx
mov ebx, dword [ebp + 8]
push esi
mov ecx, dword [edx + 4]
mov esi, edx
push edi
mov edi, dword [ebp + 0x10]
cmp ecx, dword [edi + 4]
cmovge esi, edi
cmovge edi, edx
mov dword [ebp + 0xc], esi
push dword [edi + 4]
push ebx
call fcn.00634db0
add esp, 8
test eax, eax
jne 0x6ead65
pop edi
pop esi
pop ebx
pop ebp
ret
xor eax, eax
cmp dword [esi + 4], eax
jle 0x6ead88
nop dword [eax]
mov ecx, dword [edi]
mov edx, dword [esi]
mov esi, dword [ecx + eax*4]
xor esi, dword [edx + eax*4]
mov ecx, dword [ebx]
mov dword [ecx + eax*4], esi
inc eax
mov esi, dword [ebp + 0xc]
cmp eax, dword [esi + 4]
jl 0x6ead70
cmp eax, dword [edi + 4]
jge 0x6eada0
nop dword [eax]
mov ecx, dword [edi]
mov edx, dword [ebx]
mov ecx, dword [ecx + eax*4]
mov dword [edx + eax*4], ecx
inc eax
cmp eax, dword [edi + 4]
jl 0x6ead90
mov eax, dword [edi + 4]
push ebx
mov dword [ebx + 4], eax
call fcn.00634b70
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x6ebd10
Capabilities:
Inspect section memory permissions

Disassembly:
push ebp
mov ebp, esp
mov eax, 4
call fcn.00702be0
push esi
mov esi, dword [ebp + 0x14]
push edi
push esi
xor edi, edi
call fcn.00679600
push esi
call fcn.00679500
mov esi, eax
add esp, 8
test esi, esi
je 0x6ebef9
push ebx
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx + 4]
add eax, eax
push eax
push esi
call fcn.00634db0
add esp, 8
test eax, eax
je 0x6ebef8
mov eax, dword [ebx + 4]
sub eax, 1
js 0x6ebed1
mov edi, eax
mov eax, dword [ebx]
mov edx, dword [eax + edi*4]
mov ecx, edx
shr ecx, 1
mov eax, edx
and eax, 0x20000
and ecx, 0x8000
or ecx, eax
mov eax, edx
and eax, 0x40000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x80000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x100000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x200000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x400000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x800000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x1000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x2000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x4000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x8000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x10000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x20000000
shr ecx, 1
or ecx, eax
mov eax, edx
and eax, 0x40000000
shr ecx, 1
or ecx, eax
and edx, reloc.WS2_32.dll_accept
mov eax, dword [esi]
shr ecx, 1
or ecx, edx
shr ecx, 1
mov dword [eax + edi*8 + 4], ecx
mov eax, dword [ebx]
mov ecx, dword [eax + edi*4]
mov edx, ecx
and edx, 0x8000
mov eax, ecx
add edx, edx
and eax, 0x4000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x2000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x1000
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x800
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x400
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x200
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x100
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x80
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x40
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x20
or edx, eax
mov eax, ecx
add edx, edx
and eax, 0x10
or edx, eax
mov eax, ecx
add edx, edx
and eax, 8
or edx, eax
mov eax, ecx
add edx, edx
and eax, 4
or edx, eax
mov eax, ecx
add edx, edx
and eax, 2
or edx, eax
and ecx, 1
mov eax, dword [esi]
add edx, edx
or edx, ecx
mov dword [eax + edi*8], edx
sub edi, 1
jns 0x6ebd66
xor edi, edi
mov eax, dword [ebx + 4]
add eax, eax
push esi
mov dword [esi + 4], eax
call fcn.00634b70
push dword [ebp + 0x10]
push esi
push dword [ebp + 8]
call fcn.006eadc0
add esp, 0x10
mov ecx, 1
test eax, eax
cmovne edi, ecx
pop ebx
push dword [ebp + 0x14]
call fcn.00679470
add esp, 4
mov eax, edi
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x717b0a
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00702be0
mov eax, dword [0x8fc044]
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.0072558e
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x717b4c
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x717ca8
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00703390
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 + 0x10348b0]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.0071a866
mov ecx, dword [esi*4 + 0x10348b0]
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 0x717ca1
cmp eax, dword [edi + ecx + 0x24]
jne 0x717ca1
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 0x717ca1
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0071a866
add esp, 0x14
test edx, edx
jl 0x717ca1
jg 0x717c17
test eax, eax
jb 0x717ca1
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x717ca1
jl 0x717c31
cmp dword [ebp - 0x1008], eax
ja 0x717ca1
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x717c4f
test ebx, ebx
je 0x717c88
cmp ecx, edi
jae 0x717c88
mov al, byte [ecx]
cmp al, 0xd
jne 0x717c69
lea eax, [edi - 1]
cmp ecx, eax
jae 0x717c75
cmp byte [ecx + 1], 0xa
jne 0x717c75
inc ecx
jmp 0x717c75
movzx eax, al
movsx eax, byte [eax + 0x8fc1b0]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x717c4f
cmp edx, ebx
jne 0x717c4f
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x717ca6
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00703eaa
leave
ret
Function at 0x719217
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 + 0x10348b0]
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 0x719257
cmp byte [ebx], 0xa
jne 0x719257
or byte [eax + edi + 0x28], 4
jmp 0x71925c
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x71935a
mov al, byte [edx]
cmp al, 0x1a
je 0x71933c
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x71928b
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x7192b0
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x7192ba
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 0x71926d
jmp 0x71935a
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 0x719337
cmp dword [ebp - 0xc], 0
je 0x719337
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10348b0]
test byte [eax + edi + 0x28], 0x48
je 0x719311
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x7192fc
mov byte [esi], dl
jmp 0x71930d
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10348b0]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x71935a
cmp byte [ebp - 1], 0xa
jne 0x719320
cmp esi, ebx
jne 0x719320
mov byte [esi], 0xa
jmp 0x719359
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.0071a884
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x71935a
mov byte [esi], 0xd
jmp 0x719359
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10348b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x719356
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x71935a
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x719363
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 + 0x10348b0]
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 0x7193a6
cmp word [esi], dx
jne 0x7193a6
or byte [edi + eax + 0x28], 4
jmp 0x7193ab
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 0x7194fe
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 0x7194de
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x7193ed
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x719423
cmp eax, edx
jae 0x71942f
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 0x7193c5
jmp 0x7194fe
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 0x7194da
cmp dword [ebp - 0x14], 0
je 0x7194da
mov eax, dword [ebx*4 + 0x10348b0]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x7194b2
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x71947b
mov word [esi], cx
jmp 0x7194ae
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10348b0]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10348b0]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10348b0]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x7194fe
pop ebx
cmp word [ebp - 4], bx
jne 0x7194c3
cmp esi, dword [ebp + 0xc]
jne 0x7194c3
mov word [esi], bx
jmp 0x7194fb
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.0071a884
add esp, 0x10
cmp word [ebp - 4], bx
je 0x7194fe
push 0xd
jmp 0x7194f7
mov ecx, dword [ebx*4 + 0x10348b0]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x7194f5
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x7194fe
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 0x724ced
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x8fc044]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0x8174d8
push esi
call fcn.00730adc
pop ecx
pop ecx
test eax, eax
jne 0x724d1b
xor al, al
jmp 0x724d98
push ebx
lea eax, [ebp - 0x210]
xor ebx, ebx
push eax
push 0x104
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x210], ebx
push esi
push eax
call fcn.007249f1
mov edx, eax
add esp, 0x10
test edx, edx
jne 0x724d55
push dword [ebp - 0x210]
call fcn.0071420c
xor al, al
jmp 0x724d96
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x724d5b
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0x724d7b
push edx
call fcn.00724c23
pop ecx
test al, al
je 0x724d46
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0x724d89
mov bl, 1
push dword [ebp - 0x210]
call fcn.0071420c
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00703eaa
leave
ret

Function at 0x72e37d
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x818c8c
push 0x818c84
push str.FlsAlloc
push 0x1e
call fcn.0072e1aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x72e3b1
push dword [ebp + 8]
mov ecx, esi
call dword [0x75b644]
call esi
jmp 0x72e3b7
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x72e3fb
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x818c9c
push 0x818c94
push str.FlsGetValue
push 0x20
call fcn.0072e1aa
mov esi, eax
add esp, 0x10
test esi, esi
je 0x72e432
push dword [ebp + 8]
mov ecx, esi
call dword [0x75b644]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x72ed4c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.0072ebbd
Function at 0x72f794
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.0072f710
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x72f90c
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x72f90c
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x72f8bb
jg 0x72f7ed
test eax, eax
je 0x72f8b1
push 1
push 0x1000
call fcn.0072d07b
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x72f813
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x72f8a8
push 0x8000
push ebx
call fcn.00725730
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 0x72f83f
jg 0x72f83a
cmp ecx, 0x1000
jb 0x72f83f
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.0071a47d
add esp, 0x10
cmp eax, 0xffffffff
je 0x72f884
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 0x72f83a
jl 0x72f86b
test ecx, ecx
jne 0x72f82c
push dword [ebp - 0xc]
push ebx
call fcn.00725730
push esi
call fcn.0072bb90
add esp, 0xc
xor edi, edi
jmp 0x72f91d
cmp byte [edi + 0x24], 0
je 0x72f89b
cmp dword [edi + 0x20], 5
jne 0x72f89b
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x72f8a6
mov edi, dword [edi + 0x18]
jmp 0x72f8a8
xor edi, edi
push esi
call fcn.0072bb90
pop ecx
jmp 0x72f91d
test ecx, ecx
jg 0x72f87d
jl 0x72f8bb
test eax, eax
jae 0x72f87d
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.0071a884
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x72f8de
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x72f87d
jmp 0x72f915
push ebx
call fcn.0071bc0b
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x72f87d
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 0x72f91d
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x72f91a
mov edi, dword [edi + 0x18]
jmp 0x72f91d
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.0071a884
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x732983
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x264
mov eax, dword [0x8fc044]
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 0x7329ce
movzx eax, word [edx]
lea ecx, [ebp - 0x255]
push eax
call fcn.00732b22
test al, al
jne 0x7329c8
sub edx, 2
cmp edx, edi
jne 0x7329ae
mov ecx, dword [ebp - 0x25c]
movzx esi, word [edx]
cmp esi, 0x3a
jne 0x7329f0
lea eax, [edi + 2]
cmp edx, eax
je 0x7329f0
push ecx
xor ebx, ebx
push ebx
push ebx
push edi
call fcn.007328cf
add esp, 0x10
jmp 0x732aea
push esi
lea ecx, [ebp - 0x255]
call fcn.00732b22
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 0x732a33
push dword [ebp - 0x25c]
jmp 0x7329e0
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 0x732a70
cmp word [ebp - 0x226], 0
je 0x732a91
cmp word [ebp - 0x226], ax
jne 0x732a70
cmp word [ebp - 0x224], 0
je 0x732a91
push ebx
push dword [ebp - 0x260]
lea eax, [ebp - 0x228]
push edi
push eax
call fcn.007328cf
add esp, 0x10
mov dword [ebp - 0x264], eax
test eax, eax
jne 0x732add
lea eax, [ebp - 0x254]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
push 0x2e
test eax, eax
pop eax
jne 0x732a4a
mov eax, dword [ebx + 4]
mov edx, dword [ebx]
sub eax, edx
mov ecx, dword [ebp - 0x25c]
sar eax, 2
cmp ecx, eax
jne 0x732ac5
push esi
call dword [sym.imp.KERNEL32.dll_FindClose]
xor eax, eax
jmp 0x732aea
push 0x7326ff
sub eax, ecx
push 4
push eax
lea eax, [edx + ecx*4]
push eax
call fcn.00721d50
add esp, 0x10
jmp 0x732aba
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.00703eaa
leave
ret
Function at 0x7333f5
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 0x733492
push ebx
push esi
call fcn.007333be
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.0072f4d1
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x73343f
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x733491
push edi
push eax
call fcn.0072bbca
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x73345f
call fcn.0072bb90
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x733490
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.0072f4d1
add esp, 0x20
test eax, eax
jne 0x73347e
push edi
call fcn.0072bb90
jmp 0x733486
push ebx
call fcn.0072bb90
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 0x733495
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0x7334a6
pop esi
ret
push ebx
push edi
push esi
call fcn.007333be
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.0072bbca
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0x7334ce
push ebx
push esi
push edi
call fcn.00704c30
add esp, 0xc
push 0
call fcn.0072bb90
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0x733c1a
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00733741
Function at 0x73f000
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push dword [ecx + 4]
push dword [ebp + 0xc]
push 1
push dword [ebp + 8]
call fcn.0071690e
add esp, 0x10
pop ebp
ret 8

Function at 0x73f1e0
Capabilities:
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
jne 0x73f1ec
pop ebp
ret
push esi
push eax
call fcn.0072558e
add esp, 4
test eax, eax
jns 0x73f201
xor esi, esi
mov eax, esi
pop esi
pop ebp
ret
push edi
push eax
call fcn.0071bc0b
mov edi, eax
add esp, 4
cmp edi, 0xffffffff
jne 0x73f21a
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
mov esi, dword [ebp + 0xc]
push ebx
push 0
push esi
push 0
push 2
push 0
push edi
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
jne 0x73f244
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
push esi
push 0
push 0
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x73f26d
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
call esi
push ebx
call esi
pop ebx
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
ret
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebx
pop edi
mov eax, esi
pop esi
pop ebp
ret