joyce8/EMBER2024-capa huggingface dataset:
Function at 0x404f2d
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, ecx
push str.bingscc
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
movsx eax, word [ebp + 0xc]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
push dword [ebp + 8]
call fcn.0040495c
mov ax, word [ebp + 0x10]
pop esi
cmp ax, word [ebp - 0x50]
je 0x404f66
push 1
pop eax
leave
ret 0xc
push 0
call dword [sym.imp.MSVCRT.dll_exit]

Function at 0x404f6e
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x54
push esi
mov esi, ecx
push str.kick
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
movsx eax, word [ebp + 0xc]
push eax
lea eax, [ebp - 0x54]
push eax
mov ecx, esi
push dword [ebp + 8]
call fcn.0040495c
mov ax, word [ebp + 0x10]
pop esi
cmp ax, word [ebp - 0x50]
je 0x404fa7
push 1
pop eax
leave
ret 0xc
push 0
call dword [sym.imp.MSVCRT.dll_exit]

Function at 0x404faf
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
push ebx
push esi
mov esi, ecx
push str.update
call dword [sym.imp.VMProtectSDK32.dll_VMProtectBegin]
movsx eax, word [ebp + 0xc]
push eax
lea eax, [ebp - 0xa8]
push eax
mov ecx, esi
push dword [ebp + 8]
call fcn.0040495c
mov ax, word [ebp + 0x10]
cmp ax, word [ebp - 0xa4]
je 0x404ff2
push 1
pop eax
jmp 0x40511c
lea eax, [ebp - 0x92]
push eax
mov eax, dword [0x40bbe8]
add eax, 0x1fa8
push eax
call sub.MSVCRT.dll_strcmp
pop ecx
test eax, eax
pop ecx
je 0x405114
xor ebx, ebx
lea eax, [ebp - 0xa2]
push ebx
push 4
push eax
call sub.MFC42.DLL_AfxMessageBox_1
cmp eax, 6
jne 0x405114
push edi
push 0x10
pop ecx
xor eax, eax
lea edi, [ebp - 0x40]
mov dword [ebp - 0x44], ebx
rep stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x54]
push ebx
push eax
call sub.MSVCRT.dll_memset
add esp, 0xc
lea eax, [ebp - 0x44]
mov dword [ebp - 0x44], 0x44
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
push 0x400
mov word [ebp - 0x14], 5
call sub.MFC42.DLL_operatornew
mov dword [esp], str.__UpDate.exe
push eax
call sub.MSVCRT.dll_strcpy
pop ecx
lea eax, [ebp - 0x1a4]
pop ecx
mov dword [ebp - 0x18], 0x101
push 0x100
push eax
push ebx
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x1a4]
push eax
call sub.MSVCRT.dll_strlen
pop ecx
pop edi
xor ecx, ecx
cmp eax, ebx
jle 0x4050c5
lea edx, [ebp + eax - 0x1a4]
cmp byte [edx], 0x5c
je 0x4050bc
inc ecx
dec edx
cmp ecx, eax
jl 0x4050af
jmp 0x4050c5
sub eax, ecx
mov byte [ebp + eax - 0x1a4], bl
lea eax, [ebp - 0x1a4]
push str.Updata.exe
push eax
call sub.MSVCRT.dll_strcat
pop ecx
lea eax, [ebp - 0x92]
pop ecx
push 5
push 0x40bbec
push eax
lea eax, [ebp - 0x1a4]
push eax
mov eax, dword [0x40bbe8]
push str.open
push dword [eax + 0x20]
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov eax, dword [0x40bbe8]
push ebx
push ebx
push 0x12
push dword [eax + 0x20]
call dword [sym.imp.USER32.dll_PostMessageA]
jmp 0x40511a
call dword [sym.imp.VMProtectSDK32.dll_VMProtectEnd]
xor eax, eax
pop esi
pop ebx
leave
ret 0xc
Function at 0x4051b8
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 8]
push edi
xor eax, eax
and dword [ebp + 8], eax
lea edi, [ebp - 8]
mov dword [ebp - 4], ecx
lea ebx, [esi + 4]
stosd dword es:[edi], eax
mov eax, dword [ebp - 8]
mov edi, dword [ebp - 0xc]
mov ecx, 0x40b67c
mov edx, dword [ebp + 8]
cmp ecx, 0x40b6fc
mov dl, byte [edx + str.:2_]
jge 0x40520e
cmp dl, 0x20
movzx edx, dl
mov edx, dword [edx*4 + 0x40b678]
jbe 0x40520a
test dword [ebx], edx
je 0x405227
or edi, dword [ecx]
jmp 0x405227
test dword [esi], edx
jmp 0x405204
cmp dl, 0x20
movzx edx, dl
mov edx, dword [edx*4 + 0x40b678]
jbe 0x405221
test dword [ebx], edx
jmp 0x405223
test dword [esi], edx
je 0x405227
or eax, dword [ecx]
inc dword [ebp + 8]
add ecx, 4
cmp ecx, 0x40b77c
jl 0x4051e2
mov dword [esi], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
xor ecx, ecx
sub eax, edi
mov dword [ebp - 0xc], edi
mov dword [ebp - 8], ecx
je 0x405260
dec eax
jne 0x405274
push 0xf
pop edi
mov ecx, dword [ebp - 4]
push edi
push ebx
push esi
call fcn.004052f5
dec edi
jns 0x405250
jmp 0x405271
mov ecx, dword [ebp - 4]
push edi
push ebx
push esi
call fcn.004052f5
inc edi
cmp edi, 0x10
jl 0x405260
mov ecx, dword [ebp - 8]
mov edx, dword [ebx]
mov eax, dword [esi]
and dword [ebp + 8], 0
mov dword [esi], edx
mov dword [ebx], eax
mov edi, 0x40b67c
mov edx, dword [ebp + 8]
cmp edi, 0x40b6fc
mov dl, byte [edx + 0x40b5dc]
jge 0x4052b9
cmp dl, 0x20
movzx edx, dl
jbe 0x4052ae
test dword [edx*4 + 0x40b678], eax
je 0x4052d7
mov edx, dword [edi]
or dword [ebp - 0xc], edx
jmp 0x4052d7
mov edx, dword [edx*4 + 0x40b678]
test dword [esi], edx
jmp 0x4052a5
cmp dl, 0x20
movzx edx, dl
jbe 0x4052ca
test dword [edx*4 + 0x40b678], eax
jmp 0x4052d3
mov edx, dword [edx*4 + 0x40b678]
test dword [esi], edx
je 0x4052d7
or ecx, dword [edi]
inc dword [ebp + 8]
add edi, 4
cmp edi, 0x40b77c
jl 0x405285
mov eax, dword [ebp - 0xc]
pop edi
mov dword [esi], eax
mov dword [ebx], ecx
pop esi
xor eax, eax
pop ebx
leave
ret 8
Function at 0x4052f5
Capabilities:
Encode data using xor
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov edx, dword [ebp + 0xc]
push ebx
push esi
push edi
mov eax, dword [edx]
lea edi, [ebp - 7]
mov dword [ebp + 0xc], eax
xor eax, eax
stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
xor ebx, ebx
xor eax, eax
lea edi, [ebp - 0xc]
mov dword [ebp - 0x10], ebx
stosd dword es:[edi], eax
mov edi, 0x40b67c
mov eax, edi
movzx esi, byte [ebx + 0x40b77c]
cmp eax, 0x40b6dc
mov esi, dword [esi*4 + 0x40b678]
jge 0x405341
test dword [edx], esi
je 0x40534b
mov esi, dword [eax]
or dword [ebp - 0x10], esi
jmp 0x40534b
test dword [edx], esi
je 0x40534b
mov esi, dword [eax - 0x60]
or dword [ebp - 0xc], esi
add eax, 4
inc ebx
cmp eax, 0x40b73c
jl 0x405321
mov esi, dword [ebp + 0x10]
push 2
lea eax, [ebp - 0x10]
pop ebx
lea ecx, [ecx + esi*8 + 4]
mov esi, dword [ecx]
add ecx, 4
xor dword [eax], esi
add eax, 4
dec ebx
jne 0x405363
mov eax, dword [ebp - 0xc]
mov cl, 0x3f
shr eax, 8
mov bl, al
and dword [edx], 0
and bl, cl
shr eax, 6
mov byte [ebp - 1], bl
mov bl, al
and bl, cl
shr eax, 6
mov byte [ebp - 2], bl
mov bl, al
shr eax, 6
and al, cl
and bl, cl
mov byte [ebp - 4], al
mov eax, dword [ebp - 0x10]
shr eax, 8
mov byte [ebp - 3], bl
mov bl, al
and bl, cl
shr eax, 6
mov byte [ebp - 5], bl
mov bl, al
and bl, cl
shr eax, 6
mov byte [ebp - 6], bl
mov bl, al
shr eax, 6
and al, cl
and bl, cl
mov byte [ebp - 8], al
xor eax, eax
mov byte [ebp - 7], bl
xor ecx, ecx
movzx esi, byte [ebp + eax - 8]
movzx esi, byte [esi + ecx + 0x40b7ac]
or esi, dword [edx]
add ecx, 0x40
shl esi, 4
inc eax
cmp ecx, 0x1c0
mov dword [edx], esi
jl 0x4053cb
movzx ecx, byte [ebp + eax - 8]
shl eax, 6
movzx eax, byte [ecx + eax + 0x40b7ac]
or dword [edx], eax
xor eax, eax
xor ecx, ecx
movzx esi, byte [ecx + 0x40b65c]
mov esi, dword [esi*4 + 0x40b678]
test dword [edx], esi
je 0x405415
or eax, dword [edi]
add edi, 4
inc ecx
cmp edi, 0x40b6fc
jl 0x405401
mov ecx, dword [ebp + 8]
mov dword [edx], eax
pop edi
mov esi, dword [ecx]
xor esi, eax
mov eax, dword [ebp + 0xc]
mov dword [edx], esi
mov dword [ecx], eax
pop esi
xor eax, eax
pop ebx
leave
ret 0xc
Function at 0x40543a
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
mov ebx, ecx
push esi
push edi
xor eax, eax
lea esi, [ebx + 0x84]
push 8
lea edi, [ebp - 8]
push eax
push esi
mov dword [ebp - 4], ebx
stosd dword es:[edi], eax
call sub.MSVCRT.dll_memset
push 8
lea eax, [ebp - 0xc]
push dword [ebp + 8]
push eax
call sub.MSVCRT.dll_memcpy
push 0x80
add ebx, 4
push 0
push ebx
call sub.MSVCRT.dll_memset
mov edi, dword [ebp - 8]
mov ebx, dword [ebp - 0xc]
add esp, 0x24
xor edx, edx
mov eax, 0x40b67c
mov cl, byte [edx + str.91__]
cmp cl, 0x20
movzx ecx, cl
jbe 0x4054a6
test dword [ecx*4 + 0x40b678], edi
jmp 0x4054ad
test dword [ecx*4 + 0x40b678], ebx
je 0x4054b3
mov ecx, dword [eax]
or dword [esi], ecx
mov cl, byte [edx + 0x40b590]
cmp cl, 0x20
movzx ecx, cl
jbe 0x4054ca
test dword [ecx*4 + 0x40b678], edi
jmp 0x4054d1
test dword [ecx*4 + 0x40b678], ebx
je 0x4054d8
mov ecx, dword [eax]
or dword [esi + 4], ecx
add eax, 4
inc edx
cmp eax, 0x40b6ec
jl 0x40548f
xor edi, edi
lea ebx, [esi + 4]
mov ecx, dword [ebp - 4]
push edi
push ebx
push esi
call fcn.00405502
inc edi
cmp edi, 0x10
jl 0x4054e8
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 4

