joyce8/EMBER2024-capa huggingface dataset:
Function at 0x402120
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x5c
mov esi, dword [ebp + 8]
lea edi, [ebp - 0x58]
cld
mov ecx, 3
mov eax, 0
rep stosd dword es:[edi], eax
mov word [edi], 0
mov byte [edi + 2], 0
mov dword [ebp - 0x58], 0x6b6c7665
mov dword [ebp - 0x54], 0x686f6472
mov word [ebp - 0x50], 0x706c
mov byte [ebp - 0x4e], 0
lea eax, [ebp - 0x58]
mov dword [esp + 4], eax
mov dword [esp], 0x40e44a
call fcn.00404c6a
call fcn.00402106
mov ecx, dword [0x414008]
mov edi, 0
mov ebx, 0xcccccccd
mov eax, ecx
mul ebx
shr edx, 3
lea eax, [edx + edx*4]
add eax, eax
sub ecx, eax
mov dword [ebp + edi*4 - 0x48], ecx
mov ecx, edx
inc edi
cmp edi, 9
jle 0x402185
mov edx, 0
mov eax, dword [ebp + edx*4 - 0x48]
movzx eax, byte [eax + ebp - 0x58]
mov byte [edx + esi], al
inc edx
cmp edx, 9
jle 0x4021a4
mov byte [esi + 0xa], 0
cmp dword [ebp - 0x48], 0
jne 0x4021d6
mov eax, dword [0x40d060]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 1
jne 0x4021f2
mov eax, dword [0x40d064]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 2
jne 0x40220b
mov eax, dword [0x40d068]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 3
jne 0x402224
mov eax, dword [0x40d06c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 4
jne 0x40223d
mov eax, dword [0x40d070]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 5
jne 0x402256
mov eax, dword [0x40d074]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
cmp dword [ebp - 0x48], 6
jne 0x40226f
mov eax, dword [0x40d078]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
jmp 0x402280
mov eax, dword [0x40d07c]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.msvcrt.dll_strcat
add esp, 0x5c
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x402f2e
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov byte [ebp - 5], 0
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 1
mov dword [esp + 4], 0xc0000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov ebx, eax
cmp eax, 0xffffffff
sete dl
test eax, eax
sete al
mov ecx, 0
or dl, al
jne 0x402fba
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.KERNEL32.DLL_GetFileSize
sub esp, 8
cmp eax, 0xfa8da
jae 0x402fab
mov byte [ebp - 5], 1
mov dword [esp], ebx
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
movzx ecx, byte [ebp - 5]
mov eax, ecx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x403390
Capabilities:
Create thread
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xcc
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov dword [ebp - 0xa0], eax
test eax, eax
sete dl
cmp eax, 0xffffffff
sete al
mov ecx, 1
or dl, al
jne 0x403618
mov dword [esp + 4], 0
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call sub.KERNEL32.DLL_GetFileSize
sub esp, 8
mov dword [ebp - 0xb0], eax
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 2
mov dword [esp + 4], 0
mov edx, dword [ebp - 0xa0]
mov dword [esp], edx
call sub.KERNEL32.DLL_CreateFileMappingA
sub esp, 0x18
mov dword [ebp - 0xa4], eax
test eax, eax
sete dl
cmp eax, 0xffffffff
sete al
or dl, al
je 0x403480
mov eax, dword [ebp - 0xa0]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov ecx, 2
jmp 0x403618
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 4
mov edx, dword [ebp - 0xa4]
mov dword [esp], edx
call sub.KERNEL32.DLL_MapViewOfFile
sub esp, 0x14
mov esi, eax
test eax, eax
jne 0x4034e3
mov eax, dword [ebp - 0xa4]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edx, dword [ebp - 0xa0]
mov dword [esp], edx
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov ecx, 3
jmp 0x403618
mov eax, dword [eax + 0x60]
mov dword [ebp - 0xac], eax
mov edx, dword [esi + 0x64]
mov dword [ebp - 0xa8], edx
mov edi, 0
cmp edi, edx
jae 0x4035e6
mov eax, edi
shl eax, 4
add eax, edi
mov edx, dword [ebp - 0xac]
lea ebx, [edx + eax*4]
lea eax, [ebp - 0x98]
mov dword [esp + 8], pe_nt_image_headers32
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov ecx, 0
cmp ebx, dword [ebp - 0xb0]
jae 0x403565
movzx eax, byte [ebx + esi]
mov byte [ecx + ebp - 0x98], al
cmp byte [ebx + esi], 0
je 0x403565
inc ecx
add ebx, 2
cmp ebx, dword [ebp - 0xb0]
setb dl
cmp ecx, 0x43
setbe al
test dl, al
jne 0x40353d
test ecx, ecx
je 0x4035d9
jmp 0x40357a
mov dword [esp], 0x7530
call sub.KERNEL32.DLL_Sleep
sub esp, 4
call fcn.00404f0a
test eax, eax
je 0x40356b
lea ebx, [ebp - 0x98]
mov dword [esp], ebx
call fcn.00403008
test eax, eax
je 0x4035ca
lea eax, [ebp - 0x9c]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], ebx
mov dword [esp + 8], 0x402288
mov dword [esp + 4], 0
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateThread
sub esp, 0x18
mov dword [esp], 0x32
call sub.KERNEL32.DLL_Sleep
sub esp, 4
inc edi
cmp edi, dword [ebp - 0xa8]
jb 0x403502
mov dword [esp], esi
call sub.KERNEL32.DLL_UnmapViewOfFile
sub esp, 4
mov eax, dword [ebp - 0xa4]
mov dword [esp], eax
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov edx, dword [ebp - 0xa0]
mov dword [esp], edx
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov ecx, 0
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x403790
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x27c
cmp dword [ebp + 0xc], 0
setle dl
cmp dword [ebp + 8], 0
sete al
mov ecx, 1
or dl, al
jne 0x403964
mov ecx, 1
mov eax, dword [ebp + 8]
cmp byte [eax], 0
je 0x403964
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea ebx, [ebp - 0x138]
mov dword [esp], ebx
call sub.msvcrt.dll_strcpy
mov edx, 0xffffffff
mov edi, ebx
mov al, 0
cld
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
cmp byte [ebp + ecx - 0x13a], 0x5c
je 0x403806
mov edi, ebx
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
mov word [ecx + ebx - 1], 0x5c
lea edx, [ebp - 0x138]
mov edi, edx
cld
mov ecx, 0xffffffff
mov al, 0
repne scasb al, byte es:[edi]
not ecx
mov dword [ecx + edx - 1], 0x2a2e2a
lea eax, [ebp - 0x278]
mov dword [esp + 8], 0x140
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
mov esi, 0
test esi, esi
jne 0x40387b
lea eax, [ebp - 0x278]
mov dword [esp + 4], eax
lea eax, [ebp - 0x138]
mov dword [esp], eax
call sub.KERNEL32.DLL_FindFirstFileA
sub esp, 8
mov esi, eax
cmp eax, 0xffffffff
setne al
movzx eax, al
neg eax
and esi, eax
je 0x40395f
jmp 0x403898
lea eax, [ebp - 0x278]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.DLL_FindNextFileA
sub esp, 8
test eax, eax
je 0x403950
cmp byte [ebp - 0x24c], 0x2e
jne 0x4038bc
cmp byte [ebp - 0x24b], 0
je 0x403845
cmp byte [ebp - 0x24b], 0x2e
jne 0x4038bc
cmp byte [ebp - 0x24a], 0
je 0x403845
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
lea ebx, [ebp - 0x138]
mov dword [esp], ebx
call sub.KERNEL32.DLL_lstrcpyA
sub esp, 8
mov edx, 0xffffffff
mov edi, ebx
mov al, 0
cld
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
cmp byte [ebp + ecx - 0x13a], 0x5c
je 0x4038fd
mov edi, ebx
mov ecx, edx
repne scasb al, byte es:[edi]
not ecx
mov word [ecx + ebx - 1], 0x5c
lea eax, [ebp - 0x24c]
mov dword [esp + 4], eax
lea ebx, [ebp - 0x138]
mov dword [esp], ebx
call sub.msvcrt.dll_strcat
test byte [ebp - 0x278], 0x10
je 0x403933
mov eax, dword [ebp + 0xc]
dec eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call fcn.00403790
jmp 0x403845
lea eax, [ebp - 0x278]
mov dword [esp + 4], eax
lea eax, [ebp - 0x138]
mov dword [esp], eax
call fcn.00403622
jmp 0x403845
test esi, esi
je 0x40395f
mov dword [esp], esi
call sub.KERNEL32.DLL_FindClose
sub esp, 4
mov ecx, 0
mov eax, ecx
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x40396e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x184
lea eax, [ebp - 0x15c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40efd0
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x403a32
lea ebx, [ebp - 0x158]
mov dword [esp + 8], 0x100
mov dword [esp + 4], 0
mov dword [esp], ebx
call sub.msvcrt.dll_memset
mov dword [ebp - 0x160], 0x100
lea eax, [ebp - 0x160]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], ebx
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x15c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov eax, dword [ebp - 0x15c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
cmp byte [ebp - 0x158], 0
je 0x403a32
mov dword [esp], ebx
call fcn.00403390
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x403a38
Capabilities:
Get disk information

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x130
lea eax, [ebp - 0x118]
mov dword [esp + 8], 0x104
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.msvcrt.dll_memset
movzx eax, byte [ebp - 0x118]
mov byte [ebp - 0x119], al
mov word [ebp - 0x117], 0x5c3a
mov byte [ebp - 0x115], 0
mov byte [ebp - 0x118], 0x43
lea esi, [ebp - 0x118]
movzx eax, byte [ebp - 0x119]
cmp byte [ebp - 0x118], al
je 0x403ac9
mov dword [esp], esi
call sub.KERNEL32.DLL_GetDriveTypeA
sub esp, 4
cmp eax, 3
jne 0x403ac9
mov dword [esp], 0xbb8
call sub.KERNEL32.DLL_Sleep
sub esp, 4
mov dword [esp + 4], 0xf
mov dword [esp], esi
call fcn.00403790
inc byte [ebp - 0x118]
cmp byte [ebp - 0x118], 0x58
jle 0x403a8b
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x403e2e
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov dword [esp + 4], 0x40f08d
lea ebx, [ebp - 0x48]
mov dword [esp], ebx
call fcn.00404c38
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateMutexA
sub esp, 0xc
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
sete al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x403f24
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0xc0
mov esi, dword [ebp + 8]
mov dword [esp + 4], 0x40f0d4
lea ebx, [ebp - 0x88]
mov dword [esp], ebx
call fcn.00404c38
lea eax, [ebp - 0x8c]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20006
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000000
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x403fcf
mov dword [esp + 0x20], 0
lea eax, [ebp - 0x8c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0x20006
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000000
call sub.ADVAPI32.DLL_RegCreateKeyExA
sub esp, 0x24
mov edx, 0
test eax, eax
jne 0x404022
mov dword [esp], esi
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
mov eax, dword [ebp - 0x8c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov edx, 1
mov eax, edx
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x40402c
Capabilities:
Check mutex on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x54
mov dword [esp + 4], 0x40f110
lea ebx, [ebp - 0x48]
mov dword [esp], ebx
call fcn.00404c38
mov dword [esp + 8], ebx
mov dword [esp + 4], 1
mov dword [esp], 0
call sub.KERNEL32.DLL_CreateMutexA
sub esp, 0xc
call sub.KERNEL32.DLL_GetLastError
cmp eax, 0xb7
sete al
movzx eax, al
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40435c
Capabilities:
Timestomp file

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x80000000
mov eax, dword [ebp + 8]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov ebx, eax
test eax, eax
sete dl
cmp eax, 0xffffffff
sete al
mov ecx, 0
or dl, al
jne 0x404474
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_GetFileTime
sub esp, 0x10
mov ecx, 0
test eax, eax
je 0x404474
mov dword [esp], ebx
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 3
mov dword [esp + 0xc], 0
mov dword [esp + 8], 3
mov dword [esp + 4], 0x40000000
mov eax, dword [ebp + 0xc]
mov dword [esp], eax
call sub.KERNEL32.DLL_CreateFileA
sub esp, 0x1c
mov ebx, eax
test eax, eax
sete dl
cmp eax, 0xffffffff
sete al
mov ecx, 0
or dl, al
jne 0x404474
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], eax
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_SetFileTime
sub esp, 0x10
mov ecx, 0
test eax, eax
je 0x404474
mov dword [esp], ebx
call sub.KERNEL32.DLL_CloseHandle
sub esp, 4
mov ecx, 1
mov eax, ecx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x40447c
Capabilities:
Hash data via wincrypt
Hash data with md5
Initialize hashing via wincrypt

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
sub esp, 0x40
mov ebx, dword [ebp + 0x10]
lea edi, [ebp - 0x18]
cld
mov ecx, 4
mov eax, 0
rep stosd dword es:[edi], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov dword [esp + 4], 0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptAcquireContextA
sub esp, 0x14
mov edx, 0
test eax, eax
je 0x404616
lea eax, [ebp - 0x20]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x8003
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptCreateHash
sub esp, 0x14
mov edx, 0
test eax, eax
je 0x404616
mov dword [esp + 0xc], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 8], eax
mov eax, dword [ebp + 8]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptHashData
sub esp, 0x10
test eax, eax
jne 0x404562
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptDestroyHash
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptReleaseContext
sub esp, 8
mov edx, 0
jmp 0x404616
mov dword [ebp - 0x24], 4
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x24]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x28]
mov dword [esp + 8], eax
mov dword [esp + 4], 4
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptGetHashParam
sub esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x28]
mov dword [esp + 0xc], eax
lea eax, [ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 2
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptGetHashParam
sub esp, 0x14
mov eax, dword [ebp - 0x20]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptDestroyHash
sub esp, 4
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x1c]
mov dword [esp], eax
call sub.ADVAPI32.DLL_CryptReleaseContext
sub esp, 8
mov edi, 0
cmp edi, dword [ebp - 0x28]
jae 0x404611
movzx eax, byte [edi + ebp - 0x18]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x40f150
lea eax, [ebx + edi*2]
mov dword [esp], eax
call sub.msvcrt.dll_sprintf
inc edi
cmp edi, dword [ebp - 0x28]
jb 0x4045ef
mov edx, 1
mov eax, edx
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret

Function at 0x404620
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x10
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], esi
call sub.msvcrt.dll_memset
mov dword [esp + 4], ebx
mov dword [esp], esi
call sub.KERNEL32.DLL_GetSystemDirectoryA
sub esp, 8
mov dword [esp], esi
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
cmp byte [eax + esi - 1], 0x5c
je 0x404676
mov dword [esp + 4], 0x40f156
mov dword [esp], esi
call sub.KERNEL32.DLL_lstrcatA
sub esp, 8
mov eax, dword [ebp + 0x10]
mov dword [esp + 4], eax
mov dword [esp], esi
call sub.KERNEL32.DLL_lstrcatA
sub esp, 8
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret
Function at 0x404690
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
sub esp, 0x20
mov ebx, dword [ebp + 8]
mov esi, dword [ebp + 0x10]
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20006
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x4046fa
lea eax, [ebp - 0xc]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20006
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x404741
mov dword [esp], esi
call sub.KERNEL32.DLL_lstrlenA
sub esp, 4
inc eax
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], esi
mov dword [esp + 0xc], 1
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
lea esp, [ebp - 8]
pop ebx
pop esi
pop ebp
ret

Function at 0x404748
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x14]
mov dword [ebp - 0xc], eax
mov dword [ebp - 0x10], 1
lea eax, [ebp - 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x4047c0
lea eax, [ebp - 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
mov edx, 0
test eax, eax
jne 0x40480a
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
test ebx, ebx
sete al
movzx edx, al
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x404812
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x34
mov ebx, dword [ebp + 8]
mov dword [ebp - 0xc], 4
mov dword [ebp - 0x14], 4
lea eax, [ebp - 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x40488b
lea eax, [ebp - 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20019
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
mov edx, 1
test eax, eax
jne 0x4048db
lea eax, [ebp - 0xc]
mov dword [esp + 0x14], eax
lea eax, [ebp - 0x10]
mov dword [esp + 0x10], eax
lea eax, [ebp - 0x14]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegQueryValueExA
sub esp, 0x18
mov ebx, eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov eax, 0x42
test ebx, ebx
jne 0x4048d9
mov eax, dword [ebp - 0x10]
mov edx, eax
mov eax, edx
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x4048e2
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x24
mov ebx, dword [ebp + 8]
lea eax, [ebp - 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20006
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000002
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
je 0x404948
lea eax, [ebp - 8]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 0x20006
mov dword [esp + 8], 0
mov dword [esp + 4], ebx
mov dword [esp], 0x80000001
call sub.ADVAPI32.DLL_RegOpenKeyExA
sub esp, 0x14
test eax, eax
jne 0x40498a
mov dword [esp + 0x14], 4
lea eax, [ebp + 0x10]
mov dword [esp + 0x10], eax
mov dword [esp + 0xc], 4
mov dword [esp + 8], 0
mov eax, dword [ebp + 0xc]
mov dword [esp + 4], eax
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegSetValueExA
sub esp, 0x18
mov eax, dword [ebp - 8]
mov dword [esp], eax
call sub.ADVAPI32.DLL_RegCloseKey
sub esp, 4
mov ebx, dword [ebp - 4]
leave
ret

Function at 0x404c6a
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push esi
push ebx
mov esi, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov ecx, 0
cmp byte [ebx], 0
je 0x404ca2
mov edx, 0
cmp byte [esi], 0
je 0x404c9b
mov eax, ecx
imul eax, edx
add al, byte [edx + esi]
xor byte [ecx + ebx], al
inc edx
cmp byte [edx + esi], 0
jne 0x404c89
inc ecx
cmp byte [ecx + ebx], 0
jne 0x404c7f
pop ebx
pop esi
pop ebp
ret
Function at 0x404d3a
Capabilities:
Enumerate processes
Terminate process

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x14c
mov edi, dword [ebp + 8]
mov dword [esp + 4], 0
mov dword [esp], 2
call sub.KERNEL32.DLL_CreateToolhelp32Snapshot
sub esp, 8
mov ebx, eax
mov dword [ebp - 0x148], 0x128
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_Process32First
sub esp, 8
test eax, eax
je 0x404dec
lea esi, [ebp - 0x124]
mov dword [esp + 4], edi
mov dword [esp], esi
call sub.msvcrt.dll_strcmp
test eax, eax
jne 0x404dd3
mov eax, dword [ebp - 0x140]
mov dword [esp + 8], eax
mov dword [esp + 4], 1
mov dword [esp], 1
call sub.KERNEL32.DLL_OpenProcess
sub esp, 0xc
test eax, eax
je 0x404dd3
mov dword [esp + 4], 0
mov dword [esp], eax
call sub.KERNEL32.DLL_TerminateProcess
sub esp, 8
lea eax, [ebp - 0x148]
mov dword [esp + 4], eax
mov dword [esp], ebx
call sub.KERNEL32.DLL_Process32Next
sub esp, 8
test eax, eax
jne 0x404d8b
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret

Function at 0x404f0a
Capabilities:
Check internet connectivity via wininet

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x64
mov dword [esp + 4], 0x40f225
lea ebx, [ebp - 0x48]
mov dword [esp], ebx
call fcn.00404c38
mov dword [esp], ebx
call sub.KERNEL32.DLL_GetModuleHandleA
sub esp, 4
test eax, eax
sete dl
cmp eax, 0xffffffff
sete al
or dl, al
je 0x404f5d
mov dword [esp], ebx
call sub.KERNEL32.DLL_LoadLibraryA
sub esp, 4
test eax, eax
sete dl
cmp eax, 0xffffffff
sete al
mov ecx, 2
or dl, al
jne 0x404f7b
mov dword [esp + 4], 0
lea eax, [ebp - 0x4c]
mov dword [esp], eax
call sub.WININET.DLL_InternetGetConnectedState
sub esp, 8
test eax, eax
setne al
movzx ecx, al
mov eax, ecx
mov ebx, dword [ebp - 4]
leave
ret