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

Disassembly:
push esi
mov esi, dword [esp + 0xc]
xor eax, eax
test esi, esi
jle 0x40ddf5
mov ecx, dword [esp + 8]
push ebx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xffff
shr edx, 8
xor edx, ebx
xor ebx, ebx
mov bh, al
mov ax, word [edx*2 + 0x44e354]
xor ax, bx
inc ecx
dec esi
jne 0x40ddd0
pop ebx
pop esi
ret

Function at 0x40fda0
Capabilities:
Receive data
Receive data on socket

Disassembly:
sub esp, 0x5f4
push esi
mov esi, dword [esp + 0x5fc]
lea eax, [esp + 8]
push edi
lea ecx, [esp + 0x10]
push eax
mov eax, dword [esi + 0x1090]
push ecx
push 0
lea edx, [esp + 0x2c]
push 0x5dc
push edx
push eax
mov dword [esp + 0x24], 0x10
mov dword [esp + 0x20], 0
call sub.WS2_32.dll_recvfrom
mov edi, eax
cmp edi, 0x12
jg 0x40fdf4
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x5f4
ret
mov eax, dword [esi + 0x1094]
test eax, eax
jne 0x40fe0a
pop edi
or eax, 0xffffffff
pop esi
add esp, 0x5f4
ret
lea ecx, [esp + 0x20]
push edi
push ecx
call fcn.00401ee0
mov edx, dword [esp + 0x28]
add esp, 8
and edx, 0xff
lea eax, [edx - 2]
cmp eax, 0xb
ja case.0x40fe36.6
xor ecx, ecx
mov cl, byte [eax + 0x40ffa0]
jmp dword [ecx*4 + 0x40ff8c]
lea edx, [esp + 8]
lea eax, [esp + 0x20]
push edx
push edi
push eax
push esi
call fcn.0040f4c0
add esp, 0x10
test al, al
je case.0x40fe36.6
mov eax, dword [esp + 8]
mov edi, 1
cmp eax, edi
jne 0x40fea2
push 0
mov dword [esi + 0x10b4], edi
call fcn.0041f59e
add eax, 0x14
push 0
mov dword [esi + 0x10ac], eax
call fcn.0041f59e
add eax, 0x46
push 7
push esi
mov dword [esi + 0x10b0], eax
call fcn.0040ee70
add esp, 0x10
mov eax, edi
pop edi
pop esi
add esp, 0x5f4
ret
push 5
push esi
call fcn.0040ee70
add esp, 8
mov eax, edi
pop edi
pop esi
add esp, 0x5f4
ret
lea ecx, [esp + 0x20]
push edi
push ecx
push esi
call fcn.0040f860
add esp, 0xc
test al, al
je case.0x40fe36.6
push 0
call fcn.0041f59e
add eax, 0x14
push 0
mov dword [esi + 0x10ac], eax
call fcn.0041f59e
add esp, 8
add eax, 0x46
mov dword [esi + 0x10b0], eax
mov dword [esi + 0x10a8], 0
pop edi
xor eax, eax
pop esi
add esp, 0x5f4
ret
lea edx, [esp + 0x20]
push edi
push edx
push esi
call fcn.0040f720
add esp, 0xc
test al, al
je case.0x40fe36.6
push 9
push esi
call fcn.0040ee70
add esp, 8
mov eax, 1
pop edi
pop esi
add esp, 0x5f4
ret
lea eax, [esp + 0x20]
push edi
push eax
push esi
call fcn.0040fa00
add esp, 0xc
test al, al
je case.0x40fe36.6
push 2
push esi
call fcn.0040ee70
push esi
call fcn.0040f230
mov edi, 1
push 0
mov dword [esi + 0x10a8], edi
call fcn.0041f59e
add eax, 2
push 0
mov dword [esi + 0x10ac], eax
call fcn.0041f59e
add esp, 0x14
add eax, 0xc
mov dword [esi + 0x10b0], eax
mov eax, edi
pop edi
pop esi
add esp, 0x5f4
ret
Function at 0x414570
Capabilities:
Send data
Send data on socket

