joyce8/EMBER2024-capa huggingface dataset:
Function at 0x41b1a0
Capabilities:
Read file on windows

Disassembly:
push ebx
push ebp
push esi
push edi
mov edi, dword [esp + 0x1c]
mov dword [esp + 0x1c], edi
call fcn.00420fc2
mov ebx, dword [esp + 0x14]
mov dword [eax], 0
mov eax, dword [esp + 0x18]
push edi
push eax
push ebx
call fcn.00428c06
mov esi, eax
add esp, 0xc
cmp esi, edi
je 0x41b273
call fcn.00420fc2
cmp dword [eax], 0
je 0x41b1e7
call fcn.00420fc2
mov ebp, dword [eax]
jmp 0x41b1ea
or ebp, 0xffffffff
call fcn.00419640
test esi, esi
mov dword [eax], ebp
jne 0x41b1ff
call fcn.00420fc2
cmp dword [eax], 4
je 0x41b24f
mov eax, dword [esp + 0x20]
test al, 0x1a
je 0x41b232
cmp esi, 0xffffffff
je 0x41b284
test al, 6
je 0x41b232
call fcn.00419640
mov ecx, dword [eax]
push ecx
push ebx
call fcn.0041cb30
add esp, 4
push eax
push 0x24
push 9
call fcn.0041c9c0
mov eax, dword [esp + 0x30]
add esp, 0x10
cmp esi, 0xffffffff
je 0x41b2a2
test al, 6
je 0x41b240
test ah, 2
je 0x41b2a2
test esi, esi
jbe 0x41b277
test ah, 2
je 0x41b277
add dword [esp + 0x18], esi
sub edi, esi
call fcn.00420fc2
mov edx, dword [esp + 0x18]
push edi
push edx
push ebx
mov dword [eax], 0
call fcn.00428c06
mov esi, eax
add esp, 0xc
cmp esi, edi
jne 0x41b1d4
mov eax, dword [esp + 0x20]
test al, 6
je 0x41b2aa
xor esi, esi
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret
call fcn.00419640
mov eax, dword [eax]
push eax
push ebx
call fcn.0041cb30
add esp, 4
push eax
push 0x24
push 2
call fcn.0041c9c0
add esp, 0x10
pop edi
pop esi
pop ebp
or eax, 0xffffffff
pop ebx
ret
test ah, 2
je 0x41b2b3
mov esi, dword [esp + 0x1c]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
ret

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

Disassembly:
push dword [esp + 4]
call dword [sym.imp.KERNEL32.dll_GetFileAttributesA]
cmp eax, 0xffffffff
jne 0x4222e6
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
call fcn.00420f4f
pop ecx
or eax, 0xffffffff
ret
test al, 1
je 0x422309
test byte [esp + 8], 2
je 0x422309
call fcn.00420fc2
mov dword [eax], 0xd
call fcn.00420fcb
mov dword [eax], 5
jmp 0x4222e2
xor eax, eax
ret
Function at 0x424a71
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1a4
mov edx, dword [ebp + 8]
xor ecx, ecx
mov eax, 0x442858
cmp edx, dword [eax]
je 0x424a93
add eax, 8
inc ecx
cmp eax, 0x4428e8
jl 0x424a84
push esi
mov esi, ecx
shl esi, 3
cmp edx, dword [esi + 0x442858]
jne 0x424bc1
mov eax, dword [0x456244]
cmp eax, 1
je 0x424b9b
test eax, eax
jne 0x424ac4
cmp dword [0x442094], 1
je 0x424b9b
cmp edx, 0xfc
je 0x424bc1
lea eax, [ebp - 0x1a4]
push 0x104
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x424afb
lea eax, [ebp - 0x1a4]
push str._program_name_unknown_
push eax
call fcn.004256b0
pop ecx
pop ecx
lea eax, [ebp - 0x1a4]
push edi
push eax
lea edi, [ebp - 0x1a4]
call fcn.00423400
inc eax
pop ecx
cmp eax, 0x3c
jbe 0x424b3e
lea eax, [ebp - 0x1a4]
push eax
call fcn.00423400
mov edi, eax
lea eax, [ebp - 0x1a4]
sub eax, 0x3b
push 3
add edi, eax
push 0x42d664
push edi
call fcn.004255b0
add esp, 0x10
lea eax, [ebp - 0xa0]
push str.Runtime_Error__n_nProgram:
push eax
call fcn.004256b0
lea eax, [ebp - 0xa0]
push edi
push eax
call fcn.004256c0
lea eax, [ebp - 0xa0]
push 0x42d644
push eax
call fcn.004256c0
push dword [esi + 0x44285c]
lea eax, [ebp - 0xa0]
push eax
call fcn.004256c0
push 0x12010
lea eax, [ebp - 0xa0]
push str.Microsoft_Visual_C_Runtime_Library
push eax
call fcn.00429a5c
add esp, 0x2c
pop edi
jmp 0x424bc1
lea eax, [ebp + 8]
lea esi, [esi + 0x44285c]
push 0
push eax
push dword [esi]
call fcn.00423400
pop ecx
push eax
push dword [esi]
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
push eax
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
leave
ret
Function at 0x401000
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 8
push ebx
mov ebx, dword [sym.imp.ADVAPI32.dll_RegQueryValueExA]
push esi
mov esi, dword [esp + 0x18]
push edi
mov edi, dword [esp + 0x18]
lea eax, [esp + 0xc]
push eax
push 0
lea ecx, [esp + 0x18]
push ecx
push 0
push esi
push edi
call ebx
test eax, eax
jne 0x40104d
cmp dword [esp + 0x10], 1
jne 0x40104d
cmp dword [esp + 0xc], 0x200
ja 0x40104d
mov eax, dword [esp + 0x20]
lea edx, [esp + 0xc]
push edx
push eax
push 0
push 0
push esi
push edi
call ebx
pop edi
pop esi
pop ebx
add esp, 8
ret
Function at 0x402aa0
Capabilities:
Hide graphical window

Disassembly:
sub esp, 0x20
push ebx
mov ebx, dword [sym.imp.USER32.dll_GetDlgItem]
push esi
push edi
mov esi, ecx
mov eax, dword [esi + 4]
push 0x3e9
push eax
call ebx
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
push 5
push 0
push 0x1036
push eax
mov dword [esi + 8], eax
call edi
mov edx, dword [esi + 8]
lea ecx, [esp + 0xc]
push ecx
push 0
push 0x101b
push edx
mov dword [esp + 0x1c], 6
mov dword [esp + 0x28], str.Filename
mov dword [esp + 0x24], 0xeb
call edi
mov ecx, dword [esi + 8]
lea eax, [esp + 0xc]
push eax
push 1
push 0x101b
push ecx
mov dword [esp + 0x28], str.Length
mov dword [esp + 0x24], 0x2d
call edi
mov eax, dword [esi + 8]
lea edx, [esp + 0xc]
push edx
push 2
push 0x101b
push eax
mov dword [esp + 0x28], 0x68041c
mov dword [esp + 0x24], 0x3c
call edi
mov ecx, esi
call fcn.004024c0
mov ecx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_SendDlgItemMessageA]
push 0x630000
push 0
push 0x406
push 0x3f2
push ecx
call edi
mov edx, dword [0x6fd20c]
mov eax, dword [esi + 4]
push edx
push 1
push 0x405
push 0x3f2
push eax
call edi
mov ecx, dword [0x6fd208]
mov edx, dword [esi + 4]
mov edi, dword [sym.imp.USER32.dll_CheckDlgButton]
push ecx
push 0x3f3
push edx
call edi
mov eax, dword [0x6fd204]
mov ecx, dword [esi + 4]
push eax
push 0x3f4
push ecx
call edi
mov edx, dword [esi + 4]
push section..data
push 0x3ec
push edx
call dword [sym.imp.USER32.dll_SetDlgItemTextA]
mov eax, dword [0x6fd214]
mov ecx, dword [esi + 4]
add eax, 0x3f5
push eax
push 0x3f7
push 0x3f5
push ecx
call dword [sym.imp.USER32.dll_CheckRadioButton]
mov edx, dword [0x6fd210]
mov eax, dword [esi + 4]
neg edx
sbb edx, edx
and edx, 5
push edx
push 0x3f8
push eax
call ebx
mov edi, dword [sym.imp.USER32.dll_ShowWindow]
push eax
call edi
mov ecx, dword [0x6fd210]
mov edx, dword [esi + 4]
neg ecx
sbb ecx, ecx
and ecx, 5
push ecx
push 0x3f9
push edx
call ebx
push eax
call edi
pop edi
mov dword [esi + 0x10], 0xffffffff
pop esi
pop ebx
add esp, 0x20
ret
Function at 0x4033a0
Capabilities:
Act as tcp client
Connect socket
Connect tcp socket
Connect udp socket
Create tcp socket
Create udp socket
Get socket status
Receive data
Receive data on socket
Resolve dns
Send data
Send data on socket
Send http request
Send http request with host header

