joyce8/EMBER2024-capa huggingface dataset:
Function at 0x46e1de
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
mov esi, ecx
xor ecx, ecx
push edi
inc ecx
push ecx
mov eax, dword [esi]
push esi
call dword [eax + 0x30]
mov dx, word [esi + 0x348]
xor edi, edi
add dx, word [ebp + 0xc]
mov dword [ebp - 4], eax
movsx eax, dx
cdq
push 0x78
pop ecx
idiv ecx
movzx eax, ax
mov dword [ebp + 0xc], eax
cwde
mov word [esi + 0x348], dx
cdq
xor eax, edx
sub eax, edx
movzx ebx, ax
xor eax, eax
cmp ax, bx
jge 0x46e28e
xor ecx, ecx
cmp word [ebp + 0xc], ax
setle cl
mov dword [ebp - 8], ecx
mov eax, dword [esi]
push 0
push ecx
push dword [ebp - 4]
mov ecx, esi
call dword [eax + 0x38]
test eax, eax
je 0x46e255
mov ecx, esi
call fcn.0046ef6d
mov ecx, dword [ebp - 8]
inc edi
cmp di, bx
jl 0x46e234
cmp di, bx
jge 0x46e28e
push dword [ebp + 0x14]
or eax, 0xffffffff
mov ecx, ebx
push dword [ebp + 0x10]
sub ecx, edi
cmp word [ebp + 0xc], 0
push 1
pop edx
cmovg eax, edx
movsx ecx, cx
cwde
imul ecx, eax
movsx eax, cx
lea ecx, [esi + 4]
imul eax, eax, 0x78
movzx eax, ax
push eax
push dword [ebp + 8]
call fcn.0044d68b
test bx, bx
je 0x46e2ce
lea eax, [esi + 4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x50]
push eax
mov ecx, dword [eax]
call dword [ecx + 0x20]
movzx edx, word [ebp + 0x14]
mov edi, eax
movzx ecx, word [ebp + 0x10]
mov esi, dword [sym.imp.USER32.dll_SendMessageW]
shl edx, 0x10
or edx, ecx
push edx
push dword [ebp + 8]
push 0x200
push edi
call esi
push 0x2000001
push edi
push 0x20
push edi
call esi
pop edi
pop esi
xor eax, eax
pop ebx
mov esp, ebp
pop ebp
ret 0x10

Function at 0x46fc45
Capabilities:
Check os version

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x120
mov eax, dword [0x8606e0]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, 0x11c
lea eax, [ebp - 0x120]
push esi
push 0
push eax
call fcn.0062ff20
add esp, 0xc
mov dword [ebp - 0x120], esi
mov esi, dword [sym.imp.KERNEL32.dll_GetVersionExW]
lea eax, [ebp - 0x120]
push eax
call esi
test eax, eax
jne 0x46fca0
lea eax, [ebp - 0x120]
mov dword [ebp - 0x120], 0x114
push eax
call esi
test eax, eax
je 0x46fcb4
cmp byte [ebp - 6], 1
jne 0x46fcb4
cmp dword [ebp - 0x11c], 6
jne 0x46fcb4
xor eax, eax
inc eax
jmp 0x46fcb6
xor eax, eax
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.004ccd8f
mov esp, ebp
pop ebp
ret
Function at 0x47ee88
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
push esi
mov ebx, ecx
push edi
lea edi, [ebp - 0xc]
mov esi, dword [ebx + 0x70]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
mov esi, dword [ebp + 8]
mov eax, esi
sub eax, 9
je 0x47ef1e
sub eax, 1
je 0x47ef00
sub eax, 3
je 0x47ef00
test dword [ebx + 0x4b8], 0x2000
je 0x47eed6
push esi
call fcn.00646998
pop ecx
test eax, eax
jne 0x47eed6
cmp esi, 0x2d
je 0x47eed6
cmp esi, 0x2e
je 0x47eed6
cmp esi, 0x2c
jne 0x47ef53
mov ecx, dword [ebx + 0x4b8]
test cl, 8
je 0x47eeee
lea eax, [esi - 0x61]
cmp eax, 0x19
ja 0x47eeee
add esi, 0xffffffe0
jmp 0x47ef3c
test cl, 0x10
je 0x47ef39
lea eax, [esi - 0x41]
cmp eax, 0x19
ja 0x47ef39
add esi, 0x20
jmp 0x47ef3c
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x47ef39
test dword [ebx + 0x4b8], 0x1000
jmp 0x47ef37
test byte [ebx + 0x4bc], 0x80
jne 0x47ef39
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
je 0x47ef53
mov esi, dword [ebp - 8]
mov eax, dword [ebx + 0x4d0]
push 0
push dword [ebp - 4]
mov ecx, dword [eax + 0xc]
push esi
push dword [ebp - 0xc]
mov eax, dword [ecx]
call dword [eax + 0xc]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0xc

