joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40d1b0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x64
push ebx
push esi
push edi
lea edi, [ebp - 0x64]
mov ecx, 0x19
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 4], 0x32000
mov dword [ebp - 0x24], 0
mov ax, word [ebp + 0x10]
push eax
mov ecx, dword [ebp + 0xc]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.0040d080
add esp, 0xc
mov dword [ebp - 8], eax
push 8
push 0
lea eax, [ebp - 0x10]
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
push 0x10
push 0
lea ecx, [ebp - 0x20]
push ecx
call sub.MSVCRT.dll_memset
add esp, 0xc
mov word [ebp - 0x20], 2
mov esi, esp
mov edx, dword [ebp + 0xc]
push edx
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x1c], eax
mov esi, esp
mov ax, word [ebp + 0x10]
push eax
call dword [sym.imp.WSOCK32.dll_htons]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov word [ebp - 0x1e], ax
push 0
push 0
push 0x10
lea ecx, [ebp - 0x20]
push ecx
mov edx, dword [ebp - 8]
push edx
call fcn.0040d2f0
add esp, 0x14
test eax, eax
jge 0x40d273
mov esi, esp
push str._4_IP_ADD_MEMBERSHIP_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x24], 0
mov esi, esp
push 4
lea eax, [ebp - 0x24]
push eax
push 0xb
push 0
mov ecx, dword [ebp - 8]
push ecx
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
test eax, eax
jge 0x40d2b7
mov esi, esp
push str._5_SO_BROADCAST_n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 4
cmp esi, esp
call sub.MSVCRT.dll__chkesp
or eax, 0xffffffff
jmp 0x40d2dd
mov esi, esp
push 4
lea edx, [ebp - 4]
push edx
push 0x1002
push 0xffff
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov eax, dword [ebp - 8]
pop edi
pop esi
pop ebx
add esp, 0x64
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret

Function at 0x40d2f0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
lea edi, [ebp - 0x50]
mov ecx, 0x14
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
xor ecx, ecx
mov cx, word [eax]
mov dword [ebp - 0x10], ecx
cmp dword [ebp - 0x10], 2
je 0x40d31b
jmp 0x40d371
mov edx, dword [ebp + 0xc]
mov dword [ebp - 4], edx
push 4
mov eax, dword [ebp - 4]
add eax, 4
push eax
lea ecx, [ebp - 0xc]
push ecx
call sub.MSVCRT.dll_memcpy
add esp, 0xc
cmp dword [ebp + 0x18], 0
jbe 0x40d33e
jmp 0x40d352
mov esi, esp
push 0
call dword [sym.imp.WSOCK32.dll_htonl]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 8], eax
mov esi, esp
push 8
lea edx, [ebp - 0xc]
push edx
push 0xc
push 0
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.WSOCK32.dll_setsockopt]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x40d37a
mov ecx, dword [ebp + 0x10]
mov dword [ebp + 0x10], ecx
or eax, 0xffffffff
pop edi
pop esi
pop ebx
add esp, 0x50
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x40d3e0
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea edi, [ebp - 0x48]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov dword [ebp - 8], 0
cmp dword [ebp + 8], 0
je 0x40d432
cmp dword [ebp + 0xc], 0
je 0x40d432
cmp dword [ebp + 0x18], 0
je 0x40d432
cmp dword [ebp + 0x1c], 0
je 0x40d432
mov eax, dword [ebp + 0x1c]
cmp dword [eax], 0
je 0x40d432
cmp dword [ebp + 0x10], 0
je 0x40d432
mov ecx, dword [ebp + 0x14]
and ecx, 0xffff
test ecx, ecx
jne 0x40d43c
mov eax, 0xa1006002
jmp 0x40d4f7
mov dword [ebp - 4], 0
jmp 0x40d44e
mov edx, dword [ebp - 4]
add edx, 1
mov dword [ebp - 4], edx
mov eax, dword [ebp - 4]
cmp eax, dword [ebp + 0xc]
jae 0x40d4ed
mov ecx, dword [ebp + 0x1c]
mov edx, dword [ebp - 8]
cmp edx, dword [ecx]
jae 0x40d4ed
mov ax, word [ebp + 0x14]
push eax
mov ecx, dword [ebp + 0x10]
push ecx
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp + 8]
add eax, edx
mov esi, esp
push eax
call dword [sym.imp.WSOCK32.dll_inet_addr]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
push eax
call fcn.0040d080
add esp, 0xc
mov ecx, dword [ebp - 8]
mov edx, dword [ebp + 0x18]
mov dword [edx + ecx*4], eax
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0x18]
cmp dword [ecx + eax*4], 0
jge 0x40d4df
mov edx, dword [ebp - 4]
shl edx, 4
mov eax, dword [ebp + 8]
add eax, edx
mov esi, esp
push eax
movsx ecx, word [0x419044]
add ecx, 0x15
push ecx
push str.e:_svn_workfile_softwarehisilion_srcipcamv100r003c01b041_s_allipcamv100r003c01b041_s_fipcamv100r003c01b041_src_boardhisi_vsrd_support_vscpcommonhi_vscp_devs_common.c
push str.__s___d_:error_IP__s__n
call dword [sym.imp.MSVCRT.dll_printf]
add esp, 0x10
cmp esi, esp
call sub.MSVCRT.dll__chkesp
jmp 0x40d4e8
mov edx, dword [ebp - 8]
add edx, 1
mov dword [ebp - 8], edx
jmp 0x40d445
mov eax, dword [ebp + 0x1c]
mov ecx, dword [ebp - 8]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x48
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x410c90
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
push ebx
push esi
push edi
lea edi, [ebp - 0x48]
mov ecx, 0x12
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp + 0xc], eax
mov esi, esp
lea ecx, [ebp - 8]
push ecx
push 0
mov edx, dword [ebp + 0x14]
push edx
mov eax, dword [ebp + 0x10]
push eax
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x410cdd
or eax, 0xffffffff
jmp 0x410ce7
mov ecx, dword [ebp + 8]
mov edx, dword [ebp - 4]
mov dword [ecx], edx
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x48
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x411070
Capabilities:
Get socket status
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x164
push ebx
push esi
push edi
lea edi, [ebp - 0x164]
mov ecx, 0x59
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0x10c], eax
mov dword [ebp - 0x108], 0
mov dword [ebp - 0x124], 0
jmp 0x4110bc
mov ecx, dword [ebp - 0x124]
add ecx, 1
mov dword [ebp - 0x124], ecx
mov edx, dword [ebp - 0x124]
cmp edx, dword [ebp - 0x108]
jae 0x4110e0
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp + eax*4 - 0x104]
cmp ecx, dword [ebp + 8]
jne 0x4110de
jmp 0x4110e0
jmp 0x4110ad
mov edx, dword [ebp - 0x124]
cmp edx, dword [ebp - 0x108]
jne 0x411116
cmp dword [ebp - 0x108], 0x40
jae 0x411116
mov eax, dword [ebp - 0x124]
mov ecx, dword [ebp + 8]
mov dword [ebp + eax*4 - 0x104], ecx
mov edx, dword [ebp - 0x108]
add edx, 1
mov dword [ebp - 0x108], edx
xor eax, eax
test eax, eax
jne 0x4110a1
cmp dword [ebp + 8], 0xffffffff
je 0x41112e
cmp dword [ebp + 0x10], 0
je 0x41112e
cmp dword [ebp + 0x14], 0
jne 0x411138
mov eax, 0xa1006002
jmp 0x411249
mov ecx, dword [ebp + 0x10]
mov dword [ebp - 0x114], ecx
cmp dword [ebp - 0x10c], 0
jle 0x411247
cmp dword [ebp + 0xc], 0
je 0x4111ca
mov edx, dword [ebp + 0xc]
cmp dword [edx], 0
jne 0x411165
mov eax, dword [ebp + 0xc]
cmp dword [eax + 4], 0
je 0x4111ca
mov ecx, dword [ebp + 0xc]
mov edx, dword [ecx]
mov dword [ebp - 0x120], edx
mov eax, dword [ebp + 0xc]
mov ecx, dword [eax + 4]
mov dword [ebp - 0x11c], ecx
xor edx, edx
test edx, edx
jne 0x411165
mov esi, esp
lea eax, [ebp - 0x120]
push eax
push 0
lea ecx, [ebp - 0x108]
push ecx
push 0
mov edx, dword [ebp + 8]
add edx, 1
push edx
call dword [sym.imp.WSOCK32.dll_select]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jge 0x4111bd
mov eax, 0xa1528103
jmp 0x411249
cmp dword [ebp - 4], 0
jne 0x4111ca
mov eax, 0xa1528101
jmp 0x411249
mov eax, dword [ebp + 0x18]
neg eax
sbb eax, eax
and eax, 0x10
mov dword [ebp - 0x118], eax
mov esi, esp
mov ecx, dword [ebp - 0x118]
push ecx
mov edx, dword [ebp + 0x18]
push edx
push 0
mov eax, dword [ebp - 0x10c]
push eax
mov ecx, dword [ebp - 0x114]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.WSOCK32.dll_sendto]
cmp esi, esp
call sub.MSVCRT.dll__chkesp
mov dword [ebp - 0x110], eax
cmp dword [ebp - 0x110], 0
jge 0x41121e
mov eax, 0xa1528103
jmp 0x411249
mov eax, dword [ebp - 0x10c]
sub eax, dword [ebp - 0x110]
mov dword [ebp - 0x10c], eax
mov ecx, dword [ebp - 0x114]
add ecx, dword [ebp - 0x110]
mov dword [ebp - 0x114], ecx
jmp 0x411141
xor eax, eax
pop edi
pop esi
pop ebx
add esp, 0x164
cmp ebp, esp
call sub.MSVCRT.dll__chkesp
mov esp, ebp
pop ebp
ret
Function at 0x401000
Capabilities:
Terminate process

