joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10008400
Capabilities:
Get file size

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x40
mov eax, dword [0x10036174]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 0xc]
push edi
mov edi, dword [ebp + 8]
test esi, esi
jne 0x10008433
pop edi
mov eax, 0x80004003
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002429d
mov esp, ebp
pop ebp
ret 0xc
push 0x34
lea eax, [ebp - 0x38]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x38]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileInformationByHandle]
test eax, eax
jne 0x1000847c
call dword [sym.imp.KERNEL32.dll_GetLastError]
test eax, eax
jle 0x10008553
movzx eax, ax
pop edi
or eax, 0x80070000
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002429d
mov esp, ebp
pop ebp
ret 0xc
lea eax, [ebp - 0x40]
push eax
push dword [edi + 4]
call dword [sym.imp.KERNEL32.dll_GetFileSizeEx]
test eax, eax
je 0x10008454
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
test edx, edx
jg 0x100084b4
jl 0x1000849d
test ecx, ecx
jae 0x100084b4
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002429d
mov esp, ebp
pop ebp
ret 0xc
test byte [ebp + 0x10], 1
push ebx
jne 0x10008511
mov ebx, dword [edi + 0x18]
add ebx, ebx
lea eax, [ebx + 2]
push eax
call dword [sym.imp.ole32.dll_CoTaskMemAlloc]
mov ecx, eax
mov dword [esi], ecx
test ecx, ecx
jne 0x100084ea
pop ebx
pop edi
mov eax, 0x80004005
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002429d
mov esp, ebp
pop ebp
ret 0xc
cmp dword [edi + 0x1c], 8
lea eax, [edi + 8]
jb 0x100084f5
mov eax, dword [eax]
push ebx
push eax
push ecx
call sub.VCRUNTIME140.dll_memcpy
mov ecx, dword [edi + 0x18]
add esp, 0xc
mov eax, dword [esi]
xor edx, edx
mov word [eax + ecx*2], dx
mov edx, dword [ebp - 0x3c]
mov ecx, dword [ebp - 0x40]
mov eax, dword [ebp - 0x34]
mov dword [esi + 0x18], eax
mov eax, dword [ebp - 0x30]
mov dword [esi + 0x1c], eax
mov eax, dword [ebp - 0x2c]
mov dword [esi + 0x20], eax
mov eax, dword [ebp - 0x28]
mov dword [esi + 0x24], eax
mov eax, dword [ebp - 0x24]
mov dword [esi + 0x10], eax
mov eax, dword [ebp - 0x20]
mov dword [esi + 0x14], eax
xor eax, eax
mov dword [esi + 4], 2
mov dword [esi + 0x28], 0
mov dword [esi + 0x2c], 0
mov dword [esi + 8], ecx
mov dword [esi + 0xc], edx
pop ebx
mov ecx, dword [ebp - 4]
pop edi
xor ecx, ebp
pop esi
call fcn.1002429d
mov esp, ebp
pop ebp
ret 0xc
Function at 0x1000acd0
Capabilities:
Query or enumerate registry value
Set console window title
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x41c
mov eax, dword [0x10036174]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x20c]
push 0x208
push 0
push eax
mov dword [ebp - 0x418], 0
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
mov dword [ebp - 0x41c], 0x104
lea eax, [ebp - 0x41c]
push eax
lea eax, [ebp - 0x20c]
push eax
lea eax, [ebp - 0x418]
push eax
push 0
push str.LogToFile
push esi
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
test eax, eax
jne 0x1000ad41
cmp dword [ebp - 0x418], 1
je 0x1000ad64
push 2
lea eax, [ebp - 0x20c]
mov dword [ebp - 0x41c], 2
push eax
push 1
push 0
push str.LogToFile
push esi
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
mov eax, dword [0x10037dc8]
cmp eax, 0xffffffff
je 0x1000ad7f
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov dword [0x10037dc8], 0xffffffff
cmp word [ebp - 0x20c], 0
je 0x1000aed0
mov esi, dword [sym.imp.KERNEL32.dll_lstrcmpiW]
lea eax, [ebp - 0x20c]
push str.Console
push eax
call esi
test eax, eax
jne 0x1000ade4
mov esi, dword [sym.imp.KERNEL32.dll_GetStdHandle]
push 0xfffffffffffffff5
call esi
mov dword [0x10037dc8], eax
cmp eax, 0xffffffff
jne 0x1000adc8
call dword [sym.imp.KERNEL32.dll_AllocConsole]
push 0xfffffffffffffff5
call esi
mov dword [0x10037dc8], eax
push str.Debug_Output
call dword [sym.imp.KERNEL32.dll_SetConsoleTitleW]
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002429d
mov esp, ebp
pop ebp
ret 4
cmp word [ebp - 0x20c], 0
je 0x1000aed0
push str.Debug
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1000aed0
push str.Debugger
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1000aed0
push 0x10029bdc
lea eax, [ebp - 0x20c]
push eax
call esi
test eax, eax
je 0x1000aed0
mov esi, dword [sym.imp.KERNEL32.dll_CreateFileW]
lea eax, [ebp - 0x20c]
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
push eax
call esi
mov dword [0x10037dc8], eax
cmp eax, 0xffffffff
jne 0x1000aec3
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x20
jne 0x1000aeb9
push 0x208
lea eax, [ebp - 0x414]
push 0
push eax
call sub.VCRUNTIME140.dll_memset
lea eax, [ebp - 0x414]
push eax
lea eax, [ebp - 0x20c]
push eax
call fcn.1000b220
add esp, 0x14
test eax, eax
js 0x1000aeb9
push 0
push 0x80
push 4
push 0
push 1
push 0x40000000
lea eax, [ebp - 0x414]
push eax
call esi
mov dword [0x10037dc8], eax
jmp 0x1000aebe
mov eax, dword [0x10037dc8]
cmp eax, 0xffffffff
je 0x1000aed0
push 2
push 0
push 0
push eax
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop esi
call fcn.1002429d
mov esp, ebp
pop ebp
ret 4
Function at 0x1000b120
Capabilities:
Print debug messages
Write file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x808
mov eax, dword [0x10036174]
xor eax, ebp
mov dword [ebp - 4], eax
cmp dword [0x10037dc8], 0xffffffff
push edi
mov edi, dword [ebp + 8]
je 0x1000b1a0
push esi
push edi
call dword [sym.imp.KERNEL32.dll_lstrlenW]
push 0
push 0
push 0x800
mov esi, eax
mov dword [ebp - 0x808], 0
lea eax, [ebp - 0x804]
push eax
push 0xffffffffffffffff
push edi
push 0
push 0
call dword [sym.imp.KERNEL32.dll_WideCharToMultiByte]
push 0
lea eax, [ebp - 0x808]
push eax
push esi
lea eax, [ebp - 0x804]
push eax
push dword [0x10037dc8]
call dword [sym.imp.KERNEL32.dll_WriteFile]
pop esi
pop edi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002429d
mov esp, ebp
pop ebp
ret 4
push edi
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
mov ecx, dword [ebp - 4]
xor ecx, ebp
pop edi
call fcn.1002429d
mov esp, ebp
pop ebp
ret 4
Function at 0x10016c80
Capabilities:
Set registry value

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x10036174]
xor eax, ebp
mov dword [ebp - 4], eax
push ebx
push esi
push edi
mov edi, dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov ebx, ecx
push str.E592BE31_2C37_42c7_87B2_4E954269D58F
push 1
push 1
push 0
call edi
mov esi, eax
push 0xffffffffffffffff
push esi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10016ce5
push str.CNeWindowsMediaStreamingSourceRegistry::AddRefRegistryKey_create_semaphore_failed
call fcn.1000b010
push 0
push 1
push esi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
pop edi
pop esi
mov eax, 0x80004005
pop ebx
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.1002429d
mov esp, ebp
pop ebp
ret
push str.97181D47_898F_44ba_8E11_0825E0D7A5F1
push 0xfffffff
push 0
push 0
call edi
mov dword [ebx + 0x2c], eax
call dword [sym.imp.KERNEL32.dll_GetLastError]
mov edi, dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
cmp eax, 0xb7
jne 0x10016d14
push 0
push 1
push dword [ebx + 0x2c]
call edi
push 0
lea eax, [ebp - 0x228]
mov dword [ebp - 0x228], 0
push eax
push 0
push 0x20006
push 0
push 0
push 0
push str.SoftwareMicrosoftWindows_MediaWMSDKSources
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegCreateKeyExW]
test eax, eax
jne 0x10016dde
push 0x208
push eax
lea eax, [ebp - 0x20c]
push eax
call sub.VCRUNTIME140.dll_memset
add esp, 0xc
lea eax, [ebp - 0x20c]
push 0x104
push eax
push dword [0x100380e0]
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
test eax, eax
js 0x10016dd2
lea eax, [ebp - 0x20c]
push eax
lea ecx, [ebp - 0x224]
call fcn.100085b0
mov eax, dword [ebp - 0x214]
lea ecx, [ebp - 0x224]
cmp dword [ebp - 0x210], 8
cmovae ecx, dword [ebp - 0x224]
lea eax, [eax*2 + 2]
push eax
push ecx
push 1
push 0
push str.newmstreamsource
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegSetValueExW]
lea ecx, [ebp - 0x224]
call fcn.10010bc0
push dword [ebp - 0x228]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
push esi
call edi
mov ecx, dword [ebp - 4]
xor eax, eax
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.1002429d
mov esp, ebp
pop ebp
ret
Function at 0x100172f0
Capabilities:
Delete registry value