Function at 0x47f260
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x30
mov eax, 0x74f290
call fcn.004cd880
mov esi, ecx
mov edx, esi
lea eax, [esi + 8]
neg edx
lea ecx, [ebp - 0x3c]
sbb edx, edx
and edx, eax
push edx
call fcn.00448680
mov dword [ebp - 0x3c], 0x77380c
mov eax, dword [ebp + 0x10]
lea edi, [esi + 8]
mov ebx, dword [ebp + 8]
lea ecx, [ebp - 0x3c]
and dword [ebp - 4], 0
and dword [ebp - 0x14], 0
mov dword [ebp - 0x18], eax
mov eax, dword [edi]
push ecx
push edi
mov dword [ebp - 0x1c], ebx
call dword [eax + 0x1f0]
cmp dword [ebp - 0x14], 0
jne 0x47f2d6
cmp ebx, 0xd
jne 0x47f2e1
test dword [esi + 0x4b8], 0x1000
jne 0x47f2e1
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
mov ecx, 0x8000
test cx, ax
jne 0x47f2e1
push 0
mov ecx, edi
call fcn.0044e8c9
jmp 0x47f2fc
mov eax, dword [esi + 0x4d0]
push 0
mov ecx, dword [eax + 0xc]
mov eax, dword [esi + 0x70]
mov edx, dword [ecx]
push dword [eax + 8]
push dword [eax + 4]
push dword [eax]
call dword [edx + 0xc]
lea ecx, [ebp - 0x3c]
call fcn.00448b5c
call fcn.004cd82a
ret 0xc
Function at 0x4824ca
Capabilities:
Log keystrokes via polling

Disassembly:
push 0x28
mov eax, 0x74f18d
call fcn.004cd84c
mov dword [ebp - 0x10], ecx
mov esi, dword [sym.imp.USER32.dll_GetKeyState]
push 0x12
call esi
push 0x11
mov edi, eax
call esi
mov ebx, eax
push 0x10
and ebx, 0x8000
call esi
and eax, 0x8000
and edi, 0x8000
jne 0x48251a
test ebx, ebx
jne 0x48250e
test eax, eax
je 0x482540
push 4
jmp 0x48253f
test eax, eax
jne 0x482516
push 2
jmp 0x48253f
push 6
jmp 0x48253f
test ebx, ebx
jne 0x482529
test eax, eax
jne 0x482525
inc eax
jmp 0x482540
test ebx, ebx
je 0x482535
test eax, eax
jne 0x482531
push 3
jmp 0x48253f
test ebx, ebx
jne 0x48253d
test eax, eax
je 0x48253d
push 5
jmp 0x48253f
push 7
pop eax
mov ebx, dword [ebp - 0x10]
cmp ax, word [ebx + 0x258]
jne 0x482553
mov ax, word [ebx + 0x25a]
lea esi, [ebx + 4]
mov word [ebx + 0x254], ax
push esi
lea ecx, [ebp - 0x34]
call fcn.00448680
mov dword [ebp - 0x34], 0x774e64
mov ax, word [ebx + 0x254]
lea ecx, [ebp - 0x34]
and dword [ebp - 4], 0
mov word [ebp - 0x12], ax
mov ax, word [ebx + 0x256]
mov word [ebp - 0x14], ax
mov eax, dword [esi]
push ecx
push esi
call dword [eax + 0x1f0]
lea ecx, [ebp - 0x34]
call fcn.00448b5c
call fcn.004cd815
ret
Function at 0x483f37
Capabilities:
Check for time delay via gettickcount

