joyce8/EMBER2024-capa huggingface dataset:
Function at 0x44fd60
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x45b27c
mov eax, dword fs:[0]
push eax
sub esp, 0xdc
push ebp
push esi
push edi
mov eax, dword [0x477b9c]
xor eax, esp
push eax
lea eax, [esp + 0xec]
mov dword fs:[0], eax
mov eax, dword [esp + 0xfc]
push eax
lea ecx, [esp + 0x2c]
call fcn.004019d8
xor esi, esi
mov dword [esp + 0xf4], esi
mov dword [esp + 0x10], esi
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
movzx ecx, word [0x477b18]
push esi
push ecx
lea ecx, [esp + 0x30]
mov byte [esp + 0xfc], 1
xor edi, edi
call fcn.0044b6f0
mov ebp, eax
cmp ebp, 0xffffffff
je 0x44fe89
mov edx, ebp
sub edx, edi
add edx, 1
push edx
push edi
lea eax, [esp + 0x60]
push eax
lea ecx, [esp + 0x34]
mov dword [esp + 0x4c], esi
mov dword [esp + 0x50], esi
mov dword [esp + 0x5c], esi
mov dword [esp + 0x60], esi
mov dword [esp + 0x54], esi
mov dword [esp + 0x58], esi
call fcn.0044c030
push eax
lea ecx, [esp + 0x14]
mov byte [esp + 0xf8], 2
call fcn.0044b8d0
mov ecx, dword [esp + 0x68]
push ecx
mov byte [esp + 0xf8], 1
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x64]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
lea eax, [esp + 0x48]
push eax
lea ecx, [esp + 0x1c]
push ecx
call fcn.0044e0d0
add esp, 0x10
test eax, eax
je 0x44fe69
lea edx, [esp + 0x10]
push edx
call fcn.0044ee60
add esp, 4
test eax, eax
jne 0x44fecd
movzx eax, word [0x477b18]
lea edi, [ebp + 1]
push edi
push eax
lea ecx, [esp + 0x30]
call fcn.0044b6f0
mov ebp, eax
cmp ebp, 0xffffffff
jne 0x44fde5
mov ecx, dword [esp + 0x20]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov edx, dword [esp + 0x1c]
push edx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov eax, dword [esp + 0x40]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x3c]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 0x10
mov ecx, dword [esp + 0xec]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
add esp, 0xe8
ret
push esi
push 0xffffffffffffffff
push str._could_be_created__for_path
lea ecx, [esp + 0x98]
call fcn.0044b840
push esi
push 0xffffffffffffffff
push str.no_path
lea ecx, [esp + 0x64]
mov byte [esp + 0x100], 3
call fcn.0044b840
lea ecx, [esp + 0x10]
push ecx
lea edx, [esp + 0x5c]
push edx
lea eax, [esp + 0xdc]
push eax
mov byte [esp + 0x100], 4
call fcn.00406100
lea ecx, [esp + 0x98]
push ecx
push eax
lea edx, [esp + 0xd0]
push edx
mov byte [esp + 0x10c], 5
call fcn.00406100
lea ecx, [esp + 0x40]
push ecx
push eax
lea edx, [esp + 0xc4]
push edx
mov byte [esp + 0x118], 6
call fcn.00406100
add esp, 0x24
push eax
lea ecx, [esp + 0x78]
mov byte [esp + 0xf8], 7
mov dword [esp + 0x74], vtable.RSException.0
call fcn.004019d8
push 0x469dd4
lea eax, [esp + 0x74]
push eax
call sub.MSVCR80.dll__CxxThrowException
int3
Function at 0x4503d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x45b341
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
mov eax, dword [0x477b9c]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
xor ebp, ebp
mov dword [esp + 0x14], ebp
mov esi, dword [esp + 0x40]
mov dword [esi], ebp
mov dword [esi + 4], ebp
mov dword [esi + 8], ebp
mov dword [esi + 0xc], ebp
mov dword [esi + 0x10], ebp
mov dword [esi + 0x14], ebp
lea ebx, [ecx + 0x254]
mov ecx, ebx
mov dword [esp + 0x38], ebp
mov dword [esp + 0x14], 1
call fcn.0044b2e0
cmp dword [ebx + 4], ebp
jbe 0x4504ab
mov ecx, ebx
call fcn.0044b2e0
mov eax, dword [ebx + 4]
lea edi, [eax - 1]
movzx eax, word [0x477b18]
push eax
mov ecx, ebx
call fcn.0044ce60
test eax, eax
je 0x450453
sub edi, 1
movzx ecx, word [0x477b18]
push edi
push ecx
mov ecx, ebx
call fcn.0044b7d0
cmp eax, 0xffffffff
jne 0x45046c
xor eax, eax
jmp 0x45046f
add eax, 1
sub edi, eax
add edi, 1
push edi
push eax
lea edx, [esp + 0x20]
push edx
mov ecx, ebx
call fcn.0044c030
push 0xffffffffffffffff
push eax
mov ecx, esi
mov dword [esp + 0x40], 1
call fcn.0044b3f0
mov eax, dword [esp + 0x28]
push eax
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
mov ecx, dword [esp + 0x24]
push ecx
call sub.MSVCR80.dll_void___cdecl_operator_delete_void__
add esp, 8
mov eax, esi
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x28
ret 4
Function at 0x450f60
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x477b9c]
jne 0x450f6a
repz ret
jmp fcn.00451720
Function at 0x552ea0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0x18]
call fcn.00553120
shr eax, 8
pop ecx
test al, al
je 0x552eb9
pop ebp
jmp fcn.0055263c
pop ebp
jmp fcn.00551f64

