joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4921f7
Capabilities:
Set socket configuration

Disassembly:
mov eax, 0x4c2871
call fcn.00458b70
mov eax, 0x2008
call fcn.00458e90
push ebx
push edi
push dword [ebp + 0x14]
mov edi, ecx
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString_5
mov eax, dword [ebp + 0xc]
xor ebx, ebx
add eax, 0xa
mov dword [ebp - 4], ebx
cmp eax, 0x2000
jle 0x492260
push 8
call sub.MFC42.DLL_operatornew
pop ecx
mov ecx, eax
mov dword [ebp + 0x10], ecx
cmp ecx, ebx
mov byte [ebp - 4], 1
je 0x49224a
push 1
call sub.MFC42.DLL_CException::CException
jmp 0x49224c
xor eax, eax
mov byte [ebp - 4], bl
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push 0x4f4568
push eax
call sub.MSVCRT.dll__CxxThrowException
push esi
mov byte [ebp - 0x2014], bl
push dword [ebp + 0x14]
mov byte [ebp - 0x2013], bl
mov byte [ebp - 0x2012], bl
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 0x14], eax
jne 0x4922ac
mov eax, dword [ebp + 0x14]
mov byte [ebp - 0x2011], 3
mov ebx, dword [eax - 8]
push ebx
push eax
lea eax, [ebp - 0x200f]
mov byte [ebp - 0x2010], bl
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea esi, [ebx + 5]
jmp 0x4922cb
lea eax, [ebp - 0x14]
push 4
push eax
lea eax, [ebp - 0x2010]
push eax
mov byte [ebp - 0x2011], 1
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 8
pop esi
push dword [ebp + 0x10]
call sub.WSOCK32.dll_htons
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push 2
push eax
lea eax, [ebp + esi - 0x2014]
push eax
call sub.MSVCRT.dll_memcpy
push dword [ebp + 0xc]
inc esi
inc esi
push dword [ebp + 8]
lea eax, [ebp + esi - 0x2014]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [edi + 0x58]
add esp, 0x18
add esi, dword [ebp + 0xc]
mov ecx, edi
push dword [ebp + 0x18]
push eax
lea eax, [ebp - 0x2014]
push dword [edi + 0x5c]
push esi
push eax
call sub.MFC42.DLL_CAsyncSocket::SendTo
cmp eax, esi
pop esi
je 0x492332
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
xor eax, eax
jmp 0x492341
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp + 0x14]
call sub.MFC42.DLL_CString::CString
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp - 0xc]
pop edi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x14
Function at 0x4954dd
Capabilities:
Resolve dns
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
mov esi, ecx
push edi
xor ebx, ebx
push 0x40
lea edi, [esi + 0x1c]
push ebx
push edi
call sub.MSVCRT.dll_memset
lea eax, [esi + 0x9c]
push 0x40
push ebx
push eax
call sub.MSVCRT.dll_memset
lea eax, [esi + 0x5c]
push 0x40
push ebx
push eax
call sub.MSVCRT.dll_memset
mov eax, dword [ebp + 0x10]
add esp, 0x24
cmp eax, ebx
mov word [esi + 0xdc], bx
mov dword [esi + 0xe0], ebx
je 0x495536
cmp byte [eax], bl
je 0x495536
push 0x3f
push eax
push edi
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0x14]
cmp eax, ebx
je 0x495554
cmp byte [eax], bl
je 0x495554
push 0x3f
push eax
lea eax, [esi + 0x9c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov eax, dword [ebp + 0x18]
cmp eax, ebx
je 0x49556f
cmp byte [eax], bl
je 0x49556f
push 0x3f
push eax
lea eax, [esi + 0x5c]
push eax
call dword [sym.imp.MSVCRT.dll_strncpy]
add esp, 0xc
mov edi, dword [ebp + 8]
cmp edi, ebx
je 0x4955e0
cmp byte [edi], bl
je 0x4955e0
push edi
call sub.MSVCRT.dll_strlen
pop ecx
xor ecx, ecx
cmp eax, ebx
jle 0x49559e
mov dl, byte [ecx + edi]
cmp dl, 0x39
jg 0x495594
cmp dl, 0x30
jge 0x495599
cmp dl, 0x2e
jne 0x4955ac
inc ecx
cmp ecx, eax
jl 0x495587
push edi
call sub.WSOCK32.dll_inet_addr
mov dword [esi + 0xe0], eax
jmp 0x4955cc
push edi
call sub.WSOCK32.dll_gethostbyname
cmp eax, ebx
je 0x4955e0
mov eax, dword [eax + 0xc]
push 4
push dword [eax]
lea eax, [esi + 0xe0]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push dword [ebp + 0xc]
call sub.WSOCK32.dll_htons
push 1
mov word [esi + 0xdc], ax
pop eax
jmp 0x4955e2
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret 0x14
Function at 0x496624
Capabilities:
Get process heap force flags

Disassembly:
mov eax, 0x4c31c3
call fcn.00458b70
sub esp, 0x9c
push ebx
push esi
lea eax, [ebp - 0x24]
push edi
mov esi, ecx
push eax
call fcn.00496a50
lea eax, [ebp - 0x24]
push 0x10
push eax
lea eax, [esi + 0x94]
push eax
call sub.MSVCRT.dll_memcpy
mov eax, dword [esi + 0x88]
mov edi, dword [esi + 0x168]
mov dword [ebp - 0x14], eax
lea eax, [esi + 0x16c]
push 0x18
push eax
lea eax, [ebp - 0xa8]
push eax
call sub.MSVCRT.dll_memcpy
push 0x36
call sub.MFC42.DLL_operatornew
add esp, 0x1c
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x10], eax
push 0x400
call fcn.004b1422
xor ebx, ebx
lea eax, [ebp - 0x4c]
push ebx
push 0x1000
push ebx
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
call fcn.004b141c
push 0x34
mov byte [ebp - 4], 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00497828
push 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00497828
push 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00497828
push edi
call sub.WSOCK32.dll_htonl
push eax
lea ecx, [ebp - 0x90]
call fcn.004978a5
lea eax, [ebp - 0xa8]
push 0x18
push eax
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::Write
push dword [ebp - 0x14]
call sub.WSOCK32.dll_htonl
push eax
lea ecx, [ebp - 0x90]
call fcn.004978a5
lea eax, [ebp - 0x24]
push 0x10
push eax
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::Write
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::Close
push ebx
push ebx
lea ecx, [ebp - 0x4c]
mov eax, dword [ebp - 0x4c]
call dword [eax + 0x30]
push 0x36
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x10]
call sub.MFC42.DLL_CMemFile::Read
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CMemFile::Close
mov eax, dword [esi + 0xcc]
lea ecx, [esi + 0xcc]
push ebx
push 0x36
push dword [ebp - 0x10]
call dword [eax + 0x20]
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatordelete
pop ecx
mov byte [ebp - 4], bl
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::CArchive
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CMemFile::CMemFile
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x496814
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
mov eax, 0x4c31f7
call fcn.00458b70
sub esp, 0x84
push ebx
push esi
push edi
mov esi, ecx
push 0x18
call sub.MFC42.DLL_operatornew
mov edi, eax
mov eax, dword [esi + 0x168]
mov dword [ebp - 0x24], eax
lea eax, [esi + 0x16c]
push 0x18
push eax
push edi
call sub.MSVCRT.dll_memcpy
push 0x30
pop eax
push eax
mov dword [ebp - 0x10], eax
call sub.MFC42.DLL_operatornew
mov ebx, eax
lea eax, [ebp - 0x10]
push eax
lea eax, [esi + 0xa4]
push ebx
push eax
push 0x18
push edi
call fcn.00409d4a
push edi
call sub.MFC42.DLL_operatordelete
push dword [ebp - 0x10]
call sub.MFC42.DLL_operatornew
push dword [ebp - 0x10]
mov dword [ebp - 0x18], eax
push ebx
push eax
call sub.MSVCRT.dll_memcpy
push ebx
call sub.MFC42.DLL_operatordelete
mov eax, dword [ebp - 0x10]
mov ecx, dword [esi + 0xb4]
add eax, 0xc
add esp, 0x40
movzx edi, ax
inc edi
mov dword [ebp - 0x1c], eax
inc edi
mov dword [ebp - 0x20], ecx
push edi
call sub.MFC42.DLL_operatornew
lea ecx, [ebp - 0x4c]
mov dword [ebp - 0x14], eax
mov dword [esp], 0x400
call fcn.004b1422
xor ebx, ebx
lea eax, [ebp - 0x4c]
push ebx
push 0x1000
push ebx
push eax
lea ecx, [ebp - 0x90]
mov dword [ebp - 4], ebx
call fcn.004b141c
push dword [ebp - 0x1c]
mov byte [ebp - 4], 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00497828
push 1
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00497828
push 3
call sub.WSOCK32.dll_htons
push eax
lea ecx, [ebp - 0x90]
call fcn.00497828
push dword [ebp - 0x24]
call sub.WSOCK32.dll_htonl
push eax
lea ecx, [ebp - 0x90]
call fcn.004978a5
push dword [ebp - 0x20]
call sub.WSOCK32.dll_htonl
push eax
lea ecx, [ebp - 0x90]
call fcn.004978a5
push dword [ebp - 0x10]
lea ecx, [ebp - 0x90]
push dword [ebp - 0x18]
call sub.MFC42.DLL_CArchive::Write
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::Close
mov eax, dword [ebp - 0x4c]
push ebx
push ebx
lea ecx, [ebp - 0x4c]
call dword [eax + 0x30]
push edi
lea ecx, [ebp - 0x4c]
push dword [ebp - 0x14]
call sub.MFC42.DLL_CMemFile::Read
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CMemFile::Close
mov eax, dword [esi + 0xcc]
lea ecx, [esi + 0xcc]
push ebx
push edi
push dword [ebp - 0x14]
call dword [eax + 0x20]
push dword [ebp - 0x14]
call sub.MFC42.DLL_operatordelete
push dword [ebp - 0x18]
call sub.MFC42.DLL_operatordelete
pop ecx
mov byte [ebp - 4], bl
pop ecx
lea ecx, [ebp - 0x90]
call sub.MFC42.DLL_CArchive::CArchive
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x4c]
call sub.MFC42.DLL_CMemFile::CMemFile
mov ecx, dword [ebp - 0xc]
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret
Function at 0x49814c
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x408
and byte [ebp - 0x406], 0
push ebx
push esi
mov esi, ecx
push edi
push 3
mov al, byte [esi + 0xe8]
mov byte [ebp - 0x408], 5
cmp al, 1
mov byte [ebp - 0x407], al
pop edi
jne 0x498201
push dword [esi + 0x58]
call sub.WSOCK32.dll_inet_addr
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x4981b8
mov eax, dword [esi + 0x58]
mov byte [ebp - 0x405], 3
mov ebx, dword [eax - 8]
push ebx
push eax
lea eax, [ebp - 0x403]
mov byte [ebp - 0x404], bl
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
lea edi, [ebx + 5]
jmp 0x4981d7
lea eax, [ebp - 8]
push 4
push eax
lea eax, [ebp - 0x404]
push eax
mov byte [ebp - 0x405], 1
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 8
pop edi
mov ax, word [esi + 0x5c]
push eax
call sub.WSOCK32.dll_htons
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 2
push eax
lea eax, [ebp + edi - 0x408]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
inc edi
inc edi
jmp 0x49828a
cmp al, 2
jne 0x498238
mov eax, dword [esi + 0x68]
push 4
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push eax
lea eax, [ebp - 0x404]
push eax
mov byte [ebp - 0x405], 1
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0
call sub.WSOCK32.dll_htons
mov dword [ebp - 8], eax
push 2
lea eax, [ebp - 8]
jmp 0x498277
cmp al, 3
jne 0x49828a
push str.0.0.0.0
call sub.WSOCK32.dll_inet_addr
mov dword [ebp - 4], eax
lea eax, [ebp - 4]
push 4
push eax
lea eax, [ebp - 0x404]
mov byte [ebp - 0x405], 1
push eax
call sub.MSVCRT.dll_memcpy
mov ax, word [esi + 0x5c]
add esp, 0xc
push eax
call sub.WSOCK32.dll_htons
mov dword [ebp - 8], eax
push 2
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x400]
push eax
call sub.MSVCRT.dll_memcpy
add esp, 0xc
push 0xa
pop edi
lea ebx, [esi + 0x2c]
push 0x4982c4
push esi
mov ecx, ebx
call fcn.004924d5
push 0
lea eax, [ebp - 0x408]
push edi
push eax
mov ecx, esi
call sub.MFC42.DLL_CAsyncSocket::Send
cmp eax, edi
je 0x4982bf
mov ecx, ebx
call fcn.004924e6
push 0
mov ecx, esi
call fcn.00497ef6
pop edi
pop esi
pop ebx
leave
ret