Disassembly:
push 0x18
mov eax, 0x74c3f7
call fcn.004cd84c
mov esi, ecx
mov edi, dword [ebp + 8]
movzx eax, di
cmp eax, 0x25
jb 0x483fa8
cmp eax, 0x26
jbe 0x483f7d
cmp eax, 0x28
ja 0x483fa8
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov ecx, dword [esi]
push esi
lea edi, [eax + 1]
call dword [ecx + 0x14]
cmp edi, eax
jge 0x484099
mov ecx, dword [esi]
push edi
push esi
call dword [ecx + 0x18]
jmp 0x484099
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov ecx, dword [esi]
push esi
lea edi, [eax - 1]
call dword [ecx + 0x14]
cmp edi, eax
jge 0x484099
test edi, edi
js 0x484099
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x18]
jmp 0x484099
push eax
call fcn.006469f2
pop ecx
test eax, eax
je 0x484099
mov ebx, dword [sym.imp.KERNEL32.dll_GetTickCount]
call ebx
sub eax, dword [esi + 0x2c0]
cmp eax, 0x12c
jbe 0x483fd8
lea eax, [esi + 0x2b4]
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14]
call ebx
lea ecx, [esi + 0x2b4]
mov dword [esi + 0x2c0], eax
push edi
call fcn.00434b72
mov eax, dword [esi]
push esi
call dword [eax + 0x10]
mov ecx, dword [esi]
mov ebx, eax
push esi
lea edi, [ebx + 1]
call dword [ecx + 0x14]
jmp 0x484039
push 0
push edi
lea eax, [ebp - 0x18]
mov ecx, esi
push eax
call fcn.0048398c
and dword [ebp - 4], 0
lea eax, [esi + 0x2b4]
push 1
push eax
lea ecx, [ebp - 0x18]
call fcn.0043596a
test al, al
jne 0x48407e
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x18]
inc edi
call fcn.00434a07
mov eax, dword [esi]
push esi
call dword [eax + 0x14]
cmp edi, eax
jl 0x483fff
xor edi, edi
test ebx, ebx
js 0x484099
push 0
push edi
lea eax, [ebp - 0x24]
mov ecx, esi
push eax
call fcn.0048398c
xor eax, eax
lea ecx, [ebp - 0x24]
inc eax
push eax
mov dword [ebp - 4], eax
lea eax, [esi + 0x2b4]
push eax
call fcn.0043596a
test al, al
jne 0x48408a
or dword [ebp - 4], 0xffffffff
lea ecx, [ebp - 0x24]
inc edi
call fcn.00434a07
cmp edi, ebx
jle 0x484043
jmp 0x484099
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x18]
lea ecx, [ebp - 0x18]
jmp 0x484094
mov eax, dword [esi]
push edi
push esi
call dword [eax + 0x18]
lea ecx, [ebp - 0x24]
call fcn.00434a07
call fcn.004cd815
ret 0xc

Function at 0x49e5e3
Capabilities:
Log keystrokes via polling

Disassembly:
push ebp
mov ebp, esp
cmp dword [ebp + 8], 9
je 0x49e5f0
xor eax, eax
jmp 0x49e61d
push dword [ecx + 4]
call fcn.0046ad04
pop ecx
test eax, eax
je 0x49e60a
mov ecx, dword [eax]
push eax
call dword [ecx + 0x14c]
test al, 2
jne 0x49e5ec
push 0x11
call dword [sym.imp.USER32.dll_GetKeyState]
movzx eax, ax
xor eax, 0x8000
shr eax, 0xf
pop ebp
ret 4
Function at 0x49e726
Capabilities:
Log keystrokes via polling

