joyce8/EMBER2024-capa huggingface dataset:
Function at 0x67804850
Capabilities:
Query environment variable

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
mov esi, eax
push ebx
mov ebx, edx
sub esp, 0x22c
mov eax, dword [0x678090c0]
test eax, eax
je 0x67804908
mov dword [esp], ebx
call eax
mov dword [ebx + 8], eax
sub esp, 4
test eax, eax
jns 0x67804890
mov eax, dword [ebx]
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
lea edi, [ebp - 0x220]
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], esi
call dword [sym.imp.kernel32.dll_GetModuleFileNameW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.MODULE
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
mov dword [esp + 8], 0x104
mov dword [esp + 4], edi
mov dword [esp], str.SystemRoot
call dword [sym.imp.kernel32.dll_GetEnvironmentVariableW]
mov eax, dword [ebx]
sub esp, 0xc
mov edx, dword [eax]
mov dword [esp + 8], edi
mov dword [esp + 4], str.SystemRoot
mov dword [esp], eax
call dword [edx + 0xc]
sub esp, 0xc
jmp 0x6780487c
mov dword [esp], str.atl100.dll
call dword [sym.imp.kernel32.dll_LoadLibraryW]
sub esp, 4
test eax, eax
je 0x6780493d
mov dword [esp + 4], 0x67807634
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_GetProcAddress]
mov dword [0x678090c0], eax
sub esp, 8
test eax, eax
jne 0x6780486d
mov dword [ebx + 8], 0x80004002
xor eax, eax
jmp 0x6780487e
Function at 0x67804950
Capabilities:
Access peb ldr_data
Extract resource via kernel32 functions
Get process heap flags
Get process heap force flags

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x38
mov edi, dword [ecx]
mov edx, dword [ecx + 4]
mov eax, dword [ecx + 8]
mov esi, dword [ecx + 0xc]
mov dword [esp + 8], edx
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_FindResourceW]
sub esp, 0xc
mov dword [ebp - 0x1c], eax
mov dword [esp + 4], eax
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_LoadResource]
mov edx, dword [ebp - 0x1c]
sub esp, 8
mov ebx, eax
mov dword [esp + 4], edx
mov dword [esp], edi
call dword [sym.imp.kernel32.dll_SizeofResource]
mov dword [ebp - 0x1c], eax
sub esp, 8
test ebx, ebx
je 0x67804ae8
mov eax, dword [esi]
test eax, eax
je 0x67804ad0
mov edx, dword [sym.imp.kernel32.dll_MultiByteToWideChar]
mov eax, dword [ebp - 0x1c]
mov dword [esp + 8], ebx
mov dword [esp + 0x14], 0
mov dword [ebp - 0x28], edx
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], eax
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
lea ecx, [eax + 1]
sub esp, 0x18
lea eax, [ecx + ecx]
mov dword [esp + 4], 0
mov edi, eax
mov dword [ebp - 0x20], eax
mov dword [esp + 8], edi
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov dword [ebp - 0x24], ecx
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapAlloc]
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x28]
sub esp, 0xc
test eax, eax
mov edi, eax
je 0x67804af8
mov dword [esp + 0x10], eax
mov eax, dword [ebp - 0x1c]
mov dword [esp + 0x14], ecx
mov dword [esp + 0xc], eax
mov dword [esp + 8], ebx
mov dword [esp + 4], 0
mov dword [esp], 0xfde9
call edx
mov eax, dword [ebp - 0x20]
mov ecx, dword [esi + 4]
xor edx, edx
sub esp, 0x18
mov word [edi + eax - 2], dx
mov eax, dword [esi]
test ecx, ecx
mov edx, dword [eax]
mov dword [esp + 4], edi
mov dword [esp], eax
jne 0x67804ac0
call dword [edx + 0x28]
mov dword [esi + 8], eax
sub esp, 8
mov dword [esp + 8], edi
mov dword [esp + 4], 0
mov eax, dword fs:[0x18]
mov eax, dword [eax + 0x30]
mov eax, dword [eax + 0x18]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_HeapFree]
mov eax, dword [esi + 8]
sub esp, 0xc
lea esp, [ebp - 0x10]
pop ecx
not eax
pop ebx
shr eax, 0x1f
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
call dword [edx + 0x24]
mov dword [esi + 8], eax
sub esp, 8
jmp 0x67804a86
mov edx, esi
mov eax, edi
call sym._create_registrar
test eax, eax
jne 0x678049c0
lea esi, [esi]
xor eax, eax
lea esp, [ebp - 0x10]
pop ecx
pop ebx
pop esi
pop edi
pop ebp
lea esp, [ecx - 4]
ret 0x10
mov dword [esi + 8], 0x8007000e
xor eax, eax
jmp 0x67804aea
Function at 0x4110cd
Capabilities:
Terminate process

Disassembly:
jmp 0x413dc0
jmp fcn.00415180
cmp ecx, dword [0x41f1b8]
jne 0x413dca
repz ret
jmp 0x41129e

Function at 0x4127f0
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x1d8
push ebx
push esi
push edi
push ecx
lea edi, [ebp - 0x1d8]
mov ecx, 0x76
mov eax, 0xcccccccc
rep stosd dword es:[edi], eax
pop ecx
mov eax, dword [0x41f1b8]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0xc], ecx
push 0
push 0
push 0
push 0
push 0
mov eax, dword [sym.imp.mfc90d.dll_Ordinal_9303]
push eax
mov ecx, dword [ebp - 0xc]
call fcn.00411096
push 0
push 0x80
push 0x40000
mov ecx, dword [ebp - 0xc]
call fcn.004114e2
mov ecx, dword [ebp - 0xc]
call fcn.00411014
mov esi, esp
lea eax, [ebp - 0x114]
push eax
push 0xff
call dword [sym.imp.KERNEL32.dll_GetCurrentDirectoryA]
cmp esi, esp
call fcn.004115d7
mov esi, esp
lea eax, [ebp - 0x114]
push eax
push 0x41cf04
mov ecx, dword [ebp - 0xc]
add ecx, 0x80
push ecx
call dword [sym.imp.mfc90d.dll_Ordinal_3462]
add esp, 0xc
cmp esi, esp
call fcn.004115d7
mov ecx, dword [ebp - 0xc]
add ecx, 0x80
mov esi, esp
call dword [sym.imp.mfc90d.dll_Ordinal_1131]
cmp esi, esp
call fcn.004115d7
push eax
push 0x3eb
mov ecx, dword [ebp - 0xc]
call fcn.0041169a
mov ecx, eax
call fcn.0041146f
push 0
push 0x50
push 0
mov ecx, dword [ebp - 0xc]
call fcn.00411456
mov eax, 1
push edx
mov ecx, ebp
push eax
lea edx, [0x412904]
call fcn.00411271
pop eax
pop edx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004110cd
add esp, 0x1d8
cmp ebp, esp
call fcn.004115d7
mov esp, ebp
pop ebp
ret
Function at 0x422162
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, 0x422f46
call fcn.004035b0
push ecx
push esi
mov esi, ecx
mov dword [ebp - 0x10], esi
mov dword [esi], 0x42542c
xor eax, eax
push 0xa
lea ecx, [esi + 0x30]
mov dword [ebp - 4], eax
mov dword [esi + 8], eax
mov dword [esi + 0xc], eax
call fcn.00412f37
push 0xa
lea ecx, [esi + 0x4c]
mov byte [ebp - 4], 1
call fcn.00412f37
push 0xa
lea ecx, [esi + 0x68]
mov byte [ebp - 4], 2
call fcn.00412d5a
mov ecx, dword [ebp - 0xc]
mov dword [esi], 0x425f14
mov dword [esi + 0xc], 0x54
mov dword [esi + 0x28], 0x412790
mov eax, esi
mov dword fs:[0], ecx
pop esi
leave
ret
Function at 0x10013d0
Capabilities:
Create udp socket
Set socket configuration

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push esi
push 0x11
push 2
push 2
call dword [sym.imp.WSOCK32.dll_socket]
cmp eax, 0xffffffff
mov dword [ebp - 8], eax
jne 0x10013f8
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
jmp 0x1001491
mov esi, dword [sym.imp.WSOCK32.dll_setsockopt]
push ebx
push edi
push 4
lea eax, [ebp - 4]
push eax
push 4
mov edi, 0xffff
push edi
push dword [ebp - 8]
xor ebx, ebx
inc ebx
mov dword [ebp - 4], ebx
call esi
test eax, eax
je 0x1001427
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
jmp 0x100148f
push 4
lea eax, [ebp - 4]
push eax
push 0x20
mov dword [ebp - 4], ebx
mov ebx, dword [ebp - 8]
push edi
push ebx
call esi
test eax, eax
jne 0x100141d
push 4
lea eax, [ebp - 4]
push eax
push 0x1002
push edi
push ebx
mov dword [ebp - 4], 0x1000
call esi
test eax, eax
jne 0x100141d
push dword [ebp + 0x10]
mov word [ebp - 0x18], 2
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x16], ax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 0x14], eax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
stosd dword es:[edi], eax
push 0x10
lea eax, [ebp - 0x18]
push eax
push ebx
call dword [sym.imp.WSOCK32.dll_bind]
test eax, eax
jne 0x100141d
mov eax, dword [ebp + 8]
mov dword [eax], ebx
xor esi, esi
pop edi
pop ebx
test esi, esi
je 0x10014a4
cmp dword [ebp - 8], 0xffffffff
je 0x10014a4
push dword [ebp - 8]
call dword [sym.imp.WSOCK32.dll_closesocket]
mov eax, esi
pop esi
leave
ret 0xc
Function at 0x100158f
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x418
push ebx
push esi
push edi
xor eax, eax
mov ecx, 0x100
lea edi, [ebp - 0x418]
rep stosd dword es:[edi], eax
push 0x8000
mov byte [ebp - 0x418], 1
mov byte [ebp - 0x417], 1
mov word [ebp - 0x410], 0x3c
call dword [sym.imp.WSOCK32.dll_htons]
mov word [ebp - 0x40e], ax
mov ebx, 0x1001158
mov esi, ebx
lea edi, [ebp - 0x3fc]
movsd dword es:[edi], dword [esi]
lea eax, [ebp - 0x18]
push eax
lea eax, [ebp - 0x32c]
movsw word es:[edi], word [esi]
push eax
mov byte [ebp - 0x416], 6
call fcn.010020d1
lea ecx, [ebp - 0x18]
push ecx
push 1
lea ecx, [ebp - 1]
push ecx
push 0x35
push eax
mov byte [ebp - 1], 1
call fcn.01001f74
lea ecx, [ebp - 0x18]
push ecx
push 6
push ebx
push 1
push eax
call fcn.01002070
mov edx, 0x1001150
mov ecx, edx
mov edi, eax
lea esi, [ecx + 1]
xor ebx, ebx
mov al, byte [ecx]
inc ecx
cmp al, bl
jne 0x100162d
sub ecx, esi
lea eax, [ebp - 0x18]
push eax
inc cl
movzx eax, cl
push eax
push edx
push 0xc
push edi
call fcn.01001f74
lea ecx, [ebp - 0x18]
push ecx
push ebx
push ebx
push 0xff
push eax
call fcn.01001f74
push 0x43
push dword [0x1003030]
lea eax, [ebp - 8]
push eax
call fcn.010013d0
mov esi, eax
cmp esi, ebx
je 0x1001679
push esi
push 0x1001130
jmp 0x10016c5
push 0x43
mov word [ebp - 0x18], 2
call dword [sym.imp.WSOCK32.dll_htons]
or dword [ebp - 0x14], 0xffffffff
mov word [ebp - 0x16], ax
xor eax, eax
lea edi, [ebp - 0x10]
stosd dword es:[edi], eax
push 0x10
stosd dword es:[edi], eax
lea eax, [ebp - 0x18]
push eax
push ebx
push 0x400
lea eax, [ebp - 0x418]
push eax
push dword [ebp - 8]
call dword [sym.imp.WSOCK32.dll_sendto]
cmp eax, 0xffffffff
jne 0x10016d1
call dword [sym.imp.WSOCK32.dll_WSAGetLastError]
mov esi, eax
push esi
push 0x100111c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
mov eax, esi
jmp 0x10016d3
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret

Function at 0x10016d8
Capabilities:
Access the windows event log

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push esi
push edi
push 0x10011a0
xor esi, esi
push esi
call dword [sym.imp.ADVAPI32.dll_RegisterEventSourceA]
mov edi, eax
cmp edi, esi
jne 0x100170a
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x100117c
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
jmp 0x1001753
mov eax, dword [ebp + 8]
mov dword [ebp - 0xc], eax
mov eax, dword [ebp + 0x10]
push esi
mov dword [ebp - 8], eax
mov eax, dword [ebp + 0xc]
mov dword [ebp - 4], eax
lea eax, [ebp - 0xc]
push eax
push esi
push 3
push esi
push 0x3e8
push esi
push 4
push edi
call dword [sym.imp.ADVAPI32.dll_ReportEventA]
test eax, eax
jne 0x100174c
call dword [sym.imp.KERNEL32.dll_GetLastError]
push eax
push 0x1001160
call dword [sym.imp.msvcrt.dll_printf]
pop ecx
pop ecx
push edi
call dword [sym.imp.ADVAPI32.dll_DeregisterEventSource]
pop edi
pop esi
leave
ret 0xc
Function at 0x1001d7c
Capabilities:
Parse pe header
Terminate process

Disassembly:
push 0x28
push 0x10013a8
call fcn.01001f18
xor edi, edi
push edi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
cmp word [eax], 0x5a4d
jne 0x1001db7
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x1001db7
movzx eax, word [ecx + 0x18]
cmp eax, 0x10b
je 0x1001dcf
cmp eax, 0x20b
je 0x1001dbc
mov dword [ebp - 0x1c], edi
jmp 0x1001de3
cmp dword [ecx + 0x84], 0xe
jbe 0x1001db7
xor eax, eax
cmp dword [ecx + 0xf8], edi
jmp 0x1001ddd
cmp dword [ecx + 0x74], 0xe
jbe 0x1001db7
xor eax, eax
cmp dword [ecx + 0xe8], edi
setne al
mov dword [ebp - 0x1c], eax
mov dword [ebp - 4], edi
push 1
call dword [sym.imp.msvcrt.dll___set_app_type]
pop ecx
or dword [0x1003560], 0xffffffff
or dword [0x1003564], 0xffffffff
call dword [sym.imp.msvcrt.dll___p__fmode]
mov ecx, dword [0x1003048]
mov dword [eax], ecx
call dword [sym.imp.msvcrt.dll___p__commode]
mov ecx, dword [0x1003044]
mov dword [eax], ecx
mov eax, dword [sym.imp.msvcrt.dll__adjust_fdiv]
mov eax, dword [eax]
mov dword [0x1003568], eax
call fcn.01001f14
cmp dword [0x1003004], edi
jne 0x1001e3e
push fcn.01001f14
call dword [sym.imp.msvcrt.dll___setusermatherr]
pop ecx
call fcn.01001f02
push 0x10010f0
push 0x10010ec
call sub.msvcrt.dll__initterm
mov eax, dword [0x1003040]
mov dword [ebp - 0x20], eax
lea eax, [ebp - 0x20]
push eax
push dword [0x100303c]
lea eax, [ebp - 0x24]
push eax
lea eax, [ebp - 0x28]
push eax
lea eax, [ebp - 0x2c]
push eax
call dword [sym.imp.msvcrt.dll___getmainargs]
mov dword [ebp - 0x30], eax
push 0x10010e8
push 0x10010e4
call sub.msvcrt.dll__initterm
mov eax, dword [ebp - 0x24]
mov ecx, dword [sym.imp.msvcrt.dll___initenv]
mov dword [ecx], eax
push dword [ebp - 0x24]
push dword [ebp - 0x28]
push dword [ebp - 0x2c]
call fcn.01001af2
add esp, 0x30
mov esi, eax
mov dword [ebp - 0x34], esi
cmp dword [ebp - 0x1c], edi
jne 0x1001eb5
push esi
call dword [sym.imp.msvcrt.dll_exit]
call dword [sym.imp.msvcrt.dll__cexit]
jmp 0x1001eea
or dword [ebp - 4], 0xffffffff
mov eax, esi
call fcn.01001f51
ret
Function at 0x405ef4
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x43ea34], 0
push esi
jne 0x405f2b
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x405f05
mov dword [ecx*4 + 0x43ea30], eax
inc ecx
cmp ecx, 0x100
jl 0x405f00
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x405f5c
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x43ea30]
xor eax, esi
inc ecx
dec edx
jne 0x405f3e
pop edi
not eax
pop esi
ret 0xc

Function at 0x406aab
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
push esi
xor esi, esi
cmp dword [0x42c55c], esi
push edi
jne 0x406ae5
mov ecx, 0x42c558
push 8
mov eax, esi
pop edi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec edi
jne 0x406ac1
mov dword [ecx], eax
add ecx, 4
inc esi
cmp ecx, 0x42c958
jl 0x406abc
mov ecx, dword [esp + 0x14]
mov eax, dword [esp + 0xc]
mov edx, ecx
dec ecx
test edx, edx
not eax
jbe 0x406b1a
lea edx, [ecx + 1]
mov ecx, dword [esp + 0x10]
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x42c558]
xor eax, esi
inc ecx
dec edx
jne 0x406afd
pop edi
pop esi
not eax
ret 0xc
Function at 0x4cf920
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x48d848
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x30
push ebp
push edi
mov edi, ecx
xor ebp, ebp
mov ecx, dword [esp + 0x48]
lea eax, [esp + 0x48]
push ebp
push eax
push ecx
lea ecx, [edi + 0x104]
mov dword [esp + 0x14], edi
mov dword [esp + 0x18], ebp
mov dword [esp + 0x1c], ebp
call fcn.004ca820
test eax, eax
jne 0x4cf98c
push ebp
push 0x4ceffc
mov ecx, edi
call fcn.004ceba0
mov eax, dword [esp + 0xc]
mov edx, dword [esp + 0x10]
pop edi
pop ebp
mov ecx, dword [esp + 0x30]
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
mov edx, dword [esp + 0x48]
push ebx
mov ebx, dword [esp + 0x50]
push esi
push ebp
push ebp
push ebx
lea ecx, [edx + 0x14]
call fcn.004ca250
lea ecx, [esp + 0x2c]
mov esi, eax
call fcn.004b9880
push ebx
mov dword [esp + 0x4c], ebp
call fcn.004ca9d0
add esp, 4
test eax, eax
je 0x4cfa2f
add esi, 0x18
push esi
call fcn.004ba2d0
add esi, eax
push esi
call fcn.004ba2d0
mov ecx, dword [esp + 0x60]
add esp, 8
cmp ecx, 3
lea eax, [esi + eax + 8]
ja 0x4cfd32
jmp dword [ecx*4 + 0x42c170]
mov eax, dword [esi]
push ebp
push eax
mov ecx, edi
call fcn.004cece0
mov ebx, dword [esp + 0x58]
mov ebp, eax
lea edi, [esi + 0x18]
mov edx, dword [ebp + 0x28]
lea ecx, [ebx + ebx*4]
mov esi, edi
lea eax, [edx + ecx*4]
push esi
mov dword [esp + 0x5c], eax
call fcn.004ba2d0
add esi, eax
push esi
call fcn.004ba2d0
add esi, eax
add esp, 8
mov esi, dword [esi]
test esi, esi
je 0x4cfa80
mov ecx, dword [esi + 0x1c]
push ecx
call dword [fcn.00492570]
test eax, eax
je 0x4cfa80
mov eax, 1
jmp 0x4cfa82
xor eax, eax
cmp ebx, 8
jge 0x4cfce7
cmp ebx, 7
ja 0x4cfd32
jmp dword [ebx*4 + 0x42c180]
test eax, eax
jne 0x4cfcfa
mov ecx, dword [esp + 0x10]
push eax
push 0x4cefe8
call fcn.004ceba0
push 6
call dword [ebp + 0x2c]
lea edx, [esp + 0x1c]
xor ecx, ecx
add ebx, 0xfffffff8
push edx
mov dword [esp + 0x20], ecx
push ebx
push esi
mov dword [esp + 0x2c], ecx
call eax
mov edx, dword [esp + 0x5c]
lea eax, [esp + 0x14]
lea ecx, [esp + 0x1c]
push eax
mov eax, dword [esp + 0x5c]
push ecx
mov ecx, dword [esp + 0x18]
push edx
push eax
call fcn.004d0240
mov eax, dword [esp + 0x14]
mov edi, dword [esp + 0x18]
lea ecx, [esp + 0x2c]
mov esi, eax
mov dword [esp + 0x48], 0xffffffff
mov dword [esp + 0x2c], 0x4b6888
call fcn.004b9a80
mov ecx, dword [esp + 0x40]
mov eax, esi
pop esi
mov edx, edi
pop ebx
pop edi
pop ebp
mov dword fs:[0], ecx
add esp, 0x3c
ret 0x10
Function at 0x4d88f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e7838]
xor edx, edx
cmp eax, edx
jne 0x4d8916
xor eax, eax
mov byte [eax + 0x4e7738], al
inc eax
cmp eax, 0x100
jl 0x4d88fe
mov dword [0x4e7838], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e7738
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4d89a7
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 0x4d897a
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 0x4d8948
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4d8a20
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 0x4d8a73
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 0x4d8a5a
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 0x4dcd10
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 0x4dcf31
cmp eax, 8
jg 0x4dcf31
cmp dword [esp + 0x8c], 2
jl 0x4dcf31
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 0x4dcf31
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x4dcf31
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4dcd97
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 0x4dcf1a
mov ebp, dword [fcn.004924a8]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x4dcdc9
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4dcf01
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4dcde9
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 [fcn.00492498]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4dce28
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [fcn.0049249c]
lea ecx, [esp + 0x28]
push ecx
call dword [fcn.00492534]
test eax, eax
jne 0x4dcee8
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.004dc320
cmp eax, 1
jne 0x4dcf12
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.004dcbd0
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x4dcddd
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x4dcf1a
jmp 0x4dcdb4
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.004dbf20
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