joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1019cfc0
Capabilities:
Access peb ldr_data
Enumerate pe sections

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10266f20
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push esi
mov esi, dword [esp + 0x24]
push edi
mov ecx, esi
xor edi, edi
call fcn.100a3050
cmp eax, 0x1c
jb 0x1019d148
mov ecx, esi
call fcn.100a3750
mov ebx, eax
mov al, byte [ebx + 6]
cmp al, 2
ja 0x1019d166
cmp al, 1
je 0x1019d014
test al, al
je 0x1019d014
xor eax, eax
mov ah, byte [ebx + 5]
jmp 0x1019d016
xor eax, eax
xor ecx, ecx
mov cl, byte [ebx + 4]
add ecx, eax
je 0x1019d180
push ebp
mov ebp, dword [esp + 0x30]
mov dword [esp + 0x34], edi
lea edi, [ebx + 0x1a]
mov al, byte [ebx + 6]
cmp al, 1
je 0x1019d041
test al, al
je 0x1019d041
xor eax, eax
mov ah, byte [ebx + 5]
jmp 0x1019d043
xor eax, eax
xor edx, edx
mov dl, byte [ebx + 4]
add edx, eax
mov eax, dword [esp + 0x34]
cmp eax, edx
jge 0x1019d130
mov eax, dword [esp + 0x38]
lea esi, [edi - 0x12]
push eax
push 1
push esi
call fcn.1019e6d0
mov eax, dword [0x1026c87c]
add esp, 0xc
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], eax
mov dword [esp + 0x18], eax
xor ecx, ecx
xor edx, edx
mov cl, byte [edi - 0x10]
mov dx, word [edi]
shl ecx, 0x10
mov dword [esp + 0x24], 0
lea eax, [ecx + edx]
test eax, eax
je 0x1019d0c4
lea esi, [eax + ebx]
push 0xfde9
lea ecx, [esp + 0x18]
lea eax, [esi + 8]
push eax
call fcn.10093090
xor ecx, ecx
push 0xfde9
mov cx, word [esi + 4]
lea edx, [ecx + esi + 9]
lea ecx, [esp + 0x1c]
push edx
call fcn.10093090
mov esi, dword [ebp + 4]
push 0xffffffffffffffff
mov ecx, ebp
lea eax, [esi + 1]
push eax
call fcn.1019ecd0
mov edx, dword [ebp]
mov eax, dword [esp + 0x10]
lea ecx, [esi + esi*2]
lea esi, [edx + ecx*4]
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esi + 4]
mov dword [esi], eax
call fcn.1008ee20
lea edx, [esp + 0x18]
lea ecx, [esi + 8]
push edx
call fcn.1008ee20
lea ecx, [esp + 0x18]
mov dword [esp + 0x24], 1
call fcn.1008ec90
lea ecx, [esp + 0x14]
mov dword [esp + 0x24], 0xffffffff
call fcn.1008ec90
mov ecx, dword [esp + 0x34]
inc ecx
add edi, 0x14
mov dword [esp + 0x34], ecx
jmp 0x1019d02f
pop ebp
pop edi
pop esi
mov eax, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov eax, dword [esp + 0x30]
mov dword [eax], 1
mov eax, edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x30]
mov eax, edi
mov dword [ecx], edi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov edx, dword [esp + 0x30]
mov ecx, dword [esp + 0x18]
mov eax, edi
pop edi
mov dword [edx], 1
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x1019e6d0
Capabilities:
Print debug messages

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x838
test edx, edx
push ebx
je 0x1019e844
mov ebx, dword [esp + 0x848]
test ebx, ebx
je 0x1019e844
mov eax, dword [esp + 0x844]
push ebp
mov ebp, dword [edx + 4]
push esi
test eax, eax
push edi
mov dword [esp + 0x10], 1
mov dword [esp + 0x14], 2
mov dword [esp + 0x18], 4
mov dword [esp + 0x1c], 8
mov dword [esp + 0x20], 0x20
mov dword [esp + 0x24], 0x40
mov dword [esp + 0x28], 0x80
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x30], 0x200
mov dword [esp + 0x34], 0x400
mov dword [esp + 0x38], 0x800
mov dword [esp + 0x3c], 0x1000
mov dword [esp + 0x40], 0x100000
mov dword [esp + 0x44], 0x200000
je 0x1019e7bb
lea esi, [esp + 0x10]
mov edi, 7
cmp ebx, 1
jne 0x1019e79d
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
je 0x1019e793
not eax
and eax, ecx
mov dword [edx + 4], eax
jmp 0x1019e7b3
mov eax, dword [esi + 4]
or eax, ecx
mov dword [edx + 4], eax
jmp 0x1019e7b3
cmp ebx, 2
jne 0x1019e7b3
mov eax, dword [edx + 4]
mov ecx, dword [esi]
test eax, ecx
jne 0x1019e7b3
mov ecx, dword [esi + 4]
or ecx, eax
mov dword [edx + 4], ecx
add esi, 8
dec edi
jne 0x1019e77c
jmp 0x1019e7f4
lea esi, [esp + 0x14]
mov edi, 7
cmp ebx, 1
jne 0x1019e7d9
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
jne 0x1019e7e7
mov eax, dword [esi - 4]
or eax, ecx
jmp 0x1019e7eb
cmp ebx, 2
jne 0x1019e7ee
mov eax, dword [esi]
mov ecx, dword [edx + 4]
test ecx, eax
je 0x1019e7ee
not eax
and eax, ecx
mov dword [edx + 4], eax
add esi, 8
dec edi
jne 0x1019e7c4
mov ecx, 0x1ff
xor eax, eax
lea edi, [esp + 0x4a]
mov word [esp + 0x48], 0
rep stosd dword es:[edi], eax
mov ecx, dword [edx + 4]
mov edx, dword [esp + 0x850]
push ecx
push ebp
stosw word es:[edi], ax
push edx
lea eax, [esp + 0x54]
push str.CFilePolicyMgr::ChangeTwoState_bSet__d__dwOldPolicy_0x_x__dwPolicy_0x_x_
push eax
call fcn.10078071
add esp, 0x14
lea ecx, [esp + 0x48]
push ecx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x838
ret
xor eax, eax
pop ebx
add esp, 0x838
ret
Function at 0x1019f030
Capabilities:
Get user security identifier

