joyce8/EMBER2024-capa huggingface dataset:
Function at 0x48e595
Capabilities:
Capture webcam image

Disassembly:
sub esp, 0x44
push ebx
push ebp
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x3c]
test eax, eax
je 0x48e6ad
push eax
call dword [sym.imp.USER32.dll_IsWindow]
test eax, eax
je 0x48e6ad
mov eax, dword [esi + 0x3c]
push eax
call fcn.004c9849
mov esi, eax
test esi, esi
je 0x48e6ad
mov ebx, dword [esp + 0x58]
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA]
push 0
push ebx
push 0x419
push ecx
call ebp
mov edi, eax
test edi, edi
jl 0x48e6ad
mov ecx, esi
call fcn.0048e520
cmp edi, eax
jge 0x48e6ad
mov eax, dword [esi + 0xc4]
mov edx, dword [esi + 0xc0]
mov dword [esp + 0x2c], eax
mov eax, dword [esp + 0x5c]
xor ecx, ecx
mov dword [esp + 0x28], edx
cmp eax, ecx
mov dword [esp + 0x30], eax
mov dword [esp + 0x34], ecx
mov dword [esp + 0x4c], ecx
mov dword [esp + 0x50], ecx
mov dword [esp + 0x38], edi
jne 0x48e633
mov dword [esp + 0x34], 1
jmp 0x48e68e
mov edx, dword [esi + 0x1c]
lea ecx, [esp + 0x18]
push ecx
push ebx
push 0x433
push edx
call ebp
test eax, eax
je 0x48e6ad
mov eax, dword [esp + 0x60]
mov ecx, dword [esp + 0x18]
mov edx, dword [esp + 0x24]
mov dword [esp + 0x10], ecx
mov dword [eax], 0
mov ecx, dword [esi + 0x1c]
lea eax, [esp + 0x10]
add edx, 2
push eax
push ecx
mov dword [esp + 0x1c], edx
call dword [sym.imp.USER32.dll_ClientToScreen]
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 0x14]
mov dword [esp + 0x34], 3
mov dword [esp + 0x3c], edx
mov dword [esp + 0x40], eax
xor ecx, ecx
push ecx
lea ecx, [esp + 0x2c]
push ecx
push 0x7d8
call fcn.0048dad0
pop edi
pop esi
pop ebp
mov eax, 1
pop ebx
add esp, 0x44
ret 0xc
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x44
ret 0xc

