joyce8/EMBER2024-capa huggingface dataset:
Function at 0x7a4f90
Capabilities:
Query or enumerate registry key

Disassembly:
sub esp, 0x208
lea eax, [esp]
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
push ebp
push esi
push edi
xor edi, edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
mov esi, dword [esp + 0x21c]
mov ebp, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
jne 0x7a4ffb
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7a5035
lea edx, [esp + 0x10]
push esi
push edx
push SysStringLen
call fcn.007a4e00
add esp, 0xc
lea eax, [esp + 0x10]
inc edi
push 0x104
push eax
push edi
push SysStringLen
call ebx
test eax, eax
je 0x7a4fc5
mov edi, 0x7bf8b0
mov ecx, dword [esi + 8]
push 0
push ecx
call ebp
test eax, eax
je 0x7a5035
mov edx, dword [edi]
push esi
push edx
push reloc.OLEAUT32.dll_SysReAllocString
call fcn.007a4e00
add edi, 4
add esp, 0xc
cmp edi, 0x7bf8c0
jb 0x7a5000
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
add esp, 0x208
ret
pop edi
pop esi
pop ebp
xor al, al
pop ebx
add esp, 0x208
ret

Function at 0x7a5070
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x250
push esi
push edi
mov edi, dword [esp + 0x25c]
push 0x5c
push edi
call fcn.007ab082
mov esi, eax
add esp, 8
test esi, esi
je 0x7a5107
lea eax, [esp + 8]
mov word [esi], 0
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x7a5102
push ebx
lea ebx, [esi + 2]
push ebp
lea ecx, [esp + 0x3c]
push ebx
push ecx
call fcn.007aa946
add esp, 8
test eax, eax
je 0x7a50e3
mov ebp, dword [sym.imp.KERNEL32.dll_FindNextFileW]
lea edx, [esp + 0x10]
push edx
push edi
call ebp
test eax, eax
je 0x7a50e8
lea eax, [esp + 0x3c]
push ebx
push eax
call fcn.007aa946
add esp, 8
test eax, eax
jne 0x7a50c5
mov word [esi], 0x5c
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
cmp word [esi], 0
pop ebp
pop ebx
je 0x7a5102
pop edi
mov al, 1
pop esi
add esp, 0x250
ret
mov word [esi], 0x5c
pop edi
xor al, al
pop esi
add esp, 0x250
ret
Function at 0x7a5f10
Capabilities:
Get disk information

