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

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov esi, edx
mov ebx, eax
test ebx, ebx
je 0x40658d
lea eax, [esp + 4]
push eax
push 0
lea eax, [esp + 8]
push eax
push 0
mov eax, esi
call fcn.00403af4
push eax
push ebx
call sub.advapi32.dll_RegQueryValueExA_1
test eax, eax
je 0x406591
xor eax, eax
jmp 0x406593
mov al, 1
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4065d0
Capabilities:
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff0
push ebx
push esi
push edi
xor ecx, ecx
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edx
mov edi, eax
xor eax, eax
push ebp
push 0x40668f
push dword fs:[eax]
mov dword fs:[eax], esp
xor ebx, ebx
mov eax, dword [ebp - 4]
call fcn.0040c47c
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push 0
push edi
call sub.advapi32.dll_RegQueryInfoKeyA
test eax, eax
jne 0x406679
cmp dword [ebp - 8], 0
jbe 0x406677
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
call fcn.00402830
mov ebx, eax
xor esi, esi
jmp 0x406655
lea eax, [ebp - 0x10]
mov edx, ebx
call fcn.00403870
mov edx, dword [ebp - 0x10]
mov eax, dword [ebp - 4]
call fcn.0040c46c
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 0xc], eax
inc esi
push 0
push 0
push 0
push 0
lea eax, [ebp - 0xc]
push eax
push ebx
push esi
push edi
call sub.advapi32.dll_RegEnumKeyExA
cmp eax, 0x103
jne 0x406638
mov eax, ebx
call fcn.00402860
mov bl, 1
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x406696
lea eax, [ebp - 0x10]
call fcn.00403694
ret

Function at 0x406f68
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffff004
push eax
add esp, 0xfffffffc
push ebx
push esi
push edi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
mov edi, dword [ebp + 8]
cmp byte [ebx + 0x18], 0
jne 0x406fe4
mov byte [ebp - 0x1004], 0
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
push 0x1000
lea eax, [ebp - 0x1004]
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_GetPrivateProfileStringA
test eax, eax
je 0x406fdb
mov eax, edi
lea edx, [ebp - 0x1004]
mov ecx, 0x1000
call fcn.004038dc
jmp 0x407015
mov eax, edi
call fcn.00403694
jmp 0x407015
mov eax, edi
mov edx, esi
call fcn.004036e8
mov eax, dword [ebx + 0x19]
call fcn.00403af4
push eax
mov eax, esi
call fcn.00403af4
push eax
mov eax, dword [ebp - 4]
call fcn.00403af4
push eax
mov eax, dword [ebx + 0x1d]
call fcn.00403af4
push eax
call sub.kernel32.dll_WritePrivateProfileStringA
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x40b8b4
Capabilities:
Hide graphical window

Disassembly:
and byte [eax + 0x27], 0xef
test dl, dl
je 0x40b8c0
or byte [eax + 0x27], 0x10
mov ecx, dword [eax + 0x1c]
jecxz 0x40b8d9
push eax
je 0x40b8da
call dword [0x426148]
pop eax
push 5
push dword [eax + 0x1c]
call sub.user32.dll_ShowWindow
ret
and byte [eax + 0x37], 0xfe
push 0
push ecx
call sub.user32.dll_ShowWindow
pop eax
call dword [0x426148]
ret
Function at 0x40e488
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffffec
push ebx
push esi
push edi
mov word [ebp - 2], cx
mov edi, edx
mov esi, eax
push 0
push 0x8000080
push 3
push 0
push 1
push 0xc0000000
push esi
call sub.kernel32.dll_CreateFileA
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x40e4bc
xor eax, eax
jmp 0x40e50d
lea eax, [ebp - 0xc]
push eax
mov ax, word [ebp - 2]
push eax
push edi
call sub.kernel32.dll_DosDateTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0xc]
push eax
call sub.kernel32.dll_LocalFileTimeToFileTime
test eax, eax
je 0x40e4f0
lea eax, [ebp - 0x14]
push eax
push 0
lea eax, [ebp - 0x14]
push eax
push ebx
call sub.kernel32.dll_SetFileTime
push ebx
call sub.kernel32.dll_CloseHandle
mov ax, word [ebp + 8]
and ax, 0x27
movzx eax, ax
push eax
push esi
call sub.kernel32.dll_SetFileAttributesA
mov eax, 1
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x415858
Capabilities:
Hash data with crc32