Function at 0x49a7d8
Capabilities:
Check for time delay via queryperformancecounter

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
lea eax, [ebp - 0x18]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_QueryPerformanceFrequency]
test eax, eax
je 0x49a854
mov esi, dword [sym.imp.KERNEL32.dll_QueryPerformanceCounter]
lea eax, [ebp - 0x10]
push eax
call esi
test eax, eax
je 0x49a854
push edi
push 0x64
pop edi
lea eax, [ebp - 0x28]
push 0x10
push eax
lea eax, [ebp - 0x28]
push eax
call fcn.00489d4a
add esp, 0xc
dec edi
jne 0x49a801
lea eax, [ebp - 8]
push eax
call esi
mov eax, dword [ebp - 8]
mov ecx, dword [ebp - 4]
sub eax, dword [ebp - 0x10]
pop edi
sbb ecx, dword [ebp - 0xc]
mov edx, eax
or edx, ecx
je 0x49a854
push ecx
push eax
push dword [ebp - 0x14]
push dword [ebp - 0x18]
call fcn.00458ec0
imul eax, eax, 0x64
mov dword [ebp - 4], eax
fild dword [ebp - 4]
fmul qword [str.333333]
call sub.MSVCRT.dll__ftol
test eax, eax
jg 0x49a859
mov eax, 0x29a
pop esi
leave
ret
Function at 0x4216c0
Capabilities:
Enumerate pe sections
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push ecx
mov dword [ebp - 4], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov edx, dword [ecx]
mov dword [eax + 4], edx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
movzx edx, word [ecx]
cmp edx, 0x5a4d
je 0x4216ea
xor al, al
jmp 0x42176f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 4]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ecx + 0x3c]
mov ecx, dword [ebp - 4]
mov dword [ecx + 8], eax
mov edx, dword [ebp - 4]
mov eax, dword [edx + 8]
cmp dword [eax], 0x4550
je 0x421710
xor al, al
jmp 0x42176f
mov ecx, dword [ebp - 4]
mov edx, dword [ecx + 4]
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
movzx eax, word [ecx + 0x14]
mov ecx, dword [edx + 0x3c]
add ecx, eax
mov edx, dword [ebp - 4]
mov eax, dword [edx]
lea ecx, [ecx + eax + 0x18]
mov edx, dword [ebp - 4]
mov dword [edx + 0xc], ecx
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
movzx edx, word [ecx + 6]
cmp edx, 1
jl 0x421755
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 8]
movzx edx, word [ecx + 6]
cmp edx, 0x100
jle 0x421759
xor al, al
jmp 0x42176f
mov eax, dword [ebp - 4]
mov ecx, dword [eax + 0xc]
mov edx, dword [ebp - 4]
mov eax, dword [edx]
add eax, dword [ecx + 0x14]
mov ecx, dword [ebp - 4]
mov dword [ecx + 0x10], eax
mov al, 1
mov esp, ebp
pop ebp
ret

