joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001dd70
Capabilities:
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, edx
mov edx, dword [0x10124700]
mov dword [ebp - 0xc], edx
push edi
mov edi, ecx
test esi, esi
jne 0x1001dd99
mov esi, edi
lea ecx, [esi + 1]
nop
mov al, byte [esi]
inc esi
test al, al
jne 0x1001dd90
sub esi, ecx
test edx, edx
je 0x1001dda3
inc dword [edx + 0x370]
lea eax, [esi + 1]
push eax
call fcn.10078c13
mov ebx, eax
push esi
push edi
push ebx
lea ecx, [ebx + esi]
mov dword [ebp - 0x10], ebx
mov dword [ebp - 4], ecx
call fcn.10070330
mov edx, dword [ebp - 4]
xor ecx, ecx
add esp, 0x10
mov dword [ebp - 8], ecx
xor esi, esi
mov byte [edx], 0
cmp ebx, edx
jae 0x1001df2a
nop word [eax + eax]
mov al, byte [ebx]
cmp al, 0xa
je 0x1001df5a
cmp al, 0xd
je 0x1001df5a
mov edi, ebx
cmp ebx, edx
jae 0x1001de07
mov al, byte [edi]
cmp al, 0xa
je 0x1001de07
cmp al, 0xd
je 0x1001de07
inc edi
cmp edi, edx
jb 0x1001ddf8
mov byte [edi], 0
mov al, byte [ebx]
cmp al, 0x3b
je 0x1001df1f
cmp al, 0x5b
jne 0x1001df03
cmp edi, ebx
jbe 0x1001df03
cmp byte [edi - 1], 0x5d
lea eax, [edi - 1]
mov dword [ebp - 0x14], eax
jne 0x1001df03
lea esi, [ebx + 1]
mov byte [eax], 0
sub eax, esi
push eax
push 0x5d
push esi
call fcn.10070a10
add esp, 0xc
mov dword [ebp - 8], eax
test eax, eax
je 0x1001de71
mov edx, dword [ebp - 0x14]
lea ecx, [eax + 1]
sub edx, ecx
push edx
push 0x5b
push ecx
call fcn.10070a10
mov ecx, eax
add esp, 0xc
test ecx, ecx
je 0x1001de71
mov eax, dword [ebp - 8]
mov byte [eax], 0
jmp 0x1001de78
mov esi, str.Window
mov ecx, ebx
mov ebx, dword [0x10124700]
lea eax, [ecx + 1]
mov cl, byte [esi]
inc esi
mov dword [ebp - 0x14], eax
or eax, 0xffffffff
test cl, cl
je 0x1001debf
or ebx, 0xffffffff
cmp cl, 0x23
jne 0x1001dea0
cmp byte [esi], cl
jne 0x1001dea0
cmp byte [esi + 1], cl
cmove eax, ebx
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10096e08]
test cl, cl
jne 0x1001de91
mov ebx, dword [0x10124700]
mov edx, dword [ebx + 0x2cf4]
xor ecx, ecx
not eax
test edx, edx
jle 0x1001dee0
mov esi, dword [ebx + 0x2cfc]
cmp dword [esi + 4], eax
je 0x1001dee9
inc ecx
add esi, 0x18
cmp ecx, edx
jl 0x1001ded3
xor esi, esi
xor ecx, ecx
mov dword [ebp - 8], ecx
jmp 0x1001df1c
test esi, esi
je 0x1001dee2
push dword [ebp - 0x14]
mov eax, dword [esi + 8]
push esi
push dword [ebp - 0xc]
call eax
mov ecx, eax
add esp, 0xc
mov dword [ebp - 8], ecx
jmp 0x1001df1c
test esi, esi
je 0x1001df1f
test ecx, ecx
je 0x1001df1f
mov eax, dword [esi + 0xc]
push ebx
push ecx
push esi
push dword [ebp - 0xc]
call eax
mov ecx, dword [ebp - 8]
add esp, 0x10
mov edx, dword [ebp - 4]
lea ebx, [edi + 1]
cmp ebx, edx
jb 0x1001dde0
mov ecx, dword [ebp - 0x10]
pop edi
pop esi
pop ebx
test ecx, ecx
je 0x1001df43
mov eax, dword [0x10124700]
test eax, eax
je 0x1001df43
dec dword [eax + 0x370]
push ecx
call fcn.10078b01
mov eax, dword [ebp - 0xc]
add esp, 4
mov byte [eax + 0x2ce0], 1
mov esp, ebp
pop ebp
ret
inc ebx
jmp 0x1001dde0
Function at 0x1005ddd0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [0x100b7018]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [0x10124700]
push edi
mov dword [ebp - 0x10], edx
mov edx, dword [ebp + 0xc]
mov eax, dword [esi + 0x199c]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp + 8]
mov byte [eax + 0x7c], 1
mov edi, dword [esi + 0x199c]
cmp byte [edi + 0x7f], 0
je 0x1005de1e
xor al, al
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1006e641
mov esp, ebp
pop ebp
ret
push edx
push ecx
lea ebx, [esi + 0x2f2c]
mov edx, 0xc01
push ecx
mov ecx, ebx
call fcn.1000afb0
add esp, 0xc
test ebx, ebx
je 0x1005de4f
cmp eax, 0xffffffff
je 0x1005de46
cmp eax, 0xc01
jl 0x1005de4b
mov eax, 0xc00
mov byte [eax + ebx], 0
mov ecx, dword [edi + 0x1cc]
add esi, 0x2f2c
add eax, esi
lea esi, [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 8], eax
mov eax, dword [edi + 0x1c4]
mov edi, 4
mov ecx, dword [ecx + eax*4 - 4]
not ecx
nop word [eax + eax]
movzx eax, byte [esi]
lea esi, [esi + 1]
movzx edx, cl
xor edx, eax
shr ecx, 8
xor ecx, dword [edx*4 + 0x10096e08]
sub edi, 1
jne 0x1005de80
mov eax, dword [0x10124700]
not ecx
cmp dword [eax + 0x19bc], ecx
jne 0x1005deaf
mov dword [eax + 0x19c4], ecx
cmp dword [eax + 0x19c0], ecx
jne 0x1005debe
mov byte [eax + 0x19d0], 1
push dword [ebp - 0xc]
mov edx, dword [ebp - 0x10]
push ebx
call fcn.1005dee0
mov ecx, dword [ebp - 4]
add esp, 8
xor ecx, ebp
pop edi
pop esi
pop ebx
call fcn.1006e641
mov esp, ebp
pop ebp
ret

