joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4c1ff8
Capabilities:
Get keyboard layout

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
test dl, dl
je 0x4c200a
add esp, 0xfffffff0
call fcn.004058ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004402d8
mov eax, dword [0x506cf0]
mov dword [eax + 4], ebx
mov dword [eax], 0x4c2454
mov eax, dword [0x506d00]
mov dword [eax + 4], ebx
mov dword [eax], 0x4c2460
mov eax, ebx
call fcn.004c246c
push 0
call sub.user32.dll_GetKeyboardLayout
mov dword [ebx + 0x40], eax
mov dl, 1
mov eax, dword [0x4297c8]
call fcn.00405388
mov dword [ebx + 0x50], eax
mov dl, 1
mov eax, dword [0x4297c8]
call fcn.00405388
mov dword [ebx + 0x54], eax
mov dl, 1
mov eax, dword [0x4297c8]
call fcn.00405388
mov dword [ebx + 0x58], eax
mov dl, 1
mov eax, dword [0x4297c8]
call fcn.00405388
mov dword [ebx + 0x5c], eax
mov dl, 1
mov eax, dword [0x4297c8]
call fcn.00405388
mov dword [ebx + 0x78], eax
push 0
call sub.user32.dll_GetDC
mov esi, eax
push 0x5a
push esi
call sub.gdi32.dll_GetDeviceCaps
mov dword [ebx + 0x44], eax
push esi
push 0
call sub.user32.dll_ReleaseDC
mov eax, dword [ebx + 0x5c]
push eax
mov eax, 0x4bcda0
push eax
push 0
push 0
mov eax, dword [0x506f7c]
mov eax, dword [eax]
call eax
mov dl, 1
mov eax, dword [0x44ac5c]
call fcn.00450f30
mov dword [ebx + 0x80], eax
mov dl, 1
mov eax, dword [0x44ac5c]
call fcn.00450f30
mov dword [ebx + 0x84], eax
mov dl, 1
mov eax, dword [0x44ac5c]
call fcn.00450f30
mov dword [ebx + 0x7c], eax
mov dl, 1
mov eax, dword [0x44ac5c]
call fcn.00450f30
mov dword [ebx + 0x88], eax
mov dl, 1
mov eax, dword [0x44ac5c]
call fcn.00450f30
mov dword [ebx + 0x8c], eax
mov eax, ebx
call fcn.004c29c4
mov eax, dword [ebx + 0x80]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c2834
mov eax, dword [ebx + 0x84]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c2834
mov eax, dword [ebx + 0x7c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c2834
mov eax, dword [ebx + 0x88]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c2834
mov eax, dword [ebx + 0x8c]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], 0x4c2834
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c2185
call fcn.00405944
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
pop ecx
pop ebp
ret
Function at 0x4c25d4
Capabilities:
Get keyboard layout
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffc60
push ebx
xor edx, edx
mov dword [ebp - 0x3a0], edx
mov dword [ebp - 4], eax
xor eax, eax
push ebp
push 0x4c2781
push dword fs:[eax]
mov dword fs:[eax], esp
mov eax, dword [ebp - 4]
cmp dword [eax + 0x38], 0
jne 0x4c2762
mov dl, 1
mov eax, dword [0x42bec8]
call fcn.00437d50
mov edx, dword [ebp - 4]
mov dword [edx + 0x38], eax
mov eax, dword [ebp - 4]
add eax, 0x3c
xor edx, edx
call fcn.00406fc0
lea eax, [ebp - 0x114]
push eax
push 0x40
call sub.user32.dll_GetKeyboardLayoutList
dec eax
test eax, eax
jl 0x4c2751
inc eax
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x114]
mov dword [ebp - 0x14], eax
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
call fcn.004a4c34
test al, al
je 0x4c2744
lea eax, [ebp - 0xc]
push eax
push 0x20019
push 0
push 0
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov dword [ebp - 0x39c], eax
mov byte [ebp - 0x398], 0
lea ecx, [ebp - 0x39c]
mov edx, 0x4c2790
lea eax, [ebp - 0x394]
call fcn.004140d8
push eax
push 0x80000002
call sub.advapi32.dll_RegOpenKeyExW_1
test eax, eax
jne 0x4c2744
xor eax, eax
push ebp
push 0x4c273d
push dword fs:[eax]
mov dword fs:[eax], esp
mov dword [ebp - 8], 0x200
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0x314]
push eax
push 0
push 0
push 0x4c2800
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegQueryValueExW_1
test eax, eax
jne 0x4c2726
lea eax, [ebp - 0x3a0]
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004071a8
mov edx, dword [ebp - 0x3a0]
mov eax, dword [ebp - 0x14]
mov ecx, dword [eax]
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov ebx, dword [eax]
call dword [ebx + 0x3c]
mov eax, dword [ebp - 0x14]
mov eax, dword [eax]
mov edx, dword [ebp - 4]
cmp eax, dword [edx + 0x40]
jne 0x4c2726
mov eax, dword [ebp - 4]
add eax, 0x3c
lea edx, [ebp - 0x314]
mov ecx, pe_nt_image_headers32
call fcn.004071a8
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2744
mov eax, dword [ebp - 0xc]
push eax
call sub.advapi32.dll_RegCloseKey_1
ret
add dword [ebp - 0x14], 4
dec dword [ebp - 0x10]
jne 0x4c2647
mov eax, dword [ebp - 4]
mov eax, dword [eax + 0x38]
mov byte [eax + 0x29], 0
mov dl, 1
call fcn.00437c8c
mov eax, dword [ebp - 4]
mov ebx, dword [eax + 0x38]
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4c2788
lea eax, [ebp - 0x3a0]
call fcn.00406fb0
ret

