joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100b18e
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
xor ebx, ebx
cmp dword [0x10133f8], ebx
push esi
push edi
jne 0x100b210
push 0x10029d0
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x100b24b
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x10029c4
push edi
call esi
test eax, eax
mov dword [0x10133f8], eax
je 0x100b24b
push 0x10029b4
push edi
call esi
push 0x10029a0
push edi
mov dword [0x10133fc], eax
call esi
cmp dword [0x1013170], 2
mov dword [0x1013400], eax
jne 0x100b210
push 0x1002984
push edi
call esi
test eax, eax
mov dword [0x1013408], eax
je 0x100b210
push 0x100296c
push edi
call esi
mov dword [0x1013404], eax
mov eax, dword [0x1013404]
test eax, eax
je 0x100b255
call eax
test eax, eax
je 0x100b23c
lea ecx, [ebp - 4]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [0x1013408]
test eax, eax
je 0x100b23c
test byte [ebp - 8], 1
jne 0x100b255
cmp dword [0x101317c], 4
jb 0x100b24f
or byte [ebp + 0x12], 0x20
jmp 0x100b274
xor eax, eax
jmp 0x100b284
or byte [ebp + 0x12], 4
jmp 0x100b274
mov eax, dword [0x10133fc]
test eax, eax
je 0x100b274
call eax
mov ebx, eax
test ebx, ebx
je 0x100b274
mov eax, dword [0x1013400]
test eax, eax
je 0x100b274
push ebx
call eax
mov ebx, eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push ebx
call dword [0x10133f8]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100bd22
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, dword [esi + 8]
test bl, 3
jne 0x100bd53
mov eax, dword fs:[4]
mov dword [ebp + 8], eax
mov eax, dword fs:[8]
mov dword [ebp - 4], eax
cmp ebx, dword [ebp - 4]
jb 0x100bd5a
cmp ebx, dword [ebp + 8]
jae 0x100bd5a
xor eax, eax
jmp 0x100bf4a
push edi
mov edi, dword [esi + 0xc]
cmp edi, 0xffffffff
jne 0x100bd6b
xor eax, eax
inc eax
jmp 0x100bf49
xor edx, edx
mov dword [ebp + 8], edx
mov eax, ebx
mov ecx, dword [eax]
cmp ecx, 0xffffffff
je 0x100bd81
cmp ecx, edx
jae 0x100bec6
cmp dword [eax + 4], 0
je 0x100bd8a
inc dword [ebp + 8]
inc edx
add eax, 0xc
cmp edx, edi
jbe 0x100bd72
cmp dword [ebp + 8], 0
je 0x100bdac
mov eax, dword [esi - 8]
cmp eax, dword [ebp - 4]
jb 0x100bec6
cmp eax, esi
jae 0x100bec6
mov eax, dword [0x1013410]
mov edi, ebx
and edi, 0xfffff000
xor esi, esi
test eax, eax
jle 0x100bdd1
cmp dword [esi*4 + 0x1013418], edi
je 0x100beca
inc esi
cmp esi, eax
jl 0x100bdbf
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100bf46
cmp dword [ebp - 8], 0x1000000
jne 0x100bf46
test byte [ebp - 0xc], 0xcc
je 0x100be4f
mov ecx, dword [ebp - 0x1c]
cmp word [ecx], 0x5a4d
jne 0x100bf46
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x100bf46
cmp word [eax + 0x18], 0x10b
jne 0x100bf46
sub ebx, ecx
cmp word [eax + 6], 0
movzx ecx, word [eax + 0x14]
lea ecx, [ecx + eax + 0x18]
jbe 0x100bf46
mov eax, dword [ecx + 0xc]
cmp ebx, eax
jb 0x100be4f
mov edx, dword [ecx + 8]
add edx, eax
cmp ebx, edx
jae 0x100be4f
test byte [ecx + 0x27], 0x80
jne 0x100bec6
push 1
push 0x1013458
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
test eax, eax
jne 0x100bd63
mov ecx, dword [0x1013410]
test ecx, ecx
mov edx, ecx
jle 0x100be83
lea eax, [ecx*4 + 0x1013414]
cmp dword [eax], edi
je 0x100be83
dec edx
sub eax, 4
test edx, edx
jg 0x100be77
test edx, edx
jne 0x100beb4
push 0xf
pop ebx
cmp ecx, ebx
jg 0x100be90
mov ebx, ecx
xor edx, edx
test ebx, ebx
jl 0x100bea8
lea eax, [edx*4 + 0x1013418]
mov esi, dword [eax]
inc edx
cmp edx, ebx
mov dword [eax], edi
mov edi, esi
jle 0x100be96
cmp ecx, 0x10
jge 0x100beb4
inc ecx
mov dword [0x1013410], ecx
push 0
push 0x1013458
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
jmp 0x100bd63
xor eax, eax
jmp 0x100bf49
test esi, esi
jle 0x100bd63
mov ebx, dword [sym.imp.KERNEL32.dll_InterlockedExchange]
push 1
push 0x1013458
call ebx
test eax, eax
jne 0x100bd63
cmp dword [esi*4 + 0x1013418], edi
je 0x100bf20
mov eax, dword [0x1013410]
lea esi, [eax - 1]
test esi, esi
jl 0x100bf0e
cmp dword [esi*4 + 0x1013418], edi
je 0x100bf0a
dec esi
jns 0x100befe
test esi, esi
jge 0x100bf1e
cmp eax, 0x10
jge 0x100bf19
inc eax
mov dword [0x1013410], eax
lea esi, [eax - 1]
jmp 0x100bf20
je 0x100bf38
xor ecx, ecx
test esi, esi
jl 0x100bf38
lea eax, [ecx*4 + 0x1013418]
mov edx, dword [eax]
inc ecx
cmp ecx, esi
mov dword [eax], edi
mov edi, edx
jle 0x100bf26
push 0
push 0x1013458
call ebx
jmp 0x100bd63
or eax, 0xffffffff
pop edi
pop esi
pop ebx
leave
ret
Function at 0x100bfe7
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x424
mov ecx, dword [ebp + 8]
cmp ecx, dword [0x10146c8]
mov eax, dword [0x101203c]
push ebx
push esi
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
mov dword [ebp - 0x41c], edi
jae 0x100c1cd
mov eax, ecx
sar eax, 5
lea ebx, [eax*4 + 0x10146e0]
mov eax, dword [ebx]
mov esi, ecx
and esi, 0x1f
shl esi, 3
mov al, byte [eax + esi + 4]
test al, 1
mov dword [ebp - 0x424], ebx
je 0x100c1cd
and dword [ebp - 0x414], 0
and dword [ebp - 0x420], 0
cmp dword [ebp + 0x10], 0
jne 0x100c058
xor eax, eax
jmp 0x100c1e1
test al, 0x20
je 0x100c06b
push 2
push 0
push 0
push ecx
call fcn.0100d195
add esp, 0x10
mov eax, dword [ebx]
add eax, esi
test byte [eax + 4], 0x80
je 0x100c12b
and dword [ebp - 0x40c], 0
cmp dword [ebp + 0x10], 0
mov dword [ebp - 0x410], edi
jbe 0x100c1a7
mov ecx, dword [ebp - 0x410]
xor edi, edi
sub ecx, dword [ebp - 0x41c]
lea eax, [ebp - 0x408]
cmp ecx, dword [ebp + 0x10]
jae 0x100c0da
mov edx, dword [ebp - 0x410]
inc dword [ebp - 0x410]
mov dl, byte [edx]
inc ecx
cmp dl, 0xa
jne 0x100c0c8
inc dword [ebp - 0x420]
mov byte [eax], 0xd
inc eax
inc edi
mov ebx, dword [ebp - 0x424]
mov byte [eax], dl
inc eax
inc edi
cmp edi, 0x400
jl 0x100c0a4
mov edi, eax
lea eax, [ebp - 0x408]
sub edi, eax
push 0
lea eax, [ebp - 0x418]
push eax
push edi
lea eax, [ebp - 0x408]
push eax
mov eax, dword [ebx]
push dword [eax + esi]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100c159
mov eax, dword [ebp - 0x418]
add dword [ebp - 0x414], eax
cmp eax, edi
jl 0x100c165
mov eax, dword [ebp - 0x410]
sub eax, dword [ebp - 0x41c]
cmp eax, dword [ebp + 0x10]
jb 0x100c090
jmp 0x100c165
push 0
lea ecx, [ebp - 0x418]
push ecx
push dword [ebp + 0x10]
push edi
push dword [eax]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x100c159
mov eax, dword [ebp - 0x418]
and dword [ebp - 0x40c], 0
mov dword [ebp - 0x414], eax
jmp 0x100c165
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 0x40c], eax
mov eax, dword [ebp - 0x414]
test eax, eax
jne 0x100c1c5
cmp dword [ebp - 0x40c], eax
je 0x100c1a1
push 5
pop eax
cmp dword [ebp - 0x40c], eax
jne 0x100c193
mov dword [0x1013164], 9
mov dword [0x1013168], eax
jmp 0x100c1de
push dword [ebp - 0x40c]
call fcn.0100accd
pop ecx
jmp 0x100c1de
mov edi, dword [ebp - 0x41c]
mov eax, dword [ebx]
test byte [eax + esi + 4], 0x40
je 0x100c1b9
cmp byte [edi], 0x1a
je 0x100c051
mov dword [0x1013164], 0x1c
jmp 0x100c1d7
sub eax, dword [ebp - 0x420]
jmp 0x100c1e1
mov dword [0x1013164], 9
and dword [0x1013168], 0
or eax, 0xffffffff
mov ecx, dword [ebp - 4]
pop edi
pop esi
pop ebx
call fcn.01007b7f
leave
ret

