joyce8/EMBER2024-capa huggingface dataset:
Function at 0x406954
Capabilities:
Delete registry key

Disassembly:
push ebx
push esi
push edi
push 0x1408
mov esi, eax
call fcn.0043b528
pop ecx
test eax, eax
je 0x40697b
push reloc.OLEAUT32.dll_SysReAllocString
mov ecx, str.SoftwareMicrosoftwindowscurrentversionuninstall
call fcn.0040cdba
mov edi, eax
jmp 0x40697d
xor edi, edi
mov eax, dword [esi + 0x924]
xor ebx, ebx
dec eax
je 0x406992
dec eax
jne 0x4069ad
mov ebx, str.__Poker_
jmp 0x40699e
mov ebx, dword [0x46d5b8]
add ebx, 0x8b44
add esi, 0x208
push esi
call fcn.00401be3
mov ebx, eax
pop ecx
push ebx
push edi
call fcn.0040d0da
lea eax, [edi + 8]
push eax
push dword [edi + 4]
call dword [sym.imp.SHLWAPI.dll_SHDeleteKeyA]
push ebx
call fcn.0043bb04
mov eax, dword [edi]
pop ecx
push 1
mov ecx, edi
call dword [eax]
pop edi
pop esi
pop ebx
ret

Function at 0x4069eb
Capabilities:
Create process on windows
Parse url

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2044
call fcn.0044b290
push ebx
push edi
mov edi, dword [0x46d5b8]
lea eax, [edi + 0x2740]
mov dword [ebp - 4], eax
lea edx, [eax + 1]
xor ebx, ebx
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406a0e
sub eax, edx
je 0x406b81
cmp dword [edi + 0x9056], ebx
je 0x406b81
push esi
mov esi, 0x3ff
push esi
lea eax, [ebp - 0x1843]
push ebx
push eax
mov byte [ebp - 0x1844], bl
call fcn.004451c0
push esi
lea eax, [ebp - 0x443]
push ebx
push eax
mov byte [ebp - 0x444], bl
call fcn.004451c0
push esi
lea eax, [ebp - 0x1043]
push ebx
push eax
mov byte [ebp - 0x1044], bl
call fcn.004451c0
push esi
lea eax, [ebp - 0x843]
push ebx
push eax
mov byte [ebp - 0x844], bl
call fcn.004451c0
push esi
lea eax, [ebp - 0xc43]
push ebx
push eax
mov byte [ebp - 0xc44], bl
call fcn.004451c0
push esi
lea eax, [ebp - 0x1443]
push ebx
push eax
mov byte [ebp - 0x1444], bl
call fcn.004451c0
lea eax, [ebp - 0x1844]
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x444]
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x1044]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x844]
mov dword [ebp - 0x40], eax
lea eax, [ebp - 0xc44]
mov dword [ebp - 0x18], eax
lea eax, [ebp - 0x1444]
add esp, 0x48
mov dword [ebp - 0x28], eax
lea eax, [esi + 1]
push 0x7ff
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x1c], eax
mov dword [ebp - 0x3c], eax
mov dword [ebp - 0x14], eax
mov dword [ebp - 0x24], eax
lea eax, [ebp - 0x2043]
push ebx
push eax
mov dword [ebp - 0x44], 0x3c
mov byte [ebp - 0x2044], bl
call fcn.004451c0
mov ecx, dword [ebp - 4]
push edi
push fcn.00403ecd
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push 0x103
lea eax, [ebp - 0x2044]
call fcn.00404367
lea eax, [ebp - 0x2044]
add esp, 0x20
lea esi, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x406b41
lea ecx, [ebp - 0x44]
push ecx
sub eax, esi
push ebx
push eax
lea eax, [ebp - 0x2044]
push eax
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
cmp dword [ebp - 0x38], 3
pop esi
je 0x406b6a
cmp dword [ebp - 0x38], 4
jne 0x406b81
push 1
push ebx
push ebx
lea eax, [ebp - 0x2044]
push eax
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
pop edi
pop ebx
leave
ret
Function at 0x407421
Capabilities:
Create directory
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20c
push ebx
push esi
xor eax, eax
push 0x206
mov word [ebp - 0x20c], ax
xor ebx, ebx
lea eax, [ebp - 0x20a]
push ebx
push eax
call fcn.004451c0
lea eax, [ebp - 0x20c]
push eax
push dword [ebp + 0x18]
call fcn.0040e09b
add esp, 0x14
test eax, eax
je 0x407550
lea eax, [ebp + 0x18]
push eax
push 0x45256c
push 1
push ebx
push 0x45257c
mov dword [ebp + 0x18], ebx
mov dword [ebp - 4], ebx
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, ebx
jl 0x407553
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
lea edx, [ebp - 4]
push edx
push 0x4525bc
push eax
call dword [ecx]
mov esi, eax
cmp esi, ebx
jl 0x407545
mov eax, dword [ebp + 0x18]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp + 0x18]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
mov ecx, dword [ebp + 0x1c]
cmp dword [ebp + 0x1c], ebx
jne 0x4074c8
mov ecx, dword [ebp + 8]
mov eax, dword [ebp + 0x18]
mov edx, dword [eax]
push ebx
push ecx
push eax
call dword [edx + 0x44]
mov esi, eax
cmp esi, ebx
jl 0x40753c
mov esi, dword [sym.imp.SHLWAPI.dll_PathAppendW]
cmp dword [ebp + 0x14], ebx
je 0x4074f0
push dword [ebp + 0x14]
lea eax, [ebp - 0x20c]
push eax
call esi
push edi
push ebx
lea eax, [ebp - 0x20c]
push eax
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
push dword [ebp + 0xc]
lea eax, [ebp - 0x20c]
push eax
call esi
lea edi, [ebp - 0x20c]
dec edi
dec edi
mov ax, word [edi + 2]
inc edi
inc edi
cmp ax, bx
jne 0x407513
mov eax, dword [ebp - 4]
mov esi, 0x455524
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
push 1
lea edx, [ebp - 0x20c]
push edx
movsw word es:[edi], word [esi]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x18]
mov esi, eax
pop edi
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp + 0x18]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
jmp 0x407553
mov esi, dword [ebp + 0x1c]
mov eax, esi
pop esi
pop ebx
leave
ret 0x18

