joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40c78c
Capabilities:
Check for time delay via gettickcount

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
push esi
push edi
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebp - 8], edi
call ebx
mov esi, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
test eax, eax
jl 0x40c7be
cmp dword [ebp - 4], edi
jne 0x40c7ff
call ebx
sub eax, dword [ebp - 0xc]
cmp eax, 0x2710
ja 0x40c7ff
push edi
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_PeekMessageW]
test eax, eax
je 0x40c7ab
push edi
push edi
push edi
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_GetMessageW]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_TranslateMessage]
lea eax, [ebp - 0x28]
push eax
call dword [sym.imp.USER32.dll_DispatchMessageW]
jmp 0x40c7ab
mov eax, dword [esi]
lea ecx, [ebp - 4]
push ecx
push esi
call dword [eax + 0x48]
mov esi, eax
cmp esi, edi
jl 0x40c855
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41de38
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x40c84c
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x20]
mov esi, eax
cmp esi, edi
jl 0x40c843
mov eax, dword [ebp - 8]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
xor eax, eax
cmp esi, edi
pop edi
pop esi
setge al
pop ebx
leave
ret 8
Function at 0x40d013
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
mov al, byte [ebp + 0x18]
sub esp, 0x10
push ebx
push esi
push edi
push 0
push dword [ebp + 0xc]
mov esi, ecx
mov byte [esi + 0x21], al
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [ebp + 8]
mov ecx, esi
call fcn.0040cfac
mov eax, dword [ebp + 0x10]
mov dword [esi + 0x10], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x14], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_GetWindowRect]
mov ebx, dword [sym.imp.USER32.dll_GetParent]
push 2
lea eax, [ebp - 0x10]
push eax
push dword [ebp + 0xc]
call ebx
push eax
push 0
call dword [sym.imp.USER32.dll_MapWindowPoints]
mov eax, dword [esi + 4]
test eax, eax
je 0x40d07a
push eax
call dword [sym.imp.USER32.dll_DestroyWindow]
mov eax, dword [ebp - 0x10]
mov edi, dword [ebp - 8]
push esi
push dword [esi]
sub edi, eax
push 0
push dword [ebp + 0xc]
lea ecx, [eax + 1]
dec edi
mov dword [ebp + 0x18], ecx
dec edi
call ebx
push eax
mov eax, dword [ebp - 4]
sub eax, dword [ebp - 0xc]
push eax
push edi
push dword [ebp - 0xc]
xor edi, edi
push dword [ebp + 0x18]
push 0x40000000
push edi
push str.RarHtmlClassName
push edi
call dword [sym.imp.USER32.dll_CreateWindowExW]
mov dword [esi + 4], eax
cmp dword [esi + 0xc], edi
jne 0x40d0fc
cmp dword [ebp + 0xc], edi
je 0x40d11f
cmp dword [esi + 0x14], edi
jne 0x40d11f
mov eax, dword [esi + 0x10]
cmp eax, edi
je 0x40d11f
push eax
mov ecx, esi
call fcn.0040cc87
mov esi, eax
cmp esi, edi
je 0x40d11f
push 5
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_ShowWindow]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_SetWindowTextW]
push esi
call fcn.0040d63b
pop ecx
jmp 0x40d11f
cmp eax, edi
je 0x40d112
push 5
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_UpdateWindow]
cmp dword [esi + 0x1c], 0x64
jbe 0x40d11f
mov ecx, esi
call fcn.0040c991
pop edi
pop esi
pop ebx
leave
ret 0x14
Function at 0x40d126
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
lea eax, [ebp - 4]
push eax
push 0x41de28
push 1
xor ebx, ebx
push ebx
push 0x41ded8
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
jl 0x40d1f7
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x41dec8
push eax
call dword [ecx]
test eax, eax
jl 0x40d1ee
cmp byte [ebp + 8], bl
je 0x40d179
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 2
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x14]
mov eax, dword [ebp - 4]
push dword [ebp + 0xc]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
cmp dword [ebp + 0x18], ebx
je 0x40d196
mov eax, dword [ebp - 4]
push dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push ebx
cmp dword [ebp + 0x1c], ebx
jne 0x40d1a8
push 0x41d41c
jmp 0x40d1ab
push dword [ebp + 0x1c]
push eax
call dword [ecx + 0x44]
cmp dword [ebp + 0x20], ebx
je 0x40d1c0
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
cmp dword [ebp + 0x14], ebx
je 0x40d1d1
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push 1
push dword [ebp + 0x10]
push eax
call dword [ecx + 0x18]
test eax, eax
jl 0x40d1e5
mov bl, 1
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov al, bl
pop ebx
leave
ret 0x1c

