joyce8/EMBER2024-capa huggingface dataset:
Function at 0x468426
Capabilities:
Print debug messages

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, ecx
mov dword [ebp - 4], edi
test esi, esi
jne 0x468540
cmp dword [ebx], 0x74
je 0x468540
mov ecx, dword [0x54dd2c]
test ecx, ecx
je 0x46845c
call fcn.004395fd
mov esi, eax
jmp 0x46845e
xor esi, esi
push 0x2800
call fcn.0049293e
mov edi, eax
mov dword [esp], 0x5000
call fcn.0049293e
mov dword [esp], str.set_default_char_format_failed__only_CHARFORMAT2W_can_be_set_for_default_char_format
mov ebx, eax
push 0xffffffffffffffff
push 0x2800
push ebx
call fcn.0044d27c
add esp, 0x10
xor eax, eax
push eax
push eax
push eax
push eax
push 0xffffffffffffffff
push ebx
push eax
push eax
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
cmp eax, 0x2800
jae 0x4684b8
xor ecx, ecx
push ecx
push ecx
push eax
push edi
push 0xffffffffffffffff
push ebx
push ecx
push ecx
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push ebx
call fcn.00492939
pop ecx
test esi, esi
je 0x4684f7
mov eax, dword [esi]
mov ecx, esi
push 3
push 0
call dword [eax + 0x2c]
test al, al
je 0x4684f7
push dword [ebp + 4]
mov eax, dword [esi]
mov ecx, esi
push str.SOUI::SRichEdit::OnSetCharFormat
push 0x550
push str.srccontrolSRichEdit.cpp
push edi
push str.soui
push 3
push 0
call dword [eax + 0x34]
jmp 0x468535
mov ebx, 0x2800
push ebx
call fcn.0049293e
mov dword [esp], 0x550
mov esi, eax
push str.srccontrolSRichEdit.cpp
push str.SOUI::SRichEdit::OnSetCharFormat
push edi
push str._s__s__s:_d_n
push 0xffffffffffffffff
push ebx
push esi
call fcn.0044d25d
add esp, 0x20
push esi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push esi
call fcn.00492939
pop ecx
push edi
call fcn.00492939
pop ecx
xor eax, eax
jmp 0x468581
mov eax, dword [edi + 0x37c]
push 0
push ebx
push esi
mov ecx, dword [eax + 0xc]
push dword [ebp + 8]
mov eax, dword [ecx]
call dword [eax + 0xc]
test esi, esi
jne 0x46857e
mov eax, dword [ebp - 4]
add edi, 0x214
push 0x1d
pop ecx
mov esi, ebx
mov edx, 0x20000
mov eax, dword [eax + 0x37c]
rep movsd dword es:[edi], dword [esi]
mov ecx, dword [eax + 0xc]
push edx
push edx
mov eax, dword [ecx]
call dword [eax + 0x4c]
xor eax, eax
inc eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc
Function at 0x46a085
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x28
mov eax, 0x4fbf4b
call fcn.0041c5e8
mov ebx, ecx
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call esi
push 0x11
mov edi, eax
call esi
and eax, 0x8000
push 0x10
mov dword [ebp - 0x10], eax
call esi
mov ecx, dword [ebp - 0x10]
and eax, 0x8000
and edi, 0x8000
jne 0x46a0eb
test ecx, ecx
jne 0x46a0d1
test eax, eax
jne 0x46a0ca
inc eax
jmp 0x46a11f
push 2
pop eax
push 4
jmp 0x46a11e
test eax, eax
jne 0x46a0dc
push 4
pop eax
push 2
jmp 0x46a11e
push 6
pop eax
push 0x10
mov word [ebx + 0x16c], ax
pop eax
jmp 0x46a126
test ecx, ecx
jne 0x46a0fd
test eax, eax
jne 0x46a0f9
push 8
pop eax
inc ecx
jmp 0x46a11f
test ecx, ecx
je 0x46a10c
test eax, eax
jne 0x46a108
push 0x40
pop eax
push 3
jmp 0x46a11e
test ecx, ecx
jne 0x46a117
test eax, eax
je 0x46a117
push 0x20
pop eax
push 5
jmp 0x46a11e
mov eax, 0x80
push 7
pop ecx
mov word [ebx + 0x16c], cx
test word [ebx + 0x170], ax
je 0x46a13d
mov ax, word [ebx + 0x172]
mov word [ebx + 0x16c], ax
push ebx
lea ecx, [ebp - 0x34]
call fcn.0043e187
mov dword [ebp - 0x34], 0x50ec98
mov dword [ebp - 0x2c], 0x50ecac
mov ax, word [ebx + 0x16c]
lea ecx, [ebp - 0x34]
and dword [ebp - 4], 0
mov word [ebp - 0x12], ax
mov ax, word [ebx + 0x16e]
mov word [ebp - 0x14], ax
mov eax, dword [ebx]
push ecx
mov ecx, ebx
call dword [eax + 0x94]
call fcn.0041c5c2
ret
Function at 0x47f026
Capabilities:
Log keystrokes
Parse credit card information

