joyce8/EMBER2024-capa huggingface dataset:
Function at 0x461bab
Capabilities:
Get common file path

Disassembly:
mov eax, 0x6a2797
call fcn.006426c4
sub esp, 0x64
push esi
push edi
xor edi, edi
mov dword [ebp - 0x2c], 7
xor eax, eax
mov dword [ebp - 0x14], edi
mov dword [ebp - 0x30], edi
mov word [ebp - 0x40], ax
mov dword [ebp - 4], edi
cmp byte [0x7b4ee6], al
je 0x461bec
push str.downloads
push dword [ebp + 8]
call fcn.00473fd0
jmp 0x461cfc
push str.SHGetKnownFolderPath
push 0x6ca1ec
call fcn.0046462c
mov dword [ebp - 0x28], 0x374de290
mov dword [ebp - 0x24], 0x4565123f
mov dword [ebp - 0x20], 0xc4396491
mov dword [ebp - 0x1c], 0x7b465e92
test eax, eax
je 0x461c88
lea ecx, [ebp - 0x10]
push ecx
push edi
push 0x8000
lea ecx, [ebp - 0x28]
push ecx
call eax
test eax, eax
js 0x461c88
push dword [ebp - 0x10]
lea ecx, [ebp - 0x58]
call fcn.00429d77
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 1
push eax
lea eax, [ebp - 0x70]
push eax
call fcn.00440cce
push eax
lea ecx, [ebp - 0x40]
call fcn.00428071
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.004285f6
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.004285f6
push 2
push edi
call dword [sym.imp.ole32.dll_CoInitializeEx]
test eax, eax
js 0x461c80
push dword [ebp - 0x10]
call dword [sym.imp.ole32.dll_CoTaskMemFree]
call dword [sym.imp.ole32.dll_CoUninitialize]
jmp 0x461cf0
push 2
push 0x118
call fcn.004605ee
push 1
push 5
mov esi, eax
push esi
push edi
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x461cf0
push 0x6cf670
lea ecx, [ebp - 0x58]
call fcn.00429d77
push 1
lea eax, [ebp - 0x58]
mov byte [ebp - 4], 2
push eax
sub esp, 0x18
mov ecx, esp
push esi
call fcn.00429d77
lea eax, [ebp - 0x70]
push eax
call fcn.00460bac
push eax
lea ecx, [ebp - 0x40]
call fcn.00428071
push edi
push 1
lea ecx, [ebp - 0x70]
call fcn.004285f6
push edi
push 1
lea ecx, [ebp - 0x58]
call fcn.004285f6
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x40]
push eax
call fcn.00427f9c
push edi
push 1
lea ecx, [ebp - 0x40]
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
mov dword fs:[0], ecx
pop esi
mov esp, ebp
pop ebp
ret 4

Function at 0x461d6c
Capabilities:
Move file

Disassembly:
push 3
push dword [esp + 0xc]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
ret 8

Function at 0x462023
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push esi
push edi
xor eax, eax
mov esi, dword [ebp + 0x10]
lea edi, [ebp - 0x14]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x18]
mov dword [ebp - 8], eax
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp + 0x18]
push eax
push esi
push edi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_ReadFile]
test eax, eax
jne 0x462066
call dword [sym.imp.KERNEL32.DLL_GetLastError]
jmp 0x462088
mov ecx, dword [ebp + 0x1c]
mov eax, dword [ebp + 0x18]
test ecx, ecx
je 0x462072
mov dword [ecx], eax
cmp eax, esi
je 0x462086
sub esi, eax
add eax, edi
push esi
push 0
push eax
call fcn.0065d010
add esp, 0xc
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 0x18
Function at 0x462090
Capabilities:
Create directory

Disassembly:
push ebx
push esi
push dword [esp + 0xc]
xor ebx, ebx
call fcn.00461675
mov esi, ebx
push ebx
push dword [esp + 0x10]
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x4620cc
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x4620ce
push 0xc8
call dword [sym.imp.KERNEL32.DLL_Sleep]
inc esi
cmp esi, 5
jl 0x46209f
jmp 0x4620ce
mov bl, 1
pop esi
mov al, bl
pop ebx
ret 4

