joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10005099
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x10
push ebx
push ebp
push esi
push edi
mov esi, str.SOFTWAREEasyBoot_SystemsUltraISO5.0
mov dword [esp + 0x14], ecx
push 1
xor edi, edi
push esi
push SysReAllocString
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.10001edd
mov ebx, dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, edi
mov ebp, SysReAllocString
je 0x100050e4
push 1
push esi
push reloc.OLEAUT32.dll_SysReAllocString
lea ecx, [esp + 0x1c]
call fcn.10001edd
cmp eax, edi
jne 0x10005145
mov eax, dword [esp + 0x14]
mov dword [esp + 0x18], 0x104
mov dword [esp + 0x1c], edi
lea esi, [eax + 0x114]
lea eax, [esp + 0x18]
push eax
lea eax, [esp + 0x20]
push esi
push eax
push edi
push 0x1000cd8c
push dword [esp + 0x24]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
cmp dword [esp + 0x10], edi
je 0x10005129
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov dword [esp + 0x10], edi
push str.UltraISO.exe
push esi
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push edi
push edi
push 3
push edi
push 3
push ebp
push esi
call ebx
cmp eax, 0xffffffff
jne 0x10005189
mov eax, dword [esp + 0x14]
push str.C:Program_FilesUltraISOUltraISO.exe
lea esi, [eax + 0x114]
push esi
call fcn.100054a0
pop ecx
pop ecx
push edi
push edi
push 3
push edi
push 3
push ebp
push esi
call ebx
cmp eax, 0xffffffff
jne 0x10005189
push str.C:Program_Files__x86_UltraISOUltraISO.exe
push esi
call fcn.100054a0
pop ecx
pop ecx
push edi
push edi
push 3
push edi
push 3
push ebp
push esi
call ebx
cmp eax, 0xffffffff
je 0x100051a5
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
cmp dword [esp + 0x10], edi
je 0x100051a0
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 1
pop eax
jmp 0x100051b7
cmp dword [esp + 0x10], edi
je 0x100051b5
push dword [esp + 0x10]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x10
ret
Function at 0x10005240
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x474
push esi
mov esi, ecx
call fcn.10005099
test eax, eax
jne 0x10005272
push 0x40
push 0x10008248
push str.UltraISO_not_found_
push dword [esi + 0x364]
call dword [sym.imp.USER32.dll_MessageBoxA]
jmp 0x1000545b
push ebx
push edi
push 0x370
lea eax, [ebp - 0x474]
push 0
push eax
call fcn.10005590
mov eax, dword [ebp + 8]
add esp, 0xc
dec eax
cmp eax, 0xb
ja case.default.0x10005297
jmp dword [eax*4 + 0x10005462]
push dword [esi + 0x320]
add esi, 0x114
push esi
push str.__s___infrom__mount__d
jmp 0x10005431
push dword [esi + 0x320]
lea eax, [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___infile___s___mount__d
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
jmp 0x100053e5
push str.Extract_to...
mov ecx, esi
call fcn.100051bf
cmp byte [esi + 0x218], 0
lea eax, [esi + 0x218]
je case.default.0x10005297
push eax
lea eax, [esi + 0x10]
push eax
jmp 0x1000534c
lea edi, [esi + 0x10]
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x5c
jmp 0x1000532b
lea edi, [esi + 0x10]
lea eax, [ebp - 0x104]
push edi
push eax
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
push 0x2e
lea eax, [ebp - 0x104]
push eax
call fcn.10005a10
pop ecx
test eax, eax
pop ecx
je case.default.0x10005297
and byte [eax], 0
lea eax, [ebp - 0x104]
push eax
push edi
add esi, 0x114
push esi
push str.__s___in___s___extract___s_
jmp 0x100052cb
lea eax, [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___ilong__jlong__directory___s___addto
jmp 0x10005431
lea ebx, [esi + 0x10]
push ebx
push str._s.iso
jmp 0x10005386
lea ebx, [esi + 0x10]
push ebx
push str._s.isz
mov edi, dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [ebp - 0x104]
push eax
call edi
push 0x5c
push ebx
call fcn.10005a10
add esp, 0x14
test eax, eax
je 0x100053c8
lea ecx, [ebp - 0x104]
inc eax
push ecx
push ebx
add esi, 0x114
push eax
push esi
lea eax, [ebp - 0x474]
push str.__s___volume___s___ilong__jlong__directory___s___out___s_
push eax
call edi
add esp, 0x18
jmp case.default.0x10005297
lea eax, [ebp - 0x104]
add esi, 0x114
push eax
push ebx
push esi
lea eax, [ebp - 0x474]
push str.__s___ilong__jlong__directory___s___out___s_
push eax
call edi
add esp, 0x14
jmp case.default.0x10005297
movsx eax, byte [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___copy__c:__createto
jmp 0x10005431
lea eax, [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___ilong__jlong__directory___s___burnto
jmp 0x10005431
lea eax, [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___infile___s___burnto
jmp 0x10005431
lea eax, [esi + 0x10]
add esi, 0x114
push eax
push esi
push str.__s___infile___s___convertto
lea eax, [ebp - 0x474]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
cmp byte [ebp - 0x474], 0
pop edi
pop ebx
je 0x1000545b
lea eax, [ebp - 0x474]
push 5
push eax
call dword [sym.imp.KERNEL32.dll_WinExec]
xor eax, eax
pop esi
leave
ret 4
Function at 0x401c0a
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.DLL_GetFileAttributesW]
xor ecx, ecx
cmp eax, 0xffffffff
setne cl
mov eax, ecx
ret

Function at 0x401dc1
Capabilities:
Create process on windows

Disassembly:
push 5
mov eax, 0x404288
push eax
push eax
push dword [esp + 0x14]
push str.open
push dword [esp + 0x18]
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
push 0x20
pop ecx
cmp ecx, eax
sbb eax, eax
neg eax
ret

Function at 0x402627
Capabilities:
Read .ini file

Disassembly:
and word [esi], 0
push 0x406240
push dword [esp + 0xc]
push esi
push 0x404288
push dword [esp + 0x14]
push 0x406450
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
mov eax, esi
ret

Function at 0x40264c
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004039a0
and word [ebp - 0x2004], 0
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x406240
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x404288
push dword [ebp + 8]
push 0x406450
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
je 0x4026bb
lea eax, [ebp - 0x2004]
push eax
push dword [ebp + 0xc]
call sub.msvcrt.dll_wcscpy
pop ecx
xor eax, eax
pop ecx
inc eax
leave
ret
xor eax, eax
leave
ret

Function at 0x4026bf
Capabilities:
Read .ini file

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x2004
call fcn.004039a0
and word [ebp - 0x2004], 0
push esi
push edi
push 0x2000
lea eax, [ebp - 0x2002]
push 0
push eax
call sub.msvcrt.dll_memset
add esp, 0xc
mov edi, 0x406240
push edi
push 0x1000
lea eax, [ebp - 0x2004]
push eax
push 0x404288
push dword [ebp + 8]
mov esi, 0x406450
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileStringW]
cmp word [ebp - 0x2004], 0
jne 0x40272c
push edi
push dword [ebp + 0xc]
push dword [ebp + 8]
push esi
call dword [sym.imp.KERNEL32.DLL_WritePrivateProfileStringW]
jmp 0x40272e
xor eax, eax
pop edi
pop esi
leave
ret

Function at 0x402a7d
Capabilities:
Read .ini file

Disassembly:
push dword [esp + 4]
call fcn.00401c0a
test eax, eax
pop ecx
je 0x402b04
push esi
push edi
push dword [esp + 0xc]
mov edi, 0x406240
push edi
call sub.msvcrt.dll_wcscpy
push str.general
mov esi, 0x406450
push esi
call sub.msvcrt.dll_wcscpy
add esp, 0x10
push edi
push 0
push 0x4044a8
push esi
call dword [sym.imp.KERNEL32.DLL_GetPrivateProfileIntW]
dec eax
neg eax
sbb eax, eax
inc eax
push 0x3f
push str.charset
mov esi, 0x4064d8
mov dword [0x4064d4], eax
call fcn.00402627
push 0x3f
push str.TranslatorName
mov esi, 0x406558
call fcn.00402627
push 0xff
push str.TranslatorURL
mov esi, 0x4065d8
call fcn.00402627
add esp, 0x18
pop edi
pop esi
ret
Function at 0x402c33
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x214
push esi
push edi
lea eax, [ebp - 4]
push eax
push 0x40423c
push 1
xor edi, edi
push edi
push 0x40424c
call dword [sym.imp.ole32.dll_CoCreateInstance]
mov esi, eax
cmp esi, edi
jl 0x402cfb
mov eax, dword [ebp - 4]
push dword [ebp + 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push dword [ebp + 0x10]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x1c]
cmp dword [ebp + 0x1c], edi
je 0x402c8a
mov eax, dword [ebp - 4]
push dword [ebp + 0x1c]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x24]
cmp dword [ebp + 0x14], edi
je 0x402c9b
mov eax, dword [ebp - 4]
push dword [ebp + 0x14]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x2c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push edi
push dword [ebp + 0x18]
push eax
call dword [ecx + 0x44]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push 1
push eax
call dword [ecx + 0x3c]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
lea edx, [ebp - 8]
push edx
push 0x40425c
push eax
call dword [ecx]
mov esi, eax
cmp esi, edi
jl 0x402cf2
push dword [ebp + 0xc]
lea edi, [ebp - 0x214]
call fcn.00401b88
mov eax, dword [ebp - 8]
pop ecx
mov ecx, dword [eax]
push 1
mov edx, edi
push edx
push eax
call dword [ecx + 0x18]
mov esi, eax
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
mov eax, dword [ebp - 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 8]
pop edi
mov eax, esi
pop esi
leave
ret
Function at 0x403020
Capabilities:
Enumerate gui resources

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
mov eax, 0x115c
call fcn.004039a0
push ebx
push esi
push edi
push 0x8001
call dword [sym.imp.KERNEL32.DLL_SetErrorMode]
xor esi, esi
push esi
push 0x4031d9
push esi
mov dword [0x406120], 0x11223344
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
push eax
call dword [sym.imp.KERNEL32.DLL_EnumResourceTypesW]
push dword [ebp + 0x10]
lea eax, [esp + 0x10]
push eax
mov dword [esp + 0x28], 0x400
mov dword [esp + 0x2c], 0x100
mov dword [esp + 0x14], esi
mov dword [esp + 0x18], esi
mov dword [esp + 0x20], esi
mov dword [esp + 0x24], esi
mov dword [esp + 0x30], esi
mov dword [esp + 0x1c], esi
mov dword [esp + 0x3c], 0x20
mov dword [esp + 0x34], esi
mov dword [esp + 0x40], esi
mov dword [esp + 0x38], esi
mov dword [esp + 0x44], esi
call fcn.00401fdd
call fcn.004014aa
xor edi, edi
test eax, eax
jne 0x4030dd
inc edi
lea esi, [esp + 0xc]
call fcn.00401ec6
lea esi, [esp + 0x2c]
call fcn.004021f8
lea esi, [esp + 0xc]
call fcn.00401ec6
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x10
cmp dword [esp + 0x3c], esi
jle 0x403113
cmp edi, dword [esp + 0x3c]
jge 0x4030f6
mov ecx, edi
lea eax, [esp + 0xc]
call fcn.00401f8e
jmp 0x4030fb
mov eax, 0x404288
push eax
push str._savelangfile
call sub.msvcrt.dll__wcsicmp
test eax, eax
pop ecx
pop ecx
je 0x403116
inc edi
cmp edi, dword [esp + 0x3c]
jl 0x4030e9
or edi, 0xffffffff
cmp edi, esi
jl 0x403123
call fcn.00402bea
xor edi, edi
jmp 0x4030b7
call fcn.00402b05
push dword [ebp + 0x10]
lea eax, [esp + 0x10]
call fcn.00402ebc
test eax, eax
pop ecx
jne 0x40311f
lea ebx, [esp + 0x40]
call fcn.00401529
push esi
mov ecx, ebx
call fcn.004013e4
mov edx, ebx
call fcn.004012eb
jmp 0x40311f

Function at 0x40321e
Capabilities:
Extract resource via kernel32 functions
Get common file path

Disassembly:
push ecx
and dword [esp], 0
push esi
mov esi, eax
cmp word [esi], 0
je 0x40323f
push esi
call fcn.00401c0a
test eax, eax
pop ecx
je 0x40323f
xor eax, eax
inc eax
jmp 0x4032e5
push ebx
push ebp
push edi
push esi
mov edi, 0x104
push edi
call dword [sym.imp.KERNEL32.DLL_GetTempPathW]
call fcn.00401b25
push esi
call sub.msvcrt.dll_wcslen
mov ebp, str.dateinj01.dll
push ebp
mov ebx, eax
call sub.msvcrt.dll_wcslen
add eax, ebx
cmp eax, edi
pop ecx
pop ecx
jge 0x40327b
lea eax, [esi + ebx*2]
push ebp
push eax
call sub.msvcrt.dll_wcscat
pop ecx
pop ecx
push 0x404568
push 0x6d
xor ebp, ebp
push ebp
call dword [sym.imp.KERNEL32.DLL_FindResourceW]
mov edi, eax
cmp edi, ebp
je 0x4032b4
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_LoadResource]
mov ebx, eax
test ebx, ebx
je 0x4032b4
push edi
push ebp
call dword [sym.imp.KERNEL32.DLL_SizeofResource]
push ebx
mov ebp, eax
call dword [sym.imp.KERNEL32.DLL_LockResource]
mov edi, eax
jmp 0x4032b6
xor edi, edi
test edi, edi
je 0x4032de
push esi
call fcn.00401b0c
mov esi, eax
cmp esi, 0xffffffff
pop ecx
je 0x4032de
push ebp
push edi
push esi
call fcn.00401e0c
add esp, 0xc
push esi
mov dword [esp + 0x14], eax
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov eax, dword [esp + 0x10]
pop edi
pop ebp
pop ebx
pop esi
pop ecx
ret
Function at 0x403332
Capabilities:
Allocate or change rwx memory
Create thread
Execute shellcode via indirect call
Inject thread
Resume thread
Spawn thread to rwx shellcode

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x270
push esi
push edi
push 7
pop ecx
xor eax, eax
mov byte [ebp - 0x270], 0
lea edi, [ebp - 0x26f]
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
xor esi, esi
push 0x248
stosb byte es:[edi], al
lea eax, [ebp - 0x250]
push esi
push eax
mov dword [ebp - 4], esi
call sub.msvcrt.dll_memset
add esp, 0xc
push 0x4043f8
mov dword [ebx + 0x214], esi
mov dword [ebx + 0x210], esi
mov dword [ebx + 0x20c], esi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, dword [sym.imp.KERNEL32.DLL_GetProcAddress]
mov edi, eax
push 0x404570
push edi
call esi
push 0x404580
push edi
mov dword [ebp - 0x248], eax
call esi
mov dword [ebp - 0x24c], eax
mov eax, ebx
call fcn.0040321e
push ebx
lea edi, [ebp - 0x240]
call fcn.00401b88
lea eax, [ebp - 0x36]
mov dword [esp], 0x404590
push eax
call sub.msvcrt.dll_strcpy
mov esi, dword [ebp + 0xc]
lea edi, [ebp - 0x14]
movsd dword es:[edi], dword [esi]
pop ecx
movsd dword es:[edi], dword [esi]
pop ecx
push 0x40
movsd dword es:[edi], dword [esi]
mov esi, dword [sym.imp.KERNEL32.DLL_VirtualAllocEx]
mov edi, 0x1000
push edi
push 0x268
push 0
push dword [ebp + 8]
call esi
push 0x40
push edi
mov edi, 0x400
push edi
push 0
push dword [ebp + 8]
mov dword [ebx + 0x20c], eax
call esi
xor esi, esi
cmp dword [ebx + 0x20c], esi
mov dword [ebx + 0x210], eax
je 0x4034a9
cmp eax, esi
je 0x4034a9
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.DLL_WriteProcessMemory]
push 0x4031f4
push eax
push dword [ebp + 8]
call edi
push esi
push 0x268
mov dword [ebp + 0xc], eax
lea eax, [ebp - 0x270]
push eax
push dword [ebx + 0x20c]
push dword [ebp + 8]
call edi
cmp dword [ebp + 0xc], esi
mov dword [ebp - 8], esi
je 0x4034a9
cmp eax, esi
je 0x4034a9
lea eax, [ebp - 8]
push eax
push 4
push dword [ebx + 0x20c]
push dword [ebx + 0x210]
push esi
push esi
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.DLL_CreateRemoteThread]
cmp eax, esi
mov dword [ebx + 0x214], eax
je 0x4034a9
push eax
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0xbb8
push dword [ebx + 0x214]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
leave
ret 8
Function at 0x4034b2
Capabilities:
Create process on windows
Create process suspended
Resume thread

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1274
call fcn.004039a0
push ebx
push esi
push edi
xor ebx, ebx
push 0x208
lea eax, [ebp - 0x26e]
push ebx
push eax
mov dword [ebp - 4], ebx
mov word [ebp - 0x270], bx
call sub.msvcrt.dll_memset
add esp, 0xc
push dword [ebp + 0xc]
lea edi, [ebp - 0x270]
call fcn.00401b88
pop ecx
mov eax, edi
push 0x5c
push eax
call sub.msvcrt.dll_wcsrchr
cmp eax, ebx
pop ecx
pop ecx
je 0x403505
mov word [eax], bx
push 0x40
lea eax, [ebp - 0x5c]
push ebx
push eax
call sub.msvcrt.dll_memset
xor eax, eax
mov dword [ebp - 0x14], ebx
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
add esp, 0xc
stosd dword es:[edi], eax
push 0xffe
lea eax, [ebp - 0x126e]
push ebx
push eax
mov dword [ebp - 0x60], 0x44
xor edi, edi
mov word [ebp - 0x1270], bx
call sub.msvcrt.dll_memset
add esp, 0xc
cmp dword [ebp + 0x10], ebx
je 0x40356e
push dword [ebp + 0x10]
lea eax, [ebp - 0x1270]
push dword [ebp + 0xc]
push str.__s___s
push 0x7ff
push eax
call sub.msvcrt.dll__snwprintf
add esp, 0x14
lea edi, [ebp - 0x1270]
call fcn.00401cd7
call fcn.00401cd7
cmp dword [eax + 0x10], 2
jne 0x403634
cmp dword [eax + 4], 5
jb 0x403634
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x60]
push eax
lea eax, [ebp - 0x270]
push eax
push ebx
push 4
push ebx
push ebx
push ebx
push edi
push dword [ebp + 0xc]
call dword [sym.imp.KERNEL32.DLL_CreateProcessW]
test eax, eax
je 0x403634
push dword [ebp - 0x10]
call dword [sym.imp.KERNEL32.DLL_ResumeThread]
push 0x4043f8
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleW]
mov esi, eax
mov byte [ebp + 0xc], bl
xor eax, eax
lea edi, [ebp + 0xd]
stosw word es:[edi], ax
mov dword [ebp + 0x10], ebx
stosb byte es:[edi], al
lea eax, [ebp + 0x10]
push eax
push 4
lea eax, [ebp + 0xc]
push eax
push esi
push dword [ebp - 0x14]
call dword [sym.imp.KERNEL32.DLL_ReadProcessMemory]
test eax, eax
je 0x4035d7
push dword [ebp + 0x14]
mov ebx, dword [ebp + 8]
push dword [ebp - 0x14]
call fcn.00403332
test eax, eax
je 0x403634
push 0x7d0
lea edi, [ebx + 0x214]
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_WaitForSingleObject]
cmp eax, 0x102
je 0x40362d
push dword [ebp - 0x14]
mov eax, ebx
call fcn.004032e8
push dword [edi]
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
mov dword [ebp - 4], 1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x403730
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x70
push 0x404230
call fcn.00403944
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x40376b
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x40376b
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x403783
cmp eax, 0x20b
je 0x403770
mov dword [ebp - 0x1c], edi
jmp 0x403797
cmp dword [ecx + 0x84], 0xe
jbe 0x40376b
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x403791
cmp dword [ecx + 0x74], 0xe
jbe 0x40376b
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 2
pop ebx
push ebx
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x406810], 0xffffffff
or dword [0x406814], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x40611c]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x406118]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x40680c], eax
call fcn.0040393e
cmp dword [section..data], edi
jne 0x4037f4
push fcn.0040393e
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.0040392c
push 0x404208
push 0x404204
call sub.msvcrt.dll__initterm
mov eax, dword [0x406114]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x406110]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___wgetmainargs]
mov dword [ebp - 0x30], eax
push 0x404200
push 0x4041f0
call sub.msvcrt.dll__initterm
add esp, 0x24
mov eax, dword [sym.imp.msvcrt.dll__wcmdln]
mov esi, dword [eax]
cmp esi, edi
jne 0x40385a
or dword [ebp - 4], 0xffffffff
mov eax, 0xff
jmp 0x403914
mov dword [ebp - 0x34], esi
cmp word [esi], 0x22
jne 0x4038a8
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x403876
cmp ax, 0x22
jne 0x403863
cmp word [esi], 0x22
jne 0x403881
add esi, ebx
mov dword [ebp - 0x34], esi
mov ax, word [esi]
cmp ax, di
je 0x40388f
cmp ax, 0x20
jbe 0x40387c
mov dword [ebp - 0x4c], edi
lea eax, [ebp - 0x78]
push eax
call dword [sym.imp.KERNEL32.DLL_GetStartupInfoW]
test byte [ebp - 0x4c], 1
je 0x4038b5
movzx eax, word [ebp - 0x48]
jmp 0x4038b8
cmp word [esi], 0x20
jbe 0x403881
add esi, ebx
mov dword [ebp - 0x34], esi
jmp 0x4038a8
push 0xa
pop eax
push eax
push esi
push edi
push edi
call dword [sym.imp.KERNEL32.DLL_GetModuleHandleA]
push eax
call main
mov esi, eax
mov dword [ebp - 0x7c], esi
cmp dword [ebp - 0x1c], edi
jne 0x4038d9
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x40390e
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.0040397d
ret
Function at 0x40fff0
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push 0xffffffffffffffff
push 0x57e00b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x224
push ebx
push ebp
push esi
push edi
mov esi, ecx
push 4
call fcn.00567b03
mov ebx, eax
mov eax, dword [0x5e887c]
mov dword [esp + 0x128], eax
mov ecx, 0x42
xor eax, eax
lea edi, [esp + 0x12c]
rep stosd dword es:[edi], eax
add esp, 4
lea ecx, [esp + 0x14]
stosw word es:[edi], ax
push 0x10e
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov eax, dword [esi + 0x19c]
test eax, eax
je 0x4100bc
mov edx, dword [0x5f9f88]
mov dword [esp + 0x10], edx
lea eax, [esp + 0x14]
lea ecx, [esp + 0x10]
push eax
push 0x5e8874
push ecx
mov dword [esp + 0x248], 0
call fcn.00563eb4
mov edi, dword [esp + 0x1c]
or ecx, 0xffffffff
xor eax, eax
add esp, 0xc
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
lea edx, [esp + 0x14]
mov eax, ecx
mov esi, edi
mov edi, edx
mov dword [esp + 0x23c], 0xffffffff
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [esp + 0x10]
call fcn.0056870c
call fcn.00578d59
mov eax, dword [eax + 4]
mov ecx, dword [eax + 0x284]
test ecx, ecx
je 0x4100fc
mov edi, 0x5e886c
or ecx, 0xffffffff
xor eax, eax
lea edx, [esp + 0x14]
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov esi, edi
mov ebp, ecx
mov edi, edx
or ecx, 0xffffffff
repne scasb al, byte es:[edi]
mov ecx, ebp
dec edi
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea edi, [esp + 0x14]
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
not ecx
dec ecx
mov ebp, ecx
js 0x41012a
lea ecx, [ebp + 1]
lea esi, [esp + 0x14]
mov eax, ecx
lea edi, [esp + 0x124]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
push ebx
push 0x5e883c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x410162
mov edx, dword [ebx]
lea ecx, [esp + 0x124]
push ebp
push ecx
push 1
push eax
push 0x5e8834
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov eax, dword [ebx]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push ebx
call fcn.00567b2c
mov ecx, dword [esp + 0x238]
add esp, 4
mov dword fs:[0], ecx
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x230
ret

Function at 0x410190
Capabilities:
Delete registry value
Persist via run registry key

Disassembly:
push esi
push 4
call fcn.00567b03
add esp, 4
mov esi, eax
push esi
push 0x5e883c
push reloc.OLEAUT32.dll_SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyA]
test eax, eax
jne 0x4101c0
mov eax, dword [esi]
push 0x5e8834
push eax
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueA]
push esi
call fcn.00567b2c
add esp, 4
pop esi
ret
Function at 0x4101d0
Capabilities:
Query or enumerate registry value

Disassembly:
push 0xffffffffffffffff
push 0x57e047
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x10
push ebx
push esi
mov dword [esp + 0x10], 0
mov eax, dword [0x5f9f88]
mov ebx, 1
mov dword [esp + 0x20], ebx
mov dword [esp + 8], eax
push 0x200
mov byte [esp + 0x24], 2
call fcn.00567b03
add esp, 4
lea ecx, [esp + 0xc]
mov esi, eax
push ecx
push 0xf003f
push 0
push 0x5e8880
push reloc.WSOCK32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x41024e
mov esi, dword [esp + 0x28]
push 0x5fe7d8
mov ecx, esi
call fcn.0056877a
mov dword [esp + 0x10], ebx
jmp 0x41029c
mov eax, dword [esp + 0x2c]
mov ecx, dword [esp + 0xc]
lea edx, [esp + 0x14]
push edx
push esi
push 0
push 0
push eax
push ecx
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
test eax, eax
je 0x410273
push 0x5fe7d8
jmp 0x410274
push esi
lea ecx, [esp + 0xc]
call fcn.00568895
mov edx, dword [esp + 0xc]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov esi, dword [esp + 0x28]
lea eax, [esp + 8]
push eax
mov ecx, esi
call fcn.00568481
mov dword [esp + 0x10], ebx
lea ecx, [esp + 8]
mov byte [esp + 0x20], bl
call fcn.0056870c
lea ecx, [esp + 0x2c]
mov byte [esp + 0x20], 0
call fcn.0056870c
mov ecx, dword [esp + 0x18]
mov eax, esi
pop esi
pop ebx
mov dword fs:[0], ecx
add esp, 0x1c
ret 8