joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6a5780
Capabilities:
Access peb ldr_data
Encode data using xor
Get kernel32 base address

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
mov eax, dword [ebp + 8]
xor ecx, ecx
mov byte [ebp - 0x1c], 0x47
mov byte [ebp - 0x1b], 0x4b
mov eax, dword [eax]
mov byte [ebp - 0x1a], 0x41
mov byte [ebp - 0x19], 0x30
mov byte [ebp - 0x18], 0x20
mov byte [ebp - 0x17], 7
mov byte [ebp - 0x16], 0x1b
mov byte [ebp - 0x15], 0xd8
mov byte [ebp - 0x14], 0xeb
mov byte [ebp - 0x13], 0xc5
mov byte [ebp - 0x12], 0xcf
mov byte [ebp - 0x11], 0xa9
mov byte [ebp - 0x10], 0xbe
mov byte [ebp - 0xf], 0x9a
mov byte [ebp - 0xe], 0xff
mov byte [ebp - 0xd], 0
mov cx, word [eax + 0x14]
push ebx
push esi
lea edx, [ecx + eax + 0x18]
push edi
mov dword [ebp - 8], edx
pushal
mov eax, dword fs:[0x30]
mov eax, dword [eax + 0xc]
mov eax, dword [eax + 0x1c]
mov eax, dword [eax]
mov eax, dword [eax + 8]
mov dword [ebp - 4], eax
popal
xor ecx, ecx
mov al, cl
mov dl, 0x11
inc al
mov bl, byte [ebp + ecx - 0x1c]
imul dl
xor bl, al
mov byte [ebp + ecx - 0x1c], bl
inc ecx
cmp ecx, 0x10
jb 0x6a57f3
mov ecx, dword [ebp - 4]
lea eax, [ebp - 0x1c]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov edx, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], 0
mov ebx, dword [edx]
cmp word [ebx + 6], 0
jbe 0x6a58cd
mov eax, dword [ebp - 8]
lea edi, [eax + 0x24]
mov eax, dword [edi]
mov ecx, eax
mov edx, eax
shr ecx, 0x1d
shr edx, 0x1e
mov esi, eax
and ecx, 1
and edx, 1
shr esi, 0x1f
test eax, 0x2000000
je 0x6a586c
mov ecx, dword [edi - 0x14]
mov edx, dword [edi - 0x1c]
push 0x4000
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x6a58b0
lea ecx, [edx + ecx*2]
test eax, 0x4000000
lea edx, [esi + ecx*2]
mov esi, dword [edx*4 + 0x696fb4]
je 0x6a5886
or esi, 0x200
mov edx, dword [edi - 0x14]
mov ecx, edx
test ecx, ecx
jne 0x6a58a1
test al, 0x40
je 0x6a5898
mov ecx, dword [ebx + 0x20]
jmp 0x6a589f
test al, 0x80
je 0x6a58b0
mov ecx, dword [ebx + 0x24]
test ecx, ecx
jbe 0x6a58b0
mov ecx, dword [edi - 0x1c]
lea eax, [ebp - 8]
push eax
push esi
push edx
push ecx
call dword [ebp - 0xc]
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 4]
xor ecx, ecx
inc eax
mov ebx, dword [edx]
add edi, 0x28
mov dword [ebp - 4], eax
mov cx, word [ebx + 6]
cmp eax, ecx
jl 0x6a5839
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x408ecc
nop
mov ecx, 0x1af45828
nop
nop
test eax, eax
nop
nop
nop
je 0x43004e
nop
nop
nop
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
inc eax
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x430024
nop
nop
mov eax, section..data
nop
mov ebx, 0x42e1d0
nop
mov ecx, 0x147a4519
nop
nop
nop
nop
nop
test eax, eax
je 0x430084
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x43006c
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x100b6b0
Capabilities:
Enumerate pe sections