Function at 0x462128
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x3c
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x50]
push 0x22
pop eax
cmp word [edi], ax
jne 0x462145
add edi, 2
push eax
lea eax, [edi + 2]
push eax
jmp 0x462148
push 0x20
push edi
call fcn.0065b757
mov esi, eax
xor ebx, ebx
mov ebp, ebx
pop ecx
pop ecx
test esi, esi
je 0x462164
movzx ebp, word [esi]
xor ecx, ecx
mov word [esi], cx
add esi, 2
push edi
call fcn.004618ab
test al, al
jne 0x462176
push 2
pop eax
jmp 0x462205
push 0x3c
lea eax, [esp + 0x14]
push ebx
push eax
call fcn.0065d010
add esp, 0xc
mov dword [esp + 0x20], edi
xor edi, edi
mov dword [esp + 0x10], 0x3c
lea eax, [esp + 0x10]
mov dword [esp + 0x24], esi
inc edi
mov dword [esp + 0x14], 0x540
push eax
mov dword [esp + 0x30], edi
call dword [sym.imp.SHELL32.dll_ShellExecuteExW]
cmp eax, edi
jne 0x4621fb
cmp dword [esp + 0x48], ebx
je 0x4621fb
push 0x493e0
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
test eax, eax
jne 0x4621e6
lea eax, [esp + 0x50]
push eax
push dword [esp + 0x4c]
call dword [sym.imp.KERNEL32.DLL_GetExitCodeProcess]
test eax, eax
je 0x4621f1
mov ebx, dword [esp + 0x50]
jmp 0x4621f1
mov ecx, 0x102
cmp eax, ecx
jne 0x4621f1
mov ebx, ecx
push dword [esp + 0x48]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
test esi, esi
je 0x462203
mov word [esi - 2], bp
mov eax, ebx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x3c
ret 4
Function at 0x4626bc
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, dword [ebp + 8]
xor esi, esi
lea ecx, [edi + 2]
mov ax, word [edi]
add edi, 2
cmp ax, si
jne 0x4626ca
sub edi, ecx
sar edi, 1
lea eax, [edi + 1]
test eax, eax
js 0x4626f0
lea eax, [edi*2 + 2]
call fcn.00642d90
mov esi, esp
jmp 0x462701
call dword [sym.imp.KERNEL32.DLL_GetLastError]
mov dword [0x7b4ee0], eax
mov dword [0], esi
lea eax, [edi*2 + 2]
mov dword [ebp - 4], esi
push eax
push dword [ebp + 8]
push esi
call fcn.0065afc0
add esp, 0xc
push 0x5c
pop edx
cmp word [esi], dx
jne 0x462736
cmp word [esi + 2], dx
jne 0x462736
cmp word [esi + 4], 0x3f
jne 0x46279b
cmp word [esi + 6], dx
jne 0x46279b
add esi, 8
cmp edi, 3
jl 0x462745
cmp word [esi + 2], 0x3a
jne 0x462745
add esi, 6
push edx
push esi
call fcn.0047cfaf
mov esi, eax
test esi, esi
je 0x46278e
mov edi, dword [ebp - 4]
xor eax, eax
push eax
push edi
call dword [sym.imp.KERNEL32.DLL_CreateDirectoryW]
test eax, eax
jne 0x462770
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 0xb7
jne 0x4627b6
push 0x5c
xor ecx, ecx
pop eax
mov word [esi - 2], ax
cmp word [esi], cx
je 0x46278e
push eax
lea eax, [esi + 2]
push eax
call fcn.0047cfaf
mov esi, eax
test esi, esi
jne 0x462755
mov al, 1
lea esp, [ebp - 0xc]
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
push 2
pop ecx
add esi, 4
movzx eax, word [esi]
add esi, 2
cmp ax, dx
jne 0x4627b1
sub ecx, 1
je 0x462745
test ax, ax
jne 0x4627a1
xor al, al
jmp 0x462790