Disassembly:
mov eax, dword [0x1030d9a4]
sub esp, 0x120
push ebx
xor ebx, ebx
push ebp
cmp eax, ebx
push edi
jne 0x1019f07c
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x1c]
rep stosd dword es:[edi], eax
lea eax, [esp + 0x18]
mov dword [esp + 0x18], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, 2
jne 0x1019f077
mov dword [0x1030d9a8], eax
mov dword [0x1030d9a4], eax
cmp dword [0x1030d9a8], ebx
jne 0x1019f090
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ebp, dword [esp + 0x130]
mov edi, dword [esp + 0x134]
lea ecx, [esp + 0x14]
lea edx, [esp + 0x10]
push ecx
push edx
lea eax, [esp + 0x14]
push ebx
push eax
push ebx
push ebp
push ebx
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
mov dword [edi], ebx
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
test eax, eax
jne 0x1019f0dc
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
je 0x1019f0dc
pop edi
pop ebp
xor eax, eax
pop ebx
add esp, 0x120
ret
mov ecx, dword [esp + 0xc]
push esi
push ecx
call fcn.1024ac71
mov edx, dword [esp + 0x18]
mov dword [edi], eax
lea eax, [edx + edx]
push eax
call fcn.1024ac71
mov esi, eax
mov eax, dword [edi]
add esp, 8
test eax, eax
je 0x1019f121
test esi, esi
je 0x1019f132
lea ecx, [esp + 0x18]
lea edx, [esp + 0x14]
push ecx
push edx
lea ecx, [esp + 0x18]
push esi
push ecx
push eax
push ebp
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov ebx, eax
test esi, esi
je 0x1019f12e
push esi
call fcn.1024ac9a
add esp, 4
test ebx, ebx
jne 0x1019f141
mov edi, dword [edi]
test edi, edi
je 0x1019f141
push edi
call fcn.1024ac9a
add esp, 4
pop esi
pop edi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x120
ret
Function at 0x1019f850
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10267118
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x150
mov eax, dword [0x1030d94c]
push ebx
push esi
xor esi, esi
push edi
cmp eax, esi
mov dword [ebp - 0x10], esp
jne 0x1019fa3b
push 1
push 0x1030d958
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push esi
push esi
push 1
push 0x1030d958
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
lea ecx, [ebp - 0x34]
mov dword [0x1030d970], 0xc
mov dword [0x1030d978], esi
mov dword [0x1030d974], 0x1030d958
call fcn.101c1360
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], esi
call fcn.10249f30
mov eax, dword [0x1030d9ac]
mov byte [ebp - 4], 1
cmp eax, esi
mov dword [ebp - 0x24], str.S_1_1_0
mov dword [ebp - 0x20], str.S_1_15_2_1
mov dword [ebp - 0x1c], str.S_1_15_2_2
mov ebx, 3
jne 0x1019f951
mov ecx, 0x44
xor eax, eax
lea edi, [ebp - 0x158]
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x15c]
mov dword [ebp - 0x15c], 0x114
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov eax, dword [ebp - 0x14c]
mov ecx, 2
cmp eax, ecx
jne 0x1019f947
mov eax, dword [ebp - 0x158]
cmp eax, 6
ja 0x1019f93d
jne 0x1019f947
cmp dword [ebp - 0x154], ecx
jb 0x1019f947
mov dword [0x1030d9b0], 1
mov dword [0x1030d9ac], 1
cmp dword [0x1030d9b0], esi
jne 0x1019f95e
mov ebx, 1
cmp ebx, esi
jle 0x1019f9a5
lea esi, [ebp - 0x24]
mov edi, ebx
mov ecx, dword [esi]
push ecx
lea ecx, [ebp - 0x14]
call fcn.101b9de0
mov edx, dword [ebp - 0x30]
push eax
push edx
lea ecx, [ebp - 0x34]
mov byte [ebp - 4], 2
call fcn.101c1ac0
lea ecx, [ebp - 0x14]
mov byte [ebp - 4], 1
call fcn.101ba650
mov eax, dword [ebp - 0x40]
push 0xffffffffffffffff
push eax
lea ecx, [ebp - 0x48]
call fcn.1024a154
add esi, 4
dec edi
jne 0x1019f967
xor esi, esi
lea ecx, [ebp - 0x48]
lea edx, [ebp - 0x34]
push ecx
push edx
push 0x1030d990
mov byte [ebp - 4], 3
call fcn.1019f410
add esp, 0xc
cmp eax, esi
jne 0x1019f9f9
lea eax, [ebp - 0x18]
push 0x102a2fb0
push eax
mov dword [ebp - 0x18], esi
call fcn.10077331
push 1
push 0x1030d990
call dword [sym.imp.ADVAPI32.dll_InitializeSecurityDescriptor]
push 0
push 0
push 1
push 0x1030d990
call dword [sym.imp.ADVAPI32.dll_SetSecurityDescriptorDacl]
mov eax, 0x1019f9f7
ret
mov eax, 1
lea ecx, [ebp - 0x48]
mov dword [ebp - 4], eax
mov dword [0x1030d980], 0xc
mov dword [0x1030d988], esi
mov dword [0x1030d984], 0x1030d990
mov dword [0x1030d94c], eax
mov byte [ebp - 4], 0
call fcn.10249f63
lea ecx, [ebp - 0x34]
mov dword [ebp - 4], 0xffffffff
call fcn.101c1370
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x101a0d80
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x102671bf
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [0x1026c87c]
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, 9
lea edi, [esp + 0x16]
mov ebx, dword [esp + 0x50]
mov word [esp + 0x14], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
lea edx, [esp + 0x14]
push 0xa
push edx
shr eax, 0x18
push eax
mov dword [esp + 0x50], 1
call fcn.10078ccd
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.1008f8e0
push 0x102bb328
lea ecx, [esp + 0x10]
call fcn.1008f8e0
xor edx, edx
lea ecx, [esp + 0x14]
mov dl, byte [esp + 0x52]
push 0xa
push ecx
push edx
call fcn.10078ccd
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.1008f8e0
push 0x102bb328
lea ecx, [esp + 0x10]
call fcn.1008f8e0
xor ecx, ecx
lea eax, [esp + 0x14]
push 0xa
mov cl, bh
push eax
push ecx
call fcn.10078ccd
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.1008f8e0
push 0x102bb328
lea ecx, [esp + 0x10]
call fcn.1008f8e0
lea edx, [esp + 0x14]
push 0xa
and ebx, 0xff
push edx
push ebx
call fcn.10078ccd
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.1008f8e0
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.1008e290
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.1008ec90
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret

Function at 0x101a0ff0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x1026721f
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
mov ecx, dword [0x1026c87c]
push ebx
xor eax, eax
push esi
push edi
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], ecx
mov ecx, 9
lea edi, [esp + 0x16]
mov ebx, dword [esp + 0x50]
mov word [esp + 0x14], ax
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
mov eax, ebx
lea edx, [esp + 0x14]
push 0xa
push edx
shr eax, 0x18
push eax
mov dword [esp + 0x50], 1
call fcn.10078ccd
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.1008f8e0
push 0x102bb328
lea ecx, [esp + 0x10]
call fcn.1008f8e0
xor edx, edx
lea ecx, [esp + 0x14]
mov dl, byte [esp + 0x52]
push 0xa
push ecx
push edx
call fcn.10078ccd
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.1008f8e0
push 0x102bb328
lea ecx, [esp + 0x10]
call fcn.1008f8e0
xor ecx, ecx
lea eax, [esp + 0x14]
push 0xa
mov cl, bh
push eax
push ecx
call fcn.10078ccd
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.1008f8e0
push 0x102bb328
lea ecx, [esp + 0x10]
call fcn.1008f8e0
lea edx, [esp + 0x14]
push 0xa
and ebx, 0xff
push edx
push ebx
call fcn.10078ccd
add esp, 0xc
lea ecx, [esp + 0xc]
push eax
call fcn.1008f8e0
mov esi, dword [esp + 0x4c]
lea eax, [esp + 0xc]
push eax
mov ecx, esi
call fcn.1008e290
mov dword [esp + 0x10], 1
lea ecx, [esp + 0xc]
mov byte [esp + 0x44], 0
call fcn.1008ec90
mov eax, esi
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret
Function at 0x101a2cf0
Capabilities:
Initialize winsock library
Resolve dns