Disassembly:
push ebp
mov ebp, esp
push ecx
push esi
push edi
push str.E592BE31_2C37_42c7_87B2_4E954269D58F
push 1
push 1
xor esi, esi
mov dword [ebp - 4], ecx
push esi
call dword [sym.imp.KERNEL32.dll_CreateSemaphoreW]
mov edi, eax
push 0x2710
push edi
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x10017332
push str.CNeWindowsMediaStreamingSourceRegistry::ReleaseRegistryKey_could_not_acquire_lock_
call fcn.1000b010
pop edi
mov eax, 0x80004005
pop esi
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 4]
push 0xa
push dword [eax + 0x2c]
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
test eax, eax
je 0x100173b0
cmp eax, 0x102
je 0x1001736d
push str.CNeWindowsMediaStreamingSourceRegistry::ReleaseRegistryKey_semaphore_could_not_be_opened
call fcn.1000b010
push 0
push 1
push edi
mov esi, 0x80004005
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
push str.CNeWindowsMediaStreamingSourceRegistry::ReleaseRegistryKey_WAIT_TIMEOUT
call fcn.1000b010
lea eax, [ebp - 4]
mov dword [ebp - 4], esi
push eax
push 0x20006
push 0
push str.SoftwareMicrosoftWindows_MediaWMSDKSources
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
test eax, eax
jne 0x100173b0
push str.newmstreamsource
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegDeleteValueW]
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
push 0
push 1
push edi
call dword [sym.imp.KERNEL32.dll_ReleaseSemaphore]
pop edi
mov eax, esi
pop esi
mov esp, ebp
pop ebp
ret
Function at 0x1001bfa0
Capabilities:
Query or enumerate registry value

Disassembly:
push ebp
mov ebp, esp
mov ecx, 0x10037e68
sub esp, 0xc
lea edx, [ecx + 2]
nop
mov ax, word [ecx]
add ecx, 2
test ax, ax
jne 0x1001bfb0
sub ecx, edx
sar ecx, 1
jne 0x1001c047
lea eax, [ebp - 4]
mov dword [ebp - 4], 0
push eax
push 1
push 0
push str.CLSID8c3eda3f_f182_4617_a352_00b48a8e49f2InprocServer32
push SysReAllocString
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExW]
mov dword [0x10037e60], eax
test eax, eax
jne 0x1001c04d
push ebx
mov dword [ebp - 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x10037e68
lea eax, [ebp - 8]
mov dword [ebp - 0xc], 0x208
push eax
push 0
push 0
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegQueryValueExW]
mov dword [0x10037e60], eax
test eax, eax
jne 0x1001c025
cmp dword [ebp - 8], 1
jne 0x1001c025
mov bl, 1
jmp 0x1001c027
xor bl, bl
push dword [ebp - 4]
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
test bl, bl
pop ebx
je 0x1001c04d
push 0x10037e68
push 0x10037e68
call fcn.1001c470
add esp, 8
xor eax, eax
mov esp, ebp
pop ebp
ret
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp dword [0x10037e60], 0
jne 0x1001c06d
test eax, eax
jle 0x1001c068
movzx eax, ax
or eax, 0x80070000
mov dword [0x10037e60], eax
mov eax, 0x80004005
mov esp, ebp
pop ebp
ret
Function at 0x44a780
Capabilities:
Enumerate files on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a96bb
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x180
push ebx
push ebp
mov ebp, ecx
lea ecx, [esp + 8]
lea eax, [ebp + 0x40]
push eax
call fcn.0049e00f
mov ecx, dword [esp + 8]
mov dword [esp + 0x190], 0
mov eax, dword [ecx - 8]
test eax, eax
je 0x44a802
lea edx, [esp + 0x10]
push 1
push edx
lea ecx, [esp + 0x10]
call fcn.0049be67
mov eax, dword [eax]
push 0x4c8210
push eax
call fcn.0048e3d4
add esp, 8
lea ecx, [esp + 0x10]
test eax, eax
setne bl
call fcn.0049e29a
test bl, bl
je 0x44a802
push 0x4c8210
lea ecx, [esp + 0xc]
call fcn.0049e62a
push 0x4cbd58
lea ecx, [esp + 0xc]
call fcn.0049e62a
mov ecx, dword [esp + 8]
lea eax, [esp + 0x48]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_FindFirstFileA]
cmp eax, 0xffffffff
mov dword [esp + 0xc], eax
jne 0x44a83e
lea ecx, [esp + 8]
mov dword [esp + 0x190], eax
call fcn.0049e29a
jmp 0x44a909
push esi
mov esi, dword [esp + 0x19c]
push edi
mov edi, dword [sym.imp.USER32.dll_SendMessageA]
mov ebx, 0x23
test byte [esp + 0x50], 0x10
je 0x44a8c2
lea edx, [esp + 0x7c]
push 0x4cbd54
push edx
call fcn.0048e3d4
add esp, 8
test eax, eax
je 0x44a8c2
lea eax, [esp + 0x7c]
push 0x4cbd50
push eax
call fcn.0048e3d4
add esp, 8
test eax, eax
je 0x44a8c2
mov eax, dword [ebp + 0x1c]
lea edx, [esp + 0x1c]
push edx
push 0
lea ecx, [esp + 0x84]
push 0x1100
push eax
mov dword [esp + 0x2c], esi
mov dword [esp + 0x30], 0xffff0003
mov dword [esp + 0x4c], 0
mov dword [esp + 0x50], 1
mov dword [esp + 0x44], ecx
mov dword [esp + 0x34], ebx
call edi
mov edx, dword [esp + 0x14]
lea ecx, [esp + 0x50]
push ecx
push edx
call dword [sym.imp.KERNEL32.dll_FindNextFileA]
test eax, eax
jne 0x44a852
mov eax, dword [esp + 0x14]
push eax
call dword [sym.imp.KERNEL32.dll_FindClose]
mov ecx, dword [ebp + 0x1c]
push esi
push 2
push 0x1102
push ecx
call edi
lea ecx, [esp + 0x10]
mov dword [esp + 0x198], 0xffffffff
call fcn.0049e29a
pop edi
pop esi
mov ecx, dword [esp + 0x188]
pop ebp
pop ebx
mov dword fs:[0], ecx
add esp, 0x18c
ret 4

