joyce8/EMBER2024-capa huggingface dataset:
Function at 0x446790
Capabilities:
Create directory

Disassembly:
cmp dword [0x5482bc], 0
jne 0x4467e8
push 0x28
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x4467b3
mov ecx, eax
call fcn.00446766
mov dword [0x5482bc], eax
jmp 0x4467ba
and dword [0x5482bc], 0
mov ecx, str.dlimagecache_
call fcn.0048880a
mov ecx, dword [0x5482bc]
push eax
add ecx, 0x24
call fcn.0048e82b
mov ecx, dword [0x5482bc]
add ecx, 0x24
call fcn.0048e806
mov ecx, eax
jmp fcn.004a49fb
mov al, 1
ret

Function at 0x4467eb
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push ebx
mov ecx, edx
mov dword [ebp - 0x10], edx
call fcn.0048e740
mov eax, dword [ebp + 8]
mov byte [eax], bl
mov ecx, dword [0x54b960]
mov dword [ebp - 8], ebx
mov byte [ebp - 1], bl
mov byte [ebp - 2], bl
cmp ecx, ebx
je 0x4468a2
mov edx, 0x4f19fc
call fcn.0048d43d
test al, al
je 0x446834
mov byte [ebp - 2], 1
mov byte [ebp - 1], 1
mov ecx, dword [0x54b960]
cmp ecx, ebx
je 0x4468a2
cmp byte [ebp - 2], bl
je 0x446848
cmp byte [ebp - 1], bl
je 0x4468a2
push edi
call fcn.004223a5
mov esi, dword [sym.imp.KERNEL32.DLL_ExpandEnvironmentStringsA]
push ebx
push ebx
push eax
mov dword [ebp - 8], eax
call esi
lea edi, [eax + 1]
mov ecx, edi
call fcn.0046b19f
push edi
push eax
push dword [ebp - 8]
mov dword [ebp - 0xc], eax
call esi
push dword [ebp - 0xc]
mov ecx, dword [ebp - 0x10]
call fcn.0048e513
pop edi
cmp dword [0x54b960], ebx
je 0x44688e
cmp byte [ebp - 1], bl
je 0x44688e
cmp byte [ebp - 2], bl
jne 0x446891
xor ebx, ebx
inc ebx
mov eax, dword [ebp + 8]
lea ecx, [ebp - 8]
mov byte [eax], bl
call fcn.0048e540
mov al, 1
jmp 0x4468fa
mov eax, dword [esi + 0x20]
cmp eax, ebx
jne 0x4468ac
mov eax, dword [esi + 0x1c]
mov ecx, eax
call fcn.004a1fd0
mov ecx, 0x4f80a4
mov edx, 0x4fa2cc
cmp eax, ebx
jne 0x4468c5
mov edx, ecx
mov eax, ecx
push edx
push eax
push dword [0x55120c]
call fcn.0048d3ca
mov esi, eax
lea eax, [ebp - 0x30]
push esi
push eax
mov dword [ebp - 0x30], 1
mov dword [ebp - 0x2c], 0x30
call fcn.004693e3
add esp, 0x14
mov dl, 1
mov ecx, esi
call fcn.0046b197
xor al, al
pop esi
pop ebx
leave
ret 4
Function at 0x45e148
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x414
push esi
mov esi, eax
push 0x208
lea eax, [ebp - 0x414]
push eax
push 0x4fc1bc
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, reloc.WS2_32.dll_accept
call fcn.004462b3
test al, al
je 0x45e1f7
test esi, esi
je 0x45e1f5
mov eax, esi
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45e181
sub eax, edx
sar eax, 1
je 0x45e1f5
cmp dword [ebp + 8], 0
je 0x45e1c0
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45e19d
sub eax, edx
sar eax, 1
je 0x45e1c0
push dword [ebp + 8]
push esi
push 0x4f1b50
call fcn.0048d3ca
add esp, 0xc
jmp 0x45e1cd
push esi
push 0x4f715c
call fcn.0048d3ca
pop ecx
pop ecx
mov esi, eax
push ebx
lea eax, [ebp - 0x414]
push esi
push eax
call sub.MSVCRT.dll__wcsicmp
mov ebx, eax
neg ebx
pop ecx
pop ecx
sbb bl, bl
mov dl, 1
mov ecx, esi
inc bl
call fcn.0046b197
mov al, bl
pop ebx
jmp 0x45e1f7
mov al, 1
pop esi
leave
ret 4