Disassembly:
mov edx, dword [esp + 8]
push edi
mov edi, edx
or ecx, 0xffffffff
xor eax, eax
push 0
repne scasb al, byte es:[edi]
mov eax, dword [esp + 0xc]
not ecx
dec ecx
push ecx
push edx
push eax
call dword [sym.imp.WS2_32.dll_send]
pop edi
ret

Function at 0x4145a0
Capabilities:
Resolve dns

Disassembly:
push str.www.baidu.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
jne 0x4145b0
ret
movsx ecx, word [eax + 8]
sub ecx, 2
jne 0x4145f4
mov eax, dword [eax + 0xc]
push esi
push edi
mov ecx, dword [eax]
mov eax, dword [ecx]
push eax
call dword [sym.imp.WS2_32.dll_inet_ntoa]
mov edx, dword [esp + 0xc]
mov edi, eax
or ecx, 0xffffffff
xor eax, eax
add edx, 0x90
repne scasb al, byte es:[edi]
not ecx
sub edi, ecx
mov eax, ecx
mov esi, edi
mov edi, edx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, eax
and ecx, 3
rep movsb byte es:[edi], byte [esi]
pop edi
pop esi
mov eax, 1
ret

Function at 0x414600
Capabilities:
Get socket status
Receive data
Receive data on socket

