joyce8/EMBER2024-capa huggingface dataset:
Function at 0x1001ad3e
Capabilities:
Delete registry value

Disassembly:
push 0x58
mov eax, 0x100597ad
call fcn.100418da
mov eax, dword [ebp + 8]
mov dword [ebp - 0x3c], eax
lea eax, [ebp - 0x64]
push eax
mov ecx, ebx
mov dword [ebp - 0x38], edx
call fcn.1001a6e2
pop ecx
and dword [ebp - 4], 0
mov eax, dword [ebp - 0x4c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x64]
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], eax
mov eax, dword [ebp - 0x4c]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x64]
lea edi, [ebp - 0x44]
lea esi, [ebp - 0x34]
mov dword [ebp - 0x44], eax
call fcn.1000d610
test al, al
jne 0x1001ae1c
call fcn.1000f80e
cmp dword [eax + 0x18], 8
jb 0x1001ada0
mov eax, dword [eax + 4]
jmp 0x1001ada3
add eax, 4
push eax
push dword [ebp - 0x38]
mov edx, ebx
lea ecx, [ebp - 0x2c]
call fcn.100342d2
pop ecx
pop ecx
mov byte [ebp - 4], 1
cmp dword [ebp - 0x14], 8
mov eax, dword [ebp - 0x28]
jae 0x1001adc3
lea eax, [ebp - 0x28]
push dword [ebp - 0x3c]
push eax
call dword [sym.imp.SHLWAPI.dll_StrStrIW]
test eax, eax
je 0x1001adff
push ebx
push str.delete_proc_reg:_ls
call fcn.10036ea1
pop ecx
pop ecx
lea esi, [ebp - 0x34]
call fcn.1000f80e
cmp dword [eax + 0x18], 8
jb 0x1001adf1
mov eax, dword [eax + 4]
jmp 0x1001adf4
add eax, 4
push eax
push ebx
push dword [ebp - 0x38]
call dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
push 0
push 1
lea esi, [ebp - 0x2c]
mov byte [ebp - 4], 0
call fcn.1000233f
lea esi, [ebp - 0x34]
call fcn.1000d700
jmp 0x1001ad71
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x64]
push eax
call fcn.1000f7e6
xor eax, eax
inc eax
call fcn.1004195d
ret 4
Function at 0x1001ae34
Capabilities:
Persist via run registry key