Disassembly:
push 0x5c
push 0x10203e8
call fcn.0100be64
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 4], ebx
lea eax, [ebp - 0x6c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoW]
mov dword [ebp - 4], 0xfffffffe
mov dword [ebp - 4], 1
mov eax, dword fs:[0x18]
mov esi, dword [eax + 4]
mov dword [ebp - 0x20], ebx
mov edi, 0x1023a40
push ebx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedCompareExchange]
cmp eax, ebx
je 0x100b46b
cmp eax, esi
jne 0x100b45e
xor esi, esi
inc esi
mov dword [ebp - 0x20], esi
jmp 0x100b46e
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x100b445
xor esi, esi
inc esi
mov eax, dword [0x1023a3c]
cmp eax, esi
jne 0x100b481
push 0x1f
call fcn.0100be56
pop ecx
jmp 0x100b4b0
mov eax, dword [0x1023a3c]
test eax, eax
jne 0x100b4aa
mov dword [0x1023a3c], esi
push 0x100153c
push 0x1001530
call fcn.0100b3a7
pop ecx
pop ecx
test eax, eax
je 0x100b4b0
jmp 0x100b5d4
mov dword [0x1023408], esi
mov eax, dword [0x1023a3c]
cmp eax, esi
jne 0x100b4d4
push 0x100152c
push 0x1001518
call fcn.0100be4a
pop ecx
pop ecx
mov dword [0x1023a3c], 2
cmp dword [ebp - 0x20], ebx
jne 0x100b4e1
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
cmp dword [0x1023a50], ebx
je 0x100b502
push 0x1023a50
call fcn.0100bdd9
pop ecx
test eax, eax
je 0x100b502
push ebx
push 2
push ebx
call dword [0x1023a50]
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
cmp dword [eax], ebx
je 0x100b5d4
mov eax, dword [eax]
mov dword [ebp - 0x24], eax
movzx ecx, word [eax]
cmp cx, 0x20
ja 0x100b56c
cmp cx, bx
je 0x100b527
cmp dword [ebp - 0x1c], ebx
jne 0x100b56c
movzx ecx, word [eax]
cmp cx, bx
je 0x100b53c
cmp cx, 0x20
ja 0x100b53c
inc eax
inc eax
mov dword [ebp - 0x24], eax
jmp 0x100b527
test byte [ebp - 0x40], 1
je 0x100b548
movzx ecx, word [ebp - 0x3c]
jmp 0x100b54b
push 0xa
pop ecx
push ecx
push eax
push ebx
push 0x1000000
call main
mov dword [0x1023404], eax
cmp dword [0x10233f8], ebx
jne 0x100b5b1
push eax
call dword [sym.imp.msvcrt.dll_exit]
cmp cx, 0x22
jne 0x100b57d
xor ecx, ecx
cmp dword [ebp - 0x1c], ebx
sete cl
mov dword [ebp - 0x1c], ecx
inc eax
inc eax
jmp 0x100b511
cmp dword [0x1023408], ebx
jne 0x100b5bf
call dword [sym.imp.msvcrt.dll__cexit]
mov dword [ebp - 4], 0xfffffffe
mov eax, dword [0x1023404]
jmp 0x100b5e0
mov dword [ebp - 4], 0xfffffffe
mov eax, 0xff
call fcn.0100bea9
ret
call fcn.0100bf87
jmp 0x100b408
Function at 0x100fc4f
Capabilities:
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, 0xffff
push esi
mov esi, dword [ebp + 0xc]
mov eax, ebx
push edi
cmp cx, ax
je 0x100fcc7
mov eax, dword [esi + 0xc]
test al, 1
jne 0x100fc59
test al, al
jns 0x100fcc7
test al, 2
jne 0x100fcc7
test al, 0x40
jne 0x100fd1a
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x100fc9c
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x100fc9c
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
mov ebx, 0xffff
jmp 0x100fca1
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
test byte [eax + 4], 0x80
je 0x100fd17
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wctomb]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100fcd8
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x2a
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b8c5
leave
ret
mov ecx, dword [esi + 8]
add ecx, eax
cmp dword [esi], ecx
jae 0x100fcee
cmp dword [esi + 4], 0
jne 0x100fcc7
cmp eax, dword [esi + 0x18]
jg 0x100fcc7
mov dword [esi], ecx
lea ecx, [eax - 1]
test ecx, ecx
jl 0x100fd02
dec dword [esi]
dec ecx
mov dl, byte [ebp + ecx - 0xb]
mov edi, dword [esi]
mov byte [edi], dl
jns 0x100fcf5
add dword [esi + 4], eax
mov eax, dword [esi + 0xc]
and eax, 0xffffffef
or eax, 1
mov dword [esi + 0xc], eax
mov ax, word [ebp + 8]
jmp 0x100fcc9
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, 2
cmp dword [esi], eax
jae 0x100fd32
cmp dword [esi + 4], 0
jne 0x100fcc7
cmp dword [esi + 0x18], 2
jb 0x100fcc7
mov dword [esi], eax
add dword [esi], 0xfffffffe
test byte [esi + 0xc], 0x40
mov eax, dword [esi]
je 0x100fd4c
cmp word [eax], cx
je 0x100fd4f
add eax, 2
mov dword [esi], eax
jmp 0x100fcc7
mov word [eax], cx
mov eax, dword [esi + 0xc]
add dword [esi + 4], 2
and eax, 0xffffffef
or eax, 1
mov dword [esi + 0xc], eax
mov ax, cx
jmp 0x100fcc9
Function at 0x100fd47
Capabilities:
Delete directory
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x1023018]
xor eax, ebp
mov dword [ebp - 4], eax
mov ecx, dword [ebp + 8]
push ebx
mov ebx, 0xffff
push esi
mov esi, dword [ebp + 0xc]
mov eax, ebx
push edi
cmp cx, ax
je 0x100fcc7
mov eax, dword [esi + 0xc]
test al, 1
jne 0x100fc59
test al, al
jns 0x100fcc7
test al, 2
jne 0x100fcc7
test al, 0x40
jne 0x100fd1a
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x100fc9c
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x100fc9c
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
mov ebx, 0xffff
jmp 0x100fca1
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
test byte [eax + 4], 0x80
je 0x100fd17
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call dword [sym.imp.msvcrt.dll_wctomb]
pop ecx
pop ecx
cmp eax, 0xffffffff
jne 0x100fcd8
call dword [sym.imp.msvcrt.dll__errno]
mov dword [eax], 0x2a
mov eax, ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0100b8c5
leave
ret
mov ecx, dword [esi + 8]
add ecx, eax
cmp dword [esi], ecx
jae 0x100fcee
cmp dword [esi + 4], 0
jne 0x100fcc7
cmp eax, dword [esi + 0x18]
jg 0x100fcc7
mov dword [esi], ecx
lea ecx, [eax - 1]
test ecx, ecx
jl 0x100fd02
dec dword [esi]
dec ecx
mov dl, byte [ebp + ecx - 0xb]
mov edi, dword [esi]
mov byte [edi], dl
jns 0x100fcf5
add dword [esi + 4], eax
mov eax, dword [esi + 0xc]
and eax, 0xffffffef
or eax, 1
mov dword [esi + 0xc], eax
mov ax, word [ebp + 8]
jmp 0x100fcc9
mov ecx, dword [ebp + 8]
mov eax, dword [esi + 8]
add eax, 2
cmp dword [esi], eax
jae 0x100fd32
cmp dword [esi + 4], 0
jne 0x100fcc7
cmp dword [esi + 0x18], 2
jb 0x100fcc7
mov dword [esi], eax
add dword [esi], 0xfffffffe
test byte [esi + 0xc], 0x40
mov eax, dword [esi]
je 0x100fd4c
cmp word [eax], cx
je 0x100fd4f
add eax, 2
mov dword [esi], eax
jmp 0x100fcc7
mov word [eax], cx
mov eax, dword [esi + 0xc]
add dword [esi + 4], 2
and eax, 0xffffffef
or eax, 1
mov dword [esi + 0xc], eax
mov ax, cx
jmp 0x100fcc9
Function at 0x100fe3c
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
xor ebx, ebx
push edi
cmp esi, ebx
jne 0x100fda6
call dword [sym.imp.msvcrt.dll__errno]
push ebx
push ebx
push ebx
push ebx
push ebx
mov dword [eax], 0x16
call fcn.0100b8a2
add esp, 0x14
jmp 0x100fe90
mov eax, dword [esi + 0xc]
test al, 0x83
je 0x100fe90
test al, 0x40
jne 0x100fe90
test al, 2
je 0x100fdc8
or eax, 0x20
mov dword [esi + 0xc], eax
jmp 0x100fe90
or eax, 1
mov dword [esi + 0xc], eax
test eax, 0x10c
je 0x100fd88
push dword [esi + 0x18]
mov eax, dword [esi + 8]
mov edi, dword [sym.imp.msvcrt.dll__fileno]
push eax
push esi
mov dword [esi], eax
call edi
pop ecx
push eax
call dword [sym.imp.msvcrt.dll__read]
add esp, 0xc
mov dword [esi + 4], eax
cmp eax, ebx
je 0x100fe80
cmp eax, 1
je 0x100fe80
cmp eax, 0xffffffff
je 0x100fe80
test byte [esi + 0xc], 0x82
jne 0x100fe52
push esi
call edi
pop ecx
cmp eax, 0xffffffff
je 0x100fe3d
push esi
call edi
pop ecx
cmp eax, 0xfffffffe
je 0x100fe3d
push esi
call edi
mov ecx, dword [sym.imp.msvcrt.dll___pioinfo]
sar eax, 5
push esi
lea ebx, [ecx + eax*4]
call edi
and eax, 0x1f
imul eax, eax, 0x24
add eax, dword [ebx]
pop ecx
pop ecx
jmp 0x100fe42
mov eax, dword [sym.imp.msvcrt.dll___badioinfo]
mov al, byte [eax + 4]
and al, 0x82
cmp al, 0x82
jne 0x100fe52
or dword [esi + 0xc], 0x2000
cmp dword [esi + 0x18], 0x200
jne 0x100fe70
mov eax, dword [esi + 0xc]
test al, 8
je 0x100fe70
test eax, 0x400
jne 0x100fe70
mov dword [esi + 0x18], 0x1000
mov ecx, dword [esi]
add dword [esi + 4], 0xfffffffe
movzx eax, word [ecx]
add ecx, 2
mov dword [esi], ecx
jmp 0x100fe95
neg eax
sbb eax, eax
and eax, 0x10
add eax, 0x10
or dword [esi + 0xc], eax
mov dword [esi + 4], ebx
mov eax, 0xffff
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x100fec2
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
add eax, ecx
cmp eax, ecx
jb 0x100fed1
mov ecx, dword [ebp + 0x10]
mov dword [ecx], eax
xor eax, eax
jmp 0x100fedc
mov eax, dword [ebp + 0x10]
or dword [eax], 0xffffffff
mov eax, 0x80070216
pop ebp
ret 0xc
Function at 0x10103a8
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push edi
xor edi, edi
push edi
push dword [ebp + 8]
mov dword [ebp - 8], edi
mov dword [ebp - 4], edi
call fcn.0101138c
mov ebx, eax
cmp ebx, edi
je 0x1010418
push esi
push 0x2000
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x10103e4
mov eax, dword [ebp + 0xc]
and al, 1
movsx eax, al
push edi
push 0x2200000
neg eax
push 3
sbb eax, eax
push edi
and eax, 0xfffffff9
add eax, 7
push eax
push 0x10000
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x10103d3
push 0xd
push 1
lea eax, [ebp + 0xb]
push eax
lea eax, [ebp - 0x10]
push eax
push esi
mov byte [ebp + 0xb], 1
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
cmp eax, edi
jge 0x10103c3
push eax
call dword [sym.imp.ntdll.dll_RtlNtStatusToDosError]
mov dword [ebp - 4], eax
jmp 0x10103ca
mov dword [ebp - 8], 1
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1010408
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1001bf8
jmp 0x10103f3
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push dword [ebp + 8]
push 0x1001b70
push 0x3000000
push 0x102373c
mov dword [ebp - 4], eax
call fcn.0100a7d5
add esp, 0x14
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
pop esi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, dword [ebp - 8]
pop edi
pop ebx
leave
ret 8

