joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100c8600
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x10358904]
mov dword [ebp - 4], eax
jmp 0x100c8618
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [ebp - 4], edx
cmp dword [ebp - 4], 0
je 0x100c862e
mov eax, dword [ebp - 4]
cmp dword [eax + 4], 0
je 0x100c862c
mov eax, dword [ebp - 4]
jmp 0x100c86a9
jmp 0x100c8610
push 0x40
push 0x3000
push 0x1000
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x100c86a6
mov ecx, dword [ebp - 4]
add ecx, 0x20
mov dword [ebp - 8], ecx
mov edx, dword [ebp - 4]
mov dword [edx + 4], 0
mov eax, dword [ebp - 4]
mov dword [eax + 8], 0
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 4]
mov eax, dword [edx + 4]
mov dword [ecx], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
mov dword [ecx + 4], edx
mov eax, dword [ebp - 8]
add eax, 0x20
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 8]
sub ecx, dword [ebp - 4]
cmp ecx, 0xfe0
jbe 0x100c8668
mov edx, dword [ebp - 4]
mov eax, dword [0x10358904]
mov dword [edx], eax
mov ecx, dword [ebp - 4]
mov dword [0x10358904], ecx
mov eax, dword [ebp - 4]
mov esp, ebp
pop ebp
ret

Function at 0x100c8bb0
Capabilities:
Check for software breakpoints

