joyce8/EMBER2024-capa huggingface dataset:
Function at 0x443f8b
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2028
call fcn.00452660
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, ecx
push dword [esi + 0x43]
lea ebx, [esi + 0x47]
call fcn.0043d288
test al, al
pop ecx
je 0x444182
lea eax, [ebp - 0x2028]
lea ecx, [edi + 0x7c]
push eax
push 0x99999999
mov dword [ebp - 8], ecx
call fcn.00441d38
test eax, eax
mov dword [ebp - 4], eax
jge 0x444112
mov esi, dword [sym.imp.WS2_32.dll_htons]
push 0
call esi
mov edi, dword [sym.imp.WS2_32.dll_inet_addr]
push str.77.77.77.77
call edi
push 0
mov dword [ebp - 0x14], eax
call esi
push str.255.255.255.0
call edi
push dword [ebp - 0x14]
mov ecx, 0x400
mov esi, ebx
lea edi, [ebp - 0x2028]
rep movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.WS2_32.dll_ntohl]
mov dword [ebp - 0x24], eax
call esi
push dword [ebp - 0x24]
mov dword [ebp - 0x2018], eax
call esi
and byte [ebp - 0x2012], 0
push 1
mov dword [ebp - 0x201c], eax
pop edi
lea eax, [ebp - 0x2011]
mov esi, 0x99999999
push str.UpdateMagGroup
push eax
mov dword [ebp - 0x1d1e], edi
mov word [ebp - 0x1d44], 4
mov dword [ebp - 0x2024], esi
mov dword [ebp - 0x2020], 0x88888888
call fcn.00452490
pop ecx
lea eax, [ebp - 0x2028]
pop ecx
mov ecx, dword [ebp - 8]
push eax
call fcn.004413eb
test eax, eax
jne 0x44410f
push 0x1000
push eax
lea eax, [ebp - 0x1028]
push eax
call fcn.00451f50
mov al, byte [ebp - 0xf77]
mov ecx, dword [ebp - 8]
and dword [ebp - 0xf82], 0
and al, 0xfd
or al, 1
add esp, 0xc
mov byte [ebp - 0xf77], al
lea eax, [ebp - 0x1028]
push edi
push eax
mov dword [ebp - 0x1028], 0x56567878
mov dword [ebp - 0x1024], esi
mov dword [ebp - 0x1020], 0x77777777
mov byte [ebp - 0x101c], 1
mov byte [ebp - 0x101b], 6
mov byte [ebp - 0x101a], 0x77
mov byte [ebp - 0x1019], 0x77
mov byte [ebp - 0x1018], 0x77
mov byte [ebp - 0x1017], 0x77
mov byte [ebp - 0x1016], 0x77
mov byte [ebp - 0x1015], 0x77
call fcn.00440b72
mov esi, dword [ebp + 8]
and dword [ebx + 0x396], 0
call dword [sym.imp.KERNEL32.dll_GetTickCount]
mov ecx, dword [ebp - 8]
push ebx
mov dword [ebx + 0x2e6], eax
call fcn.004413eb
push 2
push ebx
mov dword [ebp - 4], eax
call fcn.0041d701
push dword [ebx + 4]
push dword [ebx + 8]
call fcn.00445240
add esp, 0x10
add esi, 0x2c
lea eax, [ebp - 4]
push 1
sub esp, 0x10
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 0x8605
push 4
push eax
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
push dword [eax + 0x43]
movsd dword es:[edi], dword [esi]
call fcn.0041bb1a
push 0x605
push 0x1000
push ebx
call fcn.0041bc5b
add esp, 0x34
jmp 0x4441b2
push 1
add esi, 0x2c
sub esp, 0x10
lea eax, [ebp - 4]
mov edi, esp
mov dword [ebp - 4], 0xc0000001
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 0x8605
push 4
push eax
mov eax, dword [ebp + 8]
movsd dword es:[edi], dword [esi]
push dword [eax + 0x43]
movsd dword es:[edi], dword [esi]
call fcn.0041bb1a
add esp, 0x28
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4
Function at 0x444a79
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
push dword [ebx + 0x43]
mov edi, ecx
mov dword [ebp - 4], 0xc0000001
call fcn.0043d288
test al, al
pop ecx
je 0x444abe
push dword [ebx + 0x48]
lea esi, [ebx + 0x48]
lea ecx, [edi + 0x7c]
call fcn.00441332
test eax, eax
mov dword [ebp - 4], eax
jl 0x444abe
push 0x676
push 4
push esi
call fcn.0041bc5b
add esp, 0xc
push 1
lea esi, [ebx + 0x2c]
sub esp, 0x10
lea eax, [ebp - 4]
mov edi, esp
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 0
push 0x8676
movsd dword es:[edi], dword [esi]
push 4
push eax
push dword [ebx + 0x43]
movsd dword es:[edi], dword [esi]
call fcn.0041bb1a
add esp, 0x28
call fcn.0040273d
sub eax, dword [0x47d050]
cmp eax, 3
jbe 0x444b0f
push str.__d_
push str.arp.exe
call fcn.0040381c
pop ecx
pop ecx
call fcn.0040273d
mov dword [0x47d050], eax
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x4488be
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x220
mov dl, byte [0x47cdfc]
push esi
push edi
push 0x41
pop ecx
xor eax, eax
lea edi, [ebp - 0x10b]
mov byte [ebp - 0x10c], dl
rep stosd dword es:[edi], eax
push 0x44
lea edi, [ebp - 0x21f]
pop ecx
mov byte [ebp - 0x220], dl
rep stosd dword es:[edi], eax
and dword [ebp - 4], 0
push 0x105
stosw word es:[edi], ax
lea eax, [ebp - 0x10c]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov esi, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
test eax, eax
jbe 0x448943
lea eax, [ebp - 0x10c]
push eax
lea eax, [ebp - 0x220]
push str._s__kernel32.dll
push eax
call fcn.00451ef5
add esp, 0xc
test eax, eax
jle 0x448943
lea eax, [ebp - 0x220]
push eax
call esi
mov edi, eax
test edi, edi
jne 0x448950
push str.kernel32.dll
call esi
mov edi, eax
test edi, edi
je 0x448989
push str.IsWow64Process
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
test esi, esi
je 0x44897e
lea eax, [ebp - 4]
push eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call esi
test eax, eax
jne 0x44897e
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
jmp 0x44898c
test edi, edi
je 0x448989
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret
Function at 0x448a5a
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x288
lea eax, [ebp - 0x288]
push 0x104
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x448a80
xor al, al
jmp 0x448b0b
lea eax, [ebp - 0x288]
push esi
push eax
lea eax, [ebp - 0x104]
push eax
call fcn.00452490
lea eax, [ebp - 0x104]
push str._system32drivers_
push eax
call fcn.004524a0
lea eax, [ebp - 0x104]
push str.WFDiskBufPool
push eax
call fcn.004524a0
add esp, 0x18
call fcn.004488be
test eax, eax
mov esi, str.64.sys
jne 0x448acc
mov esi, str.32.sys
lea eax, [ebp - 0x104]
push esi
push eax
call fcn.004524a0
pop ecx
lea eax, [ebp - 0x104]
pop ecx
push esi
push eax
lea eax, [ebp - 0x184]
push 0x477074
push eax
call fcn.00451ef5
add esp, 0x10
lea eax, [ebp - 0x104]
push eax
push dword [ebp + 8]
call fcn.00452490
pop ecx
mov al, 1
pop ecx
pop esi
leave
ret 4