Disassembly:
sub esp, 0x24
xor eax, eax
push ebx
mov ebx, ecx
push esi
push edi
or ecx, 0xffffffff
mov edi, 0x41a40c
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [ebx + 0x210]
mov eax, ecx
mov esi, edi
shr ecx, 2
mov edi, edx
lea edx, [ebx + 0x314]
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
push 0x104
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41a40c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x418]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41a40c
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
lea edx, [ebx + 0x108]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
xor eax, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, 0x41a40c
or ecx, 0xffffffff
mov dword [ebx], 0
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea esi, [ebx + 4]
mov dword [ebx + 0x20c], 0
push esi
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea ecx, [esp + 0xc]
push ecx
push esi
call fcn.00402af0
mov eax, dword [esp + 0x28]
add esp, 8
cmp eax, 0x4b000
jle 0x4010f0
mov ecx, ebx
call fcn.00401470
push 0
call fcn.00402945
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x24
ret
Function at 0x401400
Capabilities:
Create process on windows

Disassembly:
sub esp, 0x54
push esi
push edi
mov ecx, 0x11
xor eax, eax
lea edi, [esp + 0x18]
mov esi, dword [esp + 0x60]
rep stosd dword es:[edi], eax
lea eax, [esp + 8]
lea ecx, [esp + 0x18]
push eax
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0
push esi
mov dword [esp + 0x40], 0x44
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
mov eax, dword [esp + 0x64]
test eax, eax
jne 0x40145b
mov edx, dword [esp + 8]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
push esi
call fcn.0040b0b5
add esp, 4
pop edi
pop esi
add esp, 0x54
ret 8
Function at 0x407e91
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x419df0
cmp edx, dword [eax]
je 0x407eb3
add eax, 8
inc ecx
cmp eax, 0x419e80
jl 0x407ea4
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x419df0]
jne 0x407fe1
mov eax, dword [0x41c424]
cmp eax, 1
je 0x407fbb
test eax, eax
jne 0x407ee4
cmp dword [0x41968c], 1
je 0x407fbb
cmp edx, 0xfc
je 0x407fe1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407f1b
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00407ff0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00404e50
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x407f5e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00404e50
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x415b0c
push edi
call fcn.0040a250
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00407ff0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00408000
lea eax, [ebp - 0xa0]
push 0x415aec
push eax
call fcn.00408000
push dword [esi + 0x419df4]
lea eax, [ebp - 0xa0]
push eax
call fcn.00408000
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.0040a1bd
add esp, 0x2c
pop edi
jmp 0x407fe1
lea eax, [ebp + 8]
lea esi, [esi + 0x419df4]
push 0
push eax
push dword [esi]
call fcn.00404e50
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret

Function at 0x40df31
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x40df69
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.0040bd56
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0040bd2e
jmp 0x40df75
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x40f4b4
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x40f4f6
call fcn.00411f8b
mov esi, dword [eax + 0xc]
push pe_nt_image_headers32
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x40f4f6
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x40f4ed
xor eax, eax
jmp 0x40f4fe
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0040f504
pop edi
pop esi
pop ebx
ret 4
Function at 0x412667
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x412695
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4126b3
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004125cd
jmp 0x4126b3
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4126b3
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004125cd
test edi, edi
mov eax, edi
jne 0x41269d
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401769
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x40b03c]
jne 0x401773
repz ret
jmp fcn.0040346c

Function at 0x40690c
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004027e8
and dword [ebp - 4], 0
cmp dword [0x40c674], 0
mov ebx, eax
jne 0x4069bd
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x406a6e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4094ec
push edi
call esi
test eax, eax
je 0x406a6e
push eax
call fcn.00402776
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x40c674], eax
call esi
push eax
call fcn.00402776
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x40c678], eax
call esi
push eax
call fcn.00402776
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x40c67c], eax
call esi
push eax
call fcn.00402776
pop ecx
mov dword [0x40c684], eax
test eax, eax
je 0x4069bd
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00402776
pop ecx
mov dword [0x40c680], eax
mov eax, dword [0x40c680]
cmp eax, ebx
je 0x406a15
cmp dword [0x40c684], ebx
je 0x406a15
push eax
call fcn.004027f1
push dword [0x40c684]
mov esi, eax
call fcn.004027f1
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x406a15
test edi, edi
je 0x406a15
call esi
test eax, eax
je 0x406a0c
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x406a0c
test byte [ebp - 0xc], 1
jne 0x406a15
or dword [ebp + 0x10], 0x200000
jmp 0x406a4e
mov eax, dword [0x40c678]
cmp eax, ebx
je 0x406a4e
push eax
call fcn.004027f1
pop ecx
test eax, eax
je 0x406a4e
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x406a4e
mov eax, dword [0x40c67c]
cmp eax, ebx
je 0x406a4e
push eax
call fcn.004027f1
pop ecx
test eax, eax
je 0x406a4e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x40c674]
call fcn.004027f1
pop ecx
test eax, eax
je 0x406a6e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x406a70
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401d80
Capabilities:
Read file on windows