Function at 0x422420
Capabilities:
Hash data using rshash

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0xc], 0x5c6b7
mov dword [ebp - 4], 0xf8c9
mov dword [ebp - 0x10], 0
mov dword [ebp - 8], 0
mov dword [ebp - 8], 0
jmp 0x422460
mov eax, dword [ebp + 8]
add eax, 1
mov dword [ebp + 8], eax
mov ecx, dword [ebp - 8]
add ecx, 1
mov dword [ebp - 8], ecx
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
test eax, eax
je 0x422488
mov ecx, dword [ebp - 0x10]
imul ecx, dword [ebp - 4]
mov edx, dword [ebp + 8]
movsx eax, byte [edx]
add ecx, eax
mov dword [ebp - 0x10], ecx
mov ecx, dword [ebp - 4]
imul ecx, dword [ebp - 0xc]
mov dword [ebp - 4], ecx
jmp 0x42244e
mov eax, dword [ebp - 0x10]
mov esp, ebp
pop ebp
ret 4
Function at 0x4050d0
Capabilities:
Get disk size

Disassembly:
mov edx, dword [esp + 4]
sub esp, 0x130
lea eax, [esp]
lea ecx, [esp + 0x2c]
push eax
push ecx
push 0x104
push edx
call dword [sym.imp.KERNEL32.dll_GetFullPathNameA]
mov al, byte [esp + 0x2c]
mov dl, 0x5c
cmp al, dl
jne 0x405127
cmp byte [esp + 0x2d], dl
jne 0x405127
mov cl, byte [esp + 0x2e]
lea eax, [esp + 0x2e]
test cl, cl
mov dword [esp], eax
je 0x40511f
cmp cl, dl
je 0x40511f
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x405110
cmp byte [eax], 0
je 0x40512f
inc eax
jmp 0x40512b
lea eax, [esp + 0x2c]
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
je 0x405144
cmp cl, dl
je 0x405144
inc eax
mov dword [esp], eax
mov cl, byte [eax]
test cl, cl
jne 0x405135
cmp byte [eax], 0
je 0x405151
inc eax
mov dword [esp], eax
mov byte [eax], 0
push esi
push edi
push str.kernel32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x4051be
push str.GetDiskFreeSpaceExA
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
test edi, edi
je 0x4051be
lea eax, [esp + 0x18]
lea ecx, [esp + 0x2c]
push eax
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x3c]
push edx
push eax
call edi
test eax, eax
jne 0x4051a3
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov eax, dword [esp + 0x18]
mov edx, dword [esp + 0x1c]
mov ecx, 0xa
call fcn.00406930
pop edi
pop esi
add esp, 0x130
ret
lea ecx, [esp + 0x20]
lea edx, [esp + 0x14]
push ecx
lea eax, [esp + 0x14]
push edx
lea ecx, [esp + 0x14]
push eax
lea edx, [esp + 0x40]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_GetDiskFreeSpaceA]
test eax, eax
jne 0x4051ed
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x130
ret
mov ecx, dword [esp + 0xc]
mov eax, dword [esp + 0x14]
imul ecx, dword [esp + 0x10]
push 0x400
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_MulDiv]
pop edi
pop esi
add esp, 0x130
ret