Disassembly:
push 8
mov eax, 0x75126f
call fcn.004cd84c
mov ebx, ecx
mov edi, dword [ebp + 8]
push edi
call fcn.0049e5e3
test eax, eax
je 0x49e761
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.0049e16d
xor eax, eax
inc eax
jmp 0x49e876
push dword [ebx + 4]
call fcn.0046ad04
mov esi, eax
mov dword [ebp + 8], esi
pop ecx
test esi, esi
je 0x49e820
mov ecx, dword [esi]
push esi
call dword [ecx + 0x1cc]
test eax, eax
je 0x49e820
cmp edi, 0x25
je 0x49e7a0
cmp edi, 0x27
je 0x49e7ae
cmp edi, 0x26
je 0x49e7a0
cmp edi, 0x28
jne 0x49e820
cmp edi, 0x27
je 0x49e7ae
cmp edi, 0x28
je 0x49e7ae
push 2
jmp 0x49e7b0
push 3
pop edi
jmp 0x49e7c0
mov ecx, dword [esi]
push esi
call dword [ecx + 0x1cc]
test eax, eax
jne 0x49e7e1
push edi
mov ecx, esi
call fcn.0044b299
mov esi, eax
test esi, esi
jne 0x49e7b3
mov ecx, dword [ebp + 8]
cmp edi, 3
setne al
push eax
call fcn.0044ada1
mov ecx, eax
jmp 0x49e7fb
mov eax, dword [esi]
push 1
push esi
call dword [eax + 0x58]
jmp 0x49e813
mov ecx, dword [esi]
push esi
call dword [ecx + 0x1cc]
test eax, eax
jne 0x49e80b
push edi
mov ecx, esi
call fcn.0044b299
mov esi, eax
test esi, esi
jne 0x49e7eb
jmp 0x49e759
mov ecx, dword [esi]
push 1
push esi
call dword [ecx + 0x58]
push eax
mov ecx, ebx
call fcn.0049eb1b
jmp 0x49e759
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 - 0x14]
and al, 1
movzx eax, al
push eax
push edi
call fcn.004a90de
and dword [ebp - 4], 0
lea eax, [ebp - 0x14]
push eax
mov ecx, ebx
call fcn.0049e8ca
xor ebx, ebx
lea ecx, [ebp - 0x14]
test al, al
setne bl
call fcn.004a913d
mov eax, ebx
call fcn.004cd815
ret 4
Function at 0x4a9248
Capabilities:
Log keystrokes
Parse credit card information