Function at 0x44b100
Capabilities:
Query or enumerate registry value

Disassembly:
mov ecx, dword [esp + 8]
mov edx, dword [esp + 4]
sub esp, 0x10c
lea eax, [esp]
push esi
push eax
push 1
push 0
push ecx
push edx
call dword [sym.imp.ADVAPI32.dll_RegOpenKeyExA]
mov esi, eax
test esi, esi
jne 0x44b162
mov edx, dword [esp + 4]
lea eax, [esp + 8]
lea ecx, [esp + 0xc]
push eax
push ecx
push esi
push edx
mov dword [esp + 0x18], 0x104
call dword [sym.imp.ADVAPI32.dll_RegQueryValueA]
mov ecx, dword [esp + 0x11c]
lea eax, [esp + 0xc]
push eax
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpyA]
mov edx, dword [esp + 4]
push edx
call dword [sym.imp.ADVAPI32.dll_RegCloseKey]
mov eax, esi
pop esi
add esp, 0x10c
ret 0xc
Function at 0x44b170
Capabilities:
Create process on windows

Disassembly:
push 0xffffffffffffffff
push 0x4a973b
mov eax, dword fs:[0]
push eax
mov dword fs:[0], esp
sub esp, 0x20c
mov eax, dword [0x4d2508]
push esi
push edi
mov edi, ecx
mov dword [esp + 8], eax
mov eax, dword [edi + 0x44]
mov dword [esp + 0x21c], 0
test eax, eax
jne 0x44b2a8
mov ecx, dword [edi + 0x48]
lea esi, [edi + 0x48]
mov eax, dword [ecx - 8]
test eax, eax
jne 0x44b1d6
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049e29a
xor eax, eax
jmp 0x44b31f
push str.mailto:
lea ecx, [esp + 0xc]
call fcn.0049e3d7
push esi
lea ecx, [esp + 0xc]
call fcn.0049e666
mov ecx, dword [esp + 8]
push ebx
push ebp
mov ebp, dword [esp + 0x22c]
push ebp
push 0
push 0
push ecx
push str.open
push 0
call dword [sym.imp.SHELL32.dll_ShellExecuteA]
mov esi, eax
cmp esi, 0x20
ja 0x44b2fd
lea edx, [esp + 0x14]
mov ecx, edi
push edx
push str..htm
push SysReAllocString
call fcn.0044b100
test eax, eax
jne 0x44b2fd
mov ebx, dword [sym.imp.KERNEL32.dll_lstrcatA]
lea eax, [esp + 0x14]
push str._shellopencommand
push eax
call ebx
lea ecx, [esp + 0x14]
lea edx, [esp + 0x14]
push ecx
push edx
push SysReAllocString
mov ecx, edi
call fcn.0044b100
test eax, eax
jne 0x44b2fd
lea eax, [esp + 0x14]
push 0x4cbd6c
push eax
call fcn.0048f4e0
mov esi, eax
add esp, 8
test esi, esi
jne 0x44b2dc
lea ecx, [esp + 0x14]
push 0x4cbd68
push ecx
call fcn.0048f460
mov esi, eax
add esp, 8
test esi, esi
jne 0x44b2dc
lea edx, [esp + 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_lstrlenA]
lea esi, [esp + eax + 0x13]
jmp 0x44b2df
lea edx, [edi + 0x4c]
lea ecx, [esp + 8]
push edx
call fcn.0049e387
mov eax, dword [esp + 8]
mov ecx, dword [eax - 8]
test ecx, ecx
jne 0x44b1ee
lea ecx, [esp + 8]
mov dword [esp + 0x21c], 0xffffffff
call fcn.0049e29a
xor eax, eax
jmp 0x44b31f
mov byte [esi], 0
push 0x4cbd64
push esi
call ebx
mov eax, dword [esp + 0x10]
push eax
push esi
call ebx
lea ecx, [esp + 0x14]
push ebp
push ecx
call dword [sym.imp.KERNEL32.dll_WinExec]
mov esi, eax
xor edx, edx
cmp esi, 0x20
setg dl
lea ecx, [esp + 0x10]
mov esi, edx
mov dword [esp + 0x224], 0xffffffff
call fcn.0049e29a
pop ebp
mov eax, esi
pop ebx
mov ecx, dword [esp + 0x214]
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x218
ret 4
Function at 0x45bcc0
Capabilities:
Log keystrokes via polling