Function at 0x4078c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
push ebx
push esi
xor ebx, ebx
push 0x103
lea eax, [ebp - 0x107]
push ebx
push eax
mov dword [ebp - 4], ebx
mov byte [ebp - 0x108], bl
call fcn.004451c0
mov eax, dword [ebp + 8]
add eax, 0x9f6
push eax
lea eax, [ebp - 0x108]
push 0x454c5c
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x18
push ebx
push 0x80
push 2
push ebx
push ebx
push 0x40000000
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov esi, eax
push ebx
lea eax, [ebp - 4]
push eax
mov eax, dword [0x46d5b8]
push dword [eax + 0xe20]
push dword [eax + 0xe1c]
push esi
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret 4
Function at 0x407bc4
Capabilities:
Copy file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x410
push ebx
push esi
push edi
xor eax, eax
mov edi, 0x206
push edi
mov word [ebp - 0x410], ax
xor esi, esi
lea eax, [ebp - 0x40e]
push esi
push eax
call fcn.004451c0
xor eax, eax
push edi
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push esi
push eax
call fcn.004451c0
add esp, 0x18
push 0x104
lea eax, [ebp - 0x410]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
mov eax, dword [ebp + 8]
mov edi, dword [sym.imp.USER32.dll_wsprintfW]
add eax, 0xef2
push str.bresume.exe
push eax
mov dword [ebp + 8], eax
mov ebx, 0x4559b0
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
add esp, 0x10
push esi
mov esi, dword [sym.imp.KERNEL32.dll_CopyFileW]
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call esi
push str.dresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
add esp, 0x10
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call esi
push str.tresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
add esp, 0x10
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call esi
push str.sresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call edi
add esp, 0x10
lea eax, [ebp - 0x208]
push 0
push eax
lea eax, [ebp - 0x410]
push eax
call esi
mov ecx, dword [ebp + 8]
lea eax, [ebp - 0x208]
sub eax, ecx
movzx edx, word [ecx]
mov word [eax + ecx], dx
inc ecx
inc ecx
test dx, dx
jne 0x407cdb
push 0x455a2c
lea eax, [ebp - 0x208]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
push 0
lea eax, [ebp - 0x208]
push eax
lea eax, [ebp - 0x410]
push eax
call esi
pop edi
test eax, eax
pop esi
setne al
pop ebx
leave
ret 4