Disassembly:
push 0xffffffffffffffff
push 0x7ba9fb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0xc
push ebx
push ebp
push esi
push edi
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov esi, dword [esp + 0x2c]
xor ebp, ebp
mov dword [esp + 0x10], eax
xor ebx, ebx
mov eax, 1
mov ecx, ebx
shl eax, cl
mov ecx, dword [esp + 0x10]
test ecx, eax
je 0x7a6002
lea edx, [ebx + 0x41]
lea eax, [esp + 0x14]
push edx
push str._c:_
push eax
call fcn.007a9dff
add esp, 0xc
lea ecx, [esp + 0x14]
push ecx
call dword [sym.imp.KERNEL32.dll_GetDriveTypeW]
cmp eax, 3
jne 0x7a6002
lea edx, [esp + 0x14]
push edx
push str.Mounting__s_n
call fcn.007a16e0
lea eax, [esp + 0x1c]
lea edi, [esi + 0x1048]
push eax
push edi
mov word [esp + 0x28], bp
call fcn.007aa20b
push 0x10
call fcn.007aa1d3
add esp, 0x14
mov dword [esp + 0x2c], eax
cmp eax, ebp
mov dword [esp + 0x24], ebp
je 0x7a5fc5
mov cx, word [edi]
push ecx
mov ecx, eax
call fcn.007961c0
jmp 0x7a5fc7
xor eax, eax
push esi
mov dword [esp + 0x28], 0xffffffff
mov dword [esi], eax
call fcn.007a5b80
mov edi, dword [esi]
add esp, 4
cmp edi, ebp
je 0x7a5ff0
mov ecx, edi
call fcn.007962c0
push edi
call fcn.007aa1c8
add esp, 4
mov edx, dword [esi + 0x1024]
push ebp
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x7a6021
inc ebx
cmp ebx, 0x20
jb 0x7a5f3e
pop edi
pop esi
pop ebp
mov al, 1
pop ebx
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
add esp, 0x18
ret
mov ecx, dword [esp + 0x1c]
pop edi
pop esi
pop ebp
xor al, al
pop ebx
mov dword fs:[0], ecx
add esp, 0x18
ret
Function at 0x7a7250
Capabilities:
Compare security identifiers

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x7bb808
push 0x7ab288
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push ebx
push esi
push edi
xor ebx, ebx
mov dword [ebp - 0x1c], ebx
mov dword [ebp - 0x28], ebx
xor esi, esi
mov dword [ebp - 0x20], esi
mov byte [ebp - 0x24], bl
mov dword [ebp - 4], ebx
mov byte [ebp - 0x34], bl
mov byte [ebp - 0x33], bl
mov byte [ebp - 0x32], bl
mov byte [ebp - 0x31], bl
mov byte [ebp - 0x30], bl
mov byte [ebp - 0x2f], 5
lea eax, [ebp - 0x1c]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x12
push 1
lea ecx, [ebp - 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_AllocateAndInitializeSid]
test eax, eax
je 0x7a7329
lea edx, [ebp - 0x28]
push edx
push 8
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x7a7329
mov dword [ebp - 0x2c], ebx
lea eax, [ebp - 0x2c]
push eax
push ebx
push ebx
push 1
mov ecx, dword [ebp - 0x28]
push ecx
mov edi, dword [sym.imp.ADVAPI32.dll_GetTokenInformation]
call edi
mov edx, dword [ebp - 0x2c]
push edx
call fcn.007aa1d3
add esp, 4
mov esi, eax
mov dword [ebp - 0x38], esi
mov dword [ebp - 0x20], esi
cmp esi, ebx
je 0x7a7329
lea eax, [ebp - 0x2c]
push eax
mov ecx, dword [ebp - 0x2c]
push ecx
push esi
push 1
mov edx, dword [ebp - 0x28]
push edx
call edi
test eax, eax
je 0x7a7329
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [esi]
push ecx
call dword [sym.imp.ADVAPI32.dll_EqualSid]
neg eax
sbb eax, eax
neg eax
mov byte [ebp - 0x24], al
jmp 0x7a732c
mov al, byte [ebp - 0x24]
mov dword [ebp - 4], 0xffffffff
call fcn.007a7351
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x7a7d20
Capabilities:
Query or enumerate registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
push esi
mov esi, dword [esp + 0x10]
lea eax, [esp + 4]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
mov dword [esp + 0x1c], 8
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x7a7d58
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x18]
mov dword [esi], ecx
mov dword [esi + 4], edx
pop esi
pop ecx
ret 0x10

Function at 0x7a7d60
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
push esi
mov esi, dword [esp + 0xc]
lea eax, [esp + 0x10]
push eax
mov eax, dword [ecx + 4]
push esi
push 0
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x7a7d94
mov eax, dword [esp + 0x14]
test eax, eax
je 0x7a7d94
push eax
push esi
call fcn.007aa20b
add esp, 8
pop esi
ret 0x10

Function at 0x7a7da0
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x24
lea eax, [esp + 0x28]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7a7e22
push ebx
mov ebx, dword [esp + 0x30]
push esi
xor esi, esi
test ebx, ebx
jbe 0x7a7e15
push ebp
mov ebp, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push edi
mov edi, dword [esp + 0x40]
push esi
lea ecx, [esp + 0x18]
push 0x7c0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.007a9dff
mov ecx, dword [esp + 0x44]
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
push edx
push edi
push 0
push 0
push eax
push ecx
call ebp
inc esi
add edi, 4
cmp esi, ebx
jb 0x7a7dda
pop edi
pop ebp
mov edx, dword [esp + 0x30]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
add esp, 0x24
ret 0xc