Function at 0x4c32e0
Capabilities:
Create thread
Set global application hook

Disassembly:
push ecx
mov eax, dword [0x50d2bc]
cmp byte [eax + 0xad], 0
jne 0x4c3352
cmp dword [0x50d2d4], 0
jne 0x4c3312
call sub.kernel32.dll_GetCurrentThreadId_1
push eax
push 0
mov eax, dword [0x50625c]
push eax
push 3
call sub.user32.dll_SetWindowsHookExW
mov dword [0x50d2d4], eax
cmp dword [0x50d2d0], 0
jne 0x4c332d
push 0
push 0
push 0
push 0
call sub.kernel32.dll_CreateEventW
mov dword [0x50d2d0], eax
cmp dword [0x50d2d8], 0
jne 0x4c3352
push esp
push 0
push 0
mov eax, dword [0x506258]
push eax
push 0x3e8
push 0
call sub.kernel32.dll_CreateThread_1
mov dword [0x50d2d8], eax
pop edx
ret
Function at 0x4c3678
Capabilities:
Inspect load icon resource

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffdfc
push ebx
push esi
test dl, dl
je 0x4c368f
add esp, 0xfffffff0
call fcn.004058ec
mov byte [ebp - 1], dl
mov ebx, eax
xor edx, edx
mov eax, ebx
call fcn.004402d8
mov eax, dword [0x506b88]
cmp byte [eax], 0
jne 0x4c36bc
push 0
call sub.ole32.dll_OleInitialize
test eax, 0x80000000
sete al
mov byte [ebx + 0x17c], al
mov eax, dword [0x506f48]
cmp word [eax + 2], 0
jne 0x4c36d6
mov eax, dword [0x506f48]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004c5770
mov eax, dword [0x5070ac]
cmp word [eax + 2], 0
jne 0x4c36f0
mov eax, dword [0x5070ac]
mov dword [eax + 4], ebx
mov dword [eax], fcn.004c5980
mov byte [ebx + 0x35], 0
mov dl, 1
mov eax, dword [0x44ac5c]
call fcn.00450f30
mov esi, eax
mov dword [ebx + 0x3c], esi
mov dword [esi + 0xc], ebx
mov dword [esi + 8], 0x4c5f30
mov dl, 1
mov eax, dword [0x4297c8]
call fcn.00405388
mov dword [ebx + 0x90], eax
mov dl, 1
mov eax, dword [0x4297c8]
call fcn.00405388
mov dword [ebx + 0xb0], eax
xor eax, eax
mov dword [ebx + 0x60], eax
xor eax, eax
mov dword [ebx + 0x84], eax
mov dword [ebx + 0x5c], 0xff000018
mov dword [ebx + 0x78], 0x1f4
mov byte [ebx + 0x7c], 1
xor eax, eax
mov dword [ebx + 0x80], eax
mov dword [ebx + 0x74], 0x9c4
mov byte [ebx + 0x88], 0
mov byte [ebx + 0xa5], 1
mov byte [ebx + 0xbc], 1
mov dl, 1
mov eax, dword [0x44f0f4]
call fcn.0045a3a0
mov esi, eax
mov dword [ebx + 0xa0], esi
push 0x4c38d0
mov eax, dword [0x506db8]
mov eax, dword [eax]
push eax
call sub.user32.dll_LoadIconW
mov edx, eax
mov eax, esi
call fcn.0045a834
mov eax, dword [ebx + 0xa0]
mov dword [eax + 0x14], ebx
mov dword [eax + 0x10], 0x4c6218
mov dl, 1
mov eax, dword [0x4297c8]
call fcn.00405388
mov dword [ebx + 0x98], eax
push pe_nt_image_headers32
lea eax, [ebp - 0x202]
push eax
mov eax, dword [0x506db8]
mov eax, dword [eax]
push eax
call sub.kernel32.dll_GetModuleFileNameW_1
lea eax, [ebp - 0x202]
mov dx, 0x5c
call fcn.00413ed0
test eax, eax
je 0x4c3801
lea edx, [eax + 2]
lea eax, [ebp - 0x202]
call fcn.00413cb4
lea eax, [ebp - 0x202]
mov dx, 0x2e
call fcn.00413eb4
test eax, eax
je 0x4c3819
mov word [eax], 0
lea eax, [ebp - 0x202]
push eax
call sub.user32.dll_CharNextW_1
push eax
call sub.user32.dll_CharLowerW
lea eax, [ebx + 0x8c]
lea edx, [ebp - 0x202]
mov ecx, pe_nt_image_headers32
call fcn.004071a8
push ebx
push 0x4c5140
call fcn.004b9388
mov dword [ebx + 0x178], eax
mov byte [ebx + 0xd0], 0
mov eax, dword [0x506b88]
cmp byte [eax], 0
jne 0x4c386a
mov eax, ebx
call fcn.004c3a44
mov byte [ebx + 0x59], 1
mov byte [ebx + 0x5a], 1
mov byte [ebx + 0x5b], 1
mov byte [ebx + 0xa6], 1
mov byte [ebx + 0xd1], 0
mov byte [ebx + 0xdc], 0
xor eax, eax
mov dword [ebx + 0xd4], eax
mov byte [ebx + 0xd3], 0
xor eax, eax
mov dword [ebx + 0xa8], eax
mov eax, ebx
call fcn.004c6444
mov eax, ebx
call fcn.004c7078
mov eax, ebx
cmp byte [ebp - 1], 0
je 0x4c38c7
call fcn.00405944
pop dword fs:[0]
add esp, 0xc
mov eax, ebx
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4c3d18
Capabilities:
Enumerate gui resources

