joyce8/EMBER2024-capa huggingface dataset:
Function at 0x42aeb0
Capabilities:
Open clipboard
Write clipboard data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x463488
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
push esi
mov esi, ecx
call fcn.004257b0
test eax, eax
je 0x42afb8
lea ecx, [esp + 0xc]
call fcn.00401920
mov eax, dword [esp + 0x3c]
mov ecx, dword [esp + 0x38]
mov edx, dword [esp + 0x34]
push eax
mov eax, dword [esp + 0x34]
push ecx
push edx
lea ecx, [esp + 0x18]
push eax
push ecx
mov ecx, esi
mov dword [esp + 0x3c], 0
call fcn.004257b0
mov ecx, eax
call fcn.00422f70
test eax, eax
je 0x42af9f
mov eax, dword [esp + 0x1c]
test eax, eax
mov ebp, eax
je 0x42af9f
push eax
push 0x42
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
je 0x42af9f
mov esi, dword [esp + 0x1c]
mov edx, dword [esp + 0x14]
neg esi
push edi
push ebx
sbb esi, esi
and esi, edx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
mov ecx, ebp
mov edi, eax
mov edx, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.00401b20
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push 0
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
pop edi
jne 0x42af81
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x42af9f
call dword [sym.imp.USER32.dll_EmptyClipboard]
mov eax, dword [0x491c40]
push ebx
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_SetClipboardData]
call dword [sym.imp.USER32.dll_CloseClipboard]
lea ecx, [esp + 0xc]
mov dword [esp + 0x28], 0xffffffff
mov dword [esp + 0xc], 0x468040
call fcn.00401b20
mov ecx, dword [esp + 0x20]
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0x10
Function at 0x42b000
Capabilities:
Open clipboard
Read clipboard data