Disassembly:
push 0x8c
mov eax, 0x1005a478
call fcn.100418da
mov esi, ecx
xor ebx, ebx
mov dword [ebp - 0x34], esi
cmp esi, ebx
je 0x1001afa1
cmp word [esi], bx
je 0x1001afa1
mov eax, reloc.WS2_32.dll_bind
mov dword [ebp - 0x5c], eax
mov dword [ebp - 0x58], str.SOFTWAREMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x54], eax
mov dword [ebp - 0x50], str.SOFTWAREWOW6432NodeMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x4c], reloc.WS2_32.dll_closesocket
mov dword [ebp - 0x48], str.SoftwareMicrosoftWindowsCurrentVersionRun
mov dword [ebp - 0x30], ebx
mov eax, dword [ebp - 0x30]
lea eax, [ebp + eax - 0x5c]
mov edx, dword [eax]
mov edi, reloc.WS2_32.dll_closesocket
cmp edx, edi
jne 0x1001af83
xor eax, eax
mov dword [ebp - 0x14], 7
mov dword [ebp - 0x18], ebx
mov word [ebp - 0x28], ax
lea eax, [ebp - 0x7c]
push eax
mov ecx, 0x10061dc0
mov edx, edi
mov dword [ebp - 4], ebx
call fcn.1000e459
pop ecx
mov byte [ebp - 4], 1
mov eax, dword [ebp - 0x64]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x7c]
mov dword [ebp - 0x3c], ecx
mov dword [ebp - 0x38], eax
mov eax, dword [ebp - 0x64]
mov dword [ebp - 0x40], eax
mov eax, dword [ebp - 0x7c]
lea edi, [ebp - 0x44]
lea esi, [ebp - 0x3c]
mov dword [ebp - 0x44], eax
call fcn.1000d610
test al, al
jne 0x1001af63
call fcn.1000f80e
cmp dword [eax + 0x18], 8
jb 0x1001aefc
mov eax, dword [eax + 4]
jmp 0x1001aeff
add eax, 4
mov ecx, dword [ebp - 0x30]
push dword [ebp + ecx - 0x58]
lea ecx, [ebp - 0x98]
push eax
push 0x10064b5c
call fcn.1003416b
add esp, 0xc
push 0xffffffffffffffff
push ebx
lea ecx, [ebp - 0x2c]
mov byte [ebp - 4], 2
call fcn.1000228e
push ebx
push 1
lea esi, [ebp - 0x98]
mov byte [ebp - 4], 1
call fcn.1000233f
cmp dword [ebp - 0x14], 8
mov ebx, dword [ebp - 0x28]
jae 0x1001af47
lea ebx, [ebp - 0x28]
push dword [ebp - 0x34]
mov edx, reloc.WS2_32.dll_closesocket
call fcn.1001ad3e
lea esi, [ebp - 0x3c]
call fcn.1000d700
xor ebx, ebx
jmp 0x1001aed1
lea eax, [ebp - 0x7c]
push eax
mov byte [ebp - 4], bl
call fcn.1000f7e6
or dword [ebp - 4], 0xffffffff
push ebx
push 1
lea esi, [ebp - 0x2c]
call fcn.1000233f
mov esi, dword [ebp - 0x34]
jmp 0x1001af8e
mov ebx, dword [eax + 4]
push esi
call fcn.1001ad3e
xor ebx, ebx
add dword [ebp - 0x30], 8
cmp dword [ebp - 0x30], 0x18
jb 0x1001ae85
xor eax, eax
inc eax
jmp 0x1001afa3
xor eax, eax
call fcn.1004195d
ret
Function at 0x1001b1a9
Capabilities:
Create thread
Delete file

Disassembly:
push 0x54
mov eax, 0x1005a440
call fcn.10041871
mov edi, ecx
xor esi, esi
cmp edi, esi
je 0x1001b29c
cmp word [edi], si
je 0x1001b29c
lea eax, [ebp - 0x60]
push eax
call fcn.1000fd8c
push esi
push esi
lea eax, [ebp - 0x60]
push eax
push 0x1001b30e
push esi
push esi
mov dword [ebp - 4], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 0x14], eax
push 0xffffffffffffffff
push eax
mov byte [ebp - 4], 1
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
lea edx, [ebp - 0x60]
mov ecx, edi
lea ebx, [ebp - 0x40]
call fcn.1001afa9
mov byte [ebp - 4], 2
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax]
mov ecx, dword [ebp - 0x40]
mov dword [ebp - 0x1c], ecx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x40]
lea edi, [ebp - 0x24]
lea esi, [ebp - 0x1c]
mov dword [ebp - 0x24], eax
call fcn.1000cca9
test al, al
je 0x1001b27a
call fcn.1001be8c
cmp dword [eax + 0x18], 8
jb 0x1001b243
mov eax, dword [eax + 4]
jmp 0x1001b246
add eax, 4
push eax
push str.delete_shortcut_file:_ls
call fcn.10036ea1
pop ecx
pop ecx
lea esi, [ebp - 0x1c]
call fcn.1001be8c
cmp dword [eax + 0x18], 8
jb 0x1001b266
mov eax, dword [eax + 4]
jmp 0x1001b269
add eax, 4
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea esi, [ebp - 0x1c]
call fcn.1001bf49
jmp 0x1001b218
lea eax, [ebp - 0x40]
call fcn.1001bc03
lea eax, [ebp - 0x14]
call fcn.10003214
or dword [ebp - 4], 0xffffffff
lea eax, [ebp - 0x60]
push eax
call fcn.1000f7e6
xor eax, eax
inc eax
jmp 0x1001b29e
xor eax, eax
call fcn.10041949
ret