Function at 0x1010540
Capabilities:
Copy file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push ebx
push esi
xor esi, esi
xor ebx, ebx
cmp eax, esi
je 0x1010595
xor ecx, ecx
cmp cx, word [eax]
je 0x1010595
push edi
push esi
push eax
call fcn.0101138c
mov edi, eax
cmp edi, esi
je 0x1010590
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101055e
test al, 0x10
je 0x101055e
inc ebx
jmp 0x1010579
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
test esi, esi
jne 0x1010571
mov esi, 0x10b
cmp esi, 2
jne 0x1010579
push 3
pop esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, ebx
pop edi
jmp 0x101059f
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 4
Function at 0x10106d1
Capabilities:
Check if file exists
Get file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
cmp ebx, edi
je 0x1010717
xor eax, eax
cmp ax, word [ebx]
je 0x1010717
mov esi, dword [ebp + 0xc]
cmp esi, edi
je 0x1010717
push edi
push ebx
call fcn.0101138c
test eax, eax
je 0x10106f0
push edi
push 0x2200000
push 3
push edi
push 7
push edi
push ebx
mov dword [esi], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x1010704
mov esi, 0x4000
push esi
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov ebx, eax
cmp ebx, edi
je 0x10106be
push edi
lea eax, [ebp - 8]
push eax
push esi
push ebx
push edi
push edi
push 0x900a8
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x10106be
mov eax, dword [ebx]
mov ecx, dword [ebp + 0xc]
mov dword [ecx], eax
jmp 0x10106d2
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0x1f
cmp eax, edi
je 0x10106d2
mov dword [ebp - 4], eax
cmp ebx, edi
je 0x10106e5
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x1010704
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], 0x1f
cmp eax, edi
je 0x1010704
mov dword [ebp - 4], eax
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
cmp dword [ebp - 4], edi
sete al
jmp 0x1010721
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8