Function at 0x4054c0
Capabilities:
Get file size

Disassembly:
mov eax, dword [esp + 4]
push ebx
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4054eb
xor eax, eax
xor edx, edx
pop ebx
ret
push ebp
push esi
lea ecx, [esp + 0x10]
push edi
push ecx
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edx, dword [esp + 0x14]
push 1
push 0
push 0
push edx
mov ebp, eax
call fcn.004068f0
mov esi, eax
xor eax, eax
mov edi, edx
add esi, ebp
push ebx
adc edi, eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test eax, eax
jne 0x405525
xor esi, esi
xor edi, edi
mov edx, edi
mov eax, esi
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x402ee3
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10c
push ebx
push esi
lea eax, [ebp - 4]
push edi
push eax
mov eax, dword [0x7a4bb0]
or al, 8
xor ebx, ebx
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f5e
mov esi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyA]
mov edi, 0x105
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
call esi
test eax, eax
jne 0x402f65
cmp dword [ebp + 0x10], ebx
jne 0x402f52
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ee3
test eax, eax
jne 0x402f65
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402f25
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
pop edi
pop esi
pop ebx
leave
ret 0xc
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 2
call fcn.00406571
cmp eax, ebx
je 0x402f8a
push ebx
push dword [0x7a4bb0]
push dword [ebp + 0xc]
push dword [ebp + 8]
call eax
jmp 0x402f5e
cmp dword [0x7a4bb0], ebx
jne 0x402f5b
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
test eax, eax
jne 0x402f5b
jmp 0x402f5e
Function at 0x405852
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
lea eax, [ebp - 0x10]
mov dword [0x7a24f8], 0x44
push eax
xor eax, eax
push 0x7a24f8
push eax
push eax
push eax
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x40588d
push dword [ebp - 0xc]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x10]
leave
ret 4
Function at 0x405c44
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push esi
push edi
push dword [esp + 0xc]
mov esi, 0x7a18f8
push esi
call fcn.00406078
push esi
call fcn.00405bf5
mov edi, eax
test edi, edi
jne 0x405c65
xor eax, eax
jmp 0x405cb7
push edi
call fcn.00406304
test byte [0x7a4b18], 0x80
je 0x405c7e
mov al, byte [edi]
test al, al
je 0x405c61
cmp al, 0x5c
je 0x405c61
sub edi, esi
push esi
call fcn.0040608e
cmp eax, edi
push esi
jle 0x405ca1
call fcn.0040654a
test eax, eax
je 0x405c99
test byte [eax], 0x10
je 0x405c61
push esi
call fcn.00405ba8
jmp 0x405c80
call fcn.00405b61
push esi
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
pop edi
pop esi
ret 4