Disassembly:
push 4
mov eax, 0x4ff27f
call fcn.0041c5e8
and dword [ebp - 0x10], 0
mov esi, dword [ebp + 8]
mov eax, dword [0x5468a4]
mov dword [esi], eax
mov ecx, dword [ebp + 0xc]
xor ebx, ebx
and dword [ebp - 4], 0
inc ebx
movzx edx, cx
mov dword [ebp - 0x10], ebx
push 2
pop edi
cmp edx, 0x25
ja 0x47f0cf
je 0x47f0c5
mov eax, edx
sub eax, 0xd
je 0x47f0bb
sub eax, 0xe
je 0x47f0b1
sub eax, 5
je 0x47f0a7
sub eax, ebx
je 0x47f09d
sub eax, ebx
je 0x47f093
sub eax, ebx
je 0x47f089
sub eax, ebx
jne 0x47f106
push str.Home
jmp 0x47f23d
push 0x51190c
jmp 0x47f23d
push str.PageDown
jmp 0x47f23d
push str.PageUp
jmp 0x47f23d
push str.Space
jmp 0x47f23d
push 0x5118c0
jmp 0x47f23d
push 0x5118c8
jmp 0x47f23d
push str.Left
jmp 0x47f23d
mov eax, edx
sub eax, 0x26
je 0x47f238
sub eax, 1
je 0x47f231
sub eax, 1
je 0x47f22a
sub eax, edi
je 0x47f223
sub eax, 3
je 0x47f21c
sub eax, 1
je 0x47f215
cmp cx, 0x30
jb 0x47f112
cmp cx, 0x39
jbe 0x47f11b
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x47f132
movzx eax, cx
mov ecx, esi
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.00434dd6
jmp 0x47f244
lea eax, [ecx - 0x60]
cmp ax, 9
ja 0x47f156
lea eax, [edx - 0x60]
push eax
push str.Num__d
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.0043568c
add esp, 0x10
mov dword [ebp - 4], ebx
jmp 0x47f1a8
cmp cx, 0x6a
jne 0x47f166
push 0x511970
jmp 0x47f23d
cmp cx, 0x6b
jne 0x47f176
push str.Num_
jmp 0x47f23d
cmp cx, 0x6e
jne 0x47f186
push str.Num_Del
jmp 0x47f23d
lea eax, [ecx - 0x70]
cmp ax, 0xb
ja 0x47f1c4
lea eax, [edx - 0x6f]
push eax
push 0x511998
lea eax, [ebp + 0xc]
push eax
push esi
call fcn.0043568c
add esp, 0x10
mov dword [ebp - 4], edi
mov ecx, dword [ebp + 0xc]
add ecx, 0xfffffff4
cmp ecx, dword [0x5468a0]
je 0x47f244
call fcn.004115c2
jmp 0x47f244
push edi
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
mov cl, al
movsx eax, cl
cmp eax, 0x3d
jg 0x47f1ee
je 0x47f1fd
cmp eax, 0x27
je 0x47f1fd
cmp eax, 0x2b
jle 0x47f244
cmp eax, 0x2f
jle 0x47f1fd
cmp eax, 0x3b
je 0x47f1fd
jmp 0x47f244
cmp eax, 0x5b
jl 0x47f244
cmp eax, 0x5d
jle 0x47f1fd
cmp eax, 0x60
jne 0x47f244
movsx ax, cl
mov ecx, esi
movzx eax, ax
mov dword [ebp + 0xc], eax
lea eax, [ebp + 0xc]
push eax
push ebx
call fcn.00443d41
jmp 0x47f244
push str.Delete
jmp 0x47f23d
push str.Insert
jmp 0x47f23d
push str.Print
jmp 0x47f23d
push str.Down
jmp 0x47f23d
push str.Right
jmp 0x47f23d
push 0x5118d4
mov ecx, esi
call fcn.00408d10
mov eax, esi
call fcn.0041c5c2
ret