Disassembly:
push ebx
push esi
add esp, 0xfffffff8
mov ebx, eax
mov eax, dword [ebx + 0x170]
test eax, eax
je 0x4c3dba
cmp dword [ebx + 0x94], 0
jne 0x4c3db4
mov dword [esp], eax
mov byte [esp + 4], dl
mov eax, esp
push eax
push 0x4c3c64
call sub.user32.dll_EnumWindows
mov eax, dword [ebx + 0x90]
cmp dword [eax + 8], 0
je 0x4c3db4
push 3
mov eax, dword [esp + 4]
push eax
call sub.user32.dll_GetWindow
mov esi, eax
mov dword [esp], esi
push 0xffffffffffffffec
push esi
call sub.user32.dll_GetWindowLongW
test al, 8
je 0x4c3d7a
mov dword [esp], 0xfffffffe
mov eax, dword [ebx + 0x90]
mov esi, dword [eax + 8]
dec esi
cmp esi, 0
jl 0x4c3db4
push 0x213
push 0
push 0
push 0
push 0
mov eax, dword [esp + 0x14]
push eax
mov edx, esi
mov eax, dword [ebx + 0x90]
call fcn.004346e4
push eax
call sub.user32.dll_SetWindowPos
dec esi
cmp esi, 0xffffffff
jne 0x4c3d89
inc dword [ebx + 0x94]
pop ecx
pop edx
pop esi
pop ebx
ret

