joyce8/EMBER2024-capa huggingface dataset:
Function at 0x100320d0
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x50
push ebx
push ebp
push esi
push edi
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x21]
mov byte [esp + 0x20], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov ecx, 7
xor eax, eax
lea edi, [esp + 0x41]
mov byte [esp + 0x40], 0
rep stosd dword es:[edi], eax
stosw word es:[edi], ax
stosb byte es:[edi], al
mov eax, dword [esp + 0x64]
lea edi, [esp + 0x20]
mov dword [esp + 0x10], 0
mov ecx, dword [eax + 8]
lea edx, [eax + 0x20]
mov dword [esp + 0x14], ecx
mov ecx, dword [eax + 0x40]
mov ebx, ecx
mov esi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
mov ebp, dword [eax + 0x44]
and ecx, 3
mov dword [esp + 0x18], edx
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x74]
test ecx, ecx
jle 0x100321ef
jmp 0x10032147
mov eax, dword [esp + 0x64]
mov edx, dword [esp + 0x14]
push 0
lea ecx, [esp + 0x24]
push edx
push ecx
lea edx, [esp + 0x28]
lea ecx, [esp + 0x4c]
push edx
push ecx
push eax
mov ebx, 1
call fcn.10031a10
add esp, 0x18
test eax, eax
jne 0x10032213
xor ecx, ecx
test ebp, ebp
jle 0x1003219e
mov esi, dword [esp + 0x70]
mov edi, dword [esp + 0x68]
lea edx, [esp + 0x40]
lea eax, [esp + 0x40]
sub esi, edx
sub edi, eax
lea eax, [esp + ecx + 0x40]
mov dl, byte [esi + eax]
xor dl, byte [eax]
inc ecx
cmp ecx, ebp
mov byte [edi + eax], dl
jl 0x1003218d
mov eax, dword [esp + 0x64]
mov ecx, dword [eax + 0x40]
dec ecx
js 0x100321c1
xor eax, eax
mov al, byte [esp + ecx + 0x20]
add eax, ebx
mov byte [esp + ecx + 0x20], al
shr eax, 8
and eax, 1
mov ebx, eax
je 0x100321c1
dec ecx
jns 0x100321a8
mov eax, dword [esp + 0x10]
mov edi, dword [esp + 0x70]
mov esi, dword [esp + 0x68]
mov ecx, dword [esp + 0x74]
add eax, ebp
add edi, ebp
add esi, ebp
cmp eax, ecx
mov dword [esp + 0x70], edi
mov dword [esp + 0x68], esi
mov dword [esp + 0x10], eax
jl 0x10032143
mov edx, dword [esp + 0x18]
mov ecx, dword [esp + 0x14]
mov edi, edx
mov edx, ecx
lea esi, [esp + 0x20]
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov eax, dword [esp + 0x6c]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov ecx, dword [esp + 0x74]
mov dword [eax], ecx
xor eax, eax
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x50
ret
Function at 0x40a410
Capabilities:
Hash data with md5

Disassembly:
push esi
sub esp, 8
mov eax, 0x75d6a7ad
mov dword [esp + 4], ecx
mov edx, dword [0x4a5490]
mov esi, edx
dec esi
mov dword [0x4a5490], esi
cmp eax, edx
mov dword [esp], ecx
jle 0x40a446
mov eax, dword [0x4ad940]
and eax, 0x90000243
mov dword [0x4ad940], eax
mov eax, dword [esp]
mov dword [eax], 0
mov cx, word [0x49e236]
movsx edx, cx
add edx, 0x4afa8d97
mov esi, dword [0x4a3968]
sar esi, 1
or esi, 0x3f81255c
cmp edx, esi
jg 0x40a485
mov eax, dword [0x4a4028]
add eax, 0xea1a95ca
mov dword [0x4a4028], eax
mov eax, 0xc2266b11
mov ecx, dword [esp]
mov dword [ecx + 4], 0
mov dword [0x4a96a8], 0x20bba78d
mov dword [ecx + 8], 0x67452301
mov edx, dword [0x4a2a90]
imul edx, edx, 0xef7def2
mov dword [0x4a2a90], edx
mov dword [ecx + 0xc], 0xefcdab89
mov edx, dword [0x4a8640]
add edx, 0x918d92c6
mov dword [0x4a8640], edx
mov dword [ecx + 0x10], 0x98badcfe
mov edx, dword [0x4a5c2c]
inc edx
mov dword [0x4a5c2c], edx
add edx, 0xce4fd3ad
cmp eax, edx
jg 0x40a4fc
mov dword [0x4ac274], 0x206ea622
mov eax, dword [esp]
mov dword [eax + 0x14], 0x10325476
mov ecx, dword [0x4a3cc8]
or ecx, 0xc3060b10
mov dword [0x4a3cc8], ecx
add esp, 8
pop esi
ret
Function at 0x42b9a0
Capabilities:
Terminate process

Disassembly:
sub esp, 0x14
mov eax, dword [esp + 0x18]
mov ecx, 0xc6b7bd5
mov dword [esp + 0x10], eax
mov eax, dword [0x4a7254]
add eax, 0xb6ce194
cmp ecx, eax
jg 0x42ba05
mov eax, dword [0x4a1854]
mov ecx, eax
dec ecx
mov dword [0x4a1854], ecx
add eax, 0xa93df0f3
mov ecx, dword [0x4aa0d0]
dec ecx
mov dword [0x4aa0d0], ecx
imul ecx, ecx, 0x2fe5c344
xor ecx, 0x85cde67f
cmp eax, ecx
jge 0x42ba00
mov dword [0x4ae5ec], 0xc43aa7ac
jmp 0x42ba05
mov eax, 0x98d5affd
mov ecx, dword [0x4b14ac]
mov edx, esp
mov dword [edx], ecx
mov dword [esp + 0xc], eax
call fcn.00402ae0
mov ecx, dword [0x4a6110]
mov edx, ecx
dec edx
mov dword [0x4a6110], edx
mov edx, dword [esp + 0xc]
cmp edx, ecx
mov byte [esp + 0xb], al
jge 0x42ba50
mov eax, dword [0x4a70d8]
add eax, 0x500c006e
mov dword [0x4a70d8], eax
jmp 0x42ba75
mov eax, dword [0x4af358]
mov ecx, eax
inc ecx
mov dword [0x4af358], ecx
mov dx, word [0x49cef8]
mov cx, dx
imul ecx, eax
mov dx, cx
mov word [0x49cef8], dx
mov eax, 1
mov dword [esp], 1
mov dword [esp + 4], eax
call fcn.0045dd9d
int3
Function at 0x473bff
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x4984a0]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.00470c26
mov dword [ebp - 0x14], eax
cmp dword [0x4b2734], esi
jne 0x473cf2
push 0x800
push esi
push 0x485970
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x473c7f
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x473dd2
push esi
push esi
push 0x485970
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x473dd2
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x473dd2
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x4b2734], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x4b2738], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x4b273c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b2744], eax
test eax, eax
je 0x473cef
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x4b2740], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x473d17
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x473d0a
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x473d2c
push 4
pop eax
jmp 0x473dd4
cmp dword [ebp - 0x14], esi
je 0x473d2c
push dword [0x4b2734]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x473d11
mov eax, dword [0x4b2740]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x473d8a
cmp dword [0x4b2744], edi
je 0x473d8a
push eax
call ebx
push dword [0x4b2744]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x473d8a
test eax, eax
je 0x473d8a
call ecx
test eax, eax
je 0x473d7f
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x473d7f
test byte [ebp - 8], 1
jne 0x473d8a
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x473dba
mov eax, dword [0x4b2738]
cmp eax, edi
je 0x473db7
push eax
call ebx
test eax, eax
je 0x473db7
call eax
mov esi, eax
test esi, esi
je 0x473db7
mov eax, dword [0x4b273c]
cmp eax, edi
je 0x473db7
push eax
call ebx
test eax, eax
je 0x473db7
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x4b2734]
call ebx
test eax, eax
je 0x473dd2
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x473dd4
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004632ce
mov esp, ebp
pop ebp
ret
Function at 0x401551
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
push str.NtSuspendProcess
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtResumeProcess
push dword [ebp + 8]
mov dword [0x433a58], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationProcess
push dword [ebp + 8]
mov dword [0x433a5c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationProcess
push dword [ebp + 8]
mov dword [0x433a60], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtQueryInformationThread
push dword [ebp + 8]
mov dword [0x433a64], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.NtSetInformationThread
push dword [ebp + 8]
mov dword [0x433a68], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.RtlNtStatusToDosError
push dword [ebp + 8]
mov dword [0x433a6c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
mov dword [0x433a70], eax
mov eax, 0x433a58
pop ebp
ret 4

Function at 0x402516
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xa4
mov eax, dword [0x432004]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
mov ebx, dword [ebp + 0x10]
xor eax, eax
push esi
mov esi, dword [ebp + 8]
push edi
mov dword [ebx + 4], eax
mov edi, ecx
mov eax, dword [ebx]
xor ecx, ecx
mov dword [ebp - 0x94], edx
mov dword [ebp - 0x9c], edi
mov dword [ebp - 0x98], esi
mov word [eax], cx
mov eax, dword [ebx + 8]
mov dword [ebp - 0xa0], eax
cmp eax, 0x40
jb 0x402564
mov ecx, dword [ebx]
jmp 0x40256a
lea ecx, [ebp - 0x84]
mov dword [ebp - 0x90], ecx
jae 0x402575
push 0x40
pop eax
add eax, eax
mov dword [ebp - 0x8c], eax
lea eax, [ebp - 0x8c]
push eax
push ecx
lea eax, [ebp - 0x88]
push eax
xor eax, eax
push eax
push esi
push dword [edx]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov esi, eax
mov eax, dword [ebp - 0x8c]
shr eax, 1
mov dword [ebp - 0x8c], eax
cmp esi, 0xea
jne 0x4025d5
push eax
mov edx, ebx
lea ecx, [ebp - 0xa4]
call fcn.004028bc
mov edx, dword [ebp - 0x94]
mov esi, dword [ebp - 0x98]
pop ecx
mov ecx, dword [eax]
test ecx, ecx
je 0x402552
mov dword [edi], ecx
jmp 0x40263e
test esi, esi
jne 0x40263c
cmp dword [ebp - 0x88], 1
je 0x4025ea
mov dword [edi], 0x65d
jmp 0x40263e
mov ecx, eax
test eax, eax
je 0x40260e
mov edx, dword [ebp - 0x90]
xor edi, edi
cmp word [edx + eax*2 - 2], di
mov edi, dword [ebp - 0x9c]
jne 0x40260e
lea ecx, [eax - 1]
mov dword [ebp - 0x8c], ecx
cmp dword [ebp - 0xa0], 0x40
jb 0x402624
mov eax, dword [ebx]
xor edx, edx
mov dword [ebx + 4], ecx
mov word [eax + ecx*2], dx
jmp 0x40263c
lea eax, [ebp - 0x84]
lea eax, [eax + ecx*2]
mov ecx, ebx
push eax
lea eax, [ebp - 0x84]
push eax
call fcn.004028fa
mov dword [edi], esi
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0040753d
leave
ret
Function at 0x4039f0
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff0
sub esp, 0x1e8
mov eax, dword [0x55c910]
xor eax, esp
mov dword [esp + 0x1e4], eax
mov eax, dword [ebp + 8]
push esi
push edi
mov dword [esp + 0x10], eax
mov eax, dword [ebp + 0x10]
push 0
mov dword [esp + 0x10], eax
call dword [sym.imp.ole32.dll_CoInitialize]
test eax, eax
jns 0x403a52
push 0
push str.error1
push str.error
push 0
call dword [sym.imp.USER32.dll_MessageBoxW]
xor eax, eax
pop edi
pop esi
mov ecx, dword [esp + 0x1e4]
xor ecx, esp
call fcn.004d83a4
mov esp, ebp
pop ebp
ret 0x10
lea eax, [esp + 0x58]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
lea eax, [esp + 0x18]
push eax
call fcn.004304e0
add esp, 4
lea ecx, [esp + 0x18]
push 0xc
push str.downloader_
call fcn.00402f20
lea eax, [esp + 0x18]
push eax
call fcn.004302a0
add esp, 4
test al, al
jne 0x403a9d
lea eax, [esp + 0x18]
push eax
call fcn.004302c0
add esp, 4
push 0xe
push str.downloader.log
lea ecx, [esp + 0x20]
call fcn.00402f20
call fcn.00435d40
sub esp, 0x18
lea esi, [esp + 0x30]
mov edi, esp
lea edx, [esp + 0x30]
xor eax, eax
mov ecx, edi
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp dword [esp + 0x44], 8
mov eax, dword [esp + 0x40]
cmovae esi, dword [esp + 0x30]
cmovae edx, dword [esp + 0x30]
lea eax, [esi + eax*2]
push eax
push edx
call fcn.00403c40
call fcn.00435d60
push str._r_n_r_n_start_run
push 0x3f
push str.wWinMain
call fcn.00435ca0
mov eax, dword [0x5662d4]
add esp, 0x24
test eax, eax
jne 0x403b46
push 0x528
call fcn.004d83b3
mov esi, eax
add esp, 4
test esi, esi
je 0x403b3f
push 0x528
push 0
push esi
call fcn.004e2670
add esp, 0xc
mov ecx, esi
call fcn.00414180
jmp 0x403b41
xor eax, eax
mov dword [0x5662d4], eax
push dword [esp + 0xc]
mov ecx, eax
call fcn.00414da0
mov eax, dword [0x5662d4]
test eax, eax
jne 0x403b8d
push 0x528
call fcn.004d83b3
mov esi, eax
add esp, 4
test esi, esi
je 0x403b86
push 0x528
push 0
push esi
call fcn.004e2670
add esp, 0xc
mov ecx, esi
call fcn.00414180
jmp 0x403b88
xor eax, eax
mov dword [0x5662d4], eax
mov esi, dword [esp + 0x10]
push 0x53de24
push str.downloader_start._version_is_:__s_
push 0x44
push str.wWinMain
mov dword [eax + 0x520], esi
call fcn.00435ca0
add esp, 0xc
mov ecx, esi
call fcn.00403930
add esp, 4
push str.duilibInit2_end
push 0x46
push str.wWinMain
call fcn.00435ca0
add esp, 0xc
mov dword [esp + 0x40], 0
xorps xmm0, xmm0
lea ecx, [esp + 0x38]
movdqa xmmword [esp + 0x30], xmm0
mov dword [esp + 0x30], vtable.DNDownloaderImpl.0
call fcn.0043a060
sub esp, 8
lea ecx, [esp + 0x38]
call fcn.00405960
test al, al
je 0x403c05
call fcn.00455060
call fcn.00405bd0
call dword [sym.imp.ole32.dll_CoUninitialize]
cmp dword [esp + 0x2c], 8
jb 0x403c23
push dword [esp + 0x18]
call fcn.00480060
add esp, 4
mov ecx, dword [esp + 0x1ec]
xor eax, eax
pop edi
pop esi
xor ecx, esp
call fcn.004d83a4
mov esp, ebp
pop ebp
ret 0x10
Function at 0x404e10
Capabilities:
Hide graphical window

Disassembly:
push esi
mov esi, ecx
mov dword [0x5662d0], 0
push 1
mov ecx, dword [esi + 4]
call fcn.004290f0
push eax
call dword [sym.imp.USER32.dll_EnableWindow]
mov ecx, dword [esi + 4]
call fcn.004290f0
push eax
call dword [sym.imp.USER32.dll_BringWindowToTop]
mov ecx, dword [esi + 4]
push 5
call fcn.004290f0
push eax
call dword [sym.imp.USER32.dll_ShowWindow]
pop esi
ret
Function at 0x411d70
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
movzx eax, byte [eax]
mov dword [ebp + 8], eax
add ecx, 4
pop ebp
jmp fcn.00407e20

Function at 0x4130a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x5130ea
mov eax, dword fs:[0]
push eax
sub esp, 0x18
mov eax, dword [0x55c910]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
mov edi, dword [ebp + 8]
push 0
mov dword [ebp - 0x18], esi
call fcn.004d7338
mov dword [ebp - 4], 0
mov dword [esi + 4], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], 0
mov byte [esi + 0x10], 0
xor eax, eax
mov dword [esi + 0x14], 0
mov word [esi + 0x18], ax
mov dword [esi + 0x1c], eax
mov word [esi + 0x20], ax
mov dword [esi + 0x24], eax
mov byte [esi + 0x28], al
mov dword [esi + 0x2c], eax
mov byte [esi + 0x30], al
mov byte [ebp - 4], 6
test edi, edi
jne 0x413146
lea eax, [ebp - 0x14]
mov dword [ebp - 0x14], str.bad_locale_name
push eax
lea ecx, [ebp - 0x24]
call fcn.004d96bb
push 0x558b60
lea eax, [ebp - 0x24]
mov dword [ebp - 0x24], vtable.std::runtime_error.0
push eax
call fcn.004e1bce
push edi
push esi
call fcn.004d720b
add esp, 8
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004d83a4
mov esp, ebp
pop ebp
ret 4

Function at 0x4160c0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x814
mov eax, dword [0x55c910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x814], 0
push 0x7fe
push eax
mov word [ebp - 0x804], ax
mov edi, edx
lea eax, [ebp - 0x802]
mov esi, ecx
push eax
call fcn.004e2670
add esp, 0xc
mov dword [ebp - 0x810], 0
cmp dword [edi + 0x14], 8
jb 0x416113
mov edi, dword [edi]
lea eax, [ebp - 0x810]
push eax
push edi
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x41616e
mov dword [ebp - 0x808], eax
lea eax, [ebp - 0x80c]
push eax
lea eax, [ebp - 0x804]
mov dword [ebp - 0x80c], 0x800
push eax
lea eax, [ebp - 0x808]
push eax
push 0
push str.InstallDir
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x810]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x804], ax
jne 0x41618e
xor ecx, ecx
jmp 0x4161a6
lea ecx, [ebp - 0x804]
lea edx, [ecx + 2]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x416197
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x804]
mov ecx, esi
push eax
call fcn.004037a0
mov ecx, dword [ebp - 4]
mov eax, esi
pop edi
xor ecx, ebp
pop esi
call fcn.004d83a4
mov esp, ebp
pop ebp
ret
Function at 0x416570
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x51374e
mov eax, dword fs:[0]
push eax
sub esp, 0x834
mov eax, dword [0x55c910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
xor eax, eax
push 0x7fe
push eax
mov word [ebp - 0x814], ax
lea eax, [ebp - 0x812]
push eax
mov dword [ebp - 0x824], 0
call fcn.004e2670
mov eax, dword [0x5663bc]
add esp, 0xc
mov dword [ebp - 0x820], 0
test eax, eax
jne 0x41660d
push 0x38
call fcn.004d83b3
add esp, 4
mov dword [ebp - 0x818], eax
mov dword [ebp - 4], 0
test eax, eax
je 0x4165ff
mov ecx, eax
call fcn.004020c0
jmp 0x416601
xor eax, eax
mov dword [ebp - 4], 0xffffffff
mov dword [0x5663bc], eax
lea ecx, [ebp - 0x83c]
push ecx
mov ecx, eax
call fcn.00402800
cmp dword [eax + 0x14], 8
jb 0x416623
mov eax, dword [eax]
lea ecx, [ebp - 0x820]
push ecx
push eax
push reloc.WS2_32.dll_accept
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
cmp dword [ebp - 0x828], 8
mov edi, eax
jb 0x41664f
push dword [ebp - 0x83c]
call fcn.00480060
add esp, 4
test edi, edi
jne 0x416696
lea eax, [ebp - 0x81c]
mov dword [ebp - 0x81c], 0x800
push eax
lea eax, [ebp - 0x814]
mov dword [ebp - 0x818], edi
push eax
lea eax, [ebp - 0x818]
push eax
push edi
push str.Version
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
push dword [ebp - 0x820]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
xor eax, eax
mov dword [esi + 0x14], 7
mov dword [esi + 0x10], 0
mov word [esi], ax
cmp word [ebp - 0x814], ax
jne 0x4166b6
xor ecx, ecx
jmp 0x4166cf
lea ecx, [ebp - 0x814]
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x4166c0
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x814]
mov ecx, esi
push eax
call fcn.004037a0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d83a4
mov esp, ebp
pop ebp
ret 4
Function at 0x419bc0
Capabilities:
Enumerate process modules

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x268
mov eax, dword [0x55c910]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
xor eax, eax
mov dword [ebp - 0x268], 0
push 0x256
push eax
mov word [ebp - 0x25c], ax
mov esi, edx
lea eax, [ebp - 0x25a]
mov edi, ecx
push eax
call fcn.004e2670
add esp, 0xc
push esi
push 0
push 0x410
call dword [sym.imp.KERNEL32.dll_OpenProcess]
mov esi, eax
test esi, esi
je 0x419c50
lea eax, [ebp - 0x260]
push eax
push 4
lea eax, [ebp - 0x264]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_K32EnumProcessModules]
test eax, eax
je 0x419c49
push 0x104
lea eax, [ebp - 0x25c]
push eax
push dword [ebp - 0x264]
push esi
call dword [sym.imp.KERNEL32.dll_K32GetModuleFileNameExW]
push esi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
mov dword [edi + 0x14], 7
mov dword [edi + 0x10], 0
mov word [edi], ax
cmp word [ebp - 0x25c], ax
jne 0x419c70
xor ecx, ecx
jmp 0x419c8f
lea ecx, [ebp - 0x25c]
lea edx, [ecx + 2]
lea esp, [esp]
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x419c80
sub ecx, edx
sar ecx, 1
push ecx
lea eax, [ebp - 0x25c]
mov ecx, edi
push eax
call fcn.004037a0
mov ecx, dword [ebp - 4]
mov eax, edi
pop edi
xor ecx, ebp
pop esi
call fcn.004d83a4
mov esp, ebp
pop ebp
ret
Function at 0x41a460
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x513ca1
mov eax, dword fs:[0]
push eax
sub esp, 0x160
mov eax, dword [0x55c910]
xor eax, ebp
mov dword [ebp - 0x14], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov ebx, ecx
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x134]
mov edi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
push eax
mov dword [ebp - 0x134], 0x11c
call edi
test eax, eax
jne 0x41a4c3
lea eax, [ebp - 0x134]
mov dword [ebp - 0x134], 0x114
push eax
call edi
cmp dword [ebp - 0x130], 6
jb 0x41a5c5
cmp dword [ebp - 0x12c], 2
jb 0x41a5c5
cmp dword [esi + 0x14], 8
jb 0x41a4e7
mov eax, dword [esi]
jmp 0x41a4e9
mov eax, esi
push eax
push str.runPlayer_no_amdin__s
push 0x470
push str.DNDownloaderModel::runPlayer
call fcn.00435ca0
push 0x53f394
lea edx, [ebx + 0x22c]
lea ecx, [ebp - 0x164]
call fcn.00410a70
add esp, 0x14
mov dword [ebp - 4], 0
cmp dword [esi + 0x14], 8
jb 0x41a528
mov edx, dword [esi]
jmp 0x41a52a
mov edx, esi
sub esp, 8
mov ecx, eax
call fcn.0041a0a0
add esp, 8
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x150], 8
mov edi, eax
jb 0x41a557
push dword [ebp - 0x164]
call fcn.00480060
add esp, 4
cmp edi, 0xffffffff
jne 0x41a62e
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push str.runPlayer_no_amdin_error__d
push 0x474
push str.DNDownloaderModel::runPlayer
call fcn.00435ca0
push 0x53f394
lea edx, [ebx + 0x22c]
lea ecx, [ebp - 0x164]
call fcn.00410a70
add esp, 0x14
push 0
push 1
push esi
push eax
mov dword [ebp - 4], 1
call fcn.0043bc40
add esp, 0x10
mov dword [ebp - 4], edi
cmp dword [ebp - 0x150], 8
jb 0x41a62e
push dword [ebp - 0x164]
call fcn.00480060
add esp, 4
jmp 0x41a62e
push 0x53f394
lea edx, [ebx + 0x22c]
lea ecx, [ebp - 0x14c]
call fcn.00410a70
add esp, 4
push 0
push 1
push esi
push eax
mov dword [ebp - 4], 2
call fcn.0043bc40
add esp, 0x10
mov dword [ebp - 4], 0xffffffff
cmp dword [ebp - 0x138], 8
jb 0x41a611
push dword [ebp - 0x14c]
call fcn.00480060
add esp, 4
xor eax, eax
mov dword [ebp - 0x138], 7
mov dword [ebp - 0x13c], 0
mov word [ebp - 0x14c], ax
sub esp, 0x18
mov ecx, 0x566320
mov eax, esp
push str.call_mnq
mov dword [eax + 0x10], 0
call fcn.00425040
push dword [0x566350]
call dword [sym.imp.KERNEL32.dll_SetEvent]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x14]
xor ecx, ebp
call fcn.004d83a4
mov esp, ebp
pop ebp
ret 4