joyce8/EMBER2024-capa huggingface dataset:
Function at 0x4e3e00
Capabilities:
Read file on windows
Write file on windows

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
mov eax, 0x1038
call fcn.00527460
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x5064b0
mov edi, ecx
lea eax, [ebp - 0x18]
mov dword [ebp - 0x24], edx
lea esi, [ebp - 0x1044]
mov ecx, dword fs:[0]
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
push 0x1000
push 0
push esi
call fcn.00528860
add esp, 0xc
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
lea eax, [ebp - 0x44]
push 0x4dbca0
push eax
push 0x1000
push esi
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
je 0x4e3f54
mov ebx, dword [sym.imp.kernel32.dll_SleepEx]
mov dword [ebp - 0x20], edi
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4e3e8a
cmp dword [ebp - 0x2c], 0
jne 0x4e3f65
mov esi, dword [ebp - 0x28]
test esi, esi
je 0x4e3f65
cmp esi, 0x1000
ja 0x4e3fa1
xor edi, edi
nop dword [eax]
mov eax, esi
sub eax, edi
jb 0x4e3f87
xorps xmm0, xmm0
lea edx, [ebp - 0x30]
lea ecx, [ebp + edi - 0x1044]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], edx
push 0x4dbca0
lea edx, [ebp - 0x44]
push edx
push eax
push ecx
push dword [ebp - 0x24]
call dword [sym.imp.kernel32.dll_WriteFileEx]
test eax, eax
je 0x4e3f5c
nop dword [eax]
push 1
push 0xffffffffffffffff
call ebx
cmp dword [ebp - 0x30], 0
je 0x4e3f00
cmp dword [ebp - 0x2c], 0
jne 0x4e3f62
add edi, dword [ebp - 0x28]
cmp edi, esi
jne 0x4e3ec0
xorps xmm0, xmm0
lea eax, [ebp - 0x30]
mov dword [ebp - 0x30], 0
movups xmmword [ebp - 0x44], xmm0
mov dword [ebp - 0x34], eax
push 0x4dbca0
lea eax, [ebp - 0x44]
push eax
push 0x1000
lea eax, [ebp - 0x1044]
push eax
mov edi, dword [ebp - 0x20]
push edi
call dword [sym.imp.kernel32.dll_ReadFileEx]
test eax, eax
jne 0x4e3e8a
call dword [sym.imp.kernel32.dll_GetLastError]
jmp 0x4e3f65
call dword [sym.imp.kernel32.dll_GetLastError]
mov edi, dword [ebp - 0x20]
mov esi, dword [sym.imp.kernel32.dll_CloseHandle]
push edi
call esi
push dword [ebp - 0x24]
call esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x1038
pop esi
pop edi
pop ebx
pop ebp
ret
mov dword [ebp - 0x10], 0
mov ecx, edi
mov edx, esi
push 0x590608
call fcn.00536d50
add esp, 4
jmp 0x4e3fbc
mov dword [ebp - 0x10], 0
mov ecx, esi
mov edx, 0x1000
push 0x590608
call fcn.00536b30
add esp, 4
ud2
Function at 0x4e4090
Capabilities:
Generate random numbers via rtlgenrandom

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x5064d0
mov edi, ecx
lea eax, [esi + 0x50]
xorps xmm0, xmm0
mov ecx, dword fs:[0]
mov dword [esi + 0x50], ecx
mov dword fs:[0], eax
movaps xmmword [esi + 0x10], xmm0
lea eax, [esi + 0x10]
push 0x10
push eax
call dword [sym.imp.advapi32.dll_SystemFunction036]
test al, al
je 0x4e410e
mov eax, dword [esi + 0x10]
mov ecx, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
mov ebx, dword [esi + 0x1c]
mov dword [esi + 4], eax
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
mov dword [edi + 0xc], ebx
mov dword [edi + 8], edx
mov dword [edi + 4], ecx
mov eax, dword [esi + 4]
mov dword [edi], eax
mov eax, edi
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
call dword [sym.imp.kernel32.dll_GetLastError]
lea edx, [esi + 8]
lea ecx, [esi + 0x28]
mov dword [esi + 0x30], 0x59071c
mov dword [esi + 0x34], 1
mov dword [esi + 0x40], 0
mov byte [esi + 8], 0
mov dword [esi + 0xc], eax
mov dword [esi + 0x58], 0
mov dword [esi + 0x28], edx
mov dword [esi + 0x38], ecx
lea ecx, [esi + 0x30]
mov edx, 0x590748
mov dword [esi + 0x2c], fcn.004d4f10
mov dword [esi + 0x3c], 1
call fcn.00536a40
ud2
Function at 0x4e88a0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff0
sub esp, 0x60
mov esi, esp
mov dword [esi + 0x48], ebp
mov dword [esi + 0x4c], esp
mov dword [esi + 0x58], 0xffffffff
mov dword [esi + 0x54], 0x5065f0
movaps xmm0, xmmword [0x53b700]
mov edi, ecx
lea ebx, [esi + 0x20]
lea ecx, [esi + 0xc]
mov eax, dword fs:[0]
mov dword [esi + 0x50], eax
lea eax, [esi + 0x50]
mov dword fs:[0], eax
mov eax, dword [ebp + 8]
mov word [esi + 0x40], 0
mov dword [esi + 0x3c], 0
mov dword [esi + 0x30], 7
mov dword [esi + 0x34], 0
mov dword [esi + 0x38], 0
movups xmmword [esi + 0x20], xmm0
push ebx
push eax
call fcn.004d5f40
add esp, 8
movzx eax, byte [esi + 0xc]
cmp al, 4
jne 0x4e895f
mov eax, ebx
mov ebx, dword [esi + 0x10]
xorps xmm0, xmm0
mov dword [esi + 0x44], 0
mov dword [esi + 0x40], 0
movaps xmmword [esi + 0x30], xmm0
movaps xmmword [esi + 0x20], xmm0
mov dword [esi + 8], ebx
push 0x28
push eax
push 0
push ebx
call dword [sym.imp.kernel32.dll_GetFileInformationByHandleEx]
test eax, eax
je 0x4e897b
test byte [esi + 0x40], 0x10
jne 0x4e898d
mov byte [edi], 0
mov eax, 0x10b
jmp 0x4e8987
movzx ecx, byte [esi + 0xf]
movzx ebx, word [esi + 0xd]
mov edx, dword [esi + 0x10]
mov byte [edi + 3], cl
mov word [edi + 1], bx
mov byte [edi], al
mov dword [edi + 4], edx
jmp 0x4e8a08
call dword [sym.imp.kernel32.dll_GetLastError]
mov dword [edi], 0
mov dword [edi + 4], eax
push ebx
jmp 0x4e8a02
mov dword [esi + 4], ebx
mov dword [esi + 0x1c], edi
mov dword [esi + 0x58], 0
lea ecx, [esi + 0x14]
lea edx, [esi + 8]
push 0x4e8a70
call fcn.004e8ab0
add esp, 4
cmp byte [esi + 0x14], 4
mov ecx, dword [esi + 0x1c]
jne 0x4e89c1
movsd xmm0, qword [esi + 0x14]
movsd qword [ecx], xmm0
jmp 0x4e89fe
mov eax, dword [esi + 0x14]
mov edx, dword [esi + 0x18]
test al, al
mov dword [esi + 0x24], edx
mov dword [esi + 0x20], eax
je 0x4e89d8
mov dword [ecx], eax
mov dword [ecx + 4], edx
jmp 0x4e89fe
cmp edx, 1
je 0x4e89e7
cmp edx, 0x57
je 0x4e89e7
cmp edx, 0x32
jne 0x4e89d1
mov dword [esi + 0x58], 1
lea edx, [esi + 8]
push 0x4e92d0
call fcn.004e8ab0
add esp, 4
mov eax, dword [esi + 4]
push eax
call dword [sym.imp.kernel32.dll_CloseHandle]
mov eax, dword [esi + 0x50]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4e95d0
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x18
mov edi, dword [ebp + 8]
mov dword [ebp - 0x1c], esp
mov dword [ebp - 0x10], 0xffffffff
mov dword [ebp - 0x14], 0x506610
mov ebx, ecx
mov esi, edx
lea eax, [ebp - 0x18]
mov ecx, dword fs:[0]
test edi, edi
mov dword [ebp - 0x18], ecx
mov dword fs:[0], eax
je 0x4e9631
js 0x4e969d
movzx eax, byte [0x5dd8e8]
mov ecx, edi
mov edx, 1
call fcn.00421010
test eax, eax
jne 0x4e9636
mov ecx, 1
mov edx, edi
call fcn.005367d0
mov eax, 1
push edi
push esi
mov dword [ebp - 0x20], eax
push eax
call fcn.005282e0
add esp, 0xc
mov edx, dword [ebx + 0x30]
cmp edx, dword [ebx + 0x28]
jne 0x4e9667
lea ecx, [ebx + 0x28]
mov dword [ebp - 0x10], 0
mov dword [ebp - 0x24], ebx
call fcn.004e96d0
mov ebx, dword [ebp - 0x24]
mov edi, dword [ebp + 8]
mov edx, dword [ebx + 0x30]
mov eax, dword [ebx + 0x2c]
mov esi, dword [ebp - 0x20]
lea ecx, [edx + edx*4]
inc edx
mov dword [eax + ecx*4], 0
mov dword [eax + ecx*4 + 4], edi
mov dword [eax + ecx*4 + 8], esi
mov dword [eax + ecx*4 + 0xc], edi
mov byte [eax + ecx*4 + 0x10], 0
mov dword [ebx + 0x30], edx
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x18
pop esi
pop edi
pop ebx
pop ebp
ret
call fcn.004211c0
nop word cs:[eax + eax]
nop dword [eax]
push ebp
sub esp, 0xc
add ebp, 0xc
cmp dword [ebp + 8], 0
je 0x4e96ca
mov ecx, dword [ebp - 0x20]
mov edx, 1
call fcn.00421070
add esp, 0xc
pop ebp
ret