Function at 0x462e34
Capabilities:
Get common file path

Disassembly:
mov eax, 0x69d947
call fcn.006426c4
push ecx
xor edx, edx
mov dword [ebp - 0x10], edx
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [esi + 0x14], 7
cmp dword [esi + 0x14], 8
mov dword [esi + 0x10], edx
jb 0x462e5d
mov eax, dword [esi]
jmp 0x462e5f
mov eax, esi
xor ecx, ecx
push ebx
mov word [eax], cx
mov ebx, dword [sym.imp.KERNEL32.DLL_GetCurrentDirectoryW]
push edx
push edx
mov dword [ebp - 4], edx
mov dword [ebp - 0x10], 1
call ebx
mov edi, eax
test edi, edi
je 0x462edc
push 0
push edi
mov ecx, esi
call fcn.0043ffbd
cmp dword [esi + 0x14], 8
jb 0x462e93
mov eax, dword [esi]
jmp 0x462e95
mov eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x462eb3
and dword [esi + 0x10], eax
cmp dword [esi + 0x14], 8
jb 0x462eaa
mov eax, dword [esi]
jmp 0x462eac
mov eax, esi
xor ecx, ecx
mov word [eax], cx
jmp 0x462edc
cmp dword [esi + 0x14], 8
jb 0x462ebd
mov ecx, dword [esi]
jmp 0x462ebf
mov ecx, esi
lea edx, [ecx + 2]
xor ebx, ebx
mov ax, word [ecx]
add ecx, 2
cmp ax, bx
jne 0x462ec4
sub ecx, edx
sar ecx, 1
push ebx
push ecx
mov ecx, esi
call fcn.0043ffbd
xor eax, eax
pop ebx
cmp dword [esi + 0x10], eax
jne 0x462ef9
mov edi, 0x6cf4ac
push edi
call fcn.00428864
pop ecx
push eax
push edi
mov ecx, esi
call fcn.00439135
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x463362
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
lea eax, [ebp - 0x410]
push ebx
push esi
push edi
mov ebx, 0x104
or esi, 0xffffffff
push ebx
push eax
push dword [ebp + 8]
mov edi, SysReAllocString
call fcn.0047240c
test al, al
je 0x46340a
push ebx
xor ebx, ebx
lea eax, [ebp - 0x208]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x410]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
test eax, eax
je 0x46340a
push str.FATE
lea eax, [ebp - 0x208]
push eax
call fcn.0047eaca
test al, al
jne 0x46340a
push str.FAT32
lea eax, [ebp - 0x208]
push eax
call fcn.0047eaca
test al, al
jne 0x463408
push 0x6cfd90
lea eax, [ebp - 0x208]
push eax
call fcn.0047eaca
test al, al
jne 0x463403
push str.FAT16
lea eax, [ebp - 0x208]
push eax
call fcn.0047eaca
test al, al
je 0x46340a
mov esi, 0x7ffa8000
mov edi, ebx
push dword [ebp + 8]
push edi
push esi
push str.GetMaxFileSize___returning__Ld_for___s_
call fcn.0040e6e4
add esp, 0x10
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x4637fe
Capabilities:
Create process on windows
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x438
lea eax, [ebp - 0x438]
push ebx
push esi
push 0x21c
push eax
call dword [sym.imp.KERNEL32.DLL_GetWindowsDirectoryW]
mov esi, eax
call fcn.00476efe
xor ebx, ebx
test al, al
je 0x46386a
mov ecx, str.Sysnative..explorer.exe
lea eax, [esi + esi]
sub eax, ecx
lea edx, [ebp - 0x438]
add edx, eax
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x46383a
push 1
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x438]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setle cl
test ecx, ecx
je 0x4638a8
mov ecx, 0x6cfee4
lea eax, [esi + esi]
sub eax, ecx
lea edx, [ebp - 0x438]
add edx, eax
movzx eax, word [ecx]
mov word [edx + ecx], ax
lea ecx, [ecx + 2]
test ax, ax
jne 0x46387c
push 1
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0x438]
push eax
push ebx
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
xor ecx, ecx
cmp eax, 0x20
setle cl
xor ecx, 1
pop esi
mov al, cl
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x463b16
Capabilities:
Get disk information