Function at 0x1001b2a4
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp - 4], eax
and dword [ebp - 0x408], 0
push esi
xor eax, eax
push 0x3fe
push eax
mov word [ebp - 0x404], ax
lea eax, [ebp - 0x402]
push eax
mov esi, ecx
call fcn.10042870
add esp, 0xc
push 0
push dword [ebp + 8]
lea eax, [ebp - 0x404]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
lea eax, [ebp - 0x404]
push eax
call fcn.10002030
mov ecx, dword [ebp - 4]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1004017c
leave
ret
Function at 0x1001cca4
Capabilities:
Find taskbar

Disassembly:
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push esi
push 0
push str.Shell_TrayWnd
mov esi, eax
call dword [sym.imp.USER32.dll_FindWindowW]
test eax, eax
jne 0x1001cccc
push 0x10061dc0
call fcn.10002030
jmp 0x1001cce6
and dword [ebp - 4], 0
lea ecx, [ebp - 4]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [ebp - 4]
mov ecx, esi
call fcn.1001d666
pop ecx
mov eax, esi
pop esi
leave
ret

Function at 0x1001d070
Capabilities:
Create thread

Disassembly:
push esi
xor esi, esi
inc esi
push str.StartSystemLockLog
mov dword [0x1007af48], esi
call fcn.10021a70
xor eax, eax
pop ecx
cmp dword [0x1007af4c], eax
jne 0x1001d0ac
push eax
push eax
push eax
push 0x1001cfa1
push eax
push eax
mov dword [0x1007af4c], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
ret
Function at 0x1001db16
Capabilities:
Get session information
Get session user name

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x1005ddb1
mov eax, dword fs:[0]
push eax
sub esp, 0x500
mov eax, dword [0x10077060]
xor eax, esp
mov dword [esp + 0x4f8], eax
push ebx
push esi
push edi
mov eax, dword [0x10077060]
xor eax, esp
push eax
lea eax, [esp + 0x510]
mov dword fs:[0], eax
lea eax, [esp + 0x14]
push eax
lea eax, [esp + 0x14]
push eax
xor ebx, ebx
push 1
push ebx
push ebx
mov dword [esp + 0x24], ebx
mov dword [esp + 0x28], ebx
call sub.WTSAPI32.dll_WTSEnumerateSessionsW
test eax, eax
je 0x1001dcc2
mov dword [esp + 0x18], ebx
cmp dword [esp + 0x14], ebx
jbe 0x1001dcb3
xor edi, edi
mov eax, dword [esp + 0x10]
lea esi, [edi + eax]
lea eax, [esp + 0x20]
push eax
lea eax, [esp + 0x20]
push eax
push 5
mov dword [esp + 0x28], ebx
mov dword [esp + 0x2c], ebx
push dword [esi]
push ebx
call sub.WTSAPI32.dll_WTSQuerySessionInformationW
push 0x47
lea eax, [esp + 0x49]
push ebx
push eax
mov byte [esp + 0x50], bl
call fcn.10042870
add esp, 0xc
push 0x478
lea eax, [esp + 0x90]
push ebx
push eax
call fcn.10042870
mov eax, dword [0x1007baf4]
add esp, 0xc
mov dword [esp + 0x24], ebx
mov esi, dword [esi]
cmp eax, ebx
jne 0x1001dc19
mov eax, dword [0x1007baf0]
cmp eax, ebx
jne 0x1001dc04
push str.winsta.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov dword [0x1007baf0], eax
cmp eax, ebx
je 0x1001dc2e
push str.WinStationQueryInformationW
push eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x1007baf4], eax
cmp eax, ebx
je 0x1001dc2e
lea ecx, [esp + 0x24]
push ecx
push 0x4c0
lea ecx, [esp + 0x4c]
push ecx
push 8
push esi
push ebx
call eax
lea eax, [esp + 0xac]
push eax
lea eax, [esp + 0x2c]
push eax
call fcn.1001d5f4
pop ecx
pop ecx
mov dword [esp + 0x518], ebx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1001dc8a
cmp word [ecx], bx
je 0x1001dc80
mov eax, dword [esp + 0xac]
or eax, dword [esp + 0xb0]
je 0x1001dc80
cmp dword [esp + 0x40], 8
mov eax, dword [esp + 0x2c]
jae 0x1001dc75
lea eax, [esp + 0x2c]
push eax
call fcn.1001d7cc
pop ecx
mov ecx, dword [esp + 0x1c]
cmp ecx, ebx
je 0x1001dc8a
push ecx
call sub.WTSAPI32.dll_WTSFreeMemory
or dword [esp + 0x518], 0xffffffff
push ebx
push 1
lea esi, [esp + 0x30]
call fcn.1000233f
inc dword [esp + 0x18]
mov eax, dword [esp + 0x18]
add edi, 0xc
cmp eax, dword [esp + 0x14]
jb 0x1001db8b
cmp dword [esp + 0x10], ebx
je 0x1001dcc2
push dword [esp + 0x10]
call sub.WTSAPI32.dll_WTSFreeMemory
xor eax, eax
inc eax
mov ecx, dword [esp + 0x510]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x4f8]
xor ecx, esp
call fcn.1004017c
mov esp, ebp
pop ebp
ret

