joyce8/EMBER2024-capa huggingface dataset:
Function at 0x442d40
Capabilities:
Access peb ldr_data
Get number of processors

Disassembly:
push 0xffffffffffffffff
push 0x4fab93
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
push ecx
push ebp
push esi
mov esi, ecx
push edi
mov dword [esp + 0xc], esi
call fcn.004ef726
lea edi, [esi + 0x64]
mov dword [esp + 0x18], 0
mov dword [edi + 4], 0
mov dword [edi], method.CBrush.virtual_0
mov eax, dword [esp + 0x2c]
mov ebp, dword [esp + 0x24]
mov ecx, dword [esp + 0x30]
mov dword [esi + 0x3c], eax
mov eax, ebp
mov dword [esi], method.CEdit.virtual_0
mov dword [esi + 0x40], ecx
mov dword [esi + 0x44], 0
mov ecx, dword [eax]
lea edx, [esi + 0x48]
mov byte [esp + 0x18], 1
mov dword [edx], ecx
mov ecx, dword [eax + 4]
mov dword [edx + 4], ecx
mov ecx, dword [eax + 8]
mov dword [edx + 8], ecx
mov eax, dword [eax + 0xc]
mov ecx, dword [esp + 0x40]
mov dword [edx + 0xc], eax
mov eax, dword [esp + 0x44]
push eax
mov dword [esi + 0x5c], ecx
mov dword [esi + 0x60], eax
call dword [sym.imp.GDI32.dll_CreateSolidBrush_1]
push eax
mov ecx, edi
call fcn.004f4d74
mov edx, dword [esp + 0x28]
mov eax, dword [esp + 0x20]
push edx
push eax
push ebp
push 0x50800044
mov ecx, esi
call fcn.004f6293
test eax, eax
je 0x442e5c
mov ecx, dword [esp + 0x3c]
call fcn.004f4da1
mov ecx, dword [esi + 0x1c]
mov ebp, dword [sym.imp.USER32.dll_SendMessageA_1]
push 0
push eax
push 0x30
push ecx
mov dword [esi + 0x58], eax
call ebp
mov edi, dword [esp + 0x34]
test edi, edi
je 0x442e20
push edi
mov ecx, esi
call fcn.004f240a
mov ecx, esi
call fcn.00442fc0
cmp dword [esp + 0x38], 1
jne 0x442e55
or ecx, 0xffffffff
xor eax, eax
repne scasb al, byte es:[edi]
mov edx, dword [esi + 0x1c]
push 0xffffffffffffffff
not ecx
dec ecx
push ecx
push 0xb1
push edx
call ebp
mov eax, dword [esi + 0x1c]
push 0
push 0
push 0xb7
push eax
call ebp
mov ecx, esi
call fcn.004f2545
mov ecx, dword [esp + 0x10]
mov eax, esi
pop edi
pop esi
pop ebp
mov dword fs:[0], ecx
add esp, 0x10
ret 0x28
Function at 0x444f00
Capabilities:
Check for software breakpoints

Disassembly:
push esi
mov esi, dword [esp + 8]
cmp dword [esi + 0x10], 0xca
jne 0x444f33
push esi
call fcn.00453280
mov eax, dword [esi + 0x40]
add esp, 4
test eax, eax
je 0x444f2c
mov dword [esi + 0x10], 0xcf
mov eax, 1
pop esi
ret
mov dword [esi + 0x10], 0xcb
mov eax, dword [esi + 0x10]
cmp eax, 0xcb
jne 0x444fb9
mov eax, dword [esi + 0x1b0]
mov ecx, dword [eax + 0x10]
test ecx, ecx
je 0x444fa2
mov eax, dword [esi + 8]
test eax, eax
je 0x444f57
push esi
call dword [eax]
add esp, 4
mov ecx, dword [esi + 0x1b0]
push esi
call dword [ecx]
add esp, 4
test eax, eax
je 0x444f9e
cmp eax, 2
je 0x444fa2
mov ecx, dword [esi + 8]
test ecx, ecx
je 0x444f4a
cmp eax, 3
je 0x444f7d
cmp eax, 1
jne 0x444f4a
mov eax, dword [ecx + 4]
inc eax
mov dword [ecx + 4], eax
mov eax, dword [esi + 8]
mov ecx, dword [eax + 8]
mov edx, dword [eax + 4]
cmp edx, ecx
jl 0x444f4a
mov edx, dword [esi + 0x13c]
add edx, ecx
mov dword [eax + 8], edx
jmp 0x444f4a
xor eax, eax
pop esi
ret
mov eax, dword [esi + 0x90]
push esi
mov dword [esi + 0x98], eax
call fcn.00444fe0
add esp, 4
pop esi
ret
cmp eax, 0xcc
je 0x444fc8
mov ecx, dword [esi]
push esi
call dword [ecx]
add esp, 4
push esi
call fcn.00444fe0
add esp, 4
pop esi
ret