Function at 0x405502
Capabilities:
Encrypt data using des

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
and dword [ebp - 0xc], 0
push ebx
push esi
mov esi, dword [ebp + 0x10]
push edi
xor eax, eax
lea edi, [ebp - 8]
push 8
stosd dword es:[edi], eax
lea eax, [ecx + esi*8 + 4]
push 0
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
call sub.MSVCRT.dll_memset
movzx eax, byte [esi + 0x40b558]
mov ebx, dword [ebp + 8]
mov dword [ebp - 8], eax
mov ecx, dword [eax*4 + 0x40b568]
mov eax, dword [ebp + 0xc]
mov esi, dword [ebx]
add esp, 0xc
mov edx, dword [eax]
mov edi, esi
and edi, ecx
and edx, ecx
mov ecx, dword [ebp + 0x10]
cmp byte [ecx + 0x40b558], 1
jne 0x405564
shr edi, 0x1b
shr edx, 0x1b
jmp 0x40556a
shr edi, 0x1a
shr edx, 0x1a
mov ecx, dword [ebp - 8]
and edi, 0xfffffff0
shl esi, cl
mov ecx, dword [ebp + 0x10]
and edx, 0xfffffff0
mov dword [ebx], esi
mov cl, byte [ecx + 0x40b558]
shl dword [eax], cl
or dword [ebx], edi
or dword [eax], edx
xor edx, edx
mov ecx, 0x40b67c
movzx esi, byte [edx + 0x40b5ac]
cmp ecx, 0x40b6dc
jge 0x4055b0
mov esi, dword [esi*4 + 0x40b678]
test dword [ebx], esi
je 0x4055c4
mov esi, dword [ebp - 4]
mov edi, dword [ecx]
or dword [esi], edi
jmp 0x4055c4
mov esi, dword [esi*4 + 0x40b60c]
test dword [eax], esi
je 0x4055c4
mov esi, dword [ebp - 4]
mov edi, dword [ecx - 0x60]
or dword [esi + 4], edi
add ecx, 4
inc edx
cmp ecx, 0x40b73c
jl 0x40558d
pop edi
pop esi
xor eax, eax
pop ebx
leave
ret 0xc