Disassembly:
push 0xffffffffffffffff
push 0x435d94
mov eax, dword fs:[0]
push eax
sub esp, 0x14
push ebx
push ebp
push esi
push edi
mov eax, dword [0x44dd60]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
mov esi, ecx
mov ebp, dword [esp + 0x38]
xor ebx, ebx
mov dword [esp + 0x30], ebx
push 0xc
mov dword [esp + 0x18], ebx
call fcn.0040a13f
add esp, 4
mov dword [esp + 0x18], eax
mov ecx, 1
mov dword [esp + 0x30], ecx
cmp eax, ebx
je 0x401ddc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ecx
jmp 0x401dde
xor eax, eax
mov byte [esp + 0x30], bl
mov dword [ebp], eax
mov dword [esp + 0x30], ebx
mov eax, dword [esp + 0x40]
push ebx
lea edx, [esp + 0x24]
push edx
push eax
mov dword [esp + 0x28], eax
mov eax, dword [esp + 0x48]
mov dword [esp + 0x20], ecx
mov ecx, dword [esp + 0x50]
push eax
mov dword [esp + 0x30], ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
je 0x401e84
mov edi, dword [ebp]
cmp esi, dword [edi + 4]
je 0x401e45
mov eax, dword [edi]
push esi
push eax
call fcn.00423ee5
mov ecx, dword [edi + 4]
add esp, 8
mov dword [edi], eax
cmp esi, ecx
jbe 0x401e42
mov edx, esi
sub edx, ecx
push edx
add ecx, eax
push ebx
push ecx
call fcn.00423b00
add esp, 0xc
mov dword [edi + 4], esi
mov eax, dword [ebp]
mov edx, dword [esp + 0x3c]
push ebx
lea ecx, [esp + 0x44]
push ecx
mov dword [esp + 0x48], esi
mov eax, dword [eax]
push esi
push eax
push edx
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x401e6b
cmp dword [esp + 0x40], esi
je 0x401e84
mov esi, dword [ebp]
cmp dword [esi + 4], ebx
je 0x401e84
mov eax, dword [esi]
push ebx
push eax
call fcn.00423ee5
add esp, 8
mov dword [esi], eax
mov dword [esi + 4], ebx
mov eax, ebp
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x20
ret
Function at 0x402166
Capabilities:
Delete registry value
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x438036
mov eax, dword fs:[0]
push eax
sub esp, 0x18
push ebx
push esi
push edi
mov eax, dword [0x44dd60]
xor eax, esp
push eax
lea eax, [esp + 0x28]
mov dword fs:[0], eax
xor ebx, ebx
xor esi, esi
inc ebx
mov dword [esp + 0x10], esi
cmp dword [ebp + 0xc], esi
je 0x4021a5
mov ecx, dword [ebp + 0xc]
jmp 0x4021ba
lea eax, [esp + 0x18]
push eax
call fcn.00417d36
pop ecx
mov dword [esp + 0x30], esi
mov ecx, dword [eax]
mov dword [esp + 0x10], ebx
lea eax, [esp + 0x14]
push eax
call fcn.00418362
mov dword [esp + 0x30], 2
test byte [esp + 0x10], bl
je 0x4021e0
and dword [esp + 0x10], 0xfffffffe
lea ecx, [esp + 0x18]
call fcn.004167f9
cmp byte [ebp + 8], 0
je 0x40228b
push dword [esp + 0x14]
push dword [ebp + 8]
call fcn.00408a92
pop ecx
pop ecx
test al, al
jne 0x402296
lea eax, [esp + 0x20]
push eax
mov ecx, 0x441fa4
call fcn.00418362
mov byte [esp + 0x30], 3
lea ecx, [esp + 0x14]
push ecx
lea ecx, [esp + 0x20]
push ecx
mov esi, eax
call fcn.0040dd23
mov byte [esp + 0x38], 4
lea ecx, [esp + 0x20]
push str.___minimize
push ecx
mov esi, eax
call fcn.004075de
add esp, 0x10
mov byte [esp + 0x30], 6
lea ecx, [esp + 0x1c]
call fcn.004167f9
mov byte [esp + 0x30], 7
lea ecx, [esp + 0x20]
call fcn.004167f9
mov ecx, dword [esp + 0x18]
mov eax, dword [ecx - 0xc]
add eax, eax
push eax
push ecx
push ebx
push 0x441bb4
push str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
mov byte [esp + 0x30], 2
lea ecx, [esp + 0x18]
call fcn.004167f9
jmp 0x4022b8
push dword [ebp + 0xc]
push esi
call fcn.00408a92
pop ecx
pop ecx
mov ebx, dword [sym.imp.SHLWAPI.dll_SHDeleteValueW]
mov edi, 0x441bb4
push edi
mov esi, str.SOFTWAREMicrosoftWindowsCurrentVersionRun
push esi
push SysReAllocString
call ebx
push edi
push esi
push reloc.OLEAUT32.dll_SysReAllocString
call ebx
or dword [esp + 0x30], 0xffffffff
lea ecx, [esp + 0x14]
call fcn.004167f9
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4026ae
Capabilities:
Create process on windows
Terminate process