Function at 0x100c8cc
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
test eax, eax
je 0x100c8fc
add al, 0x40
mov byte [ebp + 8], al
lea eax, [ebp + 8]
push eax
mov byte [ebp + 9], 0x3a
mov byte [ebp + 0xa], 0x5c
mov byte [ebp + 0xb], 0
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
test eax, eax
je 0x100c901
cmp eax, 1
je 0x100c901
xor eax, eax
inc eax
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x100cb43
Capabilities:
Get system information on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x44
push ebx
push esi
push edi
push 4
pop eax
call fcn.01007f20
mov ebx, esp
push 0x1c
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x100cba9
mov edi, dword [ebp - 0x1c]
lea eax, [ebp - 0x44]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov eax, dword [0x1013170]
mov esi, dword [ebp - 0x40]
mov ecx, eax
dec ecx
neg ecx
sbb ecx, ecx
lea edx, [esi - 1]
and ecx, 0x103
not edx
and edx, ebx
inc ecx
sub edx, esi
dec eax
neg eax
sbb eax, eax
and eax, 0xfffffff1
add eax, 0x11
imul eax, esi
add eax, edi
cmp edx, eax
jae 0x100cbad
xor eax, eax
jmp 0x100cbba
lea eax, [ebp - 4]
push eax
push ecx
push esi
push edx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
lea esp, [ebp - 0x50]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x100db5a
Capabilities:
Delete file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
push dword [ebp + 8]
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlInitUnicodeString]
xor esi, esi
cmp dword [ebp + 0xc], esi
jne 0x100dbae
lea eax, [ebp - 0x14]
push eax
push esi
lea eax, [ebp - 8]
push eax
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_RtlDosPathNameToNtPathName_U]
test al, al
jne 0x100dbae
cmp dword [0x10125b0], esi
je 0x100dc0c
push dword [ebp + 8]
push 0x1002a7c
push 0x1002ad0
push 1
call fcn.0100ff93
add esp, 0x10
jmp 0x100dc0c
lea eax, [ebp - 8]
mov dword [ebp - 0x24], eax
push edi
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
call dword [sym.imp.ntdll.dll_NtDeleteFile]
cmp dword [ebp + 0xc], esi
mov edi, eax
jne 0x100dbe7
lea eax, [ebp - 8]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp edi, esi
jge 0x100dc0b
cmp dword [0x10125b0], esi
je 0x100dc0b
push edi
push dword [ebp + 8]
push 0x1002aa0
push 0x1002ad0
push 1
call fcn.0100ff93
add esp, 0x14
pop edi
pop esi
leave
ret 8
Function at 0x100df85
Capabilities:
Persist via application shimming
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
cmp dword [esi + 8], ebx
push edi
je 0x100e09e
mov eax, dword [esi + 0x1c4]
cmp eax, ebx
je 0x100e056
mov edi, 0x8801
push edi
push ebx
push eax
call fcn.0100e5ad
cmp eax, ebx
mov dword [ebp + 8], eax
je 0x100e056
push 0x7801
push esi
call fcn.0100df1d
mov dword [ebp - 4], eax
push dword [ebp + 8]
push dword [esi + 0x1c4]
call fcn.0100e539
cmp eax, ebx
je 0x100e008
push eax
push edi
push esi
call fcn.0100ddf0
test eax, eax
je 0x100e01e
push dword [ebp + 8]
push ebx
push dword [esi + 0x1c4]
call fcn.0100e5f5
cmp eax, ebx
mov dword [ebp + 8], eax
jne 0x100dfd2
jmp 0x100e03a
cmp dword [0x10125b0], ebx
je 0x100e03a
push 0x1002c98
push 0x1002c84
push 2
jmp 0x100e032
cmp dword [0x10125b0], ebx
je 0x100e03a
push 0x1002c60
push 0x1002c84
push 1
call fcn.0100ff93
add esp, 0xc
push dword [ebp - 4]
push esi
call fcn.0100dc16
test eax, eax
jne 0x100e056
cmp dword [0x10125b0], ebx
je 0x100e09e
push 0x1002c2c
jmp 0x100e08f
cmp dword [esi + 8], ebx
je 0x100e09e
cmp dword [esi + 0x24], ebx
mov dword [ebp + 8], ebx
jbe 0x100e09e
lea edi, [esi + 0x28]
push dword [edi]
push esi
call fcn.0100de85
test eax, eax
je 0x100e082
inc dword [ebp + 8]
mov eax, dword [ebp + 8]
add edi, 0x28
cmp eax, dword [esi + 0x24]
jb 0x100e066
jmp 0x100e09e
cmp dword [0x10125b0], ebx
je 0x100e09e
push 0x1002c14
push 0x1002c84
push 1
call fcn.0100ff93
add esp, 0xc
lea edi, [esi + 0x1c4]
mov eax, dword [edi]
cmp eax, ebx
je 0x100e0d0
push eax
call fcn.0100df85
mov eax, dword [esi + 0x1e0]
cmp eax, ebx
mov dword [edi], ebx
je 0x100e0c3
push ebx
push eax
call fcn.0100db5a
lea eax, [esi + 0x1dc]
push eax
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
lea edi, [esi + 0x1c8]
mov eax, dword [edi]
cmp eax, ebx
je 0x100e0e4
push eax
call fcn.01010377
mov dword [edi], ebx
mov eax, dword [esi + 4]
cmp eax, ebx
je 0x100e141
cmp dword [esi + 8], ebx
je 0x100e13b
push ebx
lea ecx, [ebp - 8]
push ecx
push dword [esi + 0xc]
mov dword [ebp - 8], ebx
push eax
lea eax, [ebp - 0x10]
push eax
push ebx
push ebx
push ebx
push dword [esi]
mov dword [ebp - 4], ebx
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jge 0x100e12e
cmp dword [0x10125b0], ebx
je 0x100e12e
push 0x1002bf8
push 0x1002c84
push 1
call fcn.0100ff93
add esp, 0xc
push dword [esi + 4]
call fcn.0100ff6e
mov dword [esi + 4], ebx
jmp 0x100e141
push esi
call fcn.0100e8d4
mov eax, dword [esi]
cmp eax, 0xffffffff
je 0x100e152
push eax
call dword [sym.imp.ntdll.dll_NtClose]
or dword [esi], 0xffffffff
push esi
call fcn.0100ff6e
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x100ef51
Capabilities:
Get file attributes
Map section object

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
push edi
mov edi, dword [ebp + 8]
cmp edi, 0xffffffff
mov dword [ebp - 4], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
jne 0x100ef8c
cmp dword [0x10125b0], esi
je 0x100efea
push 0x10035bc
push 0x10035b0
push 1
call fcn.0100ff93
add esp, 0xc
jmp 0x100efea
push 5
push 0x18
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x14]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQueryInformationFile]
cmp eax, esi
jge 0x100efb3
cmp dword [0x10125b0], esi
je 0x100efea
push eax
push 0x100357c
jmp 0x100efdb
push edi
push 0x8000000
push 2
push esi
push esi
push 4
lea eax, [ebp - 4]
push eax
call dword [sym.imp.ntdll.dll_NtCreateSection]
cmp eax, esi
jge 0x100efee
cmp dword [0x10125b0], esi
je 0x100efea
push eax
push 0x1003558
push 0x10035b0
push 1
call fcn.0100ff93
add esp, 0x10
xor eax, eax
jmp 0x100f061
push ebx
push 2
push esi
push 2
lea eax, [ebp - 0xc]
push eax
push esi
push esi
push esi
lea eax, [ebp - 8]
push eax
push 0xffffffffffffffff
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtMapViewOfSection]
mov ebx, eax
cmp ebx, esi
jge 0x100f03a
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
cmp dword [0x10125b0], esi
je 0x100f036
push ebx
push 0x1003530
push 0x10035b0
push 1
call fcn.0100ff93
add esp, 0x10
xor eax, eax
jmp 0x100f060
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax + 8], ecx
mov ecx, dword [ebp - 8]
mov dword [eax + 0xc], ecx
mov ecx, dword [ebp - 0xc]
mov dword [eax + 0x10], ecx
mov ecx, dword [ebp - 0x24]
mov dword [eax + 0x18], ecx
mov ecx, dword [ebp - 0x20]
mov dword [eax], edi
mov dword [eax + 0x1c], ecx
xor eax, eax
inc eax
pop ebx
pop edi
pop esi
leave
ret 8
Function at 0x100f0d2
Capabilities:
Get system information on windows