Function at 0x10021e6a
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 4], 0
push edi
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp + 8]
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x10021ea3
push dword [ebp + 0x10]
push dword [ebp - 4]
push str.thread__d_created:__s
call fcn.10021907
add esp, 0xc
mov eax, edi
pop edi
leave
ret 0xc
Function at 0x100228a4
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
sub esp, 0x1c
cmp dword [eax + 0x14], 0
je 0x10022949
push ebx
push esi
mov esi, dword [sym.imp.SHLWAPI.dll_SHDeleteValueA]
push edi
push str.servAddr
mov ebx, str.Softwareprojonepodlp_
push ebx
mov edi, reloc.WS2_32.dll_bind
push edi
call esi
push str.servHost
push ebx
push edi
call esi
mov esi, dword [ebp + 8]
cmp dword [esi + 0x18], 0x10
jb 0x100228ea
mov eax, dword [esi + 4]
jmp 0x100228ed
lea eax, [esi + 4]
xor ebx, ebx
push ebx
call fcn.10032725
test eax, eax
push esi
lea eax, [ebp - 0x1c]
push eax
je 0x1002291a
call fcn.10036fcf
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x10022910
mov eax, dword [eax + 4]
jmp 0x10022913
add eax, 4
mov edi, str.servAddr
jmp 0x10022934
call fcn.10036fcf
cmp dword [eax + 0x18], 0x10
pop ecx
pop ecx
jb 0x1002292c
mov eax, dword [eax + 4]
jmp 0x1002292f
add eax, 4
mov edi, str.servHost
mov esi, eax
call fcn.10034291
push ebx
push 1
lea ecx, [ebp - 0x1c]
call fcn.10002243
pop edi
pop esi
pop ebx
leave
ret

Function at 0x1002298c
Capabilities:
Get common file path

Disassembly:
push ebp
lea ebp, [esp - 0x190]
sub esp, 0x210
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp + 0x18c], eax
and dword [ebp - 0x80], 0
push esi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x7c], ax
lea eax, [ebp - 0x7a]
push eax
mov esi, ecx
call fcn.10042870
add esp, 0xc
push 0x104
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push str.Logsignored
lea eax, [ebp - 0x7c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x7c]
push eax
call fcn.10002030
mov ecx, dword [ebp + 0x18c]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1004017c
add ebp, 0x190
leave
ret
Function at 0x10022ad0
Capabilities:
Get common file path