Function at 0x407d19
Capabilities:
Delete file

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x208
push ebx
push esi
push edi
xor eax, eax
push 0x206
push eax
mov word [ebp - 0x208], ax
lea eax, [ebp - 0x206]
push eax
call fcn.004451c0
mov esi, dword [sym.imp.USER32.dll_wsprintfW]
push str.bresume.exe
push dword [ebp + 8]
mov ebx, 0x4559b0
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
mov edi, dword [sym.imp.KERNEL32.dll_DeleteFileW]
add esp, 0x1c
lea eax, [ebp - 0x208]
push eax
call edi
push str.dresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call edi
push str.tresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call edi
push str.sresume.exe
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call edi
push str.icon.ico
push dword [ebp + 8]
lea eax, [ebp - 0x208]
push ebx
push eax
call esi
add esp, 0x10
lea eax, [ebp - 0x208]
push eax
call edi
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40acb0
Capabilities:
Create thread

Disassembly:
mov eax, 0x450c5e
call fcn.004508fc
push ecx
push ebx
push edi
xor edi, edi
push edi
push edi
push dword [esi + 0x134]
push 0x11
call fcn.0040441c
mov eax, dword [esi + 0xf4]
mov dword [0x46d8fc], eax
mov eax, dword [esi + 0x134]
add esp, 0x10
test byte [eax + 0x904e], 1
je 0x40acf5
mov dword [0x46d900], 1
mov eax, dword [esi + 0x134]
test byte [eax + 0x904e], 2
je 0x40ad0e
mov dword [0x46d900], 2
push 0x928
call fcn.0043b528
pop ecx
mov ecx, eax
mov dword [ebp - 0x10], ecx
mov dword [ebp - 4], edi
cmp ecx, edi
je 0x40ad37
push dword [esi + 0x134]
mov eax, dword [0x46d900]
call fcn.00408b8a
mov edi, eax
or dword [ebp - 4], 0xffffffff
call fcn.004069eb
mov ebx, 0x46d5d8
mov edx, ebx
mov eax, edi
sub edx, edi
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40ad4b
lea eax, [edi + 0x208]
mov edx, 0x46d7e0
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40ad66
lea eax, [edi + 0x410]
mov edx, 0x46d8e4
sub edx, eax
movzx ecx, word [eax]
mov word [edx + eax], cx
inc eax
inc eax
test cx, cx
jne 0x40ad7d
test edi, edi
je 0x40ad96
push edi
call fcn.0043b4d0
pop ecx
xor eax, eax
push eax
push eax
push ebx
push 0x40adbc
push eax
push eax
call fcn.0043bf22
mov ecx, dword [ebp - 0xc]
add esp, 0x18
pop edi
mov byte [esi + 0xd], 1
pop ebx
mov dword fs:[0], ecx
leave
ret