Disassembly:
push 0x6c
push 0x10037c8
call fcn.01009278
xor edi, edi
mov dword [ebp - 4], edi
push 4
pop eax
call fcn.01007f20
mov dword [ebp - 0x18], esp
mov eax, esp
mov dword [ebp - 0x1c], eax
or ebx, 0xffffffff
mov dword [ebp - 4], ebx
jmp 0x100f120
lea ecx, [ebp - 0x28]
push ecx
push 0x1c
lea ecx, [ebp - 0x50]
push ecx
push edi
push eax
push ebx
mov esi, dword [sym.imp.ntdll.dll_NtQueryVirtualMemory]
call esi
cmp eax, edi
jge 0x100f153
cmp dword [0x10125b0], edi
je 0x100f2dd
push eax
push dword [ebp - 0x1c]
push 0x1003790
jmp 0x100f226
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x28]
push ecx
push 0x1c
lea ecx, [ebp - 0x50]
push ecx
push edi
push eax
push ebx
call esi
cmp eax, edi
jge 0x100f186
cmp dword [0x10125b0], edi
je 0x100f2dd
push eax
push dword [ebp - 0x20]
push 0x1003754
jmp 0x100f226
test byte [ebp - 0x3f], 0x20
je 0x100f1c1
mov eax, dword [ebp - 0x4c]
mov ecx, dword [ebp - 0x44]
lea edi, [ecx + eax]
lea eax, [ebp - 0x28]
push eax
push 0x1c
lea eax, [ebp - 0x50]
push eax
push 0
push edi
push ebx
call esi
test eax, eax
jge 0x100f1bf
cmp dword [0x10125b0], 0
je 0x100f2dd
push eax
push edi
push 0x1003710
jmp 0x100f226
xor edi, edi
push edi
push 0x2c
lea eax, [ebp - 0x7c]
push eax
push edi
call dword [sym.imp.ntdll.dll_NtQuerySystemInformation]
cmp eax, edi
jge 0x100f1f9
cmp dword [0x10125b0], edi
je 0x100f2dd
push eax
push 0x10036dc
push 0x10036c4
push 1
call fcn.0100ff93
add esp, 0x10
jmp 0x100f2dd
mov ecx, dword [ebp - 0x74]
mov dword [ebp - 0x2c], ecx
lea eax, [ecx - 1]
not eax
and eax, dword [ebp - 0x1c]
sub eax, ecx
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x20]
cmp eax, ecx
jae 0x100f230
cmp dword [0x10125b0], edi
je 0x100f2dd
push ecx
push eax
push 0x10036a4
push 0x10036c4
jmp 0x100f2d3
jbe 0x100f272
sub eax, ecx
mov dword [ebp - 0x30], eax
push 0xc000
lea eax, [ebp - 0x30]
push eax
lea eax, [ebp - 0x20]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtFreeVirtualMemory]
cmp eax, edi
jge 0x100f272
cmp dword [0x10125b0], edi
je 0x100f272
push eax
push dword [ebp - 0x20]
push 0x1003674
mov esi, 0x10036c4
push esi
push 1
call fcn.0100ff93
add esp, 0x14
jmp 0x100f277
mov esi, 0x10036c4
push 4
push 0x1000
lea eax, [ebp - 0x2c]
push eax
push edi
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtAllocateVirtualMemory]
cmp eax, edi
jge 0x100f2a5
cmp dword [0x10125b0], edi
je 0x100f2dd
push eax
push dword [ebp - 0x24]
push 0x1003640
jmp 0x100f2d2
lea eax, [ebp - 0x34]
push eax
push 0x104
lea eax, [ebp - 0x2c]
push eax
lea eax, [ebp - 0x24]
push eax
push ebx
call dword [sym.imp.ntdll.dll_NtProtectVirtualMemory]
cmp eax, edi
jge 0x100f2dd
cmp dword [0x10125b0], edi
je 0x100f2dd
push eax
push dword [ebp - 0x24]
push 0x100360c
push esi
push 1
call fcn.0100ff93
add esp, 0x14
lea esp, [ebp - 0x88]
call fcn.010092b3
ret
Function at 0x100f368
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x101203c]
mov dword [ebp - 4], eax
cmp dword [0x1012600], 0xffffffff
jne 0x100f3e4
lea eax, [ebp - 0x120]
push eax
mov dword [ebp - 0x120], 0x114
call dword [sym.imp.ntdll.dll_RtlGetVersion]
test eax, eax
jl 0x100f3bd
cmp dword [ebp - 0x11c], 5
jne 0x100f3da
cmp dword [ebp - 0x118], 0
jne 0x100f3da
mov dword [0x1012600], 0
jmp 0x100f3e4
cmp dword [0x10125b0], 0
je 0x100f3da
push 0x10037e4
push 0x10037d4
push 1
call fcn.0100ff93
add esp, 0xc
mov dword [0x1012600], 0x100
mov eax, dword [0x1012600]
mov ecx, dword [ebp - 4]
call fcn.01007b7f
leave
ret

