joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45a590
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x50
push edi
mov edi, dword [esp + 0x64]
cmp dword [edi + 0x20], 7
jne 0x45a5cf
mov eax, dword [esp + 0x7c]
mov ecx, dword [esp + 0x78]
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x74]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x74]
push eax
mov eax, dword [esp + 0x68]
push ecx
push edx
push edi
push eax
call fcn.0045a300
add esp, 0x20
pop edi
add esp, 0x50
ret
cmp dword [edi + 4], 0
mov cl, byte [esp + 0x78]
mov byte [esp + 0x50], 0
mov byte [esp + 0x4c], cl
mov dword [esp + 0x48], 1
jne 0x45a5f1
xor eax, eax
pop edi
add esp, 0x50
ret
mov edx, dword [esp + 0x68]
push esi
mov esi, dword [esp + 0x78]
push esi
push edx
call fcn.00457090
mov dword [esp + 0x68], eax
test eax, eax
jne 0x45a60f
pop esi
pop edi
add esp, 0x50
ret
mov eax, dword [esi + 8]
mov ecx, dword [esi + 0xc]
sub eax, dword [esi]
sub ecx, dword [esi + 4]
mov edi, dword [edi + 0xc]
push ebx
mov ebx, dword [esp + 0x74]
push ebp
mov ebp, dword [esp + 0x7c]
add eax, ebx
add ecx, ebp
push edi
mov dword [esp + 0x38], ebx
mov dword [esp + 0x3c], ebp
mov dword [esp + 0x40], eax
mov dword [esp + 0x44], ecx
mov dword [esp + 0x14], edi
call fcn.0045b250
push edi
call fcn.0045b260
mov edi, eax
add esp, 8
test edi, edi
je 0x45a782
jmp 0x45a660
cmp dword [edi + 0x18], 0
je 0x45a76b
lea edx, [esp + 0x14]
push edx
push edi
call fcn.0045b190
add esp, 8
lea eax, [esp + 0x14]
push eax
call fcn.00461f30
test eax, eax
jne 0x45a76b
lea ecx, [esp + 0x34]
push ecx
lea edx, [esp + 0x18]
push edx
call fcn.00461150
test eax, eax
je 0x45a76b
mov eax, ebp
neg eax
push eax
mov ecx, ebx
neg ecx
push ecx
lea edx, [esp + 0x1c]
push edx
call fcn.00461fb0
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x28], ecx
mov ecx, dword [esp + 0x6c]
mov dword [esp + 0x2c], edx
mov edx, dword [esp + 0x68]
mov dword [esp + 0x24], eax
mov eax, dword [esp + 0x20]
neg ecx
push ecx
neg edx
mov dword [esp + 0x34], eax
push edx
lea eax, [esp + 0x2c]
push eax
call fcn.00461fb0
mov edx, dword [esp + 0x64]
lea ecx, [esp + 0x24]
push ecx
push edx
call fcn.004593d0
mov esi, eax
add esp, 8
test esi, esi
je 0x45a749
push 0
push 0
push esi
call fcn.004595d0
mov eax, dword [0x4c17d0]
mov ecx, dword [eax]
mov edx, dword [esp + 0x94]
push edx
mov edx, dword [edi + 0x18]
lea eax, [esp + 0x54]
push eax
push edx
mov edx, dword [esp + 0x88]
lea eax, [esp + 0x2c]
push eax
mov eax, dword [ecx + 4]
push edx
push 0
push 0
push esi
call eax
push esi
call fcn.004595b0
add esp, 0x30
jmp 0x45a76b
mov edx, dword [edi + 0x18]
lea ecx, [esp + 0x44]
push ecx
mov ecx, dword [esp + 0x74]
push edx
mov edx, dword [0x4c17c8]
lea eax, [esp + 0x1c]
push eax
push ecx
push edx
call fcn.0045a2b0
add esp, 0x14
mov eax, dword [esp + 0x10]
push eax
call fcn.0045b260
mov edi, eax
add esp, 4
test edi, edi
jne 0x45a660
mov ecx, dword [esp + 0x70]
push ecx
call fcn.00457070
pop ebp
pop ebx
pop esi
mov eax, 1
pop edi
add esp, 0x50
ret
Function at 0x468531
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax], 0
and dword [eax + 4], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x4691dc
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x4dc
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push edi
test eax, eax
je 0x4692b8
xor ecx, ecx
cmp cx, word [eax]
je 0x4692b8
push 0x4a75b0
push eax
call fcn.004750b8
mov edi, eax
pop ecx
pop ecx
test edi, edi
jne 0x469223
inc eax
jmp 0x4692bb
lea eax, [ebp - 0x4dc]
push esi
push eax
call fcn.00468531
push edi
mov esi, 0x400
push esi
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.00474e56
add esp, 0x14
jmp 0x469271
push eax
lea eax, [ebp - 0x404]
push eax
lea eax, [ebp - 0x4dc]
push eax
call fcn.00468f40
push edi
push esi
lea eax, [ebp - 0x404]
push 1
push eax
call fcn.00474e56
add esp, 0x1c
test eax, eax
ja 0x46924a
lea eax, [ebp - 0x4dc]
push ebx
push eax
call fcn.00468fde
push 0xd8
lea eax, [ebp - 0x4dc]
push 0
push eax
call fcn.00470920
push edi
call fcn.00474b82
add esp, 0x18
pop esi
push edi
test eax, eax
je 0x4692ae
call fcn.00474813
pop ecx
push 2
jmp 0x4692ba
call fcn.00474813
pop ecx
xor eax, eax
jmp 0x4692bb
push 3
pop eax
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop ebx
call fcn.0047099a
leave
ret

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

Disassembly:
push esi
mov esi, dword [esp + 8]
test esi, esi
je 0x46956f
xor eax, eax
cmp ax, word [esi]
je 0x46956f
push esi
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46957a
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x46956b
test al, 0x10
je 0x46956b
xor eax, eax
inc eax
pop esi
ret
xor eax, eax
pop esi
ret
push 0x132b3a1
call fcn.00469b96
pop ecx
xor al, al
pop esi
ret
Function at 0x469a1a
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
mov edi, dword [ebp + 8]
xor ebx, ebx
cmp edi, ebx
je 0x469abe
xor eax, eax
cmp ax, word [edi]
je 0x469abe
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov dword [ebp + 8], eax
cmp eax, ebx
je 0x469aba
inc eax
push esi
push eax
call fcn.0046f72f
mov esi, eax
pop ecx
cmp esi, ebx
je 0x469ab9
push esi
push dword [ebp + 8]
push ebx
push edi
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x469ab2
lea eax, [ebp + 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x4aca20
push esi
mov dword [ebp - 4], ebx
mov dword [ebp + 8], 0x34
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x469ab2
mov eax, dword [ebp - 4]
mov cx, word [eax + 0xa]
mov edx, dword [ebp + 0xc]
mov word [edx], cx
mov cx, word [eax + 8]
mov edx, dword [ebp + 0x10]
mov word [edx], cx
mov cx, word [eax + 0xe]
mov edx, dword [ebp + 0x14]
mov word [edx], cx
mov ax, word [eax + 0xc]
mov ecx, dword [ebp + 0x18]
mov word [ecx], ax
mov bl, 1
push esi
call fcn.00470646
pop ecx
pop esi
mov al, bl
jmp 0x469acb
push 0x132b3a1
call fcn.00469b96
pop ecx
xor al, al
pop edi
pop ebx
leave
ret

Function at 0x46f283
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x4c9990], 0
push esi
jne 0x46f1f6
call fcn.0046f11c
test eax, eax
je 0x46f239
mov eax, dword [0x4c9990]
cmp eax, 1
jne 0x46f217
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x46f239
pop esi
ret
push eax
call dword [0x4c9998]
test eax, eax
jne 0x46f281
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 0x46f23d
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x4c9990]
call dword [0x4c9998]
mov edi, eax
test edi, edi
je 0x46f262
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x46f27e
mov edi, esi
add esi, 0xff0
push edi
push dword [0x4c9990]
call dword [0x4c9994]
add edi, 0x10
cmp edi, esi
jb 0x46f26a
mov eax, edi
pop edi
pop esi
ret
jmp 0x46f1e3

Function at 0x47099a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4bca50]
jne 0x4709a4
repz ret
jmp fcn.0047c740
Function at 0x473716
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 0x473747
call fcn.004788ad
mov dword [eax], esi
call fcn.0047889a
push esi
push esi
push esi
push esi
push esi
mov dword [eax], 0x16
call fcn.004705b3
add esp, 0x14
push 0x16
pop eax
jmp 0x47379c
test dword [ebp + 0xc], 0xfffffff9
jne 0x473723
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
jne 0x473774
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.004788c0
pop ecx
call fcn.0047889a
mov eax, dword [eax]
jmp 0x47379c
test al, 0x10
jne 0x47379a
test al, 1
je 0x47379a
test byte [ebp + 0xc], 2
je 0x47379a
call fcn.004788ad
mov dword [eax], 5
call fcn.0047889a
mov dword [eax], 0xd
jmp 0x47376b
xor eax, eax
pop esi
pop ebp
ret
Function at 0x48e864
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.0047beed
and dword [ebp - 4], 0
cmp dword [0x4ca840], 0
mov ebx, eax
jne 0x48e915
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x48e9c6
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x48e9c6
push eax
call fcn.0047be7b
mov dword [esp], 0x4abd18
push edi
mov dword [0x4ca840], eax
call esi
push eax
call fcn.0047be7b
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4ca844], eax
call esi
push eax
call fcn.0047be7b
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4ca848], eax
call esi
push eax
call fcn.0047be7b
pop ecx
mov dword [0x4ca850], eax
test eax, eax
je 0x48e915
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0047be7b
pop ecx
mov dword [0x4ca84c], eax
mov eax, dword [0x4ca84c]
cmp eax, ebx
je 0x48e96d
cmp dword [0x4ca850], ebx
je 0x48e96d
push eax
call fcn.0047bef6
push dword [0x4ca850]
mov esi, eax
call fcn.0047bef6
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x48e96d
test edi, edi
je 0x48e96d
call esi
test eax, eax
je 0x48e964
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x48e964
test byte [ebp - 0xc], 1
jne 0x48e96d
or dword [ebp + 0x10], 0x200000
jmp 0x48e9a6
mov eax, dword [0x4ca844]
cmp eax, ebx
je 0x48e9a6
push eax
call fcn.0047bef6
pop ecx
test eax, eax
je 0x48e9a6
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x48e9a6
mov eax, dword [0x4ca848]
cmp eax, ebx
je 0x48e9a6
push eax
call fcn.0047bef6
pop ecx
test eax, eax
je 0x48e9a6
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4ca840]
call fcn.0047bef6
pop ecx
test eax, eax
je 0x48e9c6
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x48e9c8
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x493d5c
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x80
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, dword [ebp + 8]
mov ecx, esi
call fcn.0045463f
xor ebx, ebx
push 0x63
lea eax, [ebp - 0x7b]
push ebx
push eax
mov byte [ebp - 0x7c], bl
call fcn.00470920
add esp, 0xc
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x80]
push eax
push 0x64
lea eax, [ebp - 0x7c]
push eax
push 0x4ac0d0
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
jne 0x493db0
xor al, al
jmp 0x493df2
mov ecx, dword [ebp - 0x80]
push ebx
push ebx
mov eax, ecx
shr eax, 0x18
push eax
mov edx, ecx
shr edx, 0x10
mov eax, 0xff
and edx, eax
push edx
mov edx, ecx
shr edx, 8
and edx, eax
movzx eax, cl
push edx
push eax
lea eax, [ebp - 0x18]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.004750cf
add esp, 0x20
lea eax, [ebp - 0x18]
push eax
mov ecx, esi
call fcn.004024d5
mov al, 1
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047099a
leave
ret 4
Function at 0x4950ad
Capabilities:
Check if file exists
Create directory
Get common file path
Get file attributes