Function at 0x7a7e30
Capabilities:
Query or enumerate registry value

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x28
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push 0x20019
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x7a7ec2
push ebp
mov ebp, dword [esp + 0x34]
push esi
xor esi, esi
test ebp, ebp
jbe 0x7a7eb5
push ebx
mov ebx, dword [esp + 0x40]
push edi
mov edi, dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push esi
lea ecx, [esp + 0x1c]
push 0x7c0320
push ecx
mov dword [esp + 0x1c], 4
call fcn.007a9dff
add esp, 0xc
lea edx, [esp + 0x10]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x18]
push edx
mov edx, dword [esp + 0x40]
push eax
push 0
push 0
push ecx
push edx
call edi
test eax, eax
jne 0x7a7eab
mov ax, word [esp + 0x14]
mov word [ebx], ax
inc esi
add ebx, 2
cmp esi, ebp
jb 0x7a7e6a
pop edi
pop ebx
mov ecx, dword [esp + 0x34]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebp
add esp, 0x28
ret 0xc
Function at 0x7a8000
Capabilities:
Get file version info

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
lea eax, [esp + 0xc]
push edi
push eax
push ebx
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov esi, eax
test esi, esi
je 0x7a8131
push esi
call fcn.007ab145
add esp, 4
mov edi, eax
push edi
push esi
push 0
push ebx
call sub.VERSION.dll_GetFileVersionInfoW
push 0
push 0x80
push 3
push 0
push 0
push 0xc0000000
push ebx
call fcn.0079a080
mov ebp, eax
add esp, 0x1c
cmp ebp, 0xffffffff
je 0x7a8131
push 0
push ebp
call fcn.0079a3a0
push 0
push 0
push 0
push 4
push 0
push ebp
mov ebx, eax
call fcn.0079a260
add esp, 0x20
mov dword [esp + 0x18], eax
test eax, eax
jne 0x7a808b
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
push 0
push 0
push 0
push 6
push eax
call fcn.0079a2f0
mov esi, eax
add esp, 0x14
test esi, esi
je 0x7a8121
push 0x7c0918
push edi
call fcn.007a93f0
push eax
push ebx
push esi
call fcn.007a7f60
push 0x7c08f8
push edi
call fcn.007a93f0
push eax
push ebx
push esi
call fcn.007a7f60
push 0x7c08d8
push edi
call fcn.007a93f0
push eax
push ebx
push esi
call fcn.007a7f60
push 0x7c08c0
push edi
call fcn.007a93f0
add esp, 0x44
push eax
push ebx
push esi
call fcn.007a7f60
push 0x7c08a0
push edi
call fcn.007a93f0
push eax
push ebx
push esi
call fcn.007a7f60
push 0x7c0888
push edi
call fcn.007a93f0
push eax
push ebx
push esi
call fcn.007a7f60
add esp, 0x34
push esi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov ecx, dword [esp + 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
push ebp
call esi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret
Function at 0x7a91b0
Capabilities:
Acquire debug privileges

Disassembly:
push ecx
lea eax, [esp]
mov dword [esp], 0
push eax
push 0x20
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ecx, dword [esp]
push 1
push str.SeBackupPrivilege
push ecx
call fcn.007a9140
mov edx, dword [esp + 0xc]
push 1
push str.SeDebugPrivilege
push edx
call fcn.007a9140
mov eax, dword [esp + 0x18]
push 1
push str.SeRestorePrivilege
push eax
call fcn.007a9140
mov ecx, dword [esp + 0x24]
push 1
push str.SeSecurityPrivilege
push ecx
call fcn.007a9140
mov edx, dword [esp + 0x30]
add esp, 0x30
push edx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov al, 1
pop ecx
ret

Function at 0x7a9bfa
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
lea eax, [ebp - 4]
push eax
push 0x20019
xor esi, esi
push esi
push str.CLSIDADB880A6_D8FF_11CF_9377_00AA003B7A11InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x7a9c50
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
mov dword [ebp - 8], 0x104
push esi
push esi
push 0x7bb87c
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x7a9c43
inc esi
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
jmp 0x7a9c52
xor eax, eax
pop esi
leave
ret 4
Function at 0x4015b0
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x66c
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x664], eax
push ebx
push ebp
push esi
push edi
xor eax, eax
push 0x206
mov esi, ecx
push eax
lea ecx, [esp + 0x472]
push ecx
mov edi, edx
mov word [esp + 0x474], ax
call fcn.0047c020
xor edx, edx
push 0x206
push edx
lea eax, [esp + 0x276]
push eax
mov word [esp + 0x278], dx
call fcn.0047c020
push 0x24c
lea ecx, [esp + 0x30]
push 0
push ecx
mov dword [esp + 0x34], 0
call fcn.0047c020
push str..log
push edi
add esi, 0x430
push esi
push 0x4a4850
mov ecx, 0x104
lea ebx, [esp + 0x49c]
call fcn.00402360
add esp, 0x34
lea edx, [esp + 0x10]
push edx
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x4016a2
mov ebp, dword [sym.imp.KERNEL32.dll_DeleteFileW]
test byte [esp + 0x10], 0x10
jne 0x40168b
lea ecx, [esp + 0x3c]
push ecx
push esi
push 0x4a4864
mov ecx, 0x104
lea ebx, [esp + 0x26c]
call fcn.00402360
add esp, 0xc
mov edx, ebx
push edx
call ebp
lea eax, [esp + 0x10]
push eax
push edi
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401660
push edi
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x674]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00476dfd
add esp, 0x66c
ret

Function at 0x4016c0
Capabilities:
Enumerate files on windows

Disassembly:
sub esp, 0x674
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x66c], eax
mov eax, dword [esp + 0x678]
push ebx
push ebp
mov ebp, dword [esp + 0x684]
push esi
push edi
push str..log2
mov edi, ecx
xor ecx, ecx
lea esi, [eax + 0x430]
push str.New360_formal_
mov word [ebp], cx
push esi
push 0x4a4850
mov ecx, 0x104
lea ebx, [esp + 0x480]
call fcn.00402360
add esp, 0x10
lea edx, [esp + 0x18]
push edx
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov ebx, eax
mov dword [esp + 0x14], ebx
cmp ebx, 0xffffffff
je 0x4017de
test byte [esp + 0x18], 0x10
jne 0x40176f
lea ecx, [esp + 0x44]
push ecx
push esi
push 0x4a4864
mov ecx, 0x104
lea ebx, [esp + 0x274]
call fcn.00402360
add esp, 0xc
test edi, edi
je 0x40176b
mov edx, ebx
push edx
call fcn.00401800
test eax, eax
jne 0x40178d
mov ebx, dword [esp + 0x14]
lea eax, [esp + 0x18]
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401735
push ebx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x4017e0
lea esi, [esp + 0x268]
mov edx, 0x104
mov eax, ebp
sub esi, ebp
lea ecx, [ecx]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4017c0
movzx ecx, word [esi + eax]
test cx, cx
je 0x4017c0
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x4017a0
jmp 0x4017c4
test edx, edx
jne 0x4017c7
sub eax, 2
mov ebx, dword [esp + 0x14]
xor edx, edx
push ebx
mov word [eax], dx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov eax, 1
jmp 0x4017e0
xor eax, eax
mov ecx, dword [esp + 0x67c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00476dfd
add esp, 0x674
ret 8
Function at 0x4018e0
Capabilities:
Delete file
Move file

Disassembly:
sub esp, 0xa40
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0xa3c], eax
push ebx
push ebp
mov ebp, dword [esp + 0xa4c]
push esi
push edi
push str.Newctrl.lck
lea eax, [ebp + 0x430]
push eax
push 0x4a4864
mov ecx, 0x104
lea ebx, [esp + 0x84c]
mov dword [esp + 0x20], 0
call fcn.00402360
add esp, 0xc
mov ecx, ebx
push ecx
lea edi, [esp + 0x20]
call fcn.00401800
test eax, eax
jne 0x401946
mov eax, 2
jmp 0x401abd
mov edx, str.360_tmp_
mov ecx, ebp
call fcn.004015b0
mov edx, str.360_formal_
mov ecx, ebp
call fcn.004015b0
lea edx, [esp + 0x228]
push edx
push ebp
lea ecx, [esp + 0x20]
call fcn.004016c0
test eax, eax
jne 0x4019f3
lea eax, [esp + 0x430]
push eax
push ebp
call fcn.00401d70
test eax, eax
je 0x4019e6
xor ecx, ecx
cmp cx, word [esp + 0x430]
je 0x4019e6
lea eax, [esp + 0x638]
lea esi, [esp + 0x430]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x4019cb
movzx ecx, word [esi + eax]
test cx, cx
je 0x4019cb
add eax, 2
sub edx, 1
jne 0x4019b0
lea eax, [esp + 0x430]
push eax
lea edx, [esp + 0x24]
mov ecx, ebp
call fcn.00401ef0
test eax, eax
jne 0x401a7b
mov dword [esp + 0x14], 2
jmp 0x401ab0
xor ecx, ecx
cmp cx, word [esp + 0x228]
je 0x4019e6
push str..up2
lea edx, [esp + 0x22c]
push edx
push str._s_s
mov ecx, 0x104
lea ebx, [esp + 0x2c]
call fcn.00402360
add esp, 0xc
lea esi, [esp + 0x18]
call fcn.00401880
push 1
mov eax, ebx
push eax
lea ecx, [esp + 0x230]
push ecx
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x401ab0
lea eax, [esp + 0x638]
lea esi, [esp + 0x228]
mov ecx, eax
mov edx, 0x104
sub esi, ecx
lea esp, [esp]
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x401a7b
movzx ecx, word [esi + eax]
test cx, cx
je 0x401a7b
add eax, 2
sub edx, 1
jne 0x401a60
lea eax, [esp + 0x20]
push eax
call fcn.00401ae0
lea ecx, [esp + 0x20]
test eax, eax
jne 0x401a96
push ecx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
jmp 0x401ab0
mov esi, ebp
call fcn.00401bf0
lea edx, [esp + 0x20]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov dword [esp + 0x14], 1
lea esi, [esp + 0x1c]
call fcn.00401880
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0xa4c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00476dfd
add esp, 0xa40
ret 4
Function at 0x401ae0
Capabilities:
Read file on windows
Write file on windows

Disassembly:
sub esp, 0xd8
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0xd4], eax
mov eax, dword [esp + 0xdc]
push esi
push edi
xor edi, edi
push edi
push edi
push 4
push edi
push 3
push 0x12019f
push eax
mov dword [esp + 0x24], edi
mov dword [esp + 0x28], edi
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x401bc9
push 0xc4
lea eax, [esp + 0x18]
push edi
push eax
mov dword [esp + 0x1c], edi
call fcn.0047c020
add esp, 0xc
push edi
lea ecx, [esp + 0x10]
push ecx
push 0xc8
lea edx, [esp + 0x1c]
push edx
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401bc2
cmp dword [esp + 0xc], 0xc8
jne 0x401bc2
cmp dword [esp + 0x10], 0x5148534c
jne 0x401bc2
cmp dword [esp + 0x14], 0xc8
jne 0x401bc2
push edi
call fcn.00477050
add esp, 4
push edi
push edi
push edi
push esi
mov dword [esp + 0x30], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401bc2
push edi
lea eax, [esp + 0xc]
push eax
push 0xc8
lea ecx, [esp + 0x1c]
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
je 0x401bc2
cmp dword [esp + 8], 0xc8
jne 0x401bc2
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
lea eax, [edi + 1]
jmp 0x401bcb
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, edi
mov ecx, dword [esp + 0xdc]
pop edi
pop esi
xor ecx, esp
call fcn.00476dfd
add esp, 0xd8
ret 4
Function at 0x401d70
Capabilities:
Delete file
Enumerate files on windows

Disassembly:
sub esp, 0x67c
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x674], eax
mov eax, dword [esp + 0x680]
push ebx
push ebp
mov ebp, dword [esp + 0x68c]
push esi
push edi
push str..log2
lea esi, [eax + 0x430]
xor ecx, ecx
push str.New360_tmp_
mov word [ebp], cx
push esi
push 0x4a4850
mov ecx, 0x104
lea ebx, [esp + 0x488]
mov dword [esp + 0x28], esi
call fcn.00402360
add esp, 0x10
lea edx, [esp + 0x20]
push edx
mov eax, ebx
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
mov dword [esp + 0x14], eax
cmp eax, 0xffffffff
je 0x401ecc
test byte [esp + 0x20], 0x10
jne 0x401ea9
lea ecx, [esp + 0x4c]
push ecx
push esi
push 0x4a4864
mov ecx, 0x104
lea ebx, [esp + 0x27c]
call fcn.00402360
mov edx, dword [esp + 0x44]
mov eax, dword [esp + 0x40]
add esp, 0xc
push edx
push eax
call fcn.00401cd0
test eax, eax
je 0x401ea9
mov ecx, ebx
push ecx
lea edi, [esp + 0x20]
call fcn.00401800
test eax, eax
je 0x401ea9
mov esi, ebx
mov edx, 0x104
mov eax, ebp
sub esi, ebp
lea ecx, [edx + 0x7ffffefa]
test ecx, ecx
je 0x401e61
movzx ecx, word [esi + eax]
test cx, cx
je 0x401e61
mov word [eax], cx
add eax, 2
sub edx, 1
jne 0x401e41
jmp 0x401e65
test edx, edx
jne 0x401e68
sub eax, 2
xor edx, edx
lea esi, [esp + 0x1c]
mov word [eax], dx
call fcn.00401880
mov eax, dword [esp + 0x3c]
push 1
push 0
push 0
push eax
call fcn.00483030
mov ecx, dword [esp + 0x40]
xor esi, esi
add eax, ecx
adc edx, esi
test eax, eax
jne 0x401ec1
test edx, edx
jne 0x401ec1
push ebp
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov esi, dword [esp + 0x18]
xor edx, edx
mov word [ebp], dx
mov ecx, dword [esp + 0x14]
lea eax, [esp + 0x20]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindNextFileW]
test eax, eax
jne 0x401de5
mov edx, dword [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [esp + 0x684]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
mov eax, 1
call fcn.00476dfd
add esp, 0x67c
ret 8
Function at 0x401ef0
Capabilities:
Delete file
Read file on windows
Write file on windows

Disassembly:
mov eax, 0x400e0
call fcn.0048ef80
mov eax, dword [0x4c13e0]
xor eax, esp
mov dword [esp + 0x400dc], eax
push ebx
push ebp
mov ebp, dword [esp + 0x400ec]
push esi
push edi
xor edi, edi
push 0xc4
lea eax, [esp + 0x28]
push edi
push eax
mov esi, ecx
mov ebx, edx
mov dword [esp + 0x28], ebp
mov dword [esp + 0x24], edi
mov dword [esp + 0x2c], edi
call fcn.0047c020
add esp, 0xc
push str..log2
push edi
call fcn.00477050
add esp, 4
push eax
push str.New360_tmp_
push str.up2.
add esi, 0x430
push esi
push str._s_s_s_d_s
mov ecx, 0x104
call fcn.00402360
add esp, 0x18
push edi
push edi
push 4
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileW]
push 3
push 0x12019f
push ebx
call edi
mov esi, eax
cmp esi, 0xffffffff
je 0x402085
push 0
push 0
push 3
push 0
push 1
push 0x120089
push ebp
call edi
mov edi, eax
cmp edi, 0xffffffff
jne 0x401faa
xor edi, edi
jmp 0x402071
mov ebx, dword [sym.imp.KERNEL32.dll_ReadFile]
push 0
lea ecx, [esp + 0x14]
push ecx
push 0xc8
lea edx, [esp + 0x2c]
push edx
push edi
call ebx
test eax, eax
je 0x402071
cmp dword [esp + 0x10], 0xc8
jne 0x402071
mov ebp, dword [sym.imp.KERNEL32.dll_WriteFile]
push 0
lea eax, [esp + 0x18]
push eax
push 0xc8
lea ecx, [esp + 0x2c]
push ecx
push esi
mov dword [esp + 0x48], 1
call ebp
test eax, eax
je 0x402071
cmp dword [esp + 0x14], 0xc8
jne 0x402071
push 0
lea edx, [esp + 0x14]
push edx
push 0x40000
lea eax, [esp + 0xf4]
push eax
push edi
call ebx
test eax, eax
je 0x402069
mov eax, dword [esp + 0x10]
test eax, eax
je 0x402069
push 0
lea ecx, [esp + 0x18]
push ecx
push eax
lea edx, [esp + 0xf4]
push edx
push esi
call ebp
test eax, eax
je 0x402071
mov eax, dword [esp + 0x14]
cmp eax, dword [esp + 0x10]
jne 0x402071
push 0
lea ecx, [esp + 0x14]
push ecx
push 0x40000
lea edx, [esp + 0xf4]
push edx
push edi
call ebx
test eax, eax
jne 0x402025
mov dword [esp + 0x18], 1
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x40207e
push esi
call ebx
test edi, edi
je 0x402085
push edi
call ebx
mov eax, dword [esp + 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 0x400ec]
mov eax, dword [esp + 0x18]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00476dfd
add esp, 0x400e0
ret 4