joyce8/EMBER2024-capa huggingface dataset:
Function at 0x56d560
Capabilities:
Copy file

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebx
push 1
lea eax, [esp + 0xc]
push eax
call fcn.0056c970
mov ecx, eax
call fcn.00500ec0
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0056c970
mov ecx, eax
call fcn.00500ec0
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov edx, dword [esp + 4]
test eax, eax
setne bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x56d5b7
mov ecx, dword [esp + 4]
push ecx
call fcn.004ff160
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x56d5d1
mov ecx, dword [esp + 8]
push ecx
call fcn.004ff160
add esp, 4
test bl, bl
jne 0x56d5e9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov ecx, 2
mov dword [edx], eax
mov dword [edx + 4], ecx
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x56d5f0
Capabilities:
Move file

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
call fcn.0056c970
mov ecx, eax
call fcn.00500ec0
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.0056c970
mov ecx, eax
call fcn.00500ec0
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileW]
mov edx, dword [esp + 4]
test eax, eax
setne bl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x56d645
mov ecx, dword [esp + 4]
push ecx
call fcn.004ff160
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x56d65f
mov ecx, dword [esp + 8]
push ecx
call fcn.004ff160
add esp, 4
test bl, bl
jne 0x56d677
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x18]
mov ecx, 2
mov dword [edx], eax
mov dword [edx + 4], ecx
mov al, bl
pop ebx
add esp, 8
ret

Function at 0x56d680
Capabilities:
Delete file

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push eax
call fcn.0056c970
mov ecx, eax
call fcn.00500ec0
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
mov ecx, dword [esp + 4]
test eax, eax
setne bl
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x56d6bd
mov eax, dword [esp + 4]
push eax
call fcn.004ff160
add esp, 4
test bl, bl
jne 0x56d6d5
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [esp + 0x10]
mov ecx, 2
mov dword [edx], eax
mov dword [edx + 4], ecx
mov al, bl
pop ebx
pop ecx
ret
Function at 0x56db20
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
push esi
mov dword [esp + 0x10], 0x70f0d4
mov eax, 0x70f0d4
mov ecx, 1
lock xadd dword [eax], ecx
mov ebp, dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
lea edx, [esp + 0x20]
push edx
push 0x200
call ebp
mov esi, eax
test esi, esi
je 0x56dc16
cmp esi, 0x200
jbe 0x56dbdf
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.005c2957
add esp, 4
mov edi, eax
push edi
push 0x200
call ebp
test eax, eax
je 0x56dbd3
push esi
lea eax, [esp + 0x14]
push edi
push eax
call fcn.00502070
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.004fc970
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x56dbd3
mov eax, dword [esp + 0x10]
push eax
call fcn.004ff160
add esp, 4
push edi
call fcn.005c47cb
add esp, 4
pop edi
jmp 0x56dc16
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.00502070
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004fc970
mov eax, dword [esp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x56dc16
mov edx, dword [esp + 0xc]
push edx
call fcn.004ff160
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 2
jl 0x56dc6b
cmp eax, 1
jle 0x56dc30
mov eax, dword [ecx + 0xc]
movzx eax, word [eax + 2]
jmp 0x56dc32
xor eax, eax
cmp ax, 0x3a
jne 0x56dc6b
mov ecx, dword [ecx + 0xc]
mov dx, word [ecx]
lea ecx, [esp + 0xc]
lea eax, [esp + 0x10]
push ecx
lea ecx, [esp + 0x1a]
mov word [esp + 0x1a], dx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], 0
call fcn.004fe880
push eax
lea ecx, [esp + 0x1c]
call fcn.00503970
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.0056c230
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x56dc9b
mov eax, dword [esp + 0x10]
push eax
call fcn.004ff160
add esp, 4
mov ecx, dword [esp + 0x420]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.005c397a
add esp, 0x418
ret
Function at 0x56f740
Capabilities:
Get disk information