Disassembly:
mov eax, 0x6a9497
call fcn.006426c4
sub esp, 0x2c
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x38]
push 0x104
push 0
push eax
call fcn.00440c52
and dword [ebp - 4], 0
cmp dword [ebp - 0x24], 8
mov eax, dword [ebp - 0x38]
jae 0x463b46
lea eax, [ebp - 0x38]
push ebx
push 0xa
lea ecx, [ebp - 0x20]
push ecx
push eax
call fcn.0047240c
lea eax, [ebp - 0x20]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
lea ecx, [ebp - 0x38]
push 0
push 1
sete bl
call fcn.004285f6
mov ecx, dword [ebp - 0xc]
mov al, bl
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 4
Function at 0x463bf7
Capabilities:
Copy file
Delete file
Move file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
push str.ReplaceFileW
xor ebx, ebx
push 0x6c4060
mov esi, ebx
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
test edi, edi
je 0x463cb6
push dword [0x7b4650]
call fcn.0066c286
call fcn.0066c265
push eax
push dword [ebp + 0xc]
mov esi, 0x104
lea eax, [ebp - 0x208]
push str._s._u.tmp
push esi
push eax
call fcn.004651b2
push dword [ebp + 0xc]
lea eax, [ebp - 0x410]
push str._s.new
push esi
push eax
call fcn.004651b2
add esp, 0x28
lea eax, [ebp - 0x410]
push ebx
push eax
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push ebx
push ebx
push 2
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
push dword [ebp + 0xc]
call edi
mov esi, eax
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
test eax, eax
jne 0x463cb6
push 4
push ebx
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.KERNEL32.DLL_MoveFileExW]
pop edi
test esi, esi
pop esi
setne al
pop ebx
mov esp, ebp
pop ebp
ret 8

Function at 0x463f7b
Capabilities:
Copy file
Delete file

Disassembly:
sub esp, 0x210
push ebx
push ebp
push esi
push dword [esp + 0x220]
xor ebx, ebx
mov esi, ebx
call fcn.004618ab
movzx ebp, al
test al, al
mov eax, 0x6c4198
je 0x463fa5
mov eax, str..new
push eax
push dword [esp + 0x224]
lea eax, [esp + 0x1c]
push 0x6c4ee4
push 0x104
push eax
call fcn.004651b2
add esp, 0x14
lea eax, [esp + 0x14]
push 0x80
push 7
push eax
call fcn.00461def
mov dword [esp + 0xc], eax
cmp eax, 0xffffffff
jne 0x463fe2
xor al, al
jmp 0x464053
push dword [esp + 0x228]
push dword [esp + 0x228]
push eax
call fcn.004622b3
mov dword [esp + 0x10], eax
lea eax, [esp + 0xc]
push eax
call fcn.00461d7f
test ebp, ebp
je 0x464040
push dword [esp + 0x220]
lea eax, [esp + 0x18]
push eax
call fcn.00463bf7
movzx esi, al
test al, al
jne 0x464040
push ebx
lea eax, [esp + 0x18]
push eax
push dword [esp + 0x228]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
mov esi, eax
lea eax, [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
cmp dword [esp + 0x10], ebx
jne 0x464051
test esi, esi
jne 0x46404e
test ebp, ebp
jne 0x464051
xor ebx, ebx
inc ebx
mov al, bl
pop esi
pop ebp
pop ebx
add esp, 0x210
ret 0xc

Function at 0x4640f8
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
jne 0x464108
xor al, al
jmp 0x464164
mov eax, dword [esp + 8]
push ebx
push esi
push edi
lea esi, [eax + eax]
lea eax, [esi + 2]
push eax
push 0x2002
call dword [sym.imp.KERNEL32.DLL_GlobalAlloc]
mov edi, eax
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalLock]
push esi
push dword [esp + 0x14]
xor ecx, ecx
push eax
mov word [esi + eax], cx
call fcn.0065afc0
add esp, 0xc
push edi
call dword [sym.imp.KERNEL32.DLL_GlobalUnlock]
call dword [sym.imp.USER32.dll_EmptyClipboard]
push edi
push 0xd
call dword [sym.imp.USER32.dll_SetClipboardData]
test eax, eax
setne bl
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
mov al, bl
pop ebx
ret 8
Function at 0x4645d6
Capabilities:
Get hostname

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
and dword [ebp - 8], 0
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x28]
mov dword [ebp - 4], 0x10
push eax
call dword [sym.imp.KERNEL32.DLL_GetComputerNameW]
test eax, eax
jne 0x464617
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
push str.Cant_get_computer_name____d__d
call fcn.0047d579
add esp, 0xc
push 0x6cff20
jmp 0x46461b
lea eax, [ebp - 0x28]
push eax
mov ecx, dword [ebp + 8]
call fcn.00429d77
mov eax, dword [ebp + 8]
mov esp, ebp
pop ebp
ret 4