Disassembly:
push ebp
mov ebp, esp
push ecx
mov eax, 1
imul ecx, eax, 0
mov edx, dword [ebp + 8]
movzx eax, byte [edx + ecx]
test eax, eax
je 0x100c8bf9
mov ecx, 1
imul edx, ecx, 0
mov eax, dword [ebp + 8]
movzx ecx, byte [eax + edx]
cmp ecx, 0x90
je 0x100c8bf9
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + eax]
cmp edx, 0xcc
je 0x100c8bf9
xor eax, eax
jmp 0x100c8c3a
mov dword [ebp - 4], 1
jmp 0x100c8c0b
mov eax, dword [ebp - 4]
add eax, 1
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 4]
cmp ecx, dword [ebp + 0xc]
jae 0x100c8c35
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
mov ecx, 1
imul edx, ecx, 0
mov ecx, dword [ebp + 8]
movzx edx, byte [ecx + edx]
cmp eax, edx
je 0x100c8c33
xor eax, eax
jmp 0x100c8c3a
jmp 0x100c8c02
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x100d04d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov eax, dword [eax + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [edi + 0x78]
test eax, eax
je 0x100d04f4
push dword [edi + 0x74]
call eax
add esp, 4
mov esi, dword [edi + 0x54]
test esi, esi
je 0x100d0559
nop dword [eax + eax]
mov ebx, dword [esi + 4]
xor edx, edx
mov eax, dword [ebx + 0x60]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
mov eax, dword [ebx + 0x54]
test eax, eax
je 0x100d0552
mov ecx, dword [eax + 8]
cmp eax, esi
je 0x100d0526
mov edx, eax
mov eax, ecx
test eax, eax
jne 0x100d0515
jmp 0x100d0552
test edx, edx
jne 0x100d052f
mov dword [ebx + 0x54], ecx
jmp 0x100d0532
mov dword [edx + 8], ecx
mov eax, dword [esi + 0x14]
test eax, eax
je 0x100d053f
push esi
call eax
add esp, 4
push esi
call fcn.100d0a30
mov eax, dword [ebp - 4]
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 0xc
mov esi, dword [edi + 0x54]
test esi, esi
jne 0x100d0500
mov ebx, dword [ebp + 8]
lea eax, [edi + 0x6c]
mov dword [ebp - 8], eax
test eax, eax
je 0x100d05e4
test ebx, ebx
je 0x100d05e4
mov ebx, dword [eax]
test ebx, ebx
je 0x100d05d4
mov edi, dword [ebp + 8]
mov esi, dword [ebx + 8]
mov eax, dword [ebx + 4]
mov dword [ebp - 4], eax
mov eax, dword [esi + 8]
test eax, eax
je 0x100d0589
push esi
call eax
add esp, 4
mov eax, dword [ebp + 0x10]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x3c]
test eax, eax
je 0x100d059c
push esi
call eax
add esp, 4
mov eax, dword [esi + 0x28]
test eax, eax
je 0x100d05ad
push eax
mov eax, dword [edi + 8]
push edi
call eax
add esp, 8
mov dword [esi + 0x28], 0
mov eax, dword [edi + 8]
push esi
push edi
call eax
mov eax, dword [edi + 8]
push ebx
push edi
call eax
mov eax, dword [ebp - 4]
add esp, 0x10
mov ebx, eax
test eax, eax
jne 0x100d0573
mov edi, dword [ebp + 0xc]
mov eax, dword [ebp - 8]
mov ebx, dword [ebp + 8]
mov dword [eax], 0
mov dword [eax + 4], 0
mov eax, dword [edi + 0x30]
mov dword [edi + 0x58], 0
test eax, eax
je 0x100d05f8
push edi
call eax
add esp, 4
push ebx
push edi
call fcn.100d0450
mov eax, dword [ebp - 0xc]
add esp, 8
mov eax, dword [eax + 0x34]
test eax, eax
je 0x100d0612
push edi
call eax
add esp, 4
mov esi, dword [edi + 0x68]
mov eax, dword [edi + 8]
mov dword [ebp + 0xc], eax
test esi, esi
je 0x100d0648
mov ecx, dword [esi + 0x18]
mov eax, dword [esi + 0x1c]
mov dword [ebp + 0x10], eax
test ecx, ecx
je 0x100d0635
push esi
call ecx
mov eax, dword [ebp + 0x10]
add esp, 4
test dword [ebp + 0xc], 0x400
jne 0x100d0648
push esi
push eax
mov eax, dword [eax + 8]
call eax
add esp, 8
mov eax, dword [edi + 0x80]
mov dword [edi + 0x68], 0
test eax, eax
je 0x100d066d
push eax
mov eax, dword [ebx + 8]
push ebx
call eax
add esp, 8
mov dword [edi + 0x80], 0
mov eax, dword [ebx + 8]
push edi
push ebx
call eax
add esp, 8
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10126710
Capabilities:
Get file size
Read file on windows
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
mov esi, dword [ebp + 8]
test esi, esi
jne 0x10126726
lea eax, [esi + 0x28]
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp + 0xc]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x10126755
pop ebx
mov eax, 1
pop esi
mov esp, ebp
pop ebp
ret
push edi
lea eax, [ebp - 0xc]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [ebp + 8], eax
je 0x1012684f
mov ecx, dword [ebp - 8]
test ecx, ecx
jg 0x1012684f
mov eax, dword [ebp - 0xc]
jl 0x1012678c
cmp eax, 0x7fffffff
ja 0x1012684f
or eax, ecx
je 0x1012684f
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
mov edi, eax
test edi, edi
je 0x1012684f
mov ecx, dword [ebp - 0xc]
push 0
push 0
push 0
push 4
push edi
mov dword [esi + 4], ecx
mov dword [esi + 8], 0
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
push edi
mov dword [esi], eax
call dword [ebp + 8]
cmp dword [esi], 0
je 0x101267dd
mov eax, 0x101268b0
jmp 0x1012681e
push dword [esi + 4]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [esi], eax
test eax, eax
je 0x1012684f
xor edi, edi
push 0
lea eax, [ebp - 4]
push eax
mov eax, dword [esi + 4]
sub eax, edi
push eax
mov eax, dword [esi]
add eax, edi
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10126840
add edi, dword [ebp - 4]
cmp edi, dword [esi + 4]
jne 0x101267f5
mov eax, 0x10126880
push ebx
mov dword [esi + 0x18], eax
call dword [ebp + 8]
mov eax, dword [esi]
mov dword [esi + 0xc], eax
mov eax, dword [ebp + 0xc]
pop edi
mov dword [esi + 0x10], eax
xor eax, eax
pop ebx
mov dword [esi + 0x14], 0
pop esi
mov esp, ebp
pop ebp
ret
push dword [esi]
mov eax, dword [esi + 0x1c]
push 0
push dword [eax]
call dword [sym.imp.KERNEL32.dll_HeapFree]
push ebx
call dword [ebp + 8]
pop edi
pop ebx
mov dword [esi], 0
mov eax, 0x51
mov dword [esi + 4], 0
mov dword [esi + 8], 0
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10127cf0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
mov edx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
test edx, edx
jne 0x10127d03
xor eax, eax
pop esi
pop ebp
ret
mov eax, dword [ebp + 8]
not eax
cmp esi, 8
jb 0x10127dbe
push edi
mov edi, esi
shr edi, 3
movzx ecx, byte [edx]
sub esi, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10170be0]
movzx ecx, byte [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10170be0]
movzx ecx, byte [edx + 2]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10170be0]
movzx ecx, byte [edx + 3]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10170be0]
movzx ecx, byte [edx + 4]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10170be0]
movzx ecx, byte [edx + 5]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10170be0]
movzx ecx, byte [edx + 6]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10170be0]
movzx ecx, byte [edx + 7]
add edx, 8
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10170be0]
sub edi, 1
jne 0x10127d17
pop edi
test esi, esi
je 0x10127ddc
movzx ecx, byte [edx]
lea edx, [edx + 1]
xor ecx, eax
shr eax, 8
movzx ecx, cl
xor eax, dword [ecx*4 + 0x10170be0]
sub esi, 1
jne 0x10127dc2
not eax
pop esi
pop ebp
ret
Function at 0x1012f527
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, 0x101c
call fcn.100caa00
mov eax, dword [0x101903b8]
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.1013c919
pop ecx
mov ecx, dword [ebp + 8]
mov ebx, eax
cmp dword [ecx + 8], 0
jne 0x1012f569
mov eax, dword [ebp + 0xc]
mov edx, dword [ebp + 0x10]
jmp 0x1012f6c5
mov eax, dword [ecx]
sub eax, dword [ecx + 4]
push esi
push edi
push 0
cdq
push 2
push edx
push eax
call fcn.1014e540
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 + 0x10270110]
push dword [edi + eax + 0x24]
push dword [edi + eax + 0x20]
push ebx
call fcn.1013cb29
mov ecx, dword [esi*4 + 0x10270110]
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 0x1012f6be
cmp eax, dword [edi + ecx + 0x24]
jne 0x1012f6be
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 0x1012f6be
push dword [ebp - 0x100c]
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1013cb29
add esp, 0x14
test edx, edx
jl 0x1012f6be
jg 0x1012f634
test eax, eax
jb 0x1012f6be
mov ebx, dword [ebp - 0x1018]
mov eax, dword [ebp - 0x1014]
test ebx, ebx
jg 0x1012f6be
jl 0x1012f64e
cmp dword [ebp - 0x1008], eax
ja 0x1012f6be
lea edi, [ebp - 0x1004]
xor edx, edx
add edi, eax
lea ecx, [ebp - 0x1004]
xor esi, esi
cmp dword [ebp - 0x1008], edx
jne 0x1012f66c
test ebx, ebx
je 0x1012f6a5
cmp ecx, edi
jae 0x1012f6a5
mov al, byte [ecx]
cmp al, 0xd
jne 0x1012f686
lea eax, [edi - 1]
cmp ecx, eax
jae 0x1012f692
cmp byte [ecx + 1], 0xa
jne 0x1012f692
inc ecx
jmp 0x1012f692
movzx eax, al
movsx eax, byte [eax + 0x10190600]
add ecx, eax
add esi, 1
adc edx, 0
inc ecx
cmp esi, dword [ebp - 0x1008]
jne 0x1012f66c
cmp edx, ebx
jne 0x1012f66c
lea eax, [ebp - 0x1004]
sub ecx, eax
mov eax, ecx
cdq
add eax, dword [ebp - 0x1010]
adc edx, dword [ebp - 0x101c]
jmp 0x1012f6c3
or edx, 0xffffffff
mov eax, edx
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop ebx
call fcn.100c9808
leave
ret
Function at 0x1013e8be
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 + 0x10270110]
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 0x1013e8fe
cmp byte [ebx], 0xa
jne 0x1013e8fe
or byte [eax + edi + 0x28], 4
jmp 0x1013e903
and byte [eax + edi + 0x28], 0xfb
add ecx, ebx
mov edx, ebx
mov dword [ebp - 0xc], ecx
mov esi, ebx
cmp ebx, ecx
jae 0x1013ea01
mov al, byte [edx]
cmp al, 0x1a
je 0x1013e9e3
lea ecx, [edx + 1]
mov dword [ebp - 8], ecx
mov ecx, dword [ebp - 0xc]
cmp al, 0xd
je 0x1013e932
mov edx, dword [ebp - 8]
mov byte [esi], al
jmp 0x1013e957
mov eax, dword [ebp - 8]
cmp eax, ecx
jae 0x1013e961
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 0x1013e914
jmp 0x1013ea01
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 0x1013e9de
cmp dword [ebp - 0xc], 0
je 0x1013e9de
mov ecx, dword [ebp - 0x10]
mov eax, dword [ecx*4 + 0x10270110]
test byte [eax + edi + 0x28], 0x48
je 0x1013e9b8
mov dl, byte [ebp - 1]
lea eax, [esi + 1]
mov dword [ebp - 0x14], eax
cmp dl, 0xa
jne 0x1013e9a3
mov byte [esi], dl
jmp 0x1013e9b4
mov byte [esi], 0xd
mov eax, dword [ecx*4 + 0x10270110]
mov byte [eax + edi + 0x2a], dl
mov eax, dword [ebp - 0x14]
mov esi, eax
jmp 0x1013ea01
cmp byte [ebp - 1], 0xa
jne 0x1013e9c7
cmp esi, ebx
jne 0x1013e9c7
mov byte [esi], 0xa
jmp 0x1013ea00
push 1
push 0xffffffffffffffff
push 0xffffffffffffffff
push dword [ebp + 8]
call fcn.1013cb47
add esp, 0x10
cmp byte [ebp - 1], 0xa
je 0x1013ea01
mov byte [esi], 0xd
jmp 0x1013ea00
mov ecx, dword [ebp - 0x10]
mov ecx, dword [ecx*4 + 0x10270110]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1013e9fd
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1013ea01
mov byte [esi], 0x1a
inc esi
sub esi, ebx
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x1013ea0a
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 + 0x10270110]
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 0x1013ea4d
cmp word [esi], dx
jne 0x1013ea4d
or byte [edi + eax + 0x28], 4
jmp 0x1013ea52
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 0x1013eba5
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 0x1013eb85
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x1013ea94
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x1013eaca
cmp eax, edx
jae 0x1013ead6
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 0x1013ea6c
jmp 0x1013eba5
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 0x1013eb81
cmp dword [ebp - 0x14], 0
je 0x1013eb81
mov eax, dword [ebx*4 + 0x10270110]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x1013eb59
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x1013eb22
mov word [esi], cx
jmp 0x1013eb55
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x10270110]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x10270110]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x10270110]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x1013eba5
pop ebx
cmp word [ebp - 4], bx
jne 0x1013eb6a
cmp esi, dword [ebp + 0xc]
jne 0x1013eb6a
mov word [esi], bx
jmp 0x1013eba2
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.1013cb47
add esp, 0x10
cmp word [ebp - 4], bx
je 0x1013eba5
push 0xd
jmp 0x1013eb9e
mov ecx, dword [ebx*4 + 0x10270110]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x1013eb9c
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x1013eba5
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 0x1013f8d7
Capabilities:
Allocate thread local storage

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x1017419c
push 0x10174194
push str.FlsAlloc
push 0x1e
call fcn.1013f761
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1013f90b
push dword [ebp + 8]
mov ecx, esi
call dword [0x10156240]
call esi
jmp 0x1013f911
call dword [sym.imp.KERNEL32.dll_TlsAlloc]
pop esi
pop ebp
ret 4

