joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4592a0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x4743d8
movzx eax, word [ebp + 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_FindResourceA]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x459388
push 0x28
call fcn.00461502
add esp, 4
mov dword [ebp - 4], eax
mov ecx, dword [ebp - 0xc]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_LoadResource]
mov dword [ebp - 0x14], eax
mov edx, dword [ebp - 0x14]
push edx
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [ebp - 0x1c], eax
mov eax, dword [ebp - 0xc]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleHandleA]
push eax
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [ebp - 0x18], eax
mov ecx, dword [ebp - 4]
add ecx, 0x1c
push ecx
mov edx, dword [ebp - 4]
add edx, 0x18
push edx
mov eax, dword [ebp - 4]
add eax, 8
push eax
mov ecx, dword [ebp - 4]
add ecx, 4
push ecx
mov edx, dword [ebp - 0x18]
push edx
mov eax, dword [ebp - 0x1c]
push eax
mov ecx, dword [ebp + 8]
push ecx
call fcn.00459180
add esp, 0x1c
mov dword [ebp - 8], eax
mov dword [ebp - 0x10], 0
lea edx, [ebp - 0x10]
push edx
mov eax, dword [ebp - 8]
mov ecx, dword [eax]
mov edx, dword [ebp - 8]
push edx
mov eax, dword [ecx + 0xc]
call eax
push 4
push 0
push 0
push 0
mov ecx, dword [ebp - 0x10]
push ecx
call dword [sym.imp.USER32.dll_CopyImage]
mov dword [ebp - 0x20], eax
mov edx, dword [ebp - 8]
mov eax, dword [edx]
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [eax + 8]
call edx
mov eax, dword [ebp - 0x20]
jmp 0x45938a
xor eax, eax
mov esp, ebp
pop ebp
ret

