joyce8/EMBER2024-capa huggingface dataset:
Function at 0x409650
Capabilities:
Terminate thread

Disassembly:
cmp dword [0x425c58], 0
je 0x4096af
mov eax, dword [0x425c5c]
push 0
push 0
push 0x12
push eax
call dword [sym.imp.USER32.dll_PostThreadMessageA]
mov ecx, dword [0x425c58]
push 0x2328
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x409696
mov edx, dword [0x425c58]
push 0x8ae
push edx
call dword [sym.imp.KERNEL32.dll_TerminateThread]
mov eax, dword [0x425c58]
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push eax
call esi
mov ecx, dword [0x425c60]
push ecx
call esi
pop esi
mov dword [0x425c58], 0
ret

Function at 0x409da6
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4244e0]
jne 0x409db0
repz ret
jmp fcn.0040d98d

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

Disassembly:
push esi
xor esi, esi
cmp dword [esp + 8], esi
jne 0x40ab69
call fcn.0040a07c
mov dword [eax], esi
call fcn.0040a069
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0040f2c1
add esp, 0x14
push 0x16
pop eax
pop esi
ret
test dword [esp + 0xc], 0xfffffff9
jne 0x40ab45
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x40ab98
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0040a08f
pop ecx
call fcn.0040a069
mov eax, dword [eax]
pop esi
ret
test al, 0x10
jne 0x40abbf
test al, 1
je 0x40abbf
test byte [esp + 0xc], 2
je 0x40abbf
call fcn.0040a07c
mov dword [eax], 5
call fcn.0040a069
mov dword [eax], 0xd
jmp 0x40ab8f
xor eax, eax
pop esi
ret
Function at 0x415385
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.0040ec4e
xor ebx, ebx
cmp dword [0x4267b4], ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
mov dword [ebp - 0xc], ebx
jne 0x41545a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
jne 0x4153c5
xor eax, eax
jmp 0x41551e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x4153be
push eax
call fcn.0040ebeb
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4267b4], eax
call esi
push eax
call fcn.0040ebeb
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4267b8], eax
call esi
push eax
call fcn.0040ebeb
mov dword [0x4267bc], eax
lea eax, [ebp - 8]
push eax
call fcn.0040a762
test eax, eax
pop ecx
pop ecx
je 0x415428
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f1c5
add esp, 0x14
cmp dword [ebp - 8], 2
jne 0x41545a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040ebeb
cmp eax, ebx
pop ecx
mov dword [0x4267c4], eax
je 0x41545a
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040ebeb
pop ecx
mov dword [0x4267c0], eax
mov eax, dword [0x4267c0]
mov esi, dword [ebp - 0x10]
cmp eax, esi
je 0x4154d3
cmp dword [0x4267c4], esi
je 0x4154d3
push eax
call fcn.0040ec57
pop ecx
call eax
cmp eax, ebx
je 0x4154a0
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
push dword [0x4267c4]
call fcn.0040ec57
pop ecx
call eax
test eax, eax
je 0x4154a0
test byte [ebp - 0x18], 1
jne 0x4154d3
lea eax, [ebp - 0xc]
push eax
call fcn.0040a799
test eax, eax
pop ecx
je 0x4154bb
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040f1c5
add esp, 0x14
cmp dword [ebp - 0xc], 4
jb 0x4154ca
or dword [ebp + 0x10], 0x200000
jmp 0x415504
or dword [ebp + 0x10], 0x40000
jmp 0x415504
mov eax, dword [0x4267b8]
cmp eax, esi
je 0x415504
push eax
call fcn.0040ec57
pop ecx
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x415504
mov eax, dword [0x4267bc]
cmp eax, esi
je 0x415504
push dword [ebp - 4]
push eax
call fcn.0040ec57
pop ecx
call eax
mov dword [ebp - 4], eax
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
push dword [0x4267b4]
call fcn.0040ec57
pop ecx
call eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x8606b0
Capabilities:
Packed with generic packer

