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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1cc
mov eax, dword [0x4514c8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
push 4
push 0x1000
push 0x1230
mov edi, ecx
mov dword [ebp - 0x1cc], eax
push 0
push edi
call dword [0x432070]
mov esi, eax
mov dword [ebp - 0x1c8], esi
test esi, esi
je 0x300477a8
push 0x40
lea eax, [ebp - 0xc8]
mov dword [ebp - 0x1c4], 0
push 0
push eax
call fcn.3004d8de
mov ebx, dword [0x43202c]
add esp, 0xc
mov eax, 0x5a4d
mov dword [ebp - 0x8c], 0x40
mov word [ebp - 0xc8], ax
lea eax, [ebp - 0x1c4]
push eax
push 0x40
lea eax, [ebp - 0xc8]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x300477a8
cmp dword [ebp - 0x1c4], 0x40
jne 0x300477a8
push 0xf8
lea eax, [ebp - 0x1c0]
add esi, 0x40
push 0
push eax
call fcn.3004d8de
add esp, 0xc
mov dword [ebp - 0x1c0], 0x4550
mov eax, 1
mov dword [ebp - 0x1ac], 0x200000e0
mov word [ebp - 0x1ba], ax
mov eax, 0x10b
mov word [ebp - 0x1a8], ax
lea eax, [ebp - 0x1c4]
push eax
push 0xf8
lea eax, [ebp - 0x1c0]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x300477a8
cmp dword [ebp - 0x1c4], 0xf8
jne 0x300477a8
mov eax, dword [0x44b2dc]
xorps xmm0, xmm0
movdqu xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x44], eax
add esi, 0xf8
mov eax, dword [0x44b2e0]
mov dword [ebp - 0x40], eax
mov eax, esi
sub eax, dword [ebp - 0x1c8]
add eax, 0x28
movq qword [ebp - 0x24], xmm0
mov dword [ebp - 0x38], eax
lea eax, [ebp - 0x1c4]
push eax
push 0x28
lea eax, [ebp - 0x44]
push eax
push esi
movdqu xmmword [ebp - 0x34], xmm0
push edi
mov dword [ebp - 0x34], 0x10d0
call ebx
test eax, eax
je 0x300477a8
cmp dword [ebp - 0x1c4], 0x28
jne 0x300477a8
push 0x40
lea eax, [ebp - 0x88]
add esi, 0x28
push 0
push eax
call fcn.3004d8de
add esp, 0xc
mov dword [ebp - 0x88], 0x40
lea eax, [ebp - 0x1c4]
mov dword [ebp - 0x84], 0x727444
mov dword [ebp - 0x80], 0x40
mov dword [ebp - 0x7c], 0x10d0
push eax
push 0x40
lea eax, [ebp - 0x88]
push eax
push esi
push edi
call ebx
test eax, eax
je 0x300477a8
cmp dword [ebp - 0x1c4], 0x40
jne 0x300477a8
lea eax, [ebp - 0x1c4]
xorps xmm0, xmm0
push eax
push 0x18
movdqu xmmword [ebp - 0x1c], xmm0
lea eax, [ebp - 0x1c]
add esi, 0x40
movq qword [ebp - 0xc], xmm0
movdqu xmm0, xmmword [0x44af5c]
push eax
push esi
push edi
mov dword [ebp - 0x1c], 0x1090
mov dword [ebp - 0x18], 0
movdqu xmmword [ebp - 0x14], xmm0
call ebx
test eax, eax
je 0x300477a8
cmp dword [ebp - 0x1c4], 0x18
jne 0x300477a8
lea eax, [ebp - 0x1c4]
push eax
push 0x1078
push dword [ebp - 0x1cc]
lea ecx, [esi + 0x18]
push ecx
push edi
call ebx
test eax, eax
je 0x300477a8
cmp dword [ebp - 0x1c4], 0x1078
jne 0x300477a8
mov eax, 1
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.3004bd1a
mov esp, ebp
pop ebp
ret 8
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.3004bd1a
mov esp, ebp
pop ebp
ret 8
Function at 0x300478de
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x44f4e0
push 0x423e00
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
push edi
mov eax, dword [0x4514c8]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov edx, ecx
mov dword [ebp - 0x20], edx
test edx, edx
jne 0x3004793c
push ecx
call dword [0x432064]
mov edx, eax
mov dword [ebp - 0x20], eax
test edx, edx
jne 0x3004793c
push 0xc0
call dword [0x432084]
jmp 0x30047ace
mov dword [ebp - 4], 0
mov eax, 0x5a4d
cmp word [edx], ax
je 0x30047957
push 0xc1
jmp 0x30047ac1
mov eax, dword [edx + 0x3c]
cmp dword [eax + edx], 0x4550
je 0x3004796d
push 0xbf
jmp 0x30047ac1
cmp word [eax + edx + 0x14], 0
je 0x30047abc
mov eax, dword [eax + edx + 0x80]
test eax, eax
je 0x30047a9d
lea ebx, [eax + edx]
mov dword [ebp - 0x1c], ebx
test ebx, ebx
je 0x30047abc
jmp 0x3004799e
mov ecx, dword [ebx]
test ecx, ecx
je 0x30047a62
mov eax, dword [ebx + 0xc]
test eax, eax
je 0x30047abc
lea esi, [eax + edx]
test esi, esi
je 0x30047abc
lea eax, [ecx + edx]
mov dword [ebp - 0x28], eax
mov eax, dword [ebx + 0x10]
test eax, eax
je 0x300479cf
add eax, edx
jmp 0x300479d1
xor eax, eax
mov dword [ebp - 0x24], eax
mov ecx, dword [eax]
call fcn.300477ce
mov ecx, 0x4115e0
test ecx, ecx
je 0x300479f0
push esi
push eax
push edi
call fcn.30042dbe
test eax, eax
je 0x30047a62
xor esi, esi
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x28]
test eax, eax
je 0x30047a4b
mov edi, edi
mov ecx, dword [eax + esi*4]
test ecx, ecx
je 0x30047a48
xor eax, eax
test ecx, ecx
js 0x30047a19
add ecx, 2
je 0x30047a17
mov eax, dword [ebp - 0x20]
add eax, ecx
jmp 0x30047a19
xor eax, eax
mov ecx, 0x411640
test ecx, ecx
je 0x30047a59
mov ecx, dword [ebp - 0x24]
mov ebx, dword [ecx + esi*4]
test edi, edi
je 0x30047a48
test eax, eax
je 0x30047a48
cmp byte [edi], 0
je 0x30047a59
push dword [edi + 0xc]
push eax
call fcn.3004bdea
add esp, 8
test eax, eax
jne 0x30047a59
mov dword [edi + 4], ebx
mov ebx, dword [ebp - 0x1c]
add ebx, 0x14
mov dword [ebp - 0x1c], ebx
mov edx, dword [ebp - 0x20]
jmp 0x3004799e
inc esi
mov dword [ebp - 0x2c], esi
mov eax, dword [ebp - 0x28]
jmp 0x300479fe
mov eax, 0x4115e0
test eax, eax
je 0x30047a75
push 0
push 0
push edi
call fcn.30042dbe
push 0
call dword [0x432084]
mov dword [ebp - 4], 0xfffffffe
mov eax, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
mov dword [ebp - 0x1c], 0
jmp 0x30047abc
push 0xc0
call dword [0x432084]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
Function at 0x517040
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, 0x21000
lea edi, [esi - 0xc0000]
push edi
jmp 0x51705a
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x517061
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517050
mov eax, 1
add ebx, ebx
jne 0x517073
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x517084
jne 0x5170a3
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x5170a3
dec eax
add ebx, ebx
jne 0x517090
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x517068
add ebx, ebx
jne 0x51709f
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x5170f5
xor ecx, ecx
sub eax, 3
jb 0x5170bb
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x51712a
sar eax, 1
mov ebp, eax
jmp 0x5170c6
add ebx, ebx
jne 0x5170c6
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517094
inc ecx
add ebx, ebx
jne 0x5170d4
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x517094
add ebx, ebx
jne 0x5170e1
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x5170d6
jne 0x5170f2
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x5170d6
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x517114
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x517106
jmp 0x517056
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x517114
add edi, ecx
jmp 0x517056
pop esi
mov edi, esi
mov ecx, 0x3ea9
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x517132
cmp byte [edi], 0x11
jne 0x517132
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x517137
lea edi, [esi + 0x110000]
mov eax, dword [edi]
or eax, eax
je 0x5171af
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x15521c]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x155398]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x517164
mov ecx, edi
jns 0x517193
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x15539c]
or eax, eax
je 0x5171a9
mov dword [ebx], eax
add ebx, 4
jmp 0x517181
call dword [esi + 0x1553ac]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x5171e0
cmp al, 0xef
ja 0x5171d3
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x5171b5
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x5171c2
mov ebp, dword [esi + 0x1553a0]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x22f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x517214
sub esp, 0xffffff80
jmp 0x42800a
Function at 0x1000c9f1
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1000ca4c
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1000ca2d
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1000ca4a
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10011e0e
mov dword [eax], 1
jmp 0x1000ca22
jmp 0x1000ca6a
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
movzx eax, byte [eax]
test eax, eax
je 0x1000ca6a
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov esp, ebp
pop ebp
ret

Function at 0x1000cde0
Capabilities:
Get memory capacity

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1000cdf8
push 0
call dword [sym.imp.KERNEL32.dll_GlobalMemoryStatus]
jmp 0x1000ce40
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1000ce26
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1000ce40
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10011e0e
or dword [eax], 0xffffffff
jmp 0x1000ce1b
mov esp, ebp
pop ebp
ret
Function at 0x1000e492
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x38
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x1000e5dd
mov dword [ebp - 8], 3
mov dword [ebp - 0x28], 7
mov dword [ebp - 4], 0
jmp 0x1000e4c2
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
jge 0x1000e4d5
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x38], 0xfffffff9
jmp 0x1000e4bb
mov dword [ebp - 4], 0
jmp 0x1000e4e5
mov eax, dword [ebp - 4]
inc eax
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 1
jge 0x1000e4f8
mov eax, dword [ebp - 4]
mov dword [ebp + eax*4 - 0x24], 0xfffffffb
jmp 0x1000e4de
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x38], 0
jne 0x1000e57f
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x38]
neg eax
push 4
pop ecx
imul ecx, ecx, 0
imul eax, dword [ebp + ecx - 0x38]
test eax, eax
jne 0x1000e547
mov dword [ebp - 8], 0xda0bdbd
push 4
pop eax
imul eax, eax, 0
mov ecx, dword [ebp - 8]
mov dword [ebp + eax - 0x24], ecx
push 4
pop eax
imul eax, eax, 0
cmp dword [ebp + eax - 0x38], 0
jne 0x1000e547
and dword [ebp - 0xc], 0
jmp 0x1000e54e
mov dword [ebp - 0xc], 1
push 4
pop eax
shl eax, 0
mov eax, dword [ebp + eax - 0x38]
cmp eax, dword [ebp - 0xc]
je 0x1000e566
mov dword [ebp - 0x10], 1
jmp 0x1000e56a
and dword [ebp - 0x10], 0
push 4
pop eax
shl eax, 0
mov ecx, dword [ebp - 0x10]
sub ecx, dword [ebp + eax - 0x38]
jne 0x1000e57f
and dword [ebp - 0x14], 0
jmp 0x1000e586
mov dword [ebp - 0x14], 1
imul eax, dword [ebp - 0x14], 0x6eda
push 4
pop ecx
imul ecx, ecx, 0
cmp eax, dword [ebp + ecx - 0x38]
jge 0x1000e5a2
mov dword [ebp - 0x18], 1
jmp 0x1000e5a6
and dword [ebp - 0x18], 0
push 4
pop eax
imul eax, eax, 0
mov eax, dword [ebp + eax - 0x38]
cmp dword [ebp - 0x18], eax
jl 0x1000e5be
mov dword [ebp - 0x1c], 1
jmp 0x1000e5c2
and dword [ebp - 0x1c], 0
cmp dword [ebp - 0x1c], 9
jne 0x1000e5d1
mov dword [ebp - 0x20], 1
jmp 0x1000e5d5
and dword [ebp - 0x20], 0
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x28], eax
jmp 0x1000e5f9
mov eax, dword [ebp + 8]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x30]
movzx eax, byte [eax]
test eax, eax
je 0x1000e5f9
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
mov esp, ebp
pop ebp
ret
Function at 0x10011b7a
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 4], 0
lea eax, [ebp - 0x10]
push eax
push 1
push 0xccb
push 0x6269
lea eax, [ebp + 8]
push eax
call fcn.10011986
add esp, 0x14
mov eax, dword [ebp - 0x10]
movzx eax, word [eax]
cmp eax, 0x5a4d
je 0x10011bb4
xor eax, eax
jmp 0x10011cee
mov eax, dword [ebp - 0x10]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x3c]
mov dword [ebp - 8], ecx
mov eax, dword [ebp - 8]
cmp dword [eax], 0x4550
je 0x10011bd2
xor eax, eax
jmp 0x10011cee
push 1
lea eax, [ebp - 8]
push eax
push 0x2eba
push 0x6ccb
lea eax, [ebp - 0xc]
push eax
call fcn.100119f3
add esp, 0x14
cmp dword [ebp - 0xc], 0
jne 0x10011bfb
xor eax, eax
jmp 0x10011cee
lea eax, [ebp - 0x24]
push eax
push 1
push 0x10e
push dword [ebp - 8]
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 0x10]
push 0x380c
call fcn.100117ef
add esp, 0x20
push dword [ebp + 8]
push dword [ebp - 4]
push dword [ebp - 8]
push 0
call fcn.1000cefa
add esp, 0x10
push 1
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x1dea
lea eax, [ebp - 0xc]
push eax
call fcn.10011a79
add esp, 0x14
cmp dword [ebp - 0x14], 0
je 0x10011c6c
push 1
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x14]
push eax
push 0x6e1b
call fcn.10011af6
add esp, 0x10
push dword [ebp - 4]
call fcn.10010081
pop ecx
test eax, eax
jne 0x10011c7d
xor eax, eax
jmp 0x10011cee
push 0x5515
push 0x65e2
push dword [ebp - 4]
push 0
call fcn.1000acc8
add esp, 0x10
mov eax, dword [ebp - 4]
mov eax, dword [eax]
cmp dword [eax + 0x28], 0
je 0x10011cd6
mov eax, dword [ebp - 4]
mov eax, dword [eax]
mov ecx, dword [ebp - 0xc]
add ecx, dword [eax + 0x28]
mov dword [ebp - 0x18], ecx
jne 0x10011cb3
xor eax, eax
jmp 0x10011cee
push 0
push 1
push 0xdeadbeef
call dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x10011ccc
xor eax, eax
jmp 0x10011cee
mov eax, dword [ebp - 4]
mov dword [eax + 0x10], 1
mov eax, dword [ebp - 4]
cmp dword [eax + 0x10], 0
je 0x10011ce7
mov eax, dword [ebp - 4]
mov dword [ebp - 0x1c], eax
jmp 0x10011ceb
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x1c]
mov esp, ebp
pop ebp
ret
Function at 0x1001d2da
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 8]
test eax, eax
je 0x1001d2f9
push 0x1ac4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x1001d344
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x1001d327
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x1001d344
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10011e0e
mov dword [eax], 0x49f7fae0
jmp 0x1001d31c
mov esp, ebp
pop ebp
ret

Function at 0x1001fe98
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x1001fef3
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x1001fed4
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x1001fef1
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10011e0e
mov dword [eax], 0xfffffffb
jmp 0x1001fec9
jmp 0x1001ff27
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x1001ff27
push 0
push 0x162
push 0x8ef
push 0xb8c
push 0x1a7e
push 0x1ded
push 0x20c0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeA]
mov esp, ebp
pop ebp
ret
Function at 0x100266a7
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x100266cd
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x100266cb
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
jmp 0x10026715
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 8]
mov dword [eax], 0
jmp 0x100266fb
mov eax, dword [ebp - 8]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 8]
mov dword [ecx], eax
mov eax, dword [ebp - 8]
cmp dword [eax], 2
jge 0x10026715
mov eax, dword [ebp - 8]
push dword [eax]
mov ecx, dword [ebp - 0x14]
call fcn.10011e0e
and dword [eax], 0
jmp 0x100266f0
mov esp, ebp
pop ebp
ret
Function at 0x10026bdf
Capabilities:
Create pipe

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10026c00
push 0x2472
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreatePipe]
jmp 0x10026c48
mov eax, dword [ebp + 0xc]
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x10026c2e
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x10026c48
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x10]
call fcn.10011e0e
or dword [eax], 0xffffffff
jmp 0x10026c23
mov esp, ebp
pop ebp
ret
Function at 0x1002733f
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10027474
mov eax, dword [ebp + 8]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp + 0x20]
mov dword [ebp - 0x28], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x2c], eax
mov eax, dword [ebp + 0x1c]
mov dword [ebp - 0x30], eax
mov eax, dword [ebp + 0x24]
mov dword [ebp - 0x34], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x20]
mov dword [ebp - 0x4c], eax
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x48], eax
mov eax, dword [ebp - 0x28]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x30]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x34]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x38]
mov dword [ebp - 0x44], eax
push 0
mov ecx, dword [ebp - 8]
call fcn.10011e0e
cmp dword [eax], 0x8073
jge 0x100273c1
mov dword [ebp - 0x3c], 1
jmp 0x100273c5
and dword [ebp - 0x3c], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.10011e0e
mov eax, dword [ebp - 0xc]
mov eax, dword [eax]
mov dword [ebp - 0x50], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
push 0
mov ecx, dword [ebp - 8]
call fcn.10011e0e
imul esi, dword [eax]
neg esi
push 0
mov ecx, dword [ebp - 8]
call fcn.10011e0e
sub esi, dword [eax]
cmp esi, 0xb4837182
je 0x10027408
mov dword [ebp - 0x10], 1
jmp 0x1002740c
and dword [ebp - 0x10], 0
push 0
mov ecx, dword [ebp - 8]
call fcn.10011e0e
mov ecx, dword [ebp - 0x10]
sub ecx, dword [eax]
mov eax, dword [ebp - 0x14]
mov dword [eax], ecx
mov eax, dword [ebp - 0x14]
mov esi, dword [eax]
neg esi
push 0
mov ecx, dword [ebp - 0x40]
call fcn.10011e0e
cmp dword [eax], esi
jne 0x1002743e
mov dword [ebp - 0x18], 1
jmp 0x10027442
and dword [ebp - 0x18], 0
mov eax, dword [ebp - 0x44]
mov eax, dword [eax]
cmp dword [ebp - 0x18], eax
jne 0x10027455
mov dword [ebp - 0x1c], 1
jmp 0x10027459
and dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x48]
mov ecx, dword [ebp - 0x1c]
mov dword [eax], ecx
push 0
mov ecx, dword [ebp - 8]
call fcn.10011e0e
mov ecx, dword [ebp - 0x4c]
mov eax, dword [eax]
mov dword [ecx], eax
jmp 0x10027491
mov byte [ebp - 1], 0
movzx eax, byte [ebp - 1]
test eax, eax
je 0x10027491
push 0
push 0xda4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetTempFileNameW]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x10027a42
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x10027a5d
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
jmp 0x10027a86
mov eax, dword [ebp + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov esi, dword [eax]
push 2
mov ecx, dword [ebp - 0x10]
call fcn.10011e0e
mov dword [eax], esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10041253
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x10041281
mov eax, dword [ebp + 0x14]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
movzx eax, byte [eax]
test eax, eax
je 0x1004127f
push 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
jmp 0x100412cc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 4]
mov dword [eax], 0
jmp 0x100412af
mov eax, dword [ebp - 4]
mov eax, dword [eax]
inc eax
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
mov eax, dword [ebp - 4]
cmp dword [eax], 2
jge 0x100412cc
mov eax, dword [ebp - 4]
push dword [eax]
mov ecx, dword [ebp - 0x18]
call fcn.10011e0e
mov dword [eax], 0x8146cdea
jmp 0x100412a4
mov esp, ebp
pop ebp
ret

Function at 0x1004137a
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push esi
movzx eax, byte [ebp + 0x18]
test eax, eax
je 0x1004139d
push 0x1ac4
push 0
push 0
call dword [sym.imp.KERNEL32.dll_ExpandEnvironmentStringsW]
jmp 0x10041428
mov eax, dword [ebp + 8]
mov dword [ebp - 0x10], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x10]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x18]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0x20]
mov eax, dword [eax]
mov dword [ebp - 0x28], eax
push 1
mov ecx, dword [ebp - 8]
call fcn.10011e0e
mov eax, dword [ebp - 0x24]
mov dword [eax], 0x2a6add33
mov eax, dword [ebp - 4]
mov esi, dword [eax]
push 1
mov ecx, dword [ebp - 8]
call fcn.10011e0e
sub esi, dword [eax]
mov eax, 0x2a6add33
sub eax, esi
mov ecx, dword [ebp - 4]
mov ecx, dword [ecx]
lea eax, [eax + ecx + 5]
mov ecx, dword [ebp - 4]
cmp eax, dword [ecx]
jl 0x10041419
mov dword [ebp - 0xc], 1
jmp 0x1004141d
and dword [ebp - 0xc], 0
mov eax, dword [ebp - 0xc]
sub eax, 7
mov ecx, dword [ebp - 4]
mov dword [ecx], eax
pop esi
mov esp, ebp
pop ebp
ret