Function at 0x445840
Capabilities:
Terminate process

Disassembly:
mov eax, dword [esp + 4]
test eax, eax
je 0x445861
mov ecx, dword [eax + 0x40]
test ecx, ecx
je 0x445861
mov eax, dword [eax + 0x44]
test eax, eax
je 0x445861
mov edx, dword [esp + 8]
push edx
push eax
call ecx
add esp, 8
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess_1]
Function at 0x445cb0
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov ecx, dword [esp + 8]
test ecx, ecx
jne 0x445cbb
xor eax, eax
ret
mov eax, dword [esp + 4]
push ebx
push esi
mov esi, dword [esp + 0x14]
cmp esi, 8
not eax
jb 0x445dbe
push edi
mov edi, esi
shr edi, 3
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
mov ebx, eax
shr ebx, 8
mov eax, dword [edx*4 + 0x5025d8]
sub esi, 8
xor eax, ebx
inc ecx
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5025d8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5025d8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5025d8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5025d8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov edx, dword [edx*4 + 0x5025d8]
shr eax, 8
xor edx, eax
inc ecx
mov eax, edx
and eax, 0xff
xor eax, ebx
xor ebx, ebx
mov bl, byte [ecx + 1]
mov eax, dword [eax*4 + 0x5025d8]
shr edx, 8
xor eax, edx
inc ecx
mov edx, eax
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5025d8]
xor eax, edx
inc ecx
dec edi
jne 0x445cd6
pop edi
test esi, esi
je 0x445de0
mov edx, eax
xor ebx, ebx
mov bl, byte [ecx]
and edx, 0xff
xor edx, ebx
shr eax, 8
mov edx, dword [edx*4 + 0x5025d8]
xor eax, edx
inc ecx
dec esi
jne 0x445dc2
pop esi
pop ebx
not eax
ret
Function at 0x45fa50
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x28
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], esp
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x45fa89
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0x18], eax
fild dword [ebp - 0x18]
fstp qword [ebp - 0x18]
fld qword [ebp - 0x18]
fmul qword [0x52b751]
fstp qword [ebp - 0x20]
fld qword [ebp - 0x20]
fadd qword [0x52b751]
fstp qword [ebp - 0x28]
fld qword [ebp - 0x28]
call fcn.0045fa29
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.004a5450
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x45fae8
push ebx
call fcn.004a49ce
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push dword [ebp - 4]
mov eax, dword [ebp - 8]
test eax, eax
je 0x45fafc
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.user32.dll_GetWindowTextW]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x45fb1c
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x45fb33
mov eax, 0x52b759
jmp 0x45fb52
mov eax, dword [ebp - 8]
test eax, eax
je 0x45fb4d
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004a49c8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x45fb52
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x45fb63
push ebx
call fcn.004a49ce
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4
Function at 0x46159e
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov dword [ebp - 0xc], 0
push 0x80000301
push 0
push 0x104
push 1
mov ebx, 0x1bc
call fcn.004a5450
add esp, 0x10
mov dword [ebp - 0x10], eax
mov eax, dword [ebp - 0x10]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4615f1
push ebx
call fcn.004a49ce
add esp, 4
pop eax
mov dword [ebp - 4], eax
cmp dword [ebp + 8], 0
jne 0x461606
mov dword [ebp + 8], 3
cmp dword [ebp + 8], 1
jl 0x461621
cmp dword [ebp + 8], 8
jg 0x461621
mov eax, 1
jmp 0x461626
mov eax, 0
test eax, eax
je 0x4616f1
mov eax, dword [ebp + 8]
cmp eax, 1
jl 0x46163b
cmp eax, 9
jl 0x461648
push 9
call fcn.004a49d4
add esp, 4
dec eax
call 0x46164e
pop ebx
add ebx, dword [eax*4 + 0x52b79b]
jmp ebx
cmp dword [ebp + 8], 9
jne 0x461741
mov dword [ebp - 0x10], esp
push 0x104
mov eax, dword [ebp - 4]
test eax, eax
je 0x46170d
add eax, 8
push eax
call dword [sym.imp.kernel32.dll_GetWindowsDirectoryW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x46172a
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x461833
cmp dword [ebp + 8], 0xa
jne 0x461791
mov dword [ebp - 0x10], esp
push 0x104
mov eax, dword [ebp - 4]
test eax, eax
je 0x46175d
add eax, 8
push eax
call dword [0x52ff4c]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x46177a
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x461833
cmp dword [ebp + 8], 0xb
jne 0x4617e1
mov dword [ebp - 0x10], esp
mov eax, dword [ebp - 4]
test eax, eax
je 0x4617a8
add eax, 8
push eax
push 0x104
call dword [sym.imp.kernel32.dll_GetTempPathW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4617ca
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
mov eax, 0
setg al
mov dword [ebp - 0xc], eax
jmp 0x461833
cmp dword [ebp + 8], 0xc
jne 0x461833
mov dword [ebp - 0x10], esp
push 0
push 0x20
mov eax, dword [ebp - 4]
test eax, eax
je 0x461802
add eax, 8
push eax
push 0
call dword [sym.imp.shell32.dll_SHGetSpecialFolderPathW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x461824
push 6
call fcn.004a49d4
add esp, 4
test eax, eax
je 0x461833
mov dword [ebp - 0xc], 1
mov eax, 0x52b759
jmp 0x46183d
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x46184e
push ebx
call fcn.004a49ce
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x481094
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
cmp dword [ebp + 8], 0
jle 0x48111b
push dword [ebp + 0xc]
call fcn.00466517
mov dword [ebp - 4], eax
push reloc.WS2_32.dll_getpeername
push 0
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
jne 0x4810c7
mov eax, 0x52b763
push eax
push 1
mov ebx, 0x194
call fcn.004a5530
add esp, 0x10
mov dword [ebp - 8], eax
mov dword [ebp - 0xc], esp
push 0
mov eax, 0
mov dword [ebp - 0x10], eax
lea eax, [ebp - 0x10]
push eax
push dword [ebp - 8]
push dword [ebp - 4]
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_WriteFile]
nop
nop
nop
nop
cmp dword [ebp - 0xc], esp
je 0x481116
push 6
call fcn.004a49d4
add esp, 4
jmp 0x481125
mov eax, 0
jmp 0x481125
mov esp, ebp
pop ebp
ret 8

Function at 0x4811d5
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
cmp dword [ebp + 8], 0
jg 0x4811f9
mov eax, 0x52b763
jmp 0x4812bb
push 0x80000301
push 0
push dword [ebp + 0xc]
push 1
mov ebx, 0x1bc
call fcn.004a5450
add esp, 0x10
mov dword [ebp - 8], eax
mov eax, dword [ebp - 8]
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x48122c
push ebx
call fcn.004a49ce
add esp, 4
pop eax
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0
mov eax, 0
mov dword [ebp - 0xc], eax
lea eax, [ebp - 0xc]
push eax
push dword [ebp + 0xc]
mov eax, dword [ebp - 4]
test eax, eax
je 0x481251
add eax, 8
push eax
push dword [ebp + 8]
call dword [sym.imp.kernel32.dll_ReadFile]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x481271
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
jne 0x48129c
push 0
push 1
push 2
push dword [ebp + 8]
call fcn.004812d3
mov eax, 0x52b763
jmp 0x4812bb
mov eax, dword [ebp - 4]
test eax, eax
je 0x4812b6
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004a49c8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x4812bb
push eax
mov ebx, dword [ebp - 4]
test ebx, ebx
je 0x4812cc
push ebx
call fcn.004a49ce
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 8
Function at 0x48879a
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov dword [ebp - 4], esp
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x4887b2
add eax, 8
push eax
call dword [sym.imp.shlwapi.dll_PathFileExistsW]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x4887cf
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 1
mov eax, 0
sete al
jmp 0x4887e3
mov esp, ebp
pop ebp
ret 4

Function at 0x4889d8
Capabilities:
Create process on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
cmp dword [ebp + 0x14], 1
jne 0x4889f7
mov dword [ebp + 0x14], 0
jmp 0x488a14
cmp dword [ebp + 0x14], 2
jne 0x488a0d
mov dword [ebp + 0x14], 7
jmp 0x488a14
mov dword [ebp + 0x14], 1
mov dword [ebp - 4], esp
push dword [ebp + 0x14]
mov eax, 0x52b759
test eax, eax
je 0x488a26
add eax, 8
push eax
mov ebx, dword [ebp + 0xc]
mov eax, dword [ebx]
test eax, eax
je 0x488a33
add eax, 8
push eax
mov ebx, dword [ebp + 8]
mov eax, dword [ebx]
test eax, eax
je 0x488a40
add eax, 8
push eax
mov eax, 0x52e6ab
test eax, eax
je 0x488a4d
add eax, 8
push eax
push 0
call dword [sym.imp.shell32.dll_ShellExecuteW]
nop
nop
nop
nop
cmp dword [ebp - 4], esp
je 0x488a6f
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 2
jne 0x488a8b
mov eax, 0
jmp 0x488a95
mov eax, 1
jmp 0x488a95
mov esp, ebp
pop ebp
ret 0x14
Function at 0x491d06
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 4], 0
mov dword [ebp - 4], 0
mov dword [ebp - 8], esp
push 0x11
call dword [sym.imp.user32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x491d41
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004a51b0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x491da4
push 0x80000301
push 0
push 1
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004a5a20
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x10
call dword [sym.imp.user32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x491dc8
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004a51b0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x491e2b
push 0x80000301
push 0
push 2
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004a5a20
add esp, 0x1c
mov dword [ebp - 4], eax
mov dword [ebp - 8], esp
push 0x12
call dword [sym.imp.user32.dll_GetAsyncKeyState]
nop
nop
nop
nop
cmp dword [ebp - 8], esp
je 0x491e4f
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0xc], eax
push 0x80000301
push 0
push 0x8000
push 0x80000301
push 0
push dword [ebp - 0xc]
push 2
mov ebx, 0xc4
call fcn.004a51b0
add esp, 0x1c
mov dword [ebp - 0x14], eax
cmp dword [ebp - 0x14], 0
je 0x491eb2
push 0x80000301
push 0
push 4
push 0x80000301
push 0
push dword [ebp - 4]
push 2
mov ebx, 0xc8
call fcn.004a5a20
add esp, 0x1c
mov dword [ebp - 4], eax
mov eax, dword [ebp - 4]
jmp 0x491eba
mov esp, ebp
pop ebp
ret
Function at 0x4950f9
Capabilities:
Get graphical window text

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
mov dword [ebp - 4], 0
mov dword [ebp - 8], 0
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.user32.dll_GetWindowTextLengthW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x49513f
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0x1c], eax
fild dword [ebp - 0x1c]
fstp qword [ebp - 0x1c]
fld qword [ebp - 0x1c]
fmul qword [0x52b751]
fstp qword [ebp - 0x24]
fld qword [ebp - 0x24]
fadd qword [0x52b751]
fstp qword [ebp - 0x2c]
fld qword [ebp - 0x2c]
call fcn.0045fa29
mov dword [ebp - 4], eax
push 0x80000301
push 0
push dword [ebp - 4]
push 1
mov ebx, 0x1bc
call fcn.004a5450
add esp, 0x10
mov dword [ebp - 0xc], eax
mov eax, dword [ebp - 0xc]
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x49519e
push ebx
call fcn.004a49ce
add esp, 4
pop eax
mov dword [ebp - 8], eax
mov ebx, dword [ebp + 8]
mov ebx, dword [ebx]
add ebx, 4
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], esp
push dword [ebp - 4]
mov eax, dword [ebp - 8]
test eax, eax
je 0x4951bd
add eax, 8
push eax
mov ebx, dword [ebp - 0xc]
push dword [ebx]
call dword [sym.imp.user32.dll_GetWindowTextW]
nop
nop
nop
nop
cmp dword [ebp - 0x10], esp
je 0x4951df
push 6
call fcn.004a49d4
add esp, 4
mov dword [ebp - 0x18], eax
cmp dword [ebp - 0x18], 0
jne 0x4951f6
mov eax, 0x52b759
jmp 0x495215
mov eax, dword [ebp - 8]
test eax, eax
je 0x495210
push eax
mov eax, dword [eax + 4]
add eax, 8
push eax
call fcn.004a49c8
pop ecx
pop esi
mov edi, eax
rep movsb byte es:[edi], byte [esi]
jmp 0x495215
push eax
mov ebx, dword [ebp - 8]
test ebx, ebx
je 0x495226
push ebx
call fcn.004a49ce
add esp, 4
pop eax
mov esp, ebp
pop ebp
ret 4