Function at 0x448bdc
Capabilities:
Stop service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push esi
push 0xf01ff
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_OpenServiceA]
mov esi, eax
test esi, esi
jne 0x448bfe
xor al, al
jmp 0x448c1b
lea eax, [ebp - 0x1c]
push ebx
push eax
push 1
push esi
call dword [sym.imp.ADVAPI32.dll_ControlService]
test eax, eax
push esi
setne bl
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
mov al, bl
pop ebx
pop esi
leave
ret 8

Function at 0x448c9c
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x104
push ebx
push esi
xor eax, eax
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push eax
push 0x40000000
push 3
push eax
push eax
mov ebx, str..WFDiskBufPool
push 0xc0000000
mov esi, ecx
push ebx
call edi
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x448d68
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 2
je 0x448ced
push eax
push str.CreateFile_errnum:_d_n
call fcn.00452e0e
pop ecx
jmp 0x448d60
lea eax, [ebp - 0x104]
mov ecx, esi
push eax
call fcn.00448a5a
test al, al
jne 0x448d06
push str.SetupDriverName_failed_n
jmp 0x448d5b
lea eax, [ebp - 0x104]
push 1
push eax
push str.WFDiskBufPool
mov ecx, esi
call fcn.00448c20
test al, al
jne 0x448d3b
lea eax, [ebp - 0x104]
push 2
push eax
push str.WFDiskBufPool
mov ecx, esi
call fcn.00448c20
push str.ManageDriver_failed_n
jmp 0x448d5b
xor eax, eax
push eax
push 0x40000000
push 3
push eax
push eax
push bind
push ebx
call edi
cmp eax, 0xffffffff
mov dword [esi], eax
jne 0x448d68
push str.CreateFile_failed_n
call fcn.00452e0e
pop ecx
mov eax, 0xc0000001
jmp 0x448d6a
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x449d98
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 0x2c]
mov ebx, dword [esi + 0x3c]
mov ecx, dword [esi + 0x2c]
sub ebx, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
lea ecx, [edi + ecx - 0x106]
sub ebx, eax
cmp eax, ecx
jb 0x449e20
mov eax, dword [esi + 0x38]
push edi
lea ecx, [eax + edi]
push ecx
push eax
call fcn.00431acc
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], edi
sub dword [esi + 0x6c], edi
add esp, 0xc
sub dword [esi + 0x5c], edi
mov dword [ebp + 8], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x449de3
mov eax, dword [esi + 0x40]
mov dword [ebp + 8], edi
lea eax, [eax + edi*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, edi
cmp ecx, edi
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp + 8]
mov word [eax], cx
jne 0x449e05
add ebx, edi
mov eax, dword [esi]
cmp dword [eax + 4], 0
je 0x449e7b
mov ecx, dword [esi + 0x74]
push ebx
add ecx, dword [esi + 0x6c]
add ecx, dword [esi + 0x38]
push ecx
push eax
call fcn.00449e80
add dword [esi + 0x74], eax
mov ebx, dword [esi + 0x74]
add esp, 0xc
cmp ebx, 3
jb 0x449e67
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
mov ecx, dword [esi + 0x58]
movzx eax, byte [edx]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp ebx, 0x106
jae 0x449e7b
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x449da4
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x4021bd
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x581970
call fcn.00510ecc
push ecx
push ecx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
and dword [ebp - 4], 0
lea edi, [esi + 0x38]
mov dword [ebp - 0x14], edi
lea ecx, [edi + 0xc]
mov byte [ebp - 4], 3
call fcn.00567f23
lea ecx, [edi + 8]
mov byte [ebp - 4], 2
call fcn.00567f23
lea ecx, [esi + 0x30]
mov byte [ebp - 4], 1
call fcn.00567f23
and byte [ebp - 4], 0
lea ecx, [esi + 0x2c]
call fcn.00567f23
or dword [ebp - 4], 0xffffffff
lea ecx, [esi + 0x1c]
call fcn.00567f23
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
mov dword fs:[0], ecx
leave
ret
Function at 0x40c63f
Capabilities:
Check os version