Disassembly:
pushal
mov esi, section.UPX1
lea edi, [esi - 0x1d1000]
push edi
or ebp, 0xffffffff
jmp 0x8606d2
mov al, byte [esi]
inc esi
mov byte [edi], al
inc edi
add ebx, ebx
jne 0x8606d9
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x8606c8
mov eax, 1
add ebx, ebx
jne 0x8606eb
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
add ebx, ebx
jae 0x8606fc
jne 0x86071b
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86071b
dec eax
add ebx, ebx
jne 0x860708
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc eax, eax
jmp 0x8606e0
add ebx, ebx
jne 0x860717
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
jmp 0x86076d
xor ecx, ecx
sub eax, 3
jb 0x860733
shl eax, 8
mov al, byte [esi]
inc esi
xor eax, 0xffffffff
je 0x8607a2
sar eax, 1
mov ebp, eax
jmp 0x86073e
add ebx, ebx
jne 0x86073e
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86070c
inc ecx
add ebx, ebx
jne 0x86074c
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jb 0x86070c
add ebx, ebx
jne 0x860759
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
adc ecx, ecx
add ebx, ebx
jae 0x86074e
jne 0x86076a
mov ebx, dword [esi]
sub esi, 0xfffffffc
adc ebx, ebx
jae 0x86074e
add ecx, 2
cmp ebp, 0xfffffb00
adc ecx, 2
lea edx, [edi + ebp]
cmp ebp, 0xfffffffc
jbe 0x86078c
mov al, byte [edx]
inc edx
mov byte [edi], al
inc edi
dec ecx
jne 0x86077e
jmp 0x8606ce
mov eax, dword [edx]
add edx, 4
mov dword [edi], eax
add edi, 4
sub ecx, 4
ja 0x86078c
add edi, ecx
jmp 0x8606ce
pop esi
mov edi, esi
mov ecx, 0x69aa
mov al, byte [edi]
inc edi
sub al, 0xe8
cmp al, 1
ja 0x8607aa
cmp byte [edi], 0x21
jne 0x8607aa
mov eax, dword [edi]
mov bl, byte [edi + 4]
shr ax, 8
rol eax, 0x10
xchg ah, al
sub eax, edi
sub bl, 0xe8
add eax, esi
mov dword [edi], eax
add edi, 5
mov al, bl
loop 0x8607af
lea edi, [esi + 0x457000]
mov eax, dword [edi]
or eax, eax
je 0x860827
mov ebx, dword [edi + 4]
lea eax, [eax + esi + 0x464b94]
add ebx, esi
push eax
add edi, 8
call dword [esi + 0x464cd4]
xchg ebp, eax
mov al, byte [edi]
inc edi
or al, al
je 0x8607dc
mov ecx, edi
jns 0x86080b
movzx eax, word [edi]
inc edi
push eax
inc edi
mov ecx, 0xaef24857
push edi
dec eax
repne scasb al, byte es:[edi]
push ebp
call dword [esi + 0x464cd8]
or eax, eax
je 0x860821
mov dword [ebx], eax
add ebx, 4
jmp 0x8607f9
call dword [esi + 0x464ce8]
add edi, 4
lea ebx, [esi - 4]
xor eax, eax
mov al, byte [edi]
inc edi
or eax, eax
je 0x860858
cmp al, 0xef
ja 0x86084b
add ebx, eax
mov eax, dword [ebx]
xchg ah, al
rol eax, 0x10
xchg ah, al
add eax, esi
mov dword [ebx], eax
jmp 0x86082d
and al, 0xf
shl eax, 0x10
mov ax, word [edi]
add edi, 2
jmp 0x86083a
mov ebp, dword [esi + 0x464cdc]
lea edi, [esi - 0x1000]
mov ebx, 0x1000
push eax
push esp
push 4
push ebx
push edi
call ebp
lea eax, [edi + 0x20f]
and byte [eax], 0x7f
and byte [eax + 0x28], 0x7f
pop eax
push eax
push esp
push eax
push ebx
push edi
call ebp
pop eax
popal
lea eax, [esp - 0x80]
push 0
cmp esp, eax
jne 0x86088c
sub esp, 0xffffff80
jmp 0x4af4a0
Function at 0x10004f70
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1006e3e8]
sub esp, 0x30
push ebx
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x10004fbd
lea eax, [ebp - 0x14]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x10004fb3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10004fb3
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x10004fbd
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.10004760
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x10004fd3
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x18], 8
mov ebx, eax
jb 0x10004fee
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp ebx, 0xffffffff
je 0x10005000
test bl, 0x10
jne 0x10005000
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret

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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
mov esi, ecx
cmp dword [esi + 0x14], 8
jb 0x10006341
mov esi, dword [esi]
cmp dword [0x1006e3e8], 0xffffffff
jne 0x1000637c
lea eax, [ebp - 0x14]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x10006372
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1006e3e8], 0x3a8
cmp eax, 0x57
je 0x1000637c
mov dword [0x1006e3e8], 0xd698
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
pop esi
setne al
mov esp, ebp
pop ebp
ret