Disassembly:
push 0x10
mov eax, 0x750dd3
call fcn.004cd84c
xor esi, esi
mov dword [ebp - 0x10], esi
mov edi, dword [ebp + 8]
mov ecx, edi
mov dword [ebp - 4], esi
call fcn.004348f5
mov ecx, dword [ebp + 0xc]
movzx edx, cx
mov dword [ebp - 4], esi
mov dword [ebp - 0x10], 1
cmp edx, 0x25
ja 0x4a92f6
je 0x4a92ec
mov eax, edx
sub eax, 0xd
je 0x4a92e2
sub eax, 0xe
je 0x4a92d8
sub eax, 5
je 0x4a92ce
sub eax, 1
je 0x4a92c4
sub eax, 1
je 0x4a92ba
sub eax, 1
je 0x4a92b0
sub eax, 1
jne 0x4a932f
push str.Home
jmp 0x4a9434
push 0x77f60c
jmp 0x4a9434
push str.PageDown
jmp 0x4a9434
push str.PageUp
jmp 0x4a9434
push str.Space
jmp 0x4a9434
push 0x77f5c0
jmp 0x4a9434
push 0x77f5c8
jmp 0x4a9434
push 0x77f5e8
jmp 0x4a9434
mov eax, edx
sub eax, 0x26
je 0x4a942f
sub eax, 1
je 0x4a9428
sub eax, 1
je 0x4a9421
dec eax
sub eax, 1
je 0x4a941a
sub eax, 3
je 0x4a9413
sub eax, 1
je 0x4a940c
cmp cx, 0x30
jb 0x4a933b
cmp cx, 0x39
jbe 0x4a9344
lea eax, [ecx - 0x41]
cmp ax, 0x19
ja 0x4a9351
push ecx
mov ecx, edi
call fcn.00434b04
jmp 0x4a943b
lea eax, [ecx - 0x60]
cmp ax, 9
ja 0x4a9365
lea eax, [edx - 0x60]
push eax
push str.Num__d
jmp 0x4a93a7
cmp cx, 0x6a
jne 0x4a9375
push 0x77f670
jmp 0x4a9434
cmp cx, 0x6b
jne 0x4a9385
push str.Num_
jmp 0x4a9434
cmp cx, 0x6e
jne 0x4a9395
push str.Num_Del
jmp 0x4a9434
lea eax, [ecx - 0x70]
cmp ax, 0xb
ja 0x4a93c5
lea eax, [edx - 0x6f]
push eax
push 0x77f698
lea eax, [ebp - 0x1c]
push eax
push edi
call fcn.0043516e
add esp, 0x10
mov esi, eax
push 3
pop ecx
rep lodsd eax, dword [esi]
lea ecx, [ebp - 0x1c]
call fcn.00434a07
jmp 0x4a943b
push 2
push edx
call dword [sym.imp.USER32.dll_MapVirtualKeyA]
movsx ecx, al
cmp ecx, 0x3d
jg 0x4a93ee
je 0x4a93fd
cmp ecx, 0x27
je 0x4a93fd
cmp ecx, 0x2b
jle 0x4a943b
cmp ecx, 0x2f
jle 0x4a93fd
cmp ecx, 0x3b
je 0x4a93fd
jmp 0x4a943b
cmp ecx, 0x5b
jl 0x4a943b
cmp ecx, 0x5d
jle 0x4a93fd
cmp ecx, 0x60
jne 0x4a943b
cbw
mov ecx, edi
movzx eax, ax
push eax
call fcn.00434b72
jmp 0x4a943b
push str.Delete
jmp 0x4a9434
push str.Insert
jmp 0x4a9434
push str.Print
jmp 0x4a9434
push str.Down
jmp 0x4a9434
push 0x77f5f4
jmp 0x4a9434
push 0x77f5d4
mov ecx, edi
call fcn.00434ac7
mov eax, edi
call fcn.004cd815
ret

Function at 0x4af293
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4af2a1
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
shr eax, 4
and al, 1
pop ebp
ret

Function at 0x4af2ec
Capabilities:
Check if file exists
Get file attributes

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
cmp dword [eax + 0x14], 8
jb 0x4af2fa
mov eax, dword [eax]
push eax
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
cmp eax, 0xffffffff
setne al
pop ebp
ret
Function at 0x4afd79
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
lea eax, [ebp - 4]
push eax
push dword [ecx]
call dword [sym.imp.KERNEL32.dll_GetFileSize]
mov esi, eax
cmp esi, 0xffffffff
jne 0x4afd9f
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
je 0x4afd9f
xor al, al
jmp 0x4afdb3
mov eax, dword [ebp + 8]
xor ecx, ecx
mov edx, dword [ebp - 4]
add ecx, esi
adc edx, 0
mov dword [eax], ecx
mov dword [eax + 4], edx
mov al, 1
pop esi
leave
ret 4

Function at 0x4b0ed4
Capabilities:
Create directory

