joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40ed25
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.0043065d
push 1
push dword [edi + 0x64]
call dword [sym.imp.USER32.dll_ShowWindow]
push 1
push dword [edi + 0x68]
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0
push dword [edi + 0x58]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
ret

Function at 0x410aaf
Capabilities:
Terminate thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
push 0xffffffffffffffff
push 0
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
push 2
call dword [sym.imp.KERNEL32.dll_WaitForMultipleObjects]
push dword [esi + 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov ecx, 0x45ec80
lock xadd dword [ecx], eax
mov ecx, dword [esi + 4]
push 0
push ecx
test eax, eax
je 0x410af9
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x410b0f
push method.Bootstrapper.virtual_164
call dword [sym.imp.KERNEL32.dll_QueueUserAPC]
push 0xffffffffffffffff
push dword [esi + 4]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
pop esi
leave
ret
Function at 0x410b12
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x2c
push ebx
push esi
push edi
xor eax, eax
mov esi, ecx
push eax
push eax
push 1
push eax
mov dword [esp + 0x20], esi
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov ebx, dword [ebp + 8]
mov edi, eax
mov dword [ebx + 4], edi
test edi, edi
jne 0x410b91
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push 0x45c0e0
push esi
lea ecx, [esp + 0x24]
call fcn.00406641
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], str.C:Trunk2012Contribs_boost_1_84_0_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x2c], str.start_thread
mov dword [esp + 0x30], 0x4c
mov dword [esp + 0x34], 0x1a
call fcn.004104db
test al, al
jne 0x410cc0
mov esi, dword [esp + 0x10]
xor eax, eax
push eax
push eax
push 1
push eax
call dword [sym.imp.KERNEL32.dll_CreateEventW]
mov dword [esi + 8], eax
xor ecx, ecx
mov dword [ebx + 8], eax
cmp dword [esi + 8], ecx
jne 0x410c0c
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov esi, eax
call dword [edx]
push 0x45c0e0
push esi
lea ecx, [esp + 0x24]
call fcn.00406641
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], str.C:Trunk2012Contribs_boost_1_84_0_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x2c], str.start_thread
mov dword [esp + 0x30], 0x56
mov dword [esp + 0x34], 0x1a
call fcn.004104db
test al, al
je 0x410c06
lea eax, [esp + 0x28]
mov edx, str.thread.exit_event
push eax
jmp 0x410cce
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push ecx
push ebx
push 0x410cd4
push ecx
push ecx
call dword [sym.imp.api_ms_win_crt_runtime_l1_1_0.dll__beginthreadex]
add esp, 0x18
mov dword [esi + 4], eax
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x410ca7
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edx, dword [ebx]
mov ecx, ebx
push 1
mov dword [esp + 0x1c], eax
call dword [edx]
test edi, edi
je 0x410c4d
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x410c5c
push dword [eax + 8]
call esi
push 0x45c0e0
push dword [esp + 0x1c]
lea ecx, [esp + 0x24]
call fcn.00406641
lea ecx, [esp + 0x1c]
mov dword [esp + 0x28], str.C:Trunk2012Contribs_boost_1_84_0_boost_asiodetailimplwin_thread.ipp
mov dword [esp + 0x2c], str.start_thread
mov dword [esp + 0x30], 0x66
mov dword [esp + 0x34], 0x1a
call fcn.004104db
test al, al
je 0x410ca7
lea eax, [esp + 0x28]
mov edx, str.thread
push eax
jmp 0x410cce
test edi, edi
je 0x410cb7
push 0xffffffffffffffff
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push edi
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 8
lea eax, [esp + 0x28]
mov edx, str.thread.entry_event
push eax
lea ecx, [esp + 0x20]
call fcn.004106b9
int3
Function at 0x410d20
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
sub esp, 0x198
mov eax, dword [0x45c040]
xor eax, esp
mov dword [esp + 0x194], eax
xor eax, eax
inc eax
lock xadd dword [0x45ecec], eax
inc eax
cmp eax, 1
jne 0x410d5e
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x45ecf0
xchg dword [ecx], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.004357ec
mov esp, ebp
pop ebp
ret