Function at 0x100064e0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x1006e3e8], 0xffffffff
push esi
push edi
mov esi, edx
mov edi, ecx
jne 0x10006527
lea eax, [ebp - 0x14]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1000651d
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1006e3e8], 0x3a8
cmp eax, 0x57
je 0x10006527
mov dword [0x1006e3e8], 0xd698
push 0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_CopyFileW]
test eax, eax
pop edi
setne al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x10006a70
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x7c
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], 0
push edi
test esi, esi
je 0x10006ae9
mov eax, dword [0x1006e3e8]
cmp eax, 0xffffffff
jne 0x10006ac9
lea eax, [ebp - 0x18]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x10006abf
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10006abf
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x10006ac9
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
mov edx, esi
lea ecx, [ebp - 0x78]
call fcn.10004760
add esp, 4
lea ecx, [ebp - 0x60]
push eax
call fcn.10002140
mov esi, eax
mov ebx, 3
jmp 0x10006b03
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
lea esi, [ebp - 0x48]
mov word [ebp - 0x48], ax
lea ebx, [eax + 4]
xor eax, eax
mov dword [ebp - 0x1c], 7
mov dword [ebp - 0x20], 0
mov word [ebp - 0x30], ax
cmp dword [esi + 0x14], 8
jae 0x10006b36
mov eax, dword [esi + 0x10]
inc eax
je 0x10006b41
add eax, eax
push eax
lea eax, [ebp - 0x30]
push esi
push eax
call dword [sym.imp.MSVCR120.dll_memmove]
add esp, 0xc
jmp 0x10006b41
mov eax, dword [esi]
mov dword [ebp - 0x30], eax
mov dword [esi], 0
mov eax, dword [esi + 0x10]
mov edi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov dword [ebp - 0x20], eax
mov eax, dword [esi + 0x14]
mov dword [ebp - 0x1c], eax
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
test bl, 4
je 0x10006b90
and ebx, 0xfffffffb
cmp dword [ebp - 0x34], 8
jb 0x10006b7c
push dword [ebp - 0x48]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x34], 7
mov dword [ebp - 0x38], 0
mov word [ebp - 0x48], ax
test bl, 2
je 0x10006bba
and ebx, 0xfffffffd
cmp dword [ebp - 0x4c], 8
jb 0x10006ba6
push dword [ebp - 0x60]
call edi
add esp, 4
xor eax, eax
mov dword [ebp - 0x4c], 7
mov dword [ebp - 0x50], 0
mov word [ebp - 0x60], ax
test bl, 1
je 0x10006bcd
cmp dword [ebp - 0x64], 8
jb 0x10006bcd
push dword [ebp - 0x78]
call edi
add esp, 4
mov ecx, dword [ebp - 0x1c]
mov eax, dword [ebp - 0x30]
cmp ecx, 8
jb 0x10006bf4
mov esi, eax
test eax, eax
jne 0x10006bf7
xor bl, bl
cmp ecx, 8
jb 0x10006beb
push eax
call edi
add esp, 4
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
lea esi, [ebp - 0x30]
cmp word [esi], 0
je 0x10006bde
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x10006c19
test al, 1
je 0x10006c19
push 0x80
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [ebp - 0x1c]
test eax, eax
mov eax, dword [ebp - 0x30]
setne bl
jmp 0x10006be0
Function at 0x10007000
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e9a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2a0
mov dword [ebp - 0x40], ecx
push ebx
push esi
push edi
test edx, edx
je 0x100071e7
cmp word [edx], 0
je 0x100071e7
xor eax, eax
mov dword [ebp - 0x10], 7
mov dword [ebp - 0x14], 0
mov word [ebp - 0x24], ax
push edx
lea ecx, [ebp - 0x3c]
mov dword [ebp - 4], eax
call fcn.100020e0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x3c]
mov edx, dword [ebp - 0x28]
cmp edx, 8
mov eax, dword [ebp - 0x2c]
mov esi, dword [ebp - 0x3c]
cmovae ecx, esi
lea edi, [eax + eax]
cmp word [edi + ecx - 2], 0x5c
je 0x10007094
cmp edx, 8
lea eax, [ebp - 0x3c]
cmovae eax, esi
cmp word [edi + eax - 2], 0x2f
je 0x10007094
push 0x5c
push 1
lea ecx, [ebp - 0x3c]
call fcn.10002220
push 0xffffffffffffffff
push 0
lea eax, [ebp - 0x3c]
push eax
lea ecx, [ebp - 0x24]
call fcn.10002450
push 0x2a
push 1
lea ecx, [ebp - 0x24]
call fcn.10002220
mov esi, dword [ebp + 8]
test esi, esi
je 0x100070e4
cmp word [esi], 0
je 0x100070e4
push 0x2e
push esi
call dword [sym.imp.MSVCR120.dll_wcschr]
add esp, 8
test eax, eax
jne 0x100070d9
push 0x2e
push 1
lea ecx, [ebp - 0x24]
call fcn.10002220
push esi
lea ecx, [ebp - 0x24]
call fcn.10006540
jmp 0x100070fc
push 0x2e
push 1
lea ecx, [ebp - 0x24]
call fcn.10002220
push 0x2a
push 1
lea ecx, [ebp - 0x24]
call fcn.10002220
push 0x24c
lea eax, [ebp - 0x2a4]
mov dword [ebp - 0x2a8], 0
push 0
push eax
call sub.MSVCR120.dll_memset
add esp, 0xc
lea ecx, [ebp - 0x2a8]
cmp dword [ebp - 0x10], 8
lea eax, [ebp - 0x24]
cmovae eax, dword [ebp - 0x24]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov esi, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
mov edi, eax
cmp edi, 0xffffffff
jne 0x10007146
xor bl, bl
jmp 0x100071a4
mov ebx, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea esp, [esp]
test byte [ebp - 0x2a8], 0x10
jne 0x1000718d
lea eax, [ebp - 0x27c]
push eax
lea edx, [ebp - 0x3c]
lea ecx, [ebp - 0x58]
call fcn.10006020
add esp, 4
mov ecx, dword [ebp - 0x40]
push eax
mov byte [ebp - 4], 2
call fcn.10007660
mov byte [ebp - 4], 1
cmp dword [ebp - 0x44], 8
jb 0x1000718d
push dword [ebp - 0x58]
call esi
add esp, 4
lea eax, [ebp - 0x2a8]
push eax
push edi
call ebx
test eax, eax
jne 0x10007150
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov bl, 1
cmp dword [ebp - 0x28], 8
jb 0x100071b2
push dword [ebp - 0x3c]
call esi
add esp, 4
xor eax, eax
mov dword [ebp - 0x28], 7
cmp dword [ebp - 0x10], 8
mov dword [ebp - 0x2c], 0
mov word [ebp - 0x3c], ax
jb 0x100071d4
push dword [ebp - 0x24]
call esi
add esp, 4
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 0xc]
xor al, al
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10007200
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x1004e9d0
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x28
push ebx
push esi
mov eax, ecx
mov dword [ebp - 0x30], 0
push edi
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x2c], 0
mov dword [ebp - 0x28], 0
push ecx
push 0
mov edx, eax
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.10007000
mov ebx, dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 8
mov esi, dword [ebp - 0x30]
test al, al
je 0x100073b7
mov ecx, dword [ebp - 0x2c]
mov eax, 0x2aaaaaab
sub ecx, esi
xor edi, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x14], eax
je 0x100072a4
lea ecx, [ecx]
cmp dword [esi + 0x14], 8
jb 0x1000728a
mov eax, dword [esi]
jmp 0x1000728c
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x100073b7
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0x14]
jb 0x10007280
mov dword [ebp - 0x24], 0
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
mov edx, dword [ebp - 0x18]
push ecx
lea ecx, [ebp - 0x24]
mov byte [ebp - 4], 1
call fcn.10006d40
mov esi, dword [ebp - 0x24]
add esp, 4
test al, al
je 0x10007318
mov ecx, dword [ebp - 0x20]
mov eax, 0x2aaaaaab
sub ecx, esi
xor edi, edi
imul ecx
sar edx, 2
mov eax, edx
shr eax, 0x1f
add eax, edx
mov dword [ebp - 0x18], eax
je 0x10007311
cmp dword [esi + 0x14], 8
jb 0x100072fa
mov ecx, dword [esi]
jmp 0x100072fc
mov ecx, esi
call fcn.100073c0
test al, al
je 0x10007315
inc edi
add esi, 0x18
cmp edi, dword [ebp - 0x18]
jb 0x100072f0
mov esi, dword [ebp - 0x24]
mov al, 1
jmp 0x1000731a
mov esi, dword [ebp - 0x24]
xor al, al
mov byte [ebp - 0xd], al
test esi, esi
je 0x10007360
mov edi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x20]
cmp edi, eax
je 0x1000735a
jmp 0x10007330
cmp dword [esi + 0x14], 8
jb 0x10007340
push dword [esi]
call ebx
mov eax, dword [ebp - 0x20]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x18
cmp esi, eax
jne 0x10007330
push edi
call ebx
add esp, 4
mov al, byte [ebp - 0xd]
mov edi, dword [ebp - 0x30]
test edi, edi
je 0x100073a6
mov eax, dword [ebp - 0x2c]
mov esi, edi
cmp edi, eax
je 0x1000739d
cmp dword [esi + 0x14], 8
jb 0x10007383
push dword [esi]
call ebx
mov eax, dword [ebp - 0x2c]
add esp, 4
xor ecx, ecx
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], cx
add esi, 0x18
cmp esi, eax
jne 0x10007373
push edi
call ebx
mov al, byte [ebp - 0xd]
add esp, 4
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret
xor al, al
mov byte [ebp - 0xd], al
jmp 0x10007363
Function at 0x100073c0
Capabilities:
Delete directory

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1004e9e8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x18
push ebx
push esi
mov ebx, ecx
push edi
mov dword [esp + 0x10], ebx
call fcn.10007200
test al, al
jne 0x10007402
mov ecx, dword [esp + 0x24]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x1c], 0
push ecx
mov edx, ebx
mov dword [esp + 0x30], 0
lea ecx, [esp + 0x18]
call fcn.10006d40
mov esi, dword [esp + 0x18]
add esp, 4
test al, al
je 0x1000748a
mov ecx, dword [esp + 0x18]
mov eax, 0x2aaaaaab
sub ecx, esi
xor edi, edi
imul ecx
sar edx, 2
mov ebx, edx
shr ebx, 0x1f
add ebx, edx
je 0x10007475
cmp dword [esi + 0x14], 8
jb 0x1000745e
mov ecx, dword [esi]
jmp 0x10007460
mov ecx, esi
call fcn.100073c0
test al, al
je 0x10007486
inc edi
add esi, 0x18
cmp edi, ebx
jb 0x10007454
mov esi, dword [esp + 0x14]
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.dll_RemoveDirectoryW]
test eax, eax
setne bl
jmp 0x1000748c
mov esi, dword [esp + 0x14]
xor bl, bl
test esi, esi
je 0x100074a4
push dword [esp + 0x18]
push esi
call fcn.10006cf0
push esi
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
mov ecx, dword [esp + 0x24]
mov al, bl
pop edi
pop esi
mov dword fs:[0], ecx
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x100078a0
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1006e3e8]
sub esp, 0x30
push ebx
push esi
mov esi, ecx
cmp eax, 0xffffffff
jne 0x100078ed
lea eax, [ebp - 0x14]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x100078e3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x100078e3
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x100078ed
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
mov edx, esi
lea ecx, [ebp - 0x2c]
call fcn.10004760
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x10007903
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp dword [ebp - 0x18], 8
mov ebx, eax
jb 0x1000791e
push dword [ebp - 0x2c]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
cmp ebx, 0xffffffff
je 0x10007930
test bl, 0x10
je 0x10007930
mov al, 1
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
pop esi
xor al, al
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x10009c00
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [0x1006e3e8]
sub esp, 0x34
push ebx
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
or ebx, edi
cmp eax, edi
jne 0x10009c52
lea eax, [ebp - 0x1c]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x10009c48
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x10009c48
mov dword [0x1006e3e8], 0x3a8
mov eax, 0x3a8
jmp 0x10009c52
mov eax, 0xd698
mov dword [0x1006e3e8], eax
push eax
mov edx, esi
lea ecx, [ebp - 0x34]
call fcn.10004760
add esp, 4
cmp dword [eax + 0x14], 8
jb 0x10009c68
mov eax, dword [eax]
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp dword [ebp - 0x20], 8
mov esi, eax
jb 0x10009c95
push dword [ebp - 0x34]
call dword [sym.imp.MSVCR120.dll_void___cdecl_operator_delete_void__]
add esp, 4
xor eax, eax
mov dword [ebp - 0x20], 7
mov dword [ebp - 0x24], 0
mov word [ebp - 0x34], ax
cmp esi, 0xffffffff
jne 0x10009cb9
or eax, esi
or edx, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
lea eax, [ebp - 8]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10009cce
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 4]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov edx, ebx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x1000a970
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [0x1006e3e8], 0xffffffff
push esi
mov esi, ecx
jne 0x1000a9b4
lea eax, [ebp - 0x14]
push eax
push 0xd698
call dword [sym.imp.KERNEL32.dll_GetCPInfo]
test eax, eax
jne 0x1000a9aa
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [0x1006e3e8], 0x3a8
cmp eax, 0x57
je 0x1000a9b4
mov dword [0x1006e3e8], 0xd698
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
pop esi
cmp eax, 0xffffffff
je 0x1000a9cb
test al, 0x10
je 0x1000a9cb
mov al, 1
mov esp, ebp
pop ebp
ret
xor al, al
mov esp, ebp
pop ebp
ret