joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40162c
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov dword [ebp - 0x194], ecx
lea eax, [ebp - 0x190]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov eax, dword [ebp - 0x194]
leave
ret

Function at 0x406f69
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x42d7d8]
je 0x406f84
inc edi
cmp edi, 0x17
jb 0x406f75
cmp edi, 0x17
jae 0x407104
push ebp
push 3
call fcn.00409c81
cmp eax, 1
pop ecx
je 0x4070d0
push 3
call fcn.00409c81
test eax, eax
pop ecx
jne 0x406fb8
cmp dword [0x42d030], 1
je 0x4070d0
cmp ebx, 0xfc
je 0x407103
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x430f40
push ebp
call fcn.00405b8a
add esp, 0xc
test eax, eax
je 0x406fee
push esi
push esi
push esi
push esi
push esi
call fcn.00406dfe
add esp, 0x14
push 0x104
mov esi, 0x430f59
push esi
push 0
mov byte [0x43105d], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407032
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.00405b8a
add esp, 0xc
test eax, eax
je 0x407032
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.00406dfe
add esp, 0x14
push esi
call fcn.00405d10
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x407077
push esi
call fcn.00405d10
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x431254
push 0x425c64
sub ecx, eax
push ecx
push eax
call fcn.00409796
add esp, 0x14
test eax, eax
je 0x407077
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.00406dfe
add esp, 0x14
jmp 0x407079
xor esi, esi
push 0x425c60
push ebx
push ebp
call fcn.004096df
add esp, 0xc
test eax, eax
je 0x407099
push esi
push esi
push esi
push esi
push esi
call fcn.00406dfe
add esp, 0x14
push dword [edi*8 + 0x42d7dc]
push ebx
push ebp
call fcn.004096df
add esp, 0xc
test eax, eax
je 0x4070bb
push esi
push esi
push esi
push esi
push esi
call fcn.00406dfe
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.00409ac4
add esp, 0xc
jmp 0x407103
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x407103
cmp ebp, 0xffffffff
je 0x407103
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x42d7dc]
push dword [esi]
call fcn.00405d10
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x409038
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x42daa8]
jne 0x409042
repz ret
jmp fcn.00409dac
Function at 0x409ac4
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.00404dfc
xor ebx, ebx
cmp dword [0x43152c], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x409b9a
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x409c7a
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
cmp eax, ebx
je 0x409c7a
push eax
call fcn.00404d8e
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x43152c], eax
call esi
push eax
call fcn.00404d8e
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x431530], eax
call esi
push eax
call fcn.00404d8e
mov dword [0x431534], eax
lea eax, [ebp - 0xc]
push eax
call fcn.004054fd
test eax, eax
pop ecx
pop ecx
je 0x409b68
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406dfe
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x409b9a
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.00404d8e
cmp eax, ebx
pop ecx
mov dword [0x43153c], eax
je 0x409b9a
push 0x426d24
push edi
call esi
push eax
call fcn.00404d8e
pop ecx
mov dword [0x431538], eax
mov eax, dword [0x431538]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x409c1f
cmp dword [0x43153c], ecx
je 0x409c1f
push eax
call fcn.00404e05
push dword [0x43153c]
mov esi, eax
call fcn.00404e05
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x409c1f
cmp edi, ebx
je 0x409c1f
call esi
cmp eax, ebx
je 0x409bec
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x409bec
test byte [ebp - 0x18], 1
jne 0x409c1f
lea eax, [ebp - 0x10]
push eax
call fcn.00405534
test eax, eax
pop ecx
je 0x409c07
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.00406dfe
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x409c16
or dword [ebp + 0x10], 0x200000
jmp 0x409c5a
or dword [ebp + 0x10], 0x40000
jmp 0x409c5a
mov eax, dword [0x431530]
cmp eax, dword [ebp - 8]
je 0x409c5a
push eax
call fcn.00404e05
cmp eax, ebx
pop ecx
je 0x409c5a
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x409c5a
mov eax, dword [0x431534]
cmp eax, dword [ebp - 8]
je 0x409c5a
push eax
call fcn.00404e05
cmp eax, ebx
pop ecx
je 0x409c5a
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x43152c]
call fcn.00404e05
cmp eax, ebx
pop ecx
je 0x409c7a
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x409c7c
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40a505
Capabilities:
Check if file exists
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
and dword [ebp - 8], 0
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
push dword [ebp + 8]
push 0
push 0x1f0001
call dword [sym.imp.KERNEL32.dll_OpenMutexW]
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 2
je 0x40a53e
cmp dword [ebp - 8], 0
jne 0x40a542
xor al, al
jmp 0x40a544
mov al, 1
leave
ret
Function at 0x40ad1c
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 8
pop edx
mov ecx, dword [ebp + 8]
call fcn.00417318
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 8]
mov dword [eax], ecx
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp + 0xc]
mov dword [eax + 4], ecx
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp - 0xc]
push 0x40ac1c
push 0x10000
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
je 0x40ad74
cmp dword [ebp - 8], 0xffffffff
je 0x40ad74
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
leave
ret