Function at 0x552ec0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push ebx
mov ebx, dword [esp + 0x74]
lea eax, [esp + 0x20]
push ebp
push esi
push edi
push 0x34
push dword [esp + 0x7c]
mov edi, ebx
mov ebp, ebx
sub edi, dword [esp + 0x70]
sub ebp, dword [esp + 0x84]
push eax
mov dword [esp + 0x30], edi
call fcn.0056f420
xor esi, esi
add esp, 0xc
cmp dword [esp + 0x70], esi
jbe 0x55300b
mov ecx, dword [esp + 0x6c]
mov edx, ebx
movzx eax, byte [ecx + esi*2]
mov dword [esp + 0x14], eax
movzx eax, byte [ecx + esi*2 + 1]
mov ecx, dword [esp + 0x68]
sub edx, eax
mov dword [esp + 0x28], eax
sub ecx, edx
mov dword [esp + 0x18], edx
mov eax, dword [esp + eax*4 + 0x2c]
mov dword [esp + 0x10], eax
xor eax, eax
inc eax
shl eax, cl
mov dword [esp + 0x1c], eax
mov eax, dword [esp + 0x68]
sub eax, edx
mov dword [esp + 0x20], eax
cmp eax, ebp
jb 0x552f97
xor eax, eax
add edx, edi
inc eax
cmp edx, eax
cmovl edx, eax
mov eax, dword [esp + 0x74]
mov ecx, dword [eax + edx*4]
mov eax, dword [esp + 0x14]
push eax
mov eax, dword [esp + 0x74]
sub eax, ecx
push ebx
push eax
mov eax, dword [esp + 0x78]
lea eax, [eax + ecx*2]
mov ecx, dword [esp + 0x24]
push eax
imul eax, ecx, 0x34
push edx
add eax, dword [esp + 0x8c]
push eax
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push dword [esp + 0x3c]
lea eax, [ecx + eax*4]
push eax
call fcn.00553014
mov edx, dword [esp + 0x40]
add esp, 0x24
jmp 0x552ff8
mov eax, dword [esp + 0x14]
movzx eax, ax
mov dword [esp + 0x20], eax
lea eax, [esp + 0x20]
push 2
push eax
lea eax, [esp + 0x84]
push eax
call fcn.0056f420
mov ecx, dword [esp + 0x24]
xor eax, eax
mov edx, dword [esp + 0x28]
inc eax
mov byte [esp + 0x8a], cl
add esp, 0xc
mov ecx, dword [esp + 0x10]
mov byte [esp + 0x7f], al
lea eax, [edx + ecx]
cmp ecx, eax
jae 0x552ff8
mov ebx, dword [esp + 0x64]
mov ecx, edx
mov edi, dword [esp + 0x10]
mov eax, dword [esp + 0x7c]
lea edi, [ebx + edi*4]
mov ebx, dword [esp + 0x80]
rep stosd dword es:[edi], eax
mov edi, dword [esp + 0x24]
mov eax, dword [esp + 0x28]
add dword [esp + eax*4 + 0x2c], edx
inc esi
cmp esi, dword [esp + 0x70]
jb 0x552efd
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x56f370
Capabilities:
Encode data using xor