Function at 0x47fc36
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
je 0x47fc43
xor eax, eax
jmp 0x47fc71
push dword [ecx + 4]
call fcn.0045203e
pop ecx
test eax, eax
je 0x47fc5e
mov edx, dword [eax]
mov ecx, eax
call dword [edx + 0x98]
test al, 2
jne 0x47fc3f
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor eax, 0x8000
shr eax, 0xf
pop ebp
ret 4
Function at 0x47fd9c
Capabilities:
Log keystrokes via polling

Disassembly:
push 4
mov eax, 0x4ff2c5
call fcn.0041c5e8
mov ebx, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.0047fc36
test eax, eax
je 0x47fdd7
push 0x10
call dword [sym.imp.USER32.dll_GetKeyState]
shr eax, 0xf
mov ecx, ebx
and al, 1
movzx eax, al
push eax
call fcn.0047f7f1
xor eax, eax
inc eax
jmp 0x47fed9
push dword [ebx + 4]
call fcn.0045203e
mov esi, eax
mov dword [ebp - 0x10], esi
pop ecx
test esi, esi
je 0x47fe83
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
je 0x47fe83
cmp edi, 0x25
je 0x47fe10
cmp edi, 0x27
je 0x47fe1e
cmp edi, 0x26
je 0x47fe10
cmp edi, 0x28
jne 0x47fe83
cmp edi, 0x27
je 0x47fe1e
cmp edi, 0x28
je 0x47fe1e
push 2
jmp 0x47fe20
push 3
pop edi
jmp 0x47fe2e
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x47fe6d
push edi
mov ecx, esi
call fcn.0043fe24
mov esi, eax
test esi, esi
jne 0x47fe23
mov ecx, dword [ebp - 0x10]
cmp edi, 3
setne al
push eax
call fcn.0043fb11
mov ecx, eax
jmp 0x47fe5d
mov edx, dword [esi]
mov ecx, esi
call dword [edx + 0x64]
test eax, eax
jne 0x47fe6d
push edi
mov ecx, esi
call fcn.0043fe24
mov esi, eax
test esi, esi
jne 0x47fe4f
jmp 0x47fdcf
push 1
mov ecx, esi
call fcn.0043fd49
push eax
mov ecx, ebx
call fcn.0048013a
jmp 0x47fdcf
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x10
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x12
call esi
shr eax, 0xf
and al, 1
movzx eax, al
push eax
push 0x11
call esi
shr eax, 0xf
lea ecx, [ebp + 8]
and al, 1
movzx eax, al
push eax
push edi
call fcn.0047eed6
and dword [ebp - 4], 0
lea eax, [ebp + 8]
push eax
mov ecx, ebx
call fcn.0047ff2d
xor ebx, ebx
lea ecx, [ebp + 8]
test al, al
setne bl
call fcn.00491db0
mov eax, ebx
call fcn.0041c5c2
ret 4