Function at 0x45e1fc
Capabilities:
Persist via run registry key

Disassembly:
push ebp
mov ebp, esp
push ecx
test edi, edi
jne 0x45e21a
push 0x4fc1bc
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, reloc.WS2_32.dll_accept
call fcn.004464b0
jmp 0x45e27e
cmp dword [ebp + 8], 0
push esi
je 0x45e24a
mov eax, dword [ebp + 8]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45e227
sub eax, edx
sar eax, 1
je 0x45e24a
push dword [ebp + 8]
push edi
push 0x4f1b50
call fcn.0048d3ca
add esp, 0xc
jmp 0x45e257
push edi
push 0x4f715c
call fcn.0048d3ca
pop ecx
pop ecx
mov esi, eax
test esi, esi
jne 0x45e25f
mov eax, edi
push eax
push 0x4fc1bc
mov edx, str.SoftwareMicrosoftWindowsCurrentVersionRun
mov ecx, reloc.WS2_32.dll_accept
call fcn.00446436
mov dl, 1
mov ecx, esi
call fcn.0046b197
pop esi
leave
ret 4
Function at 0x45e3c6
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
push ebx
xor ebx, ebx
mov dword [ebp - 8], ebx
mov byte [ebp - 2], 1
mov byte [ebp - 1], bl
call fcn.00472075
test eax, eax
jge 0x45e3ef
call fcn.004720a2
jmp 0x45e51a
push esi
lea eax, [ebp - 8]
push eax
push 0x528c78
push 1
push ebx
mov esi, 0x528c68
push esi
call dword [0x549218]
test eax, eax
jl 0x45e411
cmp dword [ebp - 8], ebx
jne 0x45e438
lea eax, [ebp - 8]
push eax
push 0x528c58
push 1
push ebx
push esi
mov byte [ebp - 2], bl
call dword [0x549218]
test eax, eax
jl 0x45e514
cmp dword [ebp - 8], ebx
je 0x45e514
mov eax, dword [ebp - 8]
lea ecx, [ebp - 0xc]
push ecx
push 0x4fe200
push dword [ebp - 8]
mov dword [ebp - 0xc], ebx
mov eax, dword [eax]
call dword [eax]
test eax, eax
jl 0x45e4ef
mov eax, dword [ebp - 0xc]
cmp eax, ebx
je 0x45e4ef
mov ecx, dword [ebp + 0xc]
mov esi, dword [eax]
push ebx
call fcn.0048c00a
push eax
push dword [ebp - 0xc]
call dword [esi + 0x14]
mov esi, eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp esi, ebx
jl 0x45e4ef
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 4
cmp byte [ebp - 2], bl
je 0x45e4b1
lea edx, [ebp - 0x568]
push edx
push 0x104
lea edx, [ebp - 0x318]
push edx
push eax
call dword [ecx + 0xc]
test eax, eax
jl 0x45e4ec
lea eax, [ebp - 0x318]
jmp 0x45e4d9
lea edx, [ebp - 0x250]
push edx
push 0x104
lea edx, [ebp - 0x110]
push edx
push eax
call dword [ecx + 0xc]
lea ecx, [ebp - 0x110]
mov esi, eax
call fcn.0048bfe7
cmp esi, ebx
jl 0x45e4ec
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll__wcsicmp
pop ecx
pop ecx
mov byte [ebp - 1], 1
test eax, eax
je 0x45e4ef
mov byte [ebp - 1], bl
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
cmp byte [ebp - 1], bl
je 0x45e514
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_DeleteFileW]
push ebx
push dword [ebp + 0xc]
push 5
push 4
call dword [sym.imp.SHELL32.dll_SHChangeNotify]
call fcn.004720a2
pop esi
pop ebx
leave
ret 8

