joyce8/EMBER2024-capa huggingface dataset:
Function at 0x40e5c0
Capabilities:
Get hostname
Initialize winsock library
Resolve dns

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43aee3
mov eax, dword fs:[0]
push eax
sub esp, 0x2b8
mov eax, dword [0x44c4b8]
xor eax, esp
mov dword [esp + 0x2b0], eax
push ebx
push esi
push edi
mov eax, dword [0x44c4b8]
xor eax, esp
push eax
lea eax, [esp + 0x2c8]
mov dword fs:[0], eax
mov edi, dword [ebp + 8]
lea ecx, [esp + 0x14]
xor esi, esi
push str.0.0.0.0
mov dword [esp + 0x1c], esi
call fcn.00411e09
lea eax, [esp + 0x2c]
mov dword [esp + 0x2d0], esi
push eax
push 2
call dword [sym.imp.WS2_32.dll_WSAStartup]
push 0x100
lea eax, [esp + 0x1c0]
push eax
call dword [sym.imp.WS2_32.dll_gethostname]
lea eax, [esp + 0x1bc]
push eax
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov ecx, eax
test ecx, ecx
je 0x40e6e4
movsx eax, word [ecx + 0xa]
push eax
mov eax, dword [ecx + 0xc]
push dword [eax]
lea eax, [esp + 0x28]
push eax
call fcn.0041dc00
push 0x11
call fcn.00419b10
add esp, 0x10
mov ebx, eax
push dword [esp + 0x20]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
push eax
push 0x11
push ebx
call fcn.00422688
add esp, 0xc
test ebx, ebx
je 0x40e699
push ebx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov esi, eax
mov ecx, dword [esp + 0x14]
cmp dword [ecx - 0xc], 1
jg 0x40e6a8
cmp esi, dword [ecx - 4]
jle 0x40e6c3
lea ecx, [esp + 0x14]
call fcn.0040970b
push esi
lea ecx, [esp + 0x18]
call fcn.0040985c
test eax, eax
je 0x40e6d7
mov ecx, dword [esp + 0x14]
lea eax, [esi + 1]
mov edx, ebx
push eax
call fcn.00411dd6
lea ecx, [esp + 0x18]
call fcn.00409775
call dword [sym.imp.WS2_32.dll_WSACleanup]
push ebx
call fcn.0041f44e
pop ecx
lea eax, [esp + 0x14]
mov ecx, edi
push eax
call fcn.00411d59
lea ecx, [esp + 0x14]
call fcn.004095d5
mov eax, edi
mov ecx, dword [esp + 0x2c8]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x2b0]
xor ecx, esp
call fcn.0041da8c
mov esp, ebp
pop ebp
ret 4
Function at 0x4111e6
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
push edi
mov edi, ecx
mov bl, 1
mov ecx, dword [edi + 0x54]
mov eax, ecx
and eax, 0xc
cmp al, 0xc
jne 0x411232
mov eax, dword [edi + 4]
mov esi, dword [sym.imp.USER32.dll_GetDlgCtrlID]
push eax
mov dword [ebp - 0xc], eax
call esi
push dword [edi + 4]
mov dword [ebp - 8], eax
mov dword [ebp - 4], 0xfffffffe
call esi
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
lea ecx, [ebp - 0xc]
push ecx
push esi
push 0x4e
push eax
jmp 0x41125d
shr ecx, 2
test cl, 1
je 0x411265
push dword [edi + 4]
call dword [sym.imp.USER32.dll_GetDlgCtrlID]
push dword [edi + 4]
mov esi, eax
call dword [sym.imp.USER32.dll_GetParent]
push dword [edi + 4]
mov ecx, eax
movzx eax, si
push eax
push 0x111
push ecx
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x411294
push 1
xor esi, esi
push esi
push esi
push dword [edi + 0x28]
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteW]
cmp eax, 0x20
seta bl
test bl, bl
je 0x411294
or byte [edi + 0x58], 2
push 1
push esi
push dword [edi + 4]
call dword [sym.imp.USER32.dll_InvalidateRect]
pop edi
pop esi
mov al, bl
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x412391
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
xor esi, esi
lea ebx, [ecx - 0x20]
push edi
test ecx, ecx
jne 0x4123a5
mov ebx, esi
xor edi, edi
inc edi
cmp dword [ebp + 0x14], esi
je 0x412459
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
mov dword [ebp - 0xc], eax
call dword [sym.imp.USER32.dll_GetWindowTextLengthW]
mov ecx, dword [ebp + 0xc]
or dword [ebp - 4], 0xffffffff
push eax
mov dword [ebp + 0x14], eax
call fcn.004096b2
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
test eax, eax
je 0x41241c
mov eax, dword [ecx]
mov dword [eax - 8], edx
mov eax, dword [ecx]
xor ecx, ecx
mov word [eax + edx*2], cx
mov ecx, dword [ebp + 0xc]
mov eax, dword [ecx]
mov dword [ebp - 8], eax
test eax, eax
je 0x41241c
lea eax, [edx + 1]
push eax
push dword [ebp - 8]
push dword [ebp - 0xc]
call dword [sym.imp.USER32.dll_GetWindowTextW]
push ecx
mov ecx, dword [ebp + 0xc]
mov dword [ebp - 4], eax
call fcn.00409775
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 0x14]
cmp dword [ebp - 4], edx
jge 0x412425
mov edi, esi
jmp 0x412470
mov eax, dword [ecx]
cmp dword [eax - 8], 0x1000
jle 0x412493
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add ebx, 0x20
lea eax, [ebx - 0x20]
jne 0x412442
mov eax, esi
push dword [ebp + 8]
push dword [eax + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov edi, esi
jmp 0x412493
mov eax, dword [ebp + 0xc]
push dword [eax]
push dword [ebp + 8]
push dword [ebx + 4]
call dword [sym.imp.USER32.dll_SetDlgItemTextW]
mov edi, eax
test edi, edi
jne 0x412493
push 0xffffffffffffffff
call dword [sym.imp.USER32.dll_MessageBeep]
add ebx, 0x20
je 0x412480
lea esi, [ebx - 0x20]
push dword [ebp + 8]
push dword [esi + 4]
call dword [sym.imp.USER32.dll_GetDlgItem]
push eax
call dword [sym.imp.USER32.dll_SetFocus]
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
Function at 0x41269f
Capabilities:
Check internet connectivity via wininet
Connect to http server
Create http request

Disassembly:
push 0xc
mov eax, 0x43b10f
call fcn.004249a1
mov edi, ecx
xor esi, esi
mov dword [ebp - 0x10], esi
push 3
pop ebx
push esi
mov eax, 0x443918
mov dword [ebp - 4], ebx
push eax
push eax
push esi
push dword [ebp + 0xc]
call dword [sym.imp.WININET.dll_InternetOpenW]
mov dword [edi + 0x71a94], eax
test eax, eax
jne 0x4126e0
mov ecx, edi
call fcn.00413317
jmp 0x412850
push esi
push 0x4400000
push ebx
push dword [ebp + 0x18]
mov ebx, dword [ebp + 0x10]
push dword [ebp + 0x14]
push ebx
push dword [ebp + 8]
push eax
call dword [sym.imp.WININET.dll_InternetConnectW]
mov dword [edi + 0x71a98], eax
test eax, eax
jne 0x41271d
mov ecx, edi
call fcn.00413317
push dword [edi + 0x71a94]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
jmp 0x412850
movzx eax, bx
push esi
mov dword [edi + 0x71aa8], eax
call dword [sym.imp.WININET.dll_InternetAttemptConnect]
test eax, eax
je 0x412755
mov ecx, edi
call fcn.00413317
push dword [edi + 0x71a98]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
call esi
push dword [edi + 0x71a94]
call esi
xor esi, esi
jmp 0x412850
push dword [ebp + 8]
mov ebx, 0x2000
lea eax, [edi + 0x61a90]
push ebx
push eax
call fcn.0042246c
push dword [ebp + 0xc]
lea eax, [edi + 0x65a90]
push ebx
push eax
call fcn.0042246c
xor esi, esi
add esp, 0x18
inc esi
cmp dword [ebp + 0x14], 0
je 0x412796
lea eax, [ebp + 0x14]
push eax
lea ecx, [ebp - 0x18]
call fcn.00411d59
mov ebx, esi
jmp 0x4127a6
push 0x443918
lea ecx, [ebp - 0x14]
call fcn.004098cb
push 2
pop ebx
push dword [eax]
lea eax, [edi + 0x69a90]
mov dword [ebp - 0x10], ebx
push 0x2000
push eax
call fcn.0042246c
add esp, 0xc
test bl, 2
je 0x4127d2
and ebx, 0xfffffffd
lea ecx, [ebp - 0x14]
mov dword [ebp - 0x10], ebx
call fcn.004095d5
mov dword [ebp - 4], 3
test bl, 1
je 0x4127ec
and ebx, 0xfffffffe
lea ecx, [ebp - 0x18]
mov dword [ebp - 0x10], ebx
call fcn.004095d5
cmp dword [ebp + 0x18], 0
je 0x412803
lea eax, [ebp + 0x18]
push eax
lea ecx, [ebp - 0x14]
call fcn.00411d59
or ebx, 4
jmp 0x412813
push 0x443918
lea ecx, [ebp - 0x18]
call fcn.004098cb
or ebx, 8
push dword [eax]
lea eax, [edi + 0x6da90]
push 0x2000
push eax
call fcn.0042246c
add esp, 0xc
test bl, 8
je 0x412839
lea ecx, [ebp - 0x18]
and ebx, 0xfffffff7
call fcn.004095d5
test bl, 4
je 0x412846
lea ecx, [ebp - 0x14]
call fcn.004095d5
mov eax, dword [ebp + 0x10]
mov word [edi + 0x71a90], ax
lea ecx, [ebp + 8]
call fcn.004095d5
lea ecx, [ebp + 0xc]
call fcn.004095d5
lea ecx, [ebp + 0x14]
call fcn.004095d5
lea ecx, [ebp + 0x18]
call fcn.004095d5
mov eax, esi
call fcn.0042496f
ret 0x14
Function at 0x412cae
Capabilities:
Read data from internet
Receive data

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
cmp dword [esi + 0x71a9c], 0
jne 0x412cc6
call fcn.00413317
xor eax, eax
jmp 0x412cfd
push edi
mov edi, 0x2000
push edi
push 0
push dword [ebp + 8]
call fcn.0041ed30
add esp, 0xc
push 0x44f44c
push edi
push dword [ebp + 8]
push dword [esi + 0x71a9c]
call dword [sym.imp.WININET.dll_InternetReadFile]
pop edi
test eax, eax
jne 0x412cf8
mov ecx, esi
jmp 0x412cbd
mov eax, dword [0x44f44c]
pop esi
pop ebp
ret 8

Function at 0x412d02
Capabilities:
Check http status code

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x201c
call fcn.004358d0
mov eax, dword [0x44c4b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
push ebx
mov ebx, dword [ebp + 0x18]
push esi
mov esi, dword [ebp + 8]
push edi
push 0x1fff
mov dword [ebp - 0x2008], eax
mov edi, ecx
lea eax, [ebp - 0x2003]
mov dword [ebp - 0x2018], esi
push 0
push eax
mov dword [ebp - 0x2010], 0x186a0
mov byte [ebp - 0x2004], 0
call fcn.0041ed30
add esp, 0xc
cmp dword [edi + 0x71a9c], 0
jne 0x412d71
mov ecx, edi
call fcn.00413317
xor eax, eax
jmp 0x412e81
push 0x30d40
push 0
push dword [ebp - 0x2008]
call fcn.0041ed30
and dword [ebx], 0
lea eax, [ebp - 0x2004]
add esp, 8
mov ecx, edi
push eax
call fcn.00412cae
mov dword [ebp - 0x2014], eax
test eax, eax
je 0x412e10
cmp dword [ebx], 0x186a0
jae 0x412e0a
push 0
push dword [ebp - 0x2008]
push eax
lea eax, [ebp - 0x2004]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
mov ecx, dword [ebx]
mov esi, eax
mov eax, dword [ebp - 0x2008]
push esi
lea ecx, [eax + ecx*2]
push ecx
push dword [ebp - 0x2014]
lea eax, [ebp - 0x2004]
push eax
push 0
push 0xfde9
call dword [sym.imp.KERNEL32.dll_MultiByteToWideChar]
add dword [ebx], esi
lea eax, [ebp - 0x2004]
push ecx
push eax
mov ecx, edi
call fcn.00412cae
mov dword [ebp - 0x2014], eax
test eax, eax
jne 0x412da1
mov esi, dword [ebp - 0x2018]
mov eax, dword [ebp - 0x2010]
xor ebx, ebx
add eax, eax
push eax
push ebx
push esi
call fcn.0041ed30
add esp, 0xc
lea eax, [ebp - 0x2010]
push ebx
push eax
push esi
mov esi, dword [sym.imp.WININET.dll_HttpQueryInfoW]
push 0x16
push dword [edi + 0x71a9c]
call esi
test eax, eax
je 0x412d63
push ebx
lea eax, [ebp - 0x201c]
mov dword [ebp - 0x200c], ebx
push eax
lea eax, [ebp - 0x200c]
mov dword [ebp - 0x201c], 4
push eax
push 0x20000013
push dword [edi + 0x71a9c]
call esi
xor eax, eax
cmp dword [ebp - 0x200c], 0xc8
sete al
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.0041da8c
mov esp, ebp
pop ebp
ret 0x14
Function at 0x413155
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
mov esi, ecx
mov eax, dword [esi + 4]
cmp dword [eax + 0xa00], 2
je 0x413170
xor eax, eax
jmp 0x413201
push ebx
push edi
xor edi, edi
add eax, 0x200
push edi
push 0x8000080
push 3
push edi
push 1
push 0x80000000
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
push edi
push edi
push edi
push 2
push edi
push eax
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.dll_CreateFileMappingW]
mov ebx, eax
test ebx, ebx
je 0x4131dc
push edi
push edi
push edi
push 4
push ebx
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
test edi, edi
je 0x4131dc
push 0
push dword [ebp - 4]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
push eax
push edi
push 0
push 0
push dword [esi + 0x71a9c]
mov dword [ebp - 8], eax
call dword [sym.imp.WININET.dll_HttpSendRequestW]
test eax, eax
jne 0x4131e7
mov ecx, esi
call fcn.00413317
xor eax, eax
jmp 0x4131ff
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ebx
call esi
push dword [ebp - 4]
call esi
mov eax, dword [ebp - 8]
pop edi
pop ebx
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x41429b
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
and esp, 0xfffffff8
push 0xffffffffffffffff
push 0x43b38f
mov eax, dword fs:[0]
push eax
sub esp, 0x20
mov eax, dword [0x44c4b8]
xor eax, esp
mov dword [esp + 0x18], eax
push ebx
push esi
push edi
mov eax, dword [0x44c4b8]
xor eax, esp
push eax
lea eax, [esp + 0x30]
mov dword fs:[0], eax
mov ebx, ecx
lea edi, [ebx + 4]
push ecx
mov ecx, edi
call fcn.0041249e
mov esi, dword [sym.imp.USER32.dll_GetDlgItem]
push 0x3f4
push dword [edi]
call esi
push 0x3f3
push dword [edi]
mov dword [ebx + 0x20], eax
call esi
lea edi, [ebx + 0x24]
mov dword [edi], eax
mov ecx, dword [0x44d5d0]
mov dword [esp + 0x14], ecx
and dword [esp + 0x38], 0
lea ecx, [esp + 0x18]
push ecx
push eax
call dword [sym.imp.USER32.dll_GetClientRect]
push 0xbc3
lea ecx, [esp + 0x18]
call fcn.00409796
mov eax, dword [esp + 0x20]
sub esp, 0xc
sub eax, dword [esp + 0x24]
mov esi, dword [sym.imp.KERNEL32.dll_MulDiv]
push 0x64
push 0x28
push eax
call esi
push eax
push ecx
push dword [esp + 0x28]
mov ecx, edi
push 0
call fcn.00414428
push 0xbc4
lea ecx, [esp + 0x18]
call fcn.00409796
mov eax, dword [esp + 0x20]
sub esp, 0xc
sub eax, dword [esp + 0x24]
push 0x64
push 0x3b
push eax
call esi
push eax
push ecx
push dword [esp + 0x28]
mov ecx, edi
push 1
call fcn.00414428
mov ecx, ebx
call fcn.00413f50
lea ecx, [esp + 0x14]
call fcn.004095d5
xor eax, eax
inc eax
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x18]
xor ecx, esp
call fcn.0041da8c
mov esp, ebp
pop ebp
ret 0x10

Function at 0x414795
Capabilities:
Hide graphical window

Disassembly:
push 0
mov eax, 0x43b3bf
call fcn.004249a1
mov edi, ecx
cmp byte [ebp + 0xc], 0
jne 0x4147ad
mov byte [edi + 0x54], 1
push dword [edi + 4]
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x414852
mov eax, dword [0x44d5d0]
mov dword [ebp + 0xc], eax
and dword [ebp - 4], 0
lea ecx, [ebp + 0xc]
push 0xbb8
call fcn.00409796
cmp dword [ebp + 8], 1
jne 0x414803
cmp byte [edi + 0x54], 0
je 0x4147ef
push dword [ebp + 0xc]
push dword [edi + 0x28]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [edi + 0x24]
call esi
push 5
push dword [edi + 0x28]
jmp 0x414848
cmp dword [ebp + 8], 2
jne 0x41484a
cmp byte [edi + 0x54], 0
je 0x41481b
push dword [ebp + 0xc]
push dword [edi + 0x2c]
call dword [sym.imp.USER32.dll_SetWindowTextW]
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 5
push dword [edi + 0x24]
call esi
push 5
push dword [edi + 0x28]
call esi
push 5
push dword [edi + 0x2c]
call esi
cmp byte [edi + 0x54], 0
jne 0x41484a
push 5
push dword [edi + 0x30]
call esi
push 0
push dword [edi + 0x20]
call esi
lea ecx, [ebp + 0xc]
call fcn.004095d5
call fcn.0042496f
ret 8
Function at 0x414bd3
Capabilities:
Get common file path

Disassembly:
push 0x430
mov eax, 0x43b439
call fcn.004249d4
mov ebx, edx
mov edi, ecx
mov esi, dword [ebp + 8]
xor eax, eax
mov word [ebp - 0x21c], ax
lea eax, [ebp - 0x21c]
push eax
push 0x104
call dword [sym.imp.KERNEL32.dll_GetTempPathW]
test esi, esi
je 0x414c8d
lea eax, [ebp - 0x21c]
push eax
call fcn.0041eb18
pop ecx
movzx eax, word [ebp + eax*2 - 0x21e]
cmp eax, 0x5c
je 0x414c44
cmp eax, 0x2f
je 0x414c44
push 0x44598c
lea eax, [ebp - 0x21c]
push 0x104
push eax
call fcn.004224c8
add esp, 0xc
push esi
mov esi, 0x104
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004224c8
push 0x442f08
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004224c8
push ebx
lea eax, [ebp - 0x21c]
push esi
push eax
call fcn.004224c8
add esp, 0x24
lea eax, [ebp - 0x21c]
mov ecx, edi
push eax
call fcn.00409668
jmp 0x414d3e
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.ole32.dll_CoCreateGuid]
lea eax, [ebp - 0x43c]
push eax
lea eax, [ebp - 0x434]
push eax
call dword [sym.imp.RPCRT4.dll_UuidToStringW]
push dword [ebp - 0x43c]
lea ecx, [ebp - 0x438]
call fcn.004098cb
and dword [ebp - 4], 0
lea eax, [ebp - 0x43c]
push eax
call dword [sym.imp.RPCRT4.dll_RpcStringFreeW]
lea ecx, [ebp - 0x438]
call fcn.00414953
push 0x442f08
lea ecx, [ebp - 0x438]
call fcn.00411993
push ebx
lea ecx, [ebp - 0x438]
call fcn.00411993
lea eax, [ebp - 0x21c]
push eax
lea eax, [ebp - 0x424]
push 0x104
push eax
call fcn.0042246c
add esp, 0xc
lea eax, [ebp - 0x424]
push dword [ebp - 0x438]
push eax
call dword [sym.imp.SHLWAPI.dll_PathAppendW]
lea eax, [ebp - 0x424]
mov ecx, edi
push eax
call fcn.00409668
lea ecx, [ebp - 0x438]
call fcn.004095d5
xor eax, eax
inc eax
call fcn.00424983
ret

Function at 0x414d47
Capabilities:
Create thread
Resume thread

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
push esi
push edi
push 0x58
mov edi, edx
call fcn.0041e244
xor ebx, ebx
pop ecx
test eax, eax
je 0x414d6b
mov ecx, eax
call fcn.00414568
mov esi, eax
jmp 0x414d6d
mov esi, ebx
lea ecx, [ebp - 0x18]
call fcn.0041455b
mov cl, byte [edi + 0x5a]
mov edx, 0x8000000
mov dword [ebp - 0x18], esi
test cl, cl
mov eax, dword [esi + 0x50]
mov dword [ebp - 0xc], eax
lea eax, [ebp - 8]
push eax
push 4
pop eax
cmovne eax, edx
mov dword [ebp - 0x14], fcn.0040d2ab
push eax
lea eax, [ebp - 0x18]
mov dword [ebp - 0x10], edi
push eax
push 0x41485a
push ebx
push ebx
mov dword [ebp - 8], ebx
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov edi, eax
test edi, edi
je 0x414ddb
push ebx
push edi
call dword [sym.imp.KERNEL32.dll_SetThreadPriority]
push edi
mov dword [esi + 0x4c], edi
call dword [sym.imp.KERNEL32.dll_ResumeThread]
push ecx
call dword [sym.imp.USER32.dll_GetActiveWindow]
push eax
mov ecx, esi
call fcn.00415434
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414de2
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 0x14], edx
mov ecx, dword [ebp + 8]
xor esi, esi
call fcn.00413d4d
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x20019
push esi
push 0x44578c
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x414eb3
test edi, edi
je 0x414e4b
push edi
call fcn.0041eb18
pop ecx
test eax, eax
je 0x414e4b
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
jmp 0x414e51
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x414eb3
mov edi, 0x1388
mov dword [ebp - 0x10], 1
push edi
call fcn.00419b10
pop ecx
mov ebx, eax
mov dword [ebp - 0xc], edi
lea eax, [ebp - 0xc]
push eax
push ebx
lea eax, [ebp - 0x10]
push eax
push esi
push dword [ebp - 0x14]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414e93
mov ecx, dword [ebp + 8]
push ebx
call fcn.00409668
xor esi, esi
inc esi
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], eax
je 0x414ea9
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 8]
push eax
call edi
push ebx
call fcn.0041f44e
pop ecx
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x414ebc
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
xor esi, esi
mov dword [ebp - 0x14], edx
mov dword [eax], esi
mov edi, ecx
lea eax, [ebp - 8]
mov dword [ebp - 8], esi
push eax
push 0x20019
push esi
push 0x44578c
push 0x80000001
mov dword [ebp - 4], esi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
test ebx, ebx
jne 0x414f74
test edi, edi
je 0x414f21
push edi
call fcn.0041eb18
pop ecx
test eax, eax
je 0x414f21
lea eax, [ebp - 4]
push eax
push 0x20019
push esi
push edi
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov ebx, eax
mov eax, dword [ebp - 4]
jmp 0x414f27
mov eax, dword [ebp - 8]
mov dword [ebp - 4], eax
test ebx, ebx
jne 0x414f74
lea ecx, [ebp - 0x10]
mov dword [ebp - 0xc], esi
push ecx
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x10], 4
push ecx
lea ecx, [ebp - 0x18]
push ecx
push esi
push dword [ebp - 0x14]
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x414f5b
mov ecx, dword [ebp + 8]
xor esi, esi
mov eax, dword [ebp - 0xc]
inc esi
mov dword [ecx], eax
mov eax, dword [ebp - 8]
mov edi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
cmp dword [ebp - 4], eax
je 0x414f71
push dword [ebp - 4]
call edi
mov eax, dword [ebp - 8]
push eax
call edi
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x414f7d
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
mov esi, dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
lea eax, [ebp - 0xc]
push edi
push eax
xor ebx, ebx
mov dword [ebp - 0x14], edx
push 0x2001f
push ebx
push str.Software
push 0x80000001
mov edi, ecx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 4], ebx
mov dword [ebp - 8], ebx
call esi
test eax, eax
jne 0x41504f
lea eax, [ebp - 4]
push eax
push 0x2001f
push ebx
push str.BugSplat
push dword [ebp - 0xc]
call esi
mov ebx, dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
je 0x414ff9
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 4]
push eax
xor eax, eax
push eax
push 0x2001f
push eax
push eax
push eax
push str.BugSplat
push dword [ebp - 0xc]
call ebx
test eax, eax
jne 0x41504f
lea eax, [ebp - 8]
push eax
push 0x2001f
push 0
push edi
push dword [ebp - 4]
call esi
test eax, eax
je 0x41502b
lea eax, [ebp - 0x10]
push eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
push 0x2001f
push eax
push eax
push eax
push edi
push dword [ebp - 4]
call ebx
test eax, eax
jne 0x41504f
push dword [ebp + 8]
call fcn.0041eb18
pop ecx
lea eax, [eax*2 + 2]
push eax
push dword [ebp + 8]
push 1
push 0
push dword [ebp - 0x14]
push dword [ebp - 8]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
cmp dword [ebp - 8], 0
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
je 0x415060
push dword [ebp - 8]
call esi
cmp dword [ebp - 4], 0
je 0x41506b
push dword [ebp - 4]
call esi
cmp dword [ebp - 0xc], 0
je 0x415076
push dword [ebp - 0xc]
call esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41507d
Capabilities:
Persist via windows service
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x218
mov eax, dword [0x44c4b8]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push ecx
push str.SYSTEMCurrentControlSetServicesEventLogApplication_s
mov esi, 0x104
lea eax, [ebp - 0x20c]
xor ebx, ebx
push esi
push eax
mov dword [ebp - 0x214], ebx
mov dword [ebp - 0x210], ebx
call fcn.0041f68d
add esp, 0x10
lea eax, [ebp - 0x210]
push eax
lea eax, [ebp - 0x20c]
push eax
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyW]
test eax, eax
jne 0x4151b2
push esi
lea eax, [ebp - 0x20c]
push eax
push dword [0x44e4e4]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea eax, [ebp - 0x20c]
push eax
call fcn.0041eb18
mov esi, dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push ebx
push str.EventMessageFile
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x4151b2
push 4
lea eax, [ebp - 0x218]
mov dword [ebp - 0x218], 7
push eax
push 4
push ebx
push str.TypesSupported
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x4151b2
cmp dword [ebp - 0x214], ebx
jbe 0x4151a6
lea eax, [ebp - 0x20c]
push eax
call fcn.0041eb18
pop ecx
lea eax, [eax*2 + 2]
push eax
lea eax, [ebp - 0x20c]
push eax
push 2
push ebx
push str.CategoryMessageFile
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x4151b2
push 4
lea eax, [ebp - 0x214]
push eax
push 4
push ebx
push str.CategoryCount
push dword [ebp - 0x210]
call esi
test eax, eax
jne 0x4151b2
push dword [ebp - 0x210]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
pop esi
xor ecx, ebp
pop ebx
call fcn.0041da8c
mov esp, ebp
pop ebp
ret