Disassembly:
mov eax, 0x5825db
call fcn.00510ecc
sub esp, 0x118
push ebx
push esi
push edi
xor ebx, ebx
push dword [ebp + 0x1c]
mov esi, ecx
mov dword [ebp - 0x10], esi
push ebx
call fcn.0056d002
mov eax, dword [0x66d540]
mov dword [ebp - 4], ebx
mov dword [esi + 0x64], eax
cmp dword [ebp + 0x20], ebx
mov byte [ebp - 4], 1
mov dword [esi], 0x59c0b0
jne 0x40c6c5
mov edi, 0x114
lea eax, [ebp - 0x124]
push edi
push ebx
push eax
call fcn.00510ef0
add esp, 0xc
lea eax, [ebp - 0x124]
mov dword [ebp - 0x124], edi
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x114], 2
jne 0x40c6be
cmp dword [ebp - 0x120], 5
mov dword [ebp + 0x20], 0x58
jae 0x40c6c5
mov dword [ebp + 0x20], 0x4c
push dword [ebp + 0x20]
call fcn.005118ae
cmp eax, ebx
pop ecx
mov dword [esi + 0x5c], eax
jne 0x40c6da
call fcn.0056590a
push dword [ebp + 0x20]
mov ecx, esi
push ebx
call fcn.0040c89f
push eax
call fcn.00510ef0
push 0x200002
call fcn.00568512
mov dword [esi + 0xe8], eax
mov word [eax], bx
mov eax, dword [ebp + 8]
add esp, 0x10
mov dword [esi + 0x60], eax
lea edi, [esi + 0x68]
neg eax
sbb eax, eax
mov ecx, esi
add eax, 0x7005
mov word [edi], bx
mov dword [esi + 0xec], ebx
mov dword [esi + 0x3c], eax
call fcn.0040c89f
mov ecx, dword [ebp + 0x20]
mov dword [eax], ecx
mov ecx, esi
call fcn.0040c89f
mov ecx, dword [esi + 0xe8]
mov dword [eax + 0x1c], ecx
mov ecx, esi
call fcn.0040c89f
mov ecx, esi
mov dword [eax + 0x20], 0x100000
call fcn.0040c89f
mov ecx, dword [ebp + 0xc]
mov dword [eax + 0x3c], ecx
mov ecx, esi
call fcn.0040c89f
mov ecx, esi
mov dword [eax + 0x24], edi
call fcn.0040c89f
mov ecx, esi
mov dword [eax + 0x28], 0x40
call fcn.0040c89f
mov ecx, dword [ebp + 0x14]
add eax, 0x34
or ecx, 0x880020
or dword [eax], ecx
test byte [ebp + 0x14], 0x40
je 0x40c797
mov ecx, esi
call fcn.0040c89f
add eax, 0x34
and byte [eax + 2], 0x7f
call fcn.0057c6ff
mov edi, dword [eax + 0xc]
mov ecx, esi
call fcn.0040c89f
mov ecx, esi
mov dword [eax + 8], edi
call fcn.0040c89f
cmp dword [ebp + 0x10], ebx
mov dword [eax + 0x44], 0x40c4c8
je 0x40c7d0
push 0x100000
push dword [ebp + 0x10]
push dword [esi + 0xe8]
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
cmp dword [ebp + 0x18], ebx
je 0x40c80f
push dword [ebp + 0x18]
lea edi, [esi + 0x64]
mov ecx, edi
call fcn.005680ba
push ebx
mov ecx, edi
call fcn.00568368
push 0x7c
push eax
call fcn.00511885
pop ecx
cmp eax, ebx
pop ecx
je 0x40c802
mov word [eax], bx
push 0x7c
add eax, 2
jmp 0x40c7ec
mov edi, dword [esi + 0x64]
mov ecx, esi
call fcn.0040c89f
mov dword [eax + 0xc], edi
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x1c
Function at 0x40e055
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x5827bc
call fcn.00510ecc
sub esp, 0xc
push ebx
push esi
push edi
mov esi, ecx
push dword [ebp + 8]
lea ecx, [ebp - 0x18]
call fcn.00567f97
mov eax, dword [ebp - 0x18]
xor edi, edi
mov dword [ebp - 4], edi
cmp dword [eax - 8], edi
jne 0x40e08f
push eax
mov ecx, esi
call fcn.0056b81b
or ebx, 0xffffffff
jmp 0x40e121
mov edx, dword [esi]
push eax
push edi
mov ecx, esi
call dword [edx + 0xe0]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40e101
mov eax, dword [esi]
or dword [ebp - 0x10], 0xffffffff
or dword [ebp - 0x14], 0xffffffff
lea ecx, [ebp - 0x14]
push ecx
lea ecx, [ebp - 0x10]
push ecx
push ebx
mov ecx, esi
call dword [eax + 0xd4]
push ebx
mov ecx, esi
call fcn.00566dfa
cmp dword [ebp - 0x10], edi
jge 0x40e0eb
push dword [ebp + 8]
call dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
test eax, eax
je 0x40e0eb
push edi
push 1
push dword [ebp + 8]
call fcn.00411921
add esp, 0xc
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], eax
push dword [ebp - 0x14]
mov eax, dword [esi]
mov ecx, esi
push dword [ebp - 0x10]
push dword [ebp + 8]
push edi
call dword [eax + 0xd8]
jmp 0x40e10f
push dword [ebp - 0x18]
mov eax, dword [esi]
mov ecx, esi
push edi
call dword [eax + 0xf0]
mov ebx, eax
push edi
push ebx
push 0x14e
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_SendMessageW]
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
call fcn.00567f23
mov ecx, dword [ebp - 0xc]
pop edi
mov eax, ebx
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 8