Disassembly:
push 0x38
mov eax, 0x7522b0
call fcn.004cd84c
xor ebx, ebx
push ebx
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_CreateDirectoryW]
test eax, eax
je 0x4b0ef4
mov al, 1
jmp 0x4b0f3b
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0xb7
je 0x4b0f05
xor al, al
jmp 0x4b0f3b
lea ecx, [ebp - 0x44]
call fcn.004b1040
lea ecx, [ebp - 0x1c]
call fcn.004b0589
push dword [ebp + 8]
lea ecx, [ebp - 0x44]
mov dword [ebp - 4], ebx
call fcn.004b10d8
test al, al
je 0x4b0f30
mov ebx, dword [ebp - 0x24]
shr ebx, 4
and bl, 1
push dword [ebp - 0x1c]
call fcn.004cd271
pop ecx
mov al, bl
call fcn.004cd815
ret

Function at 0x4b0f95
Capabilities:
Set file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 0xc]
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_SetFileAttributesW]
test eax, eax
setne al
pop ebp
ret

Function at 0x4b15eb
Capabilities:
Get file attributes

Disassembly:
push ebp
mov ebp, esp
push dword [ebp + 8]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesW]
or ecx, 0xffffffff
cmp eax, ecx
cmovne ecx, eax
mov eax, ecx
pop ebp
ret
Function at 0x4be1cb
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push esi
mov esi, dword [ebp + 8]
push edi
mov edi, dword [esi + 8]
and edi, 7
je 0x4be1ef
cmp dword [esi + 8], edi
jge 0x4be1e7
push esi
call fcn.004b9726
pop ecx
mov ecx, edi
shr dword [esi + 0xc], cl
sub dword [esi + 8], edi
mov edx, dword [esi + 8]
xor ecx, ecx
test edx, edx
jle 0x4be213
mov edi, dword [esi + 0xc]
mov al, byte [esi + 0xc]
sub edx, 8
mov byte [ebp + ecx + 8], al
inc ecx
shr edi, 8
mov dword [esi + 0xc], edi
test edx, edx
jg 0x4be1fb
mov dword [esi + 8], edx
cmp dword [esi + 8], 0
jge 0x4be229
push str.zlib_corrupt
call fcn.004b9649
pop ecx
jmp 0x4be2af
cmp ecx, 4
jge 0x4be249
mov eax, dword [esi]
cmp eax, dword [esi + 4]
jb 0x4be239
xor edx, edx
jmp 0x4be23f
movzx edx, byte [eax]
inc eax
mov dword [esi], eax
mov byte [ebp + ecx + 8], dl
inc ecx
cmp ecx, 4
jl 0x4be230
mov eax, dword [ebp + 8]
movzx ecx, byte [ebp + 0xb]
movzx edi, ah
movzx eax, al
shl edi, 8
add edi, eax
shl ecx, 8
movzx eax, byte [ebp + 0xa]
add ecx, eax
mov eax, edi
xor eax, 0xffff
cmp ecx, eax
jne 0x4be219
mov eax, dword [esi]
add eax, edi
cmp eax, dword [esi + 4]
jbe 0x4be27f
push str.read_past_buffer
jmp 0x4be21e
mov ecx, dword [esi + 0x10]
lea eax, [ecx + edi]
cmp eax, dword [esi + 0x18]
jbe 0x4be299
push edi
push ecx
push esi
call fcn.004c1660
add esp, 0xc
test eax, eax
je 0x4be2af
push edi
push dword [esi]
push dword [esi + 0x10]
call fcn.0062f5d0
add dword [esi], edi
xor eax, eax
add dword [esi + 0x10], edi
add esp, 0xc
inc eax
pop edi
pop esi
pop ebp
ret
Function at 0x4c1aab
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1c
cmp dword [ebp + 0xc], 0
push ebx
push esi
push edi
jne 0x4c1ac4
mov eax, 0x80070057
jmp 0x4c1c7a
push 0x75f414
push dword [ebp + 0x18]
call fcn.006449d5
mov edi, eax
mov dword [ebp - 0xc], edi
pop ecx
pop ecx
test edi, edi
jne 0x4c1ae6
mov eax, 0x80004005
jmp 0x4c1c7a
xor esi, esi
push esi
push esi
push esi
push str.1.5.19
call fcn.007345e9
add esp, 0x10
mov dword [ebp - 4], eax
test eax, eax
jne 0x4c1b08
push edi
call fcn.0063343e
pop ecx
jmp 0x4c1adc
push eax
call fcn.00736415
mov dword [ebp - 8], eax
pop ecx
test eax, eax
jne 0x4c1b2b
push edi
call fcn.0063343e
push esi
lea eax, [ebp - 4]
push eax
call fcn.00734736
add esp, 0xc
jmp 0x4c1adc
push 0x40
push 0x631d46
push dword [ebp - 4]
call fcn.007356b2
push esi
push eax
call fcn.00631d60
add esp, 0x14
push dword [ebp - 0xc]
test eax, eax
je 0x4c1b56
call fcn.0063343e
lea eax, [ebp - 8]
push eax
jmp 0x4c1b1d
push dword [ebp - 4]
call fcn.00736b92
mov edi, dword [ebp + 0x14]
mov ebx, dword [ebp + 0x10]
push esi
push esi
push esi
push 6
push 8
push edi
push ebx
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00736f6e
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.00734bbd
mov eax, ebx
imul eax, edi
shl eax, 2
push eax
call fcn.004cd475
add esp, 0x38
mov dword [ebp - 0x1c], eax
push 4
pop edx
test edi, edi
je 0x4c1c0f
mov esi, dword [ebp + 0xc]
mov eax, edi
mov edi, dword [ebp - 0x1c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 0x10], 0xff
test ebx, ebx
je 0x4c1c02
mov dword [ebp - 0x14], ebx
mov bl, byte [esi + 3]
xor edx, edx
movzx eax, byte [esi]
movzx ecx, bl
imul eax, ecx
push 4
div dword [ebp - 0x10]
xor edx, edx
mov byte [edi + 2], al
movzx eax, byte [esi + 1]
imul eax, ecx
div dword [ebp - 0x10]
xor edx, edx
mov byte [edi + 1], al
movzx eax, byte [esi + 2]
imul eax, ecx
mov ecx, 0xff
mov byte [edi + 3], bl
div ecx
pop edx
mov byte [edi], al
add esi, edx
add edi, edx
sub dword [ebp - 0x14], 1
jne 0x4c1bb7
mov ebx, dword [ebp + 0x10]
mov eax, dword [ebp - 0x18]
sub eax, 1
mov dword [ebp - 0x18], eax
jne 0x4c1bb0
mov edi, dword [ebp + 0x14]
xor esi, esi
cmp edi, 0x3fffffff
ja 0x4c1c83
xor ecx, ecx
mov eax, edi
mul edx
seto cl
neg ecx
or ecx, eax
push ecx
call fcn.004cd475
pop ecx
mov ecx, eax
mov dword [ebp - 0x18], ecx
test edi, edi
je 0x4c1c44
mov eax, dword [ebp - 0x1c]
shl ebx, 2
mov dword [ecx + esi*4], eax
inc esi
add eax, ebx
cmp esi, edi
jb 0x4c1c3a
push ecx
push dword [ebp - 4]
call fcn.00734b5e
push dword [ebp - 8]
push dword [ebp - 4]
call fcn.0073493f
lea eax, [ebp - 8]
push eax
lea eax, [ebp - 4]
push eax
call fcn.00734736
push dword [ebp - 0x18]
call fcn.004cd271
push dword [ebp - 0xc]
call fcn.0063343e
add esp, 0x20
xor eax, eax
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 0x18
push str.Image_is_too_tall_to_process_in_memory
push dword [ebp - 4]
call fcn.0073537c
int3
Function at 0x4e21e0
Capabilities:
Write file on windows

Disassembly:
push edi
mov edi, dword [esp + 8]
cmp dword [edi + 0x600], 0
je 0x4e2224
push esi
push 1
push edi
call fcn.004d3830
push dword [edi + 0x594]
mov eax, dword [edi + 0x600]
push dword [esp + 0x24]
push dword [esp + 0x24]
push dword [esp + 0x24]
push edi
call eax
push 0
push edi
mov esi, eax
call fcn.004d3830
add esp, 0x24
mov eax, esi
pop esi
pop edi
ret
mov eax, dword [esp + 0xc]
cmp eax, 2
ja 0x4e225d
push dword [edi + 0x590]
lea eax, [eax + eax*2]
push 1
add eax, 0x788378
push 2
push eax
call fcn.00633a0d
push dword [edi + 0x590]
push 1
push dword [esp + 0x2c]
push dword [esp + 0x2c]
call fcn.00633a0d
add esp, 0x20
xor eax, eax
pop edi
ret

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

Disassembly:
sub esp, 0x104
mov eax, dword [0x8606e0]
xor eax, esp
mov dword [esp + 0x100], eax
mov eax, dword [esp + 0x10c]
push ebx
mov ebx, dword [esp + 0x11c]
push ebp
mov ebp, dword [esp + 0x110]
push esi
push edi
mov edi, dword [esp + 0x120]
mov esi, dword [ebp + eax*4 + 0x420]
push eax
push ebp
call fcn.004e2b60
add esp, 8
push 0
push dword [esp + 0x128]
push edi
push esi
call dword [sym.imp.WS2_32.dll_send]
mov esi, eax
mov dword [ebx], 0
cmp esi, 0xffffffff
jne 0x4e26bf
call dword [sym.imp.WS2_32.dll_WSAGetLastError]
mov edi, eax
cmp edi, 0x2733
jne 0x4e268d
mov dword [ebx], 0x51
xor eax, eax
jmp 0x4e26bf
push 0x100
lea eax, [esp + 0x14]
push eax
push edi
call fcn.004d2570
push eax
push str.Send_failure:__s
push dword [ebp]
call fcn.004e2270
mov eax, dword [ebp]
add esp, 0x18
mov dword [eax + 0xd94], edi
mov eax, esi
mov dword [ebx], 0x37
mov ecx, dword [esp + 0x110]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.004ccd8f
add esp, 0x104
ret