Function at 0x4c3fd8
Capabilities:
Enumerate gui resources
Hide graphical window

Disassembly:
push ebx
push esi
push edi
mov ebx, edx
mov esi, eax
mov eax, dword [0x50d2bc]
cmp dword [eax + 0x170], 0
je 0x4c413d
test bl, bl
jne 0x4c408b
cmp dword [esi + 0x9c], 0
jne 0x4c4080
mov eax, esi
call fcn.004c6ec8
push eax
push 0x4c3ee4
call sub.user32.dll_EnumWindows
cmp dword [esi + 0x44], 0
je 0x4c4051
mov eax, dword [0x50d2bc]
cmp byte [eax + 0xd3], 0
je 0x4c4051
mov eax, dword [esi + 0xd8]
call fcn.0040866c
mov edi, eax
cmp edi, 0
jl 0x4c4051
push 0
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c403a
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c4080
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004346e4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c4060
inc dword [esi + 0x9c]
jmp 0x4c413d
cmp dword [esi + 0x9c], 0
jle 0x4c413d
dec dword [esi + 0x9c]
cmp dword [esi + 0x9c], 0
jne 0x4c413d
cmp dword [esi + 0x44], 0
je 0x4c40e8
mov eax, dword [0x50d2bc]
cmp byte [eax + 0xd3], 0
je 0x4c40e8
mov eax, dword [esi + 0xd8]
call fcn.0040866c
mov edi, eax
cmp edi, 0
jl 0x4c40e8
push 5
mov eax, dword [esi + 0xd8]
mov eax, dword [eax + edi*4]
push eax
call sub.user32.dll_ShowWindow
dec edi
cmp edi, 0xffffffff
jne 0x4c40d1
mov eax, dword [esi + 0x98]
mov edi, dword [eax + 8]
dec edi
cmp edi, 0
jl 0x4c4117
cmp bl, 1
cmc
sbb eax, eax
push eax
mov edx, edi
mov eax, dword [esi + 0x98]
call fcn.004346e4
push eax
call sub.user32.dll_ShowOwnedPopups
dec edi
cmp edi, 0xffffffff
jne 0x4c40f7
mov eax, dword [esi + 0x98]
mov edx, dword [eax]
call dword [edx + 8]
push 0
lea eax, [esi + 0xd8]
mov ecx, 1
mov edx, dword [0x4b7260]
call fcn.0040882c
add esp, 4
pop edi
pop esi
pop ebx
ret
Function at 0x4c4d8c
Capabilities:
Get graphical window text

Disassembly:
push ebx
push esi
add esp, 0xfffffdfc
mov esi, edx
mov ebx, eax
cmp byte [ebx + 0xac], 0
je 0x4c4df7
cmp byte [ebx + 0xd3], 0
jne 0x4c4df7
push pe_nt_image_headers32
lea eax, [esp + 4]
push eax
mov eax, dword [ebx + 0x170]
push eax
call sub.user32.dll_GetWindowTextW
mov ecx, eax
mov edx, esp
mov eax, esi
call fcn.004070fc
mov eax, dword [esi]
mov dword [esp + 0x200], eax
mov eax, dword [esp + 0x200]
test eax, eax
je 0x4c4de4
sub eax, 4
mov eax, dword [eax]
test eax, eax
jne 0x4c4e04
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406fc0
jmp 0x4c4e04
mov eax, esi
mov edx, dword [ebx + 0x8c]
call fcn.00406fc0
add esp, 0x204
pop esi
pop ebx
ret

Function at 0x4c662c
Capabilities:
Hide graphical window

Disassembly:
push ebx
push esi
mov ebx, eax
mov esi, dword [ebx + 0x84]
test esi, esi
je 0x4c669a
mov eax, esi
call fcn.0049eb40
test al, al
je 0x4c669a
mov eax, dword [ebx + 0x84]
call fcn.0049e794
push eax
call sub.user32.dll_IsWindowVisible
test eax, eax
je 0x4c669a
mov eax, dword [ebx + 0x84]
mov edx, dword [eax]
call dword [edx + 0xfc]
test al, al
je 0x4c668e
push 0
mov eax, dword [ebx + 0x84]
call fcn.0049e794
push eax
call sub.user32.dll_ShowWindow
xor edx, edx
mov eax, dword [ebx + 0x84]
call fcn.00495768
jmp 0x4c669a
mov cl, 1
mov edx, dword [ebx + 0x74]
mov eax, ebx
call fcn.004c6464
pop esi
pop ebx
ret
Function at 0x4fa160
Capabilities:
Get local ipv4 addresses

