joyce8/EMBER2024-capa huggingface dataset:
Function at 0x11034b6
Capabilities:
Get file version info

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x21c
mov eax, dword [0x111121c]
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [ebp + 0xc]
mov dword [ebp - 4], eax
push 0x104
lea eax, [ebp - 0x20c]
push eax
mov dword [esi], 0x70000
and dword [edi], 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
jne 0x110350f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x11035cd
and eax, 0xffff
or eax, 0x80070000
jmp 0x11035cd
push ebx
lea eax, [ebp - 0x218]
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
test ebx, ebx
jne 0x1103546
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x11035cc
and eax, 0xffff
or eax, 0x80070000
jmp 0x11035cc
push ebx
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [ebp - 0x210], eax
jne 0x110355e
mov eax, 0x8007000e
jmp 0x11035cc
push eax
push ebx
push 0
lea eax, [ebp - 0x20c]
push eax
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x11035a8
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x214]
push eax
push 0x1002e70
push dword [ebp - 0x210]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x11035a8
mov eax, dword [ebp - 0x214]
mov ecx, dword [eax + 8]
mov dword [esi], ecx
mov eax, dword [eax + 0xc]
mov dword [edi], eax
xor esi, esi
jmp 0x11035be
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x11035bc
and eax, 0xffff
or eax, 0x80070000
mov esi, eax
push dword [ebp - 0x210]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
mov eax, esi
pop ebx
mov ecx, dword [ebp - 4]
pop edi
pop esi
call fcn.0105ec09
leave
ret 8
Function at 0x1105f2f
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x1114c40], 0
push esi
jne 0x1105e9d
call fcn.01105d94
test eax, eax
je 0x1105ee0
mov eax, dword [0x1114c40]
cmp eax, 1
jne 0x1105ebe
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x1105ee0
pop esi
ret
push eax
call dword [0x1114c48]
test eax, eax
jne 0x1105f28
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x1105ee4
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x1114c40]
call dword [0x1114c48]
mov edi, eax
test edi, edi
je 0x1105f09
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x1105f25
mov edi, esi
add esi, 0xff0
push edi
push dword [0x1114c40]
call dword [0x1114c44]
add edi, 0x10
cmp edi, esi
jb 0x1105f11
mov eax, edi
pop edi
pop esi
ret
jmp 0x1105e8a