Function at 0x405fe3
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
and dword [eax + 0x14], 0
and dword [eax + 0x10], 0
mov dword [eax], 0x67452301
mov dword [eax + 4], 0xefcdab89
mov dword [eax + 8], 0x98badcfe
mov dword [eax + 0xc], 0x10325476
ret 4
Function at 0x40611b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x400
push ebx
push 0x40ba20
push dword [ebp + 8]
mov ebx, ecx
call dword [sym.imp.MSVCRT.dll_fopen]
pop ecx
mov dword [ebp + 8], eax
test eax, eax
pop ecx
jne 0x40614c
push eax
push eax
push str.Cannot_OPen_The_File_
call sub.MFC42.DLL_AfxMessageBox_1
jmp 0x4061b7
push esi
lea eax, [ebx + 0x14]
push edi
push eax
mov ecx, ebx
call fcn.00405fe3
push dword [ebp + 8]
mov esi, dword [sym.imp.MSVCRT.dll_fread]
mov edi, 0x400
lea eax, [ebp - 0x400]
push edi
push 1
push eax
call esi
add esp, 0x10
test eax, eax
je 0x40619c
push eax
lea eax, [ebp - 0x400]
push eax
lea eax, [ebx + 0x14]
push eax
mov ecx, ebx
call fcn.0040600d
push dword [ebp + 8]
lea eax, [ebp - 0x400]
push edi
push 1
push eax
jmp 0x406171
lea eax, [ebx + 4]
mov ecx, ebx
push eax
lea eax, [ebx + 0x14]
push eax
call fcn.004060ad
push dword [ebp + 8]
call dword [sym.imp.MSVCRT.dll_fclose]
pop ecx
pop edi
pop esi
pop ebx
leave
ret 4
Function at 0x4013c0
Capabilities:
Set file attributes