Disassembly:
push ebx
push esi
push edi
push ebp
add esp, 0xfffffff8
mov dword [esp], eax
xor edi, edi
xor ebx, ebx
mov esi, 6
lea eax, [esp + 4]
push eax
push ebx
push 0
push 0
push 2
call sub.iphlpapi.dll_GetAdaptersAddresses
mov ebp, eax
cmp ebp, 0x6f
jne 0x4fa1ad
test ebx, ebx
je 0x4fa196
mov eax, ebx
call fcn.00404254
mov eax, dword [esp + 4]
call fcn.00404238
mov ebx, eax
test ebx, ebx
jne 0x4fa1aa
call fcn.0041a720
dec esi
jne 0x4fa173
test ebp, ebp
jne 0x4fa1f7
mov esi, ebx
test esi, esi
je 0x4fa1f7
cmp dword [esi + 0x40], 0x18
je 0x4fa1c3
cmp byte [esi + 0x44], 1
je 0x4fa1c8
mov esi, dword [esi + 8]
jmp 0x4fa1f3
cmp dword [esi + 0x10], 0
je 0x4fa1f0
mov eax, dword [esp]
mov edx, dword [esi + 0x10]
mov edx, dword [edx + 0xc]
mov edx, dword [edx + 4]
mov dword [eax + edi*4], edx
mov eax, dword [esp]
mov eax, dword [eax + edi*4]
push eax
call sub.wsock32.dll_ntohl
mov edx, dword [esp]
mov dword [edx + edi*4], eax
inc edi
mov esi, dword [esi + 8]
test esi, esi
jne 0x4fa1b7
test ebx, ebx
je 0x4fa202
mov eax, ebx
call fcn.00404254
mov eax, edi
pop ecx
pop edx
pop ebp
pop edi
pop esi
pop ebx
ret

