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

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebx
push 1
lea eax, [esp + 0xc]
push eax
call fcn.0052b690
mov ecx, eax
call fcn.004bfc60
push eax
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0x1c]
call fcn.0052b690
mov ecx, eax
call fcn.004bfc60
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 0x52c2d7
mov ecx, dword [esp + 4]
push ecx
call fcn.004bdf50
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x52c2f1
mov ecx, dword [esp + 8]
push ecx
call fcn.004bdf50
add esp, 4
test bl, bl
jne 0x52c309
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 0x52c310
Capabilities:
Move file

Disassembly:
mov ecx, dword [esp + 8]
sub esp, 8
push ebx
lea eax, [esp + 8]
push eax
call fcn.0052b690
mov ecx, eax
call fcn.004bfc60
push eax
lea ecx, [esp + 8]
push ecx
mov ecx, dword [esp + 0x18]
call fcn.0052b690
mov ecx, eax
call fcn.004bfc60
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 0x52c365
mov ecx, dword [esp + 4]
push ecx
call fcn.004bdf50
add esp, 4
mov edx, dword [esp + 8]
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x52c37f
mov ecx, dword [esp + 8]
push ecx
call fcn.004bdf50
add esp, 4
test bl, bl
jne 0x52c397
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 0x52c3a0
Capabilities:
Delete file

Disassembly:
push ecx
mov ecx, dword [esp + 8]
push ebx
lea eax, [esp + 4]
push eax
call fcn.0052b690
mov ecx, eax
call fcn.004bfc60
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 0x52c3dd
mov eax, dword [esp + 4]
push eax
call fcn.004bdf50
add esp, 4
test bl, bl
jne 0x52c3f5
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 0x52c840
Capabilities:
Get common file path

Disassembly:
sub esp, 0x418
mov eax, dword [0x6c56f8]
xor eax, esp
mov dword [esp + 0x414], eax
push ebx
mov ebx, dword [esp + 0x420]
push ebp
push esi
mov dword [esp + 0x10], 0x6c30d4
mov eax, 0x6c30d4
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 0x52c936
cmp esi, 0x200
jbe 0x52c8ff
xor ecx, ecx
mov edx, 2
mul edx
seto cl
push edi
neg ecx
or ecx, eax
push ecx
call fcn.005786a9
add esp, 4
mov edi, eax
push edi
push 0x200
call ebp
test eax, eax
je 0x52c8f3
push esi
lea eax, [esp + 0x14]
push edi
push eax
call fcn.004c0e60
add esp, 0xc
push eax
lea ecx, [esp + 0x18]
call fcn.004bb760
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x52c8f3
mov eax, dword [esp + 0x10]
push eax
call fcn.004bdf50
add esp, 4
push edi
call fcn.0057a53b
add esp, 4
pop edi
jmp 0x52c936
push esi
lea ecx, [esp + 0x24]
push ecx
lea edx, [esp + 0x14]
push edx
call fcn.004c0e60
add esp, 0xc
push eax
lea ecx, [esp + 0x14]
call fcn.004bb760
mov eax, dword [esp + 0xc]
or ecx, 0xffffffff
lock xadd dword [eax], ecx
jne 0x52c936
mov edx, dword [esp + 0xc]
push edx
call fcn.004bdf50
add esp, 4
mov ecx, dword [esp + 0x10]
mov eax, dword [ecx + 8]
cmp eax, 2
jl 0x52c98b
cmp eax, 1
jle 0x52c950
mov eax, dword [ecx + 0xc]
movzx eax, word [eax + 2]
jmp 0x52c952
xor eax, eax
cmp ax, 0x3a
jne 0x52c98b
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.004bd670
push eax
lea ecx, [esp + 0x1c]
call fcn.004c2760
mov byte [esp + 0xc], 0
mov edx, dword [esp + 0xc]
push edx
lea eax, [esp + 0x14]
push eax
mov ecx, ebx
call fcn.0052af50
mov ecx, dword [esp + 0x10]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x52c9bb
mov eax, dword [esp + 0x10]
push eax
call fcn.004bdf50
add esp, 4
mov ecx, dword [esp + 0x420]
pop esi
pop ebp
mov eax, ebx
pop ebx
xor ecx, esp
call fcn.005796dc
add esp, 0x418
ret
Function at 0x52e460
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.0052b040
test al, al
je 0x52e4e3
call dword [sym.imp.KERNEL32.dll_GetLogicalDrives]
mov ebx, eax
lea eax, [esp + 0x10]
push eax
mov ecx, esi
call fcn.0052b150
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.004bd670
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 0x52e4cf
mov ecx, dword [esp + 0x10]
push ecx
call fcn.004bdf50
add esp, 4
test ebx, esi
je 0x52e5d9
mov ebx, 0x14
mov al, 1
jmp 0x52e59e
lea edx, [esp + 0xc]
push edx
mov ecx, esi
call fcn.0052b690
push 1
lea eax, [esp + 0x14]
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x18], str._UNC
call fcn.004bf740
test al, al
je 0x52e57c
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.004bf560
test eax, eax
jle 0x52e561
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.004bf560
test eax, eax
jle 0x52e561
mov ecx, dword [esp + 0xc]
mov edx, dword [ecx + 8]
dec edx
cmp eax, edx
jne 0x52e57c
lea eax, [esp + 0xc]
push eax
call fcn.0052e280
add esp, 4
test al, al
je 0x52e57c
mov ebx, 0x10
mov byte [esp + 9], 1
mov ecx, dword [esp + 0xc]
or edx, 0xffffffff
lock xadd dword [ecx], edx
jne 0x52e596
mov eax, dword [esp + 0xc]
push eax
call fcn.004bdf50
add esp, 4
mov al, byte [esp + 9]
test al, al
je 0x52e5dd
mov dword [edi + 0x10], ebx
test bl, 2
je 0x52e5ad
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 0x53a800
Capabilities:
Encode data using xor

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