Function at 0x4877ec
Capabilities:
Hide graphical window

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, ecx
push dword [esi + 0x244]
call dword [sym.imp.USER32.dll_IsWindowVisible]
test eax, eax
je 0x487854
mov ecx, esi
call fcn.00487859
push 0
push dword [esi + 0x244]
call dword [sym.imp.USER32.dll_ShowWindow]
mov ecx, dword [esi + 0x3a8]
test ecx, ecx
je 0x48782f
push 0
call fcn.00442424
and dword [esi + 0x3a8], 0
mov ecx, dword [0x54de6c]
lea ecx, [ecx + 8]
call fcn.00488543
mov ecx, dword [esi + 0x3a0]
test ecx, ecx
je 0x487854
pop esi
mov ecx, dword [ecx + 0x170]
pop ebp
jmp fcn.00488311
pop esi
pop ebp
ret 4
Function at 0x48af6b
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push ecx
push ebx
mov ebx, dword [ebp + 0x10]
push edi
xor edi, edi
test ebx, ebx
jne 0x48af8e
mov eax, dword [ebp + 8]
mov dword [eax + 8], edi
mov dword [eax], 1
mov dword [eax + 4], edi
jmp 0x48b02b
push esi
lea eax, [ebp + 0x10]
mov dword [ebp + 0x10], edi
push eax
push ebx
call fcn.0048ab81
mov esi, eax
pop ecx
pop ecx
test esi, esi
je 0x48afb1
push ebx
call fcn.00497838
mov eax, dword [ebp + 8]
mov dword [eax], esi
jmp 0x48b007
mov esi, dword [ebp + 0x10]
xor eax, eax
inc eax
test esi, esi
cmovne eax, esi
push eax
call dword [0x5468c8]
mov dword [ebp - 4], eax
pop ecx
push ebx
test eax, eax
jne 0x48afdc
call fcn.00497838
mov eax, dword [ebp + 8]
mov dword [eax], 3
jmp 0x48b007
push esi
push 1
push eax
call fcn.00497a84
push ebx
mov esi, eax
call fcn.00497838
add esp, 0x14
cmp esi, dword [ebp + 0x10]
je 0x48b010
push dword [ebp - 4]
call dword [0x5468cc]
mov eax, dword [ebp + 8]
mov dword [eax], 2
pop ecx
mov dword [eax + 8], edi
mov dword [eax + 4], edi
jmp 0x48b02a
push dword [ebp + 0x18]
mov ecx, dword [ebp + 0xc]
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp - 4]
push dword [ebp + 8]
call fcn.0048af16
mov eax, dword [ebp + 8]
pop esi
pop edi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x4aa119
Capabilities:
Read file on windows

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004a9f98