Disassembly:
push ebx
push esi
xor esi, esi
mov ecx, 0x4299d0
mov eax, esi
mov edx, 8
mov ebx, eax
and ebx, 1
test bl, bl
je 0x41587a
shr eax, 1
xor eax, 0xedb88320
jmp 0x41587c
shr eax, 1
dec edx
jne 0x415868
mov dword [ecx], eax
inc esi
add ecx, 4
cmp esi, 0x100
jne 0x415861
mov byte [0x429dd0], 1
pop esi
pop ebx
ret

Function at 0x415898
Capabilities:
Encode data using xor

Disassembly:
push ebx
push esi
push edi
mov edi, ecx
mov esi, edx
mov ebx, eax
cmp byte [0x429dd0], 0
jne 0x4158af
call fcn.00415858
mov eax, edi
dec eax
test eax, eax
jl 0x4158d8
inc eax
xor edx, edx
xor ecx, ecx
mov cl, byte [esi + edx]
xor ecx, ebx
and ecx, 0xff
mov ecx, dword [ecx*4 + 0x4299d0]
shr ebx, 8
xor ecx, ebx
mov ebx, ecx
inc edx
dec eax
jne 0x4158b9
mov eax, ebx
pop edi
pop esi
pop ebx
ret

Function at 0x41eecc
Capabilities:
Delete file

Disassembly:
push ebx
add esp, 0xfffffff0
mov ebx, eax
cmp dword [0x42a02c], 0
jle 0x41eeeb
mov eax, dword [0x42a038]
call fcn.00403af4
push eax
call sub.kernel32.dll_DeleteFileA
mov eax, ebx
call fcn.0040ab20
mov dword [esp], eax
mov eax, dword [esp]
mov edx, 0x41efa0
call fcn.00406a68
mov eax, 0x75
call fcn.00422b38
cmp eax, dword [0x42a02c]
jne 0x41ef29
mov eax, 0x76
call fcn.00422b38
cdq
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
jmp 0x41ef3c
mov eax, 0x5f
call fcn.00422b38
cdq
mov dword [esp + 8], eax
mov dword [esp + 0xc], edx
cmp dword [0x42a034], 1
jne 0x41ef6b
mov eax, 0x5f
call fcn.00422b38
mov edx, eax
imul edx, dword [0x42a02c]
mov eax, dword [0x42882c]
add edx, dword [eax]
mov eax, dword [0x42a030]
xor ecx, ecx
call fcn.00406b50
push dword [esp + 0xc]
push dword [esp + 0xc]
mov eax, dword [esp + 8]
call fcn.0041ecc8
mov eax, dword [esp]
call fcn.0040a210
mov eax, 0x42a038
mov edx, ebx
call fcn.004036e8
add esp, 0x10
pop ebx
ret
Function at 0x423113
Capabilities:
Compare security identifiers