Function at 0x45e5c2
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push esi
mov esi, 0x104
push esi
lea eax, [ebp - 0x410]
push eax
push 0
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
lea eax, [ebp - 0x208]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
test eax, eax
je 0x45e637
push esi
lea eax, [ebp - 0x208]
push eax
push eax
call dword [sym.imp.KERNEL32.DLL_GetLongPathNameW]
lea eax, [ebp - 0x208]
lea edx, [eax + 2]
mov cx, word [eax]
inc eax
inc eax
test cx, cx
jne 0x45e60b
sub eax, edx
sar eax, 1
cmp eax, 0xa
jbe 0x45e637
lea edx, [ebp - 0x208]
lea ecx, [ebp - 0x410]
call fcn.0048d5a5
test al, al
je 0x45e637
mov al, 1
jmp 0x45e639
xor al, al
pop esi
leave
ret
Function at 0x45e63c
Capabilities:
Delete directory
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push esi
push edi
mov edi, ecx
push edi
lea eax, [ebp - 8]
push 0x4f2218
push eax
call fcn.0048ee25
add esp, 0xc
lea eax, [ebp - 0x258]
push eax
lea ecx, [ebp - 8]
call fcn.0048e806
push eax
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov esi, eax
cmp esi, 0xffffffff
je 0x45e70b
lea eax, [ebp - 0x22c]
push eax
push edi
lea eax, [ebp - 4]
push 0x4f3d10
push eax
call fcn.0048ee25
add esp, 0x10
test byte [ebp - 0x258], 0x10
jne 0x45e6af
lea ecx, [ebp - 4]
call fcn.0048e806
mov ecx, eax
call fcn.00422576
jmp 0x45e6e6
mov ecx, 0x4f2214
lea eax, [ebp - 0x22c]
call fcn.00493e5a
test eax, eax
je 0x45e6e6
mov ecx, 0x4f220c
lea eax, [ebp - 0x22c]
call fcn.00493e5a
test eax, eax
je 0x45e6e6
lea ecx, [ebp - 4]
call fcn.0048e806
mov ecx, eax
call fcn.0045e63c
lea ecx, [ebp - 4]
call fcn.0048e50a
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x45e67c
push esi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push edi
call dword [sym.imp.KERNEL32.DLL_RemoveDirectoryW]
lea ecx, [ebp - 8]
call fcn.0048e50a
pop edi
pop esi
leave
ret

Function at 0x45e770
Capabilities:
Get common file path
Get program files directory

Disassembly:
push 0
push 0x26
push esi
push 0
call dword [sym.imp.SHELL32.dll_SHGetSpecialFolderPathW]
test eax, eax
je 0x45e7d3
mov eax, esi
lea ecx, [eax + 2]
mov dx, word [eax]
inc eax
inc eax
test dx, dx
jne 0x45e786
sub eax, ecx
sar eax, 1
lea ecx, [eax + eax]
lea eax, [ecx + esi]
je 0x45e7b9
lea edx, [eax - 2]
cmp word [edx], 0x5c
jne 0x45e7b9
mov eax, edx
xor edx, edx
mov word [eax], dx
jmp 0x45e7b9
lea edx, [eax - 2]
cmp word [edx], 0x5c
je 0x45e7bd
mov eax, edx
cmp eax, esi
jne 0x45e7ae
sub ecx, eax
lea ecx, [ecx + esi + 2]
sar ecx, 1
add ecx, ecx
push ecx
push eax
push esi
call sub.MSVCRT.dll_memmove
add esp, 0xc
ret
push esi
mov eax, str.Program_Files
call fcn.00485161
ret

Function at 0x45e7df
Capabilities:
Terminate process

