joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4837d5
Capabilities:
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, dword [ebp + 8]
push ebx
push esi
push edi
mov esi, ecx
push 2
pop ecx
mov word [eax], cx
lea ecx, [ebp - 0x14]
call fcn.0041c0af
mov ebx, dword [ebp + 0xc]
lea edx, [ebp - 0x14]
mov ecx, ebx
call fcn.00483ae2
push dword [ebp - 0x14]
call dword [sym.imp.WSOCK32.dll_inet_addr]
mov edi, eax
lea ecx, [ebp - 0x14]
mov dword [ebp - 4], edi
call fcn.0040ac28
cmp edi, 0xffffffff
jne 0x483878
mov ebx, dword [ebx + 4]
mov edi, str.255.255.255.255
push edi
call fcn.00424cb3
pop ecx
cmp ebx, eax
jne 0x483851
test ebx, ebx
je 0x48384b
mov eax, dword [ebp + 0xc]
mov eax, dword [eax]
sub eax, edi
movzx ecx, word [eax + edi]
movzx edx, word [edi]
cmp cx, dx
jne 0x48386d
add edi, 2
sub ebx, 1
jne 0x483837
xor eax, eax
test eax, eax
je 0x483875
mov eax, dword [esi]
mov ecx, dword [eax + 4]
cmp byte [ecx + esi + 0xd], 0
mov eax, dword [ecx + esi + 8]
je 0x483864
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], 1
jmp 0x4838b5
sbb eax, eax
and eax, 0xfffffffe
inc eax
jmp 0x48384d
mov edi, dword [ebp - 4]
mov ebx, dword [ebp + 8]
mov eax, dword [ebp + 0x10]
mov dword [ebx + 4], edi
test eax, eax
jle 0x48389b
cmp eax, 0xffff
jg 0x48389b
push eax
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebx + 2], ax
mov al, 1
jmp 0x4838c9
mov eax, dword [esi]
mov ecx, dword [eax + 4]
cmp byte [ecx + esi + 0xd], 0
mov eax, dword [ecx + esi + 8]
je 0x4838ae
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], 2
cmp byte [ecx + esi + 0xd], 0
mov eax, dword [ecx + esi + 8]
je 0x4838c3
mov eax, dword [eax + 0x38]
mov byte [eax + 0x18], 0
xor al, al
pop edi
pop esi
pop ebx
leave
ret 0xc
Function at 0x4838d0
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [ebp + 0xc]
push esi
mov esi, dword [ebp + 0x10]
push edi
and dword [ebx], 0
mov edi, ecx
mov dword [ebx + 4], eax
mov ecx, 0x3e8
mov eax, esi
inc dword [ebx]
cdq
idiv ecx
mov dword [ebp - 8], eax
imul eax, eax, 0x3e8
sub esi, eax
imul eax, esi, 0x3e8
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push eax
xor eax, eax
push eax
cmp byte [ebp + 0x14], al
je 0x483919
push ebx
push eax
jmp 0x48391b
push eax
push ebx
push eax
call dword [sym.imp.WSOCK32.dll_select]
mov esi, eax
test esi, esi
jne 0x483949
cmp byte [ebp + 0x14], al
je 0x4839a2
mov eax, dword [edi]
mov ecx, dword [eax + 4]
cmp byte [ecx + edi + 0xd], 0
mov eax, dword [ecx + edi + 8]
je 0x483940
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], 0x274c
jmp 0x483990
jle 0x483974
push ebx
push dword [ebp + 8]
call dword [sym.imp.WSOCK32.dll___WSAFDIsSet]
test eax, eax
jne 0x4839a2
mov eax, dword [edi]
push 0xfffffffffffffffe
pop esi
mov ecx, dword [eax + 4]
cmp byte [ecx + edi + 0xd], 0
mov eax, dword [ecx + edi + 8]
je 0x48396f
mov eax, dword [eax + 0x38]
mov dword [eax + 0x14], esi
jmp 0x483990
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov ecx, dword [edi]
mov ecx, dword [ecx + 4]
cmp byte [ecx + edi + 0xd], 0
mov edx, dword [ecx + edi + 8]
je 0x48398d
mov edx, dword [edx + 0x38]
mov dword [edx + 0x14], eax
cmp byte [ecx + edi + 0xd], 0
mov eax, dword [ecx + edi + 8]
je 0x48399e
mov eax, dword [eax + 0x38]
mov byte [eax + 0x18], 0
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret 0x10
Function at 0x48d3b2
Capabilities:
Delete registry key
Query or enumerate registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x21c
push ebx
push esi
push edi
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xff
push eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x218]
mov edi, ecx
push eax
push esi
mov ebx, edx
push edi
mov dword [ebp - 0xc], ebx
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
je 0x48d4ba
mov eax, ebx
or eax, 0x20019
mov dword [ebp - 0x10], eax
lea ecx, [ebp - 8]
push ecx
push eax
push esi
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x48d4cc
mov ecx, dword [ebp - 8]
mov edx, ebx
call fcn.0048d3b2
push dword [ebp - 8]
mov bl, al
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
je 0x48d4cc
push str.advapi32.dll
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov esi, eax
test esi, esi
je 0x48d469
push str.RegDeleteKeyExW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x48d469
mov ebx, dword [ebp - 0xc]
lea ecx, [ebp - 0x218]
push 0
push ebx
push ecx
push edi
call eax
jmp 0x48d47a
lea eax, [ebp - 0x218]
push eax
push edi
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyW]
mov ebx, dword [ebp - 0xc]
test eax, eax
jne 0x48d4c1
test esi, esi
je 0x48d489
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
lea eax, [ebp - 0x18]
mov dword [ebp - 4], 0xff
push eax
xor esi, esi
lea eax, [ebp - 4]
push esi
push esi
push esi
push eax
lea eax, [ebp - 0x218]
push eax
push esi
push edi
call dword [sym.imp.ADVAPI32.dll_RegEnumKeyExW]
cmp eax, 0x103
mov eax, dword [ebp - 0x10]
jne 0x48d3fd
mov al, 1
pop edi
pop esi
pop ebx
leave
ret
test esi, esi
je 0x48d4cc
push esi
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
xor al, al
jmp 0x48d4bc
Function at 0x495894
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [ebp - 8]
push ebx
push esi
push edi
push eax
lea eax, [ebp - 4]
push eax
push dword [ebp + 8]
call fcn.0040afcb
test al, al
je 0x49591a
mov ecx, dword [ebp - 4]
mov eax, dword [0x4d2930]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 8]
mov eax, dword [eax]
mov dword [ebp + 8], eax
mov eax, dword [0x4d2944]
mov eax, dword [eax + ecx*4]
lea ecx, [ebp + 0xc]
mov edi, dword [eax]
mov esi, dword [edi]
mov bl, byte [edi + 0x90]
mov dword [ebp - 8], esi
call fcn.00419e08
cmp dword [edi + 0x48], 0
jl 0x4958ef
push dword [edi + 0x48]
call fcn.00497685
cmp bl, 0x12
ja 0x49599c
je 0x49595d
test bl, bl
je 0x495951
cmp bl, 4
jbe 0x4959e0
cmp bl, 8
je 0x495935
cmp bl, 0x10
je 0x495923
cmp bl, 0x11
je 0x4959f0
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 8
cmp dword [ebp + 0xc], 0
jl 0x49591a
push dword [ebp + 0xc]
push 0
push 0x111d
jmp 0x495945
cmp dword [ebp + 0xc], 0
jl 0x49591a
push dword [ebp + 0xc]
push 0
push 0x2001
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
jmp 0x495a63
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x49591a
jmp 0x495a29
mov eax, dword [ebp + 0xc]
cmp eax, 0xffffffff
jl 0x49591a
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00419930
test byte [edi + 0x92], 0x20
jne 0x495a63
mov esi, dword [sym.imp.USER32.dll_ShowWindow]
push 0
push dword [edi]
call esi
push 5
push dword [edi]
call esi
push dword [edi]
call dword [sym.imp.USER32.dll_SetFocus]
jmp 0x495a63
cmp bl, 0x13
je 0x495a15
cmp bl, 0x14
je 0x4959f0
cmp bl, 0x17
je 0x4959e0
cmp bl, 0x18
je 0x4959c0
jbe 0x49591a
cmp bl, 0x1b
jbe 0x4959e0
jmp 0x49591a
cmp dword [ebp + 0xc], 0
jl 0x49591a
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_GetWindowLongW]
or eax, 0xb
push eax
push 0xfffffffffffffff0
push esi
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov eax, dword [ebp + 0xc]
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00419930
jmp 0x495a58
mov eax, dword [ebp + 0xc]
test eax, eax
js 0x49591a
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00419930
push 1
push 0
push dword [edi + 0x34]
call dword [sym.imp.USER32.dll_InvalidateRect]
jmp 0x495a63
cmp dword [ebp + 0xc], 0xfffffffe
je 0x49591a
mov eax, 0xfe000000
cmp dword [ebp + 0xc], eax
jne 0x495a36
push 1
push eax
mov dword [edi + 0x48], eax
call fcn.00419930
jmp 0x495a63
push dword [ebp + 0xc]
push 0
push 0x1001
push esi
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
call esi
push dword [ebp + 0xc]
push 0
push 0x1026
push dword [ebp - 8]
call esi
push 1
push edi
push dword [ebp + 8]
call fcn.00498500
cmp dword [0x4d2380], 0
je 0x495a79
cmp bl, 8
jne 0x495a79
or eax, 0xffffffff
jmp 0x49591c
xor eax, eax
inc eax
jmp 0x49591c
Function at 0x497241
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
lea eax, [ebp - 4]
xor ebx, ebx
push eax
lea eax, [ebp - 8]
push eax
push dword [ebp + 8]
call fcn.0040afcb
test al, al
je 0x4972b5
mov ecx, dword [ebp - 8]
mov eax, dword [0x4d2930]
mov esi, dword [ebp + 0xc]
mov edx, dword [sym.imp.USER32.dll_SendMessageW]
mov eax, dword [eax + ecx*4]
mov ecx, dword [ebp - 4]
mov eax, dword [eax]
mov dword [ebp - 8], eax
mov eax, dword [0x4d2944]
mov eax, dword [eax + ecx*4]
mov edi, dword [eax]
mov ecx, dword [edi]
mov dword [ebp + 8], ecx
cmp esi, 0xffffffff
je 0x497309
movzx eax, byte [edi + 0x90]
dec eax
sub eax, 1
je 0x4972d0
sub eax, 1
je 0x4972d3
sub eax, 3
je 0x4972cb
sub eax, 1
je 0x4972c6
sub eax, 3
je 0x4972be
sub eax, 0xc
jne 0x4972f4
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret 0xc
or esi, 0x4000000
jmp 0x4972f4
or esi, 3
jmp 0x4972f4
or esi, 0xe
jmp 0x4972f4
or esi, 4
push 0
test esi, 0x800
je 0x4972e1
push 1
jmp 0x4972e9
or esi, 0x10000
push 0
push 0xcf
push ecx
call edx
mov ecx, dword [ebp + 8]
or esi, 0x50000000
push esi
push 0xfffffffffffffff0
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp + 8]
mov ebx, eax
mov esi, dword [ebp + 0x10]
cmp esi, 0xffffffff
je 0x497346
push esi
push 0xffffffffffffffec
push ecx
call dword [sym.imp.USER32.dll_SetWindowLongW]
mov ecx, dword [ebp - 4]
mov ebx, eax
mov eax, dword [0x4d2944]
mov eax, dword [eax + ecx*4]
mov eax, dword [eax]
cmp byte [eax + 0x90], 0x13
jne 0x497346
push esi
push 0
push 0x1036
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_SendMessageW]
mov ebx, eax
mov al, byte [edi + 0x93]
mov ecx, dword [ebp - 8]
cmp al, 0xff
je 0x49736b
movzx eax, al
cmp eax, dword [ecx + 0x190]
je 0x49736b
push 0
push dword [ebp + 8]
call dword [sym.imp.USER32.dll_ShowWindow]
jmp 0x497374
push 1
push edi
push ecx
call fcn.00498500
mov al, byte [edi + 0x90]
cmp al, 2
je 0x497387
cmp al, 3
je 0x497387
cmp esi, 0xffffffff
je 0x497398
push 0x27
xor eax, eax
push eax
push eax
push eax
push eax
push eax
push dword [edi]
call dword [sym.imp.USER32.dll_SetWindowPos]
xor eax, eax
test ebx, ebx
setne al
jmp 0x4972b7
Function at 0x49885e
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push 0x44
push 0
mov ebx, 0x4d4028
push ebx
call fcn.00422690
push 0x10
push 0
mov esi, 0x4d406c
push esi
call fcn.00422690
add esp, 0x18
mov dword [0x4d4028], 0x44
xor eax, eax
inc eax
mov dword [0x4d4054], eax
push esi
push ebx
mov word [0x4d4058], ax
xor eax, eax
push eax
push eax
push 0x20
push eax
push eax
push eax
push dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_CreateProcessW]
pop esi
pop ebx
test eax, eax
je 0x4988c3
push dword [0x4d406c]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop ebp
ret 4