Function at 0x459520
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
push 0
push 0
mov eax, dword [ebp + 0xc]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 8], eax
cmp dword [ebp - 8], 0xffffffff
jne 0x459545
xor eax, eax
jmp 0x45957a
mov dword [ebp - 4], 0
push 0
lea edx, [ebp - 4]
push edx
push 4
mov eax, dword [ebp + 0x10]
push eax
mov ecx, dword [ebp + 8]
push ecx
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0xc], eax
cmp dword [ebp - 0xc], 0
je 0x459578
cmp dword [ebp - 4], 4
jne 0x459578
mov eax, 1
jmp 0x45957a
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x4595e0
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x20
push 0x29
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 4], eax
cmp dword [ebp - 4], 0
jne 0x459607
xor eax, eax
jmp 0x459777
lea eax, [ebp - 8]
push eax
push 0x3c
mov ecx, dword [ebp + 8]
push ecx
call fcn.00459520
add esp, 0xc
test eax, eax
jne 0x459630
mov edx, dword [ebp - 4]
push edx
call fcn.004614ca
add esp, 4
xor eax, eax
jmp 0x459777
lea eax, [ebp - 0x14]
push eax
mov ecx, dword [ebp - 8]
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00459520
add esp, 0xc
test eax, eax
jne 0x45966e
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
mov ecx, dword [ebp - 4]
push ecx
call fcn.004614ca
add esp, 4
xor eax, eax
jmp 0x459777
cmp dword [ebp - 0x14], 0x4550
je 0x459691
mov edx, dword [ebp - 4]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x459777
lea eax, [ebp - 0xc]
push eax
mov ecx, dword [ebp - 8]
add ecx, 0x98
push ecx
mov edx, dword [ebp + 8]
push edx
call fcn.00459520
add esp, 0xc
test eax, eax
jne 0x4596c9
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x459777
lea ecx, [ebp - 0x18]
push ecx
mov edx, dword [ebp - 0xc]
push edx
mov eax, dword [ebp + 8]
push eax
call fcn.00459520
add esp, 0xc
test eax, eax
jne 0x4596f8
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x459777
push 0
push 0
mov edx, dword [ebp - 0x18]
mov eax, dword [ebp - 0xc]
lea ecx, [eax + edx - 0x28]
push ecx
mov edx, dword [ebp + 8]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x1c], eax
cmp dword [ebp - 0x1c], 0xffffffff
jne 0x459731
mov eax, dword [ebp - 4]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x459777
mov dword [ebp - 0x10], 0
push 0
lea ecx, [ebp - 0x10]
push ecx
push 0x28
mov edx, dword [ebp - 4]
push edx
mov eax, dword [ebp + 8]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x20], eax
cmp dword [ebp - 0x20], 0
je 0x459762
cmp dword [ebp - 0x10], 0x28
jne 0x459762
mov eax, dword [ebp - 4]
jmp 0x459777
mov ecx, dword [ebp - 4]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
mov esp, ebp
pop ebp
ret
Function at 0x459780
Capabilities:
Read file on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x228
mov eax, dword [0x47c350]
xor eax, ebp
mov dword [ebp - 4], eax
mov ax, word [0x47440c]
mov word [ebp - 0x210], ax
push 0x208
push 0
lea ecx, [ebp - 0x20e]
push ecx
call fcn.00460bd0
add esp, 0xc
push 0x104
lea edx, [ebp - 0x210]
push edx
push 0
call dword [sym.imp.KERNEL32.dll_GetModuleFileNameW]
push 0
push 0x80
push 3
push 0
push 0
push SysReAllocString
lea eax, [ebp - 0x210]
push eax
call dword [sym.imp.KERNEL32.dll_CreateFileW]
mov dword [ebp - 0x214], eax
mov dword [ebp - 0x218], 0
cmp dword [ebp - 0x214], 0xffffffff
jne 0x45980e
xor eax, eax
jmp 0x45991b
mov ecx, dword [ebp - 0x214]
push ecx
call fcn.004595e0
add esp, 4
mov dword [ebp - 0x218], eax
cmp dword [ebp - 0x218], 0
jne 0x4598ff
push 0x29
push 8
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x21c], eax
push 2
push 0
push 0xffffffffffffffd8
mov edx, dword [ebp - 0x214]
push edx
call dword [sym.imp.KERNEL32.dll_SetFilePointer]
mov dword [ebp - 0x228], eax
cmp dword [ebp - 0x228], 0xffffffff
jne 0x459886
mov eax, dword [ebp - 0x21c]
push eax
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x45991b
mov dword [ebp - 0x220], 0
push 0
lea ecx, [ebp - 0x220]
push ecx
push 0x28
mov edx, dword [ebp - 0x21c]
push edx
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_ReadFile]
mov dword [ebp - 0x224], eax
cmp dword [ebp - 0x224], 0
je 0x4598c7
cmp dword [ebp - 0x220], 0x28
je 0x4598e1
mov ecx, dword [ebp - 0x21c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
xor eax, eax
jmp 0x45991b
mov edx, dword [ebp - 0x21c]
mov dword [ebp - 0x218], edx
mov eax, 1
imul ecx, eax, 0x28
mov edx, dword [ebp - 0x218]
mov byte [edx + ecx], 0
cmp dword [ebp - 0x214], 0
je 0x459915
mov eax, dword [ebp - 0x214]
push eax
call dword [sym.imp.KERNEL32.dll_CloseHandle]
mov eax, dword [ebp - 0x218]
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460fe2
mov esp, ebp
pop ebp
ret
Function at 0x459d20
Capabilities:
Get common file path
Get disk information
Get mac address on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x478
mov eax, dword [0x47c350]
xor eax, ebp
mov dword [ebp - 4], eax
mov dword [ebp - 0x460], 0
mov dword [ebp - 0x46c], 0
mov dword [ebp - 0x468], 0
jmp 0x459d62
mov eax, dword [ebp - 0x468]
add eax, 1
mov dword [ebp - 0x468], eax
cmp dword [ebp - 0x468], 0x10
jge 0x459d79
mov ecx, dword [ebp + 8]
add ecx, dword [ebp - 0x468]
mov byte [ecx], 0
jmp 0x459d53
mov edx, 1
imul eax, edx, 0
mov ecx, dword [ebp + 8]
mov byte [ecx + eax], 1
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x460]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ecx, dword [ebp - 0x46c]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapAlloc]
mov dword [ebp - 0x460], eax
lea edx, [ebp - 0x46c]
push edx
mov eax, dword [ebp - 0x460]
push eax
call sub.IPHLPAPI.DLL_GetAdaptersInfo
mov ecx, dword [ebp - 0x460]
mov dword [ebp - 0x464], ecx
jmp 0x459de6
mov edx, dword [ebp - 0x464]
mov eax, dword [edx]
mov dword [ebp - 0x464], eax
cmp dword [ebp - 0x464], 0
je 0x459e20
mov ecx, dword [ebp - 0x464]
cmp dword [ecx + 0x1a0], 6
jne 0x459e1e
push 6
mov edx, dword [ebp - 0x464]
add edx, 0x194
push edx
mov eax, dword [ebp + 8]
add eax, 6
push eax
call fcn.00461800
add esp, 0xc
jmp 0x459e20
jmp 0x459dd8
mov ecx, dword [ebp - 0x460]
push ecx
push 0
call dword [sym.imp.KERNEL32.dll_GetProcessHeap]
push eax
call dword [sym.imp.KERNEL32.dll_HeapFree]
push 0x400
lea edx, [ebp - 0x45c]
push edx
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 8
lea eax, [ebp - 0x45c]
push eax
lea ecx, [ebp - 0x1c]
push ecx
call dword [sym.imp.KERNEL32.dll_lstrcpynW]
mov edx, 2
imul eax, edx, 3
mov dword [ebp - 0x470], eax
cmp dword [ebp - 0x470], 0x18
jae 0x459e74
jmp 0x459e79
call fcn.0046171d
xor ecx, ecx
mov edx, dword [ebp - 0x470]
mov word [ebp + edx - 0x1c], cx
push 0x40
lea eax, [ebp - 0x5c]
push eax
push 0
lea ecx, [ebp - 0x478]
push ecx
lea edx, [ebp - 0x474]
push edx
push 0
push 0
lea eax, [ebp - 0x1c]
push eax
call dword [sym.imp.KERNEL32.dll_GetVolumeInformationW]
test eax, eax
je 0x459ec6
push 4
lea ecx, [ebp - 0x474]
push ecx
mov edx, dword [ebp + 8]
add edx, 0xc
push edx
call fcn.00461800
add esp, 0xc
mov eax, 1
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.00460fe2
mov esp, ebp
pop ebp
ret
Function at 0x45fe50
Capabilities:
Encode data using xor