Function at 0x40b21d
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push 0x30
push 0
lea eax, [ebp - 0x50]
push eax
call fcn.004031e0
add esp, 0xc
mov dword [ebp - 0x50], 0x30
mov dword [ebp - 0x4c], 0x4000
mov dword [ebp - 0x48], 0x40ad76
and dword [ebp - 0x44], 0
and dword [ebp - 0x40], 0
mov ecx, dword [ebp + 8]
call fcn.00413314
mov dword [ebp - 0x3c], eax
and dword [ebp - 0x38], 0
and dword [ebp - 0x34], 0
and dword [ebp - 0x30], 0
mov dword [ebp - 0x2c], str.svchost
mov dword [ebp - 0x28], str.USBx64
and dword [ebp - 0x24], 0
lea eax, [ebp - 0x50]
push eax
call dword [sym.imp.USER32.dll_RegisterClassExW]
push 0
mov ecx, dword [ebp + 8]
call fcn.00413314
push eax
push 0
push 0
push 0xc8
push 0xc8
push 0
push 0
push 0x2000000
push str.toplevelwindow
push str.USBx64
push 0
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [0x432118], eax
push 0x2000000
push 0xfffffffffffffff0
push dword [0x432118]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0x8000000
push 0xffffffffffffffec
push dword [0x432118]
call dword [sym.imp.USER32.dll_SetWindowLongW]
push 0
push dword [0x432118]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0x20
push 0
lea eax, [ebp - 0x20]
push eax
call fcn.004031e0
add esp, 0xc
mov dword [ebp - 0x20], 0x20
mov dword [ebp - 0x1c], 5
push 0x10
push 0x426df0
lea eax, [ebp - 0x14]
push eax
call fcn.004026b0
add esp, 0xc
push 0
lea eax, [ebp - 0x20]
push eax
push dword [0x432118]
call dword [sym.imp.USER32.dll_RegisterDeviceNotificationW]
mov dword [0x432100], eax
cmp dword [0x432100], 0
jne 0x40b345
xor al, al
jmp 0x40b347
mov al, 1
leave
ret
Function at 0x40d707
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 0x2c], 0
jmp 0x40d71a
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x17
jge 0x40d7b4
push 0x20
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.004031e0
add esp, 0xc
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 9
mov dword [ebp - 0x1c], 7
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax*2 + 0x42f06c]
push eax
push 0x4274b4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
and dword [ebp - 0xc], 0
mov dword [ebp - 4], 4
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40d7a5
mov al, 1
jmp 0x40d7b6
push 1
push dword [ebp + 8]
call sub.MPR.dll_WNetCancelConnectionW
jmp 0x40d713
xor al, al
leave
ret

Function at 0x40e20f
Capabilities:
Modify service
Query service status
Start service

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
and dword [ebp - 0x20], 0
and dword [ebp - 0x24], 0
push 1
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
jne 0x40e239
xor eax, eax
jmp 0x40e2d8
push 0x14
push str.Schedule
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_OpenServiceW]
mov dword [ebp - 0x24], eax
push dword [ebp - 0x20]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
cmp dword [ebp - 0x24], 0
jne 0x40e25f
xor eax, eax
jmp 0x40e2d8
lea eax, [ebp - 0x1c]
push eax
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_QueryServiceStatus]
test eax, eax
jne 0x40e27d
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40e2d8
cmp dword [ebp - 0x18], 4
jne 0x40e291
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
inc eax
jmp 0x40e2d8
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
push 2
push 0xffffffffffffffff
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_ChangeServiceConfigW]
push 0
push 0
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_StartServiceW]
test eax, eax
jne 0x40e2cc
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
jmp 0x40e2d8
push dword [ebp - 0x24]
call dword [sym.imp.ADVAPI32.dll_CloseServiceHandle]
xor eax, eax
inc eax
leave
ret
Function at 0x40efc5
Capabilities:
Connect network resource

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
and dword [ebp - 0x2c], 0
jmp 0x40efd8
mov eax, dword [ebp - 0x2c]
inc eax
mov dword [ebp - 0x2c], eax
cmp dword [ebp - 0x2c], 0x17
jge 0x40f072
push 0x20
push 0
lea eax, [ebp - 0x28]
push eax
call fcn.004031e0
add esp, 0xc
mov dword [ebp - 0x28], 2
mov dword [ebp - 0x24], 1
mov dword [ebp - 0x20], 9
mov dword [ebp - 0x1c], 7
mov eax, dword [ebp - 0x2c]
movzx eax, word [eax*2 + 0x42fc68]
push eax
push 0x4274b4
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0xc
mov eax, dword [ebp + 8]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
and dword [ebp - 0xc], 0
mov dword [ebp - 4], 4
push dword [ebp - 4]
push dword [ebp + 0x10]
push dword [ebp + 0x14]
lea eax, [ebp - 0x28]
push eax
call sub.MPR.dll_WNetAddConnection2W
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f063
mov al, 1
jmp 0x40f074
push 1
push dword [ebp + 8]
call sub.MPR.dll_WNetCancelConnectionW
jmp 0x40efd1
xor al, al
leave
ret
Function at 0x40f801
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x30
mov dword [ebp - 0x2c], ecx
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x48]
mov dword [ebp - 0x30], eax
cmp dword [ebp - 0x30], 0
je 0x40f852
cmp dword [ebp - 0x30], 1
je 0x40f875
cmp dword [ebp - 0x30], 2
je 0x40f898
cmp dword [ebp - 0x30], 3
je 0x40f8bb
cmp dword [ebp - 0x30], 4
je 0x40f8db
cmp dword [ebp - 0x30], 5
je 0x40f8fb
cmp dword [ebp - 0x30], 6
je 0x40f91b
jmp 0x40f938
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
push 1
push 0
push 0x2e
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f875
jmp 0x40f93f
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
push 1
push 0
push 0x23
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f898
jmp 0x40f93f
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
push 1
push 0
push 0x2d
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f8bb
jmp 0x40f93f
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
push 1
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f8db
jmp 0x40f93f
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
push 1
push 0
push 5
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f8fb
jmp 0x40f93f
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
push 1
push 0
push 0x15
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0
jne 0x40f91b
jmp 0x40f93f
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
push 0x208
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
je 0x40f938
jmp 0x40f93f
xor al, al
jmp 0x40f9e5
mov eax, dword [ebp - 0x2c]
mov eax, dword [eax + 0x48]
inc eax
mov ecx, dword [ebp - 0x2c]
mov dword [ecx + 0x48], eax
push 0x426f7c
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.ntuser4CB43D7F_7EEE_4906_8698_
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov eax, dword [ebp - 0x2c]
push dword [eax + 0x44]
push dword [eax + 0x40]
push str._08X
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [ecx + 0x40]
mov edx, dword [ecx + 0x44]
mov cl, 0x20
call fcn.0041f5d0
push edx
push eax
push str._08X
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x28]
push eax
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push str..pol
mov eax, dword [ebp - 0x2c]
add eax, 0x4c
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
mov al, 1
leave
ret
Function at 0x40feb4
Capabilities:
Query or enumerate registry key
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x428
mov dword [ebp - 0x428], edx
mov dword [ebp - 0x424], ecx
lea eax, [ebp - 0x214]
push eax
push dword [ebp + 8]
push dword [ebp - 0x428]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4100e3
movzx eax, byte [ebp + 0x10]
test eax, eax
je 0x40ffaf
and dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 0x104
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x40ffaf
push dword [ebp - 0x214]
push dword [ebp + 0x18]
lea eax, [ebp - 0x208]
push eax
push dword [ebp + 8]
call dword [ebp + 0x14]
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x40ff68
jmp 0x40ffaf
mov eax, dword [ebp - 0x20c]
inc eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], 0x104
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumValueW]
mov dword [ebp - 0x218], eax
jmp 0x40ff3d
movzx eax, byte [ebp + 0xc]
test eax, eax
je 0x4100d3
and dword [ebp - 0x20c], 0
mov dword [ebp - 0x210], 0x104
push dword [ebp - 0x210]
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4100d3
push 0x208
push dword [ebp + 8]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 0x102
jae 0x41004d
push 0x426f7c
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x420]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x214]
push dword [ebp + 0x18]
push 0
lea eax, [ebp - 0x420]
push eax
call dword [ebp + 0x14]
add esp, 0x10
movzx eax, al
test eax, eax
jne 0x41006e
jmp 0x4100d3
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
lea eax, [ebp - 0x420]
push eax
mov edx, dword [ebp - 0x428]
mov ecx, dword [ebp - 0x424]
call fcn.0040feb4
mov eax, dword [ebp - 0x20c]
inc eax
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x210], 0x104
push dword [ebp - 0x210]
lea eax, [ebp - 0x208]
push eax
push dword [ebp - 0x20c]
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyW]
mov dword [ebp - 0x218], eax
jmp 0x40fff1
push dword [ebp - 0x214]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x4100e5
xor al, al
leave
ret 0x14
Function at 0x4100e9
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 0x10], edx
mov dword [ebp - 0xc], ecx
and dword [ebp - 8], 0
cmp dword [ebp + 8], 0
jne 0x410103
xor al, al
jmp 0x410178
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 8]
push eax
push 0
push 0x20006
push 0
push 0
push 0
push dword [ebp + 8]
push dword [ebp - 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x41012c
xor al, al
jmp 0x410178
cmp dword [ebp + 0x14], 0
je 0x410138
cmp dword [ebp + 0x18], 0
jne 0x410145
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
jmp 0x410178
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
test eax, eax
je 0x41016d
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x410178
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
leave
ret 0x14

Function at 0x41017c
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x10], ecx
and dword [ebp - 8], 0
and dword [ebp - 0xc], 0
mov dword [ebp - 4], 3
cmp dword [ebp + 8], 0
jne 0x4101a4
xor al, al
jmp 0x410266
lea eax, [ebp - 8]
push eax
push 1
push 0
push dword [ebp + 8]
push dword [ebp - 0x14]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
je 0x4101c3
xor al, al
jmp 0x410266
lea eax, [ebp - 0xc]
push eax
push 0
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x4101f2
mov eax, dword [ebp + 0x14]
and dword [eax], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x410266
mov eax, dword [ebp + 0x14]
mov eax, dword [eax]
cmp eax, dword [ebp - 0xc]
jb 0x410202
cmp dword [ebp + 0x10], 0
jne 0x410223
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp + 0x10], 0
jne 0x41021f
mov al, 1
jmp 0x410266
xor al, al
jmp 0x410266
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0x10]
lea eax, [ebp - 4]
push eax
push 0
push dword [ebp + 0xc]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
je 0x410253
mov eax, dword [ebp + 0x14]
and dword [eax], 0
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor al, al
jmp 0x410266
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp - 0xc]
mov dword [eax], ecx
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov al, 1
leave
ret 0x10
Function at 0x410300
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], ecx
and dword [ebp - 4], 0
push 0
lea eax, [ebp - 4]
push eax
call dword [sym.imp.WININET.dll_InternetGetConnectedState]
mov dword [ebp - 8], eax
mov eax, dword [ebp - 0xc]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x58c8], ecx
cmp dword [ebp - 8], 0
je 0x410336
mov eax, dword [ebp - 4]
and eax, 0x20
je 0x41033a
xor al, al
jmp 0x410365
mov eax, dword [ebp - 4]
and eax, 4
neg eax
sbb eax, eax
neg eax
mov ecx, dword [ebp - 0xc]
mov byte [ecx + 0x58c4], al
mov eax, dword [ebp - 4]
and eax, 2
jne 0x41035f
mov eax, dword [ebp - 4]
and eax, 1
je 0x410363
mov al, 1
jmp 0x410365
mov al, 1
leave
ret
Function at 0x4119b9
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x4119d3
xor eax, eax
jmp 0x4119fd
cmp dword [ebp + 0xc], 0
jne 0x4119dd
xor eax, eax
jmp 0x4119fd
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_WriteFile]
test eax, eax
jne 0x4119fa
xor eax, eax
jmp 0x4119fd
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x411a01
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
and dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jne 0x411a1b
xor eax, eax
jmp 0x411a45
cmp dword [ebp + 0xc], 0
jne 0x411a25
xor eax, eax
jmp 0x411a45
push 0
lea eax, [ebp - 4]
push eax
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
jne 0x411a42
xor eax, eax
jmp 0x411a45
mov eax, dword [ebp - 4]
leave
ret 8