Disassembly:
sub esp, 0x110
mov eax, dword [esp + 0x11c]
push ebx
push ebp
push esi
xor esi, esi
push edi
cmp eax, 0x13
mov dword [esp + 0x10], esi
push esi
jne 0x41462c
call fcn.0041f59e
mov ebp, eax
add esp, 4
add ebp, 0x3c
jmp 0x414639
call fcn.0041f59e
mov ebp, eax
add esp, 4
add ebp, 0xa
mov edi, dword [esp + 0x130]
mov ebx, dword [esp + 0x128]
mov byte [edi], 0
mov eax, 1
lea ecx, [esp + 0x1c]
mov dword [esp + 0x1c], eax
mov dword [esp + 0x14], eax
lea eax, [esp + 0x14]
mov dword [esp + 0x20], ebx
push eax
push 0
push 0
lea eax, [ebx + 1]
push ecx
push eax
mov dword [esp + 0x2c], 0
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 1
jne 0x4146e2
mov edx, 0x1869f
push 0
sub edx, esi
lea eax, [esi + edi]
push edx
push eax
push ebx
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
je 0x4146fb
add esi, eax
cmp esi, 0x18696
mov byte [esi + edi], 0
jg 0x4146ff
push str.__html__r_n
push edi
call fcn.0041f7b0
add esp, 8
test eax, eax
jne 0x4146fb
push str.:_gzip_r_n
push edi
call fcn.0041f7b0
add esp, 8
test eax, eax
jne 0x4146fb
push eax
call fcn.0041f59e
mov ebp, eax
mov eax, dword [esp + 0x14]
add esp, 4
add ebp, 2
inc eax
mov dword [esp + 0x10], eax
push 0
call fcn.0041f59e
add esp, 4
cmp ebp, eax
jle 0x4146fb
cmp dword [esp + 0x10], 0x64
jle 0x41464a
mov byte [esi + edi], 0
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x110
ret
Function at 0x4270dd
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x451978
cmp edx, dword [eax]
je 0x4270ff
add eax, 8
inc ecx
cmp eax, 0x451a08
jl 0x4270f0
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x451978]
jne 0x42722d
mov eax, dword [0x47a660]
cmp eax, 1
je 0x427207
test eax, eax
jne 0x427130
cmp dword [0x450ff4], 1
je 0x427207
cmp edx, 0xfc
je 0x42722d
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x427167
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.00427230
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00427320
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x4271aa
lea eax, [ebp - 0x1a4]
push eax
call fcn.00427320
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x443838
push edi
call fcn.0041ed70
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.00427230
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.00427240
lea eax, [ebp - 0xa0]
push 0x443818
push eax
call fcn.00427240
push dword [esi + 0x45197c]
lea eax, [ebp - 0xa0]
push eax
call fcn.00427240
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00429c9f
add esp, 0x2c
pop edi
jmp 0x42722d
lea eax, [ebp + 8]
lea esi, [esi + 0x45197c]
push 0
push eax
push dword [esi]
call fcn.00427320
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x42e450
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push ebx
push esi
push edi
mov esi, dword [ebp + 0x10]
push 0xf00021
mov edx, dword [esi + 4]
mov ecx, dword [esi]
mov eax, dword [esi + 0xc]
sub eax, edx
push eax
mov eax, dword [esi + 8]
sub eax, ecx
push eax
push edx
push ecx
mov ecx, dword [ebp + 0xc]
push ecx
call dword [sym.imp.GDI32.dll_PatBlt]
mov edi, dword [ebp + 8]
push edi
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
mov ebx, eax
lea eax, [eax + 5]
add eax, 3
and eax, 0xfffffffc
call fcn.0041fa90
mov dword [ebp - 4], esp
cmp dword [ebp - 4], 0
je 0x42e51b
add ebx, 2
mov eax, dword [ebp - 4]
push ebx
push eax
push edi
call dword [sym.imp.USER32.dll_GetWindowTextA]
test eax, eax
je 0x42e51b
mov bx, 0x140
mov edi, dword [ebp + 0x14]
mov eax, edi
and al, 0xf
cmp al, 0xc
je 0x42e4ce
mov ebx, edi
and bx, 0xf
or bx, 0x150
test edi, 0x80
je 0x42e4d9
or bh, 8
and edi, 0x8000000
je 0x42e4f4
mov eax, dword [0x47be1c]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
mov dword [ebp - 8], eax
mov ecx, dword [ebp - 4]
mov edx, dword [ebp + 0xc]
movzx eax, bx
push eax
push esi
push 0xffffffffffffffff
push ecx
push edx
call dword [sym.imp.USER32.dll_DrawTextA]
test edi, edi
je 0x42e51b
mov eax, dword [ebp - 8]
mov ecx, dword [ebp + 0xc]
push eax
push ecx
call dword [sym.imp.GDI32.dll_SetTextColor]
lea esp, [ebp - 0x14]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x42e8f0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
mov eax, dword [esp + 8]
sub esp, 4
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push ebp
push 2
push eax
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov edi, eax
test edi, edi
jne 0x42e91b
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push edi
push esi
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ebx, eax
push edi
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov esi, eax
test esi, esi
jne 0x42e93f
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
push ebx
push 0x40
call dword [sym.imp.KERNEL32.dll_GlobalAlloc]
mov ebp, eax
test ebp, ebp
jne 0x42e95a
xor eax, eax
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
mov edi, ebp
mov ecx, ebx
shr ecx, 2
rep movsd dword es:[edi], dword [esi]
mov ecx, ebx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov eax, dword [esp + 0x20]
xor ecx, ecx
mov cl, ah
mov edx, eax
mov dword [esp + 0x10], 0
shl ecx, 8
shr edx, 0x10
mov byte [esp + 0x10], dl
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x28]
or ecx, edx
mov edx, eax
shr edx, 0x10
mov dword [ebp + 0x28], ecx
mov dword [esp + 0x10], 0
xor ecx, ecx
mov byte [esp + 0x10], dl
mov cl, ah
xor edx, edx
shl ecx, 8
mov dl, al
shl edx, 0x10
or ecx, dword [esp + 0x10]
or ecx, edx
mov eax, dword [esp + 0x24]
mov edx, eax
mov dword [ebp + 0x44], ecx
shr edx, 0x10
xor ecx, ecx
mov dword [esp + 0x10], 0
mov cl, ah
mov byte [esp + 0x10], dl
shl ecx, 8
xor edx, edx
or ecx, dword [esp + 0x10]
mov dl, al
shl edx, 0x10
mov eax, dword [esp + 0x2c]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x48], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x30]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x64], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
mov eax, dword [esp + 0x34]
or ecx, edx
xor edx, edx
mov dl, al
mov dword [ebp + 0x54], ecx
shl edx, 0x10
xor ecx, ecx
mov cl, ah
shl ecx, 8
push 0
shr eax, 0x10
or ecx, edx
xor edx, edx
mov dl, al
or ecx, edx
mov dword [ebp + 0x50], ecx
call dword [sym.imp.USER32.dll_GetDC]
mov edi, eax
push 0
push ebp
lea ecx, [ebp + 0x68]
push ecx
push 4
push ebp
push edi
call dword [sym.imp.GDI32.dll_CreateDIBitmap]
mov esi, eax
push edi
push 0
call dword [sym.imp.USER32.dll_ReleaseDC]
push ebp
call dword [sym.imp.KERNEL32.dll_GlobalFree]
mov eax, esi
pop ebp
pop edi
pop esi
pop ebx
add esp, 4
ret 0x20
Function at 0x430c6a
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
mov ebx, dword [esp + 8]
push esi
mov eax, ebx
push edi
mov edi, ecx
shr eax, 0x10
test ax, ax
mov dword [edi + 0x40], ebx
jne 0x430c8c
cmp dword [edi + 0x3c], 0
jne 0x430c8c
movzx eax, bx
mov dword [edi + 0x3c], eax
call fcn.00439d0e
mov esi, dword [eax + 0xc]
push 5
push ebx
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
push esi
mov ecx, edi
push dword [esp + 0x18]
push eax
call fcn.00430cb9
pop edi
pop esi
pop ebx
ret 8

