joyce8/EMBER2024-capa huggingface dataset:
Function at 0x476f60
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x17
call dword [sym.imp.USER32.dll_GetSystemMetrics]
neg eax
sbb eax, eax
neg eax
inc eax
push eax
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
mov ecx, 0x8000
test cx, ax
ja 0x476f86
or eax, 0xffffffff
ret 8
mov eax, dword [esi + 0x248]
cmp eax, 1
je 0x476f96
cmp eax, 2
jne 0x476f80
movsd xmm0, qword [0x4c88d0]
comisd xmm0, xmmword [esp + 4]
jbe 0x476fae
mov eax, 0x12c
ret 8
mov ecx, esi
call fcn.00476e10
movss xmm0, dword [esi + 0x264]
cvtps2pd xmm1, xmm0
movsd xmm0, qword [esp + 4]
addsd xmm0, qword [0x4bab50]
mulsd xmm1, qword [0x4d3c00]
sqrtsd xmm0, xmm0
divsd xmm1, xmm0
cvttsd2si eax, xmm1
test eax, eax
jne 0x476feb
mov eax, 1
ret 8
Function at 0x4787d0
Capabilities:
Parse url

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
xor esi, esi
push edi
mov edi, eax
mov dword [esp + 0x14], esi
test ebx, ebx
je 0x478809
mov eax, ebx
lea edx, [eax + 1]
lea esp, [esp]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x4787f0
sub eax, edx
push eax
push ebx
lea eax, [esp + 0x1c]
push eax
call fcn.0043c500
mov esi, dword [esp + 0x14]
lea ecx, [esp + 0x14]
push ecx
call fcn.00401250
test esi, esi
je 0x47883c
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x478833
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
jmp 0x47883c
test eax, eax
jne 0x47883c
call fcn.0045f5a0
mov eax, ebx
lea edx, [eax + 1]
mov cl, byte [eax]
inc eax
test cl, cl
jne 0x478841
sub eax, edx
lea edx, [edi + 4]
push edx
push closesocket
push eax
push ebx
call dword [sym.imp.WININET.dll_InternetCrackUrlA]
test eax, eax
jne 0x47886b
mov eax, 4
pop edi
pop esi
pop ebx
pop ecx
ret 4
cmp word [edi + 0x1c], 0
jne 0x4788c4
mov eax, dword [edi + 8]
mov ecx, str.https
lea ebx, [ebx]
mov dl, byte [eax]
cmp dl, byte [ecx]
jne 0x4788a0
test dl, dl
je 0x47889c
mov dl, byte [eax + 1]
cmp dl, byte [ecx + 1]
jne 0x4788a0
add eax, 2
add ecx, 2
test dl, dl
jne 0x478880
xor eax, eax
jmp 0x4788a5
sbb eax, eax
sbb eax, 0xffffffff
test eax, eax
jne 0x4788bb
mov eax, 0x1bb
mov word [edi + 0x1c], ax
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
mov ecx, 0x50
mov word [edi + 0x1c], cx
pop edi
pop esi
xor eax, eax
pop ebx
pop ecx
ret 4

Function at 0x4789e0
Capabilities:
Hash data with md5

Disassembly:
sub esp, 0x64
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0x5c], eax
mov eax, dword [esp + 0x68]
xor ecx, ecx
mov dword [esp + 0x10], ecx
mov dword [esp + 0x14], ecx
mov ecx, dword [esp + 0x6c]
push ecx
push eax
lea edx, [esp + 8]
push edx
mov dword [esp + 0xc], 0x67452301
mov dword [esp + 0x10], 0xefcdab89
mov dword [esp + 0x14], 0x98badcfe
mov dword [esp + 0x18], 0x10325476
call fcn.00478a90
push esi
lea eax, [esp + 0x10]
call fcn.00478b50
mov ecx, dword [esp + 0x6c]
add esp, 0x10
xor ecx, esp
call fcn.0049ceb0
add esp, 0x64
ret
Function at 0x47a720
Capabilities:
Hash data using sha256

