joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4a18a0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f81a8
push 0x4a7019
mov eax, dword fs:[0]
push eax
sub esp, 0x70
mov eax, dword [0x50e018]
xor dword [ebp - 8], eax
xor eax, ebp
mov dword [ebp - 0x1c], eax
push ebx
push esi
push edi
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov edi, edx
mov dword [ebp - 0x80], edi
mov eax, dword [ebp + 8]
mov dword [ebp - 0x60], ecx
test eax, eax
mov esi, 0x10000
je 0x4a18f0
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x7c], eax
mov dword [ebp - 0x78], eax
mov dword [ebp - 0x74], eax
mov dword [ebp - 0x70], eax
mov dword [ebp - 0x6c], eax
mov dword [ebp - 0x68], eax
mov dword [ebp - 0x64], eax
mov ebx, dword [sym.imp.KERNEL32.dll_ReadProcessMemory]
lea ecx, [ecx]
push 0x1c
lea edx, [ebp - 0x7c]
push edx
push esi
push edi
call dword [sym.imp.KERNEL32.dll_VirtualQueryEx]
test eax, eax
je 0x4a193c
mov eax, dword [ebp - 0x70]
mov ecx, eax
and ecx, 0xfff
cmp ecx, 0xfff
je 0x4a193c
add eax, dword [ebp - 0x7c]
cmp eax, esi
jae 0x4a195c
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [ebp - 0x1c]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x6c], 0x1000
jne 0x4a1a2b
mov eax, dword [ebp - 0x68]
cmp al, 1
je 0x4a1a2b
test eax, 0x100
jne 0x4a1a2b
mov dword [ebp - 4], 0
push 0
push 0x40
lea eax, [ebp - 0x5c]
push eax
push esi
push edi
call ebx
test eax, eax
jne 0x4a19a8
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x70]
add esi, dword [ebp - 0x7c]
jmp 0x4a1910
mov ecx, 0x5a4d
cmp word [ebp - 0x5c], cx
jne 0x4a1996
mov eax, dword [ebp - 0x20]
cmp eax, dword [ebp - 0x70]
ja 0x4a1996
cmp eax, 0x40
jb 0x4a1996
push 0
push 0xf8
mov edx, dword [ebp - 0x60]
push edx
add eax, esi
push eax
push edi
call ebx
test eax, eax
jne 0x4a19e7
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x70]
add esi, dword [ebp - 0x7c]
jmp 0x4a1910
mov eax, dword [ebp - 0x60]
cmp dword [eax], 0x4550
je 0x4a1a04
mov dword [ebp - 4], 0xfffffffe
mov esi, dword [ebp - 0x70]
add esi, dword [ebp - 0x7c]
jmp 0x4a1910
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
jmp 0x4a193e
mov esi, dword [ebp - 0x70]
add esi, dword [ebp - 0x7c]
jmp 0x4a1910
Function at 0x4a2410
Capabilities:
Create process on windows
Create process suspended
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
lea eax, [ebp - 0x18]
push eax
push ecx
push 0
push 0
push 4
push 0
push 0
push 0
push edx
push 0
call dword [sym.imp.KERNEL32.dll_CreateProcessA]
test eax, eax
je 0x4a245f
xor eax, eax
test esi, esi
je 0x4a2442
mov dword [ebp - 8], esi
mov eax, 1
mov ecx, dword [ebp - 0x18]
push eax
lea eax, [ebp - 8]
push eax
call fcn.004a20c0
test eax, eax
jne 0x4a2465
mov ecx, dword [ebp - 0x18]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
xor eax, eax
mov esp, ebp
pop ebp
ret
mov eax, dword [ebp - 0x14]
test edi, edi
je 0x4a2480
mov edx, dword [ebp - 0x18]
mov ecx, dword [ebp - 0x10]
mov dword [edi], edx
mov edx, dword [ebp - 0xc]
mov dword [edi + 4], eax
mov dword [edi + 8], ecx
mov dword [edi + 0xc], edx
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov eax, 1
mov esp, ebp
pop ebp
ret
Function at 0x4a28e0
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x370
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x10c
lea eax, [ebp - 0x318]
push 0
push eax
mov esi, ecx
mov edi, edx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 8]
push esi
lea edx, [ebp - 0x310]
push 0x104
push edx
mov dword [ebp - 0x318], 0x10c
mov dword [ebp - 0x314], ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0x18
push 0x104
lea eax, [ebp - 0x108]
push eax
push 0x4f0f90
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableA]
test eax, eax
je 0x4a2a3e
cmp eax, 0x104
jae 0x4a2a3e
push 0x4f0f98
lea ecx, [ebp - 0x108]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_strcat_s]
lea edx, [ebp - 0x310]
push edx
push 0x4f0fb0
lea eax, [ebp - 0x20c]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_sprintf_s]
xor eax, eax
push 0x44
push eax
lea ecx, [ebp - 0x370]
push ecx
mov dword [ebp - 0x328], eax
mov dword [ebp - 0x324], eax
mov dword [ebp - 0x320], eax
mov dword [ebp - 0x31c], eax
call sub.MSVCR100.dll_memset
add esp, 0x28
lea edx, [ebp - 0x328]
push edx
lea eax, [ebp - 0x370]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea ecx, [ebp - 0x20c]
push ecx
lea edx, [ebp - 0x108]
push edx
mov dword [ebp - 0x370], 0x44
call edi
test eax, eax
je 0x4a2a3e
mov edi, dword [ebp - 0x328]
push 0x10c
push 0x4e5100
lea ecx, [ebp - 0x318]
call fcn.004a2540
test eax, eax
jne 0x4a2a52
mov eax, dword [ebp - 0x328]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x328]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x324]
push edx
call esi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x324]
push eax
call dword [sym.imp.KERNEL32.dll_ResumeThread]
mov ecx, dword [ebp - 0x328]
push 0xffffffffffffffff
push ecx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov eax, dword [ebp - 0x328]
lea edx, [ebp - 0x32c]
push edx
push eax
mov dword [ebp - 0x32c], 0x1f4
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov ecx, dword [ebp - 0x328]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x324]
push edx
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x32c], eax
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.004a665a
mov esp, ebp
pop ebp
ret 4
Function at 0x4a2ad0
Capabilities:
Query environment variable
Resume thread
Terminate process

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x578
mov eax, dword [0x50e018]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
push edi
push 0x10c
lea eax, [ebp - 0x520]
push 0
push eax
mov esi, ecx
mov edi, edx
call sub.MSVCR100.dll_memset
mov ecx, dword [ebp + 8]
push esi
lea edx, [ebp - 0x518]
push 0x104
push edx
mov dword [ebp - 0x520], 0x10c
mov dword [ebp - 0x51c], ecx
call dword [sym.imp.MSVCR100.dll_strcpy_s]
add esp, 0x18
push 0x104
lea eax, [ebp - 0x20c]
push eax
push str.WINDIR
call dword [sym.imp.KERNEL32.dll_GetEnvironmentVariableW]
test eax, eax
je 0x4a2c2e
cmp eax, 0x104
jae 0x4a2c2e
push str._system32_rundll32.exe
lea ecx, [ebp - 0x20c]
push 0x104
push ecx
call dword [sym.imp.MSVCR100.dll_wcscat_s]
lea edx, [ebp - 0x518]
push edx
push str.rundll32.exe___hs__1
lea eax, [ebp - 0x414]
push 0x104
push eax
call dword [sym.imp.MSVCR100.dll_swprintf_s]
xor eax, eax
push 0x44
push eax
lea ecx, [ebp - 0x578]
push ecx
mov dword [ebp - 0x530], eax
mov dword [ebp - 0x52c], eax
mov dword [ebp - 0x528], eax
mov dword [ebp - 0x524], eax
call sub.MSVCR100.dll_memset
add esp, 0x28
lea edx, [ebp - 0x530]
push edx
lea eax, [ebp - 0x578]
push eax
push 0
push 0
push 4
push 0
push 0
push 0
lea ecx, [ebp - 0x414]
push ecx
lea edx, [ebp - 0x20c]
push edx
mov dword [ebp - 0x578], 0x44
call edi
test eax, eax
je 0x4a2c2e
mov edi, dword [ebp - 0x530]
push 0x10c
push 0x4e5100
lea ecx, [ebp - 0x520]
call fcn.004a2540
test eax, eax
jne 0x4a2c42
mov eax, dword [ebp - 0x530]
push 0xffffffffffffffff
push eax
call dword [sym.imp.KERNEL32.dll_TerminateProcess]
mov ecx, dword [ebp - 0x530]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push ecx
call esi
mov edx, dword [ebp - 0x52c]
push edx
call esi
pop edi
xor eax, eax
pop esi
mov ecx, dword [ebp - 4]
xor ecx, ebp
call fcn.004a665a
mov esp, ebp
pop ebp
ret 4
mov eax, dword [ebp - 0x52c]
mov esi, dword [sym.imp.KERNEL32.dll_ResumeThread]
push eax
call esi
mov ecx, dword [ebp - 0x52c]
push ecx
call esi
mov edx, dword [ebp - 0x530]
push 0xffffffffffffffff
push edx
call dword [sym.imp.KERNEL32.dll_WaitForSingleObject]
mov ecx, dword [ebp - 0x530]
lea eax, [ebp - 0x534]
push eax
push ecx
mov dword [ebp - 0x534], 0x1f4
call dword [sym.imp.KERNEL32.dll_GetExitCodeProcess]
mov edx, dword [ebp - 0x530]
mov esi, dword [sym.imp.KERNEL32.dll_CloseHandle]
push edx
call esi
mov eax, dword [ebp - 0x52c]
push eax
call esi
mov ecx, dword [ebp - 4]
xor eax, eax
cmp dword [ebp - 0x534], eax
pop edi
sete al
xor ecx, ebp
pop esi
call fcn.004a665a
mov esp, ebp
pop ebp
ret 4
Function at 0x4a2fe0
Capabilities:
Link many functions at runtime