Disassembly:
push ecx
mov edx, dword [esp + 8]
push ebx
push esi
mov esi, dword [esp + 0x1c]
mov ebx, dword [edx]
mov eax, dword [edx + 4]
test esi, esi
jle 0x56f3d6
push ebp
mov ebp, dword [esp + 0x18]
sub ebp, dword [esp + 0x1c]
mov dword [esp + 0xc], esi
mov esi, dword [esp + 0x1c]
push edi
inc bl
movzx ebx, bl
mov cl, byte [edx + ebx + 8]
add al, cl
movzx eax, al
mov dword [esp + 0x18], eax
mov edi, dword [esp + 0x18]
mov al, byte [edx + eax + 8]
mov byte [edx + ebx + 8], al
add al, cl
movzx eax, al
mov byte [edx + edi + 8], cl
mov cl, byte [eax + edx + 8]
mov eax, edi
xor cl, byte [esi + ebp]
mov byte [esi], cl
inc esi
sub dword [esp + 0x10], 1
jne 0x56f396
mov esi, dword [esp + 0x24]
pop edi
pop ebp
mov dword [edx + 4], eax
mov eax, esi
pop esi
mov dword [edx], ebx
pop ebx
pop ecx
ret

Function at 0x56f9d0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x3c]
mov dword [ebp - 0x1c], edx
mov eax, 8
imul ecx, eax, 0
mov edx, dword [ebp - 0x1c]
lea eax, [edx + ecx + 0x78]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
cmp dword [ecx], 0
jne 0x56fa09
xor eax, eax
jmp 0x56fae5
mov edx, dword [ebp - 0x14]
mov eax, dword [ebp + 8]
add eax, dword [edx]
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], 0xffffffff
mov eax, dword [ebp + 0xc]
cdq
and eax, 0xffff0000
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], edx
mov ecx, dword [ebp - 0x30]
or ecx, dword [ebp - 0x2c]
jne 0x56fa40
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 0xc]
sub eax, dword [edx + 0x10]
mov dword [ebp - 0xc], eax
jmp 0x56fab6
mov dword [ebp - 0x10], 0xffffffff
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
add edx, dword [ecx + 0x20]
mov dword [ebp - 0x20], edx
mov dword [ebp - 8], 0
jmp 0x56fa65
mov eax, dword [ebp - 8]
add eax, 1
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx + 0x18]
jae 0x56fa97
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp - 8]
mov edx, dword [ebp - 0x20]
mov eax, dword [ebp + 8]
add eax, dword [edx + ecx*4]
push eax
call fcn.0056f5f0
add esp, 8
test eax, eax
jne 0x56fa95
mov ecx, dword [ebp - 8]
mov dword [ebp - 0x10], ecx
jmp 0x56fa97
jmp 0x56fa5c
cmp dword [ebp - 0x10], 0
jl 0x56fab6
mov edx, dword [ebp - 4]
mov eax, dword [ebp + 8]
add eax, dword [edx + 0x24]
mov dword [ebp - 0x24], eax
mov ecx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x24]
movzx eax, word [edx + ecx*2]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0xffffffff
je 0x56fac7
mov ecx, dword [ebp - 4]
mov edx, dword [ebp - 0xc]
cmp edx, dword [ecx + 0x14]
jb 0x56facb
xor eax, eax
jmp 0x56fae5
mov eax, dword [ebp - 4]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + 0x1c]
mov dword [ebp - 0x28], ecx
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp + 8]
add ecx, dword [eax + edx*4]
mov eax, ecx
mov esp, ebp
pop ebp
ret 8
Function at 0x1004ab3
Capabilities:
Create thread

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push esi
push edi
xor esi, esi
push esi
push esi
push esi
push esi
mov edi, ecx
xor ebx, ebx
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [edi + 0x34], eax
cmp eax, esi
je 0x1004ae8
lea eax, [ebp - 4]
push eax
push esi
push edi
push 0x1004a6b
push esi
push esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov ebx, eax
cmp dword [edi + 0x34], esi
je 0x1004af6
cmp ebx, esi
je 0x1004af6
xor eax, eax
inc eax
jmp 0x1004af8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1004f14
Capabilities:
Accept command line arguments

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x1c
push edi
xor edi, edi
push edi
push edi
push 1
push edi
call dword [sym.imp.KERNEL32.dll_HeapSetInformation]
call dword [sym.imp.KERNEL32.dll_GetCommandLineW]
push edi
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
jl 0x1004fd3
call fcn.010108af
test eax, eax
jl 0x1004fcd
push ebx
push 0x1001ccc
push dword [ebp + 8]
mov ebx, 0x102e63c
push 0x102e008
mov ecx, ebx
call fcn.01004910
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, ebx
mov dword [0x102e66c], eax
call fcn.01004ab3
push 5
push 4
mov ecx, ebx
call fcn.01004e29
test eax, eax
jl 0x1004fba
call dword [sym.imp.ole32.dll_CoResumeClassObjects]
test eax, eax
jl 0x1004fb3
push esi
mov esi, dword [sym.imp.USER32.dll_GetMessageW]
jmp 0x1004fa5
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
push edi
push edi
push edi
lea eax, [ebp - 0x1c]
push eax
call esi
test eax, eax
jne 0x1004f9b
pop esi
mov ecx, ebx
call fcn.01004e72
push 0x7d0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov ecx, ebx
call fcn.01004dd0
pop ebx
call dword [sym.imp.ole32.dll_CoUninitialize]
xor eax, eax
pop edi
leave
ret 0x10