Function at 0x432947
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x43297f
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextLengthA]
lea ecx, [eax + 1]
push ecx
mov ecx, dword [esp + 0xc]
push eax
call fcn.004319c7
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.0043199f
jmp 0x43298b
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x433ec9
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebx
push esi
push edi
xor edi, edi
cmp dword [esp + 0x10], edi
mov ebx, ecx
je 0x433f0b
call fcn.00439d0e
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x433f0b
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x433f02
xor eax, eax
jmp 0x433f13
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.00433f19
pop edi
pop esi
pop ebx
ret 4

Function at 0x438267
Capabilities:
Create http request

Disassembly:
mov eax, 0x43de68
call fcn.0041fc38
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov eax, dword [ebp + 0xc]
and dword [ebp - 4], 0
and dword [esi + 0x10], 0
and dword [esi + 0xc], 0
mov dword [esi + 4], eax
mov eax, dword [ebp + 8]
test eax, eax
mov dword [esi], vtable.CInternetSession.0
jne 0x43829f
call fcn.00439d0e
mov eax, dword [eax + 0x10]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push eax
call dword [sym.imp.WININET.dll_InternetOpenA]
test eax, eax
mov dword [esi + 8], eax
jne 0x4382c4
push eax
push dword [esi + 4]
call fcn.00438fa8
jmp 0x4382d0
push esi
push eax
mov ecx, 0x47a1b8
call fcn.004382e1
mov ecx, dword [ebp - 0xc]
mov eax, esi
pop esi
mov dword fs:[0], ecx
leave
ret 0x18
Function at 0x43845d
Capabilities:
Access peb ldr_data
Get kernel32 base address

Disassembly:
mov eax, 0x43dea3
call fcn.0041fc38
push ecx
push ebx
push esi
mov esi, ecx
push edi
mov dword [ebp - 0x10], esi
call fcn.0043514c
mov eax, dword [0x450334]
lea ebx, [esi + 0x24]
xor edi, edi
mov dword [ebp - 4], edi
mov dword [ebx], eax
mov eax, dword [ebp + 0x10]
mov dword [esi], vtable.CInternetFile.0
mov ecx, 0x47a1b8
mov byte [ebp - 4], 1
push dword [eax + 0xc]
push dword [ebp + 8]
call fcn.004382e1
push dword [ebp + 0xc]
lea ecx, [esi + 0xc]
call fcn.004317f7
mov ecx, dword [ebp + 0x10]
mov eax, dword [ecx + 8]
mov dword [esi + 0x1c], eax
lea eax, [ebp + 0x10]
push eax
call fcn.0041835b
push eax
mov ecx, ebx
mov byte [ebp - 4], 2
call fcn.004317a7
lea ecx, [ebp + 0x10]
mov byte [ebp - 4], 1
call fcn.0043166e
mov eax, dword [ebp + 8]
mov ecx, dword [ebp - 0xc]
mov dword [esi + 0x14], eax
mov eax, dword [ebp + 0x14]
mov dword [esi + 0x18], eax
mov dword [esi + 0x3c], edi
mov dword [esi + 0x30], edi
mov dword [esi + 0x34], edi
mov dword [esi + 0x38], edi
mov dword [esi + 0x28], edi
mov dword [esi + 0x2c], edi
mov dword [esi + 0x40], edi
mov eax, esi
pop edi
pop esi
pop ebx
mov dword fs:[0], ecx
leave
ret 0x10
Function at 0x43a01a
Capabilities:
Encode data using xor

