joyce8/EMBER2024-capa huggingface dataset:
Function at 0xd12980
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xd0dda0]
sub esp, 0xb8
test eax, eax
jne 0xd12a2f
push esi
push edi
push 0x40
push eax
mov word [ebp - 0x92], ax
xorps xmm0, xmm0
mov dword [ebp - 0x90], eax
mov dword [ebp - 0x8c], eax
mov dword [ebp - 0x88], eax
mov dword [ebp - 0x84], eax
mov dword [ebp - 0x80], eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
lea eax, [ebp - 0x60]
push eax
movups xmmword [ebp - 0x70], xmm0
call fcn.00d1afb0
xorps xmm0, xmm0
mov word [ebp - 0x94], 1
lea eax, [ebp - 0x94]
push eax
movups xmmword [ebp - 0x20], xmm0
movups xmmword [ebp - 0x10], xmm0
call fcn.00d11d90
add esp, 0x10
lea eax, [ebp - 0xb8]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0xa4]
lea esi, [ebp - 0x94]
mov ecx, 0x25
mov dword [ebp - 0x74], eax
mov edi, 0xd0dda8
mov edx, 0xd0dda0
rep movsd dword es:[edi], dword [esi]
mov ecx, 1
xchg dword [edx], ecx
pop edi
pop esi
mov eax, 0xd0dda8
mov esp, ebp
pop ebp
ret

Function at 0xd15350
Capabilities:
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0xd0de3c]
sub esp, 0x24
nop
test eax, eax
jne 0xd153ab
lea eax, [ebp - 0x24]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [ebp - 0x20]
dec eax
mov ecx, eax
shr ecx, 1
or ecx, eax
mov eax, ecx
shr eax, 2
or eax, ecx
mov ecx, eax
shr ecx, 4
or ecx, eax
mov eax, ecx
shr eax, 8
or eax, ecx
mov ecx, eax
shr ecx, 0x10
or ecx, eax
mov eax, dword [ebp - 8]
inc ecx
mov dword [0xd0de44], eax
mov dword [0xd0de40], ecx
mov eax, 1
mov ecx, 0xd0de3c
xchg dword [ecx], eax
mov edx, dword [0xd0de44]
mov eax, dword [0xd0de40]
mov esp, ebp
pop ebp
ret
Function at 0xd155e0
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
imul esi, dword [ebp + 8], 0x2c
push edi
add esi, dword [0xd0ea80]
mov eax, dword [esi]
mov cl, byte [esi + 0x14]
and cl, 1
lea edi, [eax - 5]
cmove edi, eax
movzx eax, cl
lea ecx, [ebp + 8]
push ecx
push 0x40
lea eax, [eax*2 + 5]
push eax
push edi
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0xd15628
pop edi
mov eax, 0xa
pop esi
mov esp, ebp
pop ebp
ret
push ebx
mov ebx, dword [ebp + 0xc]
test ebx, ebx
je 0xd1564d
mov byte [edi], 0xe9
mov eax, dword [esi + 4]
sub eax, edi
sub eax, 5
mov dword [edi + 1], eax
test byte [esi + 0x14], 1
je 0xd1566e
mov eax, dword [esi]
mov word [eax], 0xf9eb
jmp 0xd1566e
mov eax, dword [esi + 0xc]
test byte [esi + 0x14], 1
mov dword [edi], eax
je 0xd15668
mov ax, word [esi + 0x10]
mov word [edi + 4], ax
mov al, byte [esi + 0x12]
mov byte [edi + 6], al
jmp 0xd1566e
mov al, byte [esi + 0x10]
mov byte [edi + 4], al
lea eax, [ebp + 8]
push eax
push dword [ebp + 8]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
push dword [ebp - 4]
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_FlushInstructionCache]
mov cl, bl
shl bl, 2
add cl, cl
xor cl, byte [esi + 0x14]
and cl, 2
xor cl, byte [esi + 0x14]
xor bl, cl
and bl, 4
xor bl, cl
xor eax, eax
mov byte [esi + 0x14], bl
pop ebx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0xd15750
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
push ebx
push 4
mov dword [esi], 0
mov dword [esi + 4], 0
mov dword [esi + 8], 0
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov edi, eax
cmp edi, 0xffffffff
je 0xd158b1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32First
test eax, eax
je 0xd15858
mov ebx, 1
cmp dword [ebp - 0x1c], 0x10
jb 0xd1581c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp dword [ebp - 0x10], eax
jne 0xd1581c
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [ebp - 0x14], eax
je 0xd1581c
mov edx, dword [esi]
test edx, edx
jne 0xd157e8
push 0x200
push edx
mov dword [esi + 4], 0x80
push dword [0xd0de50]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov edx, eax
mov dword [esi], edx
test edx, edx
je 0xd15840
jmp 0xd15810
mov eax, dword [esi + 4]
cmp dword [esi + 8], eax
jb 0xd15810
add eax, eax
mov dword [esi + 4], eax
shl eax, 2
push eax
push edx
push 0
push dword [0xd0de50]
call dword [sym.imp.KERNEL32.dll_HeapReAlloc]
mov edx, eax
test edx, edx
je 0xd15840
mov dword [esi], edx
mov ecx, dword [esi + 8]
mov eax, dword [ebp - 0x14]
mov dword [edx + ecx*4], eax
inc dword [esi + 8]
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x1c], 0x1c
push eax
push edi
call sub.KERNEL32.dll_Thread32Next
test eax, eax
jne 0xd157a3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x12
je 0xd15858
mov eax, dword [esi]
xor ebx, ebx
test eax, eax
je 0xd15858
push eax
push ebx
push dword [0xd0de50]
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov dword [esi], ebx
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test ebx, ebx
je 0xd158b1
cmp dword [esi], 0
je 0xd158a8
xor ebx, ebx
cmp dword [esi + 8], ebx
jbe 0xd158a8
nop
mov eax, dword [esi]
push dword [eax + ebx*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov edi, eax
test edi, edi
je 0xd158a2
push edi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push edi
call fcn.00d15bd0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc ebx
cmp ebx, dword [esi + 8]
jb 0xd15870
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret
pop edi
pop esi
mov eax, 9
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0xd15d10
Capabilities:
Resume thread

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 8]
cmp dword [edi], 0
je 0xd15d60
push esi
xor esi, esi
cmp dword [edi + 8], esi
jbe 0xd15d4f
push ebx
mov eax, dword [edi]
push dword [eax + esi*4]
push 0
push 0x5a
call dword [sym.imp.KERNEL32.dll_OpenThread]
mov ebx, eax
test ebx, ebx
je 0xd15d48
push ebx
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc esi
cmp esi, dword [edi + 8]
jb 0xd15d25
pop ebx
push dword [edi]
push 0
push dword [0xd0de50]
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
pop edi
pop ebp
ret
Function at 0xd15d70
Capabilities:
Allocate or change rwx memory