Function at 0x410209
Capabilities:
Read clipboard data

Disassembly:
push esi
push edi
mov edi, dword [esp + 0xc]
push 0x6752e4
mov ecx, edi
call fcn.005680ba
push 0xd
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
je 0x41023b
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
test eax, eax
jne 0x41023f
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
xor eax, eax
jmp 0x410266
push eax
mov ecx, edi
call fcn.005680ba
push esi
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
cmp dword [esp + 0x10], 0
je 0x410263
mov ecx, edi
call fcn.0056530b
mov ecx, edi
call fcn.0056527f
push 1
pop eax
pop edi
pop esi
ret 8
Function at 0x410330
Capabilities:
Copy file

Disassembly:
mov eax, 0x582a10
call fcn.00510ecc
mov eax, 0x1024
call fcn.00511320
push ebx
lea ecx, [ebp - 0x10]
push dword [ebp + 0xc]
call fcn.00567f97
xor ebx, ebx
cmp dword [ebp + 0x10], ebx
mov dword [ebp - 4], ebx
jne 0x410380
push dword [ebp + 0xc]
lea eax, [ebp + 0x10]
push eax
call fcn.0041113e
pop ecx
pop ecx
push eax
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 1
call fcn.0056806a
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], bl
call fcn.00567f23
push dword [ebp - 0x10]
call fcn.004113b3
cmp eax, 0xffffffff
pop ecx
jne 0x410395
push 0xfffffffffffffffe
jmp 0x41045b
push esi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x830]
push dword [ebp + 8]
push eax
call fcn.00510f48
lea eax, [ebp - 0x830]
push eax
call fcn.00511262
mov word [ebp + eax*2 - 0x82e], bx
lea eax, [ebp - 0x830]
push 0x7c
push eax
call fcn.00511885
add esp, 0x18
cmp eax, ebx
je 0x4103e6
mov word [eax], bx
add eax, 2
push 0x7c
push eax
call fcn.00511885
pop ecx
pop ecx
jmp 0x4103d0
push esi
lea eax, [ebp - 0x1030]
push dword [ebp + 0xc]
push eax
call fcn.00510f48
lea eax, [ebp - 0x1030]
push eax
call fcn.00511262
mov word [ebp + eax*2 - 0x102e], bx
push 0x1e
lea eax, [ebp - 0x30]
push ebx
push eax
call fcn.00510ef0
mov eax, dword [ebp + 0x18]
add esp, 0x1c
mov dword [ebp - 0x30], eax
lea eax, [ebp - 0x830]
mov dword [ebp - 0x28], eax
lea eax, [ebp - 0x1030]
mov dword [ebp - 0x24], eax
mov ax, word [ebp + 0x14]
mov word [ebp - 0x20], ax
lea eax, [ebp - 0x30]
push eax
mov dword [ebp - 0x2c], 2
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
pop esi
je 0x410454
or ebx, 0xffffffff
jmp 0x41045c
cmp dword [ebp - 0x1e], ebx
je 0x41045c
push 1
pop ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x10]
call fcn.00567f23
mov ecx, dword [ebp - 0xc]
mov eax, ebx
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x410529
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x820
push 0x3ff
lea eax, [ebp - 0x820]
push dword [ebp + 8]
push eax
call fcn.00510f48
lea eax, [ebp - 0x820]
push eax
call fcn.00511262
and word [ebp + eax*2 - 0x81e], 0
push 0x1e
lea eax, [ebp - 0x20]
push 0
push eax
call fcn.00510ef0
mov eax, dword [ebp + 0x10]
add esp, 0x1c
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x820]
mov dword [ebp - 0x18], eax
mov ax, word [ebp + 0xc]
mov word [ebp - 0x10], ax
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x1c], 3
call dword [sym.imp.SHELL32.dll_SHFileOperationW]
test eax, eax
je 0x41059c
or eax, 0xffffffff
leave
ret
xor eax, eax
cmp dword [ebp - 0xe], eax
setne al
leave
ret
Function at 0x410e28
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0x14], 0
push esi
jne 0x410e56
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
shl eax, 1
push eax
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
neg eax
sbb eax, eax
inc eax
jmp 0x410ea5
lea eax, [ebp + 0xc]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x410ea3
push dword [ebp + 0x10]
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [eax + eax + 2]
push eax
push dword [ebp + 0x10]
push 1
push 0
push dword [ebp + 0x14]
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
push dword [ebp + 0xc]
mov esi, eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
jne 0x410ea3
test esi, esi
jne 0x410ea3
push 1
pop eax
jmp 0x410ea5
xor eax, eax
pop esi
pop ebp
ret 0x10