Disassembly:
push ecx
push ecx
push ebx
push ebp
mov ebp, dword [sym.imp.USER32.dll_FindWindowW]
push esi
push edi
xor ebx, ebx
jmp 0x45e83f
lea eax, [esp + 0x14]
push eax
push 0x7530
push 1
push ebx
push ebx
push 0x16
push esi
call dword [sym.imp.USER32.dll_SendMessageTimeoutA]
test eax, eax
jne 0x45e83f
lea eax, [esp + 0x10]
push eax
push esi
call dword [sym.imp.USER32.dll_GetWindowThreadProcessId]
push dword [esp + 0x10]
push ebx
push 1
call dword [sym.imp.KERNEL32.DLL_OpenProcess]
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.DLL_TerminateProcess]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
cmp esi, ebx
je 0x45e856
cmp edi, ebx
je 0x45e856
push ebx
push 0x537818
call ebp
mov esi, eax
cmp esi, ebx
jne 0x45e7ef
mov al, 1
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret
push edi
push esi
push str.TerminateSessionClientInstances_failed__hp:0x_X_result:_d_n
call fcn.0042ebe6
add esp, 0xc
xor al, al
jmp 0x45e84f
Function at 0x45f1f2
Capabilities:
Check os version

Disassembly:
push ebx
push esi
push edi
mov esi, ecx
call dword [sym.imp.KERNEL32.DLL_GetVersion]
push 0x11c
lea edi, [esi + 4]
push 0
lea ebx, [esi + 0x124]
and dword [ebx], 0
push edi
mov dword [esi], eax
mov byte [esi + 0x120], 0
call sub.MSVCRT.dll_memset
movzx eax, byte [esi]
add esp, 0xc
cmp eax, 5
jb 0x45f242
push edi
mov dword [edi], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
setne al
mov byte [esi + 0x120], al
movzx eax, byte [esi]
cmp eax, 6
jb 0x45f26d
mov edx, str.GetProductInfo
mov ecx, 0x4f55bc
call fcn.004a3dac
test eax, eax
je 0x45f26d
movzx ecx, byte [esi + 1]
push ebx
push 0
push 0
push ecx
movzx ecx, byte [esi]
push ecx
call eax
pop edi
mov eax, esi
pop esi
pop ebx
ret
Function at 0x472870
Capabilities:
Enumerate files on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x258
push ebx
mov dword [ebp - 4], edx
mov edx, dword [ebp + 8]
push esi
xor ebx, ebx
push edi
mov dword [ebp - 8], ecx
test edx, edx
jne 0x472890
mov edx, 0x50434c
mov ecx, dword [ebp - 4]
call fcn.004a307f
mov esi, eax
lea eax, [ebp - 0x258]
push eax
push esi
call dword [sym.imp.KERNEL32.DLL_FindFirstFileW]
mov dl, 1
mov ecx, esi
mov edi, eax
call fcn.0046b197
cmp edi, 0xffffffff
jne 0x4728bc
xor eax, eax
jmp 0x472904
lea ecx, [ebp - 0x22c]
call fcn.00422199
mov ecx, dword [ebp - 8]
push 4
mov esi, eax
call fcn.0048eeeb
test eax, eax
je 0x4728d9
mov dword [eax], esi
lea eax, [ebp - 0x258]
push eax
push edi
inc ebx
call dword [sym.imp.KERNEL32.DLL_FindNextFileW]
test eax, eax
jne 0x4728bc
push edi
call dword [sym.imp.KERNEL32.DLL_FindClose]
push dword [ebp - 4]
push dword [ebp + 8]
push ebx
call fcn.0042ebe6
add esp, 0xc
mov eax, ebx
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x472935
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x148
push ebx
push esi
push edi
mov edi, ecx
lea ebx, [edi + 4]
mov ecx, ebx
mov dword [edi], 0x504354
call fcn.0044502c
lea ecx, [edi + 8]
call fcn.0044502c
lea ecx, [edi + 0xc]
call fcn.0044502c
lea ecx, [edi + 0x10]
call fcn.0044502c
lea eax, [ebp - 0xd0]
push eax
mov dword [ebp - 0xd0], 0x11c
call dword [sym.imp.KERNEL32.DLL_GetVersionExW]
test eax, eax
je 0x472a48
push dword [ebp - 0xc4]
lea eax, [ebp + 0x70]
push dword [ebp - 0xc8]
push dword [ebp - 0xcc]
push str._d._d._d
push eax
call fcn.0048ee07
movzx eax, byte [ebp + 0x4a]
add esp, 0x14
dec eax
mov esi, str.unknown
je 0x4729d8
dec eax
je 0x4729cf
dec eax
je 0x4729c6
mov dword [ebp + 0x74], esi
jmp 0x4729df
mov dword [ebp + 0x74], str.server
jmp 0x4729df
mov dword [ebp + 0x74], str.domaincontroller
jmp 0x4729df
mov dword [ebp + 0x74], str.workstation
push str.Windows
mov ecx, ebx
call fcn.0048e740
push dword [ebp + 0x74]
lea ecx, [edi + 8]
call fcn.0048e740
push dword [ebp + 0x70]
lea ecx, [edi + 0xc]
call fcn.0048e740
lea eax, [ebp + 0x4c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetSystemInfo]
movzx eax, word [ebp + 0x4c]
test eax, eax
je 0x472a31
cmp eax, 6
je 0x472a2a
lea ecx, [edi + 0x10]
cmp eax, 9
je 0x472a23
push esi
jmp 0x472a39
push str.amd64
jmp 0x472a39
push str.itanium
jmp 0x472a36
push 0x504358
lea ecx, [edi + 0x10]
call fcn.0048e740
lea ecx, [ebp + 0x70]
call fcn.0048e50a
jmp 0x472a7f
call dword [sym.imp.KERNEL32.DLL_GetLastError]
push eax
call fcn.0042ebe6
add esp, 4
mov esi, str.unknown
push esi
mov ecx, ebx
call fcn.0048e740
push esi
lea ecx, [edi + 8]
call fcn.0048e740
push esi
lea ecx, [edi + 0xc]
call fcn.0048e740
push esi
lea ecx, [edi + 0x10]
call fcn.0048e740
lea ecx, [edi + 0x10]
call fcn.0048e720
push eax
lea ecx, [edi + 0xc]
call fcn.0048e720
push eax
lea ecx, [edi + 8]
call fcn.0048e720
push eax
mov ecx, ebx
call fcn.0048e720
push eax
call fcn.0042ebe6
add esp, 0x10
mov eax, edi
pop edi
pop esi
pop ebx
add ebp, 0x78
leave
ret
Function at 0x4a0a74
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x420
push esi
mov esi, ecx
cmp dword [esi + 0x34], 2
jne 0x4a0a8e
xor eax, eax
inc eax
jmp 0x4a0b75
push ebx
movzx ebx, word [ebp + 8]
push ebx
lea eax, [ebp - 4]
push 0x50cd08
push eax
call fcn.0048ee25
push ebx
lea eax, [ebp + 8]
push str._c:_
push eax
call fcn.0048ee25
add esp, 0x18
mov eax, 0x104
push eax
lea ecx, [ebp - 0x420]
push ecx
lea ecx, [ebp - 0x10]
push ecx
lea ecx, [ebp - 8]
push ecx
lea ecx, [ebp - 0xc]
push ecx
push eax
lea eax, [ebp - 0x218]
push eax
lea ecx, [ebp + 8]
call fcn.0048e806
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeInformationW]
pop ebx
test eax, eax
je 0x4a0b5d
lea eax, [ebp - 0x218]
push eax
lea ecx, [esi + 0x1c]
call fcn.0048e82b
mov ecx, dword [ebp + 0xc]
call fcn.0048e806
push eax
lea ecx, [esi + 0x20]
call fcn.0048e82b
mov ecx, dword [ebp + 0x10]
call fcn.0048e806
push eax
lea ecx, [esi + 0x24]
call fcn.0048e82b
lea ecx, [ebp - 4]
call fcn.0048e806
push eax
lea ecx, [esi + 0x28]
call fcn.0048e82b
mov ecx, esi
mov dword [esi + 0x34], 2
call fcn.004a0a01
push 7
push esi
call fcn.004336a1
mov ecx, eax
call fcn.004335af
lea ecx, [ebp + 8]
call fcn.0048e50a
lea ecx, [ebp - 4]
call fcn.0048e50a
jmp 0x4a0a86
call dword [sym.imp.KERNEL32.DLL_GetLastError]
lea ecx, [ebp + 8]
call fcn.0048e50a
lea ecx, [ebp - 4]
call fcn.0048e50a
xor eax, eax
pop esi
leave
ret 0xc