Function at 0x1005535
Capabilities:
Set registry value

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ebx, ecx
test esi, esi
jne 0x1005550
push 0x80004005
call fcn.010051e4
xor edi, edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
inc eax
lea ecx, [eax + eax]
add esi, ecx
add edi, ecx
cmp eax, 1
jne 0x1005552
push edi
push dword [ebp + 0xc]
push 7
push 0
push dword [ebp + 8]
push dword [ebx]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x1005b7e
Capabilities:
Query or enumerate registry key

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x224
mov eax, dword [0x102e050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov eax, ecx
mov ecx, dword [ebp + 8]
push 0x2001f
push ecx
push dword [eax]
xor esi, esi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], esi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], esi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], esi
call fcn.01005493
mov edi, eax
cmp edi, esi
je 0x1005bf0
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.01005420
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.01007c80
leave
ret 4
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
jmp 0x1005c0e
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.01005b7e
cmp eax, esi
jne 0x1005c59
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push esi
push esi
push esi
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push esi
push dword [ebp - 0x214]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], 0x100
call edi
test eax, eax
je 0x1005bf8
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.01005420
push dword [ebp - 0x21c]
mov ecx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
call fcn.0100539a
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
mov esi, eax
call fcn.01005420
mov eax, esi
jmp 0x1005be0
Function at 0x1006e76
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x418
mov eax, dword [0x102e050]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
xor edi, edi
push 2
push edi
push eax
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], ecx
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edi
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edi
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
cmp eax, edi
jne 0x1006ed1
call fcn.01005299
mov esi, eax
jmp 0x1006fb2
push ebx
push esi
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
cmp esi, edi
jne 0x1006eea
call fcn.01005299
jmp 0x1006fa4
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov ebx, eax
cmp ebx, edi
je 0x1006ee0
push esi
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov esi, eax
lea eax, [esi + 1]
cmp eax, esi
jae 0x1006f4f
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
je 0x1006f2c
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.01005b1d
mov esi, 0x8007000e
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.01005a2c
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007c80
leave
ret 0x10
push eax
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.01006079
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], edi
jne 0x1006f6a
mov esi, 0x8007000e
jmp 0x1006fa6
push esi
push dword [ebp - 0x408]
push esi
push ebx
push edi
push 3
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
cmp eax, edi
je 0x1006ee0
mov edx, dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree]
push dword [ebp + 0x14]
xor ecx, ecx
mov word [edx + eax*2], cx
push dword [ebp - 0x408]
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.01006d39
mov esi, eax
push dword [ebp - 0x40c]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
cmp dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
je 0x1006f31
lea ecx, reloc.NETAPI32.dll_NetApiBufferFree
call fcn.01005b1d
jmp 0x1006f31
Function at 0x10077e0
Capabilities:
Check os version

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x98
mov eax, dword [0x102e050]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, ecx
call fcn.01007775
mov eax, 0x1000000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x98]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.msvcrt.dll_memset
add esp, 0xc
lea eax, [ebp - 0x98]
push eax
mov dword [ebp - 0x98], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x88], 2
jne 0x1007853
cmp dword [ebp - 0x94], 5
jb 0x1007874
jmp 0x1007870
cmp dword [ebp - 0x88], 1
jne 0x1007874
cmp dword [ebp - 0x94], 4
ja 0x1007870
jne 0x1007874
cmp dword [ebp - 0x90], 0
jbe 0x1007874
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x1001b40
call fcn.01003df8
test eax, eax
jge 0x1007895
mov byte [0x102e5fc], 1
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.01007c80
leave
ret