Function at 0x40ade0
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push edi
push dword [0x46ce64]
call dword [sym.imp.KERNEL32.dll_SetEvent]
xor ebx, ebx
cmp dword [ebp + 8], ebx
jne 0x40ae67
mov byte [esi + 0x131], 1
cmp dword [esi + 0x138], ebx
je 0x40ae67
cmp byte [esi + 0x130], bl
je 0x40ae55
mov eax, dword [esi + 0x134]
cmp byte [eax + 0xaf9d], bl
je 0x40ae49
lea edi, [eax + 0x6740]
cmp edi, ebx
je 0x40ae49
mov eax, edi
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
cmp cl, bl
jne 0x40ae2d
sub eax, edx
je 0x40ae49
push 1
push ebx
push ebx
push edi
push str.open
push ebx
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
push ebx
push ebx
push dword [esi + 0x134]
push 0x10
jmp 0x40ae5f
push ebx
push ebx
push dword [esi + 0x134]
push 0x19
call fcn.0040441c
add esp, 0x10
cmp byte [esi + 0x132], bl
je 0x40ae93
cmp dword [ebp + 8], 1
jne 0x40ae93
push ebx
push ebx
push dword [esi + 0x134]
cmp byte [esi + 0x12e], bl
je 0x40ae89
push 0x14
jmp 0x40ae8b
push 0x13
call fcn.0040441c
add esp, 0x10
mov eax, dword [esi + 0x100]
cmp eax, ebx
je 0x40aeb4
cmp byte [esi + 0x132], bl
je 0x40aeb4
push eax
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
mov byte [esi + 0x132], bl
mov eax, dword [ebp + 8]
or dword [esi + 0xe0], 0xffffffff
push eax
push ebx
push dword [esi + 0xf4]
mov dword [esi + 0x10c], eax
call dword [sym.imp.USER32.dll_SetWindowLongA]
pop edi
pop ebx
leave
ret 4
Function at 0x40bd68
Capabilities:
Hide graphical window