Disassembly:
xor ecx, ecx
cmp eax, ecx
jne 0x47a72c
mov eax, 1
ret
mov dword [eax + 0x48], ecx
mov dword [eax], ecx
mov dword [eax + 4], ecx
mov dword [eax + 8], 0xf3bcc908
mov dword [eax + 0xc], 0x6a09e667
mov dword [eax + 0x10], 0x84caa73b
mov dword [eax + 0x14], 0xbb67ae85
mov dword [eax + 0x18], 0xfe94f82b
mov dword [eax + 0x1c], 0x3c6ef372
mov dword [eax + 0x20], 0x5f1d36f1
mov dword [eax + 0x24], 0xa54ff53a
mov dword [eax + 0x28], 0xade682d1
mov dword [eax + 0x2c], 0x510e527f
mov dword [eax + 0x30], 0x2b3e6c1f
mov dword [eax + 0x34], 0x9b05688c
mov dword [eax + 0x38], 0xfb41bd6b
mov dword [eax + 0x3c], 0x1f83d9ab
mov dword [eax + 0x40], 0x137e2179
mov dword [eax + 0x44], 0x5be0cd19
xor eax, eax
ret
Function at 0x481da0
Capabilities:
Encode data using xor

Disassembly:
push ebx
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov dword [ebp], 0
mov dword [ebp + 4], 0x67
push edi
mov ebx, 0xf9
add ebp, 0x3ec
call fcn.0049d58b
mov edi, eax
shl edi, 0xc
call fcn.0049d58b
mov esi, eax
xor esi, edi
shl esi, 0xc
call fcn.0049d58b
xor eax, esi
mov dword [ebp], eax
dec ebx
sub ebp, 4
test ebx, ebx
jge 0x481dc1
mov esi, dword [esp + 0x14]
or edx, 0xffffffff
mov eax, closesocket
lea ecx, [esi + 0x14]
mov edi, dword [ecx]
and edi, edx
or edi, eax
mov dword [ecx], edi
shr eax, 1
shr edx, 1
add ecx, 0x1c
test eax, eax
jne 0x481df8
lea ecx, [esi + 0x3f0]
inc eax
mov dword [ecx], eax
add ecx, 4
cmp eax, 0xfa
jl 0x481e11
pop edi
mov dword [esi + 0x7d4], 0
mov eax, esi
pop esi
pop ebp
pop ebx
ret 4

Function at 0x481ea0
Capabilities:
Log keystrokes via polling