Function at 0x40d211
Capabilities:
Get common file path

Disassembly:
push dword [esp + 4]
push dword [esp + 0xc]
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryW]
neg eax
sbb eax, eax
neg eax
ret 8

Function at 0x412765
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4223e4]
jne 0x41276f
repz ret
jmp fcn.00417505
Function at 0x418b27
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.004127e6
and dword [ebp - 4], 0
cmp dword [0x44fcac], 0
mov ebx, eax
jne 0x418bd8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x418c89
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x418c89
push eax
call fcn.00412774
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x44fcac], eax
call esi
push eax
call fcn.00412774
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x44fcb0], eax
call esi
push eax
call fcn.00412774
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x44fcb4], eax
call esi
push eax
call fcn.00412774
pop ecx
mov dword [0x44fcbc], eax
test eax, eax
je 0x418bd8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00412774
pop ecx
mov dword [0x44fcb8], eax
mov eax, dword [0x44fcb8]
cmp eax, ebx
je 0x418c30
cmp dword [0x44fcbc], ebx
je 0x418c30
push eax
call fcn.004127ef
push dword [0x44fcbc]
mov esi, eax
call fcn.004127ef
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x418c30
test edi, edi
je 0x418c30
call esi
test eax, eax
je 0x418c27
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x418c27
test byte [ebp - 0xc], 1
jne 0x418c30
or dword [ebp + 0x10], 0x200000
jmp 0x418c69
mov eax, dword [0x44fcb0]
cmp eax, ebx
je 0x418c69
push eax
call fcn.004127ef
pop ecx
test eax, eax
je 0x418c69
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x418c69
mov eax, dword [0x44fcb4]
cmp eax, ebx
je 0x418c69
push eax
call fcn.004127ef
pop ecx
test eax, eax
je 0x418c69
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x44fcac]
call fcn.004127ef
pop ecx
test eax, eax
je 0x418c89
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x418c8b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x401cf0
Capabilities:
Copy file
Delete file
Delete registry key
Set file attributes

Disassembly:
sub esp, 0x100
push esi
mov esi, dword [esp + 0x108]
test esi, esi
push pe_nt_image_headers32
je 0x401d3b
mov eax, dword [0x411178]
push eax
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
lea ecx, [esp + 4]
push 0xff
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov edx, dword [0x411178]
push 0
lea eax, [esp + 8]
push edx
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
jmp 0x401d66
mov ecx, dword [0x411178]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
mov edx, dword [0x411178]
push edx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov eax, dword [0x4111f4]
push eax
push connect
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov ecx, dword [0x4111e0]
mov edx, dword [0x4111dc]
mov eax, dword [0x4111cc]
push ecx
mov ecx, dword [0x4111d8]
push edx
mov edx, dword [0x411178]
push eax
push 0xc
push ecx
push edx
push esi
call fcn.00401ff0
mov eax, dword [0x4111d4]
mov ecx, dword [0x4111c8]
mov edx, dword [0x4111e4]
add esp, 0x1c
push eax
mov eax, dword [0x4111bc]
push ecx
mov ecx, dword [0x411178]
push edx
push 0x1c
push eax
push ecx
push esi
call fcn.00401ff0
mov edx, dword [0x411198]
mov eax, dword [0x411190]
mov ecx, dword [0x411188]
add esp, 0x1c
push edx
mov edx, dword [0x411178]
push eax
push 3
push ecx
push edx
push esi
call fcn.00401f60
mov eax, dword [0x41117c]
mov ecx, dword [0x4111a8]
mov edx, dword [0x4111a0]
add esp, 0x18
push eax
mov eax, dword [0x411178]
push ecx
push 9
push edx
push eax
push esi
call fcn.00401f60
mov ecx, dword [0x4111d0]
mov edx, dword [0x4111c4]
mov eax, dword [0x4111b8]
add esp, 0x18
push ecx
mov ecx, dword [0x411178]
push edx
push 1
push eax
push ecx
push esi
call fcn.00401f60
mov edx, dword [0x4111c0]
mov eax, dword [0x4111b4]
mov ecx, dword [0x4111ac]
add esp, 0x18
push edx
mov edx, dword [0x411178]
push eax
push 6
push ecx
push edx
push esi
call fcn.00401f60
add esp, 0x18
pop esi
add esp, 0x100
ret
Function at 0x401e60
Capabilities:
Create process on windows
Create process suspended

Disassembly:
sub esp, 0x54
push esi
push edi
push 0x40b5b4
call fcn.00401ae0
add esp, 4
test eax, eax
je 0x401e94
mov eax, dword [0x4111dc]
mov ecx, dword [0x4111cc]
push eax
push ecx
push connect
call fcn.00402fd0
add esp, 0xc
mov esi, eax
jmp 0x401e98
mov esi, dword [esp + 0x60]
push 0x40b5b0
call fcn.00401ae0
add esp, 4
test eax, eax
je 0x401ec5
mov edx, dword [0x4111c8]
mov eax, dword [0x4111e4]
push edx
push eax
push connect
call fcn.00402fd0
add esp, 0xc
mov esi, eax
test esi, esi
je 0x401f55
lea ecx, [esp + 0x18]
push ecx
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
mov edi, esi
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, esi
mov byte [ecx + esi - 2], al
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov edx, ecx
mov esi, edi
mov edi, 0x411200
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x60]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, 0x411200
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
lea eax, [esp + 8]
and ecx, 3
push eax
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x1c]
push ecx
push 0
push 0
push 0x20
push 0
push 0
push 0
push 0x411200
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
pop edi
pop esi
add esp, 0x54
ret

Function at 0x401f60
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push esi
test eax, eax
je 0x401fc0
mov esi, dword [esp + 0x10]
push edi
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push pe_nt_image_headers32
push esi
call edi
mov eax, dword [esp + 0x10]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push pe_nt_image_headers32
push esi
call edi
mov ecx, dword [esp + 0x18]
push ecx
push esi
call fcn.00403300
add esp, 8
push 1
push esi
call edi
mov edx, dword [esp + 0x20]
mov eax, dword [esp + 0x1c]
push esi
push edx
push eax
push connect
call fcn.00403090
add esp, 0x10
pop edi
pop esi
ret
mov esi, dword [esp + 0x10]
push pe_nt_image_headers32
push esi
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push esi
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
mov ecx, dword [esp + 0x1c]
mov edx, dword [esp + 0x18]
push ecx
push edx
push connect
call fcn.004030e0
add esp, 0xc
pop esi
ret
Function at 0x401ff0
Capabilities:
Copy file
Delete file
Set file attributes