Disassembly:
and dword [esi + 0x4c], 0
jp 0x439f84
push edx
push ecx
ret
div byte [edx - 0x6f97f18b]
call 0xbcce2190
sti
add dword [esi - 0x18], edx
je 0x439fb4
mov bh, byte [ebx + edi*8 + 0x74e85601]
adc cl, byte [ebx - 0x7c2fd7ba]
jge 0x439f91
mov eax, dword [esi + 0x28]
rol byte [ebx - 0xbd1783], 1
adc eax, 0x4689a3d4
invalid
invalid
inc esi
inc edx
call dword [0x4689a3d4]
invalid
invalid
inc esi
mov dword [0x66834689], eax
sub byte [eax], al
and dword [esi + 0x28], 0
jecxz 0x439f7c
adc al, 0
je 0x439f9a
add byte [esi + 0x14], ah
add byte [ebp + 0x1b], dh
cmp dword [0xb7bc45c7], esi
inc eax
or byte [eax], dl
push esi
push dword [edi]
cmp dword [esi + 0x28], 0
jne 0x439fe0
rol dl, 8
pop ebp
sti
invalid
mov dword [ebp - 0x44], 0x335714b7
dec dword [ecx + 0x48890c7e]
add byte [ebx - 0x74f7ba3e], cl
inc ecx
sub esp, 0x4539fe08
adc al, 0x7c
dec ax
push ecx
push 4
call eax
mov ecx, dword [eax]
or byte [edi - 0x18], dl
adc eax, 0xce80044
call edi
pop edi
mov ecx, esi
pop esi
mov eax, 0x4487b0
call 0xf1cef6e5
call 0x18cf9f42
xor ebx, ebx
cmp edi, edi
xor eax, 0x89f065c4
inc ebp
aam 0xe8
xor dword [ebx], ebp
adc al, 0
jp 0x43a02c
adc al, 0x74
adc byte [edx + 0x77393307], cl
sbb al, 0x75
call 0xbcce2190
cmp byte [eax + 0x14], bl
jne 0x43a062
call 0xbcce2190
cmp edi, dword [eax + 4]
jne 0x43a05c
call 0x18a2133f
call 0x5349d3aa
push ebx
call 0xd13b75bf
and dword [edi + 0x1c], ebx
cmp dword [edi + 0x20], esi
jne 0x43a06d
mov dword [edi + 0x20], ebx
mov ecx, dword [esi + 0x44]
cmp ecx, ebx
je 0x43a07c
ret 8
or al, 0x89
dec eax
xor ebx, ebx
inc ebx
add byte [ebx + 0x18b06c2], cl
push ebx
in al, dx
or dh, bh
jl 0x43a0f4
dec eax
push ecx
test byte [esi + 0x38], bl
je 0x43a0de
call 0xbcce21b6
mov edi, dword [eax + 0x3c]
adc eax, 0x833da418
invalid
movsb byte es:[edi], byte [esi]
invalid
invalid
jg 0x43a0c0
add byte [edi + esi + 0x6a], dh
xor byte [ebp + 0x76ffd045], cl
add al, 0xe8
insb byte es:[edi], dx
dec byte [ebp + 0x1c46b483]
xchg byte [esi - 0x27ba09a4], ch
pop ebx
add byte [edi], cl
adc eax, 0xe846a180
adc eax, 0xa5200520
inc esp
add byte [edi + 0x1c], dh
mov dword [ebp - 0x30], 0x4ee8fc80
mov dword [ebp - 0x2c], ebx
and al, 0x10
call eax
jne 0x43a0e2
test byte [ebp + 0x46], 0x1c
Function at 0x5709d0
Capabilities:
Connect socket