Function at 0x4b83d7
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 0x4b8419
call fcn.004bb4b6
mov esi, dword [eax + 0xc]
push 0xf0
push dword [esp + 0x14]
push esi
call dword [sym.imp.kernel32.dll_FindResourceA]
cmp eax, edi
je 0x4b8419
push eax
push esi
call dword [sym.imp.kernel32.dll_LoadResource]
cmp eax, edi
jne 0x4b8410
xor eax, eax
jmp 0x4b8421
push eax
call dword [sym.imp.kernel32.dll_LockResource]
mov edi, eax
push edi
mov ecx, ebx
call fcn.004b8427
pop edi
pop esi
pop ebx
ret 4
Function at 0x4c0d60
Capabilities:
Read file on windows

Disassembly:
push esi
mov esi, ecx
push edi
mov eax, dword [esi + 0xa4]
test eax, eax
je 0x4c0da7
mov edi, dword [esp + 0x10]
push edi
call fcn.004edeb5
mov ecx, dword [esp + 0x10]
mov dword [ecx], eax
mov dword [esi + 0xa8], eax
mov eax, dword [esi + 0xa4]
mov ecx, dword [ecx]
push eax
push edi
push 1
push ecx
call fcn.004d8661
sub eax, edi
add esp, 0x14
neg eax
sbb eax, eax
pop edi
and eax, 0x21
pop esi
ret 0xc
mov ecx, dword [esi + 0x2c]
test ecx, ecx
je 0x4c0ddb
mov eax, dword [esi + 0x18]
test eax, eax
je 0x4c0ddb
mov edx, dword [ecx]
call dword [edx + 0x40]
test al, al
je 0x4c0dc5
mov eax, dword [esi + 0x7c]
test eax, eax
jg 0x4c0ddb
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
push eax
push ecx
mov ecx, esi
call fcn.004c0ea0
pop edi
pop esi
ret 0xc
mov ecx, dword [esi + 0x18]
push ebx
mov edx, dword [ecx]
call dword [edx + 0x18]
mov ecx, dword [esi + 0x14]
mov edi, eax
mov eax, dword [ecx]
call dword [eax + 0x18]
mov ebx, eax
cmp ebx, 0x5a
jle 0x4c0e0e
cmp edi, 0x5a
jle 0x4c0e0e
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
call dword [edx + 0x44]
test al, al
je 0x4c0e0e
mov ecx, dword [esi + 0x18]
mov eax, dword [ecx]
call dword [eax + 0x14]
mov eax, dword [esi + 0x7c]
imul eax, dword [esi + 0x3c]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
lea eax, [eax + eax*4]
shl eax, 3
cdq
and edx, 0x1fff
add eax, edx
mov edi, eax
mov eax, dword [esi + 0x40]
sar edi, 0xd
cmp edi, eax
jbe 0x4c0e3d
cdq
sub eax, edx
mov edi, eax
sar edi, 1
mov al, byte [esp + 0x18]
test al, al
je 0x4c0e83
cmp ebx, 1
jge 0x4c0e83
mov ecx, dword [esi + 0x18]
mov edx, edi
shr edx, 1
cmp dword [ecx + 0xc], edx
jae 0x4c0e83
mov al, byte [esi + 0x1d]
test al, al
jne 0x4c0e83
mov ebx, dword [sym.imp.KERNEL32.dll_Sleep]
push 0x3e8
call ebx
mov ecx, dword [esi + 0x18]
cmp dword [ecx + 0xc], edi
jae 0x4c0e83
mov eax, dword [ecx]
call dword [eax + 0x18]
cmp eax, 0x5a
jg 0x4c0e83
mov al, byte [esi + 0x1d]
test al, al
je 0x4c0e63
mov ecx, dword [esp + 0x14]
mov edx, dword [esp + 0x10]
push ecx
push edx
mov ecx, esi
call fcn.004c0ea0
pop ebx
pop edi
pop esi
ret 0xc