Function at 0x11069a5
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 8]
test ebx, ebx
push esi
je 0x1106abc
mov esi, dword [ebp + 0x14]
test esi, esi
je 0x1106abc
push edi
push 0x17
xor eax, eax
pop ecx
mov edi, esi
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x10]
test eax, eax
mov dword [esi], 0x5c
jne 0x11069de
mov eax, 0xb000000e
or eax, 0x8000000
mov dword [esi + 4], eax
mov al, byte [ebx + 0x17]
mov byte [esi + 0x18], al
cmp byte [ebx + 0x17], 0x58
jne 0x11069f8
mov byte [esi + 0x18], 0x88
jmp 0x1106a0e
cmp byte [ebx + 0x17], 0
jne 0x1106a0e
call dword [sym.imp.KERNEL32.dll_GetSystemDefaultLCID]
cmp ax, 0x804
jne 0x1106a0e
mov byte [esi + 0x18], 0x86
xor eax, eax
cmp dword [ebx + 0x10], eax
je 0x1106a24
test byte [ebp + 0x10], 1
jne 0x1106a20
cmp dword [ebp + 0x10], eax
jne 0x1106a24
or dword [esi + 4], 1
cmp dword [ebx + 0x10], 0x2bc
jl 0x1106a37
test byte [esi + 4], 1
je 0x1106a37
or dword [esi + 8], 1
cmp byte [ebx + 0x14], 0
je 0x1106a47
test byte [esi + 4], 2
je 0x1106a47
or dword [esi + 8], 2
cmp byte [ebx + 0x15], 0
je 0x1106a57
test byte [esi + 4], 4
je 0x1106a57
or dword [esi + 8], 4
cmp byte [ebx + 0x16], 0
je 0x1106a67
test byte [esi + 4], 8
je 0x1106a67
or dword [esi + 8], 8
test byte [esi + 7], 0x80
je 0x1106a89
push eax
mov eax, dword [ebx]
cdq
xor eax, edx
lea edi, [esi + 0xc]
push edi
sub eax, edx
push eax
call fcn.01106941
test eax, eax
jne 0x1106a89
mov dword [edi], 0x3e8
mov eax, dword [esi + 4]
test eax, 0x40000000
pop edi
je 0x1106a9a
mov ecx, dword [ebp + 0xc]
mov dword [esi + 0x14], ecx
test eax, 0x20000000
mov cl, byte [ebx + 0x1b]
mov byte [esi + 0x19], cl
je 0x1106ab7
push 0x20
add ebx, 0x1c
push ebx
add esi, 0x1a
push esi
call dword [sym.imp.SHLWAPI.dll_StrCpyNW]
xor eax, eax
inc eax
jmp 0x1106ac6
push 0x57
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
pop esi
pop ebx
pop ebp
ret 0x10
Function at 0x1108628
Capabilities:
Get file size
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push edi
xor edi, edi
cmp dword [ebp + 8], edi
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0x80004005
je 0x11086c0
push edi
push 0x80
push 3
push edi
push 1
push accept
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileW]
cmp eax, 0xffffffff
mov dword [ebp - 4], eax
je 0x11086c0
push esi
push edi
push eax
mov dword [ebp + 8], edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
je 0x11086b6
cmp esi, edi
je 0x11086b6
push ebx
push esi
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
mov ebx, eax
cmp ebx, edi
pop ecx
je 0x11086b5
push edi
lea eax, [ebp + 8]
push eax
push esi
push ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x11086ae
cmp dword [ebp + 8], esi
jne 0x11086ae
mov ecx, dword [ebp - 0xc]
push esi
push ebx
call fcn.011081d5
mov dword [ebp - 8], eax
push ebx
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
pop ecx
pop ebx
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov eax, dword [ebp - 8]
pop edi
leave
ret 4
Function at 0x110a129
Capabilities:
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, ecx
mov eax, dword [ebx + 0x18]
push edi
xor edi, edi
cmp eax, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
je 0x110a17e
cmp eax, 0xffffffff
je 0x110a17e
cmp dword [ebp + 8], edi
je 0x110a230
push edi
lea ecx, [ebp - 8]
push ecx
push dword [ebp + 8]
lea ecx, [ebx + 0x830]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
cmp eax, edi
mov dword [ebp - 4], eax
je 0x110a230
mov eax, dword [ebp - 8]
add dword [ebx + 0x28], eax
jmp 0x110a230
mov edx, dword [ebp + 8]
cmp edx, edi
je 0x110a230
mov eax, dword [ebx + 0x28]
mov ecx, dword [ebx + 0x1c]
add eax, edx
cmp eax, ecx
push esi
mov dword [ebp - 4], 1
jbe 0x110a210
add ecx, ecx
cmp eax, ecx
mov dword [ebp - 4], ecx
jbe 0x110a1b7
mov eax, dword [ebx + 0x28]
add eax, edx
mov ecx, dword [ebp - 4]
add ecx, ecx
cmp eax, ecx
mov dword [ebp - 4], ecx
ja 0x110a1ab
push dword [ebp - 4]
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
cmp eax, edi
pop ecx
mov dword [ebp - 0xc], eax
je 0x110a1ff
mov esi, dword [ebx + 0x20]
cmp esi, edi
je 0x110a1f6
mov ecx, dword [ebx + 0x28]
cmp ecx, edi
je 0x110a1e7
mov edi, eax
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
xor edi, edi
push dword [ebx + 0x20]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
mov eax, dword [ebp - 0xc]
pop ecx
mov dword [ebx + 0x20], edi
mov ecx, dword [ebp - 4]
mov dword [ebx + 0x20], eax
mov dword [ebx + 0x1c], ecx
xor ecx, ecx
cmp eax, edi
setne cl
cmp ecx, edi
mov dword [ebp - 4], ecx
je 0x110a22f
mov edx, dword [ebp + 8]
mov edi, dword [ebx + 0x20]
add edi, dword [ebx + 0x28]
mov ecx, edx
mov eax, ecx
shr ecx, 2
lea esi, [ebx + 0x830]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
add dword [ebx + 0x28], edx
pop esi
mov eax, dword [ebp - 4]
pop edi
pop ebx
leave
ret 4