Function at 0x4e9870
Capabilities:
Generate random numbers via winapi
Get thread local storage value
Set thread local storage value

Disassembly:
push ebp
mov ebp, esp
push esi
and esp, 0xfffffff0
sub esp, 0x30
mov eax, dword [0x5dc0bc]
test eax, eax
je 0x4e9955
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 2
jb 0x4e98a1
mov esi, eax
mov eax, dword [eax]
or eax, dword [esi + 4]
jne 0x4e994a
mov eax, dword [0x5dc0bc]
test eax, eax
je 0x4e9964
dec eax
push eax
call dword [sym.imp.kernel32.dll_TlsGetValue]
cmp eax, 1
je 0x4e9927
mov esi, eax
test eax, eax
jne 0x4e9907
movzx eax, byte [0x5dd8e8]
mov ecx, 0x20
mov edx, 8
call fcn.00421010
test eax, eax
je 0x4e997f
mov dword [eax + 4], 0
mov dword [eax], 0
mov dword [eax + 0x18], 0x5dc0bc
mov esi, eax
mov eax, dword [0x5dc0bc]
test eax, eax
je 0x4e9973
dec eax
push esi
push eax
call dword [sym.imp.kernel32.dll_TlsSetValue]
xorps xmm0, xmm0
mov eax, esp
movaps xmmword [esp], xmm0
push 2
push 0x10
push eax
push 0
call dword [sym.imp.bcrypt.dll_BCryptGenRandom]
test eax, eax
js 0x4e992b
movaps xmm0, xmmword [esp]
jmp 0x4e9939
xor esi, esi
jmp 0x4e994d
lea ecx, [esp + 0x10]
call fcn.004e4090
movups xmm0, xmmword [esp + 0x10]
mov dword [esi + 4], 0
mov dword [esi], 1
movups xmmword [esi + 8], xmm0
add esi, 8
mov eax, esi
lea esp, [ebp - 4]
pop esi
pop ebp
ret
mov ecx, 0x5dc0bc
call fcn.00539200
jmp 0x4e9888
mov ecx, 0x5dc0bc
call fcn.00539200
jmp 0x4e98af
mov ecx, 0x5dc0bc
call fcn.00539200
jmp 0x4e98ff
mov ecx, 8
mov edx, 0x20
call fcn.005367d0
int3
Function at 0x4ece7c
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
and esp, 0xfffffff8
sub esp, 0x48
mov esi, esp
mov dword [esi + 0x30], ebp
lea eax, [esi + 0x38]
mov dword [esi + 0xc], edx
mov dword [esi + 8], ecx
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x5068b0
mov edx, dword fs:[0]
mov dword [eax], edx
mov dword fs:[0], eax
mov edi, dword [ecx + 4]
mov edx, dword [ecx]
and dword [eax + 8], 0
mov byte [esi + 7], 1
lea ecx, [esi + 0x20]
push edi
call fcn.004ecd68
pop eax
mov eax, dword [esi + 0x2c]
mov ecx, dword [esi + 8]
mov dword [esi + 0x18], eax
add ecx, 8
mov eax, dword [esi + 0x28]
mov dword [esi + 0x1c], eax
mov eax, dword [esi + 0x20]
mov dword [esi + 0x10], eax
mov eax, dword [esi + 0x24]
mov dword [esi + 0x40], 1
mov dword [esi + 8], ecx
mov dword [esi + 0x14], eax
call fcn.004ecfac
mov eax, dword [esi + 0xc]
mov ecx, dword [esi + 8]
mov edx, dword [esi + 0x14]
movsd xmm0, qword [eax + 0x10]
movsd qword [ecx + 0x10], xmm0
movsd xmm0, qword [eax]
movsd xmm1, qword [eax + 8]
movsd qword [ecx + 8], xmm1
movsd qword [ecx], xmm0
and dword [esi + 0x40], 0
mov ecx, dword [esi + 0x10]
mov byte [esi + 7], 0
push dword [esi + 0x18]
push dword [esi + 0x1c]
call fcn.004ecdb1
pop eax
pop ecx
mov eax, dword [esi + 0x38]
mov dword fs:[0], eax
lea esp, [ebp - 0xc]
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x4f2adf
Capabilities:
Encode data using xor