Function at 0x4a0bce
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push ebx
push esi
push 0x41
pop eax
push 0x3a
mov word [ebp - 8], ax
pop eax
mov word [ebp - 6], ax
push 0x5c
pop eax
mov word [ebp - 4], ax
xor eax, eax
mov word [ebp - 2], ax
call dword [sym.imp.KERNEL32.DLL_GetLogicalDrives]
mov ebx, eax
xor esi, esi
test ebx, ebx
jne 0x4a0c12
lea ecx, [ebp + 8]
call fcn.0048e50a
mov eax, esi
pop esi
pop ebx
leave
ret 8
test bl, 1
je 0x4a0c6e
lea eax, [esi + 0x41]
mov word [ebp - 8], ax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetDriveTypeW]
cmp eax, 2
jne 0x4a0c6e
push 0x104
lea eax, [ebp - 0x214]
push eax
lea eax, [ebp - 8]
push eax
call dword [sym.imp.KERNEL32.DLL_GetVolumeNameForVolumeMountPointW]
test eax, eax
je 0x4a0c6e
lea eax, [ebp - 0x214]
push eax
lea ecx, [ebp - 0xc]
call fcn.0048e7e6
lea eax, [ebp + 8]
push eax
lea ecx, [ebp - 0xc]
call fcn.0040389f
test al, al
jne 0x4a0c7a
lea ecx, [ebp - 0xc]
call fcn.0048e50a
shr ebx, 1
inc esi
cmp esi, 0x1a
jl 0x4a0c12
xor esi, esi
jmp 0x4a0c02
mov cx, word [ebp - 8]
mov eax, dword [ebp + 0xc]
mov word [eax], cx
lea ecx, [ebp - 0xc]
call fcn.0048e50a
xor esi, esi
inc esi
jmp 0x4a0c02
Function at 0x4a1bbc
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
mov dword [0x549e50], ecx
xor ecx, ecx
inc ecx
mov eax, 0x549e50
push esi
mov edx, dword [eax]
mov esi, edx
shr esi, 0x1e
xor esi, edx
imul esi, esi, 0x6c078965
add esi, ecx
mov dword [eax + 4], esi
add eax, 4
inc ecx
cmp eax, 0x54a80c
jl 0x4a1bcb
mov dword [0x537570], ecx
pop esi
ret