Function at 0x110a4e9
Capabilities:
Read data from internet
Receive data

Disassembly:
mov edi, edi
push ebx
push esi
mov esi, ecx
push edi
lea edi, [esi + 0x24]
mov eax, dword [edi]
test eax, eax
je 0x110a506
push eax
call fcn.0110a129
and dword [edi], 0
test eax, eax
je 0x110a532
push edi
push 0x400
lea eax, [esi + 0x830]
push eax
push dword [esi + 0x14]
call dword [sym.imp.WININET.dll_InternetReadFile]
mov ebx, eax
test ebx, ebx
je 0x110a532
mov eax, dword [edi]
test eax, eax
je 0x110a54f
push eax
mov ecx, esi
call fcn.0110a129
jmp 0x110a506
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov ebx, eax
sub ebx, 0x3e5
neg ebx
sbb ebx, ebx
inc ebx
je 0x110a560
mov eax, dword [esi + 0x28]
cmp eax, dword [esi + 0x2c]
jne 0x110a560
push esi
push 2
push 0x8000
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
mov eax, ebx
pop ebx
ret
Function at 0x110a56b
Capabilities:
Get http content length

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push esi
xor eax, eax
push edi
mov esi, ecx
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea edi, [esi + 0x1448]
push edi
push dword [esi + 0x1444]
mov dword [ebp - 0x10], 4
push 0x16
push dword [esi + 0x14]
call ebx
test eax, eax
jne 0x110a608
push dword [esi + 0x1444]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [esi + 0x1444], 0
pop ecx
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x110a605
inc dword [edi]
mov eax, dword [edi]
add eax, eax
push eax
call sub.msvcrt.dll_void____cdecl_operator_new_unsigned_int_
test eax, eax
pop ecx
mov dword [esi + 0x1444], eax
je 0x110a605
lea ecx, [ebp - 4]
push ecx
push edi
push eax
push 0x16
push dword [esi + 0x14]
call ebx
test eax, eax
jne 0x110a608
push dword [esi + 0x1444]
call sub.msvcrt.dll_void___cdecl_operator_delete_void__
and dword [esi + 0x1444], 0
pop ecx
and dword [edi], 0
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
push 0x20000013
push dword [esi + 0x14]
call ebx
mov eax, dword [ebp - 8]
mov dword [esi + 0xc38], eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0x2c]
push eax
push 0x20000005
push dword [esi + 0x14]
call ebx
test eax, eax
je 0x110a652
mov ecx, esi
mov dword [esi], 3
call fcn.0110a4e9
test eax, eax
jne 0x110a663
push esi
push 4
push 0x8000
push dword [esi + 4]
call dword [sym.imp.USER32.dll_PostMessageW]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x110adcc
Capabilities:
Capture webcam image

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageW]
push 0
push dword [ebp + 8]
mov esi, ecx
push 0x419
push dword [esi + 4]
call edi
push dword [ebp + 0xc]
push eax
push 0x41d
push dword [esi + 4]
call edi
push 2
push dword [ebp + 0xc]
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_MapWindowPoints]
pop edi
pop esi
pop ebp
ret 8
Function at 0x4015f0
Capabilities:
Manipulate console buffer

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
cmp dword [0x84a904], 0x400
push esi
push edi
jne 0x401635
xor ecx, ecx
xor eax, eax
lea edx, [ebp - 4]
push edx
mov word [ebp - 4], ax
mov word [ebp - 2], cx
mov eax, dword [ebp - 4]
push eax
push ecx
push str.kayed
push ecx
call dword [sym.imp.KERNEL32.dll_WriteConsoleOutputCharacterA]
lea eax, [ebp - 0x24]
call fcn.00401700
lea esi, [ebp - 0x24]
call fcn.00401720
mov edi, dword [sym.imp.KERNEL32.dll_GetLastError]
push ebx
mov ebx, dword [ebp - 4]
xor esi, esi
call edi
cmp esi, 0x2af2a3
jle 0x401653
cmp ebx, 0x78abdb45
jne 0x40165c
inc esi
cmp esi, 0x1c5d
jl 0x401641
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
xor esi, esi
lea ebx, [ebx]
push 0
call edi
call ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
cmp esi, 0x206d47
jg 0x40168d
inc esi
cmp esi, 0x4f6a4
jl 0x401670
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomA]
xor esi, esi
push 0
call edi
cmp esi, 0x2b259d
jle 0x4016ac
cmp ebx, 0x785074d5
jne 0x4016b5
inc esi
cmp esi, 0x11915
jl 0x401698
mov ecx, dword [0x42c30c]
mov dword [0x84a904], ecx
call fcn.00401370
mov esi, dword [sym.imp.KERNEL32.dll_SetThreadContext]
mov edi, 0x3078f
pop ebx
cmp dword [0x84a904], 0x51f
jne 0x4016e4
push 0
push 0
call esi
sub edi, 1
jne 0x4016d2
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40608c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42bb80]
jne 0x406096
repz ret
jmp fcn.00408098
Function at 0x406ce7
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.00402caf
and dword [ebp - 4], 0
cmp dword [0x42ccfc], 0
mov ebx, eax
jne 0x406d98
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406e49
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x406e49
push eax
call fcn.00402c3d
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x42ccfc], eax
call esi
push eax
call fcn.00402c3d
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x42cd00], eax
call esi
push eax
call fcn.00402c3d
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x42cd04], eax
call esi
push eax
call fcn.00402c3d
pop ecx
mov dword [0x42cd0c], eax
test eax, eax
je 0x406d98
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402c3d
pop ecx
mov dword [0x42cd08], eax
mov eax, dword [0x42cd08]
cmp eax, ebx
je 0x406df0
cmp dword [0x42cd0c], ebx
je 0x406df0
push eax
call fcn.00402cb8
push dword [0x42cd0c]
mov esi, eax
call fcn.00402cb8
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406df0
test edi, edi
je 0x406df0
call esi
test eax, eax
je 0x406de7
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406de7
test byte [ebp - 0xc], 1
jne 0x406df0
or dword [ebp + 0x10], 0x200000
jmp 0x406e29
mov eax, dword [0x42cd00]
cmp eax, ebx
je 0x406e29
push eax
call fcn.00402cb8
pop ecx
test eax, eax
je 0x406e29
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406e29
mov eax, dword [0x42cd04]
cmp eax, ebx
je 0x406e29
push eax
call fcn.00402cb8
pop ecx
test eax, eax
je 0x406e29
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x42ccfc]
call fcn.00402cb8
pop ecx
test eax, eax
je 0x406e49
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406e4b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50ca5c8
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x50ccda0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0xc]
push ebx
push esi
mov esi, dword [ebp + 8]
mov ebx, ecx
mov dword [ebp - 0x20], eax
mov eax, dword [ebx + 0xc]
push 0
push esi
mov dword [ebp - 0x2c], esi
mov byte [ebp - 0x28], 0
mov dword [ebp - 0x30], eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push 0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x18]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50ca621
mov eax, 0x88760361
jmp 0x50ca731
cmp dword [ebp - 0x18], 0x10
je 0x50ca62f
push 0xe
pop eax
jmp 0x50ca731
push edi
mov esi, 0x50c184c
lea edi, [ebp - 0xb]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov esi, dword [sym.imp.KERNEL32.dll_WriteFile]
xor edi, edi
push edi
lea eax, [ebp - 0x1c]
push eax
push 0x10
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x50ca72b
push edi
lea eax, [ebp - 0x1c]
push eax
push 4
lea eax, [ebp - 0x34]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x50ca72b
push edi
lea eax, [ebp - 0x18]
push eax
mov edi, 0x8000
push edi
push dword [ebp - 0x30]
jmp 0x50ca71a
cmp dword [ebp - 0x18], 0
je 0x50ca741
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x28]
push dword [ebx + 0x20]
push dword [ebx + 0x1c]
push dword [ebx + 0x18]
push dword [ebx + 0x14]
push 0x8008
push dword [ebx + 0x10]
push dword [ebp - 0x18]
push dword [ebx + 0xc]
push dword [ebx]
call fcn.050c2e75
add esp, 0x2c
test eax, eax
jne 0x50ca745
push eax
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x18]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x50ca72b
push 0
lea eax, [ebp - 0x1c]
push eax
push 2
lea eax, [ebp - 0x24]
push eax
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x50ca72b
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
push dword [ebx + 0x10]
push dword [ebp - 0x20]
call esi
test eax, eax
je 0x50ca72b
mov eax, dword [ebp - 0x1c]
cmp eax, dword [ebp - 0x24]
jne 0x50ca745
mov eax, dword [ebx + 0xc]
push 0
lea ecx, [ebp - 0x18]
push ecx
add eax, edi
push edi
mov byte [ebp - 0x28], 1
push eax
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x50ca686
mov eax, 0x88760361
pop edi
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.050cafc7
leave
ret 8
xor eax, eax
jmp 0x50ca730
mov eax, 0x88760356
jmp 0x50ca730
Function at 0x50ca751
Capabilities:
Delete file
Get common file path
Move file

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x138
mov eax, dword [0x50ccda0]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push edi
lea eax, [ebp - 0x108]
push eax
xor edi, edi
push edi
push 0x50c1850
push 0x50c17c4
mov dword [ebp - 0x110], ebx
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x50ca799
mov eax, 0x88760357
jmp 0x50ca894
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push edi
push 0x80
push 2
push edi
push edi
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call esi
mov dword [ebp - 0x114], eax
cmp eax, 0xffffffff
jne 0x50ca7cd
mov eax, 0x88760361
jmp 0x50ca893
push edi
push edi
push 3
push edi
push 1
push 0x80000000
push ebx
call esi
mov ebx, dword [sym.imp.KERNEL32.dll_CloseHandle]
mov esi, eax
cmp esi, 0xffffffff
jne 0x50ca7f5
mov dword [ebp - 0x10c], 0x88760361
jmp 0x50ca841
lea ecx, [ebp - 0x138]
call fcn.050ca43d
lea ecx, [ebp - 0x138]
call fcn.050ca4f0
test eax, eax
jne 0x50ca81b
mov dword [ebp - 0x10c], 0x88760356
jmp 0x50ca833
push dword [ebp - 0x114]
lea ecx, [ebp - 0x138]
push esi
call fcn.050ca5c8
mov dword [ebp - 0x10c], eax
push esi
call ebx
lea ecx, [ebp - 0x138]
call fcn.050ca461
push dword [ebp - 0x114]
call ebx
cmp dword [ebp - 0x10c], edi
jge 0x50ca860
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
jmp 0x50ca88d
push dword [ebp - 0x110]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
push dword [ebp - 0x110]
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileA]
test eax, eax
jne 0x50ca88d
mov dword [ebp - 0x10c], 0x88760361
mov eax, dword [ebp - 0x10c]
pop esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.050cafc7
leave
ret