Disassembly:
push ebx
push esi
push edi
add esp, 0xfffffff0
mov byte [esp], 0
lea eax, [esp + 4]
push eax
push 0xffffffffffffffff
push 8
call sub.kernel32.dll_GetCurrentThread
push eax
call sub.advapi32.dll_OpenThreadToken
mov ebx, eax
test ebx, ebx
jne 0x4230c0
call sub.kernel32.dll_GetLastError
cmp eax, 0x3f0
jne 0x4230c0
lea eax, [esp + 4]
push eax
push 8
call sub.kernel32.dll_GetCurrentProcess
push eax
call sub.advapi32.dll_OpenProcessToken
mov ebx, eax
test ebx, ebx
je 0x423157
mov eax, 0x400
call fcn.00402830
mov esi, eax
lea eax, [esp + 8]
push eax
push 0x400
push esi
push 2
mov eax, dword [esp + 0x14]
push eax
call sub.advapi32.dll_GetTokenInformation
mov ebx, eax
mov eax, dword [esp + 4]
push eax
call sub.kernel32.dll_CloseHandle
test ebx, ebx
je 0x423150
lea eax, [esp + 0xc]
push eax
push 0
push 0
push 0
push 0
push 0
push 0
push 0x220
push 0x20
push 2
push 0x4287d0
call sub.advapi32.dll_AllocateAndInitializeSid
mov ebx, dword [esi]
dec ebx
test ebx, ebx
jl 0x423146
inc ebx
xor edi, edi
mov eax, dword [esi + edi*8 + 4]
push eax
mov eax, dword [esp + 0x10]
push eax
call sub.advapi32.dll_EqualSid
test eax, eax
je 0x423142
mov byte [esp], 1
jmp 0x423146
inc edi
dec ebx
jne 0x423129
mov eax, dword [esp + 0xc]
push eax
call sub.advapi32.dll_FreeSid
mov eax, esi
call fcn.00402860
mov al, byte [esp]
add esp, 0x10
pop edi
pop esi
pop ebx
ret

Function at 0x423494
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffff8
push ebx
xor edx, edx
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
call fcn.00403ae4
xor eax, eax
push ebp
push 0x4234c1
push dword fs:[eax]
mov dword fs:[eax], esp
lea edx, [ebp - 8]
mov eax, dword [ebp - 4]
call fcn.0040a9b4
mov edx, dword [ebp - 8]
mov eax, 0x42a0dc
call fcn.004036e8
xor eax, eax
mov dword [0x42a0d8], eax
push 0
push 0x423364
call sub.user32.dll_EnumWindows
mov ebx, dword [0x42a0d8]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4234c8
lea eax, [ebp - 8]
mov edx, 2
call fcn.004036b8
ret

Function at 0x4234e2
Capabilities:
Terminate process