Disassembly:
push esi
mov esi, ecx
mov eax, dword [esi + 0x5c]
push edi
push eax
call dword [sym.imp.USER32.dll_GetParent]
cmp byte [esi + 0x98], 0
mov esi, dword [esp + 0xc]
mov edi, eax
je 0x481ef2
cmp dword [esi + 4], 0x102
je 0x481ef2
cmp byte [esi + 8], 9
jne 0x481ef2
push 0x10
call dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0
shr eax, 0xf
and al, 1
movsx ecx, al
push ecx
push 0x28
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop edi
mov eax, 0xf4240
pop esi
ret 4
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetAsyncKeyState]
push 0x11
call ebx
shr eax, 0xf
test al, 1
jne 0x481f1a
push 0x12
call ebx
shr eax, 0xf
test al, 1
jne 0x481f1a
pop ebx
pop edi
mov eax, 0xf4241
pop esi
ret 4
mov edx, dword [esi + 0xc]
mov eax, dword [esi + 8]
mov ecx, dword [esi + 4]
push edx
push eax
push ecx
push edi
call dword [sym.imp.USER32.dll_SendMessageA]
pop ebx
pop edi
pop esi
ret 4
Function at 0x48ae10
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x114
mov eax, dword [0x4e2204]
xor eax, esp
mov dword [esp + 0x110], eax
push esi
push edi
mov edi, ecx
mov esi, dword [edi + 0x59c]
push esi
push 1
lea eax, [esp + 0x13]
push 1
push eax
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48ae5a
mov al, byte [esp + 0xb]
cmp al, 0x38
je 0x48ae76
movsx ecx, al
push esi
push ecx
call fcn.004a1875
add esp, 8
mov eax, 3
pop edi
pop esi
mov ecx, dword [esp + 0x110]
xor ecx, esp
call fcn.0049ceb0
add esp, 0x114
ret
mov esi, dword [edi + 0x59c]
push esi
push 1
lea edx, [esp + 0x13]
push 1
push edx
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48ae5a
mov al, byte [esp + 0xb]
cmp al, 0x42
je 0x48aea2
movsx eax, al
push esi
push eax
jmp 0x48ae52
mov esi, dword [edi + 0x59c]
push esi
push 1
lea ecx, [esp + 0x13]
push 1
push ecx
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48ae5a
mov al, byte [esp + 0xb]
cmp al, 0x49
je 0x48aece
movsx edx, al
push esi
push edx
jmp 0x48ae52
mov esi, dword [edi + 0x59c]
push 0x4d
call fcn.0048c6e0
add esp, 4
test al, al
je 0x48ae5a
mov eax, dword [edi + 0x59c]
push eax
push 1
lea eax, [esp + 0x18]
push 2
push eax
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48ae5a
mov eax, dword [edi + 0x59c]
mov cx, word [esp + 0x10]
push eax
rol cx, 8
push 1
movzx edx, cx
lea eax, [esp + 0x1c]
push 1
push eax
mov dword [esp + 0x20], edx
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48ae5a
mov al, byte [esp + 0x14]
mov ecx, dword [edi + 0x59c]
push ecx
or al, 1
movzx ecx, al
push ecx
lea edx, [esp + 0x1d]
push 1
push edx
mov byte [esp + 0x24], al
call fcn.0049ea18
movzx ecx, byte [esp + 0x24]
add esp, 0x10
cmp eax, ecx
jne 0x48ae5a
mov eax, dword [edi + 0x59c]
push eax
push 1
lea eax, [esp + 0x14]
push 4
push eax
mov byte [esp + ecx + 0x25], 0
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48ae5a
lea ecx, [esp + 0xc]
call fcn.0048c690
test eax, eax
jne 0x48ae5f
mov eax, dword [esp + 0xc]
mov edi, dword [edi + 0x59c]
inc eax
and eax, 0xfffffffe
push 1
push eax
push edi
mov dword [esp + 0x18], eax
call fcn.0049edbf
mov ecx, dword [esp + 0x124]
add esp, 0xc
pop edi
pop esi
xor ecx, esp
call fcn.0049ceb0
add esp, 0x114
ret
Function at 0x48b700
Capabilities:
Read file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
mov eax, dword [ebx + 0x59c]
push ebp
push edi
push eax
call fcn.004a1716
mov dword [esi + 0x164], eax
xor eax, eax
add esp, 4
mov dword [esp + 0xc], 0
cmp ax, word [esi + 0x10]
jae 0x48b810
mov eax, dword [ebx + 0x59c]
push eax
push 1
push 2
lea edi, [esi + 0x154]
push edi
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b819
mov cx, word [edi]
rol cx, 8
movzx eax, cx
mov word [edi], cx
cmp ax, 1
jne 0x48b7c8
mov edx, dword [esi + 0xc]
xor ebp, ebp
xor edi, edi
sub edx, dword [esi + 4]
je 0x48b7b4
mov eax, dword [ebx + 0x59c]
push eax
push 1
lea eax, [esp + 0x1c]
push 2
push eax
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48b819
mov cx, word [esp + 0x14]
rol cx, 8
movzx eax, cx
movzx edx, ax
mov dword [esp + 0x14], eax
mov eax, dword [esi + 0xc]
sub eax, dword [esi + 4]
inc edi
add ebp, edx
cmp edi, eax
jb 0x48b773
mov ecx, dword [ebx + 0x59c]
push 1
push ebp
push ecx
call fcn.0049edbf
add esp, 0xc
jmp 0x48b7fb
test ax, ax
jne 0x48b7fb
mov edi, dword [esi + 0xc]
mov edx, dword [esi + 8]
sub edi, dword [esi + 4]
sub edx, dword [esi]
mov eax, dword [ebx + 0x59c]
push eax
imul edi, edx
call fcn.004a1716
add eax, edi
push 0
push eax
mov eax, dword [ebx + 0x59c]
push eax
call fcn.0049edbf
add esp, 0x10
mov eax, dword [esp + 0xc]
movzx ecx, word [esi + 0x10]
inc eax
cmp eax, ecx
mov dword [esp + 0xc], eax
jl 0x48b731
pop edi
pop ebp
xor eax, eax
pop ebx
pop ecx
ret 4
pop edi
pop ebp
mov eax, 3
pop ebx
pop ecx
ret 4

Function at 0x48b870
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
mov eax, dword [0x4e2204]
xor eax, ebp
mov dword [ebp - 4], eax
movzx eax, word [ebp + 0x10]
push ebx
push esi
push edi
mov esi, ecx
call fcn.004a1bd0
mov edi, esp
test edi, edi
jne 0x48b89d
lea eax, [esp + 4]
jmp 0x48b95d
cmp dword [ebp + 0x14], 0
mov dword [ebp - 8], 0
jbe 0x48b95b
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 0xc], ebx
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x59c]
movzx ecx, word [ebx]
push eax
push ecx
push 1
push edi
call fcn.0049ea18
movzx ecx, word [ebx]
add esp, 0x10
cmp eax, ecx
jne 0x48b973
xor eax, eax
test ecx, ecx
jle 0x48b945
mov edi, edi
mov dl, byte [eax + edi]
xor ecx, ecx
test dl, dl
jge 0x48b90e
neg dl
movzx edx, dl
inc edx
test edx, edx
jle 0x48b93b
movzx edx, byte [eax + edi + 1]
mov byte [esi], dl
movzx edx, byte [eax + edi]
neg dl
movzx edx, dl
inc ecx
inc edx
add esi, 4
cmp ecx, edx
jl 0x48b8f3
jmp 0x48b93b
movsx edx, dl
inc edx
test edx, edx
jle 0x48b935
lea edx, [eax + edi + 1]
lea ebx, [ebx]
mov bl, byte [edx + ecx]
mov byte [esi], bl
movsx ebx, byte [eax + edi]
inc ecx
inc ebx
add esi, 4
cmp ecx, ebx
jl 0x48b920
mov ebx, dword [ebp - 0xc]
movsx ecx, byte [eax + edi]
add eax, ecx
movzx edx, word [ebx]
add eax, 2
cmp eax, edx
jl 0x48b8e0
mov eax, dword [ebp - 8]
inc eax
add ebx, 2
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], ebx
cmp eax, dword [ebp + 0x14]
jb 0x48b8b4
xor eax, eax
lea esp, [ebp - 0x18]
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ceb0
mov esp, ebp
pop ebp
ret 0x10
mov eax, 3
jmp 0x48b95d
Function at 0x48b980
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
mov eax, dword [0x4e2204]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push edi
mov eax, esi
mov edi, ecx
call fcn.004a1bd0
cmp dword [ebp + 0xc], 0
mov ebx, esp
mov dword [ebp - 8], 0
jbe 0x48b9e9
lea ebx, [ebx]
mov eax, dword [ebp + 8]
mov eax, dword [eax + 0x59c]
push eax
push esi
push 1
push ebx
call fcn.0049ea18
add esp, 0x10
cmp eax, esi
jne 0x48ba00
xor eax, eax
test esi, esi
jbe 0x48b9dd
mov cl, byte [eax + ebx]
mov byte [edi], cl
inc eax
add edi, 4
cmp eax, esi
jb 0x48b9d0
mov eax, dword [ebp - 8]
inc eax
mov dword [ebp - 8], eax
cmp eax, dword [ebp + 0xc]
jb 0x48b9b0
xor eax, eax
lea esp, [ebp - 0x10]
pop edi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0049ceb0
mov esp, ebp
pop ebp
ret 8
mov eax, 3
jmp 0x48b9eb
Function at 0x48c6c0
Capabilities:
Read file on windows

Disassembly:
push eax
push 1
push 1
push ecx
call fcn.0049ea18
dec eax
add esp, 0x10
neg eax
sbb eax, eax
and eax, 3
ret

Function at 0x48c6e0
Capabilities:
Read file on windows

Disassembly:
push ecx
push esi
push 1
lea eax, [esp + 0xb]
push 1
push eax
call fcn.0049ea18
add esp, 0x10
cmp eax, 1
jne 0x48c70f
mov al, byte [esp + 3]
cmp byte [esp + 8], al
je 0x48c713
movsx ecx, al
push esi
push ecx
call fcn.004a1875
add esp, 8
xor al, al
pop ecx
ret
mov al, 1
pop ecx
ret
Function at 0x490ee0
Capabilities:
Get file size

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
mov edi, eax
cmp dword [edi], 0
je 0x490efb
mov esi, dword [edi + 4]
test esi, esi
je 0x490efb
call fcn.0045f5a0
mov dword [edi], 0
mov dword [edi + 4], 0
mov eax, dword [ebx + 4]
test eax, eax
jne 0x490f1b
mov eax, 2
pop edi
pop esi
pop ebx
pop ecx
ret 4
push 0
push eax
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
xor eax, eax
cmp esi, 0xffffffff
jne 0x490f31
test eax, eax
je 0x490f0f
mov ecx, esi
or ecx, eax
jne 0x490f40
xor eax, eax
pop edi
pop esi
pop ebx
pop ecx
ret 4
push 0
push edi
mov eax, esi
call fcn.0044a820
test eax, eax
jne 0x490f5a
mov edi, dword [edi + 4]
push esi
push edi
mov eax, ebx
call fcn.00490f70
pop edi
pop esi
pop ebx
pop ecx
ret 4

Function at 0x490f70
Capabilities:
Read file on windows

Disassembly:
mov eax, dword [eax + 4]
test eax, eax
je 0x490f98
mov edx, dword [esp + 8]
push 0
lea ecx, [esp + 0xc]
push ecx
mov ecx, dword [esp + 0xc]
push edx
push ecx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x490f98
xor eax, eax
ret 8
or eax, 0xffffffff
ret 8

Function at 0x4910d0
Capabilities:
Get graphical window text

Disassembly:
sub esp, 0x14
push ebp
mov ebp, dword [esp + 0x1c]
push esi
push edi
mov edi, 0x4009
mov dword [esp + 0x24], 0
call fcn.0045f460
mov dword [esp + 0x24], eax
mov dword [eax], 0x400101
mov eax, dword [esp + 0x24]
mov byte [eax + 4], 0
mov ecx, dword [esp + 0x24]
mov eax, dword [ecx]
movzx edx, al
mov esi, eax
shr esi, 8
cmp edx, 1
jbe 0x49111b
lea eax, [esp + 0x24]
push eax
call fcn.0043c230
mov eax, dword [esp + 0x24]
mov ecx, dword [ebp + 0x5c]
push esi
add eax, 4
push eax
push ecx
call dword [sym.imp.USER32.dll_GetWindowTextA]
mov eax, dword [ebp + 0xa4]
test eax, eax
je 0x4911a9
mov ecx, dword [eax + 0x174]
test ecx, ecx
je 0x491151
or dword [eax + 8], 7
mov edx, dword [ecx]
mov edx, dword [edx]
lea eax, [esp + 0x24]
push eax
call edx
mov ecx, dword [ebp + 0xa4]
mov eax, ecx
call fcn.004404a0
test eax, eax
je 0x4911a9
mov eax, ecx
call fcn.004404a0
fldz
mov edx, dword [eax]
or ecx, 0xffffffff
push ecx
fstp dword [esp]
push 1
push 1
mov dword [esp + 0x1c], ecx
mov dword [esp + 0x20], ecx
movq xmm0, qword [esp + 0x1c]
mov dword [esp + 0x24], ecx
mov dword [esp + 0x28], ecx
sub esp, 0x10
mov ecx, esp
movq qword [ecx], xmm0
movq xmm0, qword [esp + 0x34]
movq qword [ecx + 8], xmm0
mov ecx, eax
mov eax, dword [edx + 0x4c]
call eax
mov edx, dword [ebp]
mov eax, dword [edx + 8]
mov ecx, ebp
call eax
mov edi, eax
mov eax, dword [esp + 0x24]
test eax, eax
je 0x4911f1
push eax
mov esi, eax
call dword [sym.imp.KERNEL32.dll_InterlockedDecrement]
and eax, 0xff
cmp eax, 0x80
jl 0x4911e4
push esi
call dword [sym.imp.KERNEL32.dll_InterlockedIncrement]
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x14
ret 4
test eax, eax
jne 0x4911f1
mov esi, dword [esp + 0x24]
call fcn.0045f5a0
mov eax, edi
pop edi
pop esi
pop ebp
add esp, 0x14
ret 4
Function at 0x4919f0
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, eax
cmp dword [esi + 0x14], 0xca
jne 0x491a41
mov eax, dword [esi + 4]
mov ecx, dword [eax]
push 0x1c
push 1
push esi
call ecx
mov dword [esi + 0x180], eax
mov dword [eax], 0x494d30
mov dword [eax + 4], 0x494e90
mov byte [eax + 8], 0
add esp, 0xc
mov eax, esi
call fcn.00494b70
cmp byte [esi + 0x40], 0
je 0x491a3a
mov dword [esi + 0x14], 0xcf
mov al, 1
pop esi
ret
mov dword [esi + 0x14], 0xcb
mov eax, dword [esi + 0x14]
cmp eax, 0xcb
jne 0x491abb
mov edx, dword [esi + 0x190]
cmp byte [edx + 0x10], 0
je 0x491aab
mov eax, dword [esi + 8]
test eax, eax
je 0x491a66
mov eax, dword [eax]
push esi
call eax
add esp, 4
mov ecx, dword [esi + 0x190]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
test eax, eax
je 0x491aa7
cmp eax, 2
je 0x491aab
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x491a57
cmp eax, 3
je 0x491a8e
cmp eax, 1
jne 0x491a57
inc dword [ecx + 4]
mov eax, dword [esi + 8]
mov ecx, dword [eax + 4]
cmp ecx, dword [eax + 8]
jl 0x491a57
mov edx, dword [esi + 0x11c]
add dword [eax + 8], edx
jmp 0x491a57
xor al, al
pop esi
ret
mov eax, dword [esi + 0x7c]
mov dword [esi + 0x84], eax
call fcn.00491af0
pop esi
ret
cmp eax, 0xcc
je 0x491add
mov ecx, dword [esi]
mov dword [ecx + 0x14], 0x14
mov edx, dword [esi]
mov eax, dword [esi + 0x14]
mov dword [edx + 0x18], eax
mov ecx, dword [esi]
mov edx, dword [ecx]
push esi
call edx
add esp, 4
call fcn.00491af0
pop esi
ret
Function at 0x4978b0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
sub esp, 0x18
push esi
push edi
mov edi, dword [esp + 0x24]
cmp dword [edi + 0x4c], 1
mov esi, dword [edi + 0x1a8]
mov dword [esp + 0x18], esi
jne 0x4978d7
mov dword [esp + 8], 0x1fe
mov byte [esi + 0x1c], 1
jmp 0x4978e3
mov dword [esp + 8], 0
mov byte [esi + 0x1c], 0
mov ecx, dword [edi + 0x64]
mov edx, dword [esp + 8]
mov eax, dword [edi + 4]
mov eax, dword [eax + 8]
push ecx
add edx, 0x100
push edx
push 1
push edi
call eax
xor ecx, ecx
mov dword [esi + 0x18], eax
mov eax, dword [esi + 0x14]
add esp, 0x10
cmp dword [edi + 0x64], ecx
mov dword [esp + 0x14], ecx
jle 0x4979f6
push ebx
lea edx, [esi + 0x20]
push ebp
mov dword [esp + 0x14], edx
jmp 0x497928
mov eax, dword [esp + 0x18]
mov esi, dword [esp + 0x20]
mov edx, dword [esp + 0x14]
mov edi, dword [edx]
cdq
idiv edi
cmp dword [esp + 0x10], 0
mov dword [esp + 0x18], eax
je 0x497949
mov eax, dword [esi + 0x18]
add dword [eax + ecx*4], 0xff
lea eax, [eax + ecx*4]
mov edx, dword [esi + 0x18]
mov ebp, dword [edx + ecx*4]
lea eax, [edi + 0xfe]
lea esi, [edi + edi - 2]
cdq
idiv esi
xor ebx, ebx
mov dword [esp + 0x24], ebp
xor esi, esi
mov edx, eax
cmp esi, edx
jle 0x49799f
mov ecx, ebx
lea ebp, [edi + edi - 2]
imul ecx, ecx, 0x1fe
jmp 0x497980
add ecx, 0x1fe
lea eax, [ecx + edi + 0xfe]
cdq
idiv ebp
inc ebx
mov edx, eax
cmp esi, edx
jg 0x497980
mov ecx, dword [esp + 0x1c]
mov ebp, dword [esp + 0x24]
mov al, byte [esp + 0x18]
imul bl
mov byte [esi + ebp], al
inc esi
cmp esi, 0xff
jle 0x497966
cmp dword [esp + 0x10], 0
je 0x4979dd
mov eax, 1
lea edx, [ebp - 1]
movzx ebx, byte [ebp]
mov byte [edx], bl
movzx ebx, byte [ebp + 0xff]
mov byte [eax + ebp + 0xff], bl
inc eax
dec edx
cmp eax, 0xff
jle 0x4979c0
mov eax, dword [esp + 0x2c]
add dword [esp + 0x14], 4
inc ecx
cmp ecx, dword [eax + 0x64]
mov dword [esp + 0x1c], ecx
jl 0x497920
pop ebp
pop ebx
pop edi
pop esi
add esp, 0x18
ret

Function at 0x49ceb0
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4e2204]
jne 0x49ceba
repz ret
jmp fcn.004a1bfc
Function at 0x4adb3f
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.004a41aa
and dword [ebp - 4], 0
cmp dword [0x561140], 0
mov ebx, eax
jne 0x4adbf0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x4adca1
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x4b9740
push edi
call esi
test eax, eax
je 0x4adca1
push eax
call fcn.004a4138
mov dword [esp], 0x4b9730
push edi
mov dword [0x561140], eax
call esi
push eax
call fcn.004a4138
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x561144], eax
call esi
push eax
call fcn.004a4138
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x561148], eax
call esi
push eax
call fcn.004a4138
pop ecx
mov dword [0x561150], eax
test eax, eax
je 0x4adbf0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004a4138
pop ecx
mov dword [0x56114c], eax
mov eax, dword [0x56114c]
cmp eax, ebx
je 0x4adc48
cmp dword [0x561150], ebx
je 0x4adc48
push eax
call fcn.004a41b3
push dword [0x561150]
mov esi, eax
call fcn.004a41b3
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x4adc48
test edi, edi
je 0x4adc48
call esi
test eax, eax
je 0x4adc3f
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x4adc3f
test byte [ebp - 0xc], 1
jne 0x4adc48
or dword [ebp + 0x10], 0x200000
jmp 0x4adc81
mov eax, dword [0x561144]
cmp eax, ebx
je 0x4adc81
push eax
call fcn.004a41b3
pop ecx
test eax, eax
je 0x4adc81
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x4adc81
mov eax, dword [0x561148]
cmp eax, ebx
je 0x4adc81
push eax
call fcn.004a41b3
pop ecx
test eax, eax
je 0x4adc81
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x561140]
call fcn.004a41b3
pop ecx
test eax, eax
je 0x4adca1
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x4adca3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

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

Disassembly:
cmp dword [0x561234], 0
push esi
jne 0x4b227b
call fcn.004b21a1
test eax, eax
je 0x4b22be
mov eax, dword [0x561234]
cmp eax, 1
jne 0x4b229c
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x4b22be
pop esi
ret
push eax
call dword [0x56123c]
test eax, eax
jne 0x4b2306
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x4b22c2
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x561234]
call dword [0x56123c]
mov edi, eax
test edi, edi
je 0x4b22e7
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
jmp 0x4b2303
mov edi, esi
add esi, 0xff0
push edi
push dword [0x561234]
call dword [0x561238]
add edi, 0x10
cmp edi, esi
jb 0x4b22ef
mov eax, edi
pop edi
pop esi
ret
jmp 0x4b2268
Function at 0x401000
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
push esi
xor eax, eax
push edi
mov ax, word [ebx + 0x14]
xor edi, edi
cmp word [ebx + 6], di
lea esi, [eax + ebx + 0x18]
jbe 0x40103c
mov ebp, dword [esp + 0x14]
push 8
push ebp
push esi
call fcn.00409210
add esp, 0xc
test eax, eax
je 0x401043
xor ecx, ecx
inc edi
mov cx, word [ebx + 6]
add esi, 0x28
cmp edi, ecx
jb 0x40101e
pop edi
pop esi
pop ebp
xor eax, eax
pop ebx
ret
mov edx, dword [esi + 0x14]
mov edi, dword [esi + 0xc]
mov ecx, dword [esp + 0x1c]
sub edx, edi
mov dword [0x40cee4], edx
mov eax, dword [esi + 0x14]
pop edi
pop esi
pop ebp
add eax, ecx
pop ebx
ret

Function at 0x401180
Capabilities:
Read file via mapping

Disassembly:
mov eax, dword [esp + 4]
push ebx
push esi
push edi
push 0
push 0x80
push 3
push 0
push 1
push 0x80000000
push eax
mov dword [0x40cef0], 0
call dword [sym.imp.KERNEL32.DLL_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
jne 0x4011b7
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push 2
push 0
push ebx
call dword [sym.imp.KERNEL32.DLL_CreateFileMappingA]
mov edi, eax
test edi, edi
jne 0x4011db
push ebx
call dword [sym.imp.KERNEL32.DLL_CloseHandle]
pop edi
pop esi
xor eax, eax
pop ebx
ret
push 0
push 0
push 0
push 4
push edi
call dword [sym.imp.KERNEL32.DLL_MapViewOfFile]
mov esi, eax
test esi, esi
jne 0x401202
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
ret
cmp word [esi], 0x5a4d
je 0x401222
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call esi
push ebx
call esi
pop edi
pop esi
xor eax, eax
pop ebx
ret
xor ecx, ecx
mov cx, word [esi + 0x3c]
add ecx, esi
push ecx
push esi
call fcn.00401150
add esp, 8
push esi
call dword [sym.imp.KERNEL32.DLL_UnmapViewOfFile]
mov esi, dword [sym.imp.KERNEL32.DLL_CloseHandle]
push edi
call esi
push ebx
call esi
mov eax, dword [0x40cef0]
pop edi
pop esi
pop ebx
ret