Disassembly:
sub esp, 0xc
push ebx
push esi
mov esi, eax
mov ecx, esi
mov byte [esp + 9], 0
xor ebx, ebx
call fcn.0056c320
test al, al
je 0x56f7c3
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0056c430
mov ecx, dword [eax]
mov edx, dword [ecx + 0xc]
mov ax, word [edx]
lea ecx, [esp + 0xc]
push ecx
lea ecx, [esp + 0xe]
mov word [esp + 0xe], ax
call fcn.004fe880
movzx ecx, word [eax]
mov edx, dword [esp + 0x10]
sub ecx, 0x41
mov esi, 1
shl esi, cl
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x56f7af
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004ff160
add esp, 4
test ebx, esi
je 0x56f8b9
mov ebx, 0x14
mov al, 1
jmp 0x56f87e
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0056c970
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], str._UNC
call fcn.005009a0
test al, al
je 0x56f85c
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 0xc]
mov ax, word [edx]
push 1
mov word [esp + 0x14], ax
mov ecx, dword [esp + 0x14]
push 7
push ecx
lea ecx, [esp + 0x18]
call fcn.005007c0
test eax, eax
jle 0x56f841
mov edx, dword [esp + 0xc]
mov ecx, dword [edx + 0xc]
mov dx, word [ecx]
push 1
inc eax
push eax
mov word [esp + 0x18], dx
mov eax, dword [esp + 0x18]
push eax
lea ecx, [esp + 0x18]
call fcn.005007c0
test eax, eax
jle 0x56f841
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 8]
dec edx
cmp eax, edx
jne 0x56f85c
lea eax, [esp + 0xc]
push eax
call fcn.0056f560
add esp, 4
test al, al
je 0x56f85c
mov ebx, 0x10
mov byte [esp + 9], 1
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x56f876
mov eax, dword [esp + 0xc]
push eax
call fcn.004ff160
add esp, 4
mov al, byte [esp + 9]
test al, al
je 0x56f8bd
mov dword [edi + 0x10], ebx
test bl, 2
je 0x56f88d
or dword [edi + 4], 0x100000
and bl, 0x10
movzx ecx, bl
neg ecx
sbb ecx, ecx
and ecx, 0x20000
add ecx, 0x20000
or dword [edi + 4], ecx
or dword [edi + 4], 0x400000
or dword [edi], 0x560000
pop esi
pop ebx
add esp, 0xc
ret
mov al, byte [esp + 9]
pop esi
pop ebx
add esp, 0xc
ret
Function at 0x57b980
Capabilities:
Encode data using xor

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
xor eax, eax
cmp dword [ebp + 8], eax
jle 0x57b9ab
push esi
movzx edx, byte [ecx]
movzx edx, byte [edx + 0x6ae4e0]
mov esi, eax
shl esi, 3
xor edx, esi
xor eax, edx
inc ecx
dec dword [ebp + 8]
cmp dword [ebp + 8], 0
jg 0x57b98d
pop esi
pop ebp
ret

Function at 0x57be44
Capabilities:
Clear file content

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
and dword [ebp - 4], 0
push ebx
mov ebx, dword [ebp + 8]
mov eax, dword [ebx + 0x20]
push edi
test eax, eax
je 0x57be87
cdq
push esi
mov esi, eax
add eax, dword [ebp + 0xc]
mov edi, edx
mov ecx, edx
adc ecx, dword [ebp + 0x10]
push edi
sub eax, 1
push esi
sbb ecx, 0
push ecx
push eax
call fcn.005c98f0
push edi
push esi
push edx
push eax
call fcn.005c98b0
mov dword [ebp + 0xc], eax
mov dword [ebp + 0x10], edx
pop esi
push dword [ebp + 0x10]
mov edi, ebx
push dword [ebp + 0xc]
call fcn.0057bcda
pop ecx
pop ecx
test eax, eax
jne 0x57beb0
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x57beb7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebx + 0x10], eax
mov dword [ebp - 4], 0x60a
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret

Function at 0x57bee7
Capabilities:
Get file size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
lea eax, [ebp + 8]
push eax
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
cmp edi, 0xffffffff
jne 0x57bf19
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x57bf19
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x57bf39
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.005c98b0
mov ecx, eax
xor eax, eax
add ecx, edi
adc edx, eax
mov eax, dword [ebp + 0xc]
mov dword [eax], ecx
mov dword [eax + 4], edx
xor eax, eax
pop edi
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [ebp + 0xc]
xor ebx, ebx
mov dword [ebp - 4], ebx
call fcn.0057c213
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x57c272
push 7
pop eax
jmp 0x57c301
push esi
call fcn.0057badd
test eax, eax
je 0x57c2b1
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov esi, eax
cmp esi, 0xffffffff
jne 0x57c29e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x57c2e6
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x57c2e6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x57c27c
push edi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push edi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov esi, eax
cmp esi, 0xffffffff
jne 0x57c2d3
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x57c2e6
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x57c2e6
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x57c2b1
push edi
call fcn.005c4000
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x57c2fc
cmp ebx, 2
jne 0x57c2fc
xor eax, eax
jmp 0x57c301
mov eax, 0xa0a
pop edi
pop ebx
leave
ret
Function at 0x582e6b
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x711ab8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x727784]
push ebx
push esi
test eax, eax
je 0x582ea7
push eax
push 0x6cb9fc
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.005826ab
add esp, 0x10
jmp 0x582f1f
call fcn.0057badd
mov esi, 0xe6
test eax, eax
je 0x582ee7
lea eax, [ebp - 0x314]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.0057bb95
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x582f03
push 7
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005c397a
leave
ret
lea eax, [ebp - 0x210]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathA]
lea eax, [ebp - 0x210]
push eax
call fcn.0057bc5d
jmp 0x582ecf
push ebx
push 0x6cb9fc
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.005826ab
push ebx
call fcn.005c4000
add esp, 0x14
mov ecx, str.etilqs_
call fcn.0057af7c
lea ecx, [ebp - 0x10c]
mov edx, eax
call fcn.0057af7c
lea eax, [edx + eax + 0x11]
mov edx, dword [ebp + 8]
cmp eax, edx
jl 0x582f46
xor eax, eax
inc eax
jmp 0x582ed9
lea ecx, [ebp - 0x10c]
call fcn.0057af7c
test eax, eax
jbe 0x582f5f
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x582f5f
dec eax
jne 0x582f56
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push str._setilqs_
add edx, 0xffffffef
push edi
push edx
call fcn.005826ab
mov ecx, edi
call fcn.0057af7c
mov esi, eax
lea eax, [edi + esi]
push eax
push 0xf
call fcn.00582867
add esp, 0x18
push 0xf
pop ecx
movzx eax, byte [edi + esi]
xor edx, edx
push 0x3e
pop ebx
div ebx
mov al, byte [edx + str.abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789]
mov byte [edi + esi], al
inc esi
dec ecx
jne 0x582f97
mov byte [edi + esi], cl
xor eax, eax
jmp 0x582ed9
Function at 0x58314a
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x711ab8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
lea ecx, [ebp - 0x10c]
push ecx
push 0x104
push eax
push dword [ebp + 8]
mov dword [ebp - 0x114], 0x200
call fcn.00583072
add esp, 0x10
test eax, eax
jne 0x583234
push ebx
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0057c213
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x583228
push edi
call fcn.0057badd
test eax, eax
mov eax, esi
je 0x5831eb
cmp word [esi], bx
je 0x5831cc
cmp word [eax], 0x5c
je 0x5831c7
inc eax
inc eax
cmp word [eax], bx
jne 0x5831b8
jmp 0x5831cc
xor ecx, ecx
mov word [eax], cx
lea eax, [ebp - 0x110]
push eax
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceW]
jmp 0x58321a
cmp byte [esi], bl
je 0x5831fd
cmp byte [eax], 0x5c
je 0x5831fb
inc eax
cmp byte [eax], bl
jne 0x5831ef
jmp 0x5831fd
mov byte [eax], bl
lea eax, [ebp - 0x110]
push eax
push eax
lea eax, [ebp - 0x114]
push eax
lea eax, [ebp - 0x110]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
push esi
mov edi, eax
call fcn.005c4000
pop ecx
cmp edi, ebx
pop edi
jne 0x583232
mov dword [ebp - 0x114], 0x200
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
xor ecx, ebp
call fcn.005c397a
leave
ret
Function at 0x5857da
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test edi, edi
je 0x5858f4
test esi, esi
je 0x5858f4
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x585898
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x585898
xor cl, dl
test cl, 0x10
jne 0x585898
mov al, byte [edi]
cmp al, byte [esi]
jne 0x585898
push dword [esi + 8]
push dword [edi + 8]
call fcn.005857da
pop ecx
pop ecx
test eax, eax
jne 0x585898
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.005857da
pop ecx
pop ecx
test eax, eax
jne 0x585898
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.0057f9d3
test eax, eax
jne 0x585898
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x585898
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x585898
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x58589d
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x585898
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x5858c7
push 2
pop eax
jmp 0x5858ff
cmp byte [edi], 0x98
je 0x5858c7
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x5858c7
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x585898
mov edx, dword [esi + 4]
test edx, edx
je 0x585898
call fcn.0057aff1
test eax, eax
jne 0x585898
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x5858e3
xor eax, eax
inc eax
jmp 0x5858ff
test cx, cx
je 0x5858f0
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x585898
xor eax, eax
jmp 0x5858ff
mov eax, esi
sub eax, edi
neg eax
sbb eax, eax
and eax, 2
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x5890df
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x5890f3
xor eax, eax
jmp 0x5891e2
push esi
mov esi, dword [ebp + 8]
push 0x50
call fcn.005823a3
mov esi, eax
pop ecx
test esi, esi
je 0x5891e1
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.00585414
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.00588fb5
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.0058b85b
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.00585414
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.0058b85b
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.00585414
add esp, 0x44
push dword [ebp + 0x10]
mov dword [esi + 0x18], eax
mov al, byte [edi + 4]
mov byte [esi + 4], al
push dword [edi + 0x1c]
push dword [ebp + 8]
call fcn.005890df
xor ebx, ebx
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x1c], eax
mov eax, dword [edi + 0x28]
push eax
push dword [ebp + 8]
call fcn.0058b85b
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.0058b85b
mov dword [esi + 0x2c], eax
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov ax, word [edi + 6]
or dword [esi + 0x38], 0xffffffff
or dword [esi + 0x3c], 0xffffffff
mov ecx, 0xfff7
and ax, cx
add esp, 0x2c
or dword [esi + 0x40], 0xffffffff
mov word [esi + 6], ax
mov dword [esi + 0x24], ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x5954b9
Capabilities:
Resolve function by parsing pe exports

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
mov ecx, dword [ebx + 0x3c]
push edi
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [ecx], edi
jne 0x5954ec
mov eax, dword [ebx + 0x78]
push edi
push ecx
mov ecx, dword [ebx]
or eax, 0x1e
push edi
call fcn.0057aaae
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x5955c6
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x595522
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.005c98b0
mov dword [ebp - 0x10], edx
lea edx, [ebp - 0x14]
push edx
mov dword [ebp - 0x14], eax
mov eax, dword [ebx + 0x3c]
mov ecx, dword [eax]
push 5
push eax
call dword [ecx + 0x28]
mov eax, dword [ebx + 0x18]
add esp, 0xc
mov dword [ebx + 0x24], eax
push esi
jmp 0x595527
xor edi, edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x5955c5
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x5955b5
test byte [esi + 0x14], 0x20
jne 0x5955b5
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.005c98b0
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
cmp edi, 1
jne 0x595567
call fcn.0057d721
push dword [ebp - 0x10]
mov eax, dword [esi]
push dword [ebp - 0x14]
mov dword [ebp - 8], eax
push dword [ebx + 0x80]
push eax
mov eax, dword [ebx + 0x3c]
call fcn.0057aa3f
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x59559f
mov esi, dword [ebp - 8]
add esi, 0x18
lea edi, [ebx + 0x64]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0xc]
mov esi, dword [ebp + 8]
cmp edi, dword [ebx + 0x20]
jbe 0x5955a7
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.00592192
mov esi, dword [ebp + 8]
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
je 0x595525
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x5b8f90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x5f61a8
mov eax, dword fs:[0]
push eax
sub esp, 0x1c
push ebx
push esi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
push 7
xor ebx, ebx
push str.Subject
lea ecx, [esp + 0x14]
mov dword [esp + 0x2c], 0xf
mov dword [esp + 0x28], ebx
mov byte [esp + 0x18], bl
call fcn.0040d1b0
lea eax, [esp + 0xc]
push eax
mov ecx, esi
mov dword [esp + 0x34], ebx
call fcn.005b88c0
cmp dword [esp + 0x24], 0x10
mov esi, eax
mov dword [esp + 0x30], 0xffffffff
jb 0x5b9007
mov ecx, dword [esp + 0x10]
push ecx
call fcn.005c396f
add esp, 4
mov ecx, esi
mov dword [esp + 0x24], 0xf
mov dword [esp + 0x20], ebx
mov byte [esp + 0x10], bl
call fcn.005bba40
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x28
ret
Function at 0x5bf1c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x5f6ca0
mov eax, dword fs:[0]
push eax
sub esp, 0x54
mov eax, dword [0x711ab8]
xor eax, esp
mov dword [esp + 0x50], eax
push ebx
push ebp
push esi
push edi
mov eax, dword [0x711ab8]
xor eax, esp
push eax
lea eax, [esp + 0x68]
mov dword fs:[0], eax
mov eax, dword [esp + 0x78]
xor ebx, ebx
mov esi, ecx
push 0xffffffffffffffff
mov dword [esp + 0x1c], eax
lea eax, [esi + 0x3c]
push ebx
push eax
lea ecx, [esp + 0x54]
mov dword [esp + 0x20], ebx
mov dword [esp + 0x6c], 0xf
mov dword [esp + 0x68], ebx
mov byte [esp + 0x58], bl
call fcn.0040d0d0
mov edi, dword [esi + 0x14]
mov dword [esp + 0x70], ebx
cmp edi, dword [esi + 0x18]
jbe 0x5bf233
call fcn.005c475a
mov eax, dword [esi + 0x18]
mov ebp, dword [esi + 8]
mov dword [esp + 0x28], edi
mov dword [esp + 0x14], eax
cmp dword [esi + 0x14], eax
jbe 0x5bf24b
call fcn.005c475a
mov ecx, dword [esi + 8]
mov dword [esp + 0x1c], ecx
mov esi, 0x10
cmp ebp, ebx
je 0x5bf261
cmp ebp, dword [esp + 0x1c]
je 0x5bf266
call fcn.005c475a
cmp edi, dword [esp + 0x14]
je 0x5bf308
cmp ebp, ebx
je 0x5bf27a
mov eax, ebp
cmp ebp, eax
je 0x5bf27f
call fcn.005c475a
cmp edi, dword [esp + 0x28]
je 0x5bf295
push 1
push 0x6cb960
lea ecx, [esp + 0x50]
call fcn.0040f5b0
cmp ebp, ebx
jne 0x5bf2fe
call fcn.005c475a
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x5bf2aa
call fcn.005c475a
mov edx, dword [edi]
mov edx, dword [edx + 8]
lea eax, [esp + 0x2c]
push eax
mov ecx, edi
call edx
push 0xffffffffffffffff
push ebx
push eax
lea ecx, [esp + 0x54]
mov byte [esp + 0x7c], 1
call fcn.0040f4b0
mov byte [esp + 0x70], bl
cmp dword [esp + 0x44], esi
jb 0x5bf2e1
mov eax, dword [esp + 0x30]
push eax
call fcn.005c396f
add esp, 4
cmp ebp, ebx
jne 0x5bf303
call fcn.005c475a
xor eax, eax
cmp edi, dword [eax + 0x10]
jb 0x5bf2f6
call fcn.005c475a
add edi, 0x78
jmp 0x5bf257
mov eax, dword [ebp]
jmp 0x5bf2a0
mov eax, dword [ebp]
jmp 0x5bf2ec
mov edi, dword [esp + 0x18]
push 0x6d238c
lea ecx, [esp + 0x4c]
push ecx
push edi
call fcn.0044bdd0
add esp, 0xc
cmp dword [esp + 0x60], esi
jb 0x5bf332
mov edx, dword [esp + 0x4c]
push edx
call fcn.005c396f
add esp, 4
mov eax, edi
mov ecx, dword [esp + 0x68]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
mov ecx, dword [esp + 0x50]
xor ecx, esp
call fcn.005c397a
add esp, 0x60
ret 4
Function at 0x5c397a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x711ab8]
jne 0x5c3984
repz ret
jmp fcn.005d2b4c

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5cda10
call fcn.005c97a4
mov dword [eax], esi
call fcn.005c9791
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005c4734
add esp, 0x14
or eax, 0xffffffff
jmp 0x5cda4b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5cda2d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005c97b7
pop ecx
jmp 0x5cda0b
test byte [ebp + 0xc], 0x80
je 0x5cda38
and eax, 0xfffffffe
jmp 0x5cda3b
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x5cda1e
xor eax, eax
pop esi
pop ebp
ret

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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
xor esi, esi
cmp dword [ebp + 8], esi
jne 0x5cda7f
call fcn.005c97a4
mov dword [eax], esi
call fcn.005c9791
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.005c4734
add esp, 0x14
push 0x16
pop eax
jmp 0x5cdad4
test dword [ebp + 0xc], 0xfffffff9
jne 0x5cda5b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5cdaac
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.005c97b7
pop ecx
call fcn.005c9791
mov eax, dword [eax]
jmp 0x5cdad4
test al, 0x10
jne 0x5cdad2
test al, 1
je 0x5cdad2
test byte [ebp + 0xc], 2
je 0x5cdad2
call fcn.005c97a4
mov dword [eax], 5
call fcn.005c9791
mov dword [eax], 0xd
jmp 0x5cdaa3
xor eax, eax
pop esi
pop ebp
ret