Disassembly:
sub esp, 0xc
push ebx
push ebp
push esi
push edi
mov edi, ecx
call fcn.004257b0
test eax, eax
je 0x42b0ef
mov ecx, edi
call fcn.004257b0
mov ecx, eax
call fcn.00422e20
test eax, eax
jne 0x42b0ef
push eax
call dword [sym.imp.USER32.dll_OpenClipboard]
test eax, eax
je 0x42b0ef
mov eax, dword [0x491c40]
and eax, 0xffff
push eax
call dword [sym.imp.USER32.dll_GetClipboardData]
mov esi, eax
test esi, esi
jne 0x42b062
call dword [sym.imp.USER32.dll_CloseClipboard]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
lea ecx, [esp + 0x10]
mov ebp, dword [esp + 0x24]
push 1
push ecx
mov ecx, dword [edi + 0x44]
lea edx, [esp + 0x1c]
shr ecx, 4
lea eax, [esp + 0x20]
push edx
mov edx, dword [esp + 0x2c]
and ecx, 1
push eax
push ecx
push ebp
push edx
push esi
call dword [sym.imp.KERNEL32.dll_GlobalSize]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push eax
mov ecx, edi
call fcn.004257b0
mov ecx, eax
call fcn.00423050
push esi
mov ebx, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
call dword [sym.imp.USER32.dll_CloseClipboard]
mov ecx, dword [esp + 0x28]
mov eax, 1
cmp ecx, eax
jne 0x42b0ef
cmp ebx, eax
jne 0x42b0ef
cmp dword [esp + 0x10], eax
jne 0x42b0d5
mov eax, dword [edi]
mov ecx, edi
call dword [eax + 0xcc]
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x18]
mov edx, dword [edi]
push eax
mov eax, dword [esp + 0x24]
push ecx
push ebp
push eax
mov ecx, edi
call dword [edx + 0xc0]
pop edi
pop esi
pop ebp
pop ebx
add esp, 0xc
ret 0xc
Function at 0x42dd20
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x463718
push eax
mov dword fs:[0], esp
sub esp, 0x14
push ebx
push ebp
mov ebp, dword [esp + 0x30]
push esi
mov ebx, ecx
push edi
mov esi, dword [ebp]
mov ecx, dword [esi + 0xc]
mov eax, dword [esi + 0x10]
dec ecx
cmp eax, ecx
jge 0x42dd59
inc eax
mov dword [esi + 0x10], eax
jmp 0x42de6c
mov eax, dword [ebx + 0x3c]
mov ecx, dword [esi + 8]
cmp ecx, eax
jne 0x42dd6d
mov eax, 0xffffffc7
jmp 0x42de6e
mov esi, dword [esi]
mov edx, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp edx, ecx
jl 0x42dd7e
cmp dword [esi + 8], eax
jne 0x42dd6d
cmp dword [esi + 8], eax
jne 0x42dd97
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0xc]
cmp eax, ecx
jl 0x42dd97
mov eax, 0xffffffc7
jmp 0x42de6e
mov eax, dword [esi + 4]
xor edi, edi
cmp eax, edi
je 0x42ddab
push eax
mov ecx, ebx
call fcn.0042d550
mov dword [esi + 4], edi
mov dword [ebp], esi
mov ecx, dword [esi + 0x10]
inc ecx
mov dword [esi + 0x10], ecx
lea ecx, [esp + 0x10]
call fcn.00401920
mov dword [esp + 0x2c], edi
mov edi, dword [esp + 0x3c]
test edi, edi
jne 0x42dddc
mov ecx, dword [ebx + 4]
mov edx, dword [ecx + 8]
lea ecx, [esp + 0x10]
push edx
call fcn.00401940
mov edi, eax
mov eax, dword [esi + 8]
push edi
push eax
mov ecx, ebx
call fcn.0042ccc0
test eax, eax
mov dword [esp + 0x38], eax
je 0x42de0f
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x468040
call fcn.00401b20
mov eax, dword [esp + 0x38]
jmp 0x42de6e
mov ecx, dword [esi + 0x10]
push ecx
push edi
mov ecx, ebx
call fcn.0042db80
mov dl, byte [edi]
and dl, 1
cmp dl, 1
jne 0x42de53
mov ecx, dword [esp + 0x34]
push ebp
push ecx
push edi
push eax
mov ecx, ebx
call fcn.0042dba0
mov esi, eax
test esi, esi
jne 0x42de83
mov edx, dword [ebp]
push eax
push edi
mov ecx, ebx
mov dword [edx + 0x10], eax
call fcn.0042db80
mov cl, byte [edi]
and cl, 1
cmp cl, 1
je 0x42de25
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x468040
call fcn.00401b20
xor eax, eax
mov ecx, dword [esp + 0x24]
pop edi
pop esi
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x20
ret 0xc
lea ecx, [esp + 0x10]
mov dword [esp + 0x2c], 0xffffffff
mov dword [esp + 0x10], 0x468040
call fcn.00401b20
mov eax, esi
jmp 0x42de6e

Function at 0x430f50
Capabilities:
Create thread