Disassembly:
push ebp
sub esp, 0x224
lea ebp, [esp - 4]
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp + 0x224], eax
push 4
mov eax, 0x100580ef
call fcn.10041871
mov edi, dword [ebp + 0x230]
mov esi, dword [ebp + 0x238]
xor eax, eax
xor ebx, ebx
push 0x206
mov word [ebp + 0x1c], ax
lea eax, [ebp + 0x1e]
push ebx
push eax
mov dword [ebp - 0x10], ebx
call fcn.10042870
add esp, 0xc
push 0x104
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
cmp dword [ebp + 0x234], 1
jne 0x10022b3c
push str.projonepodlp
jmp 0x10022b4a
cmp dword [ebp + 0x234], 2
jne 0x10022b69
push str.projonepotcm
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp esi, ebx
je 0x10022b63
push esi
lea eax, [ebp + 0x1c]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp + 0x1c]
push eax
jmp 0x10022bbc
cmp dword [ebp + 0x234], ebx
jne 0x10022bb7
push ebx
lea eax, [ebp]
push 2
push eax
call fcn.10022ad0
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp + 0x18], 8
mov eax, dword [ebp + 4]
jae 0x10022b8f
lea eax, [ebp + 4]
push eax
call dword [sym.imp.SHLWAPI.dll_PathIsDirectoryW]
push esi
test eax, eax
je 0x10022bb3
push 2
push edi
call fcn.10022ad0
add esp, 0xc
push ebx
push 1
lea esi, [ebp]
call fcn.1000233f
jmp 0x10022bc3
push 1
jmp 0x10022b9d
push 0x10061dc0
mov esi, edi
call fcn.10002030
mov eax, edi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp + 0x224]
xor ecx, ebp
call fcn.1004017c
add ebp, 0x228
leave
ret

Function at 0x10022c94
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor edi, edi
mov esi, ecx
mov dword [ebp - 0x41c], edi
cmp ebx, edi
jne 0x10022cbe
push 0x10061dc0
jmp 0x10022d3d
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jg 0x10022cb7
xor eax, eax
push 0x40e
mov word [ebp - 0x418], ax
lea eax, [ebp - 0x416]
push edi
push eax
call fcn.10042870
add esp, 0xc
lea eax, [ebp - 0x418]
push eax
call fcn.10034f47
cmp word [ebp - 0x418], di
je 0x10022cb7
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
push str.projone
lea eax, [ebp - 0x418]
push eax
call edi
push ebx
lea eax, [ebp - 0x418]
push eax
call edi
lea edi, [ebp - 0x418]
call fcn.10031837
mov eax, edi
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
mov eax, edi
jne 0x10022d3c
mov eax, 0x10061dc0
push eax
call fcn.10002030
mov ecx, dword [ebp - 4]
pop edi
mov eax, esi
xor ecx, ebp
pop esi
call fcn.1004017c
leave
ret
Function at 0x1003149b
Capabilities:
Check if file exists
Enumerate files on windows
Enumerate files recursively
Get common file path
Get file attributes

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0xa94
mov eax, dword [0x10077060]
xor eax, esp
mov dword [esp + 0xa90], eax
mov ecx, dword [ebp + 0x14]
mov eax, dword [ebp + 0x10]
mov edx, dword [ebp + 0x1c]
push ebx
push esi
mov esi, dword [ebp + 8]
mov dword [esp + 0x18], ecx
mov ecx, dword [ebp + 0x18]
push edi
mov dword [esp + 0x18], eax
mov dword [esp + 0x14], ecx
mov dword [esp + 0x24], edx
test esi, esi
je 0x1003169c
test eax, eax
jne 0x100314eb
test ecx, ecx
je 0x1003169c
movzx eax, word [esi + 2]
mov edi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp ax, 0x3a
je 0x10031546
cmp ax, 0x5c
je 0x10031546
xor eax, eax
push 0x40e
push eax
mov word [esp + 0x690], ax
lea eax, [esp + 0x692]
push eax
call fcn.10042870
add esp, 0xc
lea eax, [esp + 0x688]
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
push esi
lea eax, [esp + 0x68c]
push eax
call edi
lea esi, [esp + 0x688]
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x1003169c
test al, 0x10
je 0x1003169c
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push esi
lea eax, [esp + 0x484]
push eax
call ebx
push 0x100689e4
lea eax, [esp + 0x484]
push eax
call edi
lea eax, [esp + 0x28]
push eax
lea eax, [esp + 0x484]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x20], eax
cmp eax, 0xffffffff
je 0x1003169c
mov dword [esp + 0x10], 1
push 0x100640f4
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1003166b
push 0x100689e8
lea eax, [esp + 0x58]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x1003166b
cmp dword [esp + 0x28], 0xffffffff
je 0x1003166b
push esi
lea eax, [esp + 0x27c]
push eax
call ebx
lea eax, [esp + 0x54]
push eax
lea eax, [esp + 0x27c]
push eax
call edi
test byte [esp + 0x28], 0x10
je 0x10031650
cmp dword [esp + 0x14], 0
je 0x1003161d
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x1c]
test eax, eax
je 0x10031684
cmp dword [ebp + 0xc], 0
je 0x1003166b
push dword [esp + 0x24]
lea eax, [esp + 0x27c]
push dword [esp + 0x18]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [ebp + 0xc]
push eax
call fcn.1003149b
push 2
pop ecx
cmp eax, ecx
jne 0x1003166b
mov dword [esp + 0x10], ecx
jmp 0x1003168c
cmp dword [esp + 0x18], 0
je 0x1003166b
push dword [esp + 0x1c]
lea eax, [esp + 0x27c]
push eax
call dword [esp + 0x20]
test eax, eax
je 0x10031684
lea eax, [esp + 0x28]
push eax
push dword [esp + 0x24]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x100315a6
jmp 0x1003168c
mov dword [esp + 0x10], 2
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, dword [esp + 0x10]
jmp 0x1003169e
xor eax, eax
mov ecx, dword [esp + 0xa9c]
pop edi
pop esi
pop ebx
xor ecx, esp
call fcn.1004017c
mov esp, ebp
pop ebp
ret 0x18
Function at 0x100316b5
Capabilities:
Enumerate files on windows