Function at 0x4a1caf
Capabilities:
Generate random numbers using a mersenne twister

Disassembly:
mov eax, dword [0x537570]
cmp eax, 0x270
jl 0x4a1d6e
push esi
push edi
xor edx, edx
mov esi, SysReAllocString
mov ecx, edx
shl ecx, 2
mov eax, dword [ecx + 0x549e54]
xor eax, dword [ecx + 0x549e50]
and eax, esi
xor eax, dword [ecx + 0x549e50]
mov edi, eax
shr eax, 1
and edi, 1
xor eax, dword [edi*4 + 0x537574]
xor eax, dword [ecx + 0x54a484]
inc edx
cmp edx, 0xe3
mov dword [ecx + 0x549e50], eax
jl 0x4a1cc8
cmp edx, 0x26f
jge 0x4a1d40
lea ecx, [edx*4 + 0x549e50]
mov eax, dword [ecx]
lea edx, [ecx + 4]
xor eax, dword [edx]
and eax, esi
xor eax, dword [ecx]
mov edi, eax
and edi, 1
mov edi, dword [edi*4 + 0x537574]
xor edi, dword [edx - 0x390]
shr eax, 1
xor edi, eax
mov dword [ecx], edi
mov ecx, edx
cmp ecx, 0x54a80c
jl 0x4a1d13
mov ecx, dword [0x54a80c]
mov eax, dword [0x549e50]
xor eax, ecx
and eax, esi
xor eax, ecx
mov ecx, eax
shr eax, 1
and ecx, 1
xor eax, dword [ecx*4 + 0x537574]
pop edi
xor eax, dword [0x54a480]
pop esi
mov dword [0x54a80c], eax
xor eax, eax
mov ecx, dword [eax*4 + 0x549e50]
inc eax
mov dword [0x537570], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
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
ret

