joyce8/EMBER2024-capa huggingface dataset:
Function at 0x45e3d0
Capabilities:
Enumerate processes

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8e8e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x298
mov dword [ebp - 4], 0
mov dword [ebp - 0x18], 0
mov ecx, dword [ebp + 8]
call fcn.0045df30
mov dword [ebp - 0x58], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x18]
or eax, 1
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 0
push 0
push 2
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
je 0x45e5b4
push 0x22c
push 0
lea ecx, [ebp - 0x2a4]
push ecx
call fcn.0047a2a0
add esp, 0xc
mov dword [ebp - 0x2a4], 0x22c
lea edx, [ebp - 0x2a4]
push edx
mov eax, dword [ebp - 0x14]
push eax
call sub.KERNEL32.dll_Process32FirstW
test eax, eax
je 0x45e5a9
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x2a4]
push eax
call fcn.0045ebb0
add esp, 0xc
test eax, eax
je 0x45e556
mov dword [ebp - 0x10], 0
cmp dword [ebp + 0x18], 0
je 0x45e4b5
mov ecx, dword [ebp - 0x29c]
push ecx
push 0
mov edx, dword [ebp + 0x1c]
push edx
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov dword [ebp - 0x10], eax
cmp dword [ebp + 0x14], 0
je 0x45e530
cmp dword [ebp + 0x18], 0
je 0x45e506
cmp dword [ebp - 0x10], 0
je 0x45e4f4
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x3c], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x3c]
mov dword [ebp - 0x24], edx
mov eax, dword [ebp - 0x24]
push eax
lea ecx, [ebp - 0x60]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0045de50
nop
jmp 0x45e579
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x20], edx
mov dword [ebp - 0x1c], 1
jmp 0x45e52e
mov eax, dword [ebp - 0x29c]
mov dword [ebp - 0x44], eax
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x40], ecx
lea edx, [ebp - 0x44]
mov dword [ebp - 0x28], edx
mov eax, dword [ebp - 0x28]
push eax
lea ecx, [ebp - 0x68]
push ecx
mov ecx, dword [ebp + 8]
call fcn.0045de50
nop
jmp 0x45e579
jmp 0x45e556
mov edx, dword [ebp - 0x29c]
mov dword [ebp - 0x4c], edx
mov eax, dword [ebp - 0x10]
mov dword [ebp - 0x48], eax
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x2c], ecx
mov edx, dword [ebp - 0x2c]
push edx
lea eax, [ebp - 0x70]
push eax
mov ecx, dword [ebp + 8]
call fcn.0045de50
nop
lea ecx, [ebp - 0x2a4]
push ecx
mov edx, dword [ebp - 0x14]
push edx
call sub.KERNEL32.dll_Process32NextW
test eax, eax
jne 0x45e56c
jmp 0x45e579
mov eax, 1
test eax, eax
jne 0x45e473
cmp dword [ebp - 0x1c], 0
je 0x45e5a9
mov dword [ebp - 0x30], 0
mov ecx, dword [ebp - 0x20]
mov dword [ebp - 0x54], ecx
mov edx, dword [ebp - 0x30]
mov dword [ebp - 0x50], edx
lea eax, [ebp - 0x54]
mov dword [ebp - 0x34], eax
mov ecx, dword [ebp - 0x34]
push ecx
lea edx, [ebp - 0x78]
push edx
mov ecx, dword [ebp + 8]
call fcn.0045de50
nop
mov eax, dword [ebp - 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x45f2d0
Capabilities:
Create thread
Terminate thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
push 0
mov ecx, dword [ebp - 0xc]
push ecx
push 0x45e080
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x45f336
push 0xea60
mov edx, dword [ebp - 4]
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
cmp eax, 0x102
jne 0x45f325
push 0
mov eax, dword [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateThread]
nop
mov ecx, dword [ebp - 4]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, 1
jmp 0x45f338
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x45f7e0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8f2e
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x1008
call fcn.0045da20
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0
mov ecx, dword [ebp + 8]
call fcn.00401aa0
mov dword [ebp - 0x14], eax
mov dword [ebp - 4], 0
mov eax, dword [ebp - 0x10]
or eax, 1
mov dword [ebp - 0x10], eax
push 0x1000
push 0
lea ecx, [ebp - 0x1014]
push ecx
call fcn.0047a2a0
add esp, 0xc
push 0
mov edx, dword [ebp + 0xc]
push edx
lea eax, [ebp - 0x1014]
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45f86a
lea ecx, [ebp - 0x1014]
push ecx
mov ecx, dword [ebp + 8]
call fcn.00401b60
nop
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret

Function at 0x45fdc0
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1834
call fcn.0045da20
mov dword [ebp - 0x14], 0
mov eax, dword [0x4ec528]
mov ecx, dword fs:[0x2c]
mov edx, dword [ecx + eax*4]
mov eax, dword [0x4ec894]
cmp eax, dword [edx + 4]
jle 0x45fe2a
push 0x4ec894
call fcn.0045c54c
add esp, 4
cmp dword [0x4ec894], 0xffffffff
jne 0x45fe2a
mov ecx, 0x4ec87c
call fcn.00404740
push 0x4bc1f0
call fcn.0045c930
add esp, 4
push 0x4ec894
call fcn.0045c4fb
add esp, 4
cmp dword [0x4ec88c], 0
jne 0x45fe3c
mov dword [ebp - 8], 1
jmp 0x45fe43
mov dword [ebp - 8], 0
mov cl, byte [ebp - 8]
mov byte [ebp - 1], cl
movzx edx, byte [ebp - 1]
test edx, edx
je 0x45ff08
push 0x1000
push 0
lea eax, [ebp - 0x1834]
push eax
call fcn.0047a2a0
add esp, 0xc
mov dword [ebp - 0x18], 0x800
lea ecx, [ebp - 0x18]
push ecx
lea edx, [ebp - 0x1834]
push edx
call dword [sym.imp.KERNEL32.dll_GetComputerNameW]
test eax, eax
je 0x45fee9
push 0x800
push 0
lea eax, [ebp - 0x834]
push eax
call fcn.0047a2a0
add esp, 0xc
lea ecx, [ebp - 0x834]
mov dword [ebp - 0xc], ecx
push 0x44
mov edx, dword [ebp - 0xc]
push edx
lea eax, [ebp - 0x1834]
push eax
call fcn.00460600
add esp, 0xc
test eax, eax
je 0x45fee9
mov ecx, dword [ebp - 0xc]
push ecx
lea edx, [ebp - 0x34]
push edx
call fcn.004634e0
add esp, 8
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, 0x4ec87c
call fcn.0040db40
lea ecx, [ebp - 0x34]
call fcn.00401ac0
nop
cmp dword [0x4ec88c], 0
jne 0x45fefb
mov dword [ebp - 0x10], 1
jmp 0x45ff02
mov dword [ebp - 0x10], 0
mov cl, byte [ebp - 0x10]
mov byte [ebp - 2], cl
push 0x4ec87c
mov ecx, dword [ebp + 8]
call fcn.00404650
mov eax, dword [ebp - 0x14]
or eax, 1
mov dword [ebp - 0x14], eax
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret
Function at 0x460600
Capabilities:
Get user security identifier

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b8fdd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x40
push 0
push 0x400
lea ecx, [ebp - 0x4c]
call fcn.0045beba
mov dword [ebp - 4], 0
mov dword [ebp - 0x10], 0x400
mov eax, dword [ebp + 0x10]
mov dword [ebp - 0x18], eax
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
lea ecx, [ebp - 0x4c]
call fcn.00452430
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
jne 0x460716
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x7a
jne 0x460716
mov eax, dword [ebp - 0x18]
cmp eax, dword [ebp + 0x10]
jbe 0x4606a8
mov dword [ebp - 0x28], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401940
nop
mov eax, dword [ebp - 0x28]
jmp 0x460745
cmp dword [ebp - 0x10], 0x400
jbe 0x4606ec
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x14], ecx
mov edx, dword [ebp - 0x3c]
mov dword [ebp - 0x2c], edx
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x14]
cmp ecx, dword [ebp - 0x20]
ja 0x4606da
mov edx, dword [ebp - 0x14]
push edx
lea ecx, [ebp - 0x4c]
call fcn.0040f570
nop
jmp 0x4606ec
push 0
mov eax, dword [ebp - 0x14]
sub eax, dword [ebp - 0x20]
push eax
lea ecx, [ebp - 0x4c]
call fcn.0040f5a0
nop
lea ecx, [ebp - 0x30]
push ecx
lea edx, [ebp - 0x10]
push edx
push 0
lea ecx, [ebp - 0x4c]
call fcn.00452430
push eax
lea eax, [ebp - 0x18]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
push 0
call dword [sym.imp.ADVAPI32.dll_LookupAccountNameW]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0
je 0x460725
mov dword [ebp - 0x24], 1
jmp 0x46072c
mov dword [ebp - 0x24], 0
mov eax, dword [ebp - 0x24]
mov dword [ebp - 0x34], eax
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call fcn.00401940
nop
mov eax, dword [ebp - 0x34]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x461110
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b902d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x6c
mov dword [ebp - 0x10], 0
mov dword [ebp - 4], 0
lea eax, [ebp - 0x60]
mov dword [ebp - 0x14], eax
mov ecx, dword [ebp - 0x14]
call fcn.00402280
nop
lea ecx, [ebp - 0x60]
call fcn.00401cd0
nop
mov dword [ebp - 4], 1
push 0
push 0
push 0
lea ecx, [ebp - 0x60]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x2c], esp
mov edx, dword [ebp + 0xc]
push edx
call fcn.00422780
call fcn.00462cc0
add esp, 0x28
lea ecx, [ebp - 0x60]
call fcn.00401910
push eax
mov eax, dword [ebp + 8]
push eax
call fcn.004612a0
add esp, 8
mov byte [ebp - 4], 2
lea ecx, [ebp - 0x48]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp - 0x18]
call fcn.00402280
nop
lea ecx, [ebp - 0x48]
call fcn.00401cd0
nop
mov byte [ebp - 4], 4
lea edx, [ebp - 0x78]
mov dword [ebp - 0x1c], edx
mov ecx, dword [ebp - 0x1c]
call fcn.00402280
nop
lea ecx, [ebp - 0x78]
call fcn.00401cd0
nop
mov byte [ebp - 4], 5
push 0
push 0
lea eax, [ebp - 0x78]
push eax
push 0
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x30], esp
mov edx, dword [ebp + 8]
push edx
call fcn.00422780
call fcn.00462cc0
add esp, 0x28
lea ecx, [ebp - 0x78]
call fcn.00401910
mov dword [ebp - 0x20], eax
lea ecx, [ebp - 0x60]
call fcn.00401910
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x20]
push eax
mov ecx, dword [ebp - 0x24]
push ecx
lea edx, [ebp - 0x48]
push edx
call fcn.00462970
add esp, 0xc
lea ecx, [ebp - 0x48]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46125d
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x48]
call fcn.00401910
push eax
call fcn.00461ae0
add esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x46125d
push 1
lea ecx, [ebp - 0x48]
call fcn.00401910
push eax
call fcn.00461970
add esp, 8
mov ecx, dword [ebp - 0x10]
mov dword [ebp - 0x28], ecx
mov byte [ebp - 4], 3
lea ecx, [ebp - 0x78]
call fcn.00401940
nop
mov byte [ebp - 4], 1
lea ecx, [ebp - 0x48]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x60]
call fcn.00401940
nop
mov eax, dword [ebp - 0x28]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4612a0
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b904d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
mov eax, 0x4050
call fcn.0045da20
cmp dword [ebp + 8], 0
je 0x4612e2
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x4612e2
cmp dword [ebp + 0xc], 0
je 0x4612e2
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
jne 0x4612e9
xor eax, eax
jmp 0x46143b
lea ecx, [ebp - 0x58]
call fcn.00401aa0
mov dword [ebp - 4], 0
cmp dword [ebp + 0xc], 0
je 0x461308
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
jne 0x461355
push 0
push 0
push 0
lea eax, [ebp - 0x58]
push eax
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x5c], esp
mov edx, dword [ebp + 8]
push edx
call fcn.00422780
call fcn.00462cc0
add esp, 0x28
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x461353
mov dword [ebp - 0x14], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401940
nop
mov eax, dword [ebp - 0x14]
jmp 0x46143b
jmp 0x461362
mov eax, dword [ebp + 0xc]
push eax
lea ecx, [ebp - 0x58]
call fcn.00401b60
nop
push 0x2000
push 0
lea ecx, [ebp - 0x205c]
push ecx
call fcn.0047a2a0
add esp, 0xc
push 0x2000
push 0
lea edx, [ebp - 0x405c]
push edx
call fcn.0047a2a0
add esp, 0xc
mov eax, dword [ebp + 8]
push eax
lea ecx, [ebp - 0x205c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea ecx, [ebp - 0x58]
call fcn.00401910
push eax
lea edx, [ebp - 0x405c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
xor eax, eax
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x38], eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov word [ebp - 0x24], ax
lea ecx, [ebp - 0x205c]
mov dword [ebp - 0x38], ecx
lea edx, [ebp - 0x405c]
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x3c], 2
mov eax, 0x10
mov word [ebp - 0x30], ax
lea ecx, [ebp - 0x40]
push ecx
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x461421
mov dword [ebp - 0x1c], 1
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401940
nop
mov eax, dword [ebp - 0x1c]
jmp 0x46143b
mov dword [ebp - 0x20], 0
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x58]
call fcn.00401940
nop
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x461450
Capabilities:
Check if file exists
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b9075
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x54
cmp dword [ebp + 8], 0
je 0x461499
mov eax, dword [ebp + 8]
movzx ecx, word [eax]
test ecx, ecx
je 0x461499
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x461499
cmp dword [ebp + 0xc], 0
je 0x461499
mov eax, dword [ebp + 0xc]
movzx ecx, word [eax]
test ecx, ecx
jne 0x4614a0
xor eax, eax
jmp 0x461622
cmp dword [ebp + 0xc], 0
je 0x46160e
mov edx, dword [ebp + 0xc]
movzx eax, word [edx]
test eax, eax
je 0x46160e
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x46160e
mov edx, dword [ebp + 0xc]
push edx
lea ecx, [ebp - 0x48]
call fcn.00422780
mov dword [ebp - 4], 0
lea eax, [ebp - 0x48]
push eax
call fcn.00461a50
lea ecx, [ebp - 0x48]
push ecx
lea ecx, [ebp - 0x30]
call fcn.004019f0
mov byte [ebp - 4], 1
mov dword [ebp - 0x10], 0
jmp 0x461508
mov edx, dword [ebp - 0x10]
add edx, 1
mov dword [ebp - 0x10], edx
cmp dword [ebp - 0x10], 0x64
jge 0x46159c
push 1
lea ecx, [ebp - 0x30]
call fcn.00401910
push eax
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.KERNEL32.dll_MoveFileExW]
test eax, eax
je 0x461541
cmp dword [ebp + 0x10], 0
je 0x461541
lea ecx, [ebp - 0x30]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
nop
cmp dword [ebp + 0xc], 0
je 0x46155f
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
je 0x46155f
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461561
jmp 0x46159c
mov ecx, dword [ebp - 0x10]
push ecx
lea ecx, [ebp - 0x48]
call fcn.00401910
push eax
push str._s._d
lea edx, [ebp - 0x60]
push edx
call fcn.004637c0
add esp, 0x10
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
push eax
lea ecx, [ebp - 0x30]
call fcn.004226f0
lea ecx, [ebp - 0x60]
call fcn.00401940
nop
jmp 0x4614ff
cmp dword [ebp + 0xc], 0
je 0x4615ba
mov ecx, dword [ebp + 0xc]
movzx edx, word [ecx]
test edx, edx
je 0x4615ba
mov eax, dword [ebp + 0xc]
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4615ef
push 1
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
mov dword [ebp - 0x18], eax
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401940
nop
mov eax, dword [ebp - 0x18]
jmp 0x461622
mov byte [ebp - 4], 0
lea ecx, [ebp - 0x30]
call fcn.00401940
nop
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x48]
call fcn.00401940
nop
jmp 0x461620
push 1
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_CopyFileW]
jmp 0x461622
xor eax, eax
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x461640
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b909d
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
cmp dword [ebp + 0xc], 0
je 0x46177b
mov dword [ebp - 4], 0
lea eax, [ebp - 0x3c]
mov dword [ebp - 0x1c], eax
mov ecx, dword [ebp - 0x1c]
call fcn.00402280
nop
lea ecx, [ebp - 0x3c]
call fcn.00401cd0
nop
mov dword [ebp - 4], 1
push 0
push 0
push 0
lea ecx, [ebp - 0x3c]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x24], esp
mov edx, dword [ebp + 8]
push edx
call fcn.00422780
call fcn.00462cc0
add esp, 0x28
cmp dword [ebp - 0x2c], 0
jne 0x4616bd
mov dword [ebp - 0x14], 1
jmp 0x4616c4
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x46176b
push 0
lea ecx, [ebp - 0x3c]
call fcn.00401910
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
nop
lea ecx, [ebp - 0x3c]
call fcn.00401910
test eax, eax
je 0x461718
lea ecx, [ebp - 0x3c]
call fcn.00401910
movzx edx, word [eax]
test edx, edx
je 0x461718
lea ecx, [ebp - 0x3c]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46176b
push 0
lea ecx, [ebp - 0x3c]
call fcn.00401910
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
nop
lea ecx, [ebp - 0x3c]
call fcn.00401910
test eax, eax
je 0x46175a
lea ecx, [ebp - 0x3c]
call fcn.00401910
movzx eax, word [eax]
test eax, eax
je 0x46175a
lea ecx, [ebp - 0x3c]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x46176b
lea ecx, [ebp - 0x3c]
call fcn.00401910
push eax
call fcn.0045f340
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x3c]
call fcn.00401940
nop
cmp dword [ebp + 0x10], 0
je 0x46178a
mov dword [ebp - 0x18], 1
jmp 0x461791
mov dword [ebp - 0x18], 4
push 0
push 0x80
mov ecx, dword [ebp - 0x18]
push ecx
push 0
push 1
push SysReAllocString
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x20], eax
mov eax, dword [ebp - 0x20]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x4617d0
Capabilities:
Check if file exists
Create directory

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4b90bd
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x38
cmp dword [ebp + 0xc], 0
je 0x46190d
mov dword [ebp - 4], 0
lea eax, [ebp - 0x44]
mov dword [ebp - 0x20], eax
mov ecx, dword [ebp - 0x20]
call fcn.00402280
nop
lea ecx, [ebp - 0x44]
call fcn.00401cd0
nop
mov dword [ebp - 4], 1
push 0
push 0
push 0
lea ecx, [ebp - 0x44]
push ecx
sub esp, 0x18
mov ecx, esp
mov dword [ebp - 0x28], esp
mov edx, dword [ebp + 8]
push edx
call fcn.00422780
call fcn.00462cc0
add esp, 0x28
cmp dword [ebp - 0x34], 0
jne 0x46184d
mov dword [ebp - 0x14], 1
jmp 0x461854
mov dword [ebp - 0x14], 0
mov al, byte [ebp - 0x14]
mov byte [ebp - 0xd], al
movzx ecx, byte [ebp - 0xd]
test ecx, ecx
jne 0x4618fd
push 0
lea ecx, [ebp - 0x44]
call fcn.00401910
push eax
push 0
call dword [sym.imp.SHELL32.dll_SHCreateDirectoryExW]
mov dword [ebp - 0x2c], eax
lea ecx, [ebp - 0x44]
call fcn.00401910
test eax, eax
je 0x4618aa
lea ecx, [ebp - 0x44]
call fcn.00401910
movzx edx, word [eax]
test edx, edx
je 0x4618aa
lea ecx, [ebp - 0x44]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4618fd
push 0
lea ecx, [ebp - 0x44]
call fcn.00401910
push eax
push 0
call dword [sym.imp.KERNEL32.dll_CreateDirectoryExW]
nop
lea ecx, [ebp - 0x44]
call fcn.00401910
test eax, eax
je 0x4618ec
lea ecx, [ebp - 0x44]
call fcn.00401910
movzx eax, word [eax]
test eax, eax
je 0x4618ec
lea ecx, [ebp - 0x44]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x4618fd
lea ecx, [ebp - 0x44]
call fcn.00401910
push eax
call fcn.0045f340
add esp, 4
mov dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x44]
call fcn.00401940
nop
cmp dword [ebp + 0x10], 0
je 0x46191c
mov dword [ebp - 0x1c], 1
jmp 0x461938
cmp dword [ebp + 0x14], 0
je 0x46192b
mov dword [ebp - 0x18], 2
jmp 0x461932
mov dword [ebp - 0x18], 4
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x1c], ecx
push 0
push 0x80
mov edx, dword [ebp - 0x1c]
push edx
push 0
push 3
push 0xc0000000
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x24], eax
mov eax, dword [ebp - 0x24]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x461c20
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov ecx, dword [ebp + 8]
call fcn.00401910
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x461c59
mov ecx, dword [ebp + 8]
call fcn.00401910
movzx eax, word [eax]
test eax, eax
je 0x461c59
mov ecx, dword [ebp + 8]
call fcn.00401910
push eax
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
jne 0x461c5d
xor eax, eax
jmp 0x461cc8
mov ecx, dword [ebp + 8]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
mov dword [ebp - 4], eax
cmp dword [ebp + 0xc], 0
je 0x461c9d
mov ecx, dword [ebp - 4]
and ecx, 1
je 0x461c9b
mov edx, dword [ebp - 4]
and edx, 0xfffffffe
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x461cc8
jmp 0x461cc3
mov ecx, dword [ebp - 4]
and ecx, 1
jne 0x461cc3
mov edx, dword [ebp - 4]
or edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [ebp + 8]
call fcn.00401910
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
jmp 0x461cc8
mov eax, 1
mov esp, ebp
pop ebp
ret

