joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40b780
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x34
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 8]
push esi
push edi
or edi, 0xffffffff
mov esi, ecx
cmp ebx, edi
jne 0x40b7a6
xor eax, eax
jmp 0x40b86b
mov eax, dword [esi + 0x20]
mov ecx, dword [eax]
test ecx, ecx
je 0x40b7cf
mov edx, dword [esi + 0x30]
mov eax, dword [edx]
add eax, ecx
cmp ecx, eax
jae 0x40b7cf
dec dword [edx]
mov edx, dword [esi + 0x20]
mov esi, dword [edx]
lea ecx, [esi + 1]
mov dword [edx], ecx
mov byte [esi], bl
mov eax, ebx
jmp 0x40b86b
cmp dword [esi + 0x4c], 0
je 0x40b869
mov ecx, esi
call fcn.0040bda8
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40b7fd
movsx eax, bl
push dword [esi + 0x4c]
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fputc]
cmp eax, edi
pop ecx
pop ecx
cmove ebx, edi
jmp 0x40b7c8
lea eax, [ebp - 0x2c]
mov byte [ebp - 0x25], bl
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x34]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x25]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::out_struct__Mbstatet___char_const___char_const___char_const____char___char___char___const]
sub eax, 0
je 0x40b838
sub eax, 1
je 0x40b838
dec eax
sub eax, 1
jne 0x40b869
movsx eax, byte [ebp - 0x25]
jmp 0x40b7ea
mov eax, dword [ebp - 0x2c]
lea ecx, [ebp - 0x24]
sub eax, ecx
mov dword [ebp - 0x30], eax
je 0x40b85c
push dword [esi + 0x4c]
push eax
mov eax, ecx
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp dword [ebp - 0x30], eax
jne 0x40b869
lea eax, [ebp - 0x25]
mov byte [esi + 0x3d], 1
cmp dword [ebp - 0x34], eax
cmovne edi, ebx
mov eax, edi
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043570c
leave
ret 4

Function at 0x40bdf8
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov eax, dword [0x45c040]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
mov esi, ecx
xor ebx, ebx
push edi
cmp dword [esi + 0x38], ebx
je 0x40be50
cmp byte [esi + 0x3d], bl
je 0x40be50
mov eax, dword [esi]
push 0xffffffffffffffff
call dword [eax + 0xc]
cmp eax, 0xffffffff
je 0x40be8a
mov ecx, dword [esi + 0x38]
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x24]
push eax
lea eax, [esi + 0x40]
push eax
call dword [sym.imp.MSVCP140.dll_public:_int___thiscall_std::codecvt_char__char__struct__Mbstatet_::unshift_struct__Mbstatet___char___char___char___const]
sub eax, ebx
je 0x40be61
sub eax, 1
je 0x40be64
dec eax
sub eax, 1
jne 0x40be8a
mov byte [esi + 0x3d], bl
mov al, 1
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0043570c
leave
ret
mov byte [esi + 0x3d], bl
mov edi, dword [ebp - 0x28]
lea eax, [ebp - 0x24]
sub edi, eax
je 0x40be82
push dword [esi + 0x4c]
push edi
push 1
push eax
call dword [sym.imp.api_ms_win_crt_stdio_l1_1_0.dll_fwrite]
add esp, 0x10
cmp edi, eax
jne 0x40be8a
cmp byte [esi + 0x3d], bl
sete al
jmp 0x40be52
xor al, al
jmp 0x40be52
Function at 0x40edbb
Capabilities:
Hide graphical window

Disassembly:
push edi
mov edi, ecx
call fcn.004305d8
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 0x410b47
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 0x410b91
call dword [sym.imp.KERNEL32.dll_TerminateThread]
jmp 0x410ba7
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 0x410baa
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 0x410c29
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.00410573
test al, al
jne 0x410d58
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 0x410ca4
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.00410573
test al, al
je 0x410c9e
lea eax, [esp + 0x28]
mov edx, str.thread.exit_event
push eax
jmp 0x410d66
mov esi, dword [esp + 0x10]
xor ecx, ecx
lea eax, [esp + 0x14]
mov dword [esp + 0x14], ecx
push eax
push ecx
push ebx
push 0x410d6c
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 0x410d3f
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 0x410ce5
push edi
call esi
mov eax, dword [esp + 0x10]
cmp dword [eax + 8], 0
je 0x410cf4
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.00410573
test al, al
je 0x410d3f
lea eax, [esp + 0x28]
mov edx, str.thread
push eax
jmp 0x410d66
test edi, edi
je 0x410d4f
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.00410751
int3
Function at 0x410db8
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 [0x45ecf0], eax
inc eax
cmp eax, 1
jne 0x410df6
lea eax, [esp]
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
mov ecx, 0x45ecf4
xchg dword [ecx], eax
mov ecx, dword [esp + 0x194]
xor ecx, esp
call fcn.0043570c
mov esp, ebp
pop ebp
ret

Function at 0x411982
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 0x411a3e
cmp byte [ebp + 8], 0
je 0x4119bd
test byte [ebx], 8
je 0x4119bd
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.00411f53
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.00411947
test esi, esi
je 0x411a3e
push ecx
push 0x2733
lea ecx, [ebp - 0x10]
call fcn.00416be4
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.0041058b
test al, al
jne 0x411a11
push ecx
push 0x4d5
lea ecx, [ebp - 0x10]
call fcn.00416be4
mov ecx, dword [ebp + 0xc]
lea edx, [ebp - 0x10]
call fcn.0041058b
test al, al
je 0x411a3e
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.00411947
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x411a45
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 0x411a80
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 0x411a9a
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.00411947
push ecx
push 0x2734
lea ecx, [ebp - 0x14]
call fcn.00416be4
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.0041058b
test al, al
jne 0x411ad2
push ecx
push 0x2733
lea ecx, [ebp - 0x14]
call fcn.00416be4
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.0041058b
test al, al
je 0x411b41
push ebx
mov ecx, esi
call fcn.00411fae
pop ecx
test eax, eax
js 0x411b41
and dword [ebp - 4], 0
cmp esi, 0xffffffff
jne 0x411afb
push edi
push 0x2719
lea ecx, [ebp - 0x14]
call fcn.00406641
lea esi, [ebp - 0x14]
jmp 0x411b3c
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.00411947
cmp esi, 0xffffffff
je 0x411b41
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 0x411b46
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 0x411ba5
push 0x45c0e0
push 0x2746
jmp 0x411bbb
call fcn.004066a0
cmp eax, 0x4d2
jne 0x411bcd
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 0x411be5
call fcn.004066a0
cmp eax, 0x2738
je 0x411bf0
call fcn.004066a0
cmp eax, 0xea
je 0x411bf0
cmp dword [ebp + 8], 0
je 0x411bf0
or eax, 0xffffffff
jmp 0x411c06
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 0x411c0b
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 0x411c6b
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.0043570c
leave
ret
mov bl, bh
and bl, 0x10
cmp byte [ebp + 0x14], 0
je 0x411c90
test bl, bl
je 0x411c90
xor eax, eax
mov dword [ebp - 0x114], eax
mov dword [ebp - 0x110], eax
mov dword [ebp - 0x10c], eax
jmp 0x411c51
push edi
push ecx
push dword [ebp + 0xc]
mov edx, eax
mov ecx, esi
call fcn.00411b46
add esp, 0xc
test bl, bl
je 0x411cad
test eax, eax
je 0x411d4c
test eax, eax
jns 0x411c5c
test bh, 1
jne 0x411c5a
push ecx
push 0x2733
lea ecx, [ebp - 0x114]
call fcn.00416be4
lea edx, [ebp - 0x114]
mov ecx, edi
call fcn.0041058b
test al, al
jne 0x411cfe
push ecx
push 0x4d5
lea ecx, [ebp - 0x128]
call fcn.00416be4
lea edx, [ebp - 0x128]
mov ecx, edi
call fcn.0041058b
test al, al
je 0x411c5a
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.00411947
test esi, esi
js 0x411c5a
mov esi, dword [ebp - 0x118]
mov eax, dword [ebp - 0x11c]
jmp 0x411c90
push 0x45c130
push 2
lea ecx, [ebp - 0x128]
call fcn.00406641
lea esi, [ebp - 0x128]
jmp 0x411c57