Disassembly:
push ecx
cmp dword [ecx + 0xcc], 1
je 0x430fb0
mov eax, dword [ecx + 0x1c]
test eax, eax
je 0x430fb0
mov eax, dword [ecx + 0xb0]
test eax, eax
je 0x430fb0
push esi
mov edx, 5
mov esi, dword [ecx + 0xbc]
cmp esi, edx
pop esi
je 0x430fb0
mov dword [ecx + 0xb4], eax
mov dword [ecx + 0x94], 0
mov dword [ecx + 0xbc], edx
lea eax, [esp]
push eax
push 0
push ecx
push 0x430ff0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ecx
ret
Function at 0x436ec0
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463d48
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
lea eax, [esp + 0xc]
mov ecx, dword [esi + 0x1c]
push eax
push ecx
call dword [sym.imp.USER32.dll_GetClientRect]
push 0
lea ecx, [esp + 0x20]
call fcn.0045cfe2
mov eax, dword [esi + 0xd0]
lea edx, [esp + 0x1c]
push eax
push eax
push edx
mov dword [esp + 0x44], 0
call fcn.00436860
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x48]
add eax, 0x64
add esp, 0xc
add ecx, 0x64
mov dword [esp + 8], eax
lea eax, [esp + 4]
mov dword [esp + 4], ecx
push eax
lea ecx, [esp + 0x20]
call fcn.0045cf10
mov ecx, dword [esp + 4]
mov eax, dword [esp + 0x14]
mov edx, dword [esp + 0xc]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
push 1
sar edx, 4
mov ecx, edx
shr ecx, 0x1f
lea eax, [edx + ecx + 1]
xor edx, edx
test eax, eax
setl dl
dec edx
mov ecx, esi
and eax, edx
push eax
push 0
push 0
call fcn.004597d4
mov ecx, dword [esp + 0x10]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 8]
sub ecx, eax
add ecx, edx
mov eax, 0x88888889
imul ecx
add edx, ecx
xor ecx, ecx
sar edx, 4
mov eax, edx
push 1
shr eax, 0x1f
lea eax, [edx + eax + 1]
test eax, eax
setl cl
dec ecx
and eax, ecx
mov ecx, esi
push eax
push 0
push 1
call fcn.004597d4
push 1
push 0
push 0
mov ecx, esi
call fcn.0045977c
push 1
push 0
push 1
mov ecx, esi
call fcn.0045977c
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045d054
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret

Function at 0x437040
Capabilities:
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463d68
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2c
push esi
mov esi, ecx
push 0
lea ecx, [esp + 0x20]
call fcn.0045cfe2
push 0x3e8
lea eax, [esp + 0x20]
push 0x3e8
push eax
mov dword [esp + 0x44], 0
call fcn.00436860
mov ecx, dword [esi + 0x48]
mov eax, dword [esi + 0x4c]
add ecx, 0x64
add esp, 0xc
mov dword [esp + 4], ecx
lea ecx, [esp + 4]
add eax, 0x96
push ecx
lea ecx, [esp + 0x20]
mov dword [esp + 0xc], eax
call fcn.0045cf10
mov eax, dword [esi + 0x1c]
lea edx, [esp + 0xc]
push edx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x10]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 8]
mov edx, dword [esp + 0xc]
mov ecx, eax
mov eax, dword [esp + 0x14]
sub eax, edx
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
idiv dword [esp + 4]
cmp dword [esp + 0x44], 1
jne 0x437104
cmp dword [esp + 0x40], 1
jne 0x437102
cmp ecx, eax
jge 0x437104
mov eax, ecx
cmp eax, 0xc8
jge 0x437110
mov eax, 0xc8
mov ecx, esi
mov dword [esi + 0xd0], eax
call fcn.00436ec0
mov ecx, dword [esi + 0x1c]
push 1
push 0
push ecx
call dword [sym.imp.USER32.dll_InvalidateRect]
lea ecx, [esp + 0x1c]
mov dword [esp + 0x38], 0xffffffff
call fcn.0045d054
mov ecx, dword [esp + 0x30]
pop esi
mov dword fs:[0], ecx
add esp, 0x38
ret 8
Function at 0x437890
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x463dd3
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.00457bf4
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], vtable.CBrush.0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush]
push eax
mov ecx, edi
call fcn.0045d28a
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.0045e7a6
test eax, eax
je 0x4379ac
mov ecx, dword [esp + 0x3c]
call fcn.0045d2b7
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x437970
push edi
mov ecx, esi
call fcn.0045a91b
mov ecx, esi
call fcn.00437b10
cmp dword [esp + 0x38], 1
jne 0x4379a5
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.0045aa56
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x43a3d0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x43a403
push esi
call fcn.0043d4c0
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x43a3fc
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x43a489
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x43a472
mov eax, dword [esi + 8]
test eax, eax
je 0x43a427
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x43a46e
cmp eax, 2
je 0x43a472
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x43a41a
cmp eax, 3
je 0x43a44d
cmp eax, 1
jne 0x43a41a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x43a41a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x43a41a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.0043a4b0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x43a498
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.0043a4b0
add esp, 4
pop esi
ret