Function at 0x497370
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x60b408]
xor edx, edx
cmp eax, edx
jne 0x497396
xor eax, eax
mov byte [eax + 0x60b308], al
inc eax
cmp eax, 0x100
jl 0x49737e
mov dword [0x60b408], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x60b308
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x497427
xor esi, esi
push ebp
mov byte [esp + 0x20], dl
xor ecx, ecx
mov edi, dword [esp + 0x20]
mov ebp, dword [esp + 0x18]
mov al, byte [esi + ebx]
and edi, 0xff
xor edx, edx
mov dl, byte [edi + ebp]
mov ebp, eax
and ebp, 0xff
add ecx, edx
add ecx, ebp
and ecx, 0x800000ff
jns 0x4973fa
dec ecx
or ecx, 0xffffff00
inc ecx
mov byte [esp + 0x10], cl
mov ecx, dword [esp + 0x10]
and ecx, 0xff
mov dl, byte [ecx + ebx]
mov byte [esi + ebx], dl
mov byte [ecx + ebx], al
lea eax, [edi + 1]
cdq
idiv dword [esp + 0x1c]
inc esi
cmp esi, 0x100
mov byte [esp + 0x20], dl
jl 0x4973c8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x4974a0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [ebp + 0x10]
push ebx
push esi
push edi
mov cl, byte [eax + 0x100]
mov dl, byte [eax + 0x101]
mov dword [ebp - 8], eax
mov byte [ebp - 1], cl
mov byte [ebp - 2], dl
xor ebx, ebx
mov bl, byte [ebp - 1]
xor edx, edx
mov dl, byte [ebp - 2]
mov esi, dword [ebp - 8]
mov edi, dword [ebp + 8]
xor eax, eax
mov ecx, dword [ebp + 0xc]
test ecx, ecx
jle 0x4974f3
inc bl
mov al, byte [esi + ebx]
add dl, al
xchg byte [esi + edx], al
mov byte [esi + ebx], al
add al, byte [esi + edx]
mov al, byte [esi + eax]
xor byte [edi], al
inc edi
dec ecx
jne 0x4974da
mov byte [ebp - 1], bl
mov byte [ebp - 2], dl
mov eax, dword [ebp + 0x10]
mov cl, byte [ebp - 1]
mov dl, byte [ebp - 2]
pop edi
pop esi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x49de70
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4d6bbe
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
mov eax, dword [esp + 0x18]
push esi
push edi
mov edi, ecx
mov ecx, dword [esp + 0x1c]
push eax
push ecx
mov ecx, edi
mov dword [esp + 0x10], edi
call fcn.0049e790
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x4f606c
call fcn.004c7b60
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x49df03
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004c7b60
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x49defc
push 0
mov ecx, eax
call fcn.00494fa0
mov dword [esi + 0xc], eax
jmp 0x49df05
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x49df05
xor esi, esi
mov ecx, dword [esp + 0xc]
mov dword [edi + 0x30], esi
mov dword [edi + 0x34], 0
mov eax, edi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x10
ret 8

Function at 0x4ca1ed
Capabilities:
Get graphical window text

Disassembly:
push esi
mov esi, ecx
mov ecx, dword [esi + 0x38]
test ecx, ecx
jne 0x4ca225
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.004c827a
push eax
push dword [esi + 0x1c]
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov ecx, dword [esp + 8]
push 0xffffffffffffffff
call fcn.004c8252
jmp 0x4ca231
mov eax, dword [ecx]
push dword [esp + 8]
call dword [eax + 0x88]
pop esi
ret 4

Function at 0x4cb8e4
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 0x4cb926
call fcn.004d1392
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.KERNEL32.dll_FindResourceA]
cmp eax, edi
je 0x4cb926
push eax
push esi
call dword [sym.imp.KERNEL32.dll_LoadResource]
cmp eax, edi
jne 0x4cb91d
xor eax, eax
jmp 0x4cb92e
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004cb934
pop edi
pop esi
pop ebx
ret 4
Function at 0x4d18c2
Capabilities:
Get thread local storage value