Disassembly:
mov eax, dword [ecx]
mov edx, eax
xor edx, 3
lock cmpxchg dword [ecx], edx
jne 0x4f2ae1
test al, 1
je 0x4f2af8
test al, 2
jne 0x4f2b0a
xor eax, 3
ret
push 0x23
pop edx
mov ecx, str.assertion_failed:_prev.is_running__
push 0x593728
call fcn.00536b90
push 0x25
pop edx
mov ecx, 0x593738
push 0x593760
call fcn.00536b90
Function at 0x4f3a55
Capabilities:
Send data
Send data on socket

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x4c
mov dword [ebp - 0x20], ecx
lea ecx, [ebp - 0x18]
mov edi, edx
mov eax, dword [ebp + 0x10]
lea esi, [ebp - 0x2c]
mov dword [ecx - 4], esp
or dword [ecx + 8], 0xffffffff
mov dword [ecx + 4], 0x506be0
mov dword [ebp - 0x40], edi
mov edx, dword fs:[0]
mov dword [ecx], edx
mov dword fs:[0], ecx
xor edx, edx
lea ecx, [edi + 0xc]
cmp dword [edi + 0xc], 0xffffffff
cmove ecx, edx
mov edx, 0x7fffffff
cmp eax, edx
mov dword [ebp - 0x44], ecx
cmovb edx, eax
mov dword [ebp - 0x50], edx
mov edx, dword [edi + 8]
mov ecx, esi
push dword [ebp + 8]
call fcn.004f372f
pop eax
mov edx, dword [ebp - 0x2c]
cmp edx, 2
je 0x4f3bf9
mov ecx, dword [ebp - 0x28]
mov eax, dword [ebp - 0x24]
test edx, edx
jne 0x4f3c01
mov esi, dword [ebp - 0x44]
mov dword [ebp - 0x58], ecx
mov edx, 0x591e58
mov dword [ebp - 0x54], eax
mov ecx, esi
call fcn.00452adc
push 0
push dword [ebp - 0x50]
push dword [ebp + 0xc]
push dword [esi]
call dword [sym.imp.ws2_32.dll_send]
cmp eax, 0xffffffff
je 0x4f3b07
mov dword [ebp - 0x30], eax
mov byte [ebp - 0x34], 4
jmp 0x4f3baf
call dword [sym.imp.ws2_32.dll_WSAGetLastError]
mov esi, eax
xor eax, eax
lea ecx, [ebp - 0x34]
mov byte [ebp - 0x34], al
and word [ebp - 0x33], 0
mov byte [ebp - 0x31], al
mov dword [ebp - 0x30], esi
call fcn.0043dba8
cmp al, 0xd
jne 0x4f3baf
mov eax, dword [ebp - 0x44]
mov ecx, dword [eax + 4]
test ecx, ecx
je 0x4f3ba4
mov eax, dword [ecx + 4]
mov dword [ebp - 0x38], esi
mov edx, dword [ecx]
lock inc dword [eax]
jle 0x4f3c2c
mov edi, dword [ecx + 0xc]
mov esi, dword [ecx + 8]
add edx, 8
mov dword [ebp - 0x10], 1
lea ecx, [ebp - 0x2c]
push edi
push esi
push eax
call fcn.00468ed8
add esp, 0xc
mov eax, dword [ebp - 0x38]
and dword [ebp - 0x10], 0
mov dword [ebp - 0x3c], eax
push 4
pop ecx
call fcn.004cd11b
cmp byte [ebp - 0x2c], 4
mov edi, dword [ebp - 0x40]
je 0x4f3baf
mov ebx, dword [ebp - 0x2c]
mov edx, dword [ebp - 0x38]
cmp bl, 4
je 0x4f3baf
mov esi, dword [ebp - 0x28]
or dword [ebp - 0x10], 0xffffffff
xor ecx, ecx
mov dword [ebp - 0x4c], ebx
mov dword [ebp - 0x48], esi
call fcn.004cd11b
jmp 0x4f3bc0
and dword [ebp - 0x28], 0
mov dword [ebp - 0x2c], 4
mov ebx, dword [ebp - 0x34]
mov esi, dword [ebp - 0x30]
cmp bl, 4
mov dword [ebp - 0x48], esi
mov dword [ebp - 0x4c], ebx
je 0x4f3c0b
lea ecx, [ebp - 0x4c]
call fcn.004eb880
cmp al, 0xd
jne 0x4f3c13
mov ecx, edi
lea edx, [ebp - 0x58]
mov dword [ebp - 0x2c], ebx
mov dword [ebp - 0x28], esi
mov dword [ebp - 0x10], 2
call fcn.004f341f
or dword [ebp - 0x10], 0xffffffff
lea esi, [ebp - 0x2c]
push esi
call fcn.004e9f96
pop eax
mov edi, dword [ebp - 0x40]
jmp 0x4f3aa9
mov eax, dword [ebp - 0x20]
mov byte [eax], 5
jmp 0x4f3c1b
mov edx, dword [ebp - 0x20]
mov dword [edx], ecx
mov dword [edx + 4], eax
jmp 0x4f3c1b
mov eax, dword [ebp - 0x20]
mov byte [eax], 4
jmp 0x4f3c18
mov eax, dword [ebp - 0x20]
mov dword [eax], ebx
mov dword [eax + 4], esi
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x4c
pop esi
pop edi
pop ebx
pop ebp
ret
ud2
Function at 0x4f87cf
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x44
lea edi, [ebp - 0x18]
mov esi, dword [ebp + 0x10]
mov dword [ebp - 0x2c], ecx
mov dword [ebp - 0x28], edx
mov dword [edi - 4], esp
or dword [edi + 8], 0xffffffff
mov dword [edi + 4], 0x506d50
mov eax, dword fs:[0]
mov ecx, esi
mov dword [edi], eax
mov dword fs:[0], edi
call fcn.004f2135
mov dword [ebp - 0x34], eax
mov dword [ebp - 0x30], edx
lea ecx, [edx + 8]
mov dword [ebp - 0x20], edx
add edx, 0x78
test eax, eax
mov dword [ebp - 0x24], eax
cmove ecx, edx
and dword [edi + 8], 0
mov edx, esi
call fcn.004ee728
mov ecx, dword [ebp - 0x24]
mov edx, dword [ebp - 0x20]
mov edi, dword [ebp + 8]
mov esi, dword [ebp + 0xc]
call fcn.004ecbdd
mov ecx, dword [ebp - 0x2c]
and dword [ebp - 0x38], 0
and dword [ebp - 0x3c], 0
and dword [ebp - 0x40], 0
and dword [ebp - 0x44], 0
and dword [ebp - 0x48], 0
and dword [ebp - 0x4c], 0
or dword [ebp - 0x10], 0xffffffff
movsd xmm0, qword [ebp - 0x50]
movsd xmm1, qword [ebp - 0x40]
mov dword [ecx], eax
mov eax, dword [ebp - 0x28]
mov dword [ecx + 4], edx
mov dword [ecx + 0xc], edi
mov dword [ecx + 8], eax
mov dword [ecx + 0x10], esi
movsd qword [ecx + 0x14], xmm0
movsd xmm0, qword [ebp - 0x48]
mov eax, dword [ebp - 0x38]
movsd qword [ecx + 0x24], xmm1
mov dword [ecx + 0x2c], eax
movsd qword [ecx + 0x1c], xmm0
or dword [ecx + 0x34], 0xffffffff
or dword [ecx + 0x30], 0xffffffff
and dword [ecx + 0x38], 0
and dword [ecx + 0x40], 0
xor eax, eax
mov byte [ecx + 0x44], al
mov byte [ecx + 0x48], al
lea ecx, [ebp - 0x34]
call fcn.0046c750
mov eax, dword [ebp - 0x18]
mov dword fs:[0], eax
add esp, 0x44
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x5002f1
Capabilities:
Access peb ldr_data