Function at 0x4a2400
Capabilities:
Create process on windows

Disassembly:
push 5
xor eax, eax
push eax
push eax
push ecx
push eax
push eax
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
ret
Function at 0x4a2c8e
Capabilities:
Copy file

Disassembly:
push ebp
lea ebp, [esp - 0x70]
sub esp, 0xbc
mov eax, dword [ebp + 0x78]
and dword [eax], 0
push ebx
push esi
push dword [ebp + 0x7c]
mov esi, edx
mov dword [ebp + 0x68], esi
mov dword [ebp + 0x6c], ecx
call fcn.004a489b
mov ebx, eax
test ebx, ebx
je 0x4a2dba
cmp byte [ebx], 0x64
push edi
jne 0x4a2db7
cmp dword [esi], 0x39
jb 0x4a2db7
push 0x11
pop ecx
mov edi, str.d10:.fileguard40:
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
je 0x4a2cf2
push 0x11
pop ecx
mov edi, str.d10:file_guard40:
mov esi, ebx
xor eax, eax
repe cmpsb byte [esi], byte es:[edi]
jne 0x4a2db7
push 0xa
pop ecx
lea esi, [ebx + 0x11]
lea edi, [ebp + 0x28]
rep movsd dword es:[edi], dword [esi]
push 1
push 0x28
lea edx, [ebp + 0x28]
lea ecx, [ebp + 0x54]
mov byte [ebp + 0x50], 0
call fcn.004224f8
test al, al
jne 0x4a2d1b
mov eax, str.malformed_guard
jmp 0x4a2d78
mov esi, dword [ebp + 0x68]
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 sub.MSVCRT.dll_memmove
add esp, 0xc
lea ecx, [ebp - 0x4c]
call fcn.004e64ac
push dword [esi]
lea ecx, [ebp - 0x4c]
push ebx
call fcn.004e7793
push 5
mov edi, eax
pop ecx
lea esi, [ebp + 0x54]
xor eax, eax
repe cmpsd dword [esi], dword es:[edi]
jne 0x4a2d6b
push dword [ebp + 0x6c]
call fcn.0042ebe6
add esp, 4
lea ecx, [ebp - 0x4c]
call fcn.004e64d1
jmp 0x4a2db7
lea ecx, [ebp - 0x4c]
call fcn.004e64d1
mov eax, str.hash_doesnt_match
push dword [ebp + 0x6c]
push eax
push str.Warning:_file_integrity_check_failed___s_:__s
call fcn.0041ff68
push str.Ignore_this_warning_if_you_switched_to_1.6.1_or_older_and_back
call fcn.0041ff68
mov ecx, dword [ebp + 0x6c]
add esp, 0x10
mov edx, 0x50d888
call fcn.004a29a8
push 0
push eax
push dword [ebp + 0x6c]
mov dword [ebp + 0x78], eax
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
lea ecx, [ebp + 0x78]
call fcn.0048e540
mov eax, ebx
pop edi
pop esi
pop ebx
add ebp, 0x70
leave
ret 8