Function at 0x464b7b
Capabilities:
Check http status code

Disassembly:
mov eax, 0x69ef92
call fcn.006426c4
sub esp, 0x44
push ebx
push esi
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], 4
push eax
lea eax, [ebp - 0x10]
mov esi, ecx
push eax
lea eax, [ebp - 0x14]
xor ebx, ebx
push eax
push 0x20000013
push dword [esi]
mov dword [ebp - 0x18], ebx
call dword [0x7af708]
test eax, eax
je 0x464bf5
cmp dword [ebp - 0x14], 0xc8
je 0x464bf5
push dword [ebp - 0x14]
lea eax, [ebp - 0x50]
push str.HTTP_Reply__d
push eax
call fcn.00465d7f
add esp, 0xc
cmp dword [eax + 0x14], 8
mov dword [ebp - 4], ebx
jb 0x464bdd
mov eax, dword [eax]
push eax
mov ecx, esi
call fcn.00464b46
push ebx
push 1
lea ecx, [ebp - 0x50]
call fcn.004285f6
jmp 0x464cb6
push edi
xor eax, eax
mov byte [ebp - 0x38], bl
lea edi, [ebp - 0x37]
mov dword [ebp - 0x10], 0x14
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x38]
push eax
push 0x1d
push dword [esi]
call dword [0x7af708]
test eax, eax
je 0x464c3e
lea eax, [ebp - 0x38]
push str.gzip
push eax
call fcn.0066c2d3
pop ecx
pop ecx
test eax, eax
jne 0x464c3e
or byte [esi + 0x25], 1
lea eax, [ebp - 0x1c]
mov dword [ebp - 0x10], 0x20
push eax
lea eax, [ebp - 0x10]
mov dword [ebp - 0x1c], ebx
push eax
lea eax, [esi + 5]
push eax
push 1
push dword [esi]
call dword [0x7af708]
push ebx
lea eax, [ebp - 0x20]
mov dword [ebp - 0x20], 4
push eax
lea eax, [ebp - 0x24]
push eax
push 0x20000005
push dword [esi]
call dword [0x7af708]
test eax, eax
je 0x464c88
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x74], eax
mov dword [esi + 0x78], ebx
push 0xa
pop ecx
xor eax, eax
lea edi, [esi + 0x2c]
rep stosd dword es:[edi], eax
mov edi, 0x2000
mov dword [esi + 0x2c], 0x28
push edi
call fcn.00460621
mov ecx, esi
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], edi
mov byte [esi + 4], 1
call fcn.00464d09
pop edi
mov ecx, dword [ebp - 0xc]
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret
Function at 0x46b922
Capabilities:
Create thread