Disassembly:
push ebx
xor ebx, ebx
push esi
mov byte [0x452374], 1
push 1
cmp byte [0x452376], bl
je 0x4026cb
push ebx
push 0x4415c8
jmp 0x4026d2
push dword [0x4524b0]
push ebx
push dword [0x4523b0]
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
mov esi, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x7d0
call esi
cmp byte [0x452376], bl
je 0x402700
push 0xbb8
call esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
pop esi
pop ebx
ret
Function at 0x40330b
Capabilities:
Set registry value

Disassembly:
push 0x50
mov eax, 0x437f6e
call fcn.004256c4
xor ebx, ebx
mov dword [ebp - 4], ebx
mov byte [ebp - 4], 1
push 4
call fcn.0040a13f
pop ecx
mov dword [ebp - 0x14], eax
mov byte [ebp - 4], 2
cmp eax, ebx
je 0x40333b
push eax
call fcn.0040c11d
jmp 0x40333d
xor eax, eax
mov byte [ebp - 4], 1
mov dword [0x452378], eax
push dword [eax]
call fcn.0040d287
pop ecx
mov dword [ebp - 4], ebx
jmp 0x40335f
mov eax, dword [ebp + 8]
mov eax, dword [eax - 0xc]
add eax, eax
push eax
lea esi, [ebp + 8]
call fcn.0040a005
push eax
push 1
push str.DisplayIcon
push str.SOFTWAREMicrosoftWindowsCurrentVersionUninstallAdvanced_System_Repair_Pro
push SysReAllocString
call dword [sym.imp.SHLWAPI.dll_SHSetValueW]
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
mov ecx, str.NotifUpdate
call fcn.00418362
mov byte [ebp - 4], 4
push dword [0x452378]
mov byte [ebp - 4], bl
call fcn.004168bc
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
mov ecx, str.FirstScanDone
call fcn.00418362
mov byte [ebp - 4], 5
push dword [0x452378]
mov byte [ebp - 4], bl
call fcn.004168bc
push ebx
push ecx
mov eax, esp
mov dword [ebp - 0x14], esp
push eax
mov ecx, str.LastDriverFix
call fcn.00418362
mov byte [ebp - 4], 6
push dword [0x452378]
mov byte [ebp - 4], bl
call fcn.004168bc
mov byte [ebp - 4], 7
cmp byte [ebp + 0xc], bl
je 0x403488
lea eax, [ebp - 0x5c]
push eax
call fcn.0040d530
mov byte [ebp - 4], 8
push 0x27
lea eax, [ebp - 0x14]
push eax
call fcn.00416733
mov esi, eax
mov byte [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
call fcn.0040d530
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2c]
push eax
call fcn.0040d530
mov byte [ebp - 4], 0xb
mov esi, dword [esi]
push 0xf003f
push ebx
push ebx
call dword [sym.imp.ADVAPI32.dll_OpenSCManagerW]
cmp eax, ebx
je 0x403455
push eax
push esi
call fcn.0040d44b
pop ecx
pop ecx
mov byte [ebp - 4], 0xa
lea eax, [ebp - 0x2c]
push eax
call fcn.00417ef3
mov byte [ebp - 4], 9
lea eax, [ebp - 0x44]
push eax
call fcn.00417ef3
mov byte [ebp - 4], 8
lea ecx, [ebp - 0x14]
call fcn.004167f9
mov byte [ebp - 4], 7
lea eax, [ebp - 0x5c]
push eax
call fcn.00417ef3
mov dword [ebp - 4], ebx
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 8]
call fcn.004167f9
call fcn.00425769
ret