Function at 0x53acc4
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 0x53ad07
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.0057f0c0
push edi
push esi
push edx
push eax
call fcn.0057f080
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.0053ab5a
pop ecx
pop ecx
test eax, eax
jne 0x53ad30
push dword [ebx + 8]
call dword [sym.imp.KERNEL32.dll_SetEndOfFile]
test eax, eax
jne 0x53ad37
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 0x53ad67
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 0x53ad99
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x53ad99
mov dword [esi + 0x10], eax
mov eax, 0x70a
jmp 0x53adb9
push 1
push 0
push 0
push dword [ebp + 8]
call fcn.0057f080
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 0x53b0ce
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.0053b093
mov edi, eax
pop ecx
cmp edi, ebx
jne 0x53b0f2
push 7
pop eax
jmp 0x53b181
push esi
call fcn.0053a95d
test eax, eax
je 0x53b131
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 0x53b11e
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x53b166
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x53b166
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x53b0fc
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 0x53b153
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
cmp ebx, 5
jne 0x53b166
inc dword [ebp - 4]
cmp dword [ebp - 4], 5
jge 0x53b166
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x53b131
push edi
call fcn.00579d62
pop ecx
cmp esi, 0xffffffff
pop esi
jne 0x53b17c
cmp ebx, 2
jne 0x53b17c
xor eax, eax
jmp 0x53b181
mov eax, 0xa0a
pop edi
pop ebx
leave
ret
Function at 0x541cea
Capabilities:
Get common file path

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x314
mov eax, dword [0x6c56f8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [0x6db9a4]
push ebx
push esi
test eax, eax
je 0x541d26
push eax
push 0x692918
lea eax, [ebp - 0x10c]
push eax
push 0xe6
call fcn.0054152a
add esp, 0x10
jmp 0x541d9e
call fcn.0053a95d
mov esi, 0xe6
test eax, eax
je 0x541d66
lea eax, [ebp - 0x314]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
lea eax, [ebp - 0x314]
push eax
call fcn.0053aa15
mov ebx, eax
pop ecx
test ebx, ebx
jne 0x541d82
push 7
pop eax
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.005796dc
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.0053aadd
jmp 0x541d4e
push ebx
push 0x692918
lea eax, [ebp - 0x10c]
push eax
push esi
call fcn.0054152a
push ebx
call fcn.00579d62
add esp, 0x14
mov ecx, str.etilqs_
call fcn.00539dfc
lea ecx, [ebp - 0x10c]
mov edx, eax
call fcn.00539dfc
lea eax, [edx + eax + 0x11]
mov edx, dword [ebp + 8]
cmp eax, edx
jl 0x541dc5
xor eax, eax
inc eax
jmp 0x541d58
lea ecx, [ebp - 0x10c]
call fcn.00539dfc
test eax, eax
jbe 0x541dde
dec ecx
cmp byte [ecx + eax], 0x5c
jne 0x541dde
dec eax
jne 0x541dd5
mov byte [ebp + eax - 0x10c], 0
lea eax, [ebp - 0x10c]
push eax
push str._setilqs_
add edx, 0xffffffef
push edi
push edx
call fcn.0054152a
mov ecx, edi
call fcn.00539dfc
mov esi, eax
lea eax, [edi + esi]
push eax
push 0xf
call fcn.005416e6
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 0x541e16
mov byte [edi + esi], cl
xor eax, eax
jmp 0x541d58
Function at 0x541fc9
Capabilities:
Get disk size

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x114
mov eax, dword [0x6c56f8]
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.00541ef1
add esp, 0x10
test eax, eax
jne 0x5420b3
push ebx
lea eax, [ebp - 0x10c]
push esi
push eax
call fcn.0053b093
mov esi, eax
xor ebx, ebx
pop ecx
cmp esi, ebx
je 0x5420a7
push edi
call fcn.0053a95d
test eax, eax
mov eax, esi
je 0x54206a
cmp word [esi], bx
je 0x54204b
cmp word [eax], 0x5c
je 0x542046
inc eax
inc eax
cmp word [eax], bx
jne 0x542037
jmp 0x54204b
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 0x542099
cmp byte [esi], bl
je 0x54207c
cmp byte [eax], 0x5c
je 0x54207a
inc eax
cmp byte [eax], bl
jne 0x54206e
jmp 0x54207c
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.00579d62
pop ecx
cmp edi, ebx
pop edi
jne 0x5420b1
mov dword [ebp - 0x114], 0x200
pop esi
pop ebx
mov ecx, dword [ebp - 4]
mov eax, dword [ebp - 0x114]
xor ecx, ebp
call fcn.005796dc
leave
ret
Function at 0x544659
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 0x544773
test esi, esi
je 0x544773
movzx edx, word [edi + 2]
mov eax, 0x800
mov ecx, edx
and ecx, eax
mov ebx, eax
cmp cx, bx
je 0x544717
movzx ecx, word [esi + 2]
mov ebx, ecx
and ebx, eax
cmp bx, ax
je 0x544717
xor cl, dl
test cl, 0x10
jne 0x544717
mov al, byte [edi]
cmp al, byte [esi]
jne 0x544717
push dword [esi + 8]
push dword [edi + 8]
call fcn.00544659
pop ecx
pop ecx
test eax, eax
jne 0x544717
push dword [esi + 0xc]
push dword [edi + 0xc]
call fcn.00544659
pop ecx
pop ecx
test eax, eax
jne 0x544717
mov ebx, dword [esi + 0x10]
mov edi, dword [edi + 0x10]
call fcn.0053e853
test eax, eax
jne 0x544717
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x18]
cmp eax, dword [esi + 0x18]
jne 0x544717
mov ax, word [edi + 0x1c]
cmp ax, word [esi + 0x1c]
jne 0x544717
movzx eax, word [edi + 2]
mov ecx, eax
mov eax, 0x400
and ecx, eax
mov edx, eax
cmp cx, dx
jne 0x54471c
mov cx, word [esi + 2]
and cx, dx
cmp cx, ax
jne 0x544717
mov eax, dword [edi + 4]
cmp eax, dword [esi + 4]
je 0x544746
push 2
pop eax
jmp 0x54477e
cmp byte [edi], 0x98
je 0x544746
mov ecx, dword [edi + 4]
test ecx, ecx
je 0x544746
mov dx, word [esi + 2]
mov ebx, eax
and dx, bx
cmp dx, ax
je 0x544717
mov edx, dword [esi + 4]
test edx, edx
je 0x544717
call fcn.00539e71
test eax, eax
jne 0x544717
movzx ecx, word [edi + 2]
mov dx, word [esi + 2]
mov eax, 0x100
and ecx, eax
and dx, ax
cmp cx, dx
je 0x544762
xor eax, eax
inc eax
jmp 0x54477e
test cx, cx
je 0x54476f
mov eax, dword [edi + 0x14]
cmp eax, dword [esi + 0x14]
jne 0x544717
xor eax, eax
jmp 0x54477e
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 0x547f5e
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push edi
mov edi, dword [ebp + 0xc]
test edi, edi
jne 0x547f72
xor eax, eax
jmp 0x548061
push esi
mov esi, dword [ebp + 8]
push 0x50
call fcn.00541222
mov esi, eax
pop ecx
test esi, esi
je 0x548060
push ebx
push dword [ebp + 0x10]
mov ebx, dword [edi]
push dword [ebp + 8]
call fcn.00544293
push dword [ebp + 0x10]
mov dword [esi], eax
push dword [edi + 8]
push dword [ebp + 8]
call fcn.00547e34
push 0
push dword [ebp + 0x10]
mov dword [esi + 8], eax
mov eax, dword [edi + 0xc]
push eax
push dword [ebp + 8]
call fcn.0054a6da
push dword [ebp + 0x10]
mov dword [esi + 0xc], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x10]
call fcn.00544293
push 0
push dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [edi + 0x14]
push eax
push dword [ebp + 8]
call fcn.0054a6da
push dword [ebp + 0x10]
mov dword [esi + 0x14], eax
push dword [ebp + 8]
mov ebx, dword [edi + 0x18]
call fcn.00544293
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.00547f5e
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.0054a6da
push ebx
push dword [ebp + 0x10]
mov dword [esi + 0x28], eax
mov eax, dword [edi + 0x2c]
push eax
push dword [ebp + 8]
call fcn.0054a6da
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 0x554338
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 0x55436b
mov eax, dword [ebx + 0x78]
push edi
push ecx
mov ecx, dword [ebx]
or eax, 0x1e
push edi
call fcn.0053993e
add esp, 0xc
mov dword [ebp - 4], eax
cmp eax, edi
jne 0x554445
mov ecx, dword [ebx + 0x18]
cmp ecx, dword [ebx + 0x24]
jbe 0x5543a1
mov eax, dword [ebx + 0x80]
push edi
cdq
push ecx
push edx
push eax
call fcn.0057f080
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 0x5543a6
xor edi, edi
mov esi, dword [ebp + 8]
cmp esi, edi
je 0x554444
mov edi, dword [esi + 0xc]
mov dword [ebp - 0xc], edi
cmp edi, dword [ebx + 0x18]
ja 0x554434
test byte [esi + 0x14], 0x20
jne 0x554434
mov eax, dword [ebx + 0x80]
cdq
push edx
push eax
lea ecx, [edi - 1]
push 0
push ecx
call fcn.0057f080
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], edx
cmp edi, 1
jne 0x5543e6
call fcn.0053c5a1
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.005398cf
add esp, 0x10
mov dword [ebp - 4], eax
cmp edi, 1
jne 0x55441e
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 0x554426
mov dword [ebx + 0x20], edi
push dword [esi]
mov eax, dword [ebx + 0x58]
call fcn.00551011
mov esi, dword [ebp + 8]
pop ecx
cmp dword [ebp - 4], 0
mov eax, dword [esi + 8]
mov dword [ebp + 8], eax
je 0x5543a4
pop esi
mov eax, dword [ebp - 4]
pop edi
leave
ret
Function at 0x5796dc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6c56f8]
jne 0x5796e6
repz ret
jmp fcn.005887d9