Disassembly:
push dword [esp + 8]
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
setne al
ret

Function at 0x4013d4
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4b2c98], 0
jne 0x40140d
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00401377
mov eax, dword [eax]
push dword [ebp + 0xc]
push eax
call fcn.004013c0
push dword [ebp - 0xc]
mov bl, al
call fcn.004604e8
add esp, 0x14
mov al, bl
pop ebx
leave
ret
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
leave
ret

Function at 0x401432
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4b2c98], 0
jne 0x401467
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00401377
push dword [eax]
call fcn.00401420
push dword [ebp - 0xc]
mov bl, al
call fcn.004604e8
add esp, 0x10
mov al, bl
pop ebx
leave
ret
push 0
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
setne al
leave
ret

Function at 0x4016dc
Capabilities:
Delete file
Set file attributes

Disassembly:
push 0
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
test eax, eax
jne 0x4016ef
xor al, al
ret
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test eax, eax
setne al
ret

Function at 0x4016ff
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp byte [0x4b2c98], 0
jne 0x401734
push ebx
push dword [ebp + 8]
lea eax, [ebp - 0xc]
push eax
call fcn.00401377
push dword [eax]
call fcn.004016dc
push dword [ebp - 0xc]
mov bl, al
call fcn.004604e8
add esp, 0x10
mov al, bl
pop ebx
leave
ret
push 0
push dword [ebp + 8]
call fcn.004013d4
test al, al
pop ecx
pop ecx
jne 0x401746
leave
ret
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_DeleteFileW]
test eax, eax
setne al
leave
ret
Function at 0x4045f0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48f655
mov eax, dword fs:[0]
push eax
push ecx
push esi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 8], esi
xor eax, eax
mov ecx, 0xf
mov dword [esi + 0x18], ecx
mov dword [esi + 0x14], eax
mov byte [esi + 4], al
mov dword [esi + 0x34], ecx
mov dword [esi + 0x30], eax
mov dword [esp + 0x14], eax
mov byte [esi + 0x20], al
mov dword [esi + 0x38], eax
mov dword [esi + 0x3c], eax
mov dword [esi + 0x40], eax
mov dword [esi + 0x44], eax
mov dword [esi + 0x48], eax
mov dword [esi + 0x4c], eax
mov dword [esi + 0x68], ecx
mov dword [esi + 0x64], eax
mov byte [esi + 0x54], al
mov dword [esi + 0x84], ecx
mov dword [esi + 0x80], eax
mov byte [esi + 0x70], al
mov dword [esi + 0x88], eax
mov dword [esi + 0x8c], eax
mov dword [esi + 0x90], eax
mov dword [esi + 0x94], eax
mov dword [esi + 0x98], eax
mov dword [esi + 0x9c], eax
mov dword [esi + 0xb8], ecx
mov dword [esi + 0xb4], eax
mov byte [esi + 0xa4], al
mov dword [esi + 0xbc], eax
mov dword [esi + 0xc0], eax
mov dword [esi + 0xc4], eax
mov dword [esi + 0xc8], eax
mov dword [esi + 0xcc], eax
mov dword [esi + 0xe8], ecx
mov dword [esi + 0xe4], eax
mov byte [esi + 0xd4], al
mov dword [esi + 0xec], eax
mov dword [esi + 0xf0], eax
mov dword [esi + 0xf4], eax
mov dword [esi + 0xf8], eax
lea ecx, [esi + 0x100]
mov byte [esp + 0x14], 5
mov dword [esi + 0xfc], eax
call fcn.00446800
mov eax, esi
mov ecx, dword [esp + 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0x10
ret

Function at 0x4098e0
Capabilities:
Access peb ldr_data
Get ntdll base address

Disassembly:
push 0xffffffffffffffff
push 0x48ff15
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0xc], esi
xor ebx, ebx
mov dword [esi + 4], ebx
mov dword [esi + 0x14], ebx
mov dword [esi + 0x18], ebx
mov dword [esi + 0x1c], ebx
mov dword [esi], 0x49a494
mov dword [esp + 0x18], ebx
mov dword [esi + 0x24], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
mov eax, dword [0x4af104]
mov dword [esi + 0x3c], eax
mov ecx, dword [0x4af104]
mov dword [esi + 0x40], ecx
lea ecx, [esi + 0x44]
mov byte [esp + 0x18], 6
call fcn.0045b420
lea ecx, [esi + 0x8c]
mov byte [esp + 0x18], 7
call fcn.0045b420
mov byte [esi + 0x38], bl
mov eax, esi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop esi
pop ebx
add esp, 0x10
ret
Function at 0x40a590
Capabilities:
Encode data using xor
Encrypt data using tea