Function at 0x4e2b60
Capabilities:
Receive data
Receive data on socket

Disassembly:
mov ecx, dword [esp + 8]
mov eax, ecx
push ebx
mov ebx, dword [esp + 8]
push ebp
push esi
shl eax, 4
mov ebp, dword [ebx + ecx*4 + 0x420]
lea esi, [ebx + 0x448]
add esi, eax
mov eax, dword [ebx + 0x560]
push edi
mov edi, dword [esi + 4]
sub edi, dword [esi + 8]
test byte [eax + 0x40], 3
je 0x4e2c18
cmp dword [ebx + ecx*4 + 0x438], 0x4e2530
jne 0x4e2c18
cmp dword [esi], 0
je 0x4e2bac
test edi, edi
je 0x4e2c18
push 0
push 0
push 0xffffffffffffffff
push 0xffffffffffffffff
push ebp
call fcn.004f1640
add esp, 0x14
cmp eax, 0xffffffff
je 0x4e2c18
test al, 1
je 0x4e2c18
cmp dword [esi], 0
jne 0x4e2c01
mov eax, dword [ebx]
mov eax, dword [eax + 0x924]
add eax, eax
push eax
mov dword [esi + 4], eax
call dword [0x860704]
mov edi, dword [esi + 4]
add esp, 4
mov dword [esi], eax
mov dword [esi + 8], 0
mov dword [esi + 0xc], 0
test eax, eax
jne 0x4e2c01
pop edi
mov dword [esi + 4], eax
pop esi
pop ebp
pop ebx
ret
mov eax, dword [esi]
add eax, dword [esi + 8]
push 0
push edi
push eax
push ebp
call dword [sym.imp.WS2_32.dll_recv]
test eax, eax
jle 0x4e2c18
add dword [esi + 8], eax
pop edi
pop esi
pop ebp
pop ebx
ret