Function at 0x1010950
Capabilities:
Get common file path
Set current directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
xor edi, edi
cmp esi, edi
je 0x10109ae
xor eax, eax
cmp ax, word [esi]
je 0x10109ae
push ebx
push edi
push esi
call fcn.0101138c
mov ebx, eax
test ebx, ebx
je 0x10109a9
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x101098a
mov ecx, 0x2000
test ecx, eax
je 0x101097e
inc edi
jmp 0x101098a
or eax, ecx
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
mov edi, eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
push 0
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push esi
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop ebx
jmp 0x10109b8
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop edi
pop esi
pop ebp
ret 4
Function at 0x1010ea6
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 0x10]
test esi, esi
jne 0x1010e99
mov eax, 0x80070057
jmp 0x1010ee1
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.0101420c
mov dword [esi], eax
test eax, eax
je 0x1010eae
xor eax, eax
jmp 0x1010ee1
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetLastError]
push edi
call ebx
mov edi, 0xffff
mov esi, 0x80070000
test eax, eax
jle 0x1010ecc
and eax, edi
or eax, esi
test eax, eax
jge 0x1010eda
call ebx
test eax, eax
jle 0x1010edf
and eax, edi
or eax, esi
jmp 0x1010edf
mov eax, 0x80004005
pop edi
pop ebx
pop esi
pop ebp
ret 0xc
Function at 0x101220b
Capabilities:
Get disk information

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x10122b7
cmp ax, word [ebx]
je 0x10122b7
push ebx
call fcn.01010524
test eax, eax
jne 0x10121c1
push ebx
push 0x1002b20
push 0x2000000
push 0x102373c
call fcn.0100a7d5
add esp, 0x10
push 3
jmp 0x10122d0
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 1
push 0x1002af8
call fcn.01014c2b
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0x1002ad0
call fcn.01014c2b
mov dword [ebp - 0x14], eax
mov edi, 0x102373c
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
test eax, eax
jbe 0x101221e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1002a50
push 0x4000000
push edi
call fcn.0100a7d5
add esp, 0x14
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
call fcn.01012022
mov esi, eax
cmp esi, 1
je 0x1012239
cmp dword [ebp - 4], 0
jne 0x1012242
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test esi, esi
jne 0x1012278
cmp dword [ebp - 8], 3
jae 0x101225e
cmp dword [ebp - 4], 0x4c7
je 0x101225e
cmp dword [ebp - 4], 0x800704c7
jne 0x10121ee
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push 0x10029c8
push 0x2000000
push edi
call fcn.0100a7d5
add esp, 0x18
cmp dword [ebp + 8], 1
jne 0x1012290
cmp dword [ebp - 0xc], 0
jne 0x1012290
push 0
push 0x1002af8
call fcn.01014cd1
cmp dword [ebp - 0x14], 1
jne 0x10122a8
cmp dword [ebp - 0x10], 0
jne 0x10122a8
push 0
push 0x1002ad0
call fcn.01014cd1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
jmp 0x10122d8
push 0x1002980
push 0x2000000
push 0x102373c
call fcn.0100a7d5
add esp, 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x10
Function at 0x1012251
Capabilities:
Enumerate files on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
xor eax, eax
push ebx
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], eax
cmp ebx, eax
je 0x10122b7
cmp ax, word [ebx]
je 0x10122b7
push ebx
call fcn.01010524
test eax, eax
jne 0x10121c1
push ebx
push 0x1002b20
push 0x2000000
push 0x102373c
call fcn.0100a7d5
add esp, 0x10
push 3
jmp 0x10122d0
push esi
push edi
lea eax, [ebp - 0xc]
push eax
push 1
push 0x1002af8
call fcn.01014c2b
mov dword [ebp + 8], eax
lea eax, [ebp - 0x10]
push eax
push 1
push 0x1002ad0
call fcn.01014c2b
mov dword [ebp - 0x14], eax
mov edi, 0x102373c
mov eax, dword [ebp - 8]
inc dword [ebp - 8]
test eax, eax
jbe 0x101221e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push ebx
push 0x1002a50
push 0x4000000
push edi
call fcn.0100a7d5
add esp, 0x14
push 0x3e8
call dword [sym.imp.KERNEL32.dll_Sleep]
mov edx, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov esi, dword [ebp + 0xc]
call fcn.01012022
mov esi, eax
cmp esi, 1
je 0x1012239
cmp dword [ebp - 4], 0
jne 0x1012242
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
test esi, esi
jne 0x1012278
cmp dword [ebp - 8], 3
jae 0x101225e
cmp dword [ebp - 4], 0x4c7
je 0x101225e
cmp dword [ebp - 4], 0x800704c7
jne 0x10121ee
push dword [ebp - 4]
push dword [ebp - 8]
push ebx
push 0x10029c8
push 0x2000000
push edi
call fcn.0100a7d5
add esp, 0x18
cmp dword [ebp + 8], 1
jne 0x1012290
cmp dword [ebp - 0xc], 0
jne 0x1012290
push 0
push 0x1002af8
call fcn.01014cd1
cmp dword [ebp - 0x14], 1
jne 0x10122a8
cmp dword [ebp - 0x10], 0
jne 0x10122a8
push 0
push 0x1002ad0
call fcn.01014cd1
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
jmp 0x10122d8
push 0x1002980
push 0x2000000
push 0x102373c
call fcn.0100a7d5
add esp, 0xc
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop ebx
leave
ret 0x10

Function at 0x10126c0
Capabilities:
Get disk information via ioctl

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push esi
xor esi, esi
mov dword [ebp - 4], esi
cmp dword [ebp + 8], esi
je 0x10126ea
cmp dword [ebp + 8], 0xffffffff
je 0x10126ea
push edi
push esi
lea eax, [ebp - 4]
push eax
push esi
push esi
push esi
push esi
push 0x560028
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov eax, edi
pop edi
jmp 0x10126f4
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
leave
ret 4