Function at 0x411c0c
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov dword [ebp - 0xc], edx
mov dword [ebp - 8], ecx
cmp dword [ebp + 8], 0
je 0x411c24
cmp dword [ebp - 0xc], 0
jne 0x411c28
xor al, al
jmp 0x411c63
push 0
mov edx, dword [ebp - 0xc]
mov ecx, dword [ebp - 8]
call fcn.00411abb
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0xffffffff
jne 0x411c42
xor al, al
jmp 0x411c63
push dword [ebp + 8]
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
jne 0x411c56
xor al, al
jmp 0x411c63
mov edx, dword [ebp - 4]
mov ecx, dword [ebp - 8]
call fcn.00411aa5
mov al, 1
leave
ret 4

Function at 0x411e2c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov dword [ebp - 0x218], edx
mov dword [ebp - 0x214], ecx
and word [ebp - 0x210], 0
push 0x206
push 0
lea eax, [ebp - 0x20e]
push eax
call fcn.004031e0
add esp, 0xc
cmp dword [ebp - 0x218], 0
jne 0x411e6f
xor eax, eax
jmp 0x411ef4
lea eax, [ebp - 0x210]
push eax
push 0
push 0
push 0x1c
push 0
call dword [sym.imp.SHELL32.dll_SHGetFolderPathW]
test eax, eax
jne 0x411e8a
jmp 0x411e9c
push 0x42724c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
movzx eax, word [ebp + eax*2 - 0x212]
cmp eax, 0x5c
je 0x411ece
push 0x426f7c
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push dword [ebp - 0x218]
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatW]
push 0
lea edx, [ebp - 0x210]
mov ecx, dword [ebp - 0x214]
call fcn.00413434
leave
ret