Function at 0x410eaa
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push esi
push edi
push dword [ebp + 0xc]
call fcn.0051127f
pop ecx
mov esi, eax
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea eax, [esi + eax*2]
test eax, eax
je 0x410f26
and word [eax], 0
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
test eax, eax
jne 0x410f26
lea eax, [ebp - 0x20c]
xor edi, edi
push 0x105
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
test eax, eax
jne 0x410f03
push 1
pop edi
push dword [ebp + 0xc]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test edi, edi
jne 0x410f26
push esi
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
push 0x5c
push esi
call fcn.00511ad1
pop ecx
pop ecx
jmp 0x410eca
push esi
call fcn.005119e8
pop ecx
push 1
pop eax
pop edi
pop esi
leave
ret 8
Function at 0x410f57
Capabilities:
Get file version info

Disassembly:
mov eax, 0x582ba0
call fcn.00510ecc
sub esp, 0x50
push ebx
push esi
lea eax, [ebp - 0x10]
push edi
push eax
xor edi, edi
push dword [ebp + 8]
mov dword [ebp - 0x10], edi
call sub.VERSION.dll_GetFileVersionInfoSizeW
mov ebx, eax
cmp ebx, edi
je 0x410ff9
mov esi, 0x59d474
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x20], edi
mov dword [ebp - 0x1c], edi
jbe 0x410f9e
push ebx
lea ecx, [ebp - 0x28]
call fcn.00411068
push dword [ebp - 0x20]
push ebx
push dword [ebp - 0x10]
push dword [ebp + 8]
call sub.VERSION.dll_GetFileVersionInfoW
test eax, eax
je 0x410fe5
push 0x34
lea eax, [ebp - 0x5c]
push edi
push eax
call fcn.00510ef0
add esp, 0xc
lea eax, [ebp - 0x14]
mov dword [ebp - 0x18], edi
mov dword [ebp - 0x14], edi
push eax
lea eax, [ebp - 0x18]
push eax
push 0x5dd210
push dword [ebp - 0x20]
call sub.VERSION.dll_VerQueryValueW
test eax, eax
je 0x41100f
cmp dword [ebp - 0x14], 0x34
je 0x410ffe
or dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x24], edi
mov dword [ebp - 0x28], esi
je 0x410ff9
lea ecx, [ebp - 0x28]
call fcn.00443b92
or eax, 0xffffffff
jmp 0x411047
push 0x34
lea eax, [ebp - 0x5c]
push dword [ebp - 0x18]
push eax
call fcn.00511550
add esp, 0xc
mov ecx, dword [ebp - 0x54]
mov eax, dword [ebp + 0xc]
shr ecx, 0x10
mov dword [eax], ecx
or dword [ebp - 4], 0xffffffff
movzx ecx, word [ebp - 0x54]
mov dword [eax + 4], ecx
mov ecx, dword [ebp - 0x50]
shr ecx, 0x10
cmp dword [ebp - 0x24], edi
mov dword [eax + 8], ecx
movzx ecx, word [ebp - 0x50]
mov dword [eax + 0xc], ecx
mov dword [ebp - 0x28], esi
je 0x411045
lea ecx, [ebp - 0x28]
call fcn.00443b92
xor eax, eax
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x41159e
Capabilities:
Check if file exists