Function at 0x462a90
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 8], 0
lea eax, [ebp - 8]
push eax
call fcn.00462b20
add esp, 4
mov dword [ebp - 0xc], 0
mov dword [ebp - 4], 0
jmp 0x462ac2
mov ecx, dword [ebp - 4]
add ecx, 1
mov dword [ebp - 4], ecx
mov edx, dword [ebp - 4]
cmp edx, dword [ebp + 0xc]
jge 0x462b16
mov eax, dword [ebp - 4]
and eax, 0x800000ff
jns 0x462adb
dec eax
or eax, 0xffffff00
inc eax
mov ecx, dword [ebp - 8]
movzx edx, byte [ecx + eax]
add edx, dword [ebp - 0xc]
and edx, 0x800000ff
jns 0x462af5
dec edx
or edx, 0xffffff00
inc edx
mov dword [ebp - 0xc], edx
mov eax, dword [ebp - 8]
add eax, dword [ebp - 0xc]
movzx ecx, byte [eax]
mov edx, dword [ebp + 8]
add edx, dword [ebp - 4]
movzx eax, byte [edx]
xor eax, ecx
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 4]
mov byte [ecx], al
jmp 0x462ab9
mov eax, dword [ebp + 0xc]
mov esp, ebp
pop ebp
ret