Function at 0x4ad0bd
Capabilities:
Set environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
pop ebp
jmp fcn.004acd7d
Function at 0x4b7ad3
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.004c34dd
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x4b7b00
xor eax, eax
jmp 0x4b7bfc
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x48fd6d
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
call fcn.004b8b7e
push esi
push eax
call fcn.0048fd80
add esp, 0x14
test eax, eax
je 0x4b7b3b
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.004c3688
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004b8b60
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004ba27f
add esp, 0x28
test eax, eax
jne 0x4b7b72
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
cmp dword [ebp - 8], esi
jne 0x4b7bb3
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.004c3659
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x4b7bae
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
je 0x4b7be3
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.004c35ae
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.004c3566
add esp, 0x14
jmp 0x4b7af9
push esi
push esi
push esi
push dword [ebp - 4]
call fcn.004c342c
push dword [ebp - 4]
call fcn.004b7ca6
mov eax, dword [ebp - 4]
add esp, 0x14
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4ba025
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
mov eax, dword [esi]
test eax, eax
je 0x4ba05b
push edi
mov edi, 0x10c
cmp dword [ebp + 0xc], edi
jae 0x4ba04e
push eax
call fcn.004c3552
push 2
call fcn.004c34c9
pop ecx
pop ecx
mov dword [esi], eax
push edi
push 0
push eax
call fcn.0048faf0
add esp, 0xc
pop edi
pop esi
pop ebp
ret
Function at 0x4bb450
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push esi
push edi
push dword [ebp + 0x18]
xor edi, edi
xor esi, esi
push dword [ebp + 0x1c]
inc edi
mov dword [ebp - 8], esi
push edi
call fcn.004c34dd
add esp, 0xc
mov dword [ebp - 4], eax
cmp dword [ebp - 4], esi
jne 0x4bb47d
xor eax, eax
jmp 0x4bb621
mov eax, dword [ebp - 4]
mov ecx, SysReAllocString
push 0x40
push 0x48fd6d
mov dword [eax + 0x2a4], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2a8], ecx
mov eax, dword [ebp - 4]
mov dword [eax + 0x2ac], esi
mov eax, dword [ebp - 4]
push dword [ebp - 4]
mov dword [eax + 0x2b0], esi
call fcn.004b8b7e
push esi
push eax
call fcn.0048fd80
add esp, 0x14
test eax, eax
je 0x4bb4ca
push esi
call dword [sym.imp.KERNEL32.dll_ExitProcess]
push dword [ebp + 0x20]
push dword [ebp + 0x1c]
push dword [ebp + 0x18]
push dword [ebp - 4]
call fcn.004c3688
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp - 4]
call fcn.004b8b60
push dword [ebp + 8]
push dword [ebp - 4]
call fcn.004ba27f
add esp, 0x28
test eax, eax
jne 0x4bb501
mov dword [ebp - 8], edi
cmp dword [ebp - 8], esi
jne 0x4bb53d
mov eax, dword [ebp - 4]
mov dword [eax + 0xb4], 0x2000
mov eax, dword [ebp - 4]
push dword [eax + 0xb4]
push dword [ebp - 4]
call fcn.004c3659
pop ecx
pop ecx
mov ecx, dword [ebp - 4]
mov dword [ecx + 0xb0], eax
mov eax, dword [ebp - 4]
cmp dword [eax + 0xb0], esi
jne 0x4bb53d
mov dword [ebp - 8], edi
mov eax, dword [ebp - 4]
mov dword [eax + 0x98], 0x4ba351
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
mov dword [eax + 0x9c], fcn.004ba3a0
mov eax, dword [ebp - 4]
mov dword [eax + 0xa0], ecx
cmp dword [ebp - 8], esi
jne 0x4bb5bd
mov eax, dword [ebp - 4]
push 0x38
add eax, 0x78
push str.1.2.5
push eax
call fcn.004caace
add esp, 0xc
cmp eax, 0xfffffffa
je 0x4bb5a6
cmp eax, 0xfffffffc
je 0x4bb59f
cmp eax, 0xfffffffe
je 0x4bb598
test eax, eax
je 0x4bb5b8
push str.Unknown_zlib_error
jmp 0x4bb5ab
push str.zlib_stream_error
jmp 0x4bb5ab
push str.zlib_memory_error
jmp 0x4bb5ab
push str.zlib_version_error
push dword [ebp - 4]
call fcn.004b8b9a
pop ecx
mov dword [ebp - 8], edi
pop ecx
cmp dword [ebp - 8], esi
je 0x4bb5ed
mov eax, dword [ebp - 4]
push dword [eax + 0xb0]
push dword [ebp - 4]
call fcn.004c35ae
push dword [ebp + 0x18]
mov eax, dword [ebp - 4]
push dword [ebp + 0x20]
push dword [ebp - 4]
mov dword [eax + 0xb0], esi
call fcn.004c3566
add esp, 0x14
jmp 0x4bb476
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push esi
push esi
mov eax, dword [eax + 0xb0]
mov dword [ecx + 0x84], eax
mov eax, dword [ebp - 4]
mov ecx, dword [ebp - 4]
push dword [ebp - 4]
mov eax, dword [eax + 0xb4]
mov dword [ecx + 0x88], eax
call fcn.004c0424
mov eax, dword [ebp - 4]
add esp, 0xc
pop edi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x4c90d3
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
push edi
mov edi, dword [ebp + 8]
mov ebx, dword [edi + 0x2c]
mov eax, dword [edi + 0x2c]
mov edx, dword [edi + 0x3c]
add eax, 0xfffffefa
sub edx, dword [edi + 0x74]
add eax, ebx
sub edx, dword [edi + 0x6c]
mov dword [ebp - 8], edx
cmp dword [edi + 0x6c], eax
jb 0x4c916f
mov ecx, dword [edi + 0x38]
push ebx
lea eax, [ecx + ebx]
push eax
push ecx
call fcn.0048f460
mov ecx, dword [edi + 0x4c]
add esp, 0xc
mov eax, dword [edi + 0x44]
sub dword [edi + 0x70], ebx
sub dword [edi + 0x6c], ebx
sub dword [edi + 0x5c], ebx
mov edi, ecx
mov dword [ebp - 4], ecx
lea esi, [eax + ecx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x4c9124
mov edi, dword [ebp + 8]
mov eax, dword [edi + 0x40]
mov edi, ebx
lea esi, [eax + ebx*2]
lea esi, [esi - 2]
xor ecx, ecx
movzx edx, word [esi]
mov eax, edx
sub eax, ebx
cmp edx, ebx
movzx eax, ax
cmovae ecx, eax
mov word [esi], cx
sub edi, 1
jne 0x4c914b
mov edx, dword [ebp - 8]
mov edi, dword [ebp + 8]
add edx, ebx
mov esi, dword [edi]
cmp dword [esi + 4], 0
je 0x4c9294
mov eax, dword [edi + 0x74]
add eax, dword [edi + 0x6c]
add eax, dword [edi + 0x38]
mov dword [ebp - 8], eax
mov eax, dword [esi + 4]
cmp eax, edx
mov ecx, eax
cmova ecx, edx
mov dword [ebp - 4], ecx
test ecx, ecx
jne 0x4c919c
xor eax, eax
jmp 0x4c91e8
sub eax, ecx
mov dword [esi + 4], eax
mov eax, dword [esi + 0x1c]
mov eax, dword [eax + 0x18]
cmp eax, 1
jne 0x4c91b9
push ecx
push dword [esi]
push dword [esi + 0x30]
call fcn.004cc789
jmp 0x4c91c9
cmp eax, 2
jne 0x4c91d2
push ecx
push dword [esi]
push dword [esi + 0x30]
call fcn.004cac9f
mov ecx, dword [ebp - 4]
add esp, 0xc
mov dword [esi + 0x30], eax
push ecx
push dword [esi]
push dword [ebp - 8]
call fcn.0048f460
mov eax, dword [ebp - 4]
add esp, 0xc
add dword [esi], eax
add dword [esi + 8], eax
add dword [edi + 0x74], eax
cmp dword [edi + 0x74], 3
jb 0x4c9210
mov edx, dword [edi + 0x6c]
mov eax, dword [edi + 0x38]
mov ecx, dword [edi + 0x58]
movzx esi, byte [edx + eax]
mov dword [edi + 0x48], esi
movzx eax, byte [edx + eax + 1]
shl esi, cl
xor esi, eax
and esi, dword [edi + 0x54]
mov dword [edi + 0x48], esi
cmp dword [edi + 0x74], 0x106
jae 0x4c9225
mov eax, dword [edi]
cmp dword [eax + 4], 0
jne 0x4c90e1
mov ecx, dword [edi + 0x16c0]
mov ebx, dword [edi + 0x3c]
cmp ecx, ebx
jae 0x4c9294
mov esi, dword [edi + 0x6c]
add esi, dword [edi + 0x74]
cmp ecx, esi
jae 0x4c9264
mov eax, 0x102
sub ebx, esi
cmp ebx, eax
cmova ebx, eax
mov eax, dword [edi + 0x38]
push ebx
add eax, esi
push 0
push eax
call fcn.0048faf0
lea eax, [ebx + esi]
add esp, 0xc
mov dword [edi + 0x16c0], eax
jmp 0x4c9294
lea eax, [esi + 0x102]
cmp ecx, eax
jae 0x4c9294
mov eax, dword [edi + 0x38]
sub esi, ecx
sub ebx, ecx
add esi, 0x102
cmp esi, ebx
cmova esi, ebx
add eax, ecx
push esi
push 0
push eax
call fcn.0048faf0
add esp, 0xc
add dword [edi + 0x16c0], esi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4cac9f
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 0xc], 0
jne 0x4cacac
xor eax, eax
pop ebp
ret
pop ebp
jmp fcn.004cacb2
Function at 0x4ce860
Capabilities:
Check os version
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x144
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x144]
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
push 0x11c
lea eax, [ebp - 0x120]
push 0
push eax
call fcn.0048faf0
add esp, 0xc
mov dword [ebp - 0x120], 0x11c
lea eax, [ebp - 0x120]
push eax
call dword [sym.imp.KERNEL32.dll_GetVersionExW]
cmp dword [ebp - 0x11c], 5
jg 0x4ce8d2
cmp dword [ebp - 0x118], 2
jg 0x4ce8d2
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret
mov ecx, dword [ebp - 4]
xor eax, eax
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret

Function at 0x4ce930
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov eax, dword [esi]
cmp dword [eax + 4], 2
jne 0x4ce95c
mov ecx, dword [esi + 0xc]
test ecx, ecx
jne 0x4ce94d
pop edi
xor eax, eax
pop esi
pop ebp
ret
push dword [eax + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call ecx
jmp 0x4ce990
cmp dword [esi + 8], 0
jne 0x4ce980
push 0x502458
push dword [eax + 8]
call fcn.004977ab
add esp, 8
mov dword [esi + 8], eax
test eax, eax
jne 0x4ce980
pop edi
or eax, 0xffffffff
pop esi
pop ebp
ret
push dword [esi + 8]
push dword [ebp + 0x10]
push 1
push dword [ebp + 0xc]
call fcn.00497a84
mov edi, eax
add esp, 0x10
test edi, edi
jne 0x4ce9b2
mov eax, dword [esi + 8]
test eax, eax
je 0x4ce9ac
push eax
call fcn.00497838
add esp, 4
mov dword [esi + 8], edi
mov eax, dword [esi]
mov eax, dword [eax]
mov dword [esi], eax
mov eax, edi
pop edi
pop esi
pop ebp
ret

Function at 0x4cec80
Capabilities:
Initialize winsock library

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x194
mov eax, dword [0x54636c]
xor eax, ebp
mov dword [ebp - 4], eax
lea eax, [ebp - 0x194]
push eax
push 0x202
call dword [sym.imp.WS2_32.dll_WSAStartup]
test eax, eax
jne 0x4cecd0
mov eax, dword [ebp - 0x194]
cmp al, 2
jne 0x4cecca
shr eax, 8
cmp al, 2
jne 0x4cecca
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret
call dword [sym.imp.WS2_32.dll_WSACleanup]
mov ecx, dword [ebp - 4]
mov eax, 2
xor ecx, ebp
call fcn.0041bf36
mov esp, ebp
pop ebp
ret

Function at 0x4cf400
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 0xc]
mov ecx, dword [ebp + 8]
push ebx
push edi
push 0
push dword [ebp + 0x14]
push dword [ebp + 0x10]
push dword [ecx + eax*4 + 0x130]
call dword [sym.imp.WS2_32.dll_send]
mov ebx, dword [ebp + 0x18]
mov edi, eax
mov dword [ebx], 0
cmp edi, 0xffffffff
jne 0x4cf47e
push esi
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov esi, eax
cmp esi, 0x2733
jne 0x4cf44e
pop esi
pop edi
mov dword [ebx], 0x51
xor eax, eax
pop ebx
pop ebp
ret
push esi
push dword [ebp + 8]
call fcn.004dcb00
push eax
mov eax, dword [ebp + 8]
push str.Send_failure:__s
push dword [eax]
call fcn.004cf0e0
mov eax, dword [ebp + 8]
add esp, 0x14
mov eax, dword [eax]
mov dword [eax + 0x856c], esi
mov eax, edi
mov dword [ebx], 0x37
pop esi
pop edi
pop ebx
pop ebp
ret