Disassembly:
mov eax, dword [0xd0ea7c]
test eax, eax
je 0xd15d8c
nop dword [eax]
cmp dword [eax + 4], 0
jne 0xd15ddb
mov eax, dword [eax]
test eax, eax
jne 0xd15d80
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
test eax, eax
je 0xd15de9
push esi
push edi
xor edi, edi
mov dword [eax + 8], 0
lea edx, [eax + 0x20]
lea esi, [edi + 0x20]
mov dword [edx], edi
mov ecx, edx
mov dword [eax + 4], edx
add esi, 0x20
add edx, 0x20
mov edi, ecx
cmp esi, 0xfe0
jbe 0xd15db5
mov ecx, dword [0xd0ea7c]
pop edi
mov dword [eax], ecx
pop esi
mov dword [0xd0ea7c], eax
mov edx, dword [eax + 4]
mov ecx, dword [edx]
inc dword [eax + 8]
mov dword [eax + 4], ecx
mov eax, edx
ret
xor eax, eax
ret
Function at 0xd1a792
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0xd1a7d1
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xd1a7d1
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xd1a7d1
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0xd1a7d1
cmp dword [ecx + 0x74], 0xe
jbe 0xd1a7d1
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0xd2180b
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.00d32f60
mov eax, dword [0xd02340]
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.00d25055
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0xd2184d
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0xd219a9
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.00d19cd0
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 + 0xd0e678]
push dword [eax + edi + 0x24]
push dword [eax + edi + 0x20]
push ebx
call fcn.00d286ea
mov ecx, dword [esi*4 + 0xd0e678]
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 0xd219a2
cmp eax, dword [ecx + edi + 0x24]
jne 0xd219a2
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 0xd219a2
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00d286ea
add esp, 0x14
test edx, edx
jl 0xd219a2
jg 0xd21918
test eax, eax
jb 0xd219a2
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0xd219a2
jl 0xd21932
cmp dword [ebp - 0x1008], eax
ja 0xd219a2
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0xd21950
test ebx, ebx
je 0xd21989
cmp ecx, edi
jae 0xd21989
mov al, byte [ecx]
cmp al, 0xd
jne 0xd2196a
lea eax, [edi - 1]
cmp ecx, eax
jae 0xd21976
cmp byte [ecx + 1], 0xa
jne 0xd21976
inc ecx
jmp 0xd21976
movzx eax, al
movsx eax, byte [eax + 0xd02598]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0xd21950
cmp edx, ebx
jne 0xd21950
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0xd219a7
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.00d1a1ef
leave
ret
Function at 0xd22349
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0xd02340]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
push 0xd052e8
push esi
call fcn.00d28bd2
pop ecx
pop ecx
test eax, eax
jne 0xd22377
xor al, al
jmp 0xd223f4
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.00d2208a
mov edx, eax
add esp, 0x10
test edx, edx
jne 0xd223b1
push dword [ebp - 0x210]
call fcn.00d227bd
xor al, al
jmp 0xd223f2
mov ecx, edx
push edi
lea edi, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0xd223b7
sub ecx, edi
sar ecx, 1
pop edi
cmp ecx, 3
je 0xd223d7
push edx
call fcn.00d22280
pop ecx
test al, al
je 0xd223a2
push esi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 1
jbe 0xd223e5
mov bl, 1
push dword [ebp - 0x210]
call fcn.00d227bd
mov al, bl
pop ecx
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.00d1a1ef
leave
ret
Function at 0xd27a28
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 + 0xd0e678]
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 0xd27a68
cmp byte [ebx], 0xa
jne 0xd27a68
or byte [edi + eax + 0x28], 4
jmp 0xd27a6d
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 0xd27b6c
mov dl, byte [eax]
cmp dl, 0x1a
je 0xd27b4f
inc eax
cmp dl, 0xd
je 0xd27a99
mov dword [ebp - 8], eax
mov byte [esi], dl
jmp 0xd27abf
cmp eax, ecx
jae 0xd27acd
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 0xd27a81
jmp 0xd27b6c
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 0xd27b4a
cmp dword [ebp - 0x10], 0
je 0xd27b4a
mov ecx, dword [ebp - 0xc]
mov eax, dword [ecx*4 + 0xd0e678]
test byte [eax + edi + 0x28], 0x48
je 0xd27b24
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0xd27b0f
mov byte [esi], dl
jmp 0xd27b20
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0xd0e678]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0xd27b6c
cmp byte [ebp - 1], 0xa
jne 0xd27b33
cmp esi, ebx
jne 0xd27b33
mov byte [esi], 0xa
jmp 0xd27b6b
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.00d28708
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0xd27b6c
mov byte [esi], 0xd
jmp 0xd27b6b
mov ecx, dword [ebp - 0xc]
mov ecx, dword [ecx*4 + 0xd0e678]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0xd27b69
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0xd27b6c
mov byte [esi], dl
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0xd27b75
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 + 0xd0e678]
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 0xd27bbb
cmp word [ebx], dx
jne 0xd27bbb
or byte [eax + edi + 0x28], 4
jmp 0xd27bc0
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 0xd27d23
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 0xd27d03
add eax, 2
cmp cx, word [ebp - 0x10]
je 0xd27c01
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0xd27c37
cmp eax, edx
jae 0xd27c45
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 0xd27bdc
jmp 0xd27d23
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 0xd27cfe
cmp dword [ebp - 0x18], 0
je 0xd27cfe
mov edx, dword [ebp - 8]
push 0xa
mov eax, dword [edx*4 + 0xd0e678]
test byte [eax + edi + 0x28], 0x48
je 0xd27cd4
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 0xd27c98
mov word [esi], cx
jmp 0xd27ccf
push 0xd
pop ecx
mov word [esi], cx
movzx ecx, ax
mov eax, dword [edx*4 + 0xd0e678]
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 + 0xd0e678]
mov byte [eax + edi + 0x2b], cl
mov eax, dword [edx*4 + 0xd0e678]
pop ecx
mov byte [eax + edi + 0x2c], cl
mov esi, dword [ebp - 0x1c]
jmp 0xd27d23
pop eax
cmp word [ebp - 4], ax
jne 0xd27ce4
cmp esi, ebx
jne 0xd27ce4
mov word [esi], ax
jmp 0xd27d20
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.00d28708
add esp, 0x10
push 0xa
pop eax
cmp word [ebp - 4], ax
je 0xd27d23
push 0xd
pop eax
jmp 0xd27cdf
mov edx, dword [ebp - 8]
mov edx, dword [edx*4 + 0xd0e678]
mov al, byte [edx + edi + 0x28]
test al, 0x40
jne 0xd27d1d
or al, 2
mov byte [edx + edi + 0x28], al
jmp 0xd27d23
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 0xd29189
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xd06340
push 0xd06338
push 0xd0510c
push 0x1f
call fcn.00d29048
mov esi, eax
add esp, 0x10
test esi, esi
je 0xd291bd
push dword [ebp + 8]
mov ecx, esi
call dword [0xd01200]
call esi
jmp 0xd291c3
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0xd29207
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xd06350
push 0xd06348
push 0xd05130
push 0x21
call fcn.00d29048
mov esi, eax
add esp, 0x10
test esi, esi
je 0xd2923e
push dword [ebp + 8]
mov ecx, esi
call dword [0xd01200]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]