Function at 0x4589ea
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x458a22
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.00456a9e
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.00456a76
jmp 0x458a2e
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x45a0d8
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 0x45a11a
call fcn.0045fb91
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 0x45a11a
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x45a111
xor eax, eax
jmp 0x45a122
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.0045a128
pop edi
pop esi
pop ebx
ret 4

Function at 0x4600c1
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 0x4600ef
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x46010d
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.00460027
jmp 0x46010d
mov eax, dword [esi + 0x14]
test eax, eax
je 0x46010d
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.00460027
test edi, edi
mov eax, edi
jne 0x4600f7
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x401d90
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push esi
push 0
push 0x2000000
push 3
push 0
push 0
push 0x40000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
cmp esi, 0xffffffff
je 0x401e19
lea ecx, [ebp - 8]
lea edx, [ebp - 0x18]
mov eax, 8
push ecx
push edx
mov word [ebp - 0x18], 0x7d4
mov word [ebp - 0x16], ax
mov word [ebp - 0x12], 0x10
mov word [ebp - 0x10], ax
mov word [ebp - 0xe], 0x27
mov word [ebp - 0xc], 0
mov word [ebp - 0xa], 0
mov word [ebp - 0x14], 2
call dword [sym.imp.KERNEL32.dll_SystemTimeToFileTime]
je 0x401dff
jne 0x401dff
mov ds, word [edx - 0x7207ba73]
dec ebp
clc
lea eax, [ebp - 8]
lea ecx, [ebp - 8]
push eax
lea edx, [ebp - 8]
push ecx
push edx
push esi
call dword [sym.imp.KERNEL32.dll_SetFileTime]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x401e20
Capabilities:
Get common file path
Read .ini file

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.DASeting.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x11c]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x118]
push eax
mov eax, dword [esp + 0x118]
push 0x100
push ecx
mov ecx, dword [esp + 0x11c]
push edx
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringA]
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 0x100
ret

Function at 0x401ec0
Capabilities:
Get common file path

Disassembly:
sub esp, 0x100
push ebx
push esi
push edi
mov ecx, 0x3f
xor eax, eax
lea edi, [esp + 0xd]
mov byte [esp + 0xc], 0
push 0xff
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
lea eax, [esp + 0x10]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
mov edi, str.DASeting.ini
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0xc]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebx, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov edx, dword [esp + 0x114]
mov ecx, ebx
and ecx, 3
lea eax, [esp + 0xc]
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x118]
push eax
mov eax, dword [esp + 0x114]
push ecx
push edx
push eax
call dword [sym.imp.KERNEL32.dll_WritePrivateProfileStringA]
lea ecx, [esp + 0xc]
push ecx
call fcn.00401d90
add esp, 4
mov eax, 1
pop edi
pop esi
pop ebx
add esp, 0x100
ret
Function at 0x401f60
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x401f90
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push eax
mov eax, dword [esp + 0x10]
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x401fc4
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret

Function at 0x401fe0
Capabilities:
Initialize winsock library

Disassembly:
push 0xffffffffffffffff
push 0x40c24b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x2b4
lea eax, [esp + 0x124]
push edi
push eax
push 2
call sub.WS2_32.dll_WSAStartup
mov ecx, 0x2f
xor eax, eax
lea edi, [esp + 0x68]
rep stosd dword es:[edi], eax
lea ecx, [esp + 4]
stosb byte es:[edi], al
call fcn.00406d70
lea ecx, [esp + 4]
mov dword [esp + 0x2c0], 0
call fcn.00406db0
test eax, eax
jne 0x402067
lea ecx, [esp + 4]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00406da0
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
add esp, 0x2c0
ret
push 0x2710
lea ecx, [esp + 8]
call fcn.00406ed0
mov ecx, dword [esp + 0x2c8]
push 0x3264
push ecx
lea ecx, [esp + 0xc]
call fcn.00406e30
test eax, eax
jne 0x4020c5
lea ecx, [esp + 4]
call fcn.00406e00
lea ecx, [esp + 4]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00406da0
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
add esp, 0x2c0
ret
lea edx, [esp + 0x68]
lea ecx, [esp + 4]
push edx
push 0xbd
push 0x1064
call fcn.00406fe0
test eax, eax
jne 0x402117
lea ecx, [esp + 4]
call fcn.00406e00
lea ecx, [esp + 4]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00406da0
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
add esp, 0x2c0
ret
mov ecx, 0x14
xor eax, eax
lea edi, [esp + 0x14]
lea edx, [esp + 0xc]
rep stosd dword es:[edi], eax
stosb byte es:[edi], al
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push ecx
push edx
lea ecx, [esp + 0x10]
call fcn.00407020
test eax, eax
lea ecx, [esp + 4]
jne 0x402177
call fcn.00406e00
lea ecx, [esp + 4]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00406da0
or eax, 0xffffffff
pop edi
mov ecx, dword [esp + 0x2b4]
mov dword fs:[0], ecx
add esp, 0x2c0
ret
call fcn.00406e00
lea ecx, [esp + 4]
mov dword [esp + 0x2c0], 0xffffffff
call fcn.00406da0
mov ecx, dword [esp + 0x2b8]
xor eax, eax
pop edi
mov dword fs:[0], ecx
add esp, 0x2c0
ret
Function at 0x4021b0
Capabilities:
Acquire debug privileges

Disassembly:
mov ecx, dword [esp + 4]
sub esp, 0x18
lea eax, [esp + 0x1c]
push esi
push eax
push 0x28
push ecx
xor esi, esi
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x40222a
lea edx, [esp + 4]
push edx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x40221f
mov eax, dword [esp + 4]
mov ecx, dword [esp + 8]
push esi
push esi
lea edx, [esp + 0x14]
mov dword [esp + 0x18], eax
mov eax, dword [esp + 0x28]
push 0x10
push edx
push esi
push eax
mov dword [esp + 0x24], 1
mov dword [esp + 0x2c], ecx
mov dword [esp + 0x30], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x40221f
mov esi, 1
mov ecx, dword [esp + 0x20]
push ecx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x18
ret

Function at 0x402240
Capabilities:
Acquire debug privileges

Disassembly:
sub esp, 0x1c
lea eax, [esp]
push esi
push eax
push 0x28
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push eax
call dword [sym.imp.ADVAPI32.dll_OpenProcessToken]
test eax, eax
je 0x4022bc
lea ecx, [esp + 8]
push ecx
push str.SeDebugPrivilege
push esi
call dword [sym.imp.ADVAPI32.dll_LookupPrivilegeValueA]
test eax, eax
je 0x4022b1
mov edx, dword [esp + 8]
mov eax, dword [esp + 0xc]
push esi
push esi
lea ecx, [esp + 0x18]
mov dword [esp + 0x1c], edx
mov edx, dword [esp + 0xc]
push 0x10
push ecx
push esi
push edx
mov dword [esp + 0x28], 1
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], 2
call dword [sym.imp.ADVAPI32.dll_AdjustTokenPrivileges]
test eax, eax
je 0x4022b1
mov esi, 1
mov eax, dword [esp + 4]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, esi
pop esi
add esp, 0x1c
ret
Function at 0x403600
Capabilities:
Set registry value

Disassembly:
push ecx
mov edx, dword [esp + 8]
lea eax, [esp]
lea ecx, [esp + 8]
push eax
push ecx
push 0
push 0x20006
push 0
push 0
push 0
push edx
push connect
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
test eax, eax
je 0x403630
xor eax, eax
pop ecx
ret
mov eax, dword [esp + 0x14]
mov ecx, dword [esp + 0x10]
mov edx, dword [esp + 0xc]
push eax
mov eax, dword [esp + 0xc]
push ecx
push 7
push 0
push edx
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
test eax, eax
je 0x403661
mov ecx, dword [esp + 8]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop ecx
ret
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, 1
pop ecx
ret