Disassembly:
push ebp
mov ebp, esp
sub esp, 8
push edi
xor edi, edi
cmp dword [0x51327c], edi
jne 0x4a31a6
mov eax, dword [0x513278]
cmp eax, edi
jne 0x4a31a8
xor eax, eax
mov dword [0x513280], eax
mov dword [0x513284], eax
mov dword [0x513288], eax
mov dword [0x51328c], eax
mov dword [0x513290], eax
mov dword [0x513294], eax
mov dword [0x513298], eax
mov dword [0x51329c], eax
mov dword [0x5132a0], eax
call dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
push edi
push edi
push str.dbghelp.dll
mov dword [0x513280], eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
mov dword [0x513284], eax
cmp eax, edi
je 0x4a3167
push esi
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.ImagehlpApiVersionEx
push eax
call esi
mov dword [0x513288], eax
mov eax, dword [0x513284]
push str.SymInitialize
push eax
call esi
mov ecx, dword [0x513284]
push str.SymSetOptions
push ecx
mov dword [0x51328c], eax
call esi
mov edx, dword [0x513284]
push str.SymGetOptions
push edx
mov dword [0x513290], eax
call esi
mov dword [0x513294], eax
mov eax, dword [0x513284]
push str.SymLoadModule64
push eax
call esi
mov ecx, dword [0x513284]
push str.SymGetModuleInfo64
push ecx
mov dword [0x513298], eax
call esi
mov edx, dword [0x513284]
push str.SymFromName
push edx
mov dword [0x51329c], eax
call esi
xor ecx, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 4], ecx
mov ecx, 0xb
mov word [ebp - 8], cx
mov ecx, dword [0x513288]
mov dword [0x5132a0], eax
pop esi
cmp ecx, edi
je 0x4a3162
cmp dword [0x51328c], edi
je 0x4a3162
cmp dword [0x513298], edi
je 0x4a3162
cmp dword [0x51329c], edi
je 0x4a3162
cmp eax, edi
je 0x4a3162
lea edx, [ebp - 8]
push edx
call ecx
cmp word [ebp - 8], 0xb
jb 0x4a3162
mov eax, dword [0x513280]
push edi
push edi
push eax
call dword [0x51328c]
test eax, eax
je 0x4a3162
mov eax, dword [0x513294]
cmp eax, edi
je 0x4a3153
cmp dword [0x513290], edi
je 0x4a3153
call eax
and eax, 0xfffffffc
or eax, 0x2704
push eax
call dword [0x513290]
mov eax, 0x513280
mov dword [0x513278], eax
pop edi
mov esp, ebp
pop ebp
ret
mov eax, dword [0x513284]
mov dword [0x51327c], 1
cmp eax, edi
je 0x4a317c
push eax
call dword [sym.imp.KERNEL32.dll_FreeLibrary]
mov dword [0x513288], edi
mov dword [0x51328c], edi
mov dword [0x513290], edi
mov dword [0x513294], edi
mov dword [0x513298], edi
mov dword [0x51329c], edi
mov dword [0x5132a0], edi
xor eax, eax
pop edi
mov esp, ebp
pop ebp
ret
Function at 0x4a3360
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f8188
push 0x4a7019
mov eax, dword fs:[0]
push eax
sub esp, 0x24
push ebx
push esi
push edi
mov eax, dword [0x50e018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
test eax, eax
mov esi, 0x10000
je 0x4a33a5
lea esi, [eax + 0x10000]
xor eax, eax
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], eax
mov dword [ebp - 0x2c], eax
mov dword [ebp - 0x28], eax
mov dword [ebp - 0x24], eax
mov dword [ebp - 0x20], eax
mov dword [ebp - 0x1c], eax
lea edi, [eax - 2]
nop
push 0x1c
lea eax, [ebp - 0x34]
push eax
push esi
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
test eax, eax
jne 0x4a33e5
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
cmp dword [ebp - 0x24], 0x1000
jne 0x4a344d
mov eax, dword [ebp - 0x20]
cmp al, 1
je 0x4a344d
test eax, 0x100
jne 0x4a344d
mov dword [ebp - 4], 0
mov ecx, 0x5a4d
cmp word [esi], cx
jne 0x4a344a
mov eax, dword [esi + 0x3c]
cmp eax, dword [ebp - 0x28]
ja 0x4a344a
cmp eax, 0x40
jb 0x4a344a
cmp dword [eax + esi], 0x4550
jne 0x4a344a
mov dword [ebp - 4], edi
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
mov dword [ebp - 4], edi
mov esi, dword [ebp - 0x28]
add esi, dword [ebp - 0x34]
jmp 0x4a33c0
Function at 0x4a3b20
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
push 0xfffffffffffffffe
push 0x4f8108
push 0x4a7019
mov eax, dword fs:[0]
push eax
sub esp, 0x10
push ebx
push esi
push edi
mov eax, dword [0x50e018]
xor dword [ebp - 8], eax
xor eax, ebp
push eax
lea eax, [ebp - 0x10]
mov dword fs:[0], eax
mov dword [ebp - 0x18], esp
mov eax, dword [ebp + 8]
mov ecx, eax
mov dword [ebp + 8], ecx
xor esi, esi
cmp eax, esi
jne 0x4a3b6d
push esi
call dword [sym.imp.KERNEL32.dll_GetModuleHandleW]
mov dword [ebp + 8], eax
mov ecx, eax
mov dword [ebp - 4], esi
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x4a3b84
push 0xc1
jmp 0x4a3c61
mov edx, dword [ecx + 0x3c]
add edx, ecx
mov dword [ebp - 0x20], edx
cmp dword [edx], 0x4550
je 0x4a3b9e
push 0xbf
jmp 0x4a3c61
movzx ecx, word [edx + 0x14]
cmp cx, si
je 0x4a3c5c
lea eax, [ecx + edx + 0x18]
mov dword [ebp - 0x1c], esi
movzx edx, word [edx + 6]
cmp esi, edx
jae 0x4a3c5c
lea ecx, [esi + esi*4]
lea edi, [eax + ecx*8]
mov edx, str..detour
mov ecx, edi
jmp 0x4a3bd0
mov bl, byte [ecx]
cmp bl, byte [edx]
jne 0x4a3bf0
test bl, bl
je 0x4a3bec
mov bl, byte [ecx + 1]
cmp bl, byte [edx + 1]
jne 0x4a3bf0
add ecx, 2
add edx, 2
test bl, bl
jne 0x4a3bd0
xor ecx, ecx
jmp 0x4a3bf5
sbb ecx, ecx
sbb ecx, 0xffffffff
test ecx, ecx
jne 0x4a3c4a
mov ecx, dword [edi + 0xc]
test ecx, ecx
je 0x4a3c5c
cmp dword [edi + 0x10], 0
je 0x4a3c5c
mov edx, dword [ebp + 8]
lea esi, [ecx + edx]
mov eax, dword [esi]
cmp eax, 0x40
jb 0x4a3c5c
cmp dword [esi + 4], 0x727444
jne 0x4a3c5c
cmp dword [esi + 8], 0
jne 0x4a3c25
mov dword [esi + 8], eax
push 0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
mov eax, esi
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
inc esi
mov edx, dword [ebp - 0x20]
jmp 0x4a3baf
push 0xc0
call dword [sym.imp.KERNEL32.dll_SetLastError]
mov dword [ebp - 4], 0xfffffffe
xor eax, eax
mov ecx, dword [ebp - 0x10]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret 4
Function at 0x4a3ee0
Capabilities:
Allocate or change rwx memory
Execute shellcode via indirect call