Function at 0x4fbac8
Capabilities:
Connect socket
Connect udp socket
Create udp socket
Initialize winsock library
Send data
Send data on socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
add esp, 0xfffffd44
push ebx
push esi
mov esi, ecx
mov dword [ebp - 4], edx
mov ebx, eax
lea eax, [ebp - 0x1bc]
push eax
push 2
call sub.wsock32.dll_WSAStartup
test eax, eax
jne 0x4fbc2a
push 0
push 2
push 2
call sub.wsock32.dll_socket
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
je 0x4fbc2a
xor edx, edx
push ebp
push 0x4fbc23
push dword fs:[edx]
mov dword fs:[edx], esp
lea eax, [ebp - 0x2c]
xor ecx, ecx
mov edx, 0x10
call fcn.00404c24
mov word [ebp - 0x2c], 2
mov word [ebp - 0x2a], 0
mov eax, ebx
shr eax, 0
and eax, 0xff
shl eax, 0x18
mov edx, ebx
shr edx, 8
and edx, 0xff
shl edx, 0x10
or eax, edx
mov edx, ebx
shr edx, 0x10
and edx, 0xff
shl edx, 8
or eax, edx
shr ebx, 0x18
and ebx, 0xff
or eax, ebx
mov dword [ebp - 0x28], eax
push 0x10
lea eax, [ebp - 0x2c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_bind
lea eax, [ebp - 0x1c]
xor ecx, ecx
mov edx, 0x10
call fcn.00404c24
mov word [ebp - 0x1c], 2
push 0x4e93
call sub.wsock32.dll_htons
mov word [ebp - 0x1a], ax
push 0x4fbc30
call sub.wsock32.dll_inet_addr
mov dword [ebp - 0x18], eax
mov byte [ebp - 9], 1
push 4
lea eax, [ebp - 9]
push eax
push 0x20
push 0xffff
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_setsockopt
push 0x10
lea eax, [ebp - 0x1c]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_connect
test eax, eax
je 0x4fbbdf
call fcn.00405f84
jmp 0x4fbc2a
lea edx, [ebp - 0x2bc]
mov eax, dword [ebp - 4]
mov ecx, esi
call fcn.004043fc
push 0
push esi
lea eax, [ebp - 0x2bc]
push eax
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_send
inc eax
jne 0x4fbc0c
call fcn.00405f84
jmp 0x4fbc2a
xor eax, eax
pop edx
pop ecx
pop ecx
mov dword fs:[eax], edx
push 0x4fbc2a
mov eax, dword [ebp - 8]
push eax
call sub.wsock32.dll_closesocket
ret
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e002
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
mov eax, section..rdata
nop
mov ebx, 0x407ef8
mov ecx, 0x567002ea
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x42e04e
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
jne 0x42e024
nop
nop
mov eax, section._RDATA
mov ebx, 0x42cd70
nop
mov ecx, 0x509d6f40
nop
nop
nop
nop
nop
test eax, eax
je 0x42e084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
jne 0x42e06c
nop
nop
nop
popal
nop
nop
nop
jmp 0x401219

Function at 0x402d98
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
pop ebp
jmp sym.___do_sjlj_init
Function at 0x401760
Capabilities:
Persist via run registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x210
mov eax, dword [0x419470]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x210]
push eax
push 2
push 0
push str.SoftwareMicrosoftWindowsCurrentVersionRun
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x4017e1
push 0x104
lea ecx, [ebp - 0x20c]
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
lea edx, [ebp - 0x20c]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
mov edx, dword [ebp - 0x210]
lea eax, [eax + eax + 2]
push eax
lea ecx, [ebp - 0x20c]
push ecx
push 1
push 0
push str.Win_code
push edx
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [ebp - 0x210]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00404961
mov esp, ebp
pop ebp
ret
Function at 0x403270
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x413688
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x419470]
xor eax, ebp
mov dword [ebp - 0x10], eax
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
cmp dword [ebx + 0x44], 0
je 0x403401
cmp byte [ebx + 0x49], 0
je 0x403401
mov eax, dword [ebx]
mov edx, dword [eax + 0xc]
push 0xffffffffffffffff
mov ecx, ebx
call edx
cmp eax, 0xffffffff
je 0x4033f5
lea esi, [ebp - 0x2c]
call fcn.00402e10
mov dword [ebp - 4], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x4032e3
lea edx, [ebp - 0x2c]
mov eax, edx
mov ecx, dword [ebx + 0x44]
mov esi, dword [ecx]
lea edi, [ebp - 0x30]
push edi
mov edi, dword [ebp - 0x1c]
add edi, edx
push edi
push eax
lea eax, [ebx + 0x4c]
push eax
mov eax, dword [esi + 0x18]
call eax
sub eax, 0
je 0x40331c
dec eax
je 0x403320
sub eax, 2
lea ecx, [ebp - 0x2c]
je 0x4033fc
call fcn.00401b90
xor al, al
jmp 0x403403
mov byte [ebx + 0x49], 0
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
mov edx, eax
cmp edi, 0x10
jae 0x403330
lea edx, [ebp - 0x2c]
mov esi, dword [ebp - 0x30]
sub esi, edx
je 0x40335d
cmp edi, 0x10
jae 0x40333f
lea eax, [ebp - 0x2c]
mov ecx, dword [ebx + 0x54]
push ecx
push esi
push 1
push eax
call fcn.004059ef
add esp, 0x10
cmp esi, eax
jne 0x4033ed
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
cmp byte [ebx + 0x49], 0
je 0x4033f9
test esi, esi
jne 0x4032d7
mov ecx, dword [ebp - 0x1c]
or edx, 0xffffffff
sub edx, ecx
cmp edx, 8
jbe 0x40341e
lea esi, [ecx + 8]
cmp esi, 0xfffffffe
ja 0x40341e
cmp edi, esi
jae 0x4033d6
push ecx
push esi
lea ecx, [ebp - 0x2c]
call fcn.00403780
mov edi, dword [ebp - 0x18]
mov eax, dword [ebp - 0x2c]
test esi, esi
je 0x4032d7
mov ecx, eax
cmp edi, 0x10
jae 0x4033b2
lea ecx, [ebp - 0x2c]
mov edx, dword [ebp - 0x1c]
xor eax, eax
mov dword [ecx + edx], eax
mov dword [ecx + edx + 4], eax
cmp dword [ebp - 0x18], 0x10
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x1c], esi
jae 0x4033cd
lea eax, [ebp - 0x2c]
mov byte [eax + esi], 0
jmp 0x4032d1
test esi, esi
jne 0x4033a8
mov dword [ebp - 0x1c], esi
cmp edi, 0x10
jae 0x4033e5
lea eax, [ebp - 0x2c]
mov byte [eax], 0
jmp 0x4032d1
lea ecx, [ebp - 0x2c]
call fcn.00401b90
xor al, al
jmp 0x403403
lea ecx, [ebp - 0x2c]
call fcn.00401b90
mov al, 1
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.00404961
mov esp, ebp
pop ebp
ret
push str.string_too_long
call fcn.004043dc
int3
Function at 0x403650
Capabilities:
Access peb ldr_data
Get process heap flags

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x4135fb
mov eax, dword fs:[0]
push eax
push ecx
push ebx
push esi
push edi
mov eax, dword [0x419470]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, dword [ebp + 8]
lea ecx, [esi + 4]
mov dword [esi], vtable.std::basic_streambuf_char__struct_std::char_traits_char__.0
call fcn.00404530
push 4
mov dword [ebp - 4], 0
call fcn.00405b9b
mov edi, eax
add esp, 4
test edi, edi
je 0x4036cc
call fcn.0040432b
mov dword [edi], eax
call fcn.004040ea
push 0
lea ecx, [ebp - 0x10]
mov ebx, eax
call fcn.004044f1
mov eax, dword [ebx + 4]
cmp eax, 0xffffffff
jae 0x4036c2
inc eax
mov dword [ebx + 4], eax
lea ecx, [ebp - 0x10]
call fcn.00404519
jmp 0x4036ce
xor edi, edi
lea eax, [esi + 8]
mov dword [esi + 0x10], eax
lea ecx, [esi + 0x18]
mov dword [esi + 0x20], ecx
lea edx, [esi + 0x1c]
mov dword [esi + 0x24], edx
mov dword [esi + 0x38], edi
lea eax, [esi + 0xc]
mov dword [esi + 0x14], eax
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], ecx
lea edx, [esi + 0x2c]
mov dword [esi + 0x34], edx
mov dword [eax], 0
mov eax, dword [esi + 0x24]
mov dword [eax], 0
mov ecx, dword [esi + 0x34]
mov dword [ecx], 0
mov edx, dword [esi + 0x10]
mov dword [edx], 0
mov eax, dword [esi + 0x20]
mov dword [eax], 0
mov ecx, dword [esi + 0x30]
mov dword [ecx], 0
mov eax, esi
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4