Disassembly:
mov ecx, dword [esp + 0xc]
mov edx, dword [esp + 8]
add ecx, 0xdeadbeef
push ebp
mov ebp, dword [esp + 8]
add ecx, edx
push esi
mov esi, ecx
mov dword [esp + 0x14], esi
push edi
mov edi, ecx
cmp edx, 0xc
jbe switch.0x0045ff59
add edx, 0xfffffff3
mov eax, 0xaaaaaaab
mul edx
push ebx
mov eax, edx
shr eax, 3
inc eax
mov dword [esp + 0x14], eax
lea ecx, [ecx]
movzx esi, byte [ebp + 7]
movzx eax, byte [ebp + 6]
movzx edx, byte [ebp + 0xb]
shl esi, 8
add esi, eax
shl edx, 8
movzx eax, byte [ebp + 5]
shl esi, 8
add esi, eax
movzx eax, byte [ebp + 4]
add edi, eax
shl esi, 8
movzx eax, byte [ebp + 0xa]
add edi, esi
movzx esi, byte [ebp + 8]
add edx, eax
movzx eax, byte [ebp + 9]
add esi, ecx
movzx ecx, byte [ebp + 3]
shl edx, 8
add edx, eax
shl ecx, 8
movzx eax, byte [ebp + 2]
add ecx, eax
shl edx, 8
movzx eax, byte [ebp + 1]
add esi, edx
shl ecx, 8
mov ebx, esi
add ecx, eax
rol ebx, 4
movzx eax, byte [ebp]
add ebp, 0xc
shl ecx, 8
add ecx, eax
sub ecx, esi
add esi, edi
add ecx, dword [esp + 0x1c]
xor ebx, ecx
sub edi, ebx
mov eax, ebx
rol eax, 6
add ebx, esi
xor eax, edi
sub esi, eax
mov edx, eax
rol edx, 8
add eax, ebx
xor edx, esi
mov esi, edx
sub ebx, edx
rol esi, 0x10
add edx, eax
xor esi, ebx
mov edi, esi
sub eax, esi
ror edi, 0xd
add esi, edx
xor edi, eax
mov dword [esp + 0x1c], esi
sub edx, edi
mov ecx, edi
rol ecx, 4
add edi, esi
xor ecx, edx
mov edx, dword [esp + 0x18]
sub edx, 0xc
dec dword [esp + 0x14]
mov dword [esp + 0x18], edx
jne 0x45fe90
pop ebx
cmp edx, 0xc
ja 0x45ffc7
jmp dword [edx*4 + 0x460014]
movzx eax, byte [ebp + 0xb]
shl eax, 0x18
add ecx, eax
movzx eax, byte [ebp + 0xa]
shl eax, 0x10
add ecx, eax
movzx eax, byte [ebp + 9]
shl eax, 8
add ecx, eax
movzx eax, byte [ebp + 8]
add ecx, eax
movzx eax, byte [ebp + 7]
shl eax, 0x18
add edi, eax
movzx eax, byte [ebp + 6]
shl eax, 0x10
add edi, eax
movzx eax, byte [ebp + 5]
shl eax, 8
add edi, eax
movzx eax, byte [ebp + 4]
add edi, eax
movzx eax, byte [ebp + 3]
shl eax, 0x18
add esi, eax
movzx eax, byte [ebp + 2]
shl eax, 0x10
add esi, eax
movzx eax, byte [ebp + 1]
shl eax, 8
add esi, eax
movzx eax, byte [ebp]
add esi, eax
mov dword [esp + 0x18], esi
xor ecx, edi
mov eax, edi
rol eax, 0xe
sub ecx, eax
mov eax, ecx
mov esi, ecx
xor esi, dword [esp + 0x18]
rol eax, 0xb
sub esi, eax
xor edi, esi
mov eax, esi
ror eax, 7
sub edi, eax
mov eax, edi
xor ecx, edi
rol eax, 0x10
sub ecx, eax
mov eax, ecx
mov edx, ecx
rol eax, 4
xor edx, esi
sub edx, eax
mov eax, edx
xor edi, edx
rol eax, 0xe
sub edi, eax
mov eax, edi
xor ecx, edi
ror eax, 8
sub ecx, eax
pop edi
pop esi
mov eax, ecx
pop ebp
ret
Function at 0x46d90c
Capabilities:
Link many functions at runtime
Print debug messages

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
mov eax, dword [0x47c350]
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
xor esi, esi
mov eax, dword [ebp + 0xc]
push esi
mov dword [ebp - 0x20], eax
call ebx
mov edi, eax
mov dword [ebp - 0x18], edi
call fcn.0046757f
mov dword [ebp - 0x14], eax
cmp dword [0x480764], esi
jne 0x46d9ff
push 0x800
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
jne 0x46d98c
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp eax, 0x57
jne 0x46dadf
push esi
push esi
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov edi, eax
test edi, edi
je 0x46dadf
push str.MessageBoxW
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
test eax, eax
je 0x46dadf
push eax
call ebx
push str.GetActiveWindow
push edi
mov dword [0x480764], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetLastActivePopup
push edi
mov dword [0x480768], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
push str.GetUserObjectInformationW
push edi
mov dword [0x48076c], eax
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x480774], eax
test eax, eax
je 0x46d9fc
push str.GetProcessWindowStation
push edi
call dword [sym.imp.KERNEL32.dll_GetProcAddress]
push eax
call ebx
mov dword [0x480770], eax
mov edi, dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_IsDebuggerPresent]
test eax, eax
je 0x46da24
mov eax, dword [ebp - 0x1c]
test eax, eax
je 0x46da17
push eax
call dword [sym.imp.KERNEL32.dll_OutputDebugStringW]
cmp dword [ebp - 0x14], esi
je 0x46da39
push 4
pop eax
jmp 0x46dae1
cmp dword [ebp - 0x14], esi
je 0x46da39
push dword [0x480764]
call dword [sym.imp.KERNEL32.dll_DecodePointer]
push 3
jmp 0x46da1e
mov eax, dword [0x480770]
mov ebx, dword [sym.imp.KERNEL32.dll_DecodePointer]
cmp eax, edi
je 0x46da97
cmp dword [0x480774], edi
je 0x46da97
push eax
call ebx
push dword [0x480774]
mov dword [ebp - 0x14], eax
call ebx
mov ecx, dword [ebp - 0x14]
mov dword [ebp - 0x18], eax
test ecx, ecx
je 0x46da97
test eax, eax
je 0x46da97
call ecx
test eax, eax
je 0x46da8c
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 0x46da8c
test byte [ebp - 8], 1
jne 0x46da97
mov edi, dword [ebp + 0x10]
or edi, 0x200000
jmp 0x46dac7
mov eax, dword [0x480768]
cmp eax, edi
je 0x46dac4
push eax
call ebx
test eax, eax
je 0x46dac4
call eax
mov esi, eax
test esi, esi
je 0x46dac4
mov eax, dword [0x48076c]
cmp eax, edi
je 0x46dac4
push eax
call ebx
test eax, eax
je 0x46dac4
push esi
call eax
mov esi, eax
mov edi, dword [ebp + 0x10]
push dword [0x480764]
call ebx
test eax, eax
je 0x46dadf
push edi
push dword [ebp - 0x20]
push dword [ebp - 0x1c]
push esi
call eax
jmp 0x46dae1
xor eax, eax
mov ecx, dword [ebp - 4]
pop edi
pop esi
xor ecx, ebp
pop ebx
call fcn.00460fe2
mov esp, ebp
pop ebp
ret
Function at 0x481140
Capabilities:
Encrypt data using rc4 ksa

Disassembly:
push ecx
mov eax, dword [0x650138]
xor edx, edx
cmp eax, edx
jne 0x481166
xor eax, eax
mov byte [eax + 0x650038], al
inc eax
cmp eax, 0x100
jl 0x48114e
mov dword [0x650138], 1
mov eax, dword [esp + 0xc]
push ebx
mov ebx, dword [esp + 0x14]
push esi
push edi
mov ecx, 0x40
mov esi, 0x650038
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
cmp eax, edx
mov byte [ebx + 0x100], dl
mov byte [ebx + 0x101], dl
jle 0x4811f7
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 0x4811ca
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 0x481198
pop ebp
pop edi
pop esi
pop ebx
pop ecx
ret

Function at 0x481270
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 0x4812c3
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 0x4812aa
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 0x4858d0
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 0x485af1
cmp eax, 8
jg 0x485af1
cmp dword [esp + 0x8c], 2
jl 0x485af1
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 0x485af1
sub ebx, edi
test ebx, ebx
mov dword [esp + 0x20], ebx
jle 0x485af1
mov eax, dword [esp + 0x80]
test eax, eax
je 0x485957
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 0x485ada
mov ebp, dword [0x4ef4fc]
mov eax, ebx
mov dword [esp + 0x10], 0x32
sub eax, edx
cmp eax, 0x32
jg 0x485989
mov dword [esp + 0x10], eax
xor eax, eax
test ecx, ecx
jle 0x485ac1
mov ebx, dword [esp + 0x10]
add ebx, edx
mov dword [esp + 0x20], ebx
sub ecx, eax
cmp ecx, 0x32
jle 0x4859a9
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 [0x4ef4e8]
push edi
lea eax, [esp + 0x2c]
push esi
push eax
call ebp
mov eax, dword [esp + 0x84]
test eax, eax
je 0x4859e8
lea ecx, [esp + 0x48]
lea edx, [esp + 0x28]
push ecx
lea eax, [esp + 0x2c]
push edx
push eax
call dword [0x4ef4f0]
lea ecx, [esp + 0x28]
push ecx
call dword [0x4ef530]
test eax, eax
jne 0x485aa8
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.00484ee0
cmp eax, 1
jne 0x485ad2
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.00485790
mov ecx, dword [esp + 0x80]
mov edx, dword [esp + 0x14]
mov eax, ebx
cmp eax, ecx
jl 0x48599d
mov ebx, dword [esp + 0x24]
add edx, dword [esp + 0x10]
cmp edx, ebx
mov dword [esp + 0x14], edx
jge 0x485ada
jmp 0x485974
mov dword [esp + 0x1c], 0
mov ecx, dword [esp + 0x18]
call fcn.00484aa0
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 0x4887c0
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 0x488958
cmp ebp, ebx
jle 0x488958
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 0x48881e
dec eax
or eax, 0xfffffff8
inc eax
je 0x488825
inc edi
mov dword [esp + 0x10], edi
mov ecx, edi
and ecx, 0x80000001
jns 0x488834
dec ecx
or ecx, 0xfffffffe
inc ecx
je 0x48883b
inc edi
mov dword [esp + 0x10], edi
push 0x18
call fcn.004de497
add esp, 4
cmp eax, ebx
je 0x48885c
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.004de497
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 0x48894e
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 0x488935
mov al, byte [edx]
cmp al, 0xc0
jbe 0x488921
and eax, 0xff
sub eax, 0xc0
inc edx
mov esi, eax
mov dword [esp + 0x24], edx
cmp esi, 1
jle 0x488916
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 0x488924
mov al, byte [edx]
mov esi, dword [esp + 0x18]
mov byte [ebp], al
jmp 0x488924
mov byte [ebp], al
inc ebp
add ecx, 8
inc edx
cmp ecx, esi
mov dword [esp + 0x2c], ecx
jl 0x4888c0
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 0x4888b1
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