Disassembly:
push ebp
lea ebp, [esp - 0x90]
sub esp, 0x110
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp + 0x8c], eax
mov eax, dword [ebp + 0x98]
push ebx
push esi
push edi
xor esi, esi
push 0x103
mov dword [ebp - 0x7c], eax
lea eax, [ebp - 0x77]
push esi
push eax
mov dword [ebp - 0x80], esi
mov byte [ebp - 0x78], 0
call fcn.00470920
add esp, 0xc
push 1
push 0x23
lea eax, [ebp - 0x78]
push eax
push esi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathA]
test eax, eax
jne 0x495111
push str.c:windows_temp
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edi, dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ebx, dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
cmp dword [ebp + 0x9c], esi
je 0x495137
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x495137
push esi
lea eax, [ebp - 0x78]
push eax
call ebx
mov esi, dword [sym.imp.KERNEL32.dll_lstrcatA]
push str.Thunder_Network
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x495164
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x495164
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
push str.DownloadLib
lea eax, [ebp - 0x78]
push eax
call esi
cmp dword [ebp + 0x9c], 0
je 0x49518b
lea eax, [ebp - 0x78]
push eax
call edi
cmp eax, 0xffffffff
jne 0x49518b
push 0
lea eax, [ebp - 0x78]
push eax
call ebx
mov ecx, dword [ebp - 0x7c]
lea eax, [ebp - 0x78]
push eax
call fcn.004024f8
mov ecx, dword [ebp + 0x8c]
mov eax, dword [ebp - 0x7c]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0047099a
add ebp, 0x90
leave
ret
Function at 0x49961a
Capabilities:
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x49c862
mov eax, dword fs:[0]
push eax
mov eax, 0x28d8
call fcn.004737a0
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ecx, dword [ebp + 8]
mov dword [ebp - 0x28c8], ecx
call fcn.0045463f
lea ecx, [ebp - 0x28e4]
call fcn.004141a1
lea eax, [ebp - 0x28e4]
xor ebx, ebx
push eax
mov dword [ebp - 4], ebx
call fcn.0049912a
pop ecx
lea eax, [ebp - 0x28cc]
push eax
lea esi, [ebp - 0x28c0]
mov eax, esi
push eax
mov dword [ebp - 0x28cc], 0x2880
call sub.IPHLPAPI.DLL_GetAdaptersInfo
test eax, eax
jne 0x4997b1
mov dword [ebp - 0x28c4], ebx
movzx eax, byte [esi + 0x199]
push eax
movzx eax, byte [esi + 0x198]
push eax
movzx eax, byte [esi + 0x197]
push eax
movzx eax, byte [esi + 0x196]
push eax
movzx eax, byte [esi + 0x195]
push eax
movzx eax, byte [esi + 0x194]
push eax
lea eax, [ebp - 0x24]
push str._02X_02X_02X_02X_02X_02X
push eax
call fcn.004750cf
add esp, 0x20
lea eax, [esi + 0x10c]
push eax
lea ecx, [ebp - 0x40]
call fcn.004024f8
push ebx
push 0x4ac3c4
lea ecx, [ebp - 0x40]
mov byte [ebp - 4], 1
call fcn.0049904d
cmp eax, 0xffffffff
jne 0x49976c
push ebx
push str.VMare
lea ecx, [ebp - 0x40]
call fcn.0049904d
cmp eax, 0xffffffff
jne 0x49976c
push ebx
push str.Virtual
lea ecx, [ebp - 0x40]
call fcn.0049904d
cmp eax, 0xffffffff
jne 0x49976c
push ebx
push str.SLIP
lea ecx, [ebp - 0x40]
call fcn.0049904d
cmp eax, 0xffffffff
jne 0x49976c
push ebx
push str.P.P.P
lea ecx, [ebp - 0x40]
call fcn.0049904d
cmp eax, 0xffffffff
jne 0x49976c
lea eax, [ebp - 0x28e4]
push eax
lea eax, [ebp - 0x24]
push eax
call fcn.00498fdc
pop ecx
pop ecx
test al, al
je 0x499795
mov esi, dword [esi]
push ebx
lea ecx, [ebp - 0x40]
push 1
cmp esi, ebx
je 0x4997e3
mov byte [ebp - 4], bl
call fcn.004028c7
inc dword [ebp - 0x28c4]
cmp dword [ebp - 0x28c4], 0x10
jb 0x4996a3
jmp 0x4997b1
mov ecx, dword [ebp - 0x28c8]
lea eax, [ebp - 0x24]
push eax
call fcn.004024d5
push ebx
push 1
lea ecx, [ebp - 0x40]
call fcn.004028c7
mov bl, 1
lea ecx, [ebp - 0x28e4]
call fcn.004142cf
push dword [ebp - 0x28e4]
call fcn.00470471
pop ecx
mov al, bl
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.0047099a
leave
ret
call fcn.004028c7
jmp 0x4997b1
Function at 0x499c93
Capabilities:
Get storage device properties