Function at 0x10062ad0
Capabilities:
Hash data with crc32

Disassembly:
test dword [ecx + 0x50], 0x100000
push esi
push edi
mov edi, edx
je 0x10062b40
mov cl, byte [edi]
lea esi, [edi + 1]
or eax, 0xffffffff
test cl, cl
je 0x10062b18
or edi, 0xffffffff
nop dword [eax]
cmp cl, 0x23
jne 0x10062aff
cmp byte [esi], cl
jne 0x10062aff
cmp byte [esi + 1], cl
cmove eax, edi
movzx edx, al
movzx ecx, cl
xor edx, ecx
shr eax, 8
mov cl, byte [esi]
inc esi
xor eax, dword [edx*4 + 0x10096e08]
test cl, cl
jne 0x10062af0
mov ecx, dword [0x10124700]
not eax
cmp dword [ecx + 0x19bc], eax
jne 0x10062b2e
mov dword [ecx + 0x19c4], eax
cmp dword [ecx + 0x19c0], eax
jne 0x10062b85
pop edi
mov byte [ecx + 0x19d0], 1
pop esi
ret
mov esi, dword [0x10124700]
xor edx, edx
mov eax, dword [esi + 0x199c]
mov ecx, dword [eax + 0x1c4]
mov eax, dword [eax + 0x1cc]
push dword [eax + ecx*4 - 4]
mov ecx, edi
call fcn.1000c9a0
add esp, 4
cmp dword [esi + 0x19bc], eax
jne 0x10062b76
mov dword [esi + 0x19c4], eax
cmp dword [esi + 0x19c0], eax
jne 0x10062b85
mov byte [esi + 0x19d0], 1
pop edi
pop esi
ret
Function at 0x1007903c
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.1006f610
mov eax, dword [0x100b7018]
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.1007f094
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1007907e
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x100791da
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1008ad80
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 + 0x101242b8]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.10081549
mov ecx, dword [esi*4 + 0x101242b8]
add esp, 0x14
mov dword [ebp - 0x1010], eax
mov eax, edx
mov edx, dword [ebp - 0x1010]
mov dword [ebp - 0x101c], eax
cmp edx, dword [ecx + edi + 0x20]
jne 0x100791d3
cmp eax, dword [ecx + edi + 0x24]
jne 0x100791d3
push 0
lea eax, [ebp - 0x1014]
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
push dword [ecx + edi + 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x100791d3
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10081549
add esp, 0x14
test edx, edx
jl 0x100791d3
jg 0x10079149
test eax, eax
jb 0x100791d3
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x100791d3
jl 0x10079163
cmp dword [ebp - 0x1008], eax
ja 0x100791d3
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x10079181
test ebx, ebx
je 0x100791ba
cmp ecx, edi
jae 0x100791ba
mov al, byte [ecx]
cmp al, 0xd
jne 0x1007919b
lea eax, [edi - 1]
cmp ecx, eax
jae 0x100791a7
cmp byte [ecx + 1], 0xa
jne 0x100791a7
inc ecx
jmp 0x100791a7
movzx eax, al
movsx eax, byte [eax + 0x100b7328]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x10079181
cmp edx, ebx
jne 0x10079181
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x100791d8
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.1006e641
leave
ret

Function at 0x1007c6ac
Capabilities:
Parse pe header

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
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 + 0x101242b8]
mov dword [ebp - 0xc], ecx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x14], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10081605
cmp byte [ebx], 0xa
jne 0x10081605
or byte [edi + eax + 0x28], 4
jmp 0x1008160a
and byte [edi + eax + 0x28], 0xfb
add ecx, ebx
mov eax, ebx
mov dword [ebp - 0x10], ecx
mov esi, ebx
mov dword [ebp - 8], eax
cmp ebx, ecx
jae 0x10081709
mov dl, byte [eax]
cmp dl, 0x1a
je 0x100816ec
inc eax
cmp dl, 0xd
je 0x10081636
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0x1008165c
cmp eax, ecx
jae 0x1008166a
mov cl, byte [eax]
xor eax, eax
cmp cl, 0xa
sete al
inc eax
add dword [ebp - 8], eax
cmp cl, 0xa
sete al
dec al
and al, 3
add al, 0xa
mov byte [esi], al
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 0x10]
xor edx, edx
inc edx
add esi, edx
cmp eax, ecx
jb 0x1008161e
jmp 0x10081709
push 0
lea eax, [ebp - 0x10]
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 0x100816e7
cmp dword [ebp - 0x10], 0
je 0x100816e7
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0x101242b8]
test byte [eax + edi + 0x28], 0x48
je 0x100816c1
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x100816ac
mov byte [esi], dl
jmp 0x100816bd
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x101242b8]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x10081709
cmp byte [ebp - 1], 0xa
jne 0x100816d0
cmp esi, ebx
jne 0x100816d0
mov byte [esi], 0xa
jmp 0x10081708
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.10081567
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x10081709
mov byte [esi], 0xd
jmp 0x10081708
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0x101242b8]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x10081706
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x10081709
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x10081712
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
mov ecx, eax
push ebx
mov ebx, dword [ebp + 0xc]
and eax, 0x3f
push esi
sar ecx, 6
push edi
imul edi, eax, 0x38
mov dword [ebp - 8], ecx
mov eax, dword [ecx*4 + 0x101242b8]
push 0xa
pop edx
mov dword [ebp - 0x18], edx
mov ecx, dword [eax + edi + 0x18]
mov dword [ebp - 0x1c], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x10081758
cmp word [ebx], dx
jne 0x10081758
or byte [eax + edi + 0x28], 4
jmp 0x1008175d
and byte [eax + edi + 0x28], 0xfb
lea edx, [ebx + ecx*2]
mov eax, ebx
mov dword [ebp - 0xc], edx
mov esi, ebx
mov dword [ebp - 4], eax
cmp ebx, edx
jae 0x100818c0
mov dword [ebp - 0x10], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x14], edx
mov edx, dword [ebp - 0xc]
cmp ecx, 0x1a
je 0x100818a0
add eax, 2
cmp cx, word [ebp - 0x10]
je 0x1008179e
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x100817d4
cmp eax, edx
jae 0x100817e2
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x18]
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 - 0xc]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
push 2
pop ecx
add esi, ecx
cmp eax, edx
jb 0x10081779
jmp 0x100818c0
push 0
lea eax, [ebp - 0x18]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x1c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x1008189b
cmp dword [ebp - 0x18], 0
je 0x1008189b
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0x101242b8]
test byte [eax + edi + 0x28], 0x48
je 0x10081871
lea eax, [esi + 2]
mov dword [ebp - 0x1c], eax
mov ax, word [ebp - 4]
pop ecx
mov word [ebp - 2], ax
cmp ax, cx
jne 0x10081835
mov word [esi], cx
jmp 0x1008186c
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0x101242b8]
mov dx, word [ebp - 2]
shr ecx, 8
push 0xa
mov byte [eax + edi + 0x2a], dl
mov edx, dword [ebp - 8]
mov eax, dword [edx*4 + 0x101242b8]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0x101242b8]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0x100818c0
pop eax
cmp word [ebp - 4], ax
jne 0x10081881
cmp esi, ebx
jne 0x10081881
mov word [esi], ax
jmp 0x100818bd
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.10081567
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0x100818c0
push 0xd
pop eax
jmp 0x1008187c
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0x101242b8]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0x100818ba
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0x100818c0
mov word [esi], cx
add esi, 2
sub esi, ebx
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1008244e
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10093ea8
push 0x10093ea0
push str.FlsAlloc
push 0x1f
call fcn.1008230d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10082482
push dword [ebp + 8]
mov ecx, esi
call dword [0x1008f1f4]
call esi
jmp 0x10082488
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x100824cc
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10093eb8
push 0x10093eb0
push str.FlsGetValue
push 0x21
call fcn.1008230d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10082503
push dword [ebp + 8]
mov ecx, esi
call dword [0x1008f1f4]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0x1008250b
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x10093ec0
push 0x10093eb8
push str.FlsSetValue
push 0x22
call fcn.1008230d
mov esi, eax
add esp, 0x10
test esi, esi
je 0x10082545
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0x1008f1f4]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0x10084b7e
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 0x10084c1b
push ebx
push esi
call fcn.10084b47
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.10083ae5
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10084bc8
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10084c1a
push edi
push eax
call fcn.100801ed
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10084be8
call fcn.1007f05a
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10084c19
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10083ae5
add esp, 0x20
test eax, eax
jne 0x10084c07
push edi
call fcn.1007f05a
jmp 0x10084c0f
push ebx
call fcn.1007f05a
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 0x10088fc1
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]
mov edi, dword [ebp + 0x14]
push dword [ebp + 0xc]
push ebx
call fcn.10088f3d
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x10089130
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x10089130
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x100890e5
jg 0x1008901d
test eax, eax
je 0x100890db
push 1
push 0x1000
call fcn.1008217d
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x10089040
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x100890d2
push 0x8000
push ebx
call fcn.10088e6e
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0x10089069
jg 0x10089064
cmp ecx, 0x1000
jb 0x10089069
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1007fc52
add esp, 0x10
cmp eax, 0xffffffff
je 0x100890ae
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 0x10089064
jl 0x10089095
test ecx, ecx
jne 0x10089056
push dword [ebp - 0xc]
push ebx
call fcn.10088e6e
push esi
call fcn.1007f05a
add esp, 0xc
xor ebx, ebx
jmp 0x1008913e
cmp byte [edi + 0x24], 0
je 0x100890c5
cmp dword [edi + 0x20], 5
jne 0x100890c5
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x100890d0
mov ebx, dword [edi + 0x18]
jmp 0x100890d2
xor ebx, ebx
push esi
call fcn.1007f05a
pop ecx
jmp 0x1008913e
test ecx, ecx
jg 0x100890a7
jl 0x100890e5
test eax, eax
jae 0x100890a7
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.10081567
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x10089105
cmp byte [edi + 0x1c], 0
je 0x100890a7
jmp 0x10089136
push ebx
call fcn.10086dce
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x100890a7
call dword [sym.imp.KERNEL32.dll_GetLastError]
push 0xd
mov byte [edi + 0x24], 1
mov dword [edi + 0x20], eax
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0x1008913e
cmp byte [edi + 0x1c], 0
je 0x1008913b
mov ebx, dword [edi + 0x18]
jmp 0x1008913e
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.10081567
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1008ac80
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x1008acad
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1008acad
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0xae174b
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, ecx
mov eax, dword [edi + 0x44]
xor ebx, ebx
cmp eax, ebx
je 0xae17a6
cmp eax, 0xffffffff
je 0xae17a6
cmp dword [ebp + 8], ebx
je 0xae17a6
push esi
push dword [ebp + 8]
mov dword [ebp - 4], ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edi, dword [edi + 0x44]
push ebx
mov esi, eax
lea eax, [ebp - 4]
push eax
add esi, esi
push esi
push dword [ebp + 8]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0xaef302
cmp esi, dword [ebp - 4]
jne 0xaef31d
pop esi
pop edi
mov eax, ebx
pop ebx
leave
ret 4
mov ebx, 0x80070057
jmp 0xae179e

Function at 0xae227c
Capabilities:
Query environment variable

Disassembly:
push 0x20
mov eax, 0xaf621c
call fcn.00ae1350
xor ebx, ebx
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
mov dword [ebp - 0x24], ebx
push ebx
push 0x20019
push dword [0xafb458]
lea ecx, [ebp - 0x2c]
push 0x80000002
mov dword [ebp - 4], ebx
mov dword [ebp - 0x18], ebx
call fcn.00ae2097
test eax, eax
jne 0xae23c4
lea eax, [ebp - 0x20]
push eax
push dword [0xafb45c]
lea ecx, [ebp - 0x2c]
push ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x14], ebx
mov dword [ebp - 0x20], ebx
call fcn.00ae23dc
test eax, eax
jne 0xae23c4
mov eax, dword [ebp - 0x20]
xor ecx, ecx
push 2
add eax, eax
pop edx
mul edx
seto cl
mov byte [ebp - 4], 1
neg ecx
or ecx, eax
push ecx
call fcn.00ae13e0
mov esi, eax
pop ecx
mov dword [ebp - 0x1c], esi
cmp esi, ebx
je 0xae23c4
lea eax, [ebp - 0x20]
push eax
push dword [0xafb45c]
lea ecx, [ebp - 0x2c]
push esi
call fcn.00ae23dc
test eax, eax
jne 0xae23bb
push ebx
push ebx
push esi
mov esi, dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
call esi
mov edi, eax
cmp edi, ebx
je 0xae23bb
xor ecx, ecx
push 2
pop edx
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ae13e0
pop ecx
mov dword [ebp - 0x14], eax
cmp eax, ebx
je 0xae23bb
push edi
push eax
push dword [ebp - 0x1c]
call esi
mov esi, eax
cmp esi, ebx
je 0xae23b2
cmp dword [ebp + 8], ebx
je 0xaeea08
push dword [0xafb460]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea edi, [eax + esi + 1]
xor ecx, ecx
push 2
pop edx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00ae13e0
pop ecx
mov dword [ebp - 0x18], eax
cmp eax, ebx
je 0xae23b2
push dword [ebp - 0x14]
push esi
push eax
call fcn.00ae21cb
push dword [0xafb460]
push edi
push dword [ebp - 0x18]
call fcn.00ae2436
push dword [ebp - 0x14]
call fcn.00ae13c0
pop ecx
push dword [ebp - 0x1c]
call fcn.00ae13c0
pop ecx
lea ecx, [ebp - 0x2c]
call fcn.00ae1f10
mov eax, dword [ebp - 0x18]
call fcn.00ae1390
ret 4