Disassembly:
push ebp
mov ebp, esp
push ebx
push edi
push esi
sub esp, 0x28
lea eax, [ebp - 0x18]
mov dword [ebp - 0x2c], ecx
mov edi, dword [ebp + 8]
mov esi, edx
mov edx, dword [ebp + 0x10]
mov dword [eax - 4], esp
or dword [eax + 8], 0xffffffff
mov dword [eax + 4], 0x506df0
mov dword [ebp - 0x20], esi
mov ecx, dword fs:[0]
mov dword [eax], ecx
mov dword fs:[0], eax
mov ecx, dword [ebp + 0xc]
cmp dword [edi + 8], 0
mov dword [ebp - 0x34], ecx
mov dword [ebp - 0x30], edx
je 0x50035b
mov eax, dword [edi + 0xc]
mov edx, dword [edi + 0x18]
mov ecx, dword [edi + 0x14]
and dword [ebp - 0x10], 0
push eax
call fcn.005004d3
pop ecx
mov dword [ebp - 0x24], eax
mov eax, edx
mov esi, dword [ebp - 0x20]
mov edx, dword [ebp + 0x10]
mov ecx, dword [ebp + 0xc]
jmp 0x500364
mov eax, dword [edi + 0x14]
mov dword [ebp - 0x24], eax
mov eax, dword [edi + 0x18]
and dword [ebp - 0x10], 0
sub edx, ecx
mov ecx, esi
mov dword [ebp - 0x28], eax
add edx, eax
call fcn.0046afa9
mov edx, dword [ebp - 0x24]
mov ecx, dword [ebp - 0x20]
mov eax, edx
add eax, dword [ebp - 0x28]
push eax
call fcn.0046af77
pop eax
push 0x23
pop edx
mov ecx, dword [ebp - 0x20]
call fcn.004f962c
lea esi, [ebp - 0x34]
mov ecx, esi
call fcn.004f9c89
mov edx, dword [esi]
mov ecx, dword [ebp - 0x20]
push dword [esi + 4]
call fcn.005004e4
pop eax
mov edx, dword [ebp - 0x20]
mov ecx, dword [ebp - 0x2c]
mov eax, dword [edx + 8]
movsd xmm0, qword [edx]
mov edx, dword [ebp + 8]
movsd qword [ecx + 0x10], xmm0
movsd xmm0, qword [edx + 0x3c]
mov dword [ecx + 0x18], eax
mov bl, byte [edx + 0x44]
mov edi, dword [edx]
mov esi, dword [edx + 4]
movsd qword [ecx + 0x3c], xmm0
movsd xmm0, qword [edx + 0x34]
mov byte [ecx + 0x44], bl
movsd qword [ecx + 0x34], xmm0
mov dword [ecx], edi
mov dword [ecx + 4], esi
mov edi, dword [ebp - 0x28]
mov esi, dword [edx + 0x1c]
mov dword [ecx + 8], 1
mov dword [ecx + 0xc], edi
mov dword [ecx + 0x1c], esi
mov edi, dword [edx + 0x20]
mov esi, dword [edx + 0x24]
mov dword [ecx + 0x20], edi
mov dword [ecx + 0x24], esi
mov edi, dword [edx + 0x28]
mov esi, dword [edx + 0x2c]
mov edx, dword [edx + 0x30]
mov dword [ecx + 0x28], edi
mov dword [ecx + 0x2c], esi
mov dword [ecx + 0x30], edx
mov ecx, dword [ebp - 0x18]
mov dword fs:[0], ecx
add esp, 0x28
pop esi
pop edi
pop ebx
pop ebp
ret
Function at 0x507098
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0xc]
push ebp
mov ebp, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0x1c]
and esi, 0x1f
push edi
mov edi, dword [esp + 0x1c]
cmp esi, 8
jb 0x50712c
mov eax, esi
shr eax, 3
mov dword [esp + 0x20], eax
cmp dword [esp + 0x24], 1
jne 0x5070de
push 8
lea eax, [esp + 0x18]
push edi
push eax
call fcn.005282e0
mov eax, dword [esp + 0x20]
add esp, 0xc
mov ecx, dword [esp + 0x18]
jmp 0x5070e3
mov eax, dword [edi]
mov ecx, dword [edi + 4]
push ecx
push eax
push 0
push 0
call fcn.00507264
push 0x1b
xor edx, ebx
xor eax, ebp
push edx
push eax
add edi, 8
call fcn.0052bf0c
add esp, 0x1c
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.00527970
mov ebp, eax
mov ebx, edx
add ebp, 0xc2b2ae63
adc ebx, 0x85ebca77
sub esi, 8
sub dword [esp + 0x20], 1
jne 0x5070bd
cmp esi, 4
jb 0x50719f
cmp dword [esp + 0x24], 1
jne 0x50714e
push 4
lea eax, [esp + 0x24]
push edi
push eax
call fcn.005282e0
mov ecx, dword [esp + 0x2c]
add esp, 0xc
jmp 0x507150
mov ecx, dword [edi]
mov eax, 0x9e3779b1
mov dword [esp + 0x20], ecx
mul ecx
push 0x17
mov ecx, eax
add edi, 4
mov eax, 0x85ebca87
mul dword [esp + 0x24]
add ecx, edx
xor eax, ebp
xor ecx, ebx
push ecx
push eax
call fcn.0052bf0c
add esp, 0xc
push 0xc2b2ae3d
push 0x27d4eb4f
push edx
push eax
call fcn.00527970
mov ebp, eax
mov ebx, edx
add ebp, 0x9e3779f9
adc ebx, 0x165667b1
sub esi, 4
test esi, esi
je 0x5071e3
movzx eax, byte [edi]
push 0x27d4eb2f
cdq
push 0x165667c5
push edx
push eax
call fcn.00527970
xor ebx, edx
xor ebp, eax
push 0xb
push ebx
push ebp
inc edi
call fcn.0052bf0c
add esp, 0xc
push 0x9e3779b1
push 0x85ebca87
push edx
push eax
call fcn.00527970
mov ebp, eax
mov ebx, edx
sub esi, 1
jne 0x5071a3
push 0xc2b2ae3d
xor ecx, ecx
mov esi, ebx
push 0x27d4eb4f
xor ecx, ebx
shr esi, 1
push ecx
xor esi, ebp
push esi
call fcn.00527970
mov esi, eax
mov ecx, edx
shrd esi, ecx, 0x1d
push 0x165667b1
shr ecx, 0x1d
xor esi, eax
push 0x9e3779f9
xor ecx, edx
push ecx
push esi
call fcn.00527970
xor esi, esi
mov ecx, edx
pop edi
xor edx, esi
xor eax, ecx
pop esi
pop ebp
pop ebx
ret
Function at 0x515062
Capabilities:
Resolve function by parsing pe exports

Disassembly:
sub esp, 0x70
mov eax, dword [0x5dcef0]
xor eax, esp
mov dword [esp + 0x6c], eax
mov edx, dword [esp + 0x84]
mov eax, dword [esp + 0x74]
mov ecx, dword [esp + 0x7c]
push ebx
mov ebx, dword [esp + 0x84]
push ebp
mov ebp, dword [esp + 0x80]
add ecx, ebp
push esi
push edi
mov edi, dword [esp + 0x98]
lea esi, [edx + ebx]
mov dword [esp + 0x10], eax
mov eax, dword [esp + 0x9c]
mov dword [esp + 0x14], ebx
mov ebx, ebp
mov dword [esp + 0x38], ebp
push edx
lea ebp, [eax + edi]
mov dword [esp + 0x2c], esi
mov eax, dword [esp + 0x14]
mov dword [esp + 0x20], ecx
mov dword [esp + 0x1c], edi
lea esi, [eax + 0x1004]
mov dword [esp + 0x30], esi
lea edx, [eax + 0x1004]
mov esi, dword [eax + 0x2810]
lea ecx, [eax + 0x1808]
mov dword [esp + 0x38], esi
mov esi, dword [esp + 0x18]
push esi
push edx
push ecx
push eax
lea eax, [esp + 0x38]
mov dword [esp + 0x44], ecx
push eax
lea eax, [esp + 0x38]
push eax
lea eax, [esp + 0x30]
push eax
call fcn.00515528
add esp, 0x20
cmp eax, 0xffffff88
ja 0x515248
push 0xc
add esi, eax
lea eax, [esp + 0x74]
push 0
push eax
call fcn.00528860
mov ecx, dword [esp + 0x2c]
mov eax, dword [esp + 0x30]
add eax, ecx
mov dword [esp + 0x74], ecx
mov dword [esp + 0x78], eax
mov eax, dword [esp + 0x34]
sub eax, esi
mov dword [esp + 0x70], 1
push eax
lea eax, [esp + 0x4c]
push esi
push eax
call fcn.0051440d
add esp, 0x18
cmp eax, 0xfffffff8
ja 0x515245
mov eax, dword [esp + 0x10]
push eax
lea eax, [esp + 0x40]
push eax
lea eax, [esp + 0x54]
push eax
call fcn.005143df
push dword [esp + 0x38]
lea eax, [esp + 0x4c]
push eax
lea eax, [esp + 0x68]
push eax
call fcn.005143df
push dword [esp + 0x48]
lea eax, [esp + 0x58]
push eax
lea eax, [esp + 0x7c]
push eax
call fcn.005143df
lea eax, [esp + 0x60]
push eax
call fcn.005147a3
mov edx, dword [esp + 0x3c]
add esp, 0x28
cmp eax, 2
ja 0x515206
test edx, edx
jle 0x515202
lea eax, [esp + 0x3c]
dec edx
push eax
lea eax, [esp + 0x74]
mov dword [esp + 0x14], edx
push eax
call fcn.00514e7c
pop ecx
pop ecx
push dword [esp + 0x1c]
lea eax, [esp + 0x1c]
push dword [esp + 0x38]
lea esi, [esp + 0x78]
push ebp
push eax
sub esp, 0xc
mov edi, esp
push ebx
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
movsd dword es:[edi], dword [esi]
call fcn.0051525b
add esp, 0x20
cmp eax, 0xffffff88
ja 0x515248
add ebx, eax
lea eax, [esp + 0x3c]
push eax
call fcn.005147a3
mov edx, dword [esp + 0x14]
pop ecx
cmp eax, 2
jbe 0x5151aa
mov edi, dword [esp + 0x18]
lea eax, [esp + 0x3c]
push eax
call fcn.0050a6bd
pop ecx
test eax, eax
je 0x515245
test edx, edx
js 0x515245
sub ebp, edi
lea esi, [ebx + ebp]
cmp esi, dword [esp + 0x1c]
jbe 0x515228
push 0xffffffffffffffba
jmp 0x515247
test ebp, ebp
je 0x51523d
cmp ebx, edi
je 0x51523b
push ebp
push edi
push ebx
call fcn.005282e0
add esp, 0xc
mov ebx, esi
sub ebx, dword [esp + 0x38]
mov eax, ebx
jmp 0x515248
push 0xffffffffffffffec
pop eax
mov ecx, dword [esp + 0x7c]
pop edi
pop esi
pop ebp
pop ebx
xor ecx, esp
call fcn.00527959
add esp, 0x70
ret