Disassembly:
push ebp
mov ebp, esp
push ecx
push edx
push eax
call sub.ws2_32.dll_connect
mov esp, ebp
pop ebp
ret

Function at 0x431000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
mov ebx, 0x40915c
nop
mov ecx, 0x390641db
nop
nop
nop
nop
test eax, eax
nop
nop
nop
nop
nop
je 0x43104e
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
jne 0x431024
nop
mov eax, section..data
nop
mov ebx, 0x42f3f8
nop
mov ecx, 0x628b018e
nop
nop
nop
nop
test eax, eax
nop
nop
je 0x431084
nop
nop
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
jne 0x43106c
nop
nop
nop
nop
nop
popal
jmp 0x401219

Function at 0x15000
Capabilities:
Create device object
Print debug messages

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
sub esp, 0x10
push esi
push edi
push eax
push str.22:26:14
push str.Oct_26_2015
push str._ProcessProtected__EasySys_Sample_Driver_r_n_ProcessProtected__Compiled__s__s_r_n_ProcessProtected__In_DriverEntry_:__wZ_r_n
call sub.ntoskrnl.exe_DbgPrint
mov esi, dword [ebp + 8]
mov edi, dword [sym.imp.ntoskrnl.exe_RtlInitUnicodeString]
add esp, 0x10
push str.DevicedevProcessProtected
lea ecx, [ebp - 8]
push ecx
mov dword [esi + 0x38], 0x14060
mov dword [esi + 0x40], 0x14090
mov dword [esi + 0x70], 0x140c0
mov dword [esi + 0x34], 0x14000
call edi
lea edx, [ebp + 0xc]
push edx
push 0
push 0
push 0x22
lea eax, [ebp - 8]
push eax
push 0
push esi
call dword [sym.imp.ntoskrnl.exe_IoCreateDevice]
mov esi, eax
test esi, esi
jge 0x15088
push esi
push str._ProcessProtected__Error__IoCreateDevice__0x_x_r_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 8
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push 0x10
push 1
call dword [sym.imp.ntoskrnl.exe_IoIsWdmVersionAvailable]
test al, al
je 0x150a1
push str.DosDevicesGlobalProcessProtected
lea ecx, [ebp - 0x10]
push ecx
jmp 0x150aa
push str.DosDevicesProcessProtected
lea edx, [ebp - 0x10]
push edx
call edi
lea eax, [ebp - 8]
push eax
lea ecx, [ebp - 0x10]
push ecx
call dword [sym.imp.ntoskrnl.exe_IoCreateSymbolicLink]
mov esi, eax
test esi, esi
jge 0x150e2
push esi
push str._ProcessProtected__Error__IoCreateSymbolicLink__0x_x_r_n
call sub.ntoskrnl.exe_DbgPrint
mov edx, dword [ebp + 0xc]
add esp, 8
push edx
call dword [sym.imp.ntoskrnl.exe_IoDeleteDevice]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret 8
push str._ProcessProtected__DriverEntry_Success_r_n
call sub.ntoskrnl.exe_DbgPrint
add esp, 4
call fcn.000110b0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 8
Function at 0x4c5244
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x4c5257
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4c5253
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x4c5284
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4c52c3
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4c52b9
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4c52c5
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4c52a9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret

Function at 0x4e9244
Capabilities:
Parse pe header

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov ecx, dword [ebp + 8]
cmp word [ecx], 0x5a4d
je 0x4e9257
xor eax, eax
pop ebp
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x4e9253
xor ecx, ecx
cmp word [eax + 0x18], 0x10b
sete cl
mov eax, ecx
pop ebp
ret