Disassembly:
mov eax, 0x582c4b
call fcn.00510ecc
sub esp, 0x10
and dword [ebp - 0x1c], 0
push ebx
push esi
push edi
push dword [ebp + 0x14]
lea ecx, [ebp - 0x14]
call fcn.00567f97
push 1
lea ecx, [ebp - 0x14]
pop ebx
push 0x2e
mov dword [ebp - 4], ebx
call fcn.005652c8
push dword [ebp + 0x10]
lea ecx, [ebp + 0x14]
call fcn.00567f97
mov eax, dword [0x66d540]
mov dword [ebp - 0x10], eax
push dword [ebp - 0x14]
mov edi, str._s_s._s
lea eax, [ebp - 0x10]
mov byte [ebp - 4], 3
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.005651d9
mov esi, dword [sym.imp.SHLWAPI.dll_PathFileExistsW]
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
jne 0x41161f
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.00567c90
mov dword [ebp - 0x1c], ebx
jmp 0x411675
push ebx
mov dword [ebp - 0x18], ebx
push dword [ebp + 0x10]
mov ebx, str._s___d_
lea eax, [ebp + 0x14]
push ebx
push eax
call fcn.005651d9
add esp, 0x10
lea eax, [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 0x14]
push dword [ebp + 0xc]
push edi
push eax
call fcn.005651d9
add esp, 0x14
push dword [ebp - 0x10]
call esi
test eax, eax
je 0x411662
inc dword [ebp - 0x18]
push dword [ebp - 0x18]
push dword [ebp + 0x10]
jmp 0x41162b
mov ecx, dword [ebp + 8]
lea eax, [ebp + 0x14]
push eax
call fcn.00567c90
mov dword [ebp - 0x1c], 1
lea ecx, [ebp - 0x10]
mov byte [ebp - 4], 2
call fcn.00567f23
lea ecx, [ebp + 0x14]
mov byte [ebp - 4], 1
call fcn.00567f23
and byte [ebp - 4], 0
lea ecx, [ebp - 0x14]
call fcn.00567f23
mov ecx, dword [ebp - 0xc]
mov eax, dword [ebp + 8]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret