joyce8/EMBER2024-capa huggingface dataset:
Function at 0x10062280
Capabilities:
Accept command line arguments

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x30
mov esi, ecx
lea eax, [ebp - 0x2c]
push eax
push edx
call sub.shell32.dll_CommandLineToArgvW
test eax, eax
mov dword [ebp - 0x10], eax
je 0x10062348
mov eax, dword [ebp - 0x2c]
mov dword [ebp - 0x20], 0
mov dword [ebp - 0x1c], 4
mov dword [ebp - 0x24], esi
mov dword [ebp - 0x18], 0
test eax, eax
je 0x1006232c
shl eax, 2
xor ebx, ebx
xor edi, edi
mov dword [ebp - 0x14], 4
jmp 0x100622f7
movsd xmm0, qword [ebp - 0x3c]
movsd xmm1, qword [ebp - 0x34]
mov eax, dword [ebp - 0x14]
inc edi
movsd qword [eax + ebx + 8], xmm1
movsd qword [eax + ebx], xmm0
mov eax, dword [ebp - 0x28]
add ebx, 0x10
mov dword [ebp - 0x18], edi
add eax, 0xfffffffc
je 0x1006232c
mov dword [ebp - 0x28], eax
mov eax, dword [ebp - 0x10]
mov esi, dword [eax + edi*4]
push esi
call sub.msvcrt.dll_wcslen
add esp, 4
push eax
push esi
lea eax, [ebp - 0x3c]
push eax
call sym.__LT_std..ffi..os_str..OsString_u20_as_u20_std..os..windows..ffi..OsStringExt_GT_::from_wide::h63b25de594ca01f2
add esp, 0xc
cmp edi, dword [ebp - 0x20]
jne 0x100622d0
lea ecx, [ebp - 0x20]
call sym.alloc::raw_vec::RawVec_LT_T_C_A_GT_::grow_one::h69e2d9a13a7338ff
mov eax, dword [ebp - 0x1c]
mov dword [ebp - 0x14], eax
jmp 0x100622d0
push dword [ebp - 0x10]
call sub.kernel32.dll_LocalFree
movsd xmm0, qword [ebp - 0x20]
mov ecx, dword [ebp - 0x24]
mov eax, dword [ebp - 0x18]
movsd qword [ecx], xmm0
mov dword [ecx + 8], eax
jmp 0x1006235c
mov dword [esi], 0
mov dword [esi + 4], 4
mov dword [esi + 8], 0
add esp, 0x30
pop esi
pop edi
pop ebx
pop ebp
ret

Function at 0x10062590
Capabilities:
Check if file exists

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
push eax
mov eax, dword [ebp + 8]
mov ecx, dword [eax + 0xc]
test ecx, ecx
je 0x10062617
mov ebx, dword [eax]
movdqa xmm0, xmmword [ebx]
lea esi, [ebx + 0x10]
pmovmskb eax, xmm0
not eax
jmp 0x100625e0
lea edi, [eax - 1]
and edi, eax
tzcnt eax, eax
mov ecx, ebx
shl eax, 4
sub ecx, eax
push dword [ecx - 4]
call sub.pdh.dll_PdhRemoveCounter
mov ecx, dword [ebp - 0x10]
mov eax, edi
dec ecx
je 0x10062617
test ax, ax
mov dword [ebp - 0x10], ecx
jne 0x100625c0
nop dword [eax + eax]
movdqa xmm0, xmmword [esi]
add ebx, 0xffffff00
add esi, 0x10
pmovmskb eax, xmm0
cmp eax, 0xffff
je 0x100625f0
mov ecx, 0xfffffffe
sub ecx, eax
not eax
mov edi, eax
and edi, ecx
jmp 0x100625c5
mov esi, dword [ebp + 8]
mov eax, dword [esi + 0x24]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x1006262f
push eax
call sub.kernel32.dll_CloseHandle
test eax, eax
je 0x10062642
mov eax, dword [esi + 0x20]
lea ecx, [eax + 1]
cmp ecx, 2
jae 0x10062652
add esp, 4
pop esi
pop edi
pop ebx
pop ebp
ret
call sub.kernel32.dll_GetLastError
mov eax, dword [esi + 0x20]
lea ecx, [eax + 1]
cmp ecx, 2
jb 0x1006263a
push eax
call sub.pdh.dll_PdhCloseQuery
jmp 0x1006263a
Function at 0x10068e70
Capabilities:
Allocate thread local storage

Disassembly:
sub esp, 0xc
call dword [sym.imp.kernel32.dll_TlsAlloc]
mov dword [0x100710bc], eax
cmp eax, 0xffffffff
je sym._pthread_tls_init.cold.12
add esp, 0xc
ret

Function at 0x10069380
Capabilities:
Print debug messages

Disassembly:
test eax, eax
je 0x100693b0
push edi
push esi
push ebx
mov ebx, eax
add esp, 0xffffff80
mov dword [esp], eax
call sym._pthread_spin_destroy
cmp eax, 1
je 0x100693b1
mov dword [ebx], 0xffffffff
sub esp, 0xffffff80
pop ebx
pop esi
pop edi
ret
ret
lea ebx, [esp + 0x15]
xor eax, eax
mov esi, str.Error_cleaning_up_spin_keys_for_thread
mov ecx, 0xa
mov edi, ebx
rep movsd dword es:[edi], dword [esi]
lea edi, [esp + 0x3d]
mov ecx, 0x43
rep stosb byte es:[edi], al
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
lea edx, [esp + 0x3c]
mov dword [esp + 8], 0xa
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.msvcrt.dll__ultoa]
cmp byte [esp + 0x3c], 0
mov eax, 0x27
jne 0x10069405
jmp 0x10069413
cmp eax, 0x6a
je 0x1006941d
add eax, 1
cmp byte [ebx + eax], 0
jne 0x10069400
cmp eax, 0x6a
je 0x1006941d
mov byte [esp + eax + 0x15], 0xa
mov byte [esp + eax + 0x16], 0
mov dword [esp], ebx
call dword [sym.imp.KERNEL32.dll_OutputDebugStringA]
push eax
call sym._abort
lea esi, [esi]
Function at 0x100694c0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x2c
cmp dword [0x100ff164], 1
je 0x100694d5
call sym.__pthread_once_raw.part.5.constprop.11
mov eax, dword [0x100710bc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov esi, eax
test eax, eax
je 0x10069500
add esp, 0x2c
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
call sym._pop_pthread_mem
mov ebx, eax
mov eax, dword [entry4]
test eax, eax
je 0x100694ec
test ebx, ebx
je 0x100694ec
mov dword [ebx + 0x24], 1
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [ebx + 0x3c], eax
mov dword [esp + 0xc], 0
mov dword [esp + 8], 0
mov dword [esp + 4], 1
mov dword [esp], 0
call dword [sym.imp.KERNEL32.dll_CreateEventA]
mov dword [ebx + 0x1c], 0xffffffff
mov dword [ebx + 0x18], eax
sub esp, 0x10
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
mov esi, dword [sym.imp.kernel32.dll_GetCurrentProcess]
mov dword [ebx + 0x64], 0
mov dword [ebx + 0x14], 0
call esi
mov ebp, eax
call dword [sym.imp.kernel32.dll_GetCurrentThread]
mov edi, eax
call esi
lea edx, [ebx + 0x14]
mov dword [esp + 8], ebp
mov dword [esp + 0x18], 2
mov dword [esp + 0x14], 0
mov dword [esp + 0x10], 0
mov dword [esp + 0xc], edx
mov dword [esp + 4], edi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_DuplicateHandle]
sub esp, 0x1c
test eax, eax
je sym.___pthread_self_lite.cold.13
mov eax, dword [ebx + 0x14]
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_GetThreadPriority]
mov dword [ebx + 0x68], 0
mov dword [ebx + 0x6c], eax
movzx eax, byte [ebx + 0x20]
sub esp, 4
and eax, 0xffffffcf
or eax, 0x10
mov byte [ebx + 0x20], al
mov eax, dword [0x100710bc]
mov dword [esp + 4], ebx
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
test eax, eax
je sym.___pthread_self_lite.cold.13
add esp, 0x2c
mov esi, ebx
mov eax, esi
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x10069740
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push edi
push esi
push ebx
sub esp, 0x10
mov eax, dword [esp + 0x24]
test eax, eax
jne 0x10069770
mov ecx, dword [esp + 0x28]
test ecx, ecx
je 0x10069820
add esp, 0x10
mov eax, 1
pop ebx
pop esi
pop edi
ret 0xc
cmp eax, 1
je 0x10069850
cmp eax, 3
jne 0x1006975a
mov eax, dword [0x100710bc]
cmp eax, 0xffffffff
je 0x1006975a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
sub esp, 4
mov ebx, eax
test eax, eax
je 0x1006975a
test byte [eax + 0x20], 0x30
je 0x10069880
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x100697b3
call sym.__pthread_cleanup_dest.part.8
mov eax, dword [ebx + 0x14]
test eax, eax
je 0x100697e5
mov dword [esp], eax
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
call esi
mov eax, dword [ebx + 0x18]
sub esp, 4
test eax, eax
je 0x100697d7
mov dword [esp], eax
call esi
sub esp, 4
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x14], 0
lea eax, [ebx + 0x1c]
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
mov eax, ebx
call sym._push_pthread_mem
mov eax, dword [0x100710bc]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
sub esp, 8
jmp 0x1006975a
mov eax, dword [0x100ff140]
test eax, eax
je 0x1006975a
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_RemoveVectoredExceptionHandler]
mov dword [0x100ff140], 0
sub esp, 4
jmp 0x1006975a
mov dword [esp + 4], sym._SetThreadName_VEH_4
mov dword [esp], 1
call dword [sym.imp.kernel32.dll_AddVectoredExceptionHandler]
sub esp, 8
mov dword [0x100ff140], eax
mov eax, 1
add esp, 0x10
pop ebx
pop esi
pop edi
ret 0xc
mov edx, dword [ebx + 0x68]
mov eax, dword [eax + 0x18]
test edx, edx
jne 0x100698f2
test eax, eax
je 0x1006989a
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov eax, dword [ebx + 0xb4]
mov dword [ebx + 0x18], 0
mov dword [ebx + 0x68], 1
test eax, eax
je 0x100698b7
call sym.__pthread_cleanup_dest.part.8
lea edi, [ebx + 0x1c]
lea esi, [ebx + 0x38]
test byte [ebx + 0x24], 4
je 0x10069921
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x100698dc
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
mov dword [ebx + 0x14], 0
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
jmp 0x100697f3
test eax, eax
je 0x10069902
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
sub esp, 4
lea eax, [ebx + 0x1c]
mov dword [ebx + 0x18], 0
mov dword [esp], eax
call sym._pthread_mutex_destroy
lea eax, [ebx + 0x38]
call sym._replace_spin_keys.constprop.10
jmp 0x1006975a
mov dword [esp], edi
call sym._pthread_mutex_destroy
mov eax, esi
call sym._replace_spin_keys.constprop.10
jmp 0x1006975a
Function at 0x10069940
Capabilities:
Set thread local storage value

Disassembly:
lea ecx, [esp + 4]
and esp, 0xfffffff0
push dword [ecx - 4]
push ebp
mov ebp, esp
push edi
push esi
push ebx
push ecx
sub esp, 0x28
mov eax, dword [ecx]
mov esi, eax
mov dword [ebp - 0x1c], eax
call sym.__fpreset
mov dword [esp], 0x100710b4
lea ebx, [esi + 0x1c]
call sym._pthread_mutex_lock
mov dword [esp], ebx
call sym._pthread_mutex_lock
cmp dword [0x100ff164], 1
je 0x10069985
call sym.__pthread_once_raw.part.5.constprop.11
mov esi, dword [ebp - 0x1c]
mov eax, dword [0x100710bc]
mov dword [esp + 4], esi
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push edi
push edi
call dword [sym.imp.KERNEL32.dll_GetCurrentThreadId]
mov dword [esi + 0x3c], eax
mov dword [esp], ebx
call sym._pthread_mutex_unlock
lea eax, [esi + 0x70]
mov dword [esp + 4], 0
mov dword [esp], eax
call sym.__setjmp3
test eax, eax
je 0x10069a53
mov dword [esp], 0x100710b4
call sym._pthread_mutex_lock
mov esi, dword [ebp - 0x1c]
lea ebx, [esi + 0x1c]
mov dword [esp], ebx
call sym._pthread_mutex_lock
mov eax, esi
mov esi, dword [esi + 4]
mov eax, dword [eax + 0x18]
test eax, eax
je 0x100699f8
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
mov eax, dword [ebp - 0x1c]
cmp dword [eax + 0x14], 0
mov dword [eax + 0x18], 0
je 0x10069a9d
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, dword [ebp - 0x1c]
mov dword [eax + 0x1c], 0xffffffff
mov dword [eax + 0x68], 1
mov ebx, dword [sym.imp.kernel32.dll_Sleep]
mov dword [esp], 0x100710b4
call sym._pthread_mutex_unlock
test eax, eax
jne 0x10069ae1
mov dword [esp], 0
call ebx
push eax
jmp 0x10069a33
mov dword [esp], 0x100710b4
call sym._pthread_mutex_unlock
mov edx, dword [ebp - 0x1c]
mov eax, dword [edx + 8]
test eax, eax
je 0x10069ada
mov edx, dword [edx + 4]
mov dword [esp], edx
call eax
mov ebx, eax
mov dword [esp], 0x100710b4
call sym._pthread_mutex_lock
mov eax, dword [ebp - 0x1c]
mov dword [eax + 4], ebx
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x100699d4
call sym.__pthread_cleanup_dest.part.8
jmp 0x100699d4
mov edi, dword [ebp - 0x1c]
mov dword [edi], 0xdeadbeef
mov dword [esp], ebx
call sym._pthread_mutex_unlock
mov dword [esp], ebx
call sym._pthread_mutex_destroy
mov eax, edi
call sym._push_pthread_mem
mov eax, dword [0x100710bc]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push edx
push edx
jmp 0x10069a2d
mov ebx, pe_nt_image_headers32
jmp 0x10069a73
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
lea esi, [esi]
Function at 0x1006a2b0
Capabilities:
Get thread local storage value
Set thread local storage value

Disassembly:
push esi
push ebx
sub esp, 0x14
mov esi, dword [esp + 0x20]
call sym.___pthread_self_lite
mov ebx, eax
mov dword [eax + 4], esi
mov eax, dword [eax + 0xb4]
test eax, eax
je 0x1006a2d2
call sym.__pthread_cleanup_dest.part.8
test byte [ebx + 0x20], 0x30
jne 0x1006a2eb
add ebx, 0x70
mov dword [esp + 4], 1
mov dword [esp], ebx
call sym._longjmp
mov eax, dword [0x100710bc]
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
mov ebx, eax
push edx
test eax, eax
je 0x1006a32e
cmp dword [ebx + 0x14], 0
mov eax, dword [eax + 0x18]
je 0x1006a372
mov esi, dword [ebx + 4]
mov dword [ebx + 0x68], 1
test eax, eax
je 0x1006a321
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push ecx
mov dword [ebx + 0x18], 0
test byte [ebx + 0x24], 4
jne 0x1006a337
mov dword [esp], esi
call dword [sym.imp.msvcrt.dll__endthreadex]
mov eax, dword [ebx + 0x14]
mov dword [ebx], 0xdeadbeef
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push edx
mov dword [ebx + 0x14], 0
mov eax, ebx
call sym._push_pthread_mem
mov eax, dword [0x100710bc]
mov dword [esp + 4], 0
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
push eax
push eax
jmp 0x1006a32e
mov dword [ebx], 0xdeadbeef
test eax, eax
je 0x1006a386
mov dword [esp], eax
call dword [sym.imp.kernel32.dll_CloseHandle]
push esi
mov dword [ebx + 0x18], 0
mov esi, dword [ebx + 4]
jmp 0x1006a351

Function at 0x1006df20
Capabilities:
Write file on windows

Disassembly:
push ebx
sub esp, 0x18
mov dword [esp], 2
lea ebx, [esp + 0x24]
call sym.___acrt_iob_func
mov dword [esp + 8], 0x1b
mov dword [esp + 0xc], eax
mov dword [esp + 4], 1
mov dword [esp], str.Mingw_w64_runtime_failure:_n
call sym._fwrite
mov dword [esp], 2
call sym.___acrt_iob_func
mov edx, dword [esp + 0x20]
mov dword [esp + 8], ebx
mov dword [esp], eax
mov dword [esp + 4], edx
call sym._vfprintf
call sym._abort
lea esi, [esi]
Function at 0x1006df80
Capabilities:
Allocate or change rwx memory

Disassembly:
push edi
push esi
push ebx
sub esp, 0x30
mov esi, dword [0x100ff198]
test esi, esi
jle 0x1006e0a0
mov edi, dword [0x100ff19c]
xor ebx, ebx
lea edx, [edi + 0xc]
nop
mov ecx, dword [edx]
cmp ecx, eax
ja 0x1006dfb4
mov edi, dword [edx + 4]
add ecx, dword [edi + 8]
cmp eax, ecx
jb 0x1006e039
add ebx, 1
add edx, 0x14
cmp ebx, esi
jne 0x1006dfa0
mov dword [esp], eax
mov ebx, eax
call sym.___mingw_GetSectionForAddress
mov edi, eax
test eax, eax
je 0x1006e0c7
mov eax, dword [0x100ff19c]
lea ebx, [esi + esi*4]
shl ebx, 2
add eax, ebx
mov dword [eax + 0x10], edi
mov dword [eax], 0
call sym.__GetPEImageBase
mov edx, dword [0x100ff19c]
add eax, dword [edi + 0xc]
mov dword [edx + ebx + 0xc], eax
lea edx, [esp + 0x14]
mov dword [esp + 8], 0x1c
mov dword [esp + 4], edx
mov dword [esp], eax
call dword [sym.imp.KERNEL32.dll_VirtualQuery]
sub esp, 0xc
test eax, eax
je 0x1006e0a7
mov eax, dword [esp + 0x28]
lea edx, [eax - 0x40]
and edx, 0xffffffbf
je 0x1006e032
lea edx, [eax - 4]
and edx, 0xfffffffb
jne 0x1006e040
add dword [0x100ff198], 1
add esp, 0x30
pop ebx
pop esi
pop edi
ret
cmp eax, 2
mov edx, 0x40
mov eax, 4
mov ecx, dword [esp + 0x20]
cmovne eax, edx
mov edx, dword [esp + 0x14]
add ebx, dword [0x100ff19c]
mov dword [ebx + 8], ecx
mov dword [ebx + 4], edx
mov dword [esp + 0xc], ebx
mov dword [esp + 8], eax
mov dword [esp + 4], ecx
mov dword [esp], edx
call dword [sym.imp.kernel32.dll_VirtualProtect]
sub esp, 0x10
test eax, eax
jne 0x1006e032
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [esp], str.__VirtualProtect_failed_with_code_0x_x
mov dword [esp + 4], eax
call sym.___report_error
lea esi, [esi]
lea edi, [edi]
xor esi, esi
jmp 0x1006dfbe
mov eax, dword [0x100ff19c]
mov eax, dword [eax + ebx + 0xc]
mov dword [esp + 8], eax
mov eax, dword [edi + 8]
mov dword [esp], str.__VirtualQuery_failed_for__d_bytes_at_address__p
mov dword [esp + 4], eax
call sym.___report_error
mov dword [esp + 4], ebx
mov dword [esp], str.Address__p_has_no_image_section
call sym.___report_error
mov esi, esi
lea edi, [edi]

Function at 0x1006e3b0
Capabilities:
Get thread local storage value

Disassembly:
push ebp
push edi
push esi
push ebx
sub esp, 0x1c
mov dword [esp], 0x100ff1a8
call dword [sym.imp.KERNEL32.dll_EnterCriticalSection]
mov ebx, dword [0x100ff1a0]
sub esp, 4
test ebx, ebx
je 0x1006e405
mov ebp, dword [sym.imp.kernel32.dll_TlsGetValue]
mov edi, dword [sym.imp.kernel32.dll_GetLastError]
lea esi, [esi]
mov eax, dword [ebx]
mov dword [esp], eax
call ebp
sub esp, 4
mov esi, eax
call edi
test eax, eax
jne 0x1006e3fe
test esi, esi
je 0x1006e3fe
mov eax, dword [ebx + 4]
mov dword [esp], esi
call eax
mov ebx, dword [ebx + 8]
test ebx, ebx
jne 0x1006e3e0
mov dword [esp], 0x100ff1a8
call dword [sym.imp.KERNEL32.dll_LeaveCriticalSection]
sub esp, 4
add esp, 0x1c
pop ebx
pop esi
pop edi
pop ebp
ret
Function at 0x405480
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
mov dword [ebp - 0x10], edx
push esi
push edi
mov eax, dword [ebx]
mov edi, dword [ebx + 4]
xor edi, eax
mov dword [ebp - 0xc], eax
mov eax, edi
mov ecx, edi
and eax, 0xfffffffc
mov esi, edi
add eax, 4
and cl, 3
cmovne esi, eax
mov ecx, esi
call fcn.00405db2
mov dword [ebp - 4], eax
test eax, eax
je 0x4054fa
shr esi, 2
lea edx, [ebx + 8]
xor ebx, ebx
and dword [ebp - 8], ebx
lea ecx, [edx + esi*4]
mov esi, ecx
sub esi, edx
add esi, 3
shr esi, 2
cmp edx, ecx
cmova esi, dword [ebp - 8]
test esi, esi
je 0x4054ee
mov ecx, eax
sub ecx, edx
mov eax, dword [edx]
xor eax, dword [ebp - 0xc]
inc ebx
mov dword [ecx + edx], eax
lea edx, [edx + 4]
cmp ebx, esi
jb 0x4054de
mov eax, dword [ebp - 0x10]
test eax, eax
je 0x4054f7
mov dword [eax], edi
mov eax, dword [ebp - 4]
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405506
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x14
mov eax, ecx
push ebx
push esi
mov dword [ebp - 4], eax
mov ecx, dword [eax]
mov ebx, dword [eax + 4]
xor ebx, ecx
mov dword [ebp - 0xc], ecx
push edi
mov dword [ebp - 0x14], ebx
lea esi, [ebx + 1]
mov eax, esi
mov edx, esi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne esi, eax
lea ecx, [esi + esi]
call fcn.00405db2
mov edi, eax
mov dword [ebp - 0x10], edi
test edi, edi
je 0x4055b1
mov eax, dword [ebp - 4]
and dword [ebp - 4], 0
add eax, 8
shr esi, 2
lea ecx, [eax + esi*4]
mov esi, edi
mov edx, ecx
sub edx, eax
add edx, 3
shr edx, 2
cmp eax, ecx
cmova edx, dword [ebp - 4]
test edx, edx
je 0x4055ab
mov ebx, eax
xor edi, edi
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 0xc]
movzx eax, cl
mov word [esi], ax
mov eax, ecx
shr eax, 8
lea esi, [esi + 8]
movzx eax, al
mov word [esi - 6], ax
shr ecx, 0x10
movzx eax, cl
shr ecx, 8
inc edi
mov word [esi - 4], ax
movzx eax, cl
mov word [esi - 2], ax
cmp edi, edx
jb 0x40556f
mov edi, dword [ebp - 0x10]
mov ebx, dword [ebp - 0x14]
xor eax, eax
mov word [edi + ebx*2], ax
mov eax, edi
pop edi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x4055ba
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x10
push ebx
mov ebx, ecx
push esi
push edi
mov ecx, dword [ebx]
mov eax, dword [ebx + 4]
xor eax, ecx
mov dword [ebp - 8], ecx
mov dword [ebp - 0x10], eax
lea edi, [eax + 1]
mov eax, edi
mov edx, edi
and eax, 0xfffffffc
add eax, 4
and dl, 3
cmovne edi, eax
mov ecx, edi
call fcn.00405db2
mov esi, eax
mov dword [ebp - 0xc], esi
test esi, esi
je 0x40564c
and dword [ebp - 4], 0
add ebx, 8
shr edi, 2
xor eax, eax
mov edx, esi
lea ecx, [ebx + edi*4]
mov edi, ecx
sub edi, ebx
add edi, 3
shr edi, 2
cmp ebx, ecx
cmova edi, eax
test edi, edi
je 0x405645
mov esi, dword [ebp - 4]
mov ecx, dword [ebx]
lea ebx, [ebx + 4]
xor ecx, dword [ebp - 8]
mov byte [edx], cl
mov eax, ecx
shr eax, 8
lea edx, [edx + 4]
shr ecx, 0x10
mov byte [edx - 3], al
mov byte [edx - 2], cl
shr ecx, 8
inc esi
mov byte [edx - 1], cl
cmp esi, edi
jb 0x40561c
mov esi, dword [ebp - 0xc]
mov eax, dword [ebp - 0x10]
mov byte [esi + eax], 0
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x40597c
Capabilities:
Encode data using xor

Disassembly:
push ebp
mov ebp, esp
push ecx
push ecx
mov dword [ebp - 8], 0xcb5f
add dword [ebp - 8], 0xffffe5a3
imul eax, dword [ebp - 8], 0x24
push ebx
mov ebx, ecx
mov dword [ebp - 8], eax
add dword [ebp - 8], 0xffff8849
shl dword [ebp - 8], 5
xor dword [ebp - 8], 0x900ea921
xor dword [ebp - 8], 0x93033b01
mov dword [ebp - 4], 0xd4cb
xor dword [ebp - 4], 0x12ca9c68
shl dword [ebp - 4], 4
xor dword [ebp - 4], 0xf01dbcf9
xor dword [ebp - 4], 0xdcb936cf
mov dword [ebp - 4], 0x89fe
add dword [ebp - 4], 0xffffaceb
imul eax, dword [ebp - 4], 0x74
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x2c
mov dword [ebp - 4], eax
shl dword [ebp - 4], 3
shr dword [ebp - 4], 0xb
xor dword [ebp - 4], 0x446d5
cmp byte [ebx], 0
je 0x405a79
push esi
push edi
mov edi, dword [ebp - 8]
mov dword [ebp - 4], 0xd4cb
xor dword [ebp - 4], 0x12ca9c68
shl dword [ebp - 4], 4
xor dword [ebp - 4], 0xf01dbcf9
xor dword [ebp - 4], 0xdcb936cf
mov cl, byte [ebp - 4]
mov esi, dword [ebp - 8]
mov dword [ebp - 4], 0x89fe
add dword [ebp - 4], 0xffffaceb
imul eax, dword [ebp - 4], 0x74
shl esi, cl
mov dword [ebp - 4], eax
imul eax, dword [ebp - 4], 0x2c
mov dword [ebp - 4], eax
shl dword [ebp - 4], 3
shr dword [ebp - 4], 0xb
xor dword [ebp - 4], 0x446d5
mov cl, byte [ebp - 4]
mov edx, dword [ebp - 8]
movsx eax, byte [ebx]
mov dword [ebp - 8], eax
add dword [ebp - 8], esi
shl edx, cl
add dword [ebp - 8], edx
sub dword [ebp - 8], edi
inc ebx
cmp byte [ebx], 0
jne 0x405a04
pop edi
pop esi
mov eax, dword [ebp - 8]
pop ebx
mov esp, ebp
pop ebp
ret
Function at 0x405ba1
Capabilities:
Resolve function by parsing pe exports

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x18
push ebx
mov ebx, ecx
mov dword [ebp - 8], edx
push esi
push edi
xor esi, esi
mov eax, dword [ebx + 0x3c]
mov dword [ebp - 0x18], eax
mov dword [ebp - 4], esi
mov edi, dword [eax + ebx + 0x78]
add edi, ebx
mov eax, dword [edi + 0x1c]
mov ecx, dword [edi + 0x20]
add eax, ebx
mov dword [ebp - 0x14], eax
add ecx, ebx
mov eax, dword [edi + 0x24]
add eax, ebx
mov dword [ebp - 0xc], ecx
mov dword [ebp - 0x10], eax
mov eax, esi
cmp dword [edi + 0x18], esi
jbe 0x405c2d
mov ecx, dword [ecx + eax*4]
add ecx, ebx
call fcn.0040597c
xor eax, 0x47ef3b18
cmp eax, dword [ebp - 8]
mov eax, dword [ebp - 4]
je 0x405c04
mov ecx, dword [ebp - 0xc]
inc eax
mov dword [ebp - 4], eax
cmp eax, dword [edi + 0x18]
jb 0x405bdf
jmp 0x405c2d
mov ecx, dword [ebp - 0x10]
mov esi, dword [ebp - 0x14]
movzx eax, word [ecx + eax*2]
mov esi, dword [esi + eax*4]
add esi, ebx
cmp esi, edi
jb 0x405c2d
mov eax, dword [ebp - 0x18]
mov eax, dword [eax + ebx + 0x7c]
add eax, edi
cmp esi, eax
jae 0x405c2d
mov ecx, esi
call fcn.00405c6d
mov esi, eax
pop edi
mov eax, esi
pop esi
pop ebx
mov esp, ebp
pop ebp
ret

Function at 0x405c36
Capabilities:
Access peb ldr_data

Disassembly:
mov eax, dword fs:[0x30]
push ebx
push esi
push edi
mov edi, dword [eax + 0xc]
mov ebx, ecx
add edi, 0xc
mov esi, dword [edi]
jmp 0x405c5e
mov ecx, dword [esi + 0x30]
call fcn.00405a81
xor eax, 0x1f0a1d4
cmp eax, ebx
je 0x405c68
mov esi, dword [esi]
cmp esi, edi
jne 0x405c4b
xor eax, eax
pop edi
pop esi
pop ebx
ret
mov eax, dword [esi + 0x18]
jmp 0x405c64

Function at 0x405f11
Capabilities:
Parse pe header

Disassembly:
mov eax, 0x5a4d
cmp word [ecx], ax
je 0x405f1e
xor eax, eax
ret
mov eax, dword [ecx + 0x3c]
add eax, ecx
cmp dword [eax], 0x4550
jne 0x405f1b
mov edx, 0x10b
xor ecx, ecx
cmp word [eax + 0x18], dx
cmovne eax, ecx
ret