Disassembly:
push ebp
lea ebp, [esp - 0x2ac0]
mov eax, 0x2b3c
call fcn.004737a0
mov eax, dword [0x4bca50]
xor eax, ebp
mov dword [ebp + 0x2abc], eax
push ebx
push esi
mov esi, dword [ebp + 0x2ac8]
xor ebx, ebx
push ebx
push ebx
push 3
push ebx
push 3
push ebx
push str..PhysicalDrive0
mov byte [ebp - 0x49], bl
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x50], eax
cmp eax, 0xffffffff
je 0x499deb
push edi
push 0xc
lea eax, [ebp - 0x48]
push ebx
push eax
call fcn.00470920
mov edi, 0x2710
push edi
lea eax, [ebp - 0x3c]
push ebx
push eax
mov dword [ebp - 0x48], ebx
mov dword [ebp - 0x44], ebx
call fcn.00470920
add esp, 0x18
push ebx
lea eax, [ebp - 0x5c]
push eax
push edi
lea eax, [ebp - 0x3c]
push eax
push 0xc
lea eax, [ebp - 0x48]
push eax
push 0x2d1400
push dword [ebp - 0x50]
mov dword [ebp - 0x5c], ebx
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x499de1
lea eax, [ebp + 0x26d4]
push eax
push 1
push dword [ebp - 0x24]
lea eax, [ebp - 0x3c]
push eax
call fcn.0049998f
movsx eax, byte [ebp + 0x26d4]
push eax
call fcn.00478226
add esp, 0x14
test eax, eax
jne 0x499d68
movsx eax, byte [ebp + 0x26e7]
push eax
call fcn.00478226
pop ecx
test eax, eax
je 0x499de1
lea eax, [ebp + 0x26d4]
push eax
mov ecx, esi
call fcn.004024d5
lea eax, [ebp - 0x64]
push eax
mov ecx, esi
mov byte [ebp - 0x4a], 0x20
call fcn.00454586
mov ecx, dword [eax]
mov eax, dword [eax + 4]
mov dword [ebp - 0x54], eax
lea eax, [ebp - 0x74]
mov dword [ebp - 0x58], ecx
push eax
mov ecx, esi
call fcn.00454586
mov edi, eax
lea eax, [ebp - 0x6c]
push eax
mov ecx, esi
call fcn.00454566
lea ecx, [ebp - 0x4a]
push ecx
push dword [edi + 4]
push dword [edi]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x7c]
push eax
call fcn.00499c15
add esp, 0x18
push dword [ebp - 0x54]
mov ecx, esi
push dword [ebp - 0x58]
push dword [eax + 4]
push dword [eax]
lea eax, [ebp - 0x58]
push eax
call fcn.004545db
cmp dword [esi + 0x14], ebx
je 0x499de1
mov byte [ebp - 0x49], 1
push dword [ebp - 0x50]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
mov ecx, dword [ebp + 0x2abc]
mov al, byte [ebp - 0x49]
pop esi
xor ecx, ebp
pop ebx
call fcn.0047099a
add ebp, 0x2ac0
leave
ret
Function at 0x4fe2cd
Capabilities:
Encode data using xor
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x1a0
push ebx
mov ebx, dword [esp + 0x1a8]
mov eax, dword [ebx + 0x50]
lea eax, [eax + ebx + 0x18]
mov dword [esp + 8], eax
mov dword [esp + 0x18], eax
test byte [ebx + 0x24], 8
jne 0x4fe48d
mov eax, dword [ebx + 0x44]
mov dword [esp + 0xc], 0
lea ecx, [eax + 1]
test ecx, ecx
jbe 0x4fe485
push edi
push esi
push ebp
cmp dword [esp + 0x18], eax
jne 0x4fe31c
mov edx, dword [ebx + 0x48]
mov dword [esp + 0x10], edx
jmp 0x4fe323
mov eax, dword [ebx + 0x4c]
mov dword [esp + 0x10], eax
mov ebp, dword [ebx + 0x20]
mov eax, dword [ebx + 0x38]
and ebp, 0x40d7b0
mov byte [esp + 0x1c], 0
not ebp
xor ebp, eax
xor eax, eax
mov byte [esp + eax + 0x30], al
inc eax
cmp eax, 0x100
jb 0x4fe33a
xor edi, edi
xor ecx, ecx
mov esi, dword [esp + 0x1c]
xor edx, edx
and esi, 0xff
xor eax, eax
mov al, byte [esp + edi + 0x30]
mov dl, byte [ebx + esi + 0x28]
add ecx, edx
add eax, ecx
cdq
xor eax, edx
sub eax, edx
and eax, 0xff
xor eax, edx
sub eax, edx
mov byte [esp + 0x20], al
mov al, byte [esp + edi + 0x30]
mov ecx, dword [esp + 0x20]
and ecx, 0xff
mov dl, byte [esp + ecx + 0x30]
mov byte [esp + edi + 0x30], dl
mov byte [esp + ecx + 0x30], al
lea eax, [esi + 1]
xor edx, edx
div ebp
inc edi
cmp edi, 0x100
mov byte [esp + 0x1c], dl
jb 0x4fe34a
mov eax, dword [esp + 0x10]
xor edi, edi
test eax, eax
jbe 0x4fe448
xor ecx, ecx
xor esi, esi
lea eax, [ecx + 1]
cdq
xor eax, edx
sub eax, edx
and eax, 0xff
xor eax, edx
sub eax, edx
mov byte [esp + 0x28], al
xor eax, eax
mov ecx, dword [esp + 0x28]
and ecx, 0xff
mov al, byte [esp + ecx + 0x30]
mov edx, eax
mov eax, esi
add eax, edx
cdq
xor eax, edx
sub eax, edx
and eax, 0xff
xor eax, edx
sub eax, edx
mov byte [esp + 0x2c], al
mov al, byte [esp + ecx + 0x30]
mov esi, dword [esp + 0x2c]
and esi, 0xff
mov dl, byte [esp + esi + 0x30]
mov byte [esp + ecx + 0x30], dl
mov byte [esp + esi + 0x30], al
xor eax, eax
xor edx, edx
mov al, byte [esp + esi + 0x30]
mov dl, byte [esp + ecx + 0x30]
add eax, edx
cdq
xor eax, edx
sub eax, edx
and eax, 0xff
xor eax, edx
sub eax, edx
mov edx, dword [esp + 0x14]
mov al, byte [esp + eax + 0x30]
xor al, byte [edi + edx]
inc edi
mov byte [esp + edi + 0x12f], al
mov eax, dword [esp + 0x10]
cmp edi, eax
jb 0x4fe3b6
mov edx, dword [esp + 0x14]
mov ecx, eax
mov ebp, ecx
lea esi, [esp + 0x130]
mov edi, edx
add edx, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
mov dword [esp + 0x14], edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [ebx + 0x44]
mov ecx, dword [esp + 0x18]
inc ecx
lea edx, [eax + 1]
mov dword [esp + 0x18], ecx
cmp ecx, edx
jb 0x4fe30d
pop ebp
pop esi
pop edi
mov eax, dword [ebx + 0x24]
or al, 8
mov dword [ebx + 0x24], eax
push ebx
call dword [esp + 0x1c]
pop ebx
add esp, 0x1a0
ret 4
Function at 0x402870
Capabilities:
Get common file path