Disassembly:
push ebp
mov ebp, esp
sub esp, 0xc
cmp dword [esi], 0x678
jne 0x4a3fda
cmp dword [ebp + 8], 0x678
jb 0x4a3fda
mov ecx, dword [esi + 4]
mov edx, dword [esi + 0x10]
push ebx
or eax, 0xffffffff
push edi
mov edi, dword [sym.imp.KERNEL32.dll_VirtualProtect]
mov dword [ebp - 0xc], eax
mov dword [ebp - 4], eax
mov dword [ebp + 8], eax
lea eax, [ebp - 0xc]
push eax
push 0x40
push ecx
push edx
xor ebx, ebx
call edi
test eax, eax
je 0x4a3fd0
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
lea eax, [ebp - 4]
push eax
push 0x40
push ecx
push edx
call edi
test eax, eax
je 0x4a3fbe
mov eax, dword [esi + 4]
mov edx, dword [esi + 0x10]
push eax
lea ecx, [esi + 0x1c]
push ecx
push edx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 8]
mov edx, dword [esi + 0x14]
push eax
lea ecx, [esi + 0x5c]
push ecx
push edx
call sub.MSVCR100.dll_memcpy
mov eax, dword [esi + 0x18]
add esp, 0x18
test eax, eax
je 0x4a3fa7
mov edx, dword [esi + 0xc]
lea ecx, [ebp + 8]
push ecx
push 0x40
push edx
push eax
call edi
test eax, eax
je 0x4a3fac
mov eax, dword [esi + 0xc]
mov edx, dword [esi + 0x18]
push eax
lea ecx, [esi + 0x664]
push ecx
push edx
call sub.MSVCR100.dll_memcpy
mov ecx, dword [ebp + 8]
mov edx, dword [esi + 0xc]
add esp, 0xc
lea eax, [ebp - 8]
push eax
mov eax, dword [esi + 0x18]
push ecx
push edx
push eax
call edi
mov ebx, 1
mov edx, dword [ebp - 4]
mov eax, dword [esi + 8]
lea ecx, [ebp - 8]
push ecx
mov ecx, dword [esi + 0x14]
push edx
push eax
push ecx
call edi
mov eax, dword [ebp - 0xc]
mov ecx, dword [esi + 4]
lea edx, [ebp - 8]
push edx
mov edx, dword [esi + 0x10]
push eax
push ecx
push edx
call edi
pop edi
mov eax, ebx
pop ebx
mov esp, ebp
pop ebp
ret 4
push 0xc1
call dword [sym.imp.KERNEL32.dll_SetLastError]
xor eax, eax
mov esp, ebp
pop ebp
ret 4
Function at 0x4a665a
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x50e018]
jne 0x4a6664
repz ret
jmp fcn.004a6e9a

Function at 0x4ab8b0
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [esp + 4]
mov edx, dword [esp + 8]
xor ecx, ecx
cmp eax, edx
je 0x4ab8df
push esi
push edi
mov esi, ecx
mov edi, ecx
shl esi, 6
shr edi, 2
add esi, edi
movsx edi, byte [eax]
lea esi, [esi + edi - 0x61c88647]
inc eax
xor ecx, esi
cmp eax, edx
jne 0x4ab8c0
pop edi
pop esi
mov eax, 0x4e25
mul ecx
mov eax, ecx
sub eax, edx
shr eax, 1
add edx, eax
shr edx, 0x1e
imul edx, edx, 0x7fffd8ee
mov eax, ecx
sub eax, edx
add eax, 0x2710
ret

Function at 0x4acb90
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cc079
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x50e018]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov dword [esp + 4], 0
lea eax, [ecx - 0x28]
mov dword [esp + 0x28], 0x4e2394
mov dword [esp + 0x30], vtable.boost::exception_detail::clone_base.0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
mov dword [esp + 8], 1
call fcn.004ab340
mov eax, dword [esp + 0x28]
mov dword [esp + 8], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::out_of_range__.2.0
mov dword [esp + 0x14], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::out_of_range__.1.0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::out_of_range__.0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
push 0x4f5a40
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + eax + 0x2c], 0
mov dword [esp + 0x44], 0xffffffff
call sub.MSVCR100.dll__CxxThrowException
int3
sub ecx, dword [ecx - 4]
jmp 0x4acb90

Function at 0x4ad0d0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cc079
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x50e018]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov dword [esp + 4], 0
lea eax, [ecx - 0x28]
mov dword [esp + 0x28], 0x4e2394
mov dword [esp + 0x30], vtable.boost::exception_detail::clone_base.0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
mov dword [esp + 8], 1
call fcn.004ab610
mov eax, dword [esp + 0x28]
mov dword [esp + 8], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::invalid_argument__.2.0
mov dword [esp + 0x14], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::invalid_argument__.1.0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::invalid_argument__.0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
push 0x4f5af8
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + eax + 0x2c], 0
mov dword [esp + 0x44], 0xffffffff
call sub.MSVCR100.dll__CxxThrowException
int3
sub ecx, dword [ecx - 4]
jmp 0x4ad0d0
Function at 0x4ada40
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cc079
mov eax, dword fs:[0]
push eax
sub esp, 0x30
mov eax, dword [0x50e018]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov dword [esp + 4], 0
lea eax, [ecx - 0x28]
mov dword [esp + 0x28], 0x4e2394
mov dword [esp + 0x30], vtable.boost::exception_detail::clone_base.0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x40], 0
mov dword [esp + 8], 1
call fcn.004abc80
mov eax, dword [esp + 0x28]
mov dword [esp + 8], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::runtime_error__.2.0
mov dword [esp + 0x14], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::runtime_error__.1.0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x28], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_std::runtime_error__.0
mov edx, dword [esp + 0x28]
mov eax, dword [edx + 4]
push 0x4f5c18
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + eax + 0x2c], 0
mov dword [esp + 0x44], 0xffffffff
call sub.MSVCR100.dll__CxxThrowException
int3
sub ecx, dword [ecx - 4]
jmp 0x4ada40
Function at 0x4b2360
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push 0xffffffffffffffff
push 0x4cc3d8
mov eax, dword fs:[0]
push eax
sub esp, 0x24
mov eax, dword [0x50e018]
xor eax, esp
mov dword [esp + 0x20], eax
push ebx
push esi
push edi
mov eax, dword [0x50e018]
xor eax, esp
push eax
lea eax, [esp + 0x34]
mov dword fs:[0], eax
mov edi, dword [esp + 0x44]
mov esi, ecx
mov eax, dword [esi]
mov ecx, dword [eax + 0x140]
sub ecx, dword [eax + 0x13c]
cmp dword [esi + 0x78], ecx
jne 0x4b243d
mov edx, dword [esi + 0x84]
sub edx, dword [esi + 0x80]
test edx, 0xfffffffc
je 0x4b243d
mov ecx, dword [esi + 0x84]
cmp dword [ecx - 4], edi
jle 0x4b243d
mov eax, dword [eax + 0x18]
test al, 3
jne 0x4b23db
test eax, 0x1000000
je 0x4b243d
push str.Cant_terminate_a_sub_expression_with_an_alternation_operator_.
lea ecx, [esp + 0x18]
call fcn.00405490
mov edi, dword [esi + 0x64]
sub edi, dword [esi + 0x5c]
xor eax, eax
push edi
sub esp, 0x1c
mov ecx, esp
mov dword [esp + 0x30], esp
push 0xffffffffffffffff
mov dword [ecx + 0x10], eax
mov dword [ecx + 0x14], 0xf
push eax
mov dword [esp + 0x64], eax
mov byte [ecx], al
lea eax, [esp + 0x3c]
push eax
call fcn.004059c0
push edi
push 0x11
mov ecx, esi
call fcn.004b04e0
cmp dword [esp + 0x28], 0x10
jb 0x4b2436
mov ecx, dword [esp + 0x14]
push ecx
call sub.MSVCR100.dll_void___cdecl_operator_delete_void__
add esp, 4
xor al, al
jmp 0x4b24be
mov edx, dword [esi + 0x84]
sub edx, dword [esi + 0x80]
test edx, 0xfffffffc
je 0x4b24bc
mov eax, dword [esi + 0x84]
cmp dword [eax - 4], edi
jle 0x4b24bc
mov edx, dword [eax - 4]
cmp dword [esi + 0x80], eax
je 0x4b2470
add eax, 0xfffffffc
mov dword [esi + 0x84], eax
mov eax, dword [esi]
mov ecx, dword [eax + 0x13c]
mov ebx, dword [eax + 0x140]
sub ebx, ecx
add ebx, 3
and ebx, 0xfffffffc
add ebx, ecx
mov dword [eax + 0x140], ebx
mov eax, dword [esi]
mov ecx, dword [eax + 0x140]
sub ecx, dword [eax + 0x13c]
mov eax, dword [eax + 0x13c]
sub ecx, edx
mov dword [eax + edx + 8], ecx
mov ecx, dword [esi + 0x84]
sub ecx, dword [esi + 0x80]
test ecx, 0xfffffffc
jne 0x4b2451
mov al, 1
mov ecx, dword [esp + 0x34]
mov dword fs:[0], ecx
pop ecx
pop edi
pop esi
pop ebx
mov ecx, dword [esp + 0x20]
xor ecx, esp
call fcn.004a665a
add esp, 0x30
ret 4
Function at 0x4c3bf0
Capabilities:
Access peb ldr_data

Disassembly:
push 0xffffffffffffffff
push 0x4cd7a9
mov eax, dword fs:[0]
push eax
sub esp, 0x38
mov eax, dword [0x50e018]
xor eax, esp
push eax
lea eax, [esp + 0x3c]
mov dword fs:[0], eax
mov dword [esp + 4], 0
lea eax, [ecx - 0x30]
mov dword [esp + 0x30], 0x4e31c4
mov dword [esp + 0x38], vtable.boost::exception_detail::clone_base.0
push eax
lea ecx, [esp + 0xc]
mov dword [esp + 0x48], 0
mov dword [esp + 8], 1
call fcn.004c38c0
mov eax, dword [esp + 0x30]
mov dword [esp + 8], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::regex_error__.2.0
mov dword [esp + 0x1c], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::regex_error__.1.0
mov ecx, dword [eax + 4]
mov dword [esp + ecx + 0x30], vtable.boost::exception_detail::clone_impl_struct_boost::exception_detail::error_info_injector_class_boost::regex_error__.0
mov edx, dword [esp + 0x30]
mov eax, dword [edx + 4]
push 0x4f74b0
lea ecx, [esp + 0xc]
push ecx
mov dword [esp + eax + 0x34], 0
mov dword [esp + 0x4c], 0xffffffff
call sub.MSVCR100.dll__CxxThrowException
int3
sub ecx, dword [ecx - 4]
jmp 0x4c3bf0