Function at 0x4a2f66
Capabilities:
Check if file exists
Copy file
Get file attributes
Set file attributes

Disassembly:
push esi
push edi
mov esi, edx
push esi
mov edi, ecx
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4a2f9b
xor ecx, ecx
cmp dword [esp + 0x10], ecx
je 0x4a2f81
inc ecx
cmp dword [esp + 0x14], 0
je 0x4a2f8b
or ecx, 2
test eax, ecx
je 0x4a2f9b
not ecx
and ecx, eax
push ecx
push esi
call dword [sym.imp.KERNEL32.DLL_SetFileAttributesW]
push dword [esp + 0xc]
push esi
push edi
call dword [sym.imp.KERNEL32.DLL_CopyFileW]
pop edi
pop esi
ret 0xc

Function at 0x4a3293
Capabilities:
Get common file path

Disassembly:
cmp byte [0x54b0a2], 0
je 0x4a32d3
cmp byte [0x54afd4], 0
je 0x4a32be
mov ecx, dword [0x54b0ac]
call fcn.004a391c
test al, al
je 0x4a32be
mov ecx, 0x54b0ac
call fcn.004a3178
mov ecx, dword [0x54b0ac]
test ecx, ecx
je 0x4a32d3
cmp word [ecx], 0
sete al
test al, al
je 0x4a32d8
jmp fcn.0047238a
jmp fcn.00422199
Function at 0x4abb0b
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push 0x30
mov edi, ecx
call sub.MSVCRT.dll_void____cdecl_operator_new_unsigned_int_
pop ecx
test eax, eax
je 0x4abb2b
push edi
mov ecx, eax
call fcn.004aba2b
mov ecx, eax
jmp 0x4abb2d
xor ecx, ecx
push 0
push 0x134
mov dword [0x54ae54], ecx
call fcn.004683fc
push 0
push dword [0x54bcc4]
call dword [sym.imp.USER32.dll_GetParent]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call esi
mov eax, dword [0x54ae54]
push 5
push dword [eax + 4]
call esi
mov eax, dword [0x54ae54]
push 3
push dword [eax + 4]
call esi
mov eax, dword [edi]
push 0x4f3aa0
lea ecx, [eax + 0x24]
call fcn.0048e806
push eax
lea eax, [ebp - 4]
push 0x50efc8
push eax
call fcn.0048ee25
mov eax, dword [0x54ae54]
mov esi, dword [eax + 4]
add esp, 0x10
lea ecx, [ebp - 4]
call fcn.0048e806
push eax
push esi
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov eax, dword [0x54ae54]
mov esi, dword [eax + 0x28]
lea ecx, [ebp - 4]
call fcn.0048e50a
pop edi
mov eax, esi
pop esi
leave
ret

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

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [ebp + 8], 0
push esi
mov esi, ecx
mov byte [ebp - 4], 0
je 0x4ac94b
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
cmp eax, 0xffffffff
je 0x4ac947
mov byte [ebp - 4], 1
test al, 0x10
jne 0x4ac94b
mov byte [ebp - 4], 0
push dword [ebp - 4]
mov ecx, esi
push 0x51d
call fcn.00467b92
push dword [ebp - 4]
mov ecx, esi
push 0x51e
call fcn.00467b92
pop esi
leave
ret 4
Function at 0x4b2ff4
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
push 0
lea ecx, [esi + 0x3c]
call fcn.0048e82b
or dword [esi + 0x40], 0xffffffff
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x24]
call fcn.004b2d8b
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetParent]
pop esi
test eax, eax
je 0x4b303b
push 0
push 0
push 0x8068
push dword [0x54bcc4]
call dword [sym.imp.USER32.dll_SendMessageW]
ret

Function at 0x4b33e7
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
call fcn.004b31a1
test al, al
je 0x4b33fe
push 0
push dword [esi + 4]
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret 4