Disassembly:
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [sym.imp.WS2_32.dll_ntohl]
push esi
mov esi, eax
mov eax, dword [esi]
push edi
push eax
call ebp
mov ecx, dword [esi + 4]
push ecx
mov edi, eax
call ebp
mov esi, eax
mov eax, dword [esp + 0x28]
lea edx, [esp + 0x14]
xor ebx, ebx
sub eax, edx
mov dword [esp + 0x10], eax
jmp 0x40a5c4
mov eax, dword [esp + 0x10]
lea eax, [eax + ebx*4]
mov ecx, dword [esp + eax + 0x14]
push ecx
call ebp
mov dword [esp + ebx*4 + 0x14], eax
add ebx, 1
cmp ebx, 4
jl 0x40a5c0
mov ecx, dword [esp + 0x20]
mov eax, 0xe3779b90
mov dword [esp + 0x10], 0x10
jmp 0x40a5f0
mov ebx, edi
shl ebx, 4
add ebx, dword [esp + 0x1c]
mov edx, edi
shr edx, 5
add edx, ecx
xor edx, ebx
lea ebx, [eax + edi]
xor edx, ebx
sub esi, edx
mov edx, esi
shr edx, 5
add edx, dword [esp + 0x18]
mov ebx, esi
shl ebx, 4
add ebx, dword [esp + 0x14]
xor edx, ebx
lea ebx, [eax + esi]
xor edx, ebx
sub edi, edx
add eax, 0x61c88647
sub dword [esp + 0x10], 1
jne 0x40a5f0
push edi
mov edi, dword [sym.imp.WS2_32.dll_htonl]
call edi
mov ebx, dword [esp + 0x2c]
push esi
mov dword [ebx], eax
call edi
pop edi
pop esi
pop ebp
mov dword [ebx + 4], eax
pop ebx
add esp, 0x14
ret