Disassembly:
push 0x6bc
mov eax, 0x100588c0
call fcn.100418da
and dword [ebp - 0x678], 0
lea eax, [ebp - 0x6a0]
mov ebx, ecx
mov edi, edx
push eax
mov dword [ebp - 0x67c], ebx
mov dword [ebp - 0x680], edi
call fcn.1000fd8c
xor esi, esi
inc esi
mov dword [ebp - 4], esi
test edi, edi
jne 0x10031703
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.1000fdc2
jmp 0x10031819
push edi
mov edi, dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x218]
push eax
call edi
push str..________.dirty
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x670]
push eax
lea eax, [ebp - 0x218]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [ebp - 0x674], eax
cmp eax, 0xffffffff
je 0x1003180c
push 0x100640f4
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100317e5
push 0x100689e8
lea eax, [ebp - 0x644]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcmpW]
test eax, eax
je 0x100317e5
cmp dword [ebp - 0x670], 0xffffffff
je 0x100317e5
push dword [ebp - 0x680]
lea eax, [ebp - 0x420]
push eax
call edi
lea eax, [ebp - 0x644]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x420]
push eax
lea esi, [ebp - 0x6bc]
call fcn.10002030
mov eax, esi
push eax
lea eax, [ebp - 0x6a0]
push eax
lea ebx, [ebp - 0x6c8]
mov byte [ebp - 4], 2
call fcn.10010171
push 0
push 1
mov byte [ebp - 4], 1
call fcn.1000233f
mov ebx, dword [ebp - 0x67c]
xor esi, esi
inc esi
lea eax, [ebp - 0x670]
push eax
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x10031748
push dword [ebp - 0x674]
call dword [sym.imp.KERNEL32.dll_FindClose]
lea eax, [ebp - 0x6a0]
push eax
push ebx
call fcn.1000fdc2
lea eax, [ebp - 0x6a0]
push eax
mov dword [ebp - 0x678], esi
mov byte [ebp - 4], 0
call fcn.1000f7e6
mov eax, ebx
call fcn.1004195d
ret
Function at 0x10031837
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
xor ebx, ebx
push esi
cmp edi, ebx
je 0x10031931
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x104
jge 0x10031931
xor eax, eax
push 0x206
mov word [ebp - 0x210], ax
lea eax, [ebp - 0x20e]
push ebx
push eax
call fcn.10042870
add esp, 0xc
lea esi, [ebp - 0x210]
mov ecx, edi
call fcn.100323c3
mov eax, esi
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x100318ae
shr eax, 4
not eax
and eax, 1
jmp 0x10031933
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x418]
push eax
call dword [sym.imp.SHLWAPI.dll_PathRemoveFileSpecW]
lea esi, [ebp - 0x418]
call fcn.10031941
test eax, eax
je 0x10031931
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x10000000
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x420], eax
cmp eax, ebx
je 0x10031913
mov dword [ebp - 0x41c], 1
cmp eax, 0xffffffff
jne 0x10031919
mov dword [ebp - 0x41c], ebx
lea eax, [ebp - 0x420]
call fcn.10003214
xor eax, eax
cmp byte [ebp - 0x41c], bl
setne al
jmp 0x10031933
xor eax, eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.1004017c
leave
ret
Function at 0x10031c92
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2038
call fcn.1004f2f0
mov eax, dword [0x10077060]
xor eax, ebp
mov dword [ebp - 8], eax
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor ebx, ebx
mov edi, ecx
mov dword [ebp - 0x201c], eax
mov dword [ebp - 0x2020], ebx
cmp edi, ebx
je 0x10031e70
cmp eax, ebx
je 0x10031e70
push eax
push edi
call dword [sym.imp.KERNEL32.dll_lstrcmpiW]
test eax, eax
jne 0x10031cea
mov dword [ebp - 0x2020], 1
jmp 0x10031e70
push ebx
push ebx
push 3
push ebx
push ebx
mov esi, connect
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
call edi
push ebx
push ebx
push 3
push ebx
push ebx
push esi
push dword [ebp - 0x201c]
mov dword [ebp - 0x2010], eax
call edi
mov esi, dword [ebp - 0x2010]
mov dword [ebp - 0x2014], eax
cmp esi, ebx
je 0x10031e5a
cmp esi, 0xffffffff
je 0x10031e5a
cmp eax, ebx
je 0x10031e5a
cmp eax, 0xffffffff
je 0x10031e5a
xor eax, eax
mov dword [ebp - 0x2034], ebx
lea edi, [ebp - 0x2030]
stosd dword es:[edi], eax
mov dword [ebp - 0x202c], ebx
lea edi, [ebp - 0x2028]
stosd dword es:[edi], eax
mov edi, dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
lea eax, [ebp - 0x2034]
push eax
push esi
call edi
test eax, eax
je 0x10031e5a
lea eax, [ebp - 0x202c]
push eax
push dword [ebp - 0x2014]
call edi
test eax, eax
je 0x10031e5a
mov eax, dword [ebp - 0x2034]
cmp eax, dword [ebp - 0x202c]
jne 0x10031e5a
mov eax, dword [ebp - 0x2030]
cmp eax, dword [ebp - 0x2028]
jne 0x10031e5a
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
mov dword [ebp - 0x2018], ebx
push esi
jmp 0x10031e44
cmp dword [ebp - 0x2018], ebx
je 0x10031e50
push ebx
lea eax, [ebp - 0x201c]
push eax
push dword [ebp - 0x2018]
lea eax, [ebp - 0x100c]
push eax
push dword [ebp - 0x2014]
mov dword [ebp - 0x201c], ebx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x10031e5a
mov ecx, dword [ebp - 0x2018]
cmp ecx, dword [ebp - 0x201c]
jne 0x10031e5a
lea edi, [ebp - 0x100c]
lea esi, [ebp - 0x200c]
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x10031e26
sbb eax, eax
sbb eax, 0xffffffff
cmp eax, ebx
jne 0x10031e5a
push ebx
lea eax, [ebp - 0x2018]
push eax
push 0x1000
lea eax, [ebp - 0x200c]
push eax
push dword [ebp - 0x2010]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x10031dce
jmp 0x10031e5a
mov dword [ebp - 0x2020], 1
lea eax, [ebp - 0x2014]
call fcn.10003214
lea eax, [ebp - 0x2010]
call fcn.10003214
mov ecx, dword [ebp - 8]
mov eax, dword [ebp - 0x2020]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1004017c
leave
ret 4

Function at 0x10031e87
Capabilities:
Check if file exists
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x10031e9e
push 2
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
ret
test al, 1
je 0x10031ead
and eax, 0xfffffffe
push eax
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
ret