Function at 0x50d350c
Capabilities:
Encode data using xor

Disassembly:
call 0x50d3485
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or eax, dword [ebx - 0x178f73c]
xor esi, 0xde5af04
add eax, esi
lea esp, [esp - 0xe]
mov esi, dword [esp + 0xe]
lea esp, [esp + 0x12]
xor esi, dword [esp]
push eax
sub eax, 0xf24f2b00
mov eax, esp
or dword [eax - 0x22], ebx
pop eax
jmp 0x50d34b5
xor dword [esp], esi
xor eax, 0
mov dword [esp], esi
add esp, 4
add esi, dword [ebp + 8]
push ebp
add ebp, 0xc
mov ecx, dword [ebp]
pop ebp
ja 0x50d34d1
xor edx, 0
jmp 0x50d34dc
xor edx, edx
jmp 0x50d34f3
jmp 0x50d34ff
xor eax, eax
push 0x8427d7c0
call 0x50d350c
stc
add esp, 8
add esi, 0
cmp ecx, 0
je 0x50d3548
mov ebx, dword [ebp + 0x10]
mov edi, dword [ebp + 0x14]
add bl, dl
xor byte [esi], bl
mov dl, byte [esi]
inc esi
add ebx, edi
rol ebx, 8
dec ecx
jne 0x50d3521
lea esp, [esp - 4]
xchg dword [esp], ebx
mov ebx, dword [esp]
or eax, edx
xor eax, eax
add eax, dword [esp]
add esp, 4
pop esi
pop edi
pop ebx
xchg dword [esp], ecx
mov dword [esp], ecx
lea esp, [esp + 4]
pop edx
leave
je 0x50d355f
add eax, 0
jno 0x50d3564
add esi, 0
ret 0x10
Function at 0x50d42cd
Capabilities:
Encode data using xor