Function at 0x404961
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x419470]
jne 0x40496b
repz ret
jmp fcn.00408018
Function at 0x411791
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x419470]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 0x20], eax
mov eax, dword [ebp + 0xc]
push esi
push edi
mov dword [ebp - 0x1c], eax
call fcn.0040aa6a
and dword [ebp - 0x14], 0
cmp dword [0x41b204], 0
mov dword [ebp - 0x18], eax
jne 0x411844
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x4118ec
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x4118ec
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x41b204], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x41b208], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x41b20c], eax
call edi
push eax
call esi
mov dword [0x41b214], eax
test eax, eax
je 0x411844
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x41b210], eax
mov eax, dword [0x41b210]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x41189d
cmp dword [0x41b214], ecx
je 0x41189d
push eax
call esi
push dword [0x41b214]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x41189d
test ebx, ebx
je 0x41189d
call edi
test eax, eax
je 0x411894
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x411894
test byte [ebp - 8], 1
jne 0x41189d
or dword [ebp + 0x10], 0x200000
jmp 0x4118d0
mov eax, dword [0x41b208]
cmp eax, dword [ebp - 0x18]
je 0x4118d0
push eax
call esi
test eax, eax
je 0x4118d0
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x4118d0
mov eax, dword [0x41b20c]
cmp eax, dword [ebp - 0x18]
je 0x4118d0
push eax
call esi
test eax, eax
je 0x4118d0
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x41b204]
call esi
test eax, eax
je 0x4118ec
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x4118ee
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00404961
leave
ret