Function at 0x4118ea
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
mov edi, ecx
xor esi, esi
mov ebx, edx
cmp edi, 0xffffffff
je 0x4119a6
cmp byte [ebp + 8], 0
je 0x411925
test byte [ebx], 8
je 0x411925
xor eax, eax
mov dword [ebp - 4], eax
lea eax, [ebp - 0x10]
push eax
push ecx
lea eax, [ebp - 4]
push eax
push ecx
push ecx
call fcn.00411ebb
add esp, 0x14
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.004118af
test esi, esi
je 0x4119a6
push ecx
push 0x2733
lea ecx, [ebp - 0x10]
call fcn.00416b4c
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.004104f3
test al, al
jne 0x411979
push ecx
push 0x4d5
lea ecx, [ebp - 0x10]
call fcn.00416b4c
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.004104f3
test al, al
je 0x4119a6
and dword [ebp - 4], 0
lea eax, [ebp - 4]
push eax
push 0x8004667e
push edi
call dword [sym.imp.WS2_32.dll_ioctlsocket]
and byte [ebx], 0xfc
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
mov ecx, dword [ebp + 0xc]
mov esi, eax
test esi, esi
setne dl
call fcn.004118af
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x4119ad
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, ecx
mov dword [ebp - 8], esi
push edi
mov edi, 0x45c0e0
cmp esi, 0xffffffff
jne 0x4119e8
push edi
push 0x2719
lea ecx, [ebp - 0x14]
call fcn.00406641
mov ebx, dword [ebp + 0xc]
lea esi, [ebp - 0x14]
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp - 8]
mov edi, 0x45c0e0
jmp 0x411a02
push dword [ebp + 8]
push edx
push esi
call dword [sym.imp.WS2_32.dll_connect]
mov ebx, dword [ebp + 0xc]
test eax, eax
mov ecx, ebx
setne dl
call fcn.004118af
push ecx
push 0x2734
lea ecx, [ebp - 0x14]
call fcn.00416b4c
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.004104f3
test al, al
jne 0x411a3a
push ecx
push 0x2733
lea ecx, [ebp - 0x14]
call fcn.00416b4c
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.004104f3
test al, al
je 0x411aa9
push ebx
mov ecx, esi
call fcn.00411f16
pop ecx
test eax, eax
js 0x411aa9
and dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x411a63
push edi
push 0x2719
lea ecx, [ebp - 0x14]
call fcn.00406641
lea esi, [ebp - 0x14]
jmp 0x411aa4
lea eax, [ebp - 8]
mov dword [ebp - 8], 4
push eax
lea eax, [ebp - 4]
push eax
push 0x1007
push 0xffff
push esi
call dword [sym.imp.WS2_32.dll_getsockopt]
mov esi, eax
mov ecx, ebx
test esi, esi
setne dl
call fcn.004118af
cmp esi, 0xffffffff
je 0x411aa9
push edi
push dword [ebp - 4]
lea ecx, [ebp - 0x14]
call fcn.00406641
mov esi, eax
mov edi, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x411aae
Capabilities:
Receive data
Receive data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSARecv]
push 0x45c0e0
mov dword [ebp + 8], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x14]
call fcn.00406641
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov edi, ebx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004066a0
cmp eax, 0x40
jne 0x411b0d
push 0x45c0e0
push 0x2746
jmp 0x411b23
call fcn.004066a0
cmp eax, 0x4d2
jne 0x411b35
push 0x45c0e0
push 0x274d
lea ecx, [ebp - 0x14]
call fcn.00406641
mov edi, ebx
lea esi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x411b4d
call fcn.004066a0
cmp eax, 0x2738
je 0x411b58
call fcn.004066a0
cmp eax, 0xea
je 0x411b58
cmp dword [ebp + 8], 0
je 0x411b58
or eax, 0xffffffff
jmp 0x411b6e
xor eax, eax
lea esi, [ebp - 0x14]
mov edi, ebx
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411b73
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x11c], eax
mov dword [ebp - 0x118], esi
mov bh, dl
push edi
mov edi, dword [ebp + 0x18]
cmp esi, 0xffffffff
jne 0x411bd3
push 0x45c0e0
push 0x2719
lea ecx, [ebp - 0x114]
call fcn.00406641
lea esi, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004357ec
leave
ret
mov bl, bh
and bl, 0x10
cmp byte [ebp + 0x14], 0
je 0x411bf8
test bl, bl
je 0x411bf8
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
jmp 0x411bb9
push edi
push ecx
push dword [ebp + 0xc]
mov edx, eax
mov ecx, esi
call fcn.00411aae
add esp, 0xc
test bl, bl
je 0x411c15
test eax, eax
je 0x411cb4
test eax, eax
jns 0x411bc4
test bh, 1
jne 0x411bc2
push ecx
push 0x2733
lea ecx, [ebp - 0x114]
call fcn.00416b4c
lea edx, [ebp - 0x114]
mov ecx, edi
call fcn.004104f3
test al, al
jne 0x411c66
push ecx
push 0x4d5
lea ecx, [ebp - 0x128]
call fcn.00416b4c
lea edx, [ebp - 0x128]
mov ecx, edi
call fcn.004104f3
test al, al
je 0x411bc2
push 0
push 0
push 0
lea eax, [ebp - 0x108]
mov dword [ebp - 0x104], esi
push eax
lea eax, [esi + 1]
mov dword [ebp - 0x108], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov ecx, edi
mov edx, esi
shr edx, 0x1f
call fcn.004118af
test esi, esi
js 0x411bc2
mov esi, dword [ebp - 0x118]
mov eax, dword [ebp - 0x11c]
jmp 0x411bf8
push 0x45c130
push 2
lea ecx, [ebp - 0x128]
call fcn.00406641
lea esi, [ebp - 0x128]
jmp 0x411bbf

Function at 0x411cd1
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
push esi
push edi
xor eax, eax
push eax
push eax
push eax
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
push edx
push ecx
call dword [sym.imp.WS2_32.dll_WSASend]
push 0x45c0e0
mov dword [ebp + 8], eax
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
push eax
lea ecx, [ebp - 0x10]
call fcn.00406641
mov ebx, dword [ebp + 0x10]
mov esi, eax
mov edi, ebx
mov ecx, ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.004066a0
cmp eax, 0x40
jne 0x411d2a
push 0x45c0e0
push 0x2746
jmp 0x411d40
call fcn.004066a0
cmp eax, 0x4d2
jne 0x411d50
push 0x45c0e0
push 0x274d
lea ecx, [ebp - 0x10]
call fcn.00406641
mov edi, ebx
lea esi, [ebp - 0x10]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
cmp dword [ebp + 8], 0
je 0x411d5b
or eax, 0xffffffff
jmp 0x411d71
xor eax, eax
lea esi, [ebp - 0x10]
mov edi, ebx
mov dword [ebp - 0x10], eax
mov dword [ebp - 0xc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 4]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
pop esi
pop ebx
leave
ret
Function at 0x411d76
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x128
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, ecx
mov dword [ebp - 0x118], eax
mov dword [ebp - 0x11c], esi
mov bl, dl
push edi
mov edi, dword [ebp + 0x18]
cmp esi, 0xffffffff
jne 0x411dd6
push 0x45c0e0
push 0x2719
lea ecx, [ebp - 0x114]
call fcn.00406641
lea esi, [ebp - 0x114]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004357ec
leave
ret
cmp byte [ebp + 0x14], 0
je 0x411df7
test bl, 0x10
je 0x411df7
xor ebx, ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
jmp 0x411dbc
push edi
push ecx
push dword [ebp + 0xc]
mov edx, eax
call fcn.00411cd1
add esp, 0xc
test eax, eax
jns 0x411dc7
test bl, 1
jne 0x411dc5
xor ebx, ebx
push ecx
push 0x2733
lea ecx, [ebp - 0x114]
call fcn.00416b4c
lea edx, [ebp - 0x114]
mov ecx, edi
call fcn.004104f3
test al, al
jne 0x411e59
push ecx
push 0x4d5
lea ecx, [ebp - 0x128]
call fcn.00416b4c
lea edx, [ebp - 0x128]
mov ecx, edi
call fcn.004104f3
test al, al
je 0x411dc5
push ebx
push ebx
lea eax, [ebp - 0x108]
mov dword [ebp - 0x104], esi
push eax
push ebx
lea eax, [esi + 1]
mov dword [ebp - 0x108], 1
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov ecx, edi
mov edx, esi
shr edx, 0x1f
call fcn.004118af
test esi, esi
js 0x411dc5
mov esi, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
push edi
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00411cd1
add esp, 0xc
test eax, eax
js 0x411e11
jmp 0x411dc7

Function at 0x411ebb
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
cmp ecx, 0xffffffff
jne 0x411ee9
push edi
push 0x45c0e0
push 0x2719
lea ecx, [ebp - 0xc]
call fcn.00406641
mov edi, dword [ebp + 0x18]
lea esi, [ebp - 0xc]
or eax, 0xffffffff
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
pop edi
jmp 0x411f13
or byte [edx], 8
push 4
push dword [ebp + 0x10]
push 0x80
push 0xffff
push ecx
call dword [sym.imp.WS2_32.dll_setsockopt]
mov ecx, dword [ebp + 0x18]
mov esi, eax
test esi, esi
setne dl
call fcn.004118af
mov eax, esi
pop esi
leave
ret
Function at 0x411f16
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov edi, dword [ebp + 8]
cmp ecx, 0xffffffff
jne 0x411f56
push 0x45c0e0
push 0x2719
lea ecx, [ebp - 0x218]
call fcn.00406641
lea esi, [ebp - 0x218]
or eax, 0xffffffff
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
jmp 0x411f9d
xor eax, eax
mov dword [ebp - 0x208], ecx
inc eax
mov dword [ebp - 0x104], ecx
mov dword [ebp - 0x20c], eax
mov dword [ebp - 0x108], eax
lea eax, [ebp - 0x108]
push 0
push eax
lea eax, [ebp - 0x20c]
push eax
push 0
lea eax, [ecx + 1]
push eax
call dword [sym.imp.WS2_32.dll_select]
mov esi, eax
mov ecx, edi
mov edx, esi
shr edx, 0x1f
call fcn.004118af
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.004357ec
leave
ret
Function at 0x41c03a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41c092
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c092
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x41c082
cmp esi, ecx
jae 0x41c092
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x41c070
cmp esi, ecx
jae 0x41c092
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x41c094
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41c437
Capabilities:
Delete registry key

Disassembly:
push 0x28
mov eax, 0x43b344
call fcn.0043805e
mov ebx, edx
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x41c4a7
push edi
lea ecx, [ebp - 0x2c]
call fcn.0040bb9e
lea ecx, [ebp - 0x2c]
mov esi, dword [eax + 0x10]
call fcn.00402ab8
test esi, esi
jne 0x41c46e
push str.Attempt_to_delete_an_empty_key
jmp 0x41c4ac
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jns 0x41c4a1
lea ecx, [ebp - 0x34]
call fcn.0041c234
and dword [ebp - 4], 0
push dword [eax]
push edi
push str.Failed_to_delete_key__S__S
push dword [ebp - 0x30]
call fcn.004026dd
add esp, 0x10
lea ecx, [ebp - 0x34]
call fcn.00402b3c
call fcn.0043800d
ret
push str.Attempt_to_delete_a_null_key
lea ecx, [ebp - 0x20]
call fcn.00405d9e
push 0x456d68
lea eax, [ebp - 0x20]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x41d4f0
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x43b6e9
call fcn.0043805e
mov edi, edx
mov esi, ecx
push edi
push str.deleteDesktopShortcut____S
push esi
call fcn.004026dd
add esp, 0xc
lea ecx, [ebp - 0x2c]
xor ebx, ebx
push ebx
push ebx
push ebx
push 6
pop edx
call fcn.0042f7a2
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x41d58b
lea ecx, [ebp - 0x30]
call fcn.004028e4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x2c]
cmp dword [ebp - 0x18], 7
push edi
cmova eax, dword [ebp - 0x2c]
push eax
lea eax, [ebp - 0x30]
push str._s_s.lnk
push eax
call fcn.0041d808
mov ecx, dword [ebp - 0x30]
add esp, 0x10
call fcn.0042fc1e
test al, al
je 0x41d583
push dword [ebp - 0x30]
push str.deleteDesktopShortcut____S
push esi
call fcn.004026dd
add esp, 0xc
push dword [ebp - 0x30]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ebx, [eax - 1]
neg ebx
sbb bl, bl
inc bl
lea ecx, [ebp - 0x30]
call fcn.00402b3c
lea ecx, [ebp - 0x2c]
call fcn.00402ab8
mov al, bl
call fcn.0043800d
ret