Disassembly:
mov eax, dword [esp + 4]
push esi
push edi
mov edi, dword [sym.imp.USER32.dll_GetKeyState]
mov cl, byte [eax + 8]
and ecx, 0xff
mov esi, ecx
cmp si, 0x60
jb 0x45bd2e
cmp si, 0x69
ja 0x45bd2e
add esi, 0xffd0
cmp si, 0x11
je 0x45bcfe
push 0x11
call edi
test ax, ax
jge 0x45bcfe
or esi, 0x2000
cmp si, 0x10
je 0x45bd13
push 0x10
call edi
test ax, ax
jge 0x45bd13
or esi, 0x4000
cmp si, 0x12
je 0x45bd28
push 0x12
call edi
test ax, ax
jge 0x45bd28
or esi, 0x8000
mov ax, si
pop edi
pop esi
ret
cmp si, 0x6d
jne 0x45bd3b
mov esi, 0xbd
jmp 0x45bcef
cmp si, 0x6e
jne 0x45bd48
mov esi, 0xbe
jmp 0x45bcef
cmp si, 0x6f
jne 0x45bce9
mov esi, 0xbf
jmp 0x45bcef

Function at 0x45d4f0
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x4e2c40]
xor edx, edx
cmp eax, edx
jne 0x45d516
xor eax, eax
mov byte [eax + 0x4e2b40], al
inc eax
cmp eax, 0x100
jl 0x45d4fe
mov dword [0x4e2c40], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x4e2b40
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x45d5a7
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 0x45d57a
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 0x45d548
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x45d620
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 0x45d673
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 0x45d65a
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 0x4640b0
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 0x464248
cmp ebp, ebx
jle 0x464248
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 0x46410e
dec eax
or eax, 0xfffffff8
inc eax
je 0x464115
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, reloc.WS2_32.dll_accept
jns 0x464124
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x46412b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.0049dfdb
add esp, 4
cmp eax, ebx
je 0x46414c
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.0049dfdb
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 0x46423e
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 0x464225
mov al, byte [edx]
cmp al, 0xc0
jbe 0x464211
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x464206
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 0x464214
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x464214
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4641b0
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 0x4641a1
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
Function at 0x4672a0
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0]
push 0xffffffffffffffff
push 0x4aac48
push eax
mov dword fs:[0], esp
sub esp, 0x28
push esi
push edi
mov edi, dword [esp + 0x44]
mov esi, ecx
test edi, edi
jne 0x4672d9
pop edi
xor eax, eax
pop esi
mov ecx, dword [esp + 0x28]
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24
push 0x400
lea ecx, [esp + 0xc]
call fcn.004a59b8
mov eax, dword [esp + 0x40]
push 0
push edi
push eax
lea ecx, [esp + 0x14]
mov dword [esp + 0x44], 0
call fcn.004a5a04
mov ecx, dword [esp + 0x60]
mov edx, dword [esp + 0x5c]
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
mov edx, dword [esp + 0x58]
push eax
mov eax, dword [esp + 0x58]
push ecx
mov ecx, dword [esp + 0x58]
push edx
push eax
lea edx, [esp + 0x20]
push ecx
push edx
mov ecx, esi
call fcn.00467360
lea ecx, [esp + 8]
mov esi, eax
mov dword [esp + 0x38], 0xffffffff
call fcn.004a5a41
mov ecx, dword [esp + 0x30]
mov eax, esi
pop edi
pop esi
mov dword fs:[0], ecx
add esp, 0x34
ret 0x24