Function at 0x100f3f8
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push esi
xor esi, esi
or dword [ebp - 4], 0xffffffff
push esi
push esi
push esi
push 1
push esi
push 0x80
push esi
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x2c]
push eax
push 0x120116
lea eax, [ebp - 4]
push eax
mov dword [ebp - 0x2c], 0x18
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], 0x40
mov dword [ebp - 0x24], 0x10125f8
mov dword [ebp - 0x1c], esi
mov dword [ebp - 0x18], esi
mov dword [ebp - 0xc], esi
mov dword [ebp - 8], esi
call dword [sym.imp.ntdll.dll_NtCreateFile]
cmp eax, esi
jl 0x100f4aa
cmp dword [ebp - 4], 0xffffffff
je 0x100f4aa
push 0x17
push 8
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp - 4]
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], esi
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, esi
jge 0x100f4a5
cmp dword [0x10125b0], esi
je 0x100f498
push eax
push 0x100383c
push 0x1003828
push 2
call fcn.0100ff93
add esp, 0x10
push dword [ebp - 4]
call dword [sym.imp.ntdll.dll_NtClose]
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp - 4]
jmp 0x100f4d1
cmp eax, 0xc0000034
je 0x100f4ce
cmp dword [0x10125b0], esi
je 0x100f4ce
push eax
push 0x10037fc
push 0x1003828
push 2
call fcn.0100ff93
add esp, 0x10
or eax, 0xffffffff
pop esi
leave
ret
Function at 0x100f4f9
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x2c
push ebx
xor ebx, ebx
push edi
xor eax, eax
lea edi, [ebp - 0x20]
mov dword [ebp - 0x24], ebx
stosd dword es:[edi], eax
mov eax, dword [ebp + 8]
cmp eax, ebx
mov dword [ebp - 8], 0xc0000001
mov dword [ebp - 0xc], ebx
jne 0x100f52d
call fcn.0100f3f8
mov dword [ebp - 0xc], 1
jmp 0x100f533
mov eax, dword [eax + 0x1b8]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x100f6a4
mov edi, dword [ebp + 0xc]
cmp edi, ebx
je 0x100f6a4
push esi
cmp byte [edi], bl
je 0x100f678
push 0x10038e0
push edi
call sub.ntdll.dll_strspn
add edi, eax
push 0x1002168
push edi
call sub.ntdll.dll_strpbrk
mov esi, eax
add esp, 0x10
cmp esi, ebx
jne 0x100f583
push edi
lea eax, [ebp - 0x14]
push eax
call dword [sym.imp.ntdll.dll_RtlInitAnsiString]
xor edi, edi
jmp 0x100f5a3
mov eax, esi
sub eax, edi
push 0x1002168
push esi
mov dword [ebp - 0x10], edi
mov word [ebp - 0x14], ax
mov word [ebp - 0x12], ax
call sub.ntdll.dll_strspn
pop ecx
add eax, esi
pop ecx
mov edi, eax
cmp word [ebp - 0x14], bx
je 0x100f646
push 1
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.ntdll.dll_RtlAnsiStringToUnicodeString]
cmp eax, ebx
mov dword [ebp - 8], eax
jl 0x100f650
mov eax, dword [ebp - 0x18]
cmp eax, ebx
je 0x100f5eb
cmp word [eax], bx
je 0x100f5eb
push 9
push eax
call fcn.01008306
cmp eax, ebx
pop ecx
pop ecx
je 0x100f5eb
mov word [eax], 0x20
inc eax
inc eax
jne 0x100f5cf
push ebx
lea eax, [ebp - 0x24]
push eax
movzx eax, word [ebp - 0x1c]
push eax
push dword [ebp - 0x18]
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push ebx
push dword [ebp - 4]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], ebx
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov esi, eax
lea eax, [ebp - 0x1c]
push eax
mov dword [ebp - 8], esi
call dword [sym.imp.ntdll.dll_RtlFreeUnicodeString]
cmp esi, ebx
jge 0x100f646
cmp dword [0x10125b0], ebx
je 0x100f63e
push esi
push 0x10038ac
push 0x1003898
push 2
call fcn.0100ff93
add esp, 0x10
cmp esi, 0xc000014b
je 0x100f671
cmp edi, ebx
jne 0x100f54b
jmp 0x100f678
cmp dword [0x10125b0], ebx
je 0x100f678
push dword [ebp - 8]
push 0x1003864
push 0x1003898
push 2
call fcn.0100ff93
add esp, 0x10
jmp 0x100f678
mov dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], ebx
pop esi
je 0x100f68a
push dword [ebp - 4]
call fcn.0100f4d9
or dword [ebp - 4], 0xffffffff
mov eax, dword [ebp + 8]
cmp eax, ebx
je 0x100f69a
mov ecx, dword [ebp - 4]
mov dword [eax + 0x1b8], ecx
xor eax, eax
cmp dword [ebp - 8], ebx
setge al
jmp 0x100f6a6
xor eax, eax
pop edi
pop ebx
leave
ret 8