Function at 0x40c310
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
push 0xffffffffffffffff
push 0x4901e3
mov eax, dword fs:[0]
push eax
sub esp, 0xc
push ebx
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x1c]
mov dword fs:[0], eax
mov esi, ecx
mov dword [esp + 0x10], esi
mov dword [esi], 0x49a970
xor ebx, ebx
mov dword [esi + 4], 0x65
mov dword [esi + 8], 0x12dd668
mov dword [esi + 0xc], ebx
mov dword [esi + 0x10], 1
mov dword [esi + 0x14], 0x34
mov dword [esi + 0x28], ebx
mov dword [esi + 0x2c], ebx
mov dword [esi + 0x30], ebx
mov dword [esi + 0x34], ebx
xor eax, eax
mov dword [esi + 0x18], eax
mov dword [esi + 0x1c], eax
mov dword [esi + 0x20], eax
mov dword [esi + 0x24], eax
mov dword [esi + 0x3c], ebx
mov dword [esi + 0x40], ebx
mov dword [esi + 0x44], ebx
mov eax, dword [esp + 0x2c]
mov dword [esp + 0x24], ebx
mov dword [esi + 0x58], eax
call fcn.0040c060
mov ecx, dword [eax]
mov dword [esi + 0x48], ecx
mov edx, dword [eax + 4]
mov dword [esi + 0x4c], edx
mov ecx, dword [eax + 8]
mov dword [esi + 0x50], ecx
mov edx, dword [eax + 0xc]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x54], edx
call fcn.00437ff0
lea edi, [eax + 4]
push edi
mov dword [esp + 0x18], 0x49a96c
mov dword [esp + 0x1c], eax
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ecx, dword [esi + 0x58]
push esi
mov byte [esp + 0x28], 1
call fcn.00438340
push edi
mov dword [esi + 0x5c], eax
mov byte [esp + 0x28], bl
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
mov ecx, dword [esi + 0x58]
push esi
call fcn.0043a780
mov eax, esi
mov ecx, dword [esp + 0x1c]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
add esp, 0x18
ret 8
Function at 0x40c6a0
Capabilities:
Set registry value

Disassembly:
mov edx, dword [esp + 4]
push 4
lea eax, [esp + 0xc]
push eax
mov eax, dword [ecx]
push 4
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
ret 8

Function at 0x40c6c0
Capabilities:
Set registry value

Disassembly:
push esi
mov esi, dword [esp + 0xc]
test esi, esi
push edi
mov edi, ecx
jne 0x40c6d6
push 0x80004005
call fcn.00408fb0
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ecx, dword [esp + 0xc]
mov edx, dword [edi]
add eax, 1
push eax
mov eax, dword [esp + 0x18]
push esi
push eax
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
ret 0xc

Function at 0x40c700
Capabilities:
Set registry value