Disassembly:
mov eax, 0x6a2e58
call fcn.006426c4
sub esp, 0x20
push ebx
xor ebx, ebx
push esi
mov dword [ebp - 0x14], ebx
and dword [ebp - 0x10], ebx
push edi
mov edi, dword [ebp + 0x20]
test edi, edi
jne 0x46b944
lea edi, [ebp - 0x10]
push 0x20
call fcn.00642424
mov esi, eax
pop ecx
mov dword [ebp + 0x20], esi
and dword [ebp - 4], 0
test esi, esi
je 0x46b987
push dword [ebp + 8]
lea ecx, [ebp - 0x2c]
call fcn.0040f32f
mov eax, dword [ebp + 0x14]
lea ecx, [esi + 8]
mov dword [esi], eax
xor ebx, ebx
mov eax, dword [ebp + 0x18]
inc ebx
mov dword [esi + 4], eax
lea eax, [ebp - 0x2c]
push eax
mov byte [ebp - 4], 1
mov dword [ebp - 0x14], ebx
call fcn.0040f8db
jmp 0x46b989
xor esi, esi
test bl, 1
je 0x46b99a
push 0
push 1
lea ecx, [ebp - 0x2c]
call fcn.0040f95f
push edi
push dword [ebp + 0x1c]
push esi
push 0x46bcc9
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateThread]
mov edi, eax
test edi, edi
jne 0x46b9c3
test esi, esi
je 0x46b9c3
push 1
mov ecx, esi
call fcn.0046b8fc
mov ecx, dword [ebp - 0xc]
mov eax, edi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
mov esp, ebp
pop ebp
ret 0x1c

Function at 0x46d46b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
push esi
mov esi, dword [0x788c4c]
cmp esi, 0x270
jl 0x46d530
xor esi, esi
push ebx
mov edx, esi
mov ebx, SysReAllocString
mov ecx, dword [edx*4 + 0x7afa64]
xor ecx, dword [edx*4 + 0x7afa60]
and ecx, ebx
xor ecx, dword [edx*4 + 0x7afa60]
mov eax, ecx
shr ecx, 1
and eax, 1
xor ecx, dword [eax*4 + 0x788e50]
xor ecx, dword [edx*4 + 0x7b0094]
mov dword [edx*4 + 0x7afa60], ecx
inc edx
cmp edx, 0xe3
jl 0x46d488
cmp edx, 0x26f
jge 0x46d501
push edi
lea edi, [edx*4 + 0x7afa60]
mov ecx, dword [edi]
xor ecx, dword [edi + 4]
and ecx, ebx
xor ecx, dword [edi]
mov eax, ecx
shr ecx, 1
and eax, 1
mov eax, dword [eax*4 + 0x788e50]
xor eax, dword [edi - 0x38c]
xor eax, ecx
mov dword [edi], eax
add edi, 4
cmp edi, 0x7b041c
jl 0x46d4d4
pop edi
mov ecx, dword [0x7afa60]
xor ecx, dword [0x7b041c]
and ecx, ebx
xor ecx, dword [0x7b041c]
mov eax, ecx
shr ecx, 1
and eax, 1
pop ebx
xor ecx, dword [eax*4 + 0x788e50]
xor ecx, dword [0x7b0090]
mov dword [0x7b041c], ecx
mov ecx, dword [esi*4 + 0x7afa60]
mov eax, ecx
shr eax, 0xb
inc esi
xor ecx, eax
mov dword [0x788c4c], esi
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
pop esi
ret

Function at 0x46d6c7
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [esp + 4]
xor edx, edx
mov dword [0x7afa60], eax
inc edx
mov ecx, 0x7afa60
mov eax, dword [ecx]
shr eax, 0x1e
xor eax, dword [ecx]
imul eax, eax, 0x6c078965
add eax, edx
inc edx
mov dword [ecx + 4], eax
add ecx, 4
cmp ecx, 0x7b041c
jl 0x46d6d8
mov dword [0x788c4c], edx
ret 4
Function at 0x46e753
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
mov ecx, eax
cmp ecx, 0xffffffff
je 0x46e789
xor eax, eax
cmp dword [ebp + 0x14], eax
setne al
cmp dword [ebp + 0x18], 0
je 0x46e777
or eax, 2
test ecx, eax
je 0x46e789
not eax
and eax, ecx
push eax
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
pop ebp
ret 0x14