Function at 0x405d2e
Capabilities:
Check if file exists
Get file attributes
Set file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
je 0x405d4a
and al, 0xfe
push eax
push dword [esp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesA]
ret 4

Function at 0x405d4d
Capabilities:
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
mov ecx, eax
push 0
inc ecx
neg ecx
sbb ecx, ecx
and ecx, eax
push ecx
push dword [esp + 0x14]
push 0
push 1
push dword [esp + 0x1c]
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_CreateFileA]
ret 0xc

Function at 0x405d7c
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
push 0x63
pop edi
mov dword [ebp + 8], 0x61736e
call dword [sym.imp.KERNEL32.dll_GetTickCount]
push 0x1a
xor edx, edx
pop ecx
div ecx
push esi
lea eax, [ebp + 8]
push 0
push eax
push dword [ebp + 0xc]
add byte [ebp + 0xa], dl
call dword [sym.imp.KERNEL32.dll_GetTempFileNameA]
test eax, eax
jne 0x405dc1
mov eax, edi
dec edi
test eax, eax
jne 0x405d87
and byte [esi], al
pop edi
pop esi
pop ebp
ret 8
mov eax, esi
jmp 0x405dbb
Function at 0x405dc5
Capabilities:
Get file size
Read file on windows
Write file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
push 1
call fcn.00406571
test eax, eax
mov esi, dword [esp + 0x18]
je 0x405de9
push 5
push esi
push dword [esp + 0x1c]
call eax
test eax, eax
jne 0x405f22
mov ebx, dword [sym.imp.KERNEL32.dll_GetShortPathNameA]
mov dword [0x7a2680], 0x4c554e
test esi, esi
mov edi, 0x400
mov ebp, 0x7a2680
je 0x405e2d
push 1
push 0
push esi
call fcn.00405d4d
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
push edi
push ebp
push esi
call ebx
test eax, eax
je 0x405f28
cmp eax, edi
jg 0x405f28
mov esi, 0x7a20f8
push edi
push esi
push dword [esp + 0x1c]
call ebx
test eax, eax
je 0x405f28
cmp eax, edi
jg 0x405f28
push esi
push ebp
push str._s_s_r_n
push 0x7a1cf8
call dword [sym.imp.USER32.dll_wsprintfA]
mov ebx, eax
mov eax, dword [0x7a4b10]
add esp, 0x10
push dword [eax + 0x128]
push esi
call fcn.004060ac
push 4
push 0xc0000000
push esi
call fcn.00405d4d
mov ebp, eax
cmp ebp, 0xffffffff
mov dword [esp + 0x14], ebp
je 0x405f22
push 0
push ebp
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov edi, eax
lea eax, [edi + ebx + 0xa]
push eax
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov esi, eax
test esi, esi
je 0x405f1b
lea eax, [esp + 0x18]
push 0
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x405f1b
cmp edi, dword [esp + 0x18]
jne 0x405f1b
push str._Rename__r_n
push esi
call fcn.00405cbc
test eax, eax
jne 0x405f2f
lea eax, [esi + edi]
push str._Rename__r_n
push eax
call fcn.00406078
add edi, 0xa
mov eax, edi
push ebx
add eax, esi
push 0x7a1cf8
push eax
call fcn.00405d08
xor eax, eax
push eax
push eax
push eax
push ebp
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
lea eax, [esp + 0x18]
push 0
add edi, ebx
push eax
push edi
push esi
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
push esi
call dword [sym.imp.KERNEL32.dll_GlobalFree]
push ebp
call dword [sym.imp.KERNEL32.dll_CloseHandle]
inc dword [0x7a4b90]
pop edi
pop esi
pop ebp
pop ebx
ret 8
add eax, 0xa
push 0x40aad8
push eax
call fcn.00405cbc
test eax, eax
je 0x405ee6
inc eax
lea ecx, [esi + edi]
cmp eax, ecx
mov ebp, eax
jae 0x405f56
mov dl, byte [ebp]
mov byte [ebx + ebp], dl
inc ebp
cmp ebp, ecx
jb 0x405f4b
mov ebp, dword [esp + 0x14]
sub eax, esi
jmp 0x405ee8
Function at 0x405f5e
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push ebx
lea eax, [ebp + 0x18]
push esi
push eax
mov eax, dword [ebp + 0x18]
xor ebx, ebx
neg eax
sbb eax, eax
mov esi, dword [ebp + 0x14]
and eax, 0x100
or eax, 0x20019
mov byte [esi], bl
push eax
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x405fcf
lea eax, [ebp + 0xc]
mov dword [ebp + 0xc], 0x400
push eax
lea eax, [ebp + 0x14]
push esi
push eax
push ebx
push dword [ebp + 0x10]
push dword [ebp + 0x18]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
jne 0x405fbe
cmp dword [ebp + 0x14], 1
je 0x405fc0
cmp dword [ebp + 0x14], 2
je 0x405fc0
mov byte [esi], bl
push dword [ebp + 0x18]
mov byte [esi + 0x3ff], bl
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop esi
pop ebx
pop ebp
ret 0x14