Disassembly:
push ebx
mov ebx, dword [sym.imp.USER32.dll_ShowWindow]
push edi
push 5
lea edi, [esi + 0xf4]
push dword [edi]
call ebx
push 1
push dword [edi]
call ebx
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
push dword [esi + 0x100]
push 2
call dword [sym.imp.SHELL32.dll_Shell_NotifyIconA]
pop edi
mov byte [esi + 0x132], 0
pop ebx
ret
Function at 0x40c7f6
Capabilities:
Create directory

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
push ebx
push esi
push edi
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryA]
push str.advapi32.dll
mov dword [ebp - 8], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov esi, eax
push str.GetSecurityInfo
push esi
mov dword [ebp - 0x24], esi
call edi
push str.SetSecurityInfo
push esi
mov dword [ebp - 0xc], eax
call edi
push str.SetEntriesInAclA
push esi
mov dword [ebp - 0x18], eax
call edi
push str.AllocateAndInitializeSid
push esi
mov dword [ebp - 0x14], eax
call edi
mov edi, eax
cmp dword [ebp - 0xc], ebx
je 0x40c974
cmp dword [ebp - 0x18], ebx
je 0x40c974
cmp dword [ebp - 0x14], ebx
je 0x40c974
cmp edi, ebx
je 0x40c974
push ebx
push 0x2000000
push 3
push ebx
push ebx
push 0x60000
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov dword [ebp - 0x20], eax
cmp eax, 0xffffffff
je 0x40c974
lea ecx, [ebp - 0x1c]
push ecx
push ebx
lea ecx, [ebp - 0x10]
push ecx
push ebx
push ebx
push 4
xor esi, esi
inc esi
push esi
push eax
mov dword [ebp - 0x1c], ebx
call dword [ebp - 0xc]
cmp dword [ebp - 8], ebx
jne 0x40c8bc
cmp dword [ebp - 0x10], ebx
jne 0x40c94e
lea eax, [ebp - 0xc]
push eax
push ebx
push ebx
push ebx
push ebx
push ebx
push ebx
push 0x221
push 0x20
push 2
lea eax, [ebp - 0x2c]
push eax
mov dword [ebp - 0xc], ebx
mov byte [ebp - 0x2c], bl
mov byte [ebp - 0x2b], bl
mov byte [ebp - 0x2a], bl
mov byte [ebp - 0x29], bl
mov byte [ebp - 0x28], bl
mov byte [ebp - 0x27], 5
call edi
push 7
pop ecx
xor eax, eax
lea edi, [ebp - 0x48]
rep stosd dword es:[edi], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 0x30], eax
lea eax, [ebp - 8]
push eax
push dword [ebp - 0x10]
lea eax, [ebp - 0x4c]
push eax
push esi
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], 0x10000000
mov dword [ebp - 0x44], 3
mov dword [ebp - 0x34], 2
mov dword [ebp - 0x38], ebx
mov dword [ebp - 8], ebx
call dword [ebp - 0x14]
cmp dword [ebp - 8], ebx
je 0x40c93c
push ebx
push dword [ebp - 8]
push ebx
push ebx
push 4
push esi
push dword [ebp - 0x20]
call dword [ebp - 0x18]
push dword [ebp - 0xc]
call dword [sym.imp.ADVAPI32.dll_FreeSid]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_LocalFree]
push dword [ebp - 0x1c]
mov edi, dword [sym.imp.KERNEL32.dll_LocalFree]
call edi
push dword [ebp - 0x10]
call edi
push dword [ebp - 0x20]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push dword [ebp - 0x24]
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov eax, esi
jmp 0x40c97e
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x40cc92
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x58
push ebx
push edi
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov edi, 0x45644c
push edi
call dword [sym.imp.KERNEL32.dll_GetDriveTypeA]
cmp eax, 3
jne 0x40cd87
xor ebx, ebx
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 8]
push eax
push ebx
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
test eax, eax
je 0x40cd87
mov edi, dword [sym.imp.KERNEL32.dll_CreateFileA]
push ebx
push ebx
push 3
push ebx
push 2
push ebx
push str..C:
call edi
mov dword [ebp - 4], eax
push ebx
cmp eax, 0xffffffff
jne 0x40cd8b
push 0x4000000
push ebx
push ebx
push ebx
push ebx
push str..VWIN32
call edi
mov dword [ebp - 4], eax
cmp eax, 0xffffffff
je 0x40cd87
push ebx
lea ecx, [ebp - 0xc]
push ecx
push 0x1c
lea ecx, [ebp - 0x30]
push ecx
lea eax, [ebp - 0x58]
mov dword [ebp - 0x2c], eax
push 0x1c
xor eax, eax
inc eax
push ecx
push eax
push dword [ebp - 4]
mov byte [ebp - 0x58], bl
mov dword [ebp - 0x30], 3
mov dword [ebp - 0x28], 0x860
mov dword [ebp - 0x24], 0x440d
mov dword [ebp - 0x18], eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40cd7e
test byte [ebp - 0x18], 1
jne 0x40cd7e
movzx edx, word [ebp - 0x44]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
movzx eax, word [ebp - 0x51]
mov ecx, edx
mov edi, eax
not ecx
shl edi, 2
xor edi, ecx
mov ecx, dword [ebp - 8]
xor edi, ecx
shl edx, 2
not eax
not ecx
xor edx, eax
xor edx, ecx
mov dword [esi + 4], edx
mov dword [esi], edi
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
pop ebx
leave
ret
lea ecx, [ebp - 0xc]
push ecx
push 0x18
lea ecx, [ebp - 0x30]
push ecx
push ebx
push ebx
push 0x70000
push eax
call dword [sym.imp.KERNEL32.dll_DeviceIoControl]
test eax, eax
je 0x40cd7e
cmp dword [ebp - 0xc], ebx
jbe 0x40cd7e
mov edx, dword [ebp - 0x20]
xor eax, eax
mov edi, esi
stosd dword es:[edi], eax
stosd dword es:[edi], eax
mov eax, dword [ebp - 0x1c]
jmp 0x40cd5e