Function at 0x41d59b
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x43b725
call fcn.0043805e
mov bl, dl
mov esi, ecx
mov edi, dword [ebp + 8]
push edi
push str.deleteProgramsShortcut____S
push esi
call fcn.004026dd
add esp, 0xc
movzx edx, bl
xor edx, 1
lea ecx, [ebp - 0x28]
add edx, 3
push 1
push 0
push 0
call fcn.0042f7a2
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x41d639
lea ecx, [ebp - 0x2c]
call fcn.004028e4
mov byte [ebp - 4], 1
lea eax, [ebp - 0x28]
cmp dword [ebp - 0x14], 7
push edi
cmova eax, dword [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push str._s_s.lnk
push eax
call fcn.0041d808
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
call fcn.0042fc1e
test al, al
je 0x41d631
push dword [ebp - 0x2c]
push str.deleteProgramsShortcut____S
push esi
call fcn.004026dd
add esp, 0xc
push dword [ebp - 0x2c]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
lea ecx, [ebp - 0x2c]
call fcn.00402b3c
lea ecx, [ebp - 0x28]
call fcn.00402ab8
call fcn.0043800d
ret
Function at 0x41eab0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b9c5
mov eax, dword fs:[0]
push eax
mov eax, 0x1070
call fcn.00437f50
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov eax, dword [ebp + 0xc]
mov edi, dword [ebp + 8]
mov edx, dword [ebp + 0x10]
push eax
push edi
mov dword [ebp - 0x1030], eax
lea eax, [ecx + 0x150]
push str.Bootstrapper::CreateProcess_module___S__args___S
push eax
mov dword [ebp - 0x1034], edx
call fcn.004026dd
push 0x44
pop esi
push esi
lea eax, [ebp - 0x107c]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0x1c
mov dword [ebp - 0x107c], esi
lea eax, [ebp - 0x1014]
push 0x1000
push 0
push eax
call sub.VCRUNTIME140.dll_memset
mov ebx, dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscat_s]
lea eax, [ebp - 0x1014]
add esp, 0xc
mov esi, 0x800
cmp word [edi], 0x22
je 0x41eb81
push 0x448150
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x1014]
push edi
push esi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0x448150
push esi
push eax
call ebx
jmp 0x41eb8a
push edi
push esi
push eax
call dword [sym.imp.api_ms_win_crt_string_l1_1_0.dll_wcscpy_s]
add esp, 0xc
lea eax, [ebp - 0x1014]
push 0x448154
push esi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x1014]
push dword [ebp - 0x1030]
push esi
push eax
call ebx
add esp, 0xc
lea eax, [ebp - 0x102c]
push edi
push str.CreateProcess__S_failed
push eax
call fcn.0040f01b
add esp, 0xc
mov esi, eax
push dword [ebp - 0x1034]
xor ecx, ecx
lea eax, [ebp - 0x107c]
push eax
push ecx
push ecx
push 0x20
push ecx
push ecx
push ecx
lea eax, [ebp - 0x1014]
mov dword [ebp - 4], ecx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
mov edx, esi
mov ecx, eax
call fcn.0041c207
lea ecx, [ebp - 0x102c]
call fcn.004027a6
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004357ec
leave
ret 0xc

Function at 0x41f163
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x118
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x110
lea eax, [ebp - 0x114]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x118], 0x114
lea eax, [ebp - 0x118]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
test eax, eax
je 0x41f1bc
cmp dword [ebp - 0x108], 2
jne 0x41f1bc
cmp dword [ebp - 0x114], 5
sete al
jmp 0x41f1be
xor al, al
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004357ec
leave
ret
Function at 0x41f3ad
Capabilities:
Get token membership

Disassembly:
push 0x8c
mov eax, 0x43baa4
call fcn.0043805e
xor ebx, ebx
mov esi, vtable.ATL::CAccessToken.0
mov dword [ebp - 0x88], esi
mov dword [ebp - 0x84], ebx
mov dword [ebp - 0x80], ebx
mov dword [ebp - 0x7c], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 0x98], esi
mov dword [ebp - 0x94], ebx
mov dword [ebp - 0x90], ebx
mov dword [ebp - 0x8c], ebx
push 0x220
push 0x20
push 2
lea eax, [ebp - 0x74]
mov byte [ebp - 4], 1
push 0x44bc1c
push eax
call fcn.0041f1ec
add esp, 0x14
mov byte [ebp - 4], 2
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
lea ecx, [ebp - 0x78]
mov edi, 0x2000a
push ecx
push 1
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenThreadToken]
test eax, eax
je 0x41f449
mov eax, dword [ebp - 0x88]
lea ecx, [ebp - 0x88]
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x84], eax
jmp 0x41f472
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x3f0
jne 0x41f46c
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
lea ecx, [ebp - 0x78]
push ecx
push edi
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
jne 0x41f42f
mov eax, dword [ebp - 0x84]
lea ecx, [ebp - 0x78]
push ecx
push 2
push eax
call dword [sym.imp.ADVAPI32.dll_DuplicateToken]
test eax, eax
je 0x41f49d
mov eax, dword [ebp - 0x98]
lea ecx, [ebp - 0x98]
call dword [eax + 4]
mov eax, dword [ebp - 0x78]
mov dword [ebp - 0x94], eax
jmp 0x41f4a3
mov eax, dword [ebp - 0x94]
lea ecx, [ebp - 0x78]
push ecx
lea ecx, [ebp - 0x70]
push ecx
push eax
call dword [sym.imp.ADVAPI32.dll_CheckTokenMembership]
test eax, eax
je 0x41f4bd
cmp dword [ebp - 0x78], 0
setne bl
lea ecx, [ebp - 0x74]
call fcn.0041f2b7
lea ecx, [ebp - 0x98]
mov dword [ebp - 0x98], esi
call fcn.0041f369
lea ecx, [ebp - 0x88]
mov dword [ebp - 0x88], esi
call fcn.0041f369
mov al, bl
call fcn.0043800d
ret