Function at 0xd29246
Capabilities:
Set thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0xd06358
push 0xd06350
push 0xd05144
push 0x22
call fcn.00d29048
mov esi, eax
add esp, 0x10
test esi, esi
je 0xd29280
push dword [ebp + 0xc]
mov ecx, esi
push dword [ebp + 8]
call dword [0xd01200]
call esi
pop esi
pop ebp
ret 8
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsSetValue]
Function at 0xd2b159
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 0xd2b1f6
push ebx
push esi
call fcn.00d2b122
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.00d2b0b6
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0xd2b1a3
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xd2b1f5
push edi
push eax
call fcn.00d2565e
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0xd2b1c3
call fcn.00d2501b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0xd2b1f4
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00d2b0b6
add esp, 0x20
test eax, eax
jne 0xd2b1e2
push edi
call fcn.00d2501b
jmp 0xd2b1ea
push ebx
call fcn.00d2501b
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 0xd2b1f9
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
jne 0xd2b20a
pop esi
ret
push ebx
push edi
push esi
call fcn.00d2b122
mov ebx, eax
sub ebx, esi
and ebx, 0xfffffffe
push ebx
call fcn.00d2565e
mov edi, eax
pop ecx
pop ecx
test edi, edi
je 0xd2b232
push ebx
push esi
push edi
call fcn.00d10980
add esp, 0xc
push 0
call fcn.00d2501b
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, edi
pop edi
pop ebx
pop esi
ret

Function at 0xd2b98c
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.00d2b4a7

Function at 0xd2fa9b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0xd02340]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
cmp eax, 0x1a
jbe 0xd2fade
call fcn.00d25638
mov dword [eax], 0xf
call fcn.00d2564b
mov dword [eax], 0xd
call fcn.00d1cb4f
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00d1a1ef
leave
ret
test eax, eax
jne 0xd2fae5
inc eax
jmp 0xd2fad2
add eax, 0x40
push 0x3a
mov word [ebp - 0xc], ax
pop eax
mov word [ebp - 0xa], ax
push 0x5c
pop eax
mov word [ebp - 8], ax
xor eax, eax
mov word [ebp - 6], ax
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
mov ecx, eax
test ecx, ecx
je 0xd2fad0
xor eax, eax
cmp ecx, 1
setne al
jmp 0xd2fad2
Function at 0xd31e15
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.00d31d91
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0xd31f84
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0xd31f84
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0xd31f39
jg 0xd31e71
test eax, eax
je 0xd31f2f
push 1
push 0x1000
call fcn.00d2a060
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0xd31e94
push 0xc
pop ebx
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], ebx
jmp 0xd31f26
push 0x8000
push ebx
call fcn.00d23879
pop ecx
pop ecx
mov ecx, dword [ebp - 0x1c]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x18]
test eax, eax
jl 0xd31ebd
jg 0xd31eb8
cmp ecx, 0x1000
jb 0xd31ebd
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.00d2780c
add esp, 0x10
cmp eax, 0xffffffff
je 0xd31f02
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 0xd31eb8
jl 0xd31ee9
test ecx, ecx
jne 0xd31eaa
push dword [ebp - 0xc]
push ebx
call fcn.00d23879
push esi
call fcn.00d2501b
add esp, 0xc
xor ebx, ebx
jmp 0xd31f92
cmp byte [edi + 0x24], 0
je 0xd31f19
cmp dword [edi + 0x20], 5
jne 0xd31f19
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0xd31f24
mov ebx, dword [edi + 0x18]
jmp 0xd31f26
xor ebx, ebx
push esi
call fcn.00d2501b
pop ecx
jmp 0xd31f92
test ecx, ecx
jg 0xd31efb
jl 0xd31f39
test eax, eax
jae 0xd31efb
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.00d28708
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0xd31f59
cmp byte [edi + 0x1c], 0
je 0xd31efb
jmp 0xd31f8a
push ebx
call fcn.00d297ac
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0xd31efb
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 0xd31f92
cmp byte [edi + 0x1c], 0
je 0xd31f8f
mov ebx, dword [edi + 0x18]
jmp 0xd31f92
push 0x16
pop ebx
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.00d28708
add esp, 0x10
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret

Function at 0xd32eb0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0xd32edd
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0xd32edd
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret