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

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
cmp esi, 0x26
je 0x41f874
cmp esi, 0x28
je 0x41f874
cmp esi, 0x24
je 0x41f874
cmp esi, 0x23
je 0x41f874
cmp esi, 0x21
je 0x41f874
cmp esi, 0x22
je 0x41f874
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xd0]
mov ecx, dword [eax]
test ecx, ecx
je 0x41fa14
lea eax, [esi - 0x21]
cmp eax, 7
ja case.0x41f890.37
jmp dword [eax*4 + 0x41fa20]
mov eax, dword [ebx + 0x70]
test eax, eax
je case.0x41f890.36
mov edi, dword [eax + 0x20]
test edi, edi
je case.0x41f890.36
dec edi
jmp 0x41f93a
mov eax, dword [ebx + 0x70]
test eax, eax
je case.0x41f890.36
mov eax, dword [eax + 0x20]
lea edi, [ecx - 1]
inc eax
cmp eax, ecx
cmovb edi, eax
jmp 0x41f93a
lea edi, [ecx - 1]
jmp 0x41f93a
mov edi, dword [ebx + 0x70]
test edi, edi
je 0x41f8d1
mov edi, dword [edi + 0x20]
jmp 0x41f8d3
xor edi, edi
test byte [ebx + 0x20], 8
je 0x41f8de
mov edx, dword [ebx + 0x58]
jmp 0x41f8e0
xor edx, edx
mov eax, dword [ebx + 0x48]
sub eax, dword [ebx + 0x4c]
sub eax, edx
js 0x41fa14
cdq
idiv dword [ebx + 0x50]
mov edx, eax
sub edx, 1
js 0x41fa14
mov eax, dword [ebx + 0x5c]
cmp esi, 0x21
jne 0x41f919
cmp edi, eax
jbe 0x41f90d
mov edi, eax
jmp 0x41f93a
cmp edi, edx
jb case.0x41f890.36
sub edi, edx
jmp 0x41f93a
xor edi, edi
jmp 0x41f93a
add eax, edx
lea esi, [ecx - 1]
cmp eax, ecx
cmovb esi, eax
cmp edi, esi
jae 0x41f92b
mov edi, esi
jmp 0x41f93a
add edi, edx
lea eax, [ecx - 1]
cmp edi, ecx
cmovae edi, eax
jmp 0x41f93a
mov edi, dword [ebp - 0xc]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
push 0x10
sets byte [ebp - 1]
call esi
mov ecx, dword [ebx + 0xd0]
mov si, ax
push 0
mov ecx, dword [ecx + 8]
mov edx, dword [ecx + edi*4]
mov ecx, ebx
mov dword [ebx + 0x70], edx
call fcn.0041f1c0
test si, si
jns 0x41f98e
mov edx, dword [ebx + 0x78]
cmp edx, 0xffffffff
je 0x41f98e
lea eax, [ebp - 8]
cmp edi, edx
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, edi
cmovbe eax, edx
cmovbe edx, edi
push 4
push eax
jmp 0x41f9aa
cmp byte [ebp - 1], 0
jne 0x41f9d6
mov eax, dword [ebx + 0x70]
mov edx, edi
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x78], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push edi
mov ecx, ebx
call fcn.0041f050
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp - 8]
mov ecx, ebx
call fcn.0041edc0
test al, al
je 0x41f9d6
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, edi
mov ecx, ebx
call fcn.0041f340
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x41fa14
push 0
push 0
push 0x41c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0xf4], 0xffffffff
mov dword [ebx + 0xf8], 0xffffffff
mov dword [ebx + 0x118], 0xffffffff
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x41f8c5
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
push ebx
push esi
mov esi, edx
mov ebx, ecx
push edi
cmp esi, 0x26
je 0x41f874
cmp esi, 0x28
je 0x41f874
cmp esi, 0x24
je 0x41f874
cmp esi, 0x23
je 0x41f874
cmp esi, 0x21
je 0x41f874
cmp esi, 0x22
je 0x41f874
xor al, al
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
mov eax, dword [ebx + 0xd0]
mov ecx, dword [eax]
test ecx, ecx
je 0x41fa14
lea eax, [esi - 0x21]
cmp eax, 7
ja case.0x41f890.37
jmp dword [eax*4 + 0x41fa20]
mov eax, dword [ebx + 0x70]
test eax, eax
je case.0x41f890.36
mov edi, dword [eax + 0x20]
test edi, edi
je case.0x41f890.36
dec edi
jmp 0x41f93a
mov eax, dword [ebx + 0x70]
test eax, eax
je case.0x41f890.36
mov eax, dword [eax + 0x20]
lea edi, [ecx - 1]
inc eax
cmp eax, ecx
cmovb edi, eax
jmp 0x41f93a
lea edi, [ecx - 1]
jmp 0x41f93a
mov edi, dword [ebx + 0x70]
test edi, edi
je 0x41f8d1
mov edi, dword [edi + 0x20]
jmp 0x41f8d3
xor edi, edi
test byte [ebx + 0x20], 8
je 0x41f8de
mov edx, dword [ebx + 0x58]
jmp 0x41f8e0
xor edx, edx
mov eax, dword [ebx + 0x48]
sub eax, dword [ebx + 0x4c]
sub eax, edx
js 0x41fa14
cdq
idiv dword [ebx + 0x50]
mov edx, eax
sub edx, 1
js 0x41fa14
mov eax, dword [ebx + 0x5c]
cmp esi, 0x21
jne 0x41f919
cmp edi, eax
jbe 0x41f90d
mov edi, eax
jmp 0x41f93a
cmp edi, edx
jb case.0x41f890.36
sub edi, edx
jmp 0x41f93a
xor edi, edi
jmp 0x41f93a
add eax, edx
lea esi, [ecx - 1]
cmp eax, ecx
cmovb esi, eax
cmp edi, esi
jae 0x41f92b
mov edi, esi
jmp 0x41f93a
add edi, edx
lea eax, [ecx - 1]
cmp edi, ecx
cmovae edi, eax
jmp 0x41f93a
mov edi, dword [ebp - 0xc]
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x11
call esi
test ax, ax
push 0x10
sets byte [ebp - 1]
call esi
mov ecx, dword [ebx + 0xd0]
mov si, ax
push 0
mov ecx, dword [ecx + 8]
mov edx, dword [ecx + edi*4]
mov ecx, ebx
mov dword [ebx + 0x70], edx
call fcn.0041f1c0
test si, si
jns 0x41f98e
mov edx, dword [ebx + 0x78]
cmp edx, 0xffffffff
je 0x41f98e
lea eax, [ebp - 8]
cmp edi, edx
push eax
lea eax, [ebp - 0xc]
push eax
mov eax, edi
cmovbe eax, edx
cmovbe edx, edi
push 4
push eax
jmp 0x41f9aa
cmp byte [ebp - 1], 0
jne 0x41f9d6
mov eax, dword [ebx + 0x70]
mov edx, edi
mov eax, dword [eax + 0x20]
mov dword [ebx + 0x78], eax
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 0xc]
push eax
push 4
push edi
mov ecx, ebx
call fcn.0041f050
mov edx, dword [ebp - 0xc]
lea eax, [ebp - 0x1c]
push eax
push 1
push dword [ebp - 8]
mov ecx, ebx
call fcn.0041edc0
test al, al
je 0x41f9d6
push 0
lea eax, [ebp - 0x1c]
push eax
push dword [ebx]
call dword [sym.imp.USER32.dll_InvalidateRect]
mov edx, edi
mov ecx, ebx
call fcn.0041f340
mov eax, dword [ebx + 0x1c]
test eax, eax
je 0x41fa14
push 0
push 0
push 0x41c
push eax
call dword [sym.imp.USER32.dll_SendMessageW]
mov dword [ebx + 0xf4], 0xffffffff
mov dword [ebx + 0xf8], 0xffffffff
mov dword [ebx + 0x118], 0xffffffff
pop edi
pop esi
mov al, 1
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4265f0
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
mov edi, ecx
mov esi, dword [edi]
and esi, 0xfffffffe
mov eax, esi
lea edx, [esi + 2]
lock cmpxchg dword [edi], edx
cmp eax, esi
je 0x426631
mov edx, dword [edi]
test dl, 1
jne 0x4266f8
lea ecx, [edx + 2]
mov eax, edx
lock cmpxchg dword [edi], ecx
cmp eax, edx
je 0x426631
mov edx, dword [edi]
test dl, 1
je 0x426615
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0x454ac0
call dword [sym.imp.ntdll.dll_RtlInterlockedPopEntrySList]
mov esi, eax
test esi, esi
je 0x42664b
lock dec dword [0x454ac8]
jmp 0x426664
mov eax, dword [0x454ad0]
add eax, 8
push eax
push 4
push dword [0x454e50]
call dword [sym.imp.ntdll.dll_RtlAllocateHeap]
mov esi, eax
push 0
lea ecx, [esi + 8]
lea eax, [ebp - 4]
mov dword [ecx], 0x426730
push eax
push ecx
push 0x411e50
push 0
push 0
push 0
push 0
push 0
push 0xffffffffffffffff
mov dword [ecx + 4], edi
call dword [sym.imp.ntdll.dll_RtlCreateUserThread]
test eax, eax
jns 0x426710
mov eax, dword [0x454ac8]
push esi
cmp eax, dword [0x454acc]
jae 0x426700
push 0x454ac0
call dword [sym.imp.ntdll.dll_RtlInterlockedPushEntrySList]
lock inc dword [0x454ac8]
mov edx, dword [edi]
and edx, 0xfffffffe
mov eax, edx
lea ecx, [edx - 2]
lock cmpxchg dword [edi], ecx
cmp eax, edx
je 0x4266f8
mov edx, dword [edi]
test dl, 1
jne 0x4266e4
jmp 0x4266d0
lea ecx, [edx - 2]
mov eax, edx
lock cmpxchg dword [edi], ecx
cmp eax, edx
je 0x4266f8
mov edx, dword [edi]
test dl, 1
je 0x4266d0
and edx, 0xfffffffe
or eax, 0xffffffff
lock xadd dword [edx], eax
jne 0x4266f8
lea ecx, [edx + 4]
call fcn.00426b20
pop edi
xor al, al
pop esi
mov esp, ebp
pop ebp
ret
push 0
push dword [0x454e50]
call dword [sym.imp.ntdll.dll_RtlFreeHeap]
jmp 0x4266b2
mov eax, dword [ebp - 4]
test eax, eax
je 0x4266b2
inc dword [edi + 0x2c]
push eax
call dword [sym.imp.ntdll.dll_NtClose]
pop edi
mov al, 1
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x427800
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, dword [ebp + 0xc]
push edi
mov ecx, dword [esi + 4]
cmp ecx, dword [esi + 8]
jb 0x427840
lea edi, [esi + 0xc]
cmp ecx, edi
je 0x427840
push 0
push 0
sub ecx, esi
lea eax, [ebp - 8]
sub ecx, 0xc
push ecx
push edi
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
js 0x427852
mov dword [esi + 4], edi
mov ecx, edi
mov al, byte [ebp + 8]
mov byte [ecx], al
inc dword [esi + 4]
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret 8
pop edi
or eax, 0xffffffff
pop esi
mov esp, ebp
pop ebp
ret 8

Function at 0x427860
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x427877
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
push 0
push 0
push 0x2000
lea edi, [esi + 0xc]
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtReadFile]
test eax, eax
js 0x42786e
mov eax, dword [ebp - 4]
test eax, eax
je 0x42786e
add eax, 0xc
mov dword [esi + 4], edi
add eax, esi
mov dword [esi + 8], eax
xor eax, eax
pop edi
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x4278c0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
mov esi, ecx
push edi
test esi, esi
jne 0x4278d7
lea eax, [ecx + 1]
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [esi + 4]
lea edi, [esi + 0xc]
cmp eax, edi
je 0x42790e
push 0
push 0
sub eax, esi
sub eax, 0xc
push eax
push edi
lea eax, [ebp - 8]
push eax
push 0
push 0
push 0
push dword [esi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
test eax, eax
jns 0x42790b
or eax, 0xffffffff
pop edi
pop esi
mov esp, ebp
pop ebp
ret
mov dword [esi + 4], edi
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x429ae0
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push esi
push edi
mov edi, ecx
mov ecx, 0
push 0
test byte [edi + 4], 8
lea eax, [edi + 8]
cmove eax, ecx
push eax
push dword [ebp + 8]
lea eax, [ebp - 8]
push edx
push eax
push ecx
push ecx
push ecx
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWriteFile]
mov ecx, eax
cmp ecx, 0x103
jne 0x429b2c
push 0
push 0
push dword [edi]
call dword [sym.imp.ntdll.dll_NtWaitForSingleObject]
test eax, eax
js 0x429b43
mov ecx, dword [ebp - 8]
test ecx, ecx
js 0x429b41
mov eax, dword [ebp - 4]
add dword [edi + 8], eax
adc dword [edi + 0xc], 0
or dword [edi + 4], 0x80000000
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret 4
Function at 0x429b50
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
xor edx, edx
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0x1c]
mov edi, dword [esi + 0x18]
sub eax, edi
je 0x429bb0
sub edi, dword [esi + 0x1c]
xor ecx, ecx
mov eax, edi
cdq
add dword [esi + 8], eax
adc dword [esi + 0xc], edx
test byte [esi + 4], 8
jne 0x429ba2
mov eax, dword [esi + 8]
mov dword [ebp - 8], eax
mov eax, dword [esi + 0xc]
push 0xe
mov dword [ebp - 4], eax
lea eax, [ebp - 8]
push 8
push eax
lea eax, [ebp - 0x10]
push eax
push dword [esi]
call dword [sym.imp.ntdll.dll_NtSetInformationFile]
mov ecx, eax
mov edx, eax
test ecx, ecx
js 0x429ba8
mov edx, ecx
test ecx, ecx
jns 0x429bb0
mov eax, ecx
pop edi
pop esi
mov esp, ebp
pop ebp
ret
pop edi
mov dword [esi + 0x18], 0
mov eax, edx
mov dword [esi + 0x1c], 0
pop esi
mov esp, ebp
pop ebp
ret

Function at 0x42b839
Capabilities:
Allocate thread local storage

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsAlloc
push 0x445630
push str.FlsAlloc
push 0
call fcn.0042b7b2
mov esi, eax
add esp, 0x10
test esi, esi
je 0x42b86b
push dword [ebp + 8]
mov ecx, esi
call fcn.0042a708
call esi
pop esi
pop ebp
ret
pop esi
pop ebp
jmp dword [sym.imp.KERNEL32.dll_TlsAlloc]

Function at 0x42b8ad
Capabilities:
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
push str.FlsSetValue
push 0x445660
push str.FlsSetValue
push 3
call fcn.0042b7b2
add esp, 0x10
mov esi, eax
push dword [ebp + 0xc]
push dword [ebp + 8]
test esi, esi
je 0x42b8e1
mov ecx, esi
call fcn.0042a708
call esi
jmp 0x42b8e7
call dword [sym.imp.KERNEL32.dll_TlsSetValue]
pop esi
pop ebp
ret

Function at 0x430006
Capabilities:
Encode data using xor

Disassembly:
mov eax, section..text
nop
nop
nop
push 4
nop
nop
nop
nop
nop
nop
pop edi
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x430072
nop
mov ebx, 0x408ecc
nop
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
xor edx, edx
nop
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
nop
div edi
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
nop
mov esi, 0x103c1964
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
xor edx, edx
nop
nop
push eax
nop
nop
nop
nop
nop
nop
nop
nop
mov eax, ecx
div edi
nop
nop
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x4362a76
nop
nop
nop
nop
xor dword [eax], esi
nop
nop
add eax, edi
nop
nop
loop 0x4300c0
nop
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp 0x401219
Function at 0x4fccc3
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x5587f8]
jne 0x4fcccd
repz ret
jmp fcn.00505d9f