Function at 0x10095c7
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
xor ebx, ebx
push esi
mov esi, 0x80070057
cmp dword [ebp + 8], ebx
je 0x100963b
push edi
mov edi, dword [sym.imp.KERNEL32.dll_GetTempPathW]
push ebx
push ebx
call edi
cmp eax, ebx
je 0x1009633
lea esi, [eax + eax]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
pop ecx
test ebx, ebx
je 0x100962c
push ebx
push esi
call edi
cmp eax, esi
jae 0x100961c
mov ecx, dword [ebp + 8]
push ebx
call fcn.0101d352
jmp 0x1009621
call fcn.01005299
push ebx
mov esi, eax
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
jmp 0x100963a
mov esi, 0x8007000e
jmp 0x100963a
call fcn.01005299
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 4

Function at 0x1009648
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes
Move file
Set file attributes

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x80070057
test esi, esi
je 0x10096bf
push ebx
push esi
xor edi, edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov ebx, eax
cmp ebx, reloc.NETAPI32.dll_NetApiBufferFree
je 0x1009680
test bl, 1
je 0x100968b
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
jne 0x100968b
call fcn.01005299
mov edi, eax
test edi, edi
jl 0x10096be
push esi
test bl, 0x10
je 0x1009699
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
jmp 0x100969f
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
neg eax
sbb eax, eax
inc eax
test eax, eax
je 0x10096be
push 4
push 0
push esi
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x10096be
call fcn.01005299
mov edi, eax
pop ebx
mov eax, edi
pop edi
pop esi
pop ebp
ret 4
Function at 0x100a54d
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, 0x80070057
test esi, esi
je 0x100a590
push esi
call fcn.0101eb6c
mov edi, eax
test edi, edi
jl 0x100a590
mov esi, dword [esi + 4]
push 0
push esi
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100a590
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100a590
call fcn.01005299
mov edi, eax
mov eax, edi
pop edi
pop esi
pop ebp
ret 4