Function at 0x4988c7
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push ebx
mov ebx, dword [ebp + 0xc]
push esi
push edi
mov edi, dword [ebp + 8]
push 3
pop esi
mov edx, dword [edi + 4]
mov dword [ebp + 8], edx
cmp dword [edi + 0x190], ebx
je 0x498979
mov ebx, esi
cmp dword [0x4d2954], esi
jl 0x498970
mov eax, dword [0x4d2944]
mov eax, dword [eax + ebx*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x498967
cmp dword [ecx + 4], edx
jne 0x498967
mov dl, byte [ecx + 0x90]
cmp dl, 0xb
je 0x498964
mov dh, byte [ecx + 0x93]
movzx eax, dh
cmp eax, dword [edi + 0x190]
je 0x498934
cmp byte [edi + 0x198], 0
je 0x498964
cmp dh, 0xff
je 0x498964
cmp dl, 0xa
je 0x498964
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d2944]
mov eax, dword [eax + ebx*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x498964
cmp byte [eax + 0x90], 0x1a
jne 0x498964
push 0
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc ebx
cmp ebx, dword [0x4d2954]
jle 0x4988f2
mov ebx, dword [ebp + 0xc]
mov dword [edi + 0x190], ebx
cmp dword [0x4d2954], esi
jl 0x498a0d
mov eax, dword [0x4d2944]
mov eax, dword [eax + esi*4]
mov ecx, dword [eax]
test ecx, ecx
je 0x4989fd
cmp dword [ecx + 4], edx
jne 0x4989fd
cmp byte [ecx + 0x90], 0xb
je 0x4989fd
movzx eax, byte [ecx + 0x93]
cmp eax, dword [edi + 0x190]
jne 0x4989fd
test byte [ecx + 0x92], 0x20
jne 0x4989fd
push 0
push dword [ecx]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d2944]
push 4
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
push dword [eax]
call dword [sym.imp.USER32.dll_ShowWindow]
mov eax, dword [0x4d2944]
mov eax, dword [eax + esi*4]
mov eax, dword [eax]
test byte [eax + 0x92], 0x40
je 0x4989fd
cmp byte [eax + 0x90], 0x1a
jne 0x4989fd
push 1
push dword [eax]
call dword [sym.imp.USER32.dll_EnableWindow]
mov edx, dword [ebp + 8]
inc esi
cmp esi, dword [0x4d2954]
jle 0x498985
push 0
push ebx
push 0x130c
push dword [edi + 0x188]
call dword [sym.imp.USER32.dll_SendMessageW]
pop edi
pop esi
pop ebx
pop ebp
ret 8
Function at 0x498c5b
Capabilities:
Get file size
Read file on windows

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x24
push ebx
push esi
push edi
xor edi, edi
cmp word [eax], di
je 0x498d74
push edi
push edi
push 3
push edi
push edi
push bind
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov edi, eax
cmp edi, 0xffffffff
je 0x498cac
push 0
push edi
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
push esi
push 2
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebx, eax
test ebx, ebx
jne 0x498cb3
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
xor eax, eax
jmp 0x498da3
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalLock]
push 0
lea ecx, [ebp - 0xc]
push ecx
push esi
push eax
push edi
call dword [sym.imp.KERNEL32.dll_ReadFile]
push ebx
mov esi, eax
call dword [sym.imp.KERNEL32.dll_GlobalUnlock]
push edi
call dword [sym.imp.KERNEL32.dll_CloseHandle]
test esi, esi
je 0x498cac
lea eax, [ebp - 8]
push eax
push 1
push ebx
call dword [sym.imp.ole32.dll_CreateStreamOnHGlobal]
lea eax, [ebp - 4]
xor edi, edi
push eax
push 0x4a0c20
push edi
push edi
push dword [ebp - 8]
mov dword [ebp - 4], edi
call dword [sym.imp.OLEAUT32.dll_OleCreatePictureIndirect]
mov eax, dword [ebp - 8]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
push ebx
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov ecx, dword [ebp - 4]
test ecx, ecx
je 0x498cac
mov eax, dword [ecx]
lea edx, [ebp + 0xc]
push edx
push ecx
call dword [eax + 0xc]
lea eax, [ebp - 0x24]
push eax
push 0x18
push dword [ebp + 0xc]
call dword [sym.imp.GDI32.dll_GetObjectW]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0x14]
mov eax, dword [edx]
test eax, eax
jne 0x498d51
mov eax, edi
cmp dword [ecx], edi
jne 0x498d51
mov eax, dword [ebp - 0x20]
mov dword [edx], eax
mov eax, dword [ebp - 0x1c]
mov dword [ecx], eax
mov eax, dword [edx]
push 0x2000
push dword [ecx]
push eax
push edi
push dword [ebp + 0xc]
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp + 0xc], eax
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
mov eax, dword [ebp + 0xc]
jmp 0x498d79
mov eax, edi
mov dword [ebp + 0xc], eax
mov esi, dword [ebp + 8]
cmp dword [esi + 0x64], 0
je 0x498d8e
push dword [esi + 0x64]
call dword [sym.imp.GDI32.dll_DeleteObject]
mov eax, dword [ebp + 0xc]
push eax
push edi
mov dword [esi + 0x64], eax
mov esi, dword [esi]
push 0x172
push esi
call dword [sym.imp.USER32.dll_SendMessageW]
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4996b5
Capabilities:
Check for unmoving mouse cursor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ecx, 0x4d28d0
push edi
call fcn.00419dd1
mov ecx, dword [0x4d2930]
mov eax, dword [ecx + eax*4]
mov ebx, dword [eax]
cmp dword [ebp + 0xc], edi
jne 0x49970a
xor esi, esi
cmp dword [ebx + 0x1a0], esi
je 0x49976c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
push esi
push edi
push dword [ebp - 4]
push dword [ebp - 8]
push esi
push dword [ebx + 0x1a0]
call dword [sym.imp.USER32.dll_TrackPopupMenuEx]
jmp 0x499786
push dword [ebp + 0xc]
call fcn.00419b74
mov dword [ebp + 8], eax
cmp eax, 0xffffffff
je 0x49976c
mov ecx, dword [0x4d2944]
mov ecx, dword [ecx + eax*4]
mov eax, dword [ecx]
mov cl, byte [eax + 0x90]
cmp cl, 0xe
je 0x49976c
cmp cl, 0xf
je 0x49976c
cmp cl, 0x13
je 0x49976c
cmp cl, 0x10
je 0x49976c
xor esi, esi
cmp dword [eax + 0xc], esi
je 0x49976c
lea eax, [ebp - 8]
push eax
call dword [sym.imp.USER32.dll_GetCursorPos]
mov eax, dword [0x4d2944]
mov ecx, dword [ebp + 8]
push esi
push dword [ebx]
push dword [ebp - 4]
mov eax, dword [eax + ecx*4]
push dword [ebp - 8]
push esi
mov eax, dword [eax]
push dword [eax + 0xc]
jmp 0x499702
movzx ecx, word [ebp + 0x14]
movzx eax, word [ebp + 0x10]
shl ecx, 0x10
or ecx, eax
push ecx
push dword [ebp + 0xc]
push 0x7b
push edi
call dword [sym.imp.USER32.dll_DefDlgProcW]
pop edi
pop esi
pop ebx
leave
ret 0x10
Function at 0x4026f5
Capabilities:
Parse pe header