Disassembly:
push ecx
push ebp
mov ebp, dword [esp + 0x10]
test ebp, ebp
mov dword [esp + 4], ecx
jne 0x40c718
push 0x80004005
call fcn.00408fb0
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrlenA]
push esi
push edi
xor edi, edi
mov esi, ebp
push esi
call ebx
add eax, 1
add esi, eax
add edi, eax
cmp eax, 1
jne 0x40c725
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x10]
mov edx, dword [ecx]
push edi
push ebp
push 7
push 0
push eax
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
pop edi
pop esi
pop ebx
pop ebp
pop ecx
ret 8

Function at 0x40cd10
Capabilities:
Initialize winsock library

Disassembly:
sub esp, 0x194
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x190], eax
push esi
mov esi, dword [esp + 0x19c]
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
cmp eax, 1
jne 0x40cd5f
xor ecx, ecx
mov ch, byte [esp + 0x1a4]
lea eax, [esp + 4]
push eax
mov cl, byte [esp + 0x1a4]
push ecx
call dword [sym.imp.WS2_32.dll_WSAStartup]
push eax
add esi, 4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedExchange]
mov ecx, dword [esp + 0x194]
pop esi
xor ecx, esp
call fcn.004604af
add esp, 0x194
ret
Function at 0x40d760
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
sub esp, 0x11c
mov eax, dword [0x4b0650]
xor eax, esp
mov dword [esp + 0x118], eax
push ebp
push esi
push edi
mov edi, dword [esp + 0x12c]
mov ebp, ecx
mov eax, dword [ebp]
lea ecx, [esp + 0x14]
push ecx
push 0x2001f
push 0
push edi
push eax
mov dword [esp + 0x2c], edi
mov dword [esp + 0x20], 0
mov dword [esp + 0x28], 0
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov ecx, dword [esp + 0xc]
mov esi, eax
test esi, esi
jne 0x40d7ce
test ecx, ecx
je 0x40d7c0
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
mov ecx, dword [esp + 0x14]
mov esi, eax
mov dword [esp + 0xc], ecx
je 0x40d7dc
test ecx, ecx
je 0x40d881
push ecx
jmp 0x40d87b
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
lea edx, [esp + 0x1c]
push edx
push 0
push 0
push 0
lea eax, [esp + 0x20]
push eax
lea edx, [esp + 0x38]
push edx
push 0
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
jne 0x40d84e
jmp 0x40d810
lea eax, [esp + 0x24]
push eax
lea ecx, [esp + 0x10]
call fcn.0040d760
mov edi, eax
test edi, edi
jne 0x40d89d
lea ecx, [esp + 0x1c]
push ecx
mov ecx, dword [esp + 0x10]
push eax
push eax
push eax
lea edx, [esp + 0x20]
push edx
lea eax, [esp + 0x38]
push eax
push edi
push ecx
mov dword [esp + 0x30], 0x100
call esi
test eax, eax
je 0x40d810
mov edi, dword [esp + 0x18]
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d865
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0xc], 0
mov edx, dword [ebp]
push edi
push edx
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov esi, eax
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d881
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
mov ecx, dword [esp + 0x124]
pop edi
pop esi
pop ebp
xor ecx, esp
call fcn.004604af
add esp, 0x11c
ret 4
mov eax, dword [esp + 0xc]
test eax, eax
je 0x40d8ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, edi
jmp 0x40d883

Function at 0x40df10
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x49028b
mov eax, dword fs:[0]
push eax
push ecx
push esi
push edi
mov eax, dword [0x4b0650]
xor eax, esp
push eax
lea eax, [esp + 0x10]
mov dword fs:[0], eax
mov edi, ecx
mov dword [esp + 0xc], edi
lea esi, [edi + 0xc]
mov dword [edi + 4], 0
mov ecx, esi
mov dword [edi], 0x49acf0
call fcn.0041bab0
mov eax, dword [esp + 0x20]
mov dword [esi], 0x49ac84
mov dword [esi + 4], 0x49ac70
mov dword [esi + 8], 0x49ac50
mov dword [esi + 0x30], 0x49ac14
mov dword [esi + 0x34], eax
mov ecx, dword [0x4b2a6c]
mov edx, dword [ecx]
mov eax, dword [edx + 4]
mov dword [esp + 0x18], 0
call eax
mov eax, edi
mov ecx, dword [esp + 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
add esp, 0x10
ret 4