Disassembly:
lea esp, [esp - 0x63]
mov dword [esp + 0x5f], ebx
lea esp, [esp + 0x5f]
mov ebx, 0x8dff8662
xchg dword [esp], ebx
and dword [esp], ebp
jmp 0x50d42ef
add ebx, 0
or dword [esp], ebp
mov ebp, esp
push eax
push edi
lea esp, [esp - 4]
xchg dword [esp], ecx
pop ecx
lea esp, [esp - 4]
mov edi, dword [ebp + 8]
mov eax, dword [ebp + 0xc]
cmp edi, dword [ebp + 0x14]
ja 0x50d4491
cmp edi, dword [ebp + 0x10]
jb 0x50d4491
lea esi, [esi]
sub esi, 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
sub esp, 0x6a
mov dword [esp + 0x66], 0xc2ccbc3c
add esp, 0x66
mov dword [esp], edi
or edi, 0xffffffff
and edi, 0xcedcf875
xor edi, 0xce9c140e
xchg dword [esp], edi
push edx
mov edx, esp
xor edx, 0
add edx, 0
push ebx
lea ebx, [edx + 4]
mov dword [ebx], eax
pop ebx
pop edx
push edi
call fcn.050d3db9
inc edi
jmp 0x50d4378
jmp 0x50d4385
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.050d3db9
inc edi
and dword [esp - 0x4e], ecx
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push edi
call fcn.050d3db9
inc edi
ror eax, 8
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
push 0
sub esi, 0
add dword [esp], edx
xor edx, edx
je 0x50d43d9
sub bl, byte [ebx]
mov eax, 0x64f7f691
int 0x82
xchg ebx, eax
ror cl, 1
into
out dx, eax
cld
test edx, ebx
or edx, 0x13e27bd2
push ebx
add ebx, esi
mov ebx, esp
xor dword [ebx - 0x2a], edi
fdiv qword [ecx]
jnp 0x50d43bd
pop ebx
xor edx, 0x1b7d0cc
add edx, 0xedeb415d
xchg dword [esp], edx
push edx
mov edx, esp
call int.050d4407
add dword [eax], 0x39
jle 0x50d43e3
sub al, 0xf5
mov ch, al
call fcn.050d441c
mov dword [edi], eax
pop ecx
pop edi
pop eax
leave
ret 0x10

Function at 0x50d60f4
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ecx
push edx
push 0
sub esi, esi
shr esi, 9
and dword [esp - 0x69], ebx
jbe 0x50d610a
add edi, 0
shr esi, 0x17
or esi, dword [esp]
add esp, 4
add esi, dword [ebp + 8]
xor eax, eax
xor edx, edx
cld
and dword [esp - 0x46], edx
xor ecx, ecx
rol edx, 7
and dword [esp - 0x4b], edx
xor dl, al
mov al, byte [esi]
inc esi
or al, al
jne 0x50d611b
mov eax, edx
pop edx
pop ecx
pop esi
mov esp, ebp
mov ebp, dword [esp]
add esp, 4
push 0x54
call fcn.050d615c
std
inc ebx
sar cl, 0x3e
lahf
in al, dx
mov ch, 0x4a
mov ebx, 0x971631d8
test byte [ebp - 0x5e], ch
xor eax, dword [ebx + 0x2b5108c4]
add esp, 8
push ecx
sub ecx, eax
mov ecx, esp
cmp dword [ecx - 0x51], edx