Function at 0x40d01e
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
lea ecx, [eax + 2]
xor ebx, ebx
mov dx, word [eax]
inc eax
inc eax
cmp dx, bx
jne 0x40d02c
sub eax, ecx
sar eax, 1
lea esi, [eax + eax + 2]
mov eax, dword [ebp + 8]
call fcn.0040ce01
mov edi, eax
cmp edi, ebx
je 0x40d07b
push esi
push dword [ebp + 0x10]
push 1
push ebx
cmp dword [ebp + 0xc], ebx
je 0x40d064
push dword [ebp + 0xc]
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
jmp 0x40d06b
push edi
call dword [sym.imp.ADVAPI32.dll_RegSetValueW]
xor ecx, ecx
cmp eax, ebx
sete cl
push edi
mov ebx, ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov eax, ebx
pop ebx
pop ebp
ret 0xc
Function at 0x40d2e3
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
mov esi, eax
mov eax, dword [esi + 0x114]
cmp eax, 0xffffffff
je 0x40d31c
xor esi, esi
push esi
lea ecx, [ebp - 4]
push ecx
push edi
push dword [ebp + 8]
mov dword [ebp - 4], esi
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x40d318
cmp dword [ebp - 4], esi
je 0x40d318
xor eax, eax
inc eax
jmp 0x40d341
xor eax, eax
jmp 0x40d341
mov eax, dword [esi + 4]
cmp eax, dword [esi + 0x118]
jb 0x40d32b
xor al, al
jmp 0x40d341
mov ecx, dword [esi]
push edi
add ecx, eax
push ecx
push dword [ebp + 8]
call fcn.00442a00
add esp, 0xc
add dword [esi + 4], edi
mov al, 1
pop esi
leave
ret 4

Function at 0x40d4ee
Capabilities:
Resolve dns

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 8]
mov esi, eax
mov eax, dword [ebp + 0x18]
and dword [esi], 0
mov byte [eax], 0
call dword [sym.imp.WSOCK32.dll_gethostbyname]
mov ebx, eax
test ebx, ebx
je 0x40d563
cmp word [ebx + 8], 2
jne 0x40d543
cmp word [ebx + 0xa], 4
jne 0x40d543
mov edi, dword [ebx + 0xc]
jmp 0x40d53d
push dword [eax]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
call fcn.0040d487
mov dword [esi], eax
test eax, eax
je 0x40d55e
lea esi, [eax + 0x1c]
add edi, 4
mov eax, dword [edi]
test eax, eax
jne 0x40d521
push 0x400
push dword [ebx]
push 0x401
push dword [ebp + 0x18]
call fcn.0043c9cf
add esp, 0x10
xor eax, eax
jmp 0x40d589
push 8
pop eax
jmp 0x40d589
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, eax
mov eax, 0x2af9
sub ecx, eax
je 0x40d589
dec ecx
je 0x40d584
dec ecx
je 0x40d57d
dec ecx
jmp 0x40d589
mov eax, 0x2afb
jmp 0x40d589
mov eax, 0x2afa
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x40db62
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x230
cmp dword [0x46d95c], 0
push ebx
push esi
push edi
mov dword [ebp - 0x18], str.getaddrinfo
mov dword [ebp - 0x14], 0x40d6e6
mov dword [ebp - 0x10], str.getnameinfo
mov dword [ebp - 0xc], 0x40d9a7
mov dword [ebp - 8], str.freeaddrinfo
mov dword [ebp - 4], fcn.0040d6ad
jne 0x40dcbc
push 0x104
lea eax, [ebp - 0x230]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
test eax, eax
je 0x40dcb2
lea eax, [ebp - 0x230]
push eax
mov esi, 0x10c
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0043c6e1
push str.ws2_32
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0043bb0f
mov ebx, dword [sym.imp.KERNEL32.dll_LoadLibraryA]
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40dc1f
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40dc1b
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
jne 0x40dc74
lea eax, [ebp - 0x230]
push eax
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0043c6e1
push str.wship6
lea eax, [ebp - 0x128]
push esi
push eax
call fcn.0043bb0f
add esp, 0x18
lea eax, [ebp - 0x128]
push eax
call ebx
mov edi, eax
test edi, edi
je 0x40dcb2
push str.getaddrinfo
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
jne 0x40dc70
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x40dcb2
xor esi, esi
push dword [ebp + esi*8 - 0x18]
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [ebp + esi*8 - 0x14], eax
test eax, eax
je 0x40dc91
inc esi
cmp esi, 3
jl 0x40dc76
jmp 0x40dc9a
push edi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor edi, edi
test edi, edi
je 0x40dcb2
xor eax, eax
mov ecx, dword [ebp + eax - 0x14]
mov dword [eax + 0x46b174], ecx
add eax, 8
cmp eax, 0x18
jl 0x40dca0
mov dword [0x46d95c], 1
mov eax, dword [0x46b174]
pop edi
pop esi
pop ebx
leave
ret