Disassembly:
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
test eax, eax
je 0x402734
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x402734
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x402734
mov eax, 0x10b
cmp word [ecx + 0x18], ax
jne 0x402734
cmp dword [ecx + 0x74], 0xe
jbe 0x402734
cmp dword [ecx + 0xe8], 0
setne al
ret
xor al, al
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x4010cc
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x436004]
jne 0x4010d6
repz ret
jmp fcn.004016e5

Function at 0x40570b
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x436004]
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.0040452e
and dword [ebp - 0x14], 0
cmp dword [0x438b38], 0
mov dword [ebp - 0x18], eax
jne 0x4057be
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov ebx, eax
test ebx, ebx
je 0x405866
mov edi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxW
push ebx
call edi
test eax, eax
je 0x405866
mov esi, dword [sym.imp.KERNEL32.dll_EncodePointer]
push eax
call esi
push str.GetActiveWindow
push ebx
mov dword [0x438b38], eax
call edi
push eax
call esi
push str.GetLastActivePopup
push ebx
mov dword [0x438b3c], eax
call edi
push eax
call esi
push str.GetUserObjectInformationW
push ebx
mov dword [0x438b40], eax
call edi
push eax
call esi
mov dword [0x438b48], eax
test eax, eax
je 0x4057be
push str.GetProcessWindowStation
push ebx
call edi
push eax
call esi
mov dword [0x438b44], eax
mov eax, dword [0x438b44]
mov ecx, dword [ebp - 0x18]
mov esi, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, ecx
je 0x405817
cmp dword [0x438b48], ecx
je 0x405817
push eax
call esi
push dword [0x438b48]
mov edi, eax
call esi
mov ebx, eax
test edi, edi
je 0x405817
test ebx, ebx
je 0x405817
call edi
test eax, eax
je 0x40580e
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call ebx
test eax, eax
je 0x40580e
test byte [ebp - 8], 1
jne 0x405817
or dword [ebp + 0x10], 0x200000
jmp 0x40584a
mov eax, dword [0x438b3c]
cmp eax, dword [ebp - 0x18]
je 0x40584a
push eax
call esi
test eax, eax
je 0x40584a
call eax
mov dword [ebp - 0x14], eax
test eax, eax
je 0x40584a
mov eax, dword [0x438b40]
cmp eax, dword [ebp - 0x18]
je 0x40584a
push eax
call esi
test eax, eax
je 0x40584a
push dword [ebp - 0x14]
call eax
mov dword [ebp - 0x14], eax
push dword [0x438b38]
call esi
test eax, eax
je 0x405866
push dword [ebp + 0x10]
push dword [ebp - 0x1c]
push dword [ebp - 0x20]
push dword [ebp - 0x14]
call eax
jmp 0x405868
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.004010cc
leave
ret
Function at 0x42b4b0
Capabilities:
Encode data using xor