Disassembly:
push 0xffffffffffffffff
push 0x1026750b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x1a0
push ebx
push ebp
mov ebp, dword [esp + 0x1bc]
push esi
push edi
xor esi, esi
push 0xffffffffffffffff
push esi
mov ecx, ebp
call fcn.1009c0f0
lea ecx, [esp + 0x10]
call fcn.1009c0d0
push 0xffffffffffffffff
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c0], esi
call fcn.1009c0f0
mov ebx, dword [esp + 0x1c0]
cmp ebx, esi
jne 0x101a2d50
xor edi, edi
jmp 0x101a2e1f
cmp dword [0x1030d9b8], esi
jne 0x101a2d8a
mov ecx, 0x63
xor eax, eax
lea edi, [esp + 0x22]
mov word [esp + 0x20], si
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
lea eax, [esp + 0x20]
push eax
push 0x101
call dword [sym.imp.WS2_32.dll_WSAStartup]
cmp eax, esi
jne 0x101a2d8a
mov dword [0x1030d9b8], 1
push ebx
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x101a2dc5
mov ecx, dword [ebx + 0xc]
mov esi, 1
mov eax, dword [ecx]
test eax, eax
je 0x101a2dc5
xor edi, edi
mov eax, dword [eax]
mov edx, dword [esp + 0x14]
push eax
push edx
lea ecx, [esp + 0x18]
call fcn.1009c310
mov eax, dword [ebx + 0xc]
add edi, 4
mov eax, dword [eax + edi]
test eax, eax
jne 0x101a2da7
test esi, esi
mov edi, esi
je 0x101a2e1f
push 0xffffffffffffffff
push 0
mov ecx, ebp
call fcn.1009c0f0
mov eax, dword [esp + 0x14]
xor esi, esi
test eax, eax
jle 0x101a2e1f
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + esi*4]
mov ecx, eax
mov edx, eax
and ecx, 0xff0000
shr edx, 0x10
or ecx, edx
mov edx, eax
shl edx, 0x10
and eax, 0xff00
or edx, eax
mov eax, dword [ebp + 4]
shr ecx, 8
shl edx, 8
or ecx, edx
push ecx
push eax
mov ecx, ebp
call fcn.1009c310
mov eax, dword [esp + 0x14]
inc esi
cmp esi, eax
jl 0x101a2de0
lea ecx, [esp + 0x10]
mov dword [esp + 0x1b8], 0xffffffff
call fcn.1009c0e0
mov ecx, dword [esp + 0x1b0]
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x1ac
ret
Function at 0x101ab650
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xc
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
mov esi, 0x8000
push edi
cmp eax, esi
mov dword [esp + 0x14], esi
jbe 0x101ab66e
mov dword [esp + 0x14], eax
mov esi, eax
push esi
call fcn.1024ac71
mov ecx, esi
mov ebx, eax
mov edx, ecx
xor eax, eax
mov edi, ebx
mov ebp, dword [esp + 0x24]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
add esp, 4
and ecx, 3
mov dword [esp + 0x10], ebx
rep stosb byte es:[edi], al
mov edi, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
jne 0x101ab6ad
xor ebx, ebx
jmp 0x101ab6ca
lea eax, [esp + 0x24]
push 0
push eax
push esi
push ebx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101ab6c6
or ebx, 0xffffffff
jmp 0x101ab6ca
mov ebx, dword [esp + 0x24]
push 0
push 0
push edi
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov eax, dword [esp + 0x2c]
test eax, eax
je 0x101ab71d
mov edx, dword [esp + 0x28]
lea ecx, [esp + 0x24]
push 0
push ecx
push eax
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101ab702
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0x24]
cmp ecx, eax
je 0x101ab719
mov ecx, dword [esp + 0x10]
push ecx
call fcn.1024ac9a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
mov eax, dword [esp + 0x2c]
cmp ebx, esi
jae 0x101ab742
test ebx, ebx
je 0x101ab816
mov eax, dword [esp + 0x10]
lea edx, [esp + 0x2c]
push 0
push edx
push ebx
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
jmp 0x101ab816
lea ecx, [ebx + edi]
add edi, eax
push esi
mov dword [esp + 0x28], ecx
mov dword [esp + 0x30], edi
call fcn.1024ac71
mov ecx, esi
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [esp + 0x24], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
jmp 0x101ab776
mov esi, dword [esp + 0x14]
mov eax, dword [esp + 0x24]
mov ecx, dword [esp + 0x2c]
cmp ecx, eax
jg 0x101ab7b5
push 0
push 0
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test esi, esi
je 0x101ab7b5
mov ecx, dword [esp + 0x20]
lea eax, [esp + 0x28]
push 0
push eax
push esi
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101ab7af
or esi, 0xffffffff
jmp 0x101ab7b7
mov esi, dword [esp + 0x28]
jmp 0x101ab7b7
xor esi, esi
mov edx, dword [esp + 0x2c]
push 0
push 0
push edx
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test ebx, ebx
je 0x101ab7df
mov ecx, dword [esp + 0x10]
lea eax, [esp + 0x18]
push 0
push eax
push ebx
push ecx
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
mov edx, dword [esp + 0x2c]
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x10]
add edx, ebx
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x20]
add edi, esi
mov dword [esp + 0x10], edx
test esi, esi
mov dword [esp + 0x24], edi
mov dword [esp + 0x20], eax
mov ebx, esi
jg 0x101ab772
push eax
call fcn.1024ac9a
add esp, 4
mov eax, dword [esp + 0x10]
push eax
call fcn.1024ac9a
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret
Function at 0x101ab830
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
jne 0x101ab853
or ebx, eax
jmp 0x101ab855
mov ebx, eax
push 2
push 0
push 0
push esi
call edi
cmp eax, 0xffffffff
mov dword [esp + 0x1c], 0xffffffff
je 0x101ab86f
mov dword [esp + 0x1c], eax
push 0
push ebx
push esi
call fcn.101abb70
mov eax, dword [esp + 0x28]
mov ebp, dword [esp + 0x2c]
mov ecx, dword [esp + 0x30]
sub eax, ebp
sub ecx, ebp
add esp, 0xc
cmp ecx, eax
mov dword [esp + 0x20], ecx
jl 0x101ab897
mov dword [esp + 0x20], eax
push 0x8000
call fcn.1024ac71
mov ebx, eax
add esp, 4
mov ecx, 0x2000
xor eax, eax
mov edi, ebx
rep stosd dword es:[edi], eax
mov eax, dword [esp + 0x20]
push 0
push 0
lea ecx, [eax + ebp]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea edx, [esp + 0x24]
push 0
push edx
push 0x8000
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x101ab8e1
or eax, 0xffffffff
jmp 0x101ab91d
mov edi, dword [esp + 0x24]
mov eax, edi
test edi, edi
mov dword [esp + 0x14], eax
jle 0x101ab91d
push 0
push 0
push ebp
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
test edi, edi
je 0x101ab919
lea eax, [esp + 0x10]
push 0
push eax
push edi
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x101ab928
cmp dword [esp + 0x10], edi
jne 0x101ab928
mov eax, dword [esp + 0x14]
add ebp, eax
cmp eax, 0x8000
jne 0x101ab93b
jmp 0x101ab8b1
push ebx
call fcn.1024ac9a
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x20]
push 0
sub eax, ecx
push 0
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push esi
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
push ebx
call fcn.1024ac9a
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x101ab970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x102679fb
push eax
mov dword fs:[0], esp
sub esp, 0x120
push ebx
mov ebx, dword [esp + 0x134]
push ebp
xor ebp, ebp
push esi
cmp ebx, ebp
push edi
je 0x101abb14
push ebx
call fcn.10076fb2
add esp, 4
test eax, eax
je 0x101abb14
push ebx
lea ecx, [esp + 0x18]
call fcn.1008e4f0
mov esi, dword [esp + 0x144]
mov dword [esp + 0x138], ebp
cmp esi, ebp
je 0x101ab9e1
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101abb00
neg esi
sbb esi, esi
mov dword [esp + 0x18], ebp
mov ebp, dword [sym.imp.KERNEL32.dll_CreateFileW]
and esi, 0xc0000000
add esi, 0xc0000000
or edi, 0xffffffff
cmp edi, 0xffffffff
jne 0x101abab4
mov eax, dword [esp + 0x18]
test eax, eax
je 0x101aba17
push 0x32
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x102eb830]
cmp eax, 0xffffffff
jne 0x101aba52
mov ecx, 0x44
xor eax, eax
lea edi, [esp + 0x20]
rep stosd dword es:[edi], eax
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], 0x114
push ecx
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
mov ecx, dword [esp + 0x2c]
xor eax, eax
cmp ecx, 2
sete al
mov dword [0x102eb830], eax
test eax, eax
je 0x101aba6b
push 0
push 0x80
push 4
push 0
push 1
push esi
push ebx
call ebp
mov edi, eax
jmp 0x101aba99
push ebx
lea ecx, [esp + 0x14]
call fcn.100891b0
mov edx, dword [esp + 0x10]
push 0
push 0x80
push 4
push 0
push 1
push esi
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
lea ecx, [esp + 0x10]
mov edi, eax
call fcn.10089910
mov eax, dword [esp + 0x18]
inc eax
cmp eax, 3
mov dword [esp + 0x18], eax
jl 0x101ab9fe
cmp edi, 0xffffffff
je 0x101abb4a
mov esi, dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 1
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x101abacc
or ebp, eax
jmp 0x101abace
mov ebp, eax
push 2
push 0
push 0
push edi
call esi
cmp eax, 0xffffffff
jne 0x101abae0
or ebx, eax
jmp 0x101abae2
mov ebx, eax
push 0
push 0
push ebp
push edi
call esi
test ebx, ebx
jne 0x101abb4a
mov eax, dword [esp + 0x144]
test eax, eax
je 0x101abb30
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.1008ec90
or eax, 0xffffffff
mov ecx, dword [esp + 0x130]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x12c
ret
lea eax, [esp + 0x10]
push 2
push eax
push 0
push edi
mov dword [esp + 0x20], 0xfeff
call fcn.101ab650
add esp, 0x10
lea ecx, [esp + 0x14]
mov dword [esp + 0x138], 0xffffffff
call fcn.1008ec90
mov eax, edi
jmp 0x101abb17
Function at 0x101ac7b0
Capabilities:
Get disk information

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x10267ac0
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push ebp
push esi
mov esi, dword [esp + 0x34]
push edi
push 0xffffffffffffffff
push 0
mov ecx, esi
call fcn.10094620
mov edi, dword [esp + 0x3c]
push 0xffffffffffffffff
push 0
mov ecx, edi
call fcn.10094620
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebp, eax
mov eax, dword [0x1030dfd0]
test eax, eax
je 0x101ac868
cmp ebp, eax
jne 0x101ac868
mov eax, dword [0x1030dfd4]
test eax, eax
je 0x101ac868
cmp ebx, eax
jb 0x101ac868
add eax, 0x493e0
cmp eax, ebx
jb 0x101ac868
mov ebp, dword [0x1030dfd8]
push 1
inc ebp
push 0x1030def0
lea ecx, [esp + 0x18]
mov dword [0x1030dfd8], ebp
call fcn.1009cf30
push 0x1030df20
mov ecx, esi
mov dword [esp + 0x34], 0
call fcn.10094800
push 0x1030df10
mov ecx, edi
call fcn.10094800
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x10]
jmp 0x101ac8de
push edi
push esi
mov dword [0x1030dfd8], 0
call fcn.101acbe0
add esp, 8
lea ecx, [esp + 0x1c]
push 1
push 0x1030def0
call fcn.1009cf30
push 0xffffffffffffffff
push 0
mov ecx, 0x1030df20
mov dword [esp + 0x38], 1
mov dword [0x1030dfd0], ebp
mov dword [0x1030dfd4], ebx
call fcn.10094620
push esi
mov ecx, 0x1030df20
call fcn.10094800
push 0xffffffffffffffff
push 0
mov ecx, 0x1030df10
call fcn.10094620
push edi
mov ecx, 0x1030df10
call fcn.10094800
mov dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x1c]
call fcn.1009cf90
mov ecx, dword [esp + 0x28]
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
mov dword fs:[0], ecx
add esp, 0x24
ret