Function at 0x100a59d
Capabilities:
Create directory

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
push edi
mov edi, 0x80070057
test eax, eax
je 0x100a691
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x100a5b6
sub eax, edx
sar eax, 1
cmp dword [ebp + 0xc], eax
jae 0x100a691
push ebx
push esi
lea esi, [eax + 1]
xor ecx, ecx
push 2
pop edx
mov eax, esi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
mov edi, ebx
neg edi
sbb edi, edi
and edi, 0x7ff8fff2
add edi, 0x8007000e
pop ecx
js 0x100a68f
push dword [ebp + 8]
push esi
push ebx
call fcn.0100a4de
mov edi, eax
mov eax, dword [ebp + 0xc]
lea esi, [ebx + eax*2]
test esi, esi
je 0x100a65d
test edi, edi
jl 0x100a65d
push 0x5c
push esi
call dword [sym.imp.msvcrt.dll_wcschr]
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x100a65d
xor eax, eax
push eax
push ebx
mov word [esi], ax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100a653
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100a653
call fcn.01005299
mov edi, eax
push 0x5c
pop eax
mov word [esi], ax
inc esi
inc esi
jne 0x100a619
cmp dword [ebp + 0x10], 0
je 0x100a688
test edi, edi
jl 0x100a688
push 0
push ebx
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x100a688
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x100a688
call fcn.01005299
mov edi, eax
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop esi
pop ebx
mov eax, edi
pop edi
pop ebp
ret 0xc
Function at 0x100a69d
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x260
mov eax, dword [0x102e050]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
mov esi, 0x80070057
test ebx, ebx
je 0x100a805
lea ecx, [ebp - 0xc]
call fcn.0101ce9b
push ebx
lea eax, [ebp - 0xc]
push 0x100203c
push eax
call fcn.0101d4ed
mov esi, eax
add esp, 0xc
test esi, esi
jl 0x100a7fd
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - reloc.NETAPI32.dll_NetApiBufferFree], eax
cmp eax, reloc.NETAPI32.dll_NetApiBufferFree
jne 0x100a712
call fcn.01005299
mov esi, eax
test esi, esi
jl 0x100a7fd
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push ebx
lea eax, [ebp - 0xc]
push 0x100202c
push eax
call fcn.0101d4ed
mov esi, eax
add esp, 0x10
test esi, esi
jl 0x100a7e5
test byte [ebp - 0x25c], 0x10
je 0x100a7bc
mov ecx, 0x1002028
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100a76f
test dx, dx
je 0x100a76b
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100a76f
add eax, 4
add ecx, 4
test dx, dx
jne 0x100a749
xor eax, eax
jmp 0x100a774
sbb eax, eax
sbb eax, reloc.NETAPI32.dll_NetApiBufferFree
test eax, eax
je 0x100a7c6
mov ecx, 0x1002020
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
mov dx, word [eax]
cmp dx, word [ecx]
jne 0x100a7a9
test dx, dx
je 0x100a7a5
mov dx, word [eax + 2]
cmp dx, word [ecx + 2]
jne 0x100a7a9
add eax, 4
add ecx, 4
test dx, dx
jne 0x100a783
xor eax, eax
jmp 0x100a7ae
sbb eax, eax
sbb eax, reloc.NETAPI32.dll_NetApiBufferFree
test eax, eax
je 0x100a7c6
push dword [ebp - 8]
call fcn.0100a69d
jmp 0x100a7c4
push dword [ebp - 8]
call fcn.01009648
mov esi, eax
test esi, esi
jl 0x100a7e5
lea eax, reloc.NETAPI32.dll_NetApiBufferFree
push eax
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100a712
push dword [ebp - 0x260]
call dword [sym.imp.KERNEL32.dll_FindClose]
test esi, esi
jl 0x100a7fd
push ebx
call fcn.01009648
mov esi, eax
lea ecx, [ebp - 0xc]
call fcn.0101cff5
mov ecx, dword [ebp - 4]
mov eax, esi
pop esi
xor ecx, ebp
pop ebx
call fcn.01007c80
leave
ret 4