Function at 0x411d69
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 0x411dc2
push 0x45c0e0
push 0x2746
jmp 0x411dd8
call fcn.004066a0
cmp eax, 0x4d2
jne 0x411de8
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 0x411df3
or eax, 0xffffffff
jmp 0x411e09
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 0x411e0e
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 0x411e6e
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.0043570c
leave
ret
cmp byte [ebp + 0x14], 0
je 0x411e8f
test bl, 0x10
je 0x411e8f
xor ebx, ebx
mov dword [ebp - 0x114], ebx
mov dword [ebp - 0x110], ebx
mov dword [ebp - 0x10c], ebx
jmp 0x411e54
push edi
push ecx
push dword [ebp + 0xc]
mov edx, eax
call fcn.00411d69
add esp, 0xc
test eax, eax
jns 0x411e5f
test bl, 1
jne 0x411e5d
xor ebx, ebx
push ecx
push 0x2733
lea ecx, [ebp - 0x114]
call fcn.00416be4
lea edx, [ebp - 0x114]
mov ecx, edi
call fcn.0041058b
test al, al
jne 0x411ef1
push ecx
push 0x4d5
lea ecx, [ebp - 0x128]
call fcn.00416be4
lea edx, [ebp - 0x128]
mov ecx, edi
call fcn.0041058b
test al, al
je 0x411e5d
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.00411947
test esi, esi
js 0x411e5d
mov esi, dword [ebp - 0x11c]
mov edx, dword [ebp - 0x118]
push edi
push ecx
push dword [ebp + 0xc]
mov ecx, esi
call fcn.00411d69
add esp, 0xc
test eax, eax
js 0x411ea9
jmp 0x411e5f

Function at 0x411f53
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
cmp ecx, 0xffffffff
jne 0x411f81
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 0x411fab
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.00411947
mov eax, esi
pop esi
leave
ret
Function at 0x411fae
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 0x411fee
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 0x412035
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.00411947
mov eax, esi
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.0043570c
leave
ret
Function at 0x41c0d2
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 0x41c12a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x41c12a
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov edx, dword [ebp + 8]
lea ecx, [esi + eax]
and edx, 0xf
jbe 0x41c11a
cmp esi, ecx
jae 0x41c12a
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub edx, 1
jne 0x41c108
cmp esi, ecx
jae 0x41c12a
xor eax, eax
cmp word [esi], ax
cmove esi, eax
mov eax, esi
jmp 0x41c12c
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x41c4cf
Capabilities:
Delete registry key

Disassembly:
push 0x28
mov eax, 0x43b266
call fcn.00437f7e
mov ebx, edx
mov dword [ebp - 0x30], ecx
mov edi, dword [ebp + 8]
test edi, edi
je 0x41c53f
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 0x41c506
push str.Attempt_to_delete_an_empty_key
jmp 0x41c544
push edi
push ebx
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyW]
test eax, eax
jns 0x41c539
lea ecx, [ebp - 0x34]
call fcn.0041c2cc
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.00437f2d
ret
push str.Attempt_to_delete_a_null_key
lea ecx, [ebp - 0x20]
call fcn.00405d9e
push 0x456da8
lea eax, [ebp - 0x20]
push eax
call sub.VCRUNTIME140.dll__CxxThrowException
int3
Function at 0x41d588
Capabilities:
Delete file

Disassembly:
push 0x24
mov eax, 0x43b60b
call fcn.00437f7e
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.0042f750
add esp, 0xc
mov dword [ebp - 4], ebx
cmp dword [ebp - 0x1c], ebx
je 0x41d623
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.0041d8a0
mov ecx, dword [ebp - 0x30]
add esp, 0x10
call fcn.0042fba8
test al, al
je 0x41d61b
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.00437f2d
ret

Function at 0x41d633
Capabilities:
Delete file

Disassembly:
push 0x20
mov eax, 0x43b647
call fcn.00437f7e
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.0042f750
add esp, 0xc
and dword [ebp - 4], 0
cmp dword [ebp - 0x18], 0
je 0x41d6d1
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.0041d8a0
mov ecx, dword [ebp - 0x2c]
add esp, 0x10
call fcn.0042fba8
test al, al
je 0x41d6c9
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.00437f2d
ret
Function at 0x41ebf5
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x43b8e7
mov eax, dword fs:[0]
push eax
mov eax, 0x1070
call fcn.00437e70
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 0x41ecc6
push 0x448240
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 0x448240
push esi
push eax
call ebx
jmp 0x41eccf
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 0x448244
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.0040f0b3
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.0041c29f
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.0043570c
leave
ret 0xc