Disassembly:
push ebx
push esi
push edi
push ecx
mov esi, eax
xor ebx, ebx
test esi, esi
jns 0x4234e1
call fcn.00402d14
push esi
push 0xffffffffffffffff
push 0x1f0fff
call sub.kernel32.dll_OpenProcess
mov edi, eax
test edi, edi
jns 0x4234f9
call fcn.00402d14
push esp
mov esi, edi
test esi, esi
jns 0x423505
call fcn.00402d14
push esi
call sub.kernel32.dll_GetExitCodeProcess
test edi, edi
je 0x423528
mov eax, dword [esp]
push eax
test edi, edi
jns 0x42351c
call fcn.00402d14
push esi
call sub.kernel32.dll_TerminateProcess
cmp eax, 1
sbb ebx, ebx
inc ebx
test edi, edi
jns 0x423531
call fcn.00402d14
push esi
call sub.kernel32.dll_CloseHandle
mov eax, ebx
pop edx
pop edi
pop esi
pop ebx
ret
Function at 0x100584f0
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10232cb0
mov eax, dword fs:[0]
push eax
sub esp, 0x3c
mov eax, dword [0x102d2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
call fcn.1004d2e0
test al, al
je 0x1005852d
xor al, al
jmp 0x100586cf
call fcn.100582f0
test al, al
je 0x1005853d
mov al, 1
jmp 0x100586cf
push 0
mov ecx, edi
call fcn.1004d2f0
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push eax
call ebx
test eax, eax
jne 0x1005858b
lea ecx, [ebp - 0x28]
call fcn.1004d3b0
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.1005b6a0
test al, al
je 0x1005857c
push 0
lea ecx, [ebp - 0x28]
call fcn.1004d2f0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1004b680
mov ecx, edi
call fcn.100582f0
test al, al
jne 0x10058536
mov ecx, edi
call fcn.1004d6e0
xor esi, esi
mov dword [ebp - 0x44], eax
test eax, eax
je 0x10058675
call fcn.1004b690
mov ebx, eax
mov ecx, dword [ebx + 0x14]
mov eax, ebx
cmp ecx, 8
jb 0x100585bd
mov eax, dword [ebx]
mov edx, 0x2f
cmp dx, word [eax + esi*2]
mov edx, 0x5c
je 0x100585e0
mov eax, ebx
cmp ecx, 8
jb 0x100585d6
mov eax, dword [ebx]
cmp dx, word [eax + esi*2]
jne 0x10058665
push esi
push 0
lea eax, [ebp - 0x28]
mov ecx, edi
push eax
call fcn.1004d280
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1004d2e0
test al, al
jne 0x10058656
call fcn.100580f0
test al, al
jne 0x10058656
push 0
lea ecx, [ebp - 0x28]
call fcn.1004d2f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
jne 0x10058656
lea ecx, [ebp - 0x40]
call fcn.1004d3b0
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x28]
call fcn.1005b6a0
test al, al
je 0x1005864a
push 0
lea ecx, [ebp - 0x40]
call fcn.1004d2f0
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x40]
call fcn.1004b680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1004b680
inc esi
cmp esi, dword [ebp - 0x44]
jb 0x100585b1
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
mov ecx, edi
call fcn.100580f0
test al, al
jne 0x100586c8
push 0
mov ecx, edi
call fcn.1004d2f0
push eax
call ebx
test eax, eax
jne 0x100586c8
lea ecx, [ebp - 0x40]
call fcn.1004d3b0
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, edi
call fcn.1005b6a0
test al, al
je 0x100586b9
push 0
lea ecx, [ebp - 0x40]
call fcn.1004d2f0
push eax
call ebx
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.1004b680
mov ecx, edi
call fcn.100582f0
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
Function at 0x1005ac20
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x102c1fa8
push 0x1010f8d7
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x102d2008]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x28], 0
xor esi, esi
mov dword [ebp - 0x3c], esi
mov dword [ebp - 0x2c], esi
xor ebx, ebx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 0x24], ebx
mov word [ebp - 0x20], 0x100
mov eax, dword [ecx]
mov edi, dword [eax + 0x28]
mov dword [ebp - 0x40], edi
test edi, edi
jne 0x1005ac89
xor eax, eax
jmp 0x1005adff
mov dword [ebp - 4], ebx
push str.InitializeSecurityDescriptor
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005adca
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1005adca
push str.AllocateAndInitializeSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005adca
lea ecx, [ebp - 0x28]
push ecx
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 1
lea ecx, [ebp - 0x24]
push ecx
call eax
test eax, eax
je 0x1005adca
push str.GetLengthSid
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005adca
push dword [ebp - 0x28]
call eax
add eax, 0x10
mov dword [ebp - 0x30], eax
push eax
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov esi, eax
mov dword [ebp - 0x3c], esi
test esi, esi
je 0x1005adca
push str.InitializeAcl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005adca
push 2
push dword [ebp - 0x30]
push esi
call eax
test eax, eax
je 0x1005adca
push str.AddAccessAllowedAce
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x1005adca
push dword [ebp - 0x28]
push 0x10000000
push 2
push esi
call eax
test eax, eax
je 0x1005adca
push str.SetSecurityDescriptorDacl
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp - 0x30], eax
test eax, eax
je 0x1005adca
mov ecx, dword [ebp - 0x2c]
test ecx, ecx
je 0x1005adb3
push 0
push ecx
push 1
push dword [ebp - 0x34]
call eax
test eax, eax
je 0x1005ada0
mov ebx, 1
mov dword [ebp - 0x38], ebx
cmp dword [ebp - 0x2c], 0
je 0x1005adb0
jmp 0x1005adca
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov dword [ebp - 0x2c], 0
mov eax, dword [ebp - 0x30]
push 0
push esi
push 1
push dword [ebp - 0x34]
call eax
mov ecx, 1
test eax, eax
cmovne ebx, ecx
mov dword [ebp - 0x38], ebx
mov dword [ebp - 4], 0xfffffffe
call fcn.1005ae26
test ebx, ebx
jne 0x1005adfd
test esi, esi
je 0x1005adef
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor esi, esi
mov eax, dword [ebp - 0x2c]
test eax, eax
je 0x1005adfd
push eax
call dword [sym.imp.KERNEL32.dll_LocalFree]
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1005ae50
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10232be8
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x102d2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
call fcn.1004d2f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x1005aecd
lea ecx, [ebp - 0x28]
call fcn.1004d3b0
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, ebx
call fcn.1005b6a0
test al, al
je 0x1005aebc
lea ecx, [ebp - 0x28]
call fcn.1004d2f0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x28]
call fcn.1004b680
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret

Function at 0x1005b000
Capabilities:
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102333c8
mov eax, dword fs:[0]
push eax
sub esp, 0x4c
mov eax, dword [0x102d2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, edx
mov edi, ecx
push 0xb
mov ecx, esi
call fcn.1004d2f0
push eax
mov ecx, edi
call fcn.1004d2f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x1005b052
mov al, 1
jmp 0x1005b13e
lea ecx, [ebp - 0x58]
xor bl, bl
call fcn.1004d3b0
mov dword [ebp - 4], 0
mov edx, ecx
mov ecx, edi
call fcn.1005b6a0
test al, al
movzx ebx, bl
mov ecx, 1
cmovne ebx, ecx
lea ecx, [ebp - 0x40]
call fcn.1004d3b0
mov byte [ebp - 4], 1
mov edx, ecx
mov ecx, esi
call fcn.1005b6a0
test al, al
jne 0x1005b096
test bl, bl
je 0x1005b0b4
push 0xb
lea ecx, [ebp - 0x40]
call fcn.1004d2f0
push eax
lea ecx, [ebp - 0x58]
call fcn.1004d2f0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
jne 0x1005b108
mov ecx, esi
call fcn.1005ae50
cmp eax, 0xffffffff
je 0x1005b11f
push esi
lea ecx, [ebp - 0x28]
call fcn.1004d3d0
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x28]
call fcn.1005b460
test al, al
je 0x1005b113
lea edx, [ebp - 0x28]
mov ecx, esi
call fcn.1005aef0
test al, al
je 0x1005b113
mov edx, esi
mov ecx, edi
call fcn.1005aef0
lea ecx, [ebp - 0x28]
test al, al
je 0x1005b10c
call fcn.1005b260
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1004b680
mov bl, 1
jmp 0x1005b121
mov edx, esi
call fcn.1005aef0
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1004b680
xor bl, bl
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.1004b680
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.1004b680
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
Function at 0x1005b260
Capabilities:
Delete file
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x10233420
mov eax, dword fs:[0]
push eax
sub esp, 0x50
mov eax, dword [0x102d2008]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
call fcn.1004d2f0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
je 0x1005b2a4
mov al, 1
jmp 0x1005b43a
mov ecx, esi
call fcn.1004d2f0
push eax
lea ecx, [ebp - 0x40]
call fcn.1004fa20
mov dword [ebp - 4], 0
lea ecx, [ebp - 0x40]
call fcn.1005ae50
mov edi, eax
mov dword [ebp - 0x44], edi
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.1004b680
cmp edi, 0xffffffff
jne 0x1005b2e3
xor al, al
jmp 0x1005b43a
mov ecx, esi
call fcn.1004d2f0
push eax
lea ecx, [ebp - 0x5c]
call fcn.1004fa20
mov dword [ebp - 4], 1
lea ecx, [ebp - 0x5c]
push 0
call fcn.1004d2f0
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
push eax
call edi
test eax, eax
je 0x1005b315
xor bl, bl
jmp 0x1005b35e
lea ecx, [ebp - 0x28]
call fcn.1004d3b0
mov byte [ebp - 4], 2
mov edx, ecx
lea ecx, [ebp - 0x5c]
call fcn.1005b6a0
test al, al
je 0x1005b350
push 0
lea ecx, [ebp - 0x28]
call fcn.1004d2f0
push eax
call edi
test eax, eax
je 0x1005b350
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1004b680
xor bl, bl
jmp 0x1005b35e
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x28]
call fcn.1004b680
mov bl, 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x5c]
call fcn.1004b680
test bl, bl
jne 0x1005b2dc
mov ecx, esi
call fcn.1004d2f0
mov ebx, dword [sym.imp.KERNEL32.dll_DeleteFileW]
push eax
call ebx
test eax, eax
jne 0x1005b29d
lea ecx, [ebp - 0x40]
call fcn.1004d3b0
mov dword [ebp - 4], 3
mov edx, ecx
mov ecx, esi
call fcn.1005b6a0
test al, al
je 0x1005b3bc
lea ecx, [ebp - 0x40]
call fcn.1004d2f0
push eax
call ebx
test eax, eax
je 0x1005b3bc
mov bl, 1
jmp 0x1005b429
mov ecx, esi
call fcn.1004d2f0
push eax
lea ecx, [ebp - 0x5c]
call fcn.1004fa20
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x5c]
mov ebx, dword [ebp - 0x44]
and ebx, 0xffffb1af
push ebx
call fcn.1004d2f0
push eax
call edi
test eax, eax
jne 0x1005b41b
lea ecx, [ebp - 0x28]
call fcn.1004d3b0
mov byte [ebp - 4], 5
mov edx, ecx
lea ecx, [ebp - 0x5c]
call fcn.1005b6a0
test al, al
je 0x1005b40f
push ebx
lea ecx, [ebp - 0x28]
call fcn.1004d2f0
push eax
call edi
mov byte [ebp - 4], 4
lea ecx, [ebp - 0x28]
call fcn.1004b680
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x5c]
call fcn.1004b680
xor bl, bl
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x40]
call fcn.1004b680
mov al, bl
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret
Function at 0x1005d6b0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x102339b0
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x102d2008]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [edi]
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x30], ecx
test esi, esi
je 0x1005d838
cmp byte [esi + 0x54], 0
je 0x1005d838
add esi, 0x1c
xor bl, bl
mov dword [ebp - 0x40], esi
mov byte [ebp - 0x3c], bl
test esi, esi
je 0x1005d730
mov eax, dword [esi]
test eax, eax
je 0x1005d72d
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x1005d724
cmp eax, 0x80
je 0x1005d724
xor bl, bl
jmp 0x1005d72a
mov byte [esi + 4], 1
mov bl, 1
mov ecx, dword [ebp - 0x30]
mov byte [ebp - 0x3c], bl
mov edx, ecx
mov dword [ebp - 4], 0
push 0
lea ecx, [ebp - 0x2c]
call fcn.10059380
add esp, 4
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x2c]
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x38], eax
call fcn.1004b690
mov dword [ebp - 0x30], eax
cmp dword [eax + 0x14], 0x10
jb 0x1005d766
mov eax, dword [eax]
mov dword [ebp - 0x30], eax
mov ecx, dword [edi]
cmp dword [ecx + 0x14], 8
jb 0x1005d770
mov ecx, dword [ecx]
push 0
push 0x80
push 4
push 0
push 3
push 0x40000000
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x1005d7be
push 2
push 0
push 0
push edi
mov dword [ebp - 0x34], 0
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
push 0
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x38]
push dword [ebp - 0x30]
push edi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov byte [ebp - 4], 2
mov edx, dword [ebp - 0x18]
cmp edx, 0x10
jb 0x1005d7f8
mov ecx, dword [ebp - 0x2c]
inc edx
mov eax, ecx
cmp edx, 0x1000
jb 0x1005d7ee
mov ecx, dword [ecx - 4]
add edx, 0x23
sub eax, ecx
add eax, 0xfffffffc
cmp eax, 0x1f
jbe 0x1005d7ee
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__invalid_parameter_noinfo_noreturn]
push edx
push ecx
call fcn.1010f236
add esp, 8
mov dword [ebp - 0x1c], 0
mov dword [ebp - 0x18], 0xf
mov byte [ebp - 0x2c], 0
mov dword [ebp - 4], 6
test esi, esi
je 0x1005d82a
test bl, bl
je 0x1005d82a
mov eax, dword [esi]
test eax, eax
je 0x1005d826
push eax
call dword [sym.imp.KERNEL32.dll_ReleaseMutex]
mov byte [esi + 4], 0
mov dword [ebp - 0x40], 0
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.1010eeaf
mov esp, ebp
pop ebp
ret 4