Disassembly:
push 0xffffffffffffffff
push 0x510778
mov eax, dword fs:[0]
push eax
sub esp, 0x628
mov eax, dword [0x5645bc]
xor eax, esp
mov dword [esp + 0x624], eax
push ebx
push ebp
push edi
mov eax, dword [0x5645bc]
xor eax, esp
push eax
lea eax, [esp + 0x638]
mov dword fs:[0], eax
xor ebx, ebx
mov dword [esi], ebx
mov eax, 7
mov dword [esi + 0x20], eax
mov dword [esi + 0x1c], ebx
mov dword [esp + 0x10], esi
mov word [esi + 0xc], bx
lea edi, [esi + 0x24]
mov dword [esp + 0x640], ebx
mov dword [edi + 0x18], eax
mov dword [edi + 0x14], ebx
mov word [edi + 4], bx
mov dword [esi + 0x58], eax
mov dword [esi + 0x54], ebx
mov word [esi + 0x44], bx
lea ecx, [esi + 0x5c]
mov byte [esp + 0x640], 2
push ebx
mov dword [ecx + 0x18], 0xf
mov dword [ecx + 0x14], ebx
push 0x539ea8
mov byte [ecx + 4], bl
call fcn.00401e90
push ebx
mov byte [esp + 0x644], 3
call fcn.00468888
push eax
call fcn.00467a79
push 0x20a
lea eax, [esp + 0x22]
push ebx
push eax
mov word [esp + 0x28], bx
call fcn.00463f00
add esp, 0x14
lea ecx, [esp + 0x14]
push ecx
push 0x105
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
add eax, 0xffffffff
cmp eax, 0x103
ja 0x4029d1
push 0x410
lea edx, [esp + 0x226]
push ebx
push edx
mov word [esp + 0x22a], bx
mov word [esp + 0x22c], bx
call fcn.00463f00
add esp, 0xc
push 0x208
lea eax, [esp + 0x224]
push eax
lea ecx, [esp + 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_GetLongPathNameW]
cmp eax, 0x208
ja 0x4029ae
cmp eax, ebx
je 0x4029ae
lea edx, [esp + 0x220]
push edx
mov ecx, edi
mov word [esp + eax*2 + 0x224], bx
call fcn.00403a90
jmp 0x4029d1
lea eax, [esp + 0x14]
lea edx, [eax + 2]
mov cx, word [eax]
add eax, 2
cmp cx, bx
jne 0x4029b5
sub eax, edx
sar eax, 1
push eax
lea eax, [esp + 0x18]
push eax
mov ecx, edi
call fcn.004020f0
mov eax, dword [esi + 0x38]
cmp eax, ebx
je 0x402a08
lea ebp, [eax - 1]
cmp ebp, dword [edi + 0x14]
jbe 0x4029e5
call fcn.004640ee
cmp dword [edi + 0x18], 8
jb 0x4029f0
mov eax, dword [edi + 4]
jmp 0x4029f3
lea eax, [edi + 4]
cmp word [eax + ebp*2], 0x5c
je 0x402a08
push 1
push 0x539eac
mov ecx, edi
call fcn.00403f60
cmp dword [esi + 0x38], ebx
jne 0x402a1b
push 3
push 0x539eb0
mov ecx, edi
call fcn.004020f0
mov eax, esi
mov dword [esi + 4], ebx
mov ecx, dword [esp + 0x638]
mov dword fs:[0], ecx
pop ecx
pop edi
pop ebp
pop ebx
mov ecx, dword [esp + 0x624]
xor ecx, esp
call fcn.00463ee8
add esp, 0x634
ret