Disassembly:
mov eax, 0x8110
call fcn.00404eb0
mov eax, dword [0x6fd284]
xor eax, esp
mov dword [esp + 0x810c], eax
push ebp
mov ebp, ecx
mov eax, dword [ebp + 0x14]
test eax, eax
je 0x4033d2
push eax
call fcn.0040434e
add esp, 4
mov dword [ebp + 0x14], 0
cmp byte [ebp], 0
je 0x40355b
cmp dword [0x6fd204], 0
je 0x40355b
cmp word [ebp + 4], 0
push esi
lea esi, [ebp + 4]
push edi
jne 0x403432
push str.query.mv_db.com
call dword [sym.imp.WS2_32.dll_gethostbyname]
mov edi, eax
test edi, edi
je 0x4034da
xor eax, eax
mov dword [esi], eax
mov dword [esi + 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
push 0x50
mov word [esi], 2
call dword [sym.imp.WS2_32.dll_htons]
mov word [ebp + 6], ax
mov eax, dword [edi + 0xc]
mov ecx, dword [eax]
mov edx, dword [ecx]
mov dword [ebp + 8], edx
push 0
push 1
push 2
call dword [sym.imp.WS2_32.dll_socket]
mov edi, eax
cmp edi, 0xffffffff
je 0x4034da
push 0x10
push esi
push edi
call dword [sym.imp.WS2_32.dll_connect]
cmp eax, 0xffffffff
je 0x4034d3
mov ecx, ebp
call fcn.004032f0
push eax
lea eax, [esp + 0x11c]
push str.GET__query.html_v1DISCID_X_HTTP_1.0_r_nHost:_query.mv_db.com_r_n_r_n
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
lea eax, [esp + 0x124]
add esp, 0xc
lea edx, [eax + 1]
mov cl, byte [eax]
add eax, 1
test cl, cl
jne 0x403480
push 0
sub eax, edx
push eax
lea ecx, [esp + 0x120]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_send]
lea edx, [esp + 0xc]
push edx
push 0
push 0
lea eax, [esp + 0x20]
push eax
push 0
mov dword [esp + 0x20], 4
mov dword [esp + 0x24], 0
mov dword [esp + 0x2c], edi
mov dword [esp + 0x28], 1
call dword [sym.imp.WS2_32.dll_select]
test eax, eax
jg 0x4034f4
push edi
call dword [sym.imp.WS2_32.dll_closesocket]
pop edi
pop esi
xor al, al
pop ebp
mov ecx, dword [esp + 0x810c]
xor ecx, esp
call fcn.00404e9c
add esp, 0x8110
ret
push 0
push 0x8000
lea ecx, [esp + 0x120]
push ecx
push edi
call dword [sym.imp.WS2_32.dll_recv]
push edi
mov byte [esp + eax + 0x11c], 0
call dword [sym.imp.WS2_32.dll_closesocket]
lea edx, [esp + 0x118]
push str._r_n_r_n
push edx
call fcn.00405060
add esp, 8
test eax, eax
je 0x4034da
add eax, 4
push eax
call fcn.00410750
add esp, 4
pop edi
mov dword [ebp + 0x14], eax
pop esi
mov al, 1
pop ebp
mov ecx, dword [esp + 0x810c]
xor ecx, esp
call fcn.00404e9c
add esp, 0x8110
ret
mov ecx, dword [esp + 0x8110]
pop ebp
xor ecx, esp
xor al, al
call fcn.00404e9c
add esp, 0x8110
ret
Function at 0x4039fc
Capabilities:
Read file on windows

Disassembly:
sub esp, 0x20c
mov eax, dword [0x6fd284]
xor eax, esp
mov dword [esp + 0x208], eax
mov eax, dword [esp + 0x210]
push ebp
push esi
mov esi, ecx
xor ebp, ebp
cmp dword [esi + 0x30], ebp
mov dword [esp + 8], eax
je 0x403b61
mov ecx, dword [esi + 0x38]
cmp ecx, dword [esi]
jge 0x403b61
push ebx
xor ebx, ebx
push edi
lea ecx, [ecx]
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 4]
mov ecx, dword [esp + 0x224]
shl edx, 4
mov eax, dword [edx + eax + 4]
shl eax, 0xb
sub eax, dword [esi + 0x3c]
sub ecx, ebx
cmp ecx, eax
mov edi, ecx
jb 0x403a44
mov edi, eax
mov edx, dword [esp + 0x10]
mov eax, dword [esi + 0x30]
push ebp
lea ecx, [esp + 0x18]
push ecx
push edi
push edx
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x403b57
mov eax, dword [esp + 0x14]
add dword [esi + 0x28], eax
adc dword [esi + 0x2c], ebp
add dword [esp + 0x10], eax
add dword [esi + 0x3c], eax
add ebx, eax
cmp eax, edi
jne 0x403b3a
cmp ebx, dword [esp + 0x224]
jge 0x403b3a
add dword [esi + 0x38], 1
mov eax, dword [esi + 0x38]
cmp eax, dword [esi]
jge 0x403b3a
mov ecx, dword [esi + 4]
shl eax, 4
mov edx, dword [eax + ecx + 8]
cmp edx, dword [esi + 0x34]
je 0x403b06
mov eax, dword [esi + 0x30]
cmp eax, ebp
je 0x403ab6
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [esi + 0x38]
mov ecx, dword [esi + 4]
shl eax, 4
mov eax, dword [eax + ecx + 8]
mov dword [esi + 0x34], eax
mov edx, dword [0x6fd200]
push eax
add edx, 0x61
push edx
lea eax, [esp + 0x20]
push 0x680368
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x10
push ebp
push ebp
push 3
push ebp
push 1
push closesocket
lea ecx, [esp + 0x30]
push ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
cmp eax, 0xffffffff
mov dword [esi + 0x30], eax
je 0x403b5c
mov dword [esi + 0x3c], ebp
mov edx, dword [esi + 0x38]
mov eax, dword [esi + 4]
shl edx, 4
mov eax, dword [edx + eax]
shl eax, 0xb
cmp eax, dword [esi + 0x3c]
je 0x403a20
mov ecx, dword [esi + 0x30]
push ebp
push ebp
push eax
push ecx
mov dword [esi + 0x3c], eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
cmp eax, 0xffffffff
jne 0x403a20
mov dword [esi + 0x3c], ebp
mov eax, ebx
pop edi
pop ebx
mov ecx, dword [esp + 0x210]
pop esi
pop ebp
xor ecx, esp
call fcn.00404e9c
add esp, 0x20c
ret 8
or eax, 0xffffffff
jmp 0x403b3c
mov dword [esi + 0x30], ebp
jmp 0x403b3a
xor eax, eax
jmp 0x403b3e
Function at 0x404e9c
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x6fd284]
jne 0x404ea6
repz ret
jmp fcn.0040908c

Function at 0x4072ce
Capabilities:
Write file on windows

Disassembly:
push ecx
push ebx
mov ebx, dword [esp + 0xc]
push esi
push edi
xor esi, esi
xor edi, edi
cmp ebx, dword [edi*8 + 0x6fd538]
je 0x4072e9
inc edi
cmp edi, 0x17
jb 0x4072da
cmp edi, 0x17
jae 0x407469
push ebp
push 3
call fcn.0040b4b0
cmp eax, 1
pop ecx
je 0x407435
push 3
call fcn.0040b4b0
test eax, eax
pop ecx
jne 0x40731d
cmp dword [0x6fd290], 1
je 0x407435
cmp ebx, 0xfc
je 0x407468
push str.Runtime_Error__n_nProgram:
mov ebx, 0x314
push ebx
mov ebp, 0x718db0
push ebp
call fcn.0040b44b
add esp, 0xc
test eax, eax
je 0x407353
push esi
push esi
push esi
push esi
push esi
call fcn.0040a966
add esp, 0x14
push 0x104
mov esi, 0x718dc9
push esi
push 0
mov byte [0x718ecd], 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
test eax, eax
jne 0x407397
push str._program_name_unknown_
push 0x2fb
push esi
call fcn.0040b44b
add esp, 0xc
test eax, eax
je 0x407397
xor eax, eax
push eax
push eax
push eax
push eax
push eax
call fcn.0040a966
add esp, 0x14
push esi
call fcn.0040b3c0
inc eax
cmp eax, 0x3c
pop ecx
jbe 0x4073dc
push esi
call fcn.0040b3c0
sub esi, 0x3b
add eax, esi
push 3
mov ecx, 0x7190c4
push 0x680b2c
sub ecx, eax
push ecx
push eax
call fcn.0040b306
add esp, 0x14
test eax, eax
je 0x4073dc
xor esi, esi
push esi
push esi
push esi
push esi
push esi
call fcn.0040a966
add esp, 0x14
jmp 0x4073de
xor esi, esi
push 0x680b28
push ebx
push ebp
call fcn.0040b295
add esp, 0xc
test eax, eax
je 0x4073fe
push esi
push esi
push esi
push esi
push esi
call fcn.0040a966
add esp, 0x14
push dword [edi*8 + 0x6fd53c]
push ebx
push ebp
call fcn.0040b295
add esp, 0xc
test eax, eax
je 0x407420
push esi
push esi
push esi
push esi
push esi
call fcn.0040a966
add esp, 0x14
push 0x12010
push str.Microsoft_Visual_C_Runtime_Library
push ebp
call fcn.0040b0d8
add esp, 0xc
jmp 0x407468
push 0xfffffffffffffff4
call dword [sym.imp.KERNEL32.dll_GetStdHandle]
mov ebp, eax
cmp ebp, esi
je 0x407468
cmp ebp, 0xffffffff
je 0x407468
push 0
lea eax, [esp + 0x14]
push eax
lea esi, [edi*8 + 0x6fd53c]
push dword [esi]
call fcn.0040b3c0
pop ecx
push eax
push dword [esi]
push ebp
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret
Function at 0x40b0d8
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
push esi
push edi
call fcn.004057bd
xor ebx, ebx
cmp dword [0x719570], ebx
mov dword [ebp - 8], eax
mov dword [ebp - 4], ebx
mov dword [ebp - 0xc], ebx
mov dword [ebp - 0x10], ebx
jne 0x40b1ae
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
cmp edi, ebx
je 0x40b28e
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push 0x680d38
push edi
call esi
cmp eax, ebx
je 0x40b28e
push eax
call fcn.0040574f
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x719570], eax
call esi
push eax
call fcn.0040574f
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x719574], eax
call esi
push eax
call fcn.0040574f
mov dword [0x719578], eax
lea eax, [ebp - 0xc]
push eax
call fcn.00405f0e
test eax, eax
pop ecx
pop ecx
je 0x40b17c
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a966
add esp, 0x14
cmp dword [ebp - 0xc], 2
jne 0x40b1ae
push str.GetUserObjectInformationA
push edi
call esi
push eax
call fcn.0040574f
cmp eax, ebx
pop ecx
mov dword [0x719580], eax
je 0x40b1ae
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.0040574f
pop ecx
mov dword [0x71957c], eax
mov eax, dword [0x71957c]
mov ecx, dword [ebp - 8]
cmp eax, ecx
je 0x40b233
cmp dword [0x719580], ecx
je 0x40b233
push eax
call fcn.004057c6
push dword [0x719580]
mov esi, eax
call fcn.004057c6
cmp esi, ebx
pop ecx
pop ecx
mov edi, eax
je 0x40b233
cmp edi, ebx
je 0x40b233
call esi
cmp eax, ebx
je 0x40b200
lea ecx, [ebp - 0x14]
push ecx
push 0xc
lea ecx, [ebp - 0x20]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x40b200
test byte [ebp - 0x18], 1
jne 0x40b233
lea eax, [ebp - 0x10]
push eax
call fcn.00405f45
test eax, eax
pop ecx
je 0x40b21b
push ebx
push ebx
push ebx
push ebx
push ebx
call fcn.0040a966
add esp, 0x14
cmp dword [ebp - 0x10], 4
jb 0x40b22a
or dword [ebp + 0x10], 0x200000
jmp 0x40b26e
or dword [ebp + 0x10], 0x40000
jmp 0x40b26e
mov eax, dword [0x719574]
cmp eax, dword [ebp - 8]
je 0x40b26e
push eax
call fcn.004057c6
cmp eax, ebx
pop ecx
je 0x40b26e
call eax
cmp eax, ebx
mov dword [ebp - 4], eax
je 0x40b26e
mov eax, dword [0x719578]
cmp eax, dword [ebp - 8]
je 0x40b26e
push eax
call fcn.004057c6
cmp eax, ebx
pop ecx
je 0x40b26e
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x719570]
call fcn.004057c6
cmp eax, ebx
pop ecx
je 0x40b28e
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40b290
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x4d7d80
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
sub esp, 0x10
mov eax, dword [ebp + 0x18]
mov dword [ebp - 0x10], edx
test eax, eax
jle 0x4d7e49
mov dword [ebp - 0x14], 0
mov edi, eax
mov dword [ebp - 0x18], 0
mov dword [ebp - 0x1c], 0
mov ecx, dword [ebp - 0x1c]
mov ebx, dword [ebp - 0x10]
mov edx, dword [ebp - 0x18]
mov eax, dword [ecx + ebx]
mov ecx, dword [ebp + 8]
mov ebx, dword [edx + ecx]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + esi]
mov ecx, eax
xor eax, ebx
or ecx, ebx
and eax, 0xfefefefe
shr eax, 1
mov ebx, dword [ebp - 0x10]
sub ecx, eax
mov eax, edx
xor edx, ecx
or eax, ecx
and edx, 0xfefefefe
mov ecx, dword [ebp - 0x14]
shr edx, 1
sub eax, edx
mov edx, dword [ebp - 0x1c]
mov dword [ecx + esi], eax
mov ecx, dword [ebp - 0x18]
mov eax, dword [edx + ebx + 4]
mov edx, dword [ebp + 8]
mov ebx, dword [ecx + edx + 4]
mov ecx, dword [ebp - 0x14]
mov edx, dword [ecx + esi + 4]
mov ecx, eax
xor eax, ebx
and eax, 0xfefefefe
or ecx, ebx
shr eax, 1
sub ecx, eax
mov eax, edx
xor edx, ecx
and edx, 0xfefefefe
or eax, ecx
shr edx, 1
sub eax, edx
mov edx, dword [ebp - 0x14]
mov dword [edx + esi + 4], eax
mov ecx, dword [ebp + 0xc]
mov ebx, dword [ebp + 0x10]
add dword [ebp - 0x1c], ebx
mov eax, dword [ebp + 0x14]
add edx, ecx
add dword [ebp - 0x18], eax
dec edi
mov dword [ebp - 0x14], edx
jne 0x4d7db0
add esp, 0x10
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x50c4b0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0x2c
mov dword [ebp - 0x10], eax
mov dword [ebp - 0x14], edx
mov dword [ebp - 0x18], 0xffffffc0
jmp 0x50c4d5
inc dword [ebp - 0x18]
cmp dword [ebp - 0x18], 0x3f
jg 0x50c624
mov ebx, dword [ebp - 0x18]
test ebx, ebx
je 0x50c4c8
mov dword [ebp - 0x1c], 0
mov eax, dword [ebp - 0x18]
shr eax, 0x1f
mov dword [ebp - 0x28], eax
jmp 0x50c582
mov eax, dword [ebp + 8]
movzx ebx, byte [edi + eax + 0x40]
movzx eax, bl
cmp eax, edx
jle 0x50c524
mov ecx, dword [ebp - 0x14]
test ecx, ecx
je 0x50c513
mov esi, dword [ebp - 0x30]
mov eax, dword [ebp - 0x24]
mov ebx, dword [ebp - 0x14]
mov dword [ebx + eax*4], esi
mov ecx, dword [ebp + 8]
mov byte [edi + ecx + 0x40], dl
mov ebx, dword [ebp - 0x10]
mov ecx, dword [ebx]
mov esi, dword [ebx + 8]
mov bl, dl
movzx eax, word [esi + ecx*4]
mov edx, dword [ebp - 0x1c]
movzx ecx, word [esi + ecx*4 + 2]
mov esi, dword [ebp - 0x20]
lea eax, [esi + eax*2]
movzx esi, byte [ebp - 0x2c]
shl eax, 6
add eax, edx
shl eax, 8
add ecx, 0xf
lea edx, [eax + esi]
movzx eax, bl
cmp eax, ecx
jle 0x50c566
mov ebx, dword [ebp - 0x14]
test ebx, ebx
je 0x50c55f
mov esi, dword [ebp - 0x24]
mov eax, dword [ebp - 0x14]
mov dword [eax + esi*4], edx
mov edx, dword [ebp + 8]
mov byte [edi + edx + 0x40], cl
inc dword [ebp - 0x20]
add edi, 0x2000
cmp dword [ebp - 0x20], 1
jle 0x50c595
inc dword [ebp - 0x1c]
cmp dword [ebp - 0x1c], 0x3f
jg 0x50c4c8
mov dword [ebp - 0x20], 0
mov ecx, dword [ebp - 0x1c]
mov edx, dword [ebp - 0x18]
shl ecx, 7
lea edi, [ecx + edx]
mov esi, dword [ebp - 0x18]
lea ebx, [edi + 0x40]
mov ecx, dword [ebp - 0x18]
mov dword [ebp - 0x24], ebx
mov edx, dword [ebp + 8]
sar esi, 0x1f
xor ecx, esi
sub ecx, esi
mov dword [ebp - 0x2c], ecx
mov byte [edi + edx + 0x40], 0x64
mov ecx, dword [ebp - 0x10]
mov eax, dword [ebp - 0x20]
mov ebx, dword [ebp - 0x1c]
mov esi, dword [ecx + eax*4 + 0x14]
movzx edx, byte [ebx + esi]
mov esi, ecx
mov ecx, dword [ecx]
cmp ecx, edx
mov ebx, ecx
jle 0x50c5f0
mov ebx, dword [ebp - 0x20]
mov eax, dword [esi + ebx*4 + 0x1c]
mov esi, dword [ebp - 0x1c]
mov ebx, ecx
movsx eax, byte [esi + eax]
cmp eax, dword [ebp - 0x2c]
jl 0x50c5f0
mov eax, dword [ebp - 0x2c]
lea ebx, [edx + eax - 1]
lea esi, [esi]
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + 8]
movzx edx, word [esi + ebx*4 + 2]
movzx eax, word [esi + ebx*4]
mov dword [ebp - 0x38], edx
mov edx, dword [ebp - 0x28]
lea edx, [edx + eax*2]
mov dword [ebp - 0x30], edx
mov edx, dword [ebp - 0x38]
inc edx
cmp ecx, ebx
jne 0x50c4f1
mov edx, dword [ebp + 8]
movzx ebx, byte [edi + edx + 0x40]
jmp 0x50c524
add esp, 0x2c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x59e820
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
push edi
mov edi, eax
push esi
mov esi, edx
push ebx
sub esp, 8
mov ecx, dword [eax + 4]
movzx ebx, byte [esi]
mov edx, ecx
sar edx, 0xf
lea eax, [edx + ebx*4]
mov edx, dword [edi]
movzx ebx, byte [eax + edi + 0xc]
mov eax, ecx
shl ebx, 9
sub eax, ebx
cmp edx, eax
mov dword [edi + 4], eax
jge 0x59e895
movzx eax, byte [esi]
mov ebx, eax
and ebx, 1
mov dword [ebp - 0x10], ebx
movzx edx, byte [edi + eax + 0x294]
mov byte [esi], dl
mov ebx, dword [edi + 4]
mov eax, dword [edi]
mov esi, dword [edi]
lea edx, [ebx - 0x20000]
mov ecx, ebx
sar edx, 0x1f
and ecx, edx
and edx, eax
add edx, esi
add ebx, ecx
test dl, dl
mov dword [edi + 4], ebx
mov ebx, edx
je 0x59e905
mov dword [edi], edx
mov eax, dword [ebp - 0x10]
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
movzx ecx, byte [esi]
sub edx, eax
mov dword [edi], edx
and ecx, 1
xor ecx, 1
mov dword [ebp - 0x10], ecx
cmp ebx, 0x1ffff
movzx edx, byte [esi]
movzx ecx, byte [edi + edx + 0x214]
mov byte [esi], cl
mov dword [ebp - 0x14], ebx
jg 0x59e937
mov ebx, dword [edi]
nop
mov ecx, dword [ebp - 0x14]
lea edx, [ebx + ebx]
mov ebx, edx
add ecx, ecx
test dl, dl
mov dword [ebp - 0x14], ecx
mov dword [edi + 4], ecx
jne 0x59e8fb
mov esi, dword [edi + 0x318]
cmp esi, dword [edi + 0x31c]
ja 0x59e8ea
mov dword [edi], edx
movzx eax, byte [esi]
lea ebx, [edx + eax*2]
lea edx, [ebx - 0xff]
lea eax, [esi + 1]
mov ebx, edx
mov dword [edi + 0x318], eax
cmp ecx, 0x1ffff
jle 0x59e8c0
jmp 0x59e888
mov ecx, dword [edi + 0x318]
cmp ecx, dword [edi + 0x31c]
ja 0x59e91b
mov dword [edi], edx
movzx esi, byte [ecx]
lea ebx, [edx + esi*2]
lea eax, [ebx - 0xff]
lea edx, [ecx + 1]
mov dword [edi], eax
mov eax, dword [ebp - 0x10]
mov dword [edi + 0x318], edx
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [edi + 4], ebx
mov eax, dword [ebp - 0x10]
add esp, 8
pop ebx
pop esi
pop edi
pop ebp
ret