Disassembly:
mov eax, dword [esp + 4]
push ebx
push ebp
push esi
test eax, eax
push edi
je 0x4020c2
mov esi, dword [esp + 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push pe_nt_image_headers32
push esi
call edi
mov eax, dword [esp + 0x18]
push 0
push esi
push eax
call dword [sym.imp.KERNEL32.dll_CopyFileA]
push pe_nt_image_headers32
push esi
call edi
mov ecx, dword [esp + 0x20]
push ecx
push esi
call fcn.00403300
add esp, 8
push 1
push esi
call edi
mov ebp, dword [esp + 0x24]
push 0x411644
push ebp
push connect
call fcn.00402fd0
mov edi, eax
add esp, 0xc
test edi, edi
je 0x402119
mov ebx, dword [esp + 0x2c]
mov ecx, edi
mov esi, ebx
mov al, byte [ecx]
mov dl, al
cmp al, byte [esi]
jne 0x402088
test dl, dl
je 0x402084
mov al, byte [ecx + 1]
mov dl, al
cmp al, byte [esi + 1]
jne 0x402088
add ecx, 2
add esi, 2
test dl, dl
jne 0x402064
xor ecx, ecx
jmp 0x40208d
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
je 0x402119
mov ecx, dword [esp + 0x28]
push edi
push ecx
push ebp
push connect
call fcn.00403090
add esp, 0x10
push ebx
push 0x411644
push ebp
push connect
call fcn.00403090
add esp, 0x10
pop edi
pop esi
pop ebp
pop ebx
ret
mov ebp, dword [esp + 0x28]
mov edi, dword [esp + 0x24]
push ebp
push edi
push connect
call fcn.00402fd0
mov ebx, dword [esp + 0x28]
add esp, 0xc
mov esi, eax
push pe_nt_image_headers32
push ebx
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
push ebx
call dword [sym.imp.KERNEL32.dll_DeleteFileA]
test esi, esi
je 0x40210a
push esi
push 0x411644
push edi
push connect
call fcn.00403090
add esp, 0x10
push ebp
push edi
push connect
call fcn.004030e0
add esp, 0xc
pop edi
pop esi
pop ebp
pop ebx
ret

Function at 0x402e10
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x100
push ebx
push ebp
push esi
push edi
call dword [sym.imp.USER32.dll_GetDesktopWindow]
push eax
call dword [sym.imp.USER32.dll_GetTopWindow]
mov ebp, eax
test ebp, ebp
je 0x402e97
mov ebx, dword [esp + 0x114]
lea eax, [esp + 0x10]
push 0xff
push eax
push ebp
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov edi, ebx
or ecx, 0xffffffff
xor eax, eax
mov esi, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov byte [esp + ecx + 0x10], al
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402e7f
test cl, cl
je 0x402e7b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402e7f
add eax, 2
add esi, 2
test cl, cl
jne 0x402e5b
xor eax, eax
jmp 0x402e84
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
je 0x402e97
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
test ebp, ebp
jne 0x402e34
pop edi
mov eax, ebp
pop esi
pop ebp
pop ebx
add esp, 0x100
ret
Function at 0x402eb0
Capabilities:
Get graphical window text

Disassembly:
mov eax, dword [esp + 4]
sub esp, 0x100
test eax, eax
je 0x402fc7
push edi
push ebp
push ebx
mov ebx, dword [esp + 0x118]
push eax
mov byte [ebx], 0
call dword [sym.imp.USER32.dll_GetTopWindow]
mov ebp, eax
test ebp, ebp
je 0x402fa2
push esi
lea eax, [esp + 0x10]
push 0xff
push eax
push ebp
call dword [sym.imp.USER32.dll_GetClassNameA]
mov esi, str.Edit
lea eax, [esp + 0x10]
mov dl, byte [eax]
mov cl, dl
cmp dl, byte [esi]
jne 0x402f1f
test cl, cl
je 0x402f1b
mov dl, byte [eax + 1]
mov cl, dl
cmp dl, byte [esi + 1]
jne 0x402f1f
add eax, 2
add esi, 2
test cl, cl
jne 0x402efb
xor eax, eax
jmp 0x402f24
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x402f8e
lea eax, [esp + 0x10]
push eax
push 0xff
push 0xd
push ebp
call dword [sym.imp.USER32.dll_SendMessageA]
lea edi, [esp + 0x10]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov edi, dword [esp + 0x118]
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov edx, ecx
mov edi, ebx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, edx
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push 2
push ebp
call dword [sym.imp.USER32.dll_GetWindow]
mov ebp, eax
test ebp, ebp
jne 0x402ee1
pop esi
mov edi, dword [esp + 0x114]
or ecx, 0xffffffff
xor eax, eax
mov edx, ebx
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov edi, ebx
sub edx, ecx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
not ecx
dec ecx
pop ebx
pop ebp
pop edi
mov byte [edx + ecx], al
add esp, 0x100
ret

Function at 0x402fd0
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x80c
lea eax, [esp + 4]
push esi
push edi
push eax
push 0xf003f
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x403003
xor eax, eax
pop edi
pop esi
add esp, 0x80c
ret
lea eax, [esp + 8]
lea ecx, [esp + 0x14]
push eax
mov eax, dword [esp + 0x824]
lea edx, [esp + 0x14]
push ecx
mov ecx, dword [esp + 0x14]
push edx
push 0
push eax
push ecx
mov dword [esp + 0x20], 0x7ff
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x40303e
xor eax, eax
pop edi
pop esi
add esp, 0x80c
ret
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test eax, eax
je 0x403058
xor eax, eax
pop edi
pop esi
add esp, 0x80c
ret
mov eax, dword [esp + 8]
push eax
call fcn.00404580
mov ecx, dword [esp + 0xc]
lea esi, [esp + 0x18]
mov edx, ecx
mov edi, eax
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
add esp, 4
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
add esp, 0x80c
ret
Function at 0x403090
Capabilities:
Set registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push edi
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov edx, dword [esp + 0x14]
or ecx, 0xffffffff
mov edi, edx
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
push ecx
mov ecx, dword [esp + 0x10]
push edx
push 1
push eax
mov eax, dword [esp + 0x20]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
ret

Function at 0x4030e0
Capabilities:
Delete registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
lea eax, [esp + 8]
push eax
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
mov eax, dword [esp + 0xc]
mov ecx, dword [esp + 8]
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
mov edx, dword [esp + 8]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
ret
Function at 0x403b10
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
sub esp, 0x2a0
lea eax, [esp + 0x110]
push esi
push edi
push eax
push 0x101
call sub.WSOCK32.dll_WSAStartup
test eax, eax
je 0x403b3c
mov eax, 0x40b6bc
pop edi
pop esi
add esp, 0x2a0
ret
lea ecx, [esp + 0x18]
push 0x100
push ecx
call sub.WSOCK32.dll_gethostname
test eax, eax
je 0x403b62
call sub.WSOCK32.dll_WSACleanup
mov eax, 0x40b6b8
pop edi
pop esi
add esp, 0x2a0
ret
lea edx, [esp + 0x18]
push edx
call sub.WSOCK32.dll_gethostbyname
test eax, eax
jne 0x403b83
call sub.WSOCK32.dll_WSACleanup
mov eax, 0x40b6b4
pop edi
pop esi
add esp, 0x2a0
ret
xor ecx, ecx
mov edx, dword [eax + 0xc]
mov dword [esp + 8], ecx
lea edi, [esp + 0xc]
mov dword [esp + 0xc], ecx
mov esi, dword [edx]
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
movsx ecx, word [eax + 0xa]
mov eax, ecx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0xc]
push ecx
call sub.WSOCK32.dll_inet_ntoa
lea edx, [esp + 0x18]
push eax
push edx
push str._s__s
push 0x412648
call fcn.00404390
add esp, 0x10
mov eax, 0x412648
pop edi
pop esi
add esp, 0x2a0
ret
Function at 0x403fe0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x1c
push ebx
push ebp
push esi
push edi
push 0
call dword [sym.imp.KERNEL32.dll_Sleep]
mov eax, dword [0x412a98]
test eax, eax
je 0x40400e
push 0
call fcn.00401cf0
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
push 1
call fcn.00401cf0
mov eax, dword [0x412a5c]
add esp, 4
test eax, eax
je 0x40403a
mov eax, dword [esp + 0x38]
push eax
call fcn.00401e60
add esp, 4
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
mov eax, dword [0x412a9c]
test eax, eax
je 0x404071
push 0xe
call fcn.00401c80
mov ecx, dword [0x412a60]
mov edx, dword [0x412a94]
add esp, 4
push 0x10
push ecx
push edx
push 0
call dword [sym.imp.USER32.dll_MessageBoxA]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x1c
ret 0x10
push 0xf
call fcn.00401b90
add esp, 4
test eax, eax
je 0x404151
mov edi, dword [esp + 0x30]
push edi
call fcn.00404160
add esp, 4
test eax, eax
je 0x404151
mov eax, dword [0x412aa0]
push 0
mov ecx, dword [0x412a80]
push edi
push 0
push 0
push 0
push connect
push 0
push connect
push 0xcf0000
push eax
push ecx
push 0
call dword [sym.imp.USER32.dll_CreateWindowExA]
mov esi, eax
test esi, esi
je 0x404151
push 0
push esi
call dword [sym.imp.USER32.dll_ShowWindow]
push 0
push 0x3e8
push 1
push esi
call dword [sym.imp.USER32.dll_SetTimer]
mov edx, dword [0x412aa0]
push edx
push edi
call dword [sym.imp.USER32.dll_LoadAcceleratorsA]
mov edi, dword [sym.imp.USER32.dll_GetMessageA]
mov esi, eax
push 0
push 0
lea eax, [esp + 0x18]
push 0
push eax
call edi
test eax, eax
je 0x404151
mov ebx, dword [sym.imp.USER32.dll_TranslateAcceleratorA]
mov ebp, dword [sym.imp.USER32.dll_TranslateMessage]
mov edx, dword [esp + 0x10]
lea ecx, [esp + 0x10]
push ecx
push esi
push edx
call ebx
test eax, eax
jne 0x404140
lea eax, [esp + 0x10]
push eax
call ebp
lea ecx, [esp + 0x10]
push ecx
call dword [sym.imp.USER32.dll_DispatchMessageA]
push 0
push 0
lea edx, [esp + 0x18]
push 0
push edx
call edi
test eax, eax
jne 0x40411d
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x1c
ret 0x10
Function at 0x4048b0
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push section..rdata
push 0x4081a8
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
add esp, 0xffffffa8
push ebx
push esi
push edi
mov dword [ebp - 0x18], esp
call dword [sym.imp.KERNEL32.dll_GetVersion]
xor edx, edx
mov dl, ah
mov dword [0x412ad8], edx
mov ecx, eax
and ecx, 0xff
mov dword [0x412ad4], ecx
shl ecx, 8
add ecx, edx
mov dword [0x412ad0], ecx
shr eax, 0x10
mov dword [0x412acc], eax
call fcn.00406490
test eax, eax
jne 0x40491a
push 0x1c
call fcn.00404a50
add esp, 4
mov dword [ebp - 4], 0
call fcn.00407eb0
call fcn.00407ea0
call dword [sym.imp.KERNEL32.dll_GetCommandLineA]
mov dword [0x413ed4], eax
call fcn.00407a70
mov dword [0x412aa8], eax
test eax, eax
je 0x40494d
mov eax, dword [0x413ed4]
test eax, eax
jne 0x404957
push 0xffffffffffffffff
call fcn.004073d0
add esp, 4
call fcn.004077c0
call fcn.004076d0
call fcn.004073a0
mov esi, dword [0x413ed4]
mov dword [ebp - 0x64], esi
cmp byte [esi], 0x22
jne 0x404a36
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
cmp al, 0x22
je 0x40499e
test al, al
je 0x40499e
and eax, 0xff
push eax
call fcn.00407670
add esp, 4
test eax, eax
je 0x404978
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404978
cmp byte [esi], 0x22
jne 0x4049a7
inc esi
mov dword [ebp - 0x64], esi
mov al, byte [esi]
test al, al
je 0x4049b7
cmp al, 0x20
ja 0x4049b7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x4049a7
mov dword [ebp - 0x30], 0
lea eax, [ebp - 0x5c]
push eax
call dword [sym.imp.KERNEL32.dll_GetStartupInfoA]
test byte [ebp - 0x30], 1
je 0x4049d8
mov eax, dword [ebp - 0x2c]
and eax, 0xffff
jmp 0x4049dd
mov eax, 0xa
push eax
push esi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call main
mov dword [ebp - 0x60], eax
push eax
call fcn.004073d0
jmp 0x404a1b
add esp, 4
mov dword [ebp - 4], 0xffffffff
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
cmp byte [esi], 0x20
jbe 0x4049a7
inc esi
mov dword [ebp - 0x64], esi
jmp 0x404a36