Function at 0x5077ef
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.004facb6
and dword [ebp - 4], 0
cmp dword [0x55971c], 0
mov ebx, eax
jne 0x5078a0
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x507951
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x507951
push eax
call fcn.004fac44
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x55971c], eax
call esi
push eax
call fcn.004fac44
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x559720], eax
call esi
push eax
call fcn.004fac44
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x559724], eax
call esi
push eax
call fcn.004fac44
pop ecx
mov dword [0x55972c], eax
test eax, eax
je 0x5078a0
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.004fac44
pop ecx
mov dword [0x559728], eax
mov eax, dword [0x559728]
cmp eax, ebx
je 0x5078f8
cmp dword [0x55972c], ebx
je 0x5078f8
push eax
call fcn.004facbf
push dword [0x55972c]
mov esi, eax
call fcn.004facbf
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x5078f8
test edi, edi
je 0x5078f8
call esi
test eax, eax
je 0x5078ef
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x5078ef
test byte [ebp - 0xc], 1
jne 0x5078f8
or dword [ebp + 0x10], 0x200000
jmp 0x507931
mov eax, dword [0x559720]
cmp eax, ebx
je 0x507931
push eax
call fcn.004facbf
pop ecx
test eax, eax
je 0x507931
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x507931
mov eax, dword [0x559724]
cmp eax, ebx
je 0x507931
push eax
call fcn.004facbf
pop ecx
test eax, eax
je 0x507931
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x55971c]
call fcn.004facbf
pop ecx
test eax, eax
je 0x507951
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x507953
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x50a830
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x14
mov eax, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
mov edx, dword [ebp + 8]
mov dword [0x557c60], 0
mov byte [0x557c64], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
xor eax, eax
mov dword [0x557c54], 0xde7
mov dword [0x557c58], 0x22fd
mov dword [0x557c5c], 0
mov dword [ebp - 0x1c], eax
jmp 0x50a952
mov eax, 0x100
mov dword [0x557c68], 0
mov dword [0x557c58], 0x1bb5
mov ecx, dword [0x557c60]
mov edx, dword [0x557c5c]
mov esi, dword [ebp - 0x18]
movzx edi, byte [esi + edx]
add edi, ecx
mov dword [ebp - 0x20], eax
mov eax, edx
xor edx, edx
mov ecx, dword [ebp - 0x10]
div ecx
mov ebx, dword [ebp - 0x14]
movzx edx, byte [ebx + edx]
add edi, edx
mov dword [0x557c68], edi
mov dword [0x557c58], 0x938
mov eax, edi
cdq
mov edi, dword [ebp - 0x20]
idiv edi
mov dword [0x557c60], edx
mov ecx, dword [0x557c5c]
mov bl, byte [esi + ecx]
mov byte [0x557c64], bl
mov bl, byte [esi + edx]
mov byte [esi + ecx], bl
mov bl, byte [0x557c64]
mov ecx, dword [0x557c60]
mov byte [esi + ecx], bl
mov dword [0x557c58], 0x42e
mov dword [0x557c54], 0x178b
mov eax, dword [0x557c5c]
add eax, 1
mov dword [0x557c5c], eax
cmp eax, 0x100
jl 0x50a884
jmp 0x50a97a
mov dword [0x557c54], 0xbd0
mov dword [0x557c5c], 0
jmp 0x50a884
mov eax, dword [ebp - 0x1c]
mov ecx, eax
mov dl, cl
mov ecx, dword [ebp - 0x18]
mov byte [ecx + eax], dl
mov eax, dword [0x557c5c]
add eax, 1
mov dword [0x557c5c], eax
cmp eax, 0x100
mov dword [ebp - 0x1c], eax
jl 0x50a952
jmp 0x50a939
mov dword [0x557c54], 0xa6
mov dword [0x557c58], 0x1ca3
add esp, 0x14
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x50a9b0
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x60
mov eax, dword [ebp + 8]
xor ecx, ecx
mov dword [0x557c58], 0x8f6
mov dword [0x557c54], 0xfffff6fa
mov edx, ecx
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x34], edx
mov dword [ebp - 0x38], ecx
jmp 0x50aac9
mov eax, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
mov ebx, edx
add ebx, edi
add ebx, 0x4c
mov edi, dword [ebx]
imul ebx, eax, 0x6c
add edx, ebx
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
mov esi, dword [ebp - 0x44]
add esi, ecx
mov dword [esp], esi
mov dword [esp + 4], edi
mov dword [esp + 8], edx
mov dword [ebp - 0x48], eax
mov dword [ebp - 0x4c], ecx
mov dword [ebp - 0x50], edx
call fcn.0050abb0
mov eax, dword [ebp - 0x50]
mov ecx, dword [ebp - 0x4c]
add eax, ecx
mov edx, dword [ebp - 0x48]
add edx, 1
cmp edx, 0x230
mov dword [ebp - 0x40], eax
mov dword [ebp - 0x3c], edx
jne 0x50a9e2
mov dword [0x557c54], 0x23de
mov eax, dword [ebp - 0x44]
mov dword [esp], eax
mov dword [esp + 4], eax
mov ecx, dword [ebp - 0x54]
mov dword [esp + 8], ecx
call fcn.0050b110
mov eax, dword [ebp - 0x44]
add eax, 0x6ef45
mov ecx, dword [ebp - 0x30]
mov dword [ecx], eax
mov dword [0x557c54], 0x26a1
mov dword [ecx + 4], 0x111e00
mov eax, dword [ebp - 0x44]
add eax, 0x575cd
mov dword [ecx + 8], eax
xor eax, eax
mov ecx, dword [ebp - 0x30]
mov dword [ecx + 0xc], 0x1f70
mov dword [0x557c58], 0x1a84
add esp, 0x60
pop esi
pop edi
pop ebx
pop ebp
ret
mov eax, dword [ebp - 0x38]
mov ecx, dword [ebp - 0x34]
lea edx, section..data
imul esi, eax, 0x6c
mov edi, edx
add edi, esi
add edi, 0x68
mov esi, dword [edi]
imul edi, eax, 0x6c
add edx, edi
add edx, 0x50
movzx edx, word [edx]
xor edx, esi
add edx, ecx
add eax, 1
cmp eax, 0x230
mov ecx, edx
mov dword [ebp - 0x54], edx
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x38], eax
jne 0x50aac9
lea eax, [0x5454a4]
mov ecx, 0xe
lea edx, [ebp - 0x2c]
mov dword [0x557c58], 0xb99
mov dword [esp], edx
mov dword [esp + 4], eax
mov dword [esp + 8], 0xe
mov dword [ebp - 0x58], edx
mov dword [ebp - 0x5c], ecx
call fcn.0050add0
mov eax, dword [0x557c58]
add eax, 0xfffff64c
mov dword [0x557c54], eax
mov eax, dword [ebp - 0x58]
mov dword [esp], eax
call fcn.0050a550
mov ecx, eax
mov dword [0x557c74], eax
mov eax, esp
mov edx, dword [ebp - 0x54]
mov dword [eax + 4], edx
mov dword [eax + 0xc], 4
mov dword [eax + 8], 0x1000
mov dword [eax], 0
call ecx
sub esp, 0x10
xor ecx, ecx
mov edx, dword [0x557c58]
add edx, 0xffffef93
mov dword [0x557c54], edx
mov edx, ecx
mov dword [ebp - 0x44], eax
mov dword [ebp - 0x40], edx
mov dword [ebp - 0x3c], ecx
jmp 0x50a9e2
Function at 0x50ac40
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x20
mov eax, dword [ebp + 0x14]
mov ecx, dword [ebp + 0x10]
mov edx, dword [ebp + 0xc]
mov esi, dword [ebp + 8]
mov dword [0x557c58], 0x12cc
mov dword [0x557c5c], 0
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], ecx
mov dword [ebp - 0x18], edx
mov dword [ebp - 0x1c], esi
xor eax, eax
mov dword [0x557c60], 0
mov dword [0x557c6c], 0
mov ecx, dword [ebp - 0x10]
cmp ecx, 0
mov dword [ebp - 0x20], eax
je 0x50adbc
mov eax, dword [ebp - 0x20]
mov ecx, 0x100
mov dword [0x557c58], 0x79c
mov edx, dword [0x557c5c]
add edx, 1
mov dword [ebp - 0x24], eax
mov eax, edx
cdq
idiv ecx
mov dword [0x557c5c], edx
mov dword [0x557c54], 0x11e9
mov esi, dword [0x557c60]
mov edi, dword [ebp - 0x1c]
movzx edx, byte [edi + edx]
add edx, esi
mov eax, edx
cdq
idiv ecx
mov dword [0x557c60], edx
mov dword [0x557c54], 0x18c
mov ecx, dword [0x557c5c]
mov bl, byte [edi + ecx]
mov byte [0x557c64], bl
mov dword [0x557c54], 0x82
mov ecx, dword [0x557c60]
mov bl, byte [edi + ecx]
mov ecx, dword [0x557c5c]
mov byte [edi + ecx], bl
mov bl, byte [0x557c64]
mov ecx, dword [0x557c60]
mov byte [edi + ecx], bl
mov ecx, dword [0x557c58]
add ecx, 0xffffede2
mov dword [0x557c54], ecx
mov ecx, dword [0x557c5c]
movzx ecx, byte [edi + ecx]
mov edx, dword [0x557c60]
movzx edx, byte [edi + edx]
add edx, ecx
and edx, 0xff
mov dword [0x557c6c], edx
mov dword [0x557c58], 0x9b0
mov dword [0x557c54], 0xeba
mov bl, byte [edi + edx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ebp - 0x24]
movzx esi, byte [ecx + edx]
mov dword [esp], esi
movzx esi, bl
mov dword [esp + 4], esi
call fcn.00401000
mov ecx, dword [ebp - 0x18]
mov edx, dword [ebp - 0x24]
mov byte [ecx + edx], al
mov dword [0x557c54], 0x15cf
add edx, 1
mov esi, dword [ebp - 0x10]
cmp edx, esi
mov dword [ebp - 0x20], edx
jne 0x50ac9d
add esp, 0x20
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x50af50
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
lea eax, [fcn.0050af50]
mov dword [0x557c54], 0x2505
mov dword [ebp - 4], eax
jmp 0x50afa4
mov eax, dword [ebp - 8]
mov ecx, dword [eax + 0x3c]
cmp dword [eax + ecx], 0x4550
jne 0x50af82
mov eax, dword [ebp - 8]
add esp, 0xc
pop ebp
ret
mov eax, dword [ebp - 8]
add eax, 0xfffff000
and eax, 0xfffff000
mov dword [0x557c58], 0x1296
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
mov dword [ebp - 4], eax
jmp 0x50afa4
mov eax, dword [ebp - 4]
cmp word [eax], 0x5a4d
mov dword [ebp - 8], eax
je 0x50af6b
jmp 0x50af82