Function at 0x4e9284
Capabilities:
Enumerate pe sections

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0x3c]
add ecx, eax
movzx eax, word [ecx + 0x14]
push ebx
push esi
movzx esi, word [ecx + 6]
xor edx, edx
test esi, esi
push edi
lea eax, [eax + ecx + 0x18]
jbe 0x4e92c3
mov edi, dword [ebp + 0xc]
mov ecx, dword [eax + 0xc]
cmp edi, ecx
jb 0x4e92b9
mov ebx, dword [eax + 8]
add ebx, ecx
cmp edi, ebx
jb 0x4e92c5
add edx, 1
add eax, 0x28
cmp edx, esi
jb 0x4e92a9
xor eax, eax
pop edi
pop esi
pop ebx
pop ebp
ret
Function at 0x401310
Capabilities:
Create shortcut via ishelllink

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, edx
push edi
mov edi, ecx
test esi, esi
je 0x40135a
lea eax, [ebp - 4]
push eax
push 0x4122b0
push 1
push 0
push 0x4122d0
call dword [sym.imp.ole32.dll_CoCreateInstance]
test eax, eax
js 0x40135a
mov eax, dword [ebp - 4]
lea edx, [ebp - 8]
push edx
push 0x4122c0
push eax
mov ecx, dword [eax]
call dword [ecx]
test eax, eax
jns 0x401362
mov eax, dword [ebp - 4]
push eax
mov ecx, dword [eax]
call dword [ecx + 8]
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
test edi, edi
jne 0x40137e
call fcn.00408660
mov ecx, dword [eax]
call fcn.00401410
mov ecx, dword [ebp - 4]
push eax
push ecx
mov edx, dword [ecx]
call dword [edx + 0x50]
jmp 0x401388
mov eax, dword [ebp - 4]
push edi
push eax
mov ecx, dword [eax]
call dword [ecx + 0x50]
mov eax, dword [ebp - 4]
push 0x416e8c
push eax
mov ecx, dword [eax]
call dword [ecx + 0x1c]
mov eax, dword [ebp - 4]
push 1
push eax
mov ecx, dword [eax]
call dword [ecx + 0x3c]
add esi, 0xfffffffe
lea edx, [esi + 2]
nop word [eax + eax]
mov ax, word [esi + 2]
lea esi, [esi + 2]
test ax, ax
jne 0x4013b0
mov eax, dword [0x416d58]
mov dword [esi], eax
mov eax, dword [0x416d5c]
mov dword [esi + 4], eax
mov eax, dword [0x416d60]
mov dword [esi + 8], eax
mov eax, dword [0x416d64]
mov dword [esi + 0xc], eax
mov eax, dword [0x416d68]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 8]
push 1
push edx
push eax
mov ecx, dword [eax]
call dword [ecx + 0x18]
mov ecx, dword [ebp - 8]
mov esi, eax
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
mov ecx, dword [ebp - 4]
push ecx
mov edx, dword [ecx]
call dword [edx + 8]
xor eax, eax
test esi, esi
pop edi
setns al
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
mov ebx, 0x408f6c
mov ecx, 0xe313d13
nop
nop
test eax, eax
nop
nop
nop
nop
nop
nop
nop
je 0x43004e
xor dword [eax], ecx
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
nop
nop
nop
nop
nop
inc eax
inc eax
nop
nop
nop
nop
nop
nop
nop
inc eax
nop
nop
nop
cmp eax, ebx
nop
nop
nop
nop
nop
nop
nop
nop
jne 0x430024
nop
mov eax, section..data
nop
mov ebx, 0x42e3d0
nop
mov ecx, 0x73794e84
test eax, eax
nop
nop
nop
nop
nop
nop
nop
nop
je 0x430084
nop
nop
nop
xor dword [eax], ecx
nop
nop
nop
nop
add eax, 4
nop
nop
nop
nop
cmp eax, ebx
nop
nop
jne 0x43006c
nop
nop
popal
nop
nop
nop
nop
nop
jmp 0x401219