Disassembly:
push esi
xor esi, esi
test ebx, ebx
jle 0x42b4c4
call fcn.0042b430
xor byte [esi + edi], al
inc esi
cmp esi, ebx
jl 0x42b4b7
pop esi
cmp ebx, 0x2d
jne 0x42b4de
mov dword [0x829b98], 0xa62e7790
mov dword [0x829b9c], 0xffffffff
ret

Function at 0x42b4e0
Capabilities:
Create pipe

Disassembly:
mov eax, dword [0x436db8]
sub esp, 0x14
push ebx
mov ebx, dword [0x829b8c]
push edi
mov edi, dword [0x82770c]
call fcn.0042b480
cmp dword [0x829b8c], 0x2f
jne 0x42b542
push 0
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
push 0
push 0
push 0
push 0
push 0
push 0
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateNamedPipeW]
lea eax, [esp + 8]
push eax
lea ecx, [esp + 0x14]
push ecx
mov dword [esp + 0x10], 0
mov dword [esp + 0x14], 0
call dword [sym.imp.KERNEL32.dll_FileTimeToLocalFileTime]
call fcn.0042b4b0
pop edi
pop ebx
add esp, 0x14
ret
Function at 0x430004
Capabilities:
Encode data using xor

Disassembly:
pushal
nop
nop
mov eax, section..text
nop
nop
nop
nop
push 4
nop
nop
pop edi
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
je 0x430072
nop
nop
nop
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
nop
nop
mov eax, ecx
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
pop eax
mov esi, 0x5de63659
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
loop 0x430060
nop
nop
nop
nop
mov eax, section..rdata
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
mov ebx, 0x42e1d0
nop
nop
nop
nop
mov ecx, ebx
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
mov eax, ecx
nop
nop
nop
nop
nop
nop
nop
nop
div edi
nop
nop
xchg ecx, eax
nop
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x57bd44e1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
nop
loop 0x4300c0
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219
Function at 0x10001530
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x100a108c
mov eax, dword fs:[0]
push eax
sub esp, 0x94
push esi
mov eax, dword [0x100cc020]
xor eax, esp
push eax
lea eax, [esp + 0x9c]
mov dword fs:[0], eax
mov esi, dword [esp + 0xb0]
push 1
push 3
lea ecx, [esp + 0x14]
mov dword [esp + 0x10], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::constructor_int_]
mov eax, dword [esp + 0xb4]
push 0x100aa7dc
push ecx
push eax
push ecx
push 0x100aa7e0
push ecx
mov ecx, dword [esp + 0xc4]
mov dword [esp + 0xbc], 1
mov edx, dword [ecx + 4]
mov eax, dword [edx + 8]
push eax
lea ecx, [esp + 0x30]
push ecx
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100040c0
add esp, 0xc
push eax
call fcn.100040c0
add esp, 8
push esi
lea ecx, [esp + 0x10]
call dword [sym.imp.MSVCP90.dll_public:_class_std::basic_string_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t_____thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::str_void_]
lea ecx, [esp + 0xc]
mov dword [esp + 8], 1
mov byte [esp + 0xa4], 0
call dword [sym.imp.MSVCP90.dll_public:_void___thiscall_std::basic_stringstream_wchar_t__struct_std::char_traits_wchar_t___class_std::allocator_wchar_t__::vbase_dtor_void_]
mov eax, esi
mov ecx, dword [esp + 0x9c]
mov dword fs:[0], ecx
pop ecx
pop esi
add esp, 0xa0
ret 0xc