Disassembly:
push ebx
push esi
mov esi, ecx
lea ebx, [esi + 0x1c]
push ebx
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
cmp dword [esp + 0x10], 0
jne 0x4d18f0
push dword [esi]
call dword [sym.imp.KERNEL32.dll_TlsGetValue]
test eax, eax
je 0x4d190e
push dword [esp + 0xc]
mov ecx, esi
push eax
call fcn.004d1828
jmp 0x4d190e
mov eax, dword [esi + 0x14]
test eax, eax
je 0x4d190e
push edi
push dword [esp + 0x10]
mov edi, dword [eax + 4]
mov ecx, esi
push eax
call fcn.004d1828
test edi, edi
mov eax, edi
jne 0x4d18f8
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
pop esi
pop ebx
ret 8
Function at 0x406234
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x50
pushal
call 0x406243
pop dword [ebp - 0x40]
mov eax, 0x406243
sub dword [ebp - 0x40], eax
mov dword [ebp - 0x50], 0x48229f5e
sub dword [ebp - 0x50], 0xf9d05a13
mov dword [ebp - 0x4c], 0x45dede0d
sub dword [ebp - 0x4c], 0x13ab91c8
mov dword [ebp - 0x48], 0x96cadb76
add dword [ebp - 0x48], 0xb58168b8
mov dword [ebp - 0x44], 0x9a99a65a
sub dword [ebp - 0x44], 0x9a99a65a
lea eax, [ebp - 0x50]
push eax
mov eax, 0x1f544321
sub eax, 0x1f13c21d
add eax, dword [ebp - 0x40]
call dword [eax]
mov dword [ebp - 0x50], 0x25dd6ac4
add dword [ebp - 0x50], 0x4e94fe92
mov dword [ebp - 0x4c], 0x32114c06
add dword [ebp - 0x4c], 0xf5b156f
mov dword [ebp - 0x48], 0xb985072
sub dword [ebp - 0x48], 0xa828e406
mov dword [ebp - 0x44], 0x1de4c157
sub dword [ebp - 0x44], 0x1de4c157
lea ebx, [ebp - 0x50]
push ebx
push eax
mov eax, 0x92cadb2f
sub eax, 0x928a5a2f
add eax, dword [ebp - 0x40]
call dword [eax]
push 0x40
push 0x1000
push 0x3691f
push 0
call eax
mov ecx, 0x4630
mov ebx, eax
mov edx, 0x7b2fe132
sub edx, 0x7ae8fd32
add edx, dword [ebp - 0x40]
mov edi, 0x78cf02c
sub edi, 0x51bd46a0
xor dword [ebp - 0x28], esi
mov esi, dword [edx]
xor esi, edi
sub dword [ebp - 8], 0x19f68565
mov dword [ebx], esi
xor dword [ebp - 0x2c], 0xe7954790
add ebx, 0xf2ebeb99
add ebx, 0xd14146b
add edx, 0xda90f2a2
add edx, 0x256f0d62
loop 0x40635a
add eax, 0xd11128e3
add eax, 0x2eefe2b0
mov ebx, eax
add eax, 5
mov ecx, 0x400000
add ecx, dword [ebp - 0x40]
call ebx
leave
ret