Function at 0x46ea78
Capabilities:
Copy file

Disassembly:
push ebp
sub esp, 0x54
mov eax, 0x6a94a9
call fcn.006426c4
sub esp, 0x74
push ebx
push esi
mov esi, dword [ebp + 0x64]
push edi
push dword [ebp + 0x6c]
mov edi, dword [ebp + 0x68]
push esi
push dword [ebp + 0x60]
and dword [edi], 0
call fcn.004638b5
mov ebx, eax
test ebx, ebx
jne 0x46eac2
push dword [ebp + 0x60]
call fcn.004618ab
xor ecx, ecx
test al, al
setne cl
add ecx, 2
xor eax, eax
mov dword [edi], ecx
jmp 0x46ebf4
cmp byte [ebx], 0x64
jne 0x46ebf2
cmp dword [esi], 0x39
jb 0x46ebf2
push 0x11
push str.d10:.fileguard40:
push ebx
call fcn.0065b887
add esp, 0xc
test eax, eax
je 0x46eb00
push 0x11
push str.d10:file_guard40:
push ebx
call fcn.0065b887
add esp, 0xc
test eax, eax
jne 0x46ebf2
push 0xa
pop ecx
push 1
push 0x28
lea eax, [ebp]
push eax
lea eax, [ebp + 0x2c]
lea esi, [ebx + 0x11]
lea edi, [ebp]
rep movsd dword es:[edi], dword [esi]
push eax
mov byte [ebp + 0x28], 0
call fcn.00471aeb
test al, al
jne 0x46eb2b
mov eax, str.malformed_guard
jmp 0x46eba2
mov esi, dword [ebp + 0x64]
add dword [esi], 0xffffffc8
mov eax, dword [esi]
dec eax
push eax
lea eax, [ebx + 0x39]
push eax
lea eax, [ebx + 1]
push eax
call fcn.0065a600
mov eax, dword [esi]
lea ecx, [ebp - 0x80]
add esp, 0xc
mov byte [ebx + eax], 0
call fcn.0046ac9f
push dword [esi]
and dword [ebp - 4], 0
lea ecx, [ebp - 0x80]
push ebx
call fcn.0046ac3b
mov edx, eax
lea esi, [ebp + 0x2c]
xor ecx, ecx
mov eax, dword [esi + ecx*4]
cmp eax, dword [edx + ecx*4]
jne 0x46eb91
inc ecx
cmp ecx, 5
jne 0x46eb69
push dword [ebp + 0x60]
push str.File_passed_integrity_check:__s
call fcn.0040e6e4
add esp, 8
lea ecx, [ebp - 0x80]
call fcn.0040e6e4
jmp 0x46ebf2
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x80]
call fcn.0040e6e4
mov eax, str.hash_doesnt_match
push dword [ebp + 0x60]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.0047d5f0
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.0047d5f0
add esp, 0x10
lea eax, [ebp + 0x40]
push 0x6d1ce0
push dword [ebp + 0x60]
push eax
call fcn.0046ede8
cmp dword [ebp + 0x54], 8
mov eax, dword [ebp + 0x40]
jae 0x46ebda
lea eax, [ebp + 0x40]
push 0
push eax
push dword [ebp + 0x60]
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
push 0
push 1
lea ecx, [ebp + 0x40]
call fcn.004285f6
mov eax, ebx
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
lea esp, [ebp + 0x58]
pop ebp
ret 0x10
Function at 0x470a33
Capabilities:
Delete file
Get file attributes
Set file attributes

Disassembly:
push esi
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
test esi, esi
jne 0x470a73
call dword [sym.imp.KERNEL32.DLL_GetLastError]
cmp eax, 5
jne 0x470a73
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor eax, 1
push eax
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
mov esi, eax
mov eax, esi
pop esi
ret 4