Function at 0x40dcc6
Capabilities:
Hash data with md5

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x60
push dword [ebp + 0xc]
and dword [ebp - 0x4c], 0
and dword [ebp - 0x50], 0
lea ecx, [ebp - 0x60]
mov dword [ebp - 0x60], 0x67452301
mov dword [ebp - 0x5c], 0xefcdab89
mov dword [ebp - 0x58], 0x98badcfe
mov dword [ebp - 0x54], 0x10325476
call fcn.004123e8
pop ecx
push 8
pop edx
lea eax, [ebp - 0x50]
lea ecx, [ebp - 8]
call fcn.00412b28
mov ecx, dword [ebp - 0x50]
shr ecx, 3
push 0x38
and ecx, 0x3f
pop eax
cmp ecx, eax
jb 0x40dd1d
push 0x78
pop eax
sub eax, ecx
push 0x45f9a0
lea ecx, [ebp - 0x60]
call fcn.004123e8
lea eax, [ebp - 8]
push eax
push 8
pop eax
lea ecx, [ebp - 0x60]
call fcn.004123e8
pop ecx
pop ecx
mov ecx, dword [ebp + 8]
push 0x10
pop edx
lea eax, [ebp - 0x60]
call fcn.00412b28
leave
ret
Function at 0x40dd4d
Capabilities:
Get file version info

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x514
push esi
push 0x104
lea eax, [ebp - 0x114]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 0x114]
push eax
call sub.VERSION.dll_GetFileVersionInfoSizeA
mov esi, eax
test esi, esi
jne 0x40dd8b
mov eax, 0x46d968
jmp 0x40de18
push edi
push esi
call fcn.0043b528
pop ecx
mov edi, eax
push edi
push esi
push dword [ebp - 0x10]
lea eax, [ebp - 0x114]
push eax
call sub.VERSION.dll_GetFileVersionInfoA
and dword [ebp - 4], 0
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
push str.VarFileInfoTranslation
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 4]
movzx ecx, word [eax + 2]
movzx eax, word [eax]
push 0x454c80
push ecx
push eax
lea eax, [ebp - 0x514]
push str.StringFileInfo_04x_04x_s
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
lea eax, [ebp - 0x514]
push eax
push edi
call sub.VERSION.dll_VerQueryValueA
mov eax, dword [ebp - 0xc]
mov esi, 0x46d968
mov edx, esi
sub edx, eax
mov cl, byte [eax]
mov byte [edx + eax], cl
inc eax
test cl, cl
jne 0x40de04
push edi
call fcn.0043b4d0
pop ecx
mov eax, esi
pop edi
pop esi
leave
ret