Function at 0x5832ef
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 0x583320
call fcn.0057ef74
mov dword [eax], esi
call fcn.0057ef61
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0057a4a4
add esp, 0x14
or eax, 0xffffffff
jmp 0x58335b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x58333d
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0057ef87
pop ecx
jmp 0x58331b
test byte [ebp + 0xc], 0x80
je 0x583348
and eax, 0xfffffffe
jmp 0x58334b
or eax, 1
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
je 0x58332e
xor eax, eax
pop esi
pop ebp
ret

Function at 0x58335e
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 0x58338f
call fcn.0057ef74
mov dword [eax], esi
call fcn.0057ef61
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.0057a4a4
add esp, 0x14
push 0x16
pop eax
jmp 0x5833e4
test dword [ebp + 0xc], 0xfffffff9
jne 0x58336b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x5833bc
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.0057ef87
pop ecx
call fcn.0057ef61
mov eax, dword [eax]
jmp 0x5833e4
test al, 0x10
jne 0x5833e2
test al, 1
je 0x5833e2
test byte [ebp + 0xc], 2
je 0x5833e2
call fcn.0057ef74
mov dword [eax], 5
call fcn.0057ef61
mov dword [eax], 0xd
jmp 0x5833b3
xor eax, eax
pop esi
pop ebp
ret
Function at 0x598ea0
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.00589166
and dword [ebp - 4], 0
cmp dword [0x6ddce0], 0
mov ebx, eax
jne 0x598f51
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x599002
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x599002
push eax
call fcn.005890f4
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x6ddce0], eax
call esi
push eax
call fcn.005890f4
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x6ddce4], eax
call esi
push eax
call fcn.005890f4
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x6ddce8], eax
call esi
push eax
call fcn.005890f4
pop ecx
mov dword [0x6ddcf0], eax
test eax, eax
je 0x598f51
push 0x675630
push edi
call esi
push eax
call fcn.005890f4
pop ecx
mov dword [0x6ddcec], eax
mov eax, dword [0x6ddcec]
cmp eax, ebx
je 0x598fa9
cmp dword [0x6ddcf0], ebx
je 0x598fa9
push eax
call fcn.0058916f
push dword [0x6ddcf0]
mov esi, eax
call fcn.0058916f
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x598fa9
test edi, edi
je 0x598fa9
call esi
test eax, eax
je 0x598fa0
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x598fa0
test byte [ebp - 0xc], 1
jne 0x598fa9
or dword [ebp + 0x10], 0x200000
jmp 0x598fe2
mov eax, dword [0x6ddce4]
cmp eax, ebx
je 0x598fe2
push eax
call fcn.0058916f
pop ecx
test eax, eax
je 0x598fe2
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x598fe2
mov eax, dword [0x6ddce8]
cmp eax, ebx
je 0x598fe2
push eax
call fcn.0058916f
pop ecx
test eax, eax
je 0x598fe2
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x6ddce0]
call fcn.0058916f
pop ecx
test eax, eax
je 0x599002
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x599004
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret