joyce8/EMBER2024-capa huggingface dataset:
Function at 0x66f1ac
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
add esp, 0xffffff7c
cmp dword [0x6993c4], 0
push ebx
push esi
mov esi, dword [ebp + 8]
jne 0x66f286
cmp dword [0x6993c0], 0
jne 0x66f286
cmp dword [0x6995e8], 0
je 0x66f240
push 0x80
lea eax, [ebp - 0x84]
push eax
push 0
call sub.KERNEL32.DLL_GetModuleFileNameA
push 0x5c
lea edx, [ebp - 0x84]
push edx
call fcn.0066e85c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x66f226
push 0x3a
lea edx, [ebp - 0x84]
push edx
call fcn.0066e85c
add esp, 8
mov ebx, eax
test eax, eax
jne 0x66f226
lea ebx, [ebp - 0x84]
jmp 0x66f227
inc ebx
call fcn.0066f164
or eax, 0x10010
push eax
push ebx
push esi
push 0
call sub.USER32.DLL_MessageBoxA
jmp 0x66f2c1
push 0xfffffffffffffff4
call sub.KERNEL32.DLL_GetStdHandle
mov ebx, eax
lea eax, [ebp - 4]
push 0
push eax
push 2
push 0x6993c8
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea edx, [ebp - 4]
push edx
push esi
call fcn.00665378
pop ecx
push eax
push esi
push ebx
call sub.KERNEL32.DLL_WriteFile
push 0
lea ecx, [ebp - 4]
push ecx
push 2
push 0x6993cb
push ebx
call sub.KERNEL32.DLL_WriteFile
jmp 0x66f2c1
cmp dword [0x6993c0], 0
je 0x66f2a0
cmp dword [0x6993c0], 0xffffffff
je 0x66f2c1
push esi
call dword [0x6993c0]
pop ecx
mov eax, dword [0x6993c4]
test eax, eax
je 0x66f2c1
cmp dword [0x6993c4], 0xffffffff
je 0x66f2c1
cmp byte [eax], 0
je 0x66f2c1
push esi
push eax
call fcn.0066f0c4
add esp, 8
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x672e20
Capabilities:
Check if file exists
Delete directory
Delete file
Get file attributes

Disassembly:
push ebx
push esi
push edi
push ebp
mov esi, eax
mov eax, esi
call fcn.004bbe30
mov ebp, eax
push ebp
call sub.KERNEL32.DLL_DeleteFileW
cmp eax, 1
sbb ebx, ebx
inc ebx
test bl, bl
jne 0x49a6b9
call sub.KERNEL32.DLL_GetLastError
mov edi, eax
push ebp
call sub.KERNEL32.DLL_GetFileAttributesW
cmp eax, 0xffffffff
je 0x49a6b3
test ah, 4
je 0x49a6b3
test al, 0x10
je 0x49a6b3
mov eax, esi
call fcn.004bbe30
push eax
call sub.KERNEL32.DLL_RemoveDirectoryW
cmp eax, 1
sbb ebx, ebx
inc ebx
jmp 0x49a6b9
push edi
call sub.KERNEL32.DLL_SetLastError
mov eax, ebx
pop ebp
pop edi
pop esi
pop ebx
ret
jmp 0x49a664
Function at 0x401f90
Capabilities:
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
mov dword [ebp - 8], ebx
mov eax, dword [ebp + 8]
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov esi, dword [ebx]
mov dword [esp + 0xc], eax
mov eax, 1
mov dword [esp + 4], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov dword [esp], eax
call sub.msvcrt.dll_fwrite
mov dword [ebx], eax
cmp eax, esi
sete al
mov ebx, dword [ebp - 8]
movzx eax, al
mov esi, dword [ebp - 4]
mov esp, ebp
dec eax
and eax, 0xffffffdc
pop ebp
ret

Function at 0x401fe0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov edx, 1
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
mov dword [ebp - 8], ebx
mov ebx, dword [ebp + 0xc]
mov dword [ebp - 4], esi
mov esi, dword [ebx]
mov dword [esp + 0xc], eax
mov eax, dword [ebp + 0x10]
mov dword [esp + 8], esi
mov dword [esp + 4], edx
mov dword [esp], eax
call sub.msvcrt.dll_fread
mov dword [ebx], eax
cmp eax, esi
sete al
mov ebx, dword [ebp - 8]
movzx eax, al
mov esi, dword [ebp - 4]
mov esp, ebp
dec eax
and eax, 0xffffffdc
pop ebp
ret
Function at 0x403860
Capabilities:
Contain obfuscated stackstrings

Disassembly:
push ebp
mov ebp, esp
push edi
push esi
push ebx
sub esp, 0xac
mov ecx, dword [0x406090]
test ecx, ecx
je 0x40387e
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov dword [ebp - 0x58], 0x41414141
mov eax, dword [str._LIBGCCW32_EH_2_MINGW32]
lea esi, [ebp - 0x58]
mov dword [ebp - 0x54], 0x41414141
mov dword [ebp - 0x50], 0x41414141
mov dword [ebp - 0x38], eax
mov eax, dword [0x4052e4]
mov dword [ebp - 0x4c], 0x41414141
mov dword [ebp - 0x48], 0x41414141
mov dword [ebp - 0x34], eax
mov eax, dword [0x4052e8]
mov dword [ebp - 0x44], 0x41414141
mov dword [ebp - 0x40], 0x41414141
mov dword [ebp - 0x30], eax
mov eax, dword [0x4052ec]
mov dword [ebp - 0x3c], 0x41414141
mov dword [ebp - 0x2c], eax
mov eax, dword [0x4052f0]
mov dword [ebp - 0x28], eax
mov eax, dword [0x4052f4]
mov dword [ebp - 0x24], eax
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
movzx eax, ax
sub esp, 4
test eax, eax
mov dword [ebp - 0x9c], eax
jne 0x4039dd
mov dword [esp], 0x1c
call sub.msvcrt.dll_malloc
test eax, eax
mov ebx, eax
je 0x403a11
cld
mov edi, eax
mov eax, dword [ebp - 0x9c]
mov ecx, 7
mov edx, 0x1f
rep stosd dword es:[edi], eax
mov dword [ebx], 0x1c
mov eax, dword [0x406060]
mov ecx, 1
mov dword [ebx + 4], sub.msvcrt.dll_abort
mov dword [ebx + 8], 0x4037b0
mov dword [ebx + 0x14], eax
jmp 0x403960
mov eax, ebx
and eax, ecx
cmp eax, 1
sbb eax, eax
and al, 0x20
add ecx, ecx
add al, 0x41
mov byte [ebp + edx - 0x98], al
dec edx
jns 0x403960
mov eax, dword [str._LIBGCCW32_EH_2_MINGW32]
mov dword [ebp - 0x78], eax
mov eax, dword [0x4052e4]
mov dword [ebp - 0x74], eax
mov eax, dword [0x4052e8]
mov dword [ebp - 0x70], eax
mov eax, dword [0x4052ec]
mov dword [ebp - 0x6c], eax
mov eax, dword [0x4052f0]
mov dword [ebp - 0x68], eax
mov eax, dword [0x4052f4]
mov dword [ebp - 0x64], eax
lea eax, [ebp - 0x98]
mov dword [esp], eax
call sub.KERNEL32.dll_AddAtomA
movzx edi, ax
sub esp, 4
test edi, edi
jne 0x403a02
xor edx, edx
test edx, edx
jne 0x4039e4
mov dword [esp], ebx
call sub.msvcrt.dll_free
mov dword [esp], esi
call sub.KERNEL32.dll_FindAtomA
sub esp, 4
movzx eax, ax
call fcn.004037c0
mov ebx, eax
mov dword [0x406090], ebx
lea eax, [ebx + 4]
mov dword [0x406080], eax
lea eax, [ebx + 8]
mov dword [0x4060a0], eax
lea esp, [ebp - 0xc]
pop ebx
pop esi
pop edi
pop ebp
ret
mov eax, edi
call fcn.004037c0
cmp eax, ebx
mov edx, edi
jne 0x4039c1
jmp 0x4039c3
call sub.msvcrt.dll_abort
nop
nop
nop
nop
nop
nop
nop
nop
nop
nop
Function at 0x1000ad05
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
or al, 0x66
cmp eax, dword [edi + 6]
or al, 0x66
cmp eax, dword [edi + 6]
jne 0x1000ad1b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000ad39
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000ad97
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
add byte [eax], ah
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000ad7e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000ad87
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000ad91
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000ad73
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000acfd
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000ade4
dec eax
je 0x1000addb
sub eax, 3
je 0x1000add2
mov dword [ebp - 4], 0x40
jmp 0x1000ae01
mov dword [ebp - 4], 4
jmp 0x1000ade7
mov dword [ebp - 4], 0x20
jmp 0x1000ade7
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000ae33
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000adb3
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000a644
cmc
loop 0x1000ae9a
inc ebx
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1000ae3f
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
invalid
Function at 0x1000ad6a
Capabilities:
Inspect section memory permissions

Disassembly:
mov edi, dword [ebp - 0x88]
mov eax, dword [ebp + 0xc]
or al, 0x66
cmp eax, dword [edi + 6]
or al, 0x66
cmp eax, dword [edi + 6]
jne 0x1000ad1b
mov edx, dword [ebp - 0xb4]
xor ecx, ecx
mov edi, 0x60000000
jmp 0x1000ad39
movzx eax, ax
lea eax, [eax + eax*4]
mov ecx, dword [edi + eax*8 + 0x104]
mov edx, dword [edi + eax*8 + 0x108]
lea eax, [edi + eax*8 + 0xf8]
mov edi, dword [eax + 0x24]
lea eax, [edx + ecx - 1]
xor edx, edx
div dword [ebp - 0xac]
xor edx, edx
mov dword [ebp - 0x44], eax
mov eax, ecx
div dword [ebp - 0xac]
cmp eax, dword [ebp - 0x44]
ja 0x1000ad97
mov edx, edi
mov dword [ebp + 8], edi
and dword [ebp + 8], 0x40000000
mov dword [ebp + 0x10], edi
and edx, 0x20000000
add byte [eax], ah
and dword [ebp + 0x10], 0x80000000
mov ecx, dword [ebp + 0x18]
cmp edx, ebx
je 0x1000ad7e
or byte [eax + ecx], 1
cmp dword [ebp + 8], ebx
je 0x1000ad87
or byte [eax + ecx], 2
cmp dword [ebp + 0x10], ebx
je 0x1000ad91
add ecx, eax
or byte [ecx], 4
inc eax
cmp eax, dword [ebp - 0x44]
jbe 0x1000ad73
inc dword [ebp + 0xc]
mov eax, dword [ebp - 0x88]
mov cx, word [ebp + 0xc]
cmp cx, word [eax + 6]
jbe 0x1000acfd
mov dword [ebp + 8], esi
xor edi, edi
mov eax, dword [ebp + 0x18]
push 2
pop ecx
movzx eax, byte [edi + eax]
sub eax, ecx
je 0x1000ade4
dec eax
je 0x1000addb
sub eax, 3
je 0x1000add2
mov dword [ebp - 4], 0x40
jmp 0x1000ae01
mov dword [ebp - 4], 4
jmp 0x1000ade7
mov dword [ebp - 4], 0x20
jmp 0x1000ade7
mov dword [ebp - 4], ecx
lea eax, [ebp - 4]
push eax
push dword [ebp - 4]
push dword [ebp - 0xac]
push dword [ebp + 8]
call dword [ebp - 0xbc]
test eax, eax
je 0x1000ae33
mov eax, dword [ebp - 0xac]
add dword [ebp + 8], eax
inc edi
cmp edi, dword [ebp - 0x8c]
jbe 0x1000adb3
mov eax, dword [ebp - 0x88]
mov edi, dword [eax + 0x28]
add edi, esi
call fcn.1000a644
cmc
loop 0x1000ae9a
inc ebx
push dword [ebp + 0x14]
push 1
push esi
call edi
mov eax, esi
jmp 0x1000ae3f
push 0x8000
push ebx
push esi
call dword [ebp - 8]
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
invalid
Function at 0x4013a0
Capabilities:
Query or enumerate registry value

Disassembly:
sub esp, 0x48c
mov eax, dword [0x41411c]
xor eax, esp
mov dword [esp + 0x488], eax
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebp
mov ebp, dword [esp + 0x498]
xor eax, eax
push esi
push edi
mov edi, dword [esp + 0x4a4]
push 0x40e418
xor esi, esi
push ebp
mov word [esp + 0x270], si
mov dword [esp + 0x272], eax
mov dword [esp + 0x276], eax
mov dword [esp + 0x27a], eax
mov dword [esp + 0x27e], eax
mov dword [esp + 0x282], eax
mov dword [esp + 0x286], eax
mov dword [esp + 0x28a], eax
mov dword [esp + 0x28e], eax
mov dword [esp + 0x292], eax
mov word [esp + 0x296], ax
mov dword [esp + 0x1c], 0x28
call ebx
lea eax, [esp + 0x10]
push eax
push 0x20019
push esi
push str.SoftwareAdobeAcrobat_Reader9.0Languagecurrent
push SysReAllocStringLen
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x40153f
lea ecx, [esp + 0x14]
push ecx
lea edx, [esp + 0x26c]
push edx
push eax
push eax
mov eax, dword [esp + 0x20]
push 0x40e3ac
push eax
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x40148a
lea ecx, [esp + 0x268]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenW]
lea esi, [esp + eax*2 + 0x262]
mov edx, dword [esp + 0x10]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test esi, esi
je 0x40153f
push esi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
cmp eax, 3
jne 0x40153f
push 0x206
lea eax, [esp + 0x296]
push 0
push eax
mov word [esp + 0x29c], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
push edi
lea ecx, [esp + 0x294]
push ecx
call ebx
mov edi, dword [sym.imp.KERNEL32.dll_lstrcatW]
push str.Legal_
lea edx, [esp + 0x294]
push edx
call edi
push esi
lea eax, [esp + 0x294]
push eax
call edi
push 0x24c
lea ecx, [esp + 0x20]
push 0
push ecx
mov dword [esp + 0x24], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea edx, [esp + 0x18]
push edx
lea eax, [esp + 0x294]
push eax
call dword [sym.imp.KERNEL32.dll_FindFirstFileW]
cmp eax, 0xffffffff
je 0x40153f
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
test byte [esp + 0x18], 0x10
je 0x40153f
push esi
push ebp
call ebx
mov ecx, dword [esp + 0x498]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.0040c1b6
add esp, 0x48c
ret

Function at 0x402350
Capabilities:
Read .ini file

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x18]
mov dword [esp + 8], ecx
xor ecx, ecx
mov eax, ebp
mov edx, 2
mul edx
seto cl
push esi
push edi
neg ecx
or ecx, eax
push ecx
call sub.MSVCR80.dll_void____cdecl_operator_new___unsigned_int_
lea ebx, [ebp + ebp]
push ebx
mov esi, eax
push 0
push esi
call sub.MSVCR80.dll_memset
mov edi, dword [esp + 0x2c]
add esp, 0x10
push edi
push esi
call dword [sym.imp.KERNEL32.dll_lstrcpyW]
push ebx
push 0
push edi
call sub.MSVCR80.dll_memset
mov eax, dword [esp + 0x1c]
mov ecx, dword [esp + 0x24]
add esp, 0xc
add eax, 0x114
push eax
push ebp
push edi
push esi
push ecx
push str.labels
call dword [sym.imp.KERNEL32.dll_GetPrivateProfileStringW]
push esi
call sub.MSVCR80.dll_void___cdecl_operator_delete___void__
add esp, 4
mov eax, edi
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret 0xc
Function at 0x40ada0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 8
push ebx
push ebp
push esi
push edi
call fcn.0040ac00
mov edi, dword [esp + 0x20]
mov esi, dword [esp + 0x1c]
mov ebx, dword [sym.imp.KERNEL32.dll_FindResourceW]
push 5
push edi
push esi
mov dword [esp + 0x20], 0xffffffff
call ebx
mov ebp, eax
test ebp, ebp
je 0x40ae84
push 0xf0
push edi
push esi
call ebx
mov ebx, dword [sym.imp.KERNEL32.dll_LoadResource]
xor edi, edi
test eax, eax
je 0x40adf4
push eax
push esi
call ebx
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov edi, eax
push ebp
push esi
mov dword [esp + 0x18], 0
call ebx
test eax, eax
je 0x40ae5d
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov ebx, eax
test ebx, ebx
je 0x40ae5d
push edi
push ebx
call fcn.00401680
mov ecx, dword [esp + 0x30]
mov edx, dword [esp + 0x2c]
add esp, 8
mov edi, eax
mov eax, dword [esp + 0x2c]
push eax
push ecx
push edx
push edi
push esi
call dword [sym.imp.USER32.dll_DialogBoxIndirectParamW]
mov esi, eax
test esi, esi
je 0x40ae3f
cmp esi, 0xffffffff
jne 0x40ae49
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov dword [esp + 0x10], eax
cmp edi, ebx
je 0x40ae6b
push edi
call dword [sym.imp.KERNEL32.dll_GlobalHandle]
push eax
call dword [sym.imp.KERNEL32.dll_GlobalFree]
jmp 0x40ae6b
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov esi, dword [esp + 0x14]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x10]
test eax, eax
je 0x40ae7a
push eax
call dword [sym.imp.KERNEL32.dll_SetLastError]
pop edi
mov eax, esi
pop esi
pop ebp
pop ebx
add esp, 8
ret
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
pop ebx
add esp, 8
ret
Function at 0x40be11
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
cmp dword [0x414230], 0
push esi
jne 0x40bd84
call fcn.0040bcaf
test eax, eax
je 0x40bdc7
mov eax, dword [0x414230]
cmp eax, 1
jne 0x40bda5
push 0xd
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
test eax, eax
je 0x40bdc7
pop esi
ret
push eax
call dword [0x414238]
test eax, eax
jne 0x40be0f
push 0x40
mov eax, 0x1000
push eax
push eax
push 0
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov esi, eax
test esi, esi
jne 0x40bdcb
xor eax, eax
pop esi
ret
mov eax, dword [esi]
push edi
push dword [0x414230]
call dword [0x414238]
mov edi, eax
test edi, edi
je 0x40bdf2
push 0x8000
push 0
push esi
call dword [sym.imp.KERNEL32.dll_VirtualFree]
mov eax, edi
jmp 0x40be0e
lea edi, [esi + 0xff0]
push esi
push dword [0x414230]
call dword [0x414234]
add esi, 0x10
cmp esi, edi
jb 0x40bdf8
mov eax, esi
pop edi
pop esi
ret
jmp 0x40bd71

Function at 0x40bfb7
Capabilities:
Check os version

Disassembly:
push ebp
lea ebp, [esp - 0x78]
sub esp, 0x98
mov eax, dword [0x41411c]
xor eax, ebp
mov dword [ebp + 0x74], eax
push esi
mov esi, ecx
call fcn.0040bf4c
mov eax, 0x400000
push 0x94
mov dword [esi + 8], eax
mov dword [esi + 4], eax
lea eax, [ebp - 0x20]
push 0
push eax
mov dword [esi], 0x3c
mov byte [esi + 0xc], 0
call sub.MSVCR80.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20]
push eax
mov dword [ebp - 0x20], 0x94
call dword [sym.imp.KERNEL32.dll_GetVersionExA]
cmp dword [ebp - 0x10], 2
jne 0x40c006
cmp dword [ebp - 0x1c], 5
jb 0x40c01e
jmp 0x40c01a
cmp dword [ebp - 0x10], 1
jne 0x40c01e
cmp dword [ebp - 0x1c], 4
ja 0x40c01a
jne 0x40c01e
cmp dword [ebp - 0x18], 0
jbe 0x40c01e
mov byte [esi + 0xc], 1
lea ecx, [esi + 0x18]
mov dword [esi + 0x10], 0x800
mov dword [esi + 0x14], 0x40f060
call fcn.00401240
test eax, eax
jge 0x40c03f
mov byte [0x41415c], 1
mov ecx, dword [ebp + 0x74]
mov eax, esi
xor ecx, ebp
pop esi
call fcn.0040c1b6
add ebp, 0x78
leave
ret
Function at 0x4dbf90
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0xf07ba0]
xor edx, edx
cmp eax, edx
jne 0x4dbfb6
xor eax, eax
mov byte [eax + 0xf07aa0], al
inc eax
cmp eax, 0x100
jl 0x4dbf9e
mov dword [0xf07ba0], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0xf07aa0
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4dc047
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 0x4dc01a
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 0x4dbfe8
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x4dc0c0
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 0x4dc113
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 0x4dc0fa
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 0x4e03b0
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 0x4e05d1
cmp eax, 8
jg 0x4e05d1
cmp dword [esp + 0x8c], 2
jl 0x4e05d1
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 0x4e05d1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x4e05d1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x4e0437
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 0x4e05ba
mov ebp, dword [0x53f58c]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x4e0469
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x4e05a1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4e0489
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 [0x53f57c]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4e04c8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x53f580]
lea ecx, [esp + 0x28]
push ecx
call dword [0x53f5c0]
test eax, eax
jne 0x4e0588
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.004df9c0
cmp eax, 1
jne 0x4e05b2
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.004e0270
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x4e047d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x4e05ba
jmp 0x4e0454
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.004df5c0
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