Function at 0x40669d
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x427dcc], 0
push esi
jne 0x4066d4
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x4066ae
mov dword [ecx*4 + 0x427dc8], eax
inc ecx
cmp ecx, 0x100
jl 0x4066a9
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406705
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x427dc8]
xor eax, esi
inc ecx
dec edx
jne 0x4066e7
pop edi
not eax
pop esi
ret 0xc
Function at 0x401b50
Capabilities:
Encode data using base64

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov dword [ebp - 0x14], edx
test ecx, ecx
je 0x401c90
test edx, edx
js 0x401c90
mov eax, dword [ebp + 8]
test eax, eax
je 0x401c78
mov dword [ebp - 8], edx
push ebx
mov ebx, edx
test edx, edx
jle 0x401c74
push esi
push edi
mov dh, byte [ecx]
mov esi, ecx
inc ecx
mov dword [ebp - 0x10], eax
mov edi, eax
cmp ebx, 3
jb 0x401bf8
mov dl, byte [ecx]
mov bl, byte [ecx + 1]
add ecx, 2
mov dword [ebp - 0xc], ecx
movzx esi, dh
mov ecx, esi
movzx edi, dl
shr ecx, 2
shl esi, 4
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, edi
shr ecx, 4
or ecx, esi
movzx esi, bl
mov ebx, dword [ebp - 8]
and ecx, 0x3f
mov edx, esi
shr edx, 6
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
lea ecx, [edi*4]
or edx, ecx
and edx, 0x3f
and esi, 0x3f
movzx ecx, byte [edx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 2], cl
lea ecx, [eax + 3]
mov dl, byte [esi + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
jmp 0x401c59
cmp ebx, 2
jne 0x401c04
mov dl, byte [ecx]
mov byte [ebp - 1], dl
jmp 0x401c08
mov byte [ebp - 1], 0
cmovne ecx, esi
movzx edx, dh
movzx esi, byte [ebp - 1]
inc ecx
mov dword [ebp - 0xc], ecx
mov ecx, edx
shr ecx, 2
shl edx, 4
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax], cl
mov ecx, esi
shr ecx, 4
or ecx, edx
and ecx, 0x3f
movzx ecx, byte [ecx + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov byte [eax + 1], cl
cmp ebx, 1
jne 0x401c44
mov al, 0x3d
jmp 0x401c4e
and esi, 0xf
mov al, byte [esi*4 + str.ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_]
mov ecx, dword [ebp - 0x10]
mov dl, 0x3d
mov byte [ecx + 2], al
lea ecx, [edi + 3]
sub ebx, 3
mov byte [ecx], dl
mov dword [ebp - 8], ebx
lea eax, [ecx + 1]
mov ecx, dword [ebp - 0xc]
test ebx, ebx
jg 0x401b84
mov edx, dword [ebp - 0x14]
pop edi
pop esi
mov byte [eax], 0
pop ebx
lea ecx, [edx + 2]
mov eax, 0x55555556
imul ecx
mov eax, edx
shr eax, 0x1f
add eax, edx
shl eax, 2
mov esp, ebp
pop ebp
ret
or eax, 0xffffffff
mov esp, ebp
pop ebp
ret
Function at 0x404510
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x47e788
push 0x4667a1
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x487304]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
push 0x1c
lea eax, [ebp - 0x34]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
mov dword [ebp - 4], 0
mov eax, 0x5a4d
mov ecx, dword [ebp - 0x30]
cmp word [ecx], ax
jne 0x4045b3
mov edx, dword [ecx + 0x3c]
cmp dword [edx + ecx], 0x4550
jne 0x4045b3
mov esi, dword [edx + ecx + 0xd8]
lea eax, [esi + ecx]
cmp edi, eax
jb 0x4045b3
mov eax, dword [edx + ecx + 0xdc]
add eax, esi
add eax, ecx
cmp edi, eax
jae 0x4045b3
mov dword [ebp - 4], 0xfffffffe
mov al, 1
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov dword [ebp - 4], 0xfffffffe
xor al, al
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404620
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, ecx
movzx eax, si
push edi
mov edi, edx
test eax, eax
je 0x40463c
sub esi, eax
add esi, 0x10000
cmp esi, edi
jae 0x4046d0
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop word [eax + eax]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x404664
mov esi, 0x80010000
jmp 0x4046cc
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x4046d0
cmp dword [ebp - 0xc], 0x10000
mov ecx, dword [ebp - 0x10]
jne 0x4046b7
cmp ecx, 0x10000
jb 0x4046b7
push 0x40
push 0x3000
push 0x10000
push esi
call ebx
test eax, eax
jne 0x4046d2
add esi, 0x10000
jmp 0x4046cc
mov esi, dword [ebp - 0x1c]
add esi, ecx
movzx ecx, si
test ecx, ecx
je 0x4046cc
mov eax, 0x10000
sub eax, ecx
add esi, eax
cmp esi, edi
jb 0x404650
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4046e0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
add edx, 0xffff0000
movzx eax, dx
push ebx
push esi
mov esi, edx
sub esi, eax
test eax, eax
push edi
mov edi, ecx
cmove esi, edx
cmp esi, edi
jbe 0x40478e
mov ebx, dword [sym.imp.KERNEL32.dll_VirtualAlloc]
nop dword [eax + eax]
lea eax, [esi - 0x50000000]
cmp eax, 0x30000000
ja 0x404724
mov esi, 0x4fff0000
jmp 0x40478a
push 0x1c
lea eax, [ebp - 0x1c]
mov dword [ebp - 4], 0
xorps xmm0, xmm0
push eax
push esi
movups xmmword [ebp - 0x1c], xmm0
movq qword [ebp - 0xc], xmm0
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
je 0x40478e
cmp dword [ebp - 0xc], 0x10000
jne 0x404775
cmp dword [ebp - 0x10], 0x10000
jb 0x404775
push 0x40
push 0x3000
push 0x10000
push esi
call ebx
test eax, eax
jne 0x404790
sub esi, 0x10000
jmp 0x40478a
mov ecx, dword [ebp - 0x18]
add ecx, 0xffff0000
mov esi, ecx
movzx eax, si
sub esi, eax
test eax, eax
cmove esi, ecx
cmp esi, edi
ja 0x404710
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4047a0
Capabilities:
Hook routines via microsoft detours

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
push esi
mov esi, ecx
push edi
cmp esi, 0x7ff80000
jbe 0x4047c6
lea edi, [esi - 0x7ff80000]
cmp esi, 0x80000000
jb 0x4047cb
mov ebx, 0xfff80000
jmp 0x4047d1
mov edi, 0x10000
lea ebx, [esi + 0x7ff80000]
mov edx, dword [0x4890ac]
mov eax, dword [0x4890a8]
test edx, edx
jne 0x4047ec
test eax, eax
je 0x4047ff
mov edx, eax
mov dword [0x4890ac], edx
mov ecx, dword [edx + 8]
test ecx, ecx
je 0x4047ff
cmp ecx, edi
jb 0x4047ff
cmp ecx, ebx
jbe 0x404900
mov edx, eax
mov dword [0x4890ac], edx
test eax, eax
je 0x404838
mov ecx, eax
nop dword [eax]
test eax, eax
je 0x404827
mov eax, dword [ecx + 8]
test eax, eax
je 0x404827
cmp eax, edi
jb 0x404827
cmp eax, ebx
jbe 0x404900
mov edx, dword [edx + 4]
mov ecx, edx
mov dword [0x4890ac], edx
mov eax, edx
test ecx, ecx
jne 0x404810
and esi, 0xffff0000
lea ecx, [esi - 0x40000000]
cmp esi, 0x40000000
jbe 0x40492a
mov edx, ecx
mov ecx, edi
call fcn.004046e0
mov edx, eax
test edx, edx
jne 0x4048bd
lea ecx, [esi - 0x40000000]
lea eax, [esi + 0x40000000]
mov dword [ebp - 4], eax
cmp esi, 0x40000000
jbe 0x404889
mov edx, esi
call fcn.00404620
mov edx, eax
test edx, edx
jne 0x4048bd
cmp esi, 0x40000000
jae 0x40489b
mov edx, dword [ebp - 4]
mov ecx, esi
call fcn.004046e0
mov edx, eax
test edx, edx
jne 0x4048bd
mov edx, esi
mov ecx, edi
call fcn.004046e0
mov edx, eax
test edx, edx
jne 0x4048bd
mov edx, ebx
mov ecx, esi
call fcn.00404620
mov edx, eax
test edx, edx
je 0x404951
mov dword [edx], 0x52727464
xor ecx, ecx
mov dword [edx + 8], 0
mov esi, 0x38b
mov eax, dword [0x4890a8]
mov dword [edx + 4], eax
lea eax, [edx + 0xffa8]
mov dword [0x4890ac], edx
mov dword [0x4890a8], edx
nop dword [eax + eax]
mov dword [eax + 0x40], ecx
mov ecx, eax
sub eax, 0x48
sub esi, 1
jne 0x4048f0
mov dword [edx + 8], ecx
mov esi, dword [edx + 8]
cmp esi, edi
jb 0x404951
cmp esi, ebx
ja 0x404951
mov ecx, dword [esi + 0x40]
push 0x48
push 0xcc
push esi
mov dword [edx + 8], ecx
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
jae 0x404865
lea eax, [esi + 0x40000000]
mov edx, ebx
mov ecx, eax
mov dword [ebp - 4], eax
call fcn.00404620
mov edx, eax
test edx, edx
jne 0x4048bd
jmp 0x40488b
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x404960
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
push ecx
cmp dword [0x4890b0], 0
jne 0x4049cd
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov ecx, eax
mov edx, 0x4890b0
xor eax, eax
lock cmpxchg dword [edx], ecx
test eax, eax
jne 0x4049cd
push esi
mov esi, dword [0x4890a8]
mov dword [0x4890c0], eax
mov dword [0x4890bc], eax
mov dword [0x4890b4], eax
mov dword [0x4890b8], eax
test esi, esi
je 0x4049c6
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
nop word [eax + eax]
lea eax, [ebp - 4]
push eax
push 0x40
push 0x10000
push esi
call edi
mov esi, dword [esi + 4]
test esi, esi
jne 0x4049b0
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
Function at 0x404e50
Capabilities:
Suspend thread

Disassembly:
mov eax, dword [0x4890b4]
push esi
mov esi, ecx
test eax, eax
jne 0x404ebe
call dword [sym.imp.KERNEL32.dll_GetCurrentThread]
cmp esi, eax
jne 0x404e6a
xor eax, eax
pop esi
ret
push edi
push 8
call fcn.00466317
add esp, 4
mov edi, eax
push esi
call dword [sym.imp.KERNEL32.dll_SuspendThread]
cmp eax, 0xffffffff
jne 0x404eab
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
push 8
push edi
call fcn.004662e6
add esp, 8
mov dword [0x4890b4], esi
mov eax, esi
mov dword [0x4890b8], 0
pop edi
pop esi
ret
mov eax, dword [0x4890bc]
mov dword [edi], eax
xor eax, eax
mov dword [edi + 4], esi
mov dword [0x4890bc], edi
pop edi
pop esi
ret
Function at 0x405250
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
cmp dword [0x4890b0], eax
je 0x40526d
mov eax, 0x10dd
mov esp, ebp
pop ebp
ret
mov eax, dword [0x4890b4]
test eax, eax
jne 0x40541a
cmp dword [0x489098], eax
jne 0x40529f
mov dword [0x4890b4], 6
mov eax, 6
mov dword [0x4890b8], 0x489098
mov esp, ebp
pop ebp
ret
push ebx
push esi
push edi
push 0x18
call fcn.00466317
mov esi, dword [0x489098]
add esp, 4
mov ebx, eax
test esi, esi
je 0x405310
cmp byte [esi], 0xff
jne 0x4052d5
cmp byte [esi + 1], 0x25
jne 0x4052d5
mov edi, dword [esi + 2]
mov ecx, esi
mov edx, edi
call fcn.00404510
test al, al
je 0x4052d5
mov esi, dword [edi]
cmp byte [esi], 0xeb
jne 0x405310
movsx eax, byte [esi + 1]
add eax, 2
add esi, eax
mov cl, byte [esi]
lea eax, [esi + 1]
cmp cl, 0xff
jne 0x405306
cmp byte [eax], 0x25
jne 0x405306
mov edi, dword [esi + 2]
mov ecx, esi
mov edx, edi
call fcn.00404510
test al, al
je 0x405310
mov esi, dword [edi]
jmp 0x405310
cmp cl, 0xe9
jne 0x405310
add esi, 5
add esi, dword [eax]
mov edi, 0x42d5b0
cmp byte [edi], 0xff
jne 0x40533b
mov ecx, 0x42d5b0
cmp byte [ecx + 1], 0x25
jne 0x40533b
mov eax, dword [ecx + 2]
mov edx, eax
mov dword [ebp - 8], eax
call fcn.00404510
test al, al
je 0x40533b
mov edi, dword [ebp - 8]
mov edi, dword [edi]
cmp byte [edi], 0xeb
jne 0x40537c
movsx eax, byte [edi + 1]
add eax, 2
add edi, eax
mov cl, byte [edi]
lea eax, [edi + 1]
cmp cl, 0xff
jne 0x405372
cmp byte [eax], 0x25
jne 0x405372
mov eax, dword [edi + 2]
mov ecx, edi
mov edx, eax
mov dword [ebp - 8], eax
call fcn.00404510
test al, al
je 0x40537c
mov edi, dword [ebp - 8]
mov edi, dword [edi]
jmp 0x40537c
cmp cl, 0xe9
jne 0x40537c
add edi, 5
add edi, dword [eax]
movzx eax, byte [esi + 0x36]
mov ecx, dword [esi + 0x40]
sub ecx, eax
mov dword [ebp - 8], ecx
test eax, eax
je 0x4053ec
cmp eax, 0x1e
ja 0x4053ec
cmp dword [esi + 0x44], edi
jne 0x4053ec
lea edx, [ebp - 4]
mov dword [ebp - 4], 0
push edx
push 0x40
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_VirtualProtect]
test eax, eax
jne 0x4053b9
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, eax
jmp 0x4053fa
mov eax, dword [ebp - 8]
mov dword [ebx + 0xc], eax
mov dword [ebx + 0x10], esi
mov dword [ebx + 4], 1
mov dword [ebx + 8], 0x489098
mov eax, dword [ebp - 4]
mov dword [ebx + 0x14], eax
mov eax, dword [0x4890c0]
pop edi
mov dword [ebx], eax
xor eax, eax
pop esi
mov dword [0x4890c0], ebx
pop ebx
mov esp, ebp
pop ebp
ret
cmp dword [0x488f50], 0
mov esi, 9
jne 0x405400
mov dword [0x4890b4], esi
push 0x18
push ebx
call fcn.004662e6
add esp, 8
mov dword [0x4890b8], 0x489098
mov eax, esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405790
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x467b08
mov eax, dword fs:[0]
push eax
sub esp, 0x8c
mov eax, dword [0x487304]
xor eax, ebp
mov dword [ebp - 0x10], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov edi, ecx
mov esi, dword [ebp + 8]
mov ecx, esi
push str.click
call fcn.0042e6ba
test al, al
je 0x405816
mov ecx, dword [esi + 0x88]
lea edx, [ebp - 0x54]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
push str.box_btn_close
mov ecx, eax
mov dword [ebp - 4], 0
call fcn.0042e6ba
lea ecx, [ebp - 0x54]
mov dword [ebp - 4], 0xffffffff
mov bl, al
call fcn.0042e585
test bl, bl
je 0x40587b
push 1
lea ecx, [edi - 0x10]
call fcn.0042f340
jmp 0x40587b
push str.link
mov ecx, esi
call fcn.0042e6ba
test al, al
je 0x40587b
mov ecx, dword [esi + 0x88]
lea edx, [ebp - 0x98]
push edx
mov eax, dword [ecx]
call dword [eax + 4]
mov ecx, eax
mov dword [ebp - 4], 1
call fcn.0042e701
push str.about_link
push eax
call dword [sym.imp.api_ms_win_crt_multibyte_l1_1_0.dll__mbscmp]
add esp, 8
lea ecx, [ebp - 0x98]
mov esi, eax
call fcn.0042e585
test esi, esi
jne 0x40587b
push 5
push esi
push esi
push str.http:__2217wy.com
push str.open
push esi
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x10]
xor ecx, ebp
call fcn.004662d8
mov esp, ebp
pop ebp
ret 4

Function at 0x408070
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
mov edi, edx
mov ebx, ecx
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x4080cb
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov esi, eax
test esi, esi
je 0x4080cb
push edi
push ebx
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov ecx, dword [ebp + 8]
lea edx, [esi + eax]
and ecx, 0xf
jbe 0x4080b8
cmp esi, edx
jae 0x4080cb
movzx eax, word [esi]
lea esi, [esi + eax*2]
add esi, 2
sub ecx, 1
jne 0x4080a6
cmp esi, edx
jae 0x4080cb
xor eax, eax
cmp word [esi], ax
pop edi
cmove esi, eax
mov eax, esi
pop esi
pop ebx
pop ebp
ret
pop edi
pop esi
xor eax, eax
pop ebx
pop ebp
ret