Function at 0x4c2070
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, ecx
mov al, byte [ebp + 0x24]
test al, al
jne 0x4c2097
mov eax, dword [esp + 0x10]
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
push eax
push ecx
push 1
push edx
call fcn.004d8661
add esp, 0x10
pop ebp
ret 0xc
push ebx
push esi
mov esi, dword [esp + 0x18]
push edi
push esi
call fcn.004d898f
mov ebx, dword [esp + 0x18]
mov edi, eax
mov eax, dword [esp + 0x1c]
push esi
push eax
push 1
push ebx
call fcn.004d8661
mov esi, eax
add esp, 0x14
test esi, esi
jbe 0x4c20cb
push esi
push ebx
push edi
mov ecx, ebp
call fcn.004c2220
mov eax, esi
pop edi
pop esi
pop ebx
pop ebp
ret 0xc
Function at 0x4c20e0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x559b24]
xor edx, edx
cmp eax, edx
jne 0x4c2106
xor eax, eax
mov byte [eax + 0x559a24], al
inc eax
cmp eax, 0x100
jl 0x4c20ee
mov dword [0x559b24], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x559a24
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4c2197
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 0x4c216a
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 0x4c2138
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4c21a0
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 0x4c21f3
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 0x4c21da
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 0x4c8ba0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4faefe
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.004c94c0
push 0x10
mov dword [esp + 0x18], 0
mov dword [edi], 0x50b314
call fcn.004edeb5
mov esi, eax
add esp, 4
mov dword [esp + 0x20], esi
mov al, 1
test esi, esi
mov byte [esp + 0x14], al
je 0x4c8c33
push 4
mov byte [esi + 8], al
mov dword [esi], 0
mov dword [esi + 4], 0
call fcn.004edeb5
add esp, 4
mov dword [esp + 0x1c], eax
test eax, eax
mov byte [esp + 0x14], 2
je 0x4c8c2c
push 0
mov ecx, eax
call fcn.004bfd20
mov dword [esi + 0xc], eax
jmp 0x4c8c35
xor eax, eax
mov dword [esi + 0xc], eax
jmp 0x4c8c35
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 0x4e10a4
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x54c1d4]
jne 0x4e10ae
repz ret
jmp fcn.004e87e3