Function at 0x1013f955
Capabilities:
Get thread local storage value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push 0x101741ac
push 0x101741a4
push str.FlsGetValue
push 0x20
call fcn.1013f761
mov esi, eax
add esp, 0x10
test esi, esi
je 0x1013f98c
push dword [ebp + 8]
mov ecx, esi
call dword [0x10156240]
call esi
pop esi
pop ebp
ret 4
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsGetValue]
Function at 0x10142806
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.10142677
Function at 0x10146f3f
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 0x10146fdc
push ebx
push esi
call fcn.10146f08
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.10145d0f
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x10146f89
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10146fdb
push edi
push eax
call fcn.10140cf7
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x10146fa9
call fcn.1013f486
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x10146fda
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.10145d0f
add esp, 0x20
test eax, eax
jne 0x10146fc8
push edi
call fcn.1013f486
jmp 0x10146fd0
push ebx
call fcn.1013f486
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 0x1014d881
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.1014d7fd
mov eax, dword [ebp - 0x2c]
and eax, dword [ebp - 0x28]
cmp eax, 0xffffffff
je 0x1014d9f9
mov eax, dword [ebp - 0x24]
and eax, dword [ebp - 0x20]
cmp eax, 0xffffffff
je 0x1014d9f9
mov ecx, dword [ebp - 0x18]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 8], ecx
mov dword [ebp - 4], eax
test ecx, ecx
jl 0x1014d9a8
jg 0x1014d8da
test eax, eax
je 0x1014d99e
push 1
push 0x1000
call fcn.1013f429
mov esi, eax
pop ecx
pop ecx
test esi, esi
jne 0x1014d900
mov eax, dword [ebp + 0x14]
push 0xc
pop edi
mov byte [eax + 0x1c], 1
mov dword [eax + 0x18], edi
jmp 0x1014d995
push 0x8000
push ebx
call fcn.1014d72e
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 0x1014d92c
jg 0x1014d927
cmp ecx, 0x1000
jb 0x1014d92c
mov ecx, 0x1000
push edi
push ecx
push esi
push ebx
call fcn.1014078d
add esp, 0x10
cmp eax, 0xffffffff
je 0x1014d971
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 0x1014d927
jl 0x1014d958
test ecx, ecx
jne 0x1014d919
push dword [ebp - 0xc]
push ebx
call fcn.1014d72e
push esi
call fcn.1013f486
add esp, 0xc
xor edi, edi
jmp 0x1014da0a
cmp byte [edi + 0x24], 0
je 0x1014d988
cmp dword [edi + 0x20], 5
jne 0x1014d988
mov byte [edi + 0x1c], 1
mov dword [edi + 0x18], 0xd
cmp byte [edi + 0x1c], 0
je 0x1014d993
mov edi, dword [edi + 0x18]
jmp 0x1014d995
xor edi, edi
push esi
call fcn.1013f486
pop ecx
jmp 0x1014da0a
test ecx, ecx
jg 0x1014d96a
jl 0x1014d9a8
test eax, eax
jae 0x1014d96a
push 0
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push ebx
call fcn.1013cb47
and eax, edx
add esp, 0x10
cmp eax, 0xffffffff
jne 0x1014d9cb
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1014d96a
jmp 0x1014da02
push ebx
call fcn.10147556
pop ecx
push eax
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x1014d96a
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 0x1014da0a
mov edi, dword [ebp + 0x14]
cmp byte [edi + 0x1c], 0
je 0x1014da07
mov edi, dword [edi + 0x18]
jmp 0x1014da0a
push 0x16
pop edi
push 0
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
push dword [ebp - 0x14]
call fcn.1013cb47
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x402570
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4196a8
mov eax, dword fs:[0]
push eax
sub esp, 0x74
mov eax, dword [0x420444]
xor eax, esp
mov dword [esp + 0x70], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x420444]
xor eax, esp
push eax
lea eax, [esp + 0x88]
mov dword fs:[0], eax
mov ebp, dword [esp + 0x98]
mov ebx, dword [esp + 0x9c]
xor esi, esi
mov dword [esp + 0x80], 7
mov dword [esp + 0x7c], esi
mov word [esp + 0x6c], si
xor eax, eax
push 0x44
mov dword [esp + 0x18], eax
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], eax
mov dword [esp + 0x24], eax
lea eax, [esp + 0x28]
push esi
push eax
mov dword [esp + 0x9c], esi
call fcn.004070e0
mov eax, dword [ebx + 0x14]
add esp, 0xc
xor edi, edi
cmp eax, esi
mov dword [esp + 0x24], 0x44
je 0x40269b
lea esi, [eax + 0x208]
xor ecx, ecx
mov eax, esi
mov edx, 2
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.00406b24
push 0x41b2a4
mov edi, eax
push esi
push edi
call fcn.00407f22
add esp, 0x10
cmp dword [ebp + 0x18], 8
jb 0x402641
mov ebp, dword [ebp + 4]
jmp 0x402644
add ebp, 4
push ebp
push esi
push edi
call fcn.00407ea8
push 0x41b29c
push esi
push edi
call fcn.00407ea8
mov ebp, 8
add esp, 0x18
cmp dword [ebx + 0x18], ebp
jb 0x40266a
mov ebx, dword [ebx + 4]
jmp 0x40266d
add ebx, 4
push ebx
push esi
push edi
call fcn.00407ea8
add esp, 0xc
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x28]
push ecx
push 0
push 0
push 0
push 1
push 0
push 0
push edi
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
xor esi, esi
jmp 0x4026c7
cmp dword [ebp + 0x18], 8
jb 0x4026a6
mov ebp, dword [ebp + 4]
jmp 0x4026a9
add ebp, 4
lea edx, [esp + 0x14]
push edx
lea eax, [esp + 0x28]
push eax
push esi
push esi
push esi
push 1
push esi
push esi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov ebp, 8
cmp eax, esi
jne 0x4026e5
cmp dword [esp + 0x80], ebp
jb 0x4026e1
mov ecx, dword [esp + 0x6c]
push ecx
call fcn.00406ffe
add esp, 4
xor al, al
jmp 0x402741
mov eax, dword [esp + 0x18]
cmp eax, esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
je 0x4026fa
push eax
call ebx
mov dword [esp + 0x18], esi
mov eax, dword [esp + 0x14]
cmp eax, esi
je 0x40271c
cmp byte [esp + 0xa0], 0
je 0x402719
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [esp + 0x14]
push eax
call ebx
cmp edi, esi
je 0x402729
push edi
call fcn.0040715a
add esp, 4
cmp dword [esp + 0x80], ebp
jb 0x40273f
mov edx, dword [esp + 0x6c]
push edx
call fcn.00406ffe
add esp, 4
mov al, 1
mov ecx, dword [esp + 0x88]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x70]
xor ecx, esp
call fcn.004077bb
add esp, 0x80
ret