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

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x18
mov eax, dword [ebp + 8]
push ebx
push esi
mov esi, dword [ebp + 0xc]
mov ebx, eax
and eax, 0x3f
sar ebx, 6
push edi
imul edi, eax, 0x38
push 0xa
mov eax, dword [ebx*4 + 0x474848]
pop edx
mov dword [ebp - 0x14], edx
mov ecx, dword [edi + eax + 0x18]
mov dword [ebp - 0x18], ecx
mov ecx, dword [ebp + 0x10]
test ecx, ecx
je 0x41fdff
cmp word [esi], dx
jne 0x41fdff
or byte [edi + eax + 0x28], 4
jmp 0x41fe04
and byte [edi + eax + 0x28], 0xfb
lea edx, [esi + ecx*2]
mov eax, esi
mov dword [ebp - 8], edx
mov dword [ebp - 4], eax
cmp eax, edx
jae 0x41ff57
mov dword [ebp - 0xc], 0xd
movzx ecx, word [eax]
mov edx, ecx
mov dword [ebp - 0x10], edx
push 0x1a
pop edx
cmp cx, dx
mov edx, dword [ebp - 8]
je 0x41ff37
add eax, 2
cmp cx, word [ebp - 0xc]
je 0x41fe46
mov dword [ebp - 4], eax
mov word [esi], cx
jmp 0x41fe7c
cmp eax, edx
jae 0x41fe88
movzx eax, word [eax]
xor ecx, ecx
cmp ax, word [ebp - 0x14]
mov edx, eax
push 0xa
sete cl
xor eax, eax
lea ecx, [ecx*2 + 2]
add dword [ebp - 4], ecx
pop ecx
cmp dx, cx
mov edx, dword [ebp - 8]
sete al
dec eax
and eax, 3
add eax, ecx
mov word [esi], ax
mov eax, dword [ebp - 4]
add esi, 2
cmp eax, edx
jb 0x41fe1e
jmp 0x41ff57
push 0
lea eax, [ebp - 0x14]
push eax
push 2
lea eax, [ebp - 4]
push eax
push dword [ebp - 0x18]
call dword [sym.imp.KERNEL32.dll_ReadFile]
test eax, eax
je 0x41ff33
cmp dword [ebp - 0x14], 0
je 0x41ff33
mov eax, dword [ebx*4 + 0x474848]
push 0xa
test byte [edi + eax + 0x28], 0x48
je 0x41ff0b
mov dx, word [ebp - 4]
lea eax, [esi + 2]
pop ecx
mov dword [ebp - 0x18], eax
cmp dx, cx
jne 0x41fed4
mov word [esi], cx
jmp 0x41ff07
push 0xd
pop eax
mov word [esi], ax
mov eax, dword [ebx*4 + 0x474848]
movzx ecx, dx
shr ecx, 8
push 0xa
mov byte [edi + eax + 0x2a], dl
mov eax, dword [ebx*4 + 0x474848]
mov byte [edi + eax + 0x2b], cl
mov eax, dword [ebx*4 + 0x474848]
pop ecx
mov byte [edi + eax + 0x2c], cl
mov eax, dword [ebp - 0x18]
mov esi, eax
jmp 0x41ff57
pop ebx
cmp word [ebp - 4], bx
jne 0x41ff1c
cmp esi, dword [ebp + 0xc]
jne 0x41ff1c
mov word [esi], bx
jmp 0x41ff54
push 1
push 0xffffffffffffffff
push 0xfffffffffffffffe
push dword [ebp + 8]
call fcn.004207f0
add esp, 0x10
cmp word [ebp - 4], bx
je 0x41ff57
push 0xd
jmp 0x41ff50
mov ecx, dword [ebx*4 + 0x474848]
mov al, byte [ecx + edi + 0x28]
test al, 0x40
jne 0x41ff4e
or al, 2
mov byte [ecx + edi + 0x28], al
jmp 0x41ff57
push 0x1a
pop eax
mov word [esi], ax
add esi, 2
sub esi, dword [ebp + 0xc]
and esi, 0xfffffffe
pop edi
mov eax, esi
pop esi
pop ebx
leave
ret
Function at 0x42303a
Capabilities:
Query environment variable

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
push ecx
push ecx
push esi
call dword [sym.imp.KERNEL32.dll_GetEnvironmentStringsW]
mov esi, eax
test esi, esi
je 0x4230d7
push ebx
push esi
call fcn.00423003
xor ebx, ebx
sub eax, esi
push ebx
push ebx
push ebx
push ebx
sar eax, 1
push eax
push esi
push ebx
push ebx
mov dword [ebp - 8], eax
call fcn.00421dcb
add esp, 0x24
mov dword [ebp - 4], eax
test eax, eax
jne 0x423084
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4230d6
push edi
push eax
call fcn.0041b80c
mov edi, eax
pop ecx
push ebx
test edi, edi
jne 0x4230a4
call fcn.0041b4cc
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
xor eax, eax
jmp 0x4230d5
push ebx
push dword [ebp - 4]
push edi
push dword [ebp - 8]
push esi
push ebx
push ebx
call fcn.00421dcb
add esp, 0x20
test eax, eax
jne 0x4230c3
push edi
call fcn.0041b4cc
jmp 0x4230cb
push ebx
call fcn.0041b4cc
mov ebx, edi
pop ecx
push esi
call dword [sym.imp.KERNEL32.dll_FreeEnvironmentStringsW]
mov eax, ebx
pop edi
pop ebx
pop esi
leave
ret

Function at 0x4297f0
Capabilities:
Parse pe header

Disassembly:
push ebp
mov ebp, esp
mov eax, dword [ebp + 8]
mov ecx, 0x5a4d
cmp word [eax], cx
jne 0x42981d
mov ecx, dword [eax + 0x3c]
add ecx, eax
cmp dword [ecx], 0x4550
jne 0x42981d
mov edx, 0x10b
xor eax, eax
cmp word [ecx + 0x18], dx
sete al
pop ebp
ret
xor eax, eax
pop ebp
ret
Function at 0x406699
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x23c
push esi
mov esi, 0x104
lea eax, [ebp - 0x23c]
push esi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryW]
cmp eax, esi
pop esi
jbe 0x4066bd
xor eax, eax
test eax, eax
je 0x4066d0
cmp word [ebp + eax*2 - 0x23e], 0x5c
je 0x4066d0
xor ecx, ecx
jmp 0x4066d3
xor ecx, ecx
inc ecx
push dword [ebp + 8]
lea ecx, [ecx*2 + 0x40a014]
lea eax, [ebp + eax*2 - 0x23c]
push ecx
push str._s_S.dll
push eax
call dword [sym.imp.USER32.dll_wsprintfW]
add esp, 0x10
lea eax, [ebp - 0x23c]
push 8
push 0
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryExW]
leave
ret 4

Function at 0x4067fc
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
cmp dword [0x4318ec], 0
push esi
jne 0x406833
xor ecx, ecx
push 8
mov eax, ecx
pop esi
mov edx, eax
and dl, 1
neg dl
sbb edx, edx
and edx, 0xedb88320
shr eax, 1
xor eax, edx
dec esi
jne 0x40680d
mov dword [ecx*4 + 0x4318e8], eax
inc ecx
cmp ecx, 0x100
jl 0x406808
mov edx, dword [esp + 0x10]
mov eax, dword [esp + 8]
test edx, edx
not eax
jbe 0x406864
mov ecx, dword [esp + 0xc]
push edi
movzx edi, byte [ecx]
mov esi, eax
and esi, 0xff
xor esi, edi
shr eax, 8
mov esi, dword [esi*4 + 0x4318e8]
xor eax, esi
inc ecx
dec edx
jne 0x406846
pop edi
not eax
pop esi
ret 0xc

Function at 0x430004
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
call 0x43000c
pop eax
nop
nop
nop
nop
nop
add eax, 0x403d6f
nop
sub eax, 0x403d15
nop
nop
nop
mov ebx, dword [eax]
nop
nop
nop
mov ecx, dword [eax + 4]
nop
nop
nop
mov edx, dword [eax + 8]
nop
nop
nop
nop
nop
nop
xor dword [ebx], edx
nop
nop
nop
add ebx, 4
nop
nop
nop
nop
cmp ebx, ecx
nop
nop
nop
nop
jl 0x430030
nop
nop
add eax, 0xc
nop
nop
nop
cmp dword [eax], 0
nop
nop
jne 0x43001e
nop
nop
nop
nop
nop
nop
nop
popal
nop
jmp loc.00401219
Function at 0x430000
Capabilities:
Encode data using xor
Packed with generic packer

Disassembly:
pushal
nop
nop
nop
nop
nop
nop
mov eax, section..text
nop
nop
push 4
nop
nop
nop
pop edi
nop
nop
nop
nop
nop
cmp eax, 0
nop
nop
nop
nop
nop
nop
je 0x430072
mov ebx, 0x408ecc
nop
nop
nop
nop
mov ecx, ebx
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
push eax
nop
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
xchg ecx, eax
nop
nop
nop
nop
nop
nop
nop
nop
nop
pop eax
nop
mov esi, 0x53392d4b
nop
xor dword [eax], esi
nop
nop
nop
nop
nop
nop
add eax, edi
nop
nop
nop
nop
loop 0x430060
nop
nop
mov eax, section..data
nop
cmp eax, 0
nop
nop
nop
nop
nop
je 0x4300d2
nop
nop
mov ebx, 0x42e1d0
nop
nop
mov ecx, ebx
nop
nop
nop
sub ecx, eax
nop
nop
nop
nop
nop
xor edx, edx
nop
nop
nop
nop
nop
nop
nop
push eax
nop
mov eax, ecx
nop
nop
nop
nop
nop
div edi
nop
nop
nop
nop
nop
nop
xchg ecx, eax
nop
nop
pop eax
nop
nop
nop
nop
mov esi, 0x633037b1
nop
nop
nop
nop
nop
xor dword [eax], esi
nop
add eax, edi
nop
nop
nop
nop
nop
loop 0x4300c0
nop
nop
nop
popal
nop
nop
nop
nop
jmp 0x401219
Function at 0x4188b0
Capabilities:
Extract resource via kernel32 functions

Disassembly:
sub esp, 0x10
push esi
push 0xa
push 0x4a96e8
push 0
mov dword [esp + 0x14], 0
mov dword [esp + 0x18], 0
mov byte [esp + 0x1c], 0
call dword [sym.imp.KERNEL32.dll_FindResourceW]
mov esi, eax
test esi, esi
je 0x41895a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_SizeofResource]
mov dword [esp + 0xc], eax
test eax, eax
je 0x41895a
push esi
push 0
call dword [sym.imp.KERNEL32.dll_LoadResource]
test eax, eax
je 0x41895a
push eax
call dword [sym.imp.KERNEL32.dll_LockResource]
mov dword [esp + 8], eax
test eax, eax
je 0x41895a
push 0x44
call fcn.00491ca8
add esp, 4
test eax, eax
je 0x418924
mov esi, eax
call fcn.00417100
mov ecx, eax
jmp 0x418926
xor ecx, ecx
mov eax, dword [esp + 0x18]
mov dword [eax], ecx
push 0xc
mov eax, 0xfde9
lea edx, [esp + 0xc]
call fcn.004746e0
mov ecx, dword [edi + 0xac8]
inc dword [0x4cc42c]
mov dword [0x4ca44c], ecx
mov eax, 3
pop esi
add esp, 0x10
ret 8
mov edx, dword [esp + 0x1c]
push edx
push str.Could_not_extract_script_from_EXE.
mov ecx, edi
call fcn.00430cb0
pop esi
add esp, 0x10
ret 8
Function at 0x401780
Capabilities:
Get common file path
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x2c
cmp dword [0x8c32a8], 0x400
push esi
push edi
jne 0x4017c1
push 0
push 0
call dword [sym.imp.KERNEL32.dll_GetWindowsDirectoryW]
push 0
push 0
call dword [sym.imp.USER32.dll_EnableWindow]
push 0
push 0
call dword [sym.imp.ADVAPI32.dll_BackupEventLogW]
lea esi, [ebp - 0x24]
call fcn.004018a0
mov ecx, esi
call fcn.004018c0
mov edi, dword [ebp - 4]
xor esi, esi
call dword [sym.imp.KERNEL32.dll_GetLastError]
cmp esi, 0x2afe65
jle 0x4017dc
cmp edi, 0x78e90b55
jne 0x4017e5
inc esi
cmp esi, 0x1c03
jl 0x4017c6
mov edi, dword [sym.imp.KERNEL32.dll_SetLastError]
push ebx
mov ebx, dword [sym.imp.KERNEL32.dll_GetCurrentProcess]
xor esi, esi
push 0
call edi
call dword [sym.imp.KERNEL32.dll_GetLastError]
call ebx
cmp esi, 0x206d47
jg 0x401811
inc esi
cmp esi, 0x4f6a4
jl 0x4017f4
mov ebx, dword [ebp - 4]
mov edi, dword [sym.imp.KERNEL32.dll_GlobalFindAtomW]
xor esi, esi
lea esp, [esp]
push 0
call edi
cmp esi, 0x2b259d
jle 0x401834
cmp ebx, 0x785074d5
jne 0x40183d
inc esi
cmp esi, 0x11915
jl 0x401820
mov eax, dword [0x4a423c]
mov ecx, dword [0x4a4210]
mov dword [0x8c32a8], eax
mov dword [0x8c32ac], ecx
call fcn.00401520
mov esi, dword [sym.imp.KERNEL32.dll_GetNativeSystemInfo]
mov edi, 0x3078f
pop ebx
cmp dword [0x8c32a8], 0x51f
jne 0x401876
lea edx, [ebp - 0x2c]
push edx
call esi
sub edi, 1
jne 0x401864
mov eax, dword [0x8c21fc]
mov dword [0x8c283c], eax
call eax
pop edi
xor eax, eax
pop esi
mov esp, ebp
pop ebp
ret 0x10

Function at 0x40360b
Capabilities:
Terminate process

Disassembly:
cmp ecx, dword [0x4a3158]
jne 0x403615
repz ret
jmp fcn.0040827c
Function at 0x408527
Capabilities:
Link many functions at runtime

Disassembly:
mov edi, edi
push ebp
mov ebp, esp
sub esp, 0x14
push ebx
push esi
push edi
call fcn.0040458a
and dword [ebp - 4], 0
cmp dword [0x4a4f64], 0
mov ebx, eax
jne 0x4085d8
push str.USER32.DLL
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edi, eax
test edi, edi
je 0x408689
mov esi, dword [sym.imp.KERNEL32.dll_GetProcAddress]
push str.MessageBoxA
push edi
call esi
test eax, eax
je 0x408689
push eax
call fcn.00404518
mov dword [esp], str.GetActiveWindow
push edi
mov dword [0x4a4f64], eax
call esi
push eax
call fcn.00404518
mov dword [esp], str.GetLastActivePopup
push edi
mov dword [0x4a4f68], eax
call esi
push eax
call fcn.00404518
mov dword [esp], str.GetUserObjectInformationA
push edi
mov dword [0x4a4f6c], eax
call esi
push eax
call fcn.00404518
pop ecx
mov dword [0x4a4f74], eax
test eax, eax
je 0x4085d8
push str.GetProcessWindowStation
push edi
call esi
push eax
call fcn.00404518
pop ecx
mov dword [0x4a4f70], eax
mov eax, dword [0x4a4f70]
cmp eax, ebx
je 0x408630
cmp dword [0x4a4f74], ebx
je 0x408630
push eax
call fcn.00404593
push dword [0x4a4f74]
mov esi, eax
call fcn.00404593
pop ecx
pop ecx
mov edi, eax
test esi, esi
je 0x408630
test edi, edi
je 0x408630
call esi
test eax, eax
je 0x408627
lea ecx, [ebp - 8]
push ecx
push 0xc
lea ecx, [ebp - 0x14]
push ecx
push 1
push eax
call edi
test eax, eax
je 0x408627
test byte [ebp - 0xc], 1
jne 0x408630
or dword [ebp + 0x10], 0x200000
jmp 0x408669
mov eax, dword [0x4a4f68]
cmp eax, ebx
je 0x408669
push eax
call fcn.00404593
pop ecx
test eax, eax
je 0x408669
call eax
mov dword [ebp - 4], eax
test eax, eax
je 0x408669
mov eax, dword [0x4a4f6c]
cmp eax, ebx
je 0x408669
push eax
call fcn.00404593
pop ecx
test eax, eax
je 0x408669
push dword [ebp - 4]
call eax
mov dword [ebp - 4], eax
push dword [0x4a4f64]
call fcn.00404593
pop ecx
test eax, eax
je 0x408689
push dword [ebp + 0x10]
push dword [ebp + 0xc]
push dword [ebp + 8]
push dword [ebp - 4]
call eax
jmp 0x40868b
xor eax, eax
pop edi
pop esi
pop ebx
leave
ret
Function at 0x1000fe09
Capabilities:
Encode data using xor
Hash data with crc32

Disassembly:
mov edx, dword [esp + 0xc]
push esi
mov esi, dword [esp + 0xc]
not edx
push edi
mov edi, dword [esp + 0xc]
test esi, esi
je 0x1000fe35
movzx eax, byte [edi]
movzx ecx, dl
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100c3538]
inc edi
sub esi, 1
jne 0x1000fe1d
not edx
pop edi
mov eax, edx
pop esi
ret

Function at 0x1000fe3c
Capabilities:
Hash data with crc32

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push esi
mov esi, dword [esp + 0xc]
not ebx
push edi
mov edi, dword [esp + 0x14]
mov edx, ebx
test edi, edi
je 0x1000fea2
mov al, byte [esi]
dec edi
inc esi
cmp al, 0x23
jne 0x1000fe6a
cmp edi, 2
jb 0x1000fe6a
cmp byte [esi], al
jne 0x1000fe6a
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100c3538]
test edi, edi
jne 0x1000fe53
jmp 0x1000fea9
cmp al, 0x23
jne 0x1000fe90
cmp byte [esi], al
jne 0x1000fe90
cmp byte [esi + 1], al
cmove edx, ebx
movzx ecx, dl
movzx eax, al
xor ecx, eax
shr edx, 8
xor edx, dword [ecx*4 + 0x100c3538]
mov al, byte [esi]
inc esi
test al, al
jne 0x1000fe82
pop edi
not edx
pop esi
mov eax, edx
pop ebx
ret

Function at 0x10010833
Capabilities:
Read file on windows

Disassembly:
push dword [esp + 0x18]
push dword [esp + 0x14]
push dword [esp + 0x10]
push dword [esp + 0x10]
call fcn.100a2c12
add esp, 0x10
xor edx, edx
ret

Function at 0x1001c3d2
Capabilities:
Get number of processors

Disassembly:
push ebp
mov ebp, esp
push 0xffffffffffffffff
push 0x100c020e
mov eax, dword fs:[0]
push eax
push esi
mov eax, dword [0x10125474]
xor eax, ebp
push eax
lea eax, [ebp - 0xc]
mov dword fs:[0], eax
mov esi, ecx
cmp dword [esi + 0x30], 0
je 0x1001c406
push dword [esi + 0x30]
call fcn.1001adc6
pop ecx
cmp dword [esi + 0x34], 0
je 0x1001c415
push dword [esi + 0x34]
call fcn.1001adc6
pop ecx
and dword [ebp - 4], 0
lea eax, [esi + 0x64]
push 0x1001bbac
push 2
push 0xc
push eax
call fcn.1009b504
mov ecx, dword [ebp - 0xc]
mov dword fs:[0], ecx
pop ecx
pop esi
leave
ret
Function at 0x1004212b
Capabilities:
Enumerate pe sections

Disassembly:
push ebx
push esi
mov esi, ecx
mov ebx, str.C:UsersdimonDesktopSAMP_API_mainSAMP_API_ONE_HEADERimguiimgui_draw.cpp
push edi
cmp dword [esi + 0x24], 0
jle 0x10042141
cmp dword [esi + 0x28], 0
jg 0x10042154
push 0x8b2
push ebx
push str.TexWidth___0__TexHeight___0
call fcn.100a20b1
add esp, 0xc
mov edi, dword [esp + 0x10]
mov eax, 0xffff
cmp word [edi + 4], ax
jne 0x10042176
push 0x8b3
push ebx
push str.rect__IsPacked__
call fcn.100a20b1
add esp, 0xc
movzx eax, word [edi + 4]
movd xmm1, eax
movzx eax, word [edi + 6]
cvtdq2ps xmm1, xmm1
movd xmm0, eax
mulss xmm1, dword [esi + 0x2c]
mov eax, dword [esp + 0x14]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esi + 0x30]
movss dword [eax], xmm1
movss dword [eax + 4], xmm0
movzx eax, word [edi]
movzx ecx, word [edi + 4]
add ecx, eax
movzx eax, word [edi + 6]
movd xmm1, ecx
movzx ecx, word [edi + 2]
add ecx, eax
mov eax, dword [esp + 0x18]
cvtdq2ps xmm1, xmm1
pop edi
movd xmm0, ecx
mulss xmm1, dword [esi + 0x2c]
cvtdq2ps xmm0, xmm0
mulss xmm0, dword [esi + 0x30]
pop esi
movss dword [eax], xmm1
pop ebx
movss dword [eax + 4], xmm0
ret 0xc
Function at 0x1005748e
Capabilities:
Encode data using xor

Disassembly:
push ebx
mov ebx, dword [esp + 0x10]
push ebp
mov ebp, dword [esp + 0x10]
dec ebx
cmp ebp, ebx
jg 0x100574fa
push 0x1f
pop edx
mov ecx, ebx
and ecx, edx
push esi
mov dword [esp + 0x18], ecx
push edi
mov eax, ebp
mov edi, ebp
or eax, edx
sar edi, 5
cmp ebx, eax
push 0x1f
cmovg ecx, edx
xor esi, esi
inc ecx
xor eax, eax
bts esi, ecx
cmp ecx, 0x20
mov ecx, ebp
cmovae eax, esi
and ecx, edx
xor esi, eax
xor edx, edx
bts edx, ecx
xor eax, eax
dec esi
cmp ecx, 0x20
mov ecx, dword [esp + 0x20]
cmovae eax, edx
add ebp, 0x20
xor edx, eax
and ebp, 0xffffffe0
mov eax, dword [esp + 0x18]
neg edx
and esi, edx
pop edx
or dword [eax + edi*4], esi
cmp ebp, ebx
jle 0x100574aa
pop edi
pop esi
pop ebp
pop ebx
ret
Function at 0x1007964f
Capabilities:
Allocate or change rwx memory
Get system information on windows

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x24
push ebx
push esi
push edi
mov esi, ecx
lea edi, [ebp - 0x24]
push 9
pop ecx
xor eax, eax
xor ebx, ebx
rep stosd dword es:[edi], eax
lea eax, [ebp - 0x24]
mov dword [esi], ebx
push eax
mov dword [esi + 4], ebx
mov dword [esi + 8], ebx
call dword [sym.imp.KERNEL32.dll_GetSystemInfo]
mov ecx, dword [ebp - 0x20]
xor edx, edx
mov eax, dword [ebp + 8]
div ecx
push 0x40
sub ecx, edx
add ecx, dword [ebp + 8]
test edx, edx
push 0x3000
cmove ecx, dword [ebp + 8]
push ecx
push ebx
mov dword [esi + 4], ecx
call dword [sym.imp.KERNEL32.dll_VirtualAlloc]
mov dword [esi], eax
mov eax, esi
pop edi
pop esi
pop ebx
leave
ret 4

Function at 0x10079b83
Capabilities:
Get common file path

Disassembly:
push ebp
mov ebp, esp
sub esp, 0x108
mov eax, dword [0x10125474]
xor eax, ebp
mov dword [ebp - 4], eax
push esi
mov esi, dword [ebp + 8]
lea eax, [ebp - 0x108]
push edi
mov edi, 0x104
push edi
push eax
call dword [sym.imp.KERNEL32.dll_GetSystemDirectoryA]
push str.d3d9.dll
lea eax, [ebp - 0x108]
push edi
push eax
call fcn.100afcf1
add esp, 0xc
lea eax, [ebp - 0x108]
push eax
call dword [sym.imp.KERNEL32.dll_LoadLibraryA]
mov edx, eax
lea ecx, [edx + esi]
cmp edx, ecx
jae 0x10079bfc
mov ecx, 0x8689
inc edx
mov eax, 0x6c7
cmp word [edx], ax
jne 0x10079bf5
cmp word [edx + 6], cx
jne 0x10079bf5
cmp word [edx + 0xc], cx
je 0x10079c0f
lea eax, [esi + edx]
cmp edx, eax
jb 0x10079bde
inc edx
mov ecx, dword [ebp - 4]
mov eax, edx
pop edi
xor ecx, ebp
pop esi
call fcn.1009b3f5
leave
ret 4
add edx, 2
jmp 0x10079bfd
Function at 0x10081e37
Capabilities:
Encode data using xor

Disassembly:
sub esp, 0x18
push ebx
mov ebx, dword [esp + 0x24]
mov eax, 0x58bf
push ebp
push esi
mov esi, dword [esp + 0x28]
xor ebp, ebp
mov dword [esp + 0x14], ecx
mov dword [esp + 0x20], ebp
mov dword [esp + 0x18], 0xce6dd971
mov word [esp + 0x1c], ax
push edi
test esi, esi
je 0x10081e6a
test ebx, ebx
jne 0x10081e7e
push 0x44
push str.C:UsersdimonDesktopSAMP_API_mainSAMP_API_ONE_HEADERSAMPRakNetDataBlockEncryptor.cpp
push str.input__inputLength
call fcn.100a20b1
add esp, 0xc
call fcn.1009205b
lea ecx, [ebx + 5]
mov byte [esp + 0x2c], al
and cl, 0xf
mov bl, 0xf
sub bl, cl
call fcn.1009205b
mov edx, dword [esp + 0x38]
mov edi, dword [esp + 0x34]
shl al, 4
or al, bl
mov dword [esp + 0x14], eax
movzx eax, bl
mov ebx, dword [esp + 0x30]
mov dword [esp + 0x10], eax
push ebx
push esi
lea ecx, [ebx + 6]
add ecx, eax
add eax, 6
add eax, edi
mov dword [edx], ecx
push eax
cmp esi, edi
jne 0x10081ecc
call fcn.1009db70
jmp 0x10081ed1
call fcn.1009db70
mov eax, dword [esp + 0x20]
add esp, 0xc
mov cl, byte [esp + 0x2c]
mov esi, ebp
mov byte [edi + 5], al
mov eax, dword [esp + 0x10]
mov byte [edi + 4], cl
test eax, eax
je 0x10081f04
mov ebx, eax
call fcn.1009205b
mov byte [edi + esi + 6], al
inc esi
cmp esi, ebx
jb 0x10081eee
mov ebx, dword [esp + 0x30]
mov eax, dword [esp + 0x10]
add ebx, 2
lea ecx, [esp + 0x1c]
add eax, ebx
push eax
lea eax, [edi + 4]
push eax
call fcn.1008105d
mov ebx, dword [esp + 0x18]
mov eax, dword [esp + 0x24]
push edi
push 0x10
push edi
mov dword [edi], eax
lea eax, [ebx + 0x240]
push ebx
push eax
call fcn.10097319
mov eax, dword [esp + 0x4c]
add esp, 0x14
mov esi, dword [eax]
sub esi, 0x10
cmp esi, 0x10
jb 0x10081f78
add edi, esi
push 0x10
mov ecx, edi
sub ebp, esi
pop edx
mov al, byte [ecx + ebp]
xor byte [ecx], al
inc ecx
sub edx, 1
jne 0x10081f4c
push edi
push 0x10
push edi
lea eax, [ebx + 0x240]
push ebx
push eax
call fcn.10097319
mov ebp, esi
add esp, 0x14
sub esi, 0x10
sub edi, 0x10
cmp esi, 0x10
jae 0x10081f45
pop edi
pop esi
pop ebp
pop ebx
add esp, 0x18
ret 0x10
Function at 0x1008ca61
Capabilities:
Encode data using xor

Disassembly:
push 0x1f8
mov eax, 0x100c18aa
call fcn.1009b67d
mov dword [ebp - 0x1d8], ecx
mov esi, dword [ebp + 8]
lea ecx, [ebp - 0x1d0]
mov edi, dword [ebp + 0xc]
mov dword [ebp - 0x1d4], esi
mov dword [ebp - 0x1e4], edi
call fcn.10091e90
and dword [ebp - 4], 0
cmp dword [esi + 0x83c], 4
jne 0x1008cbd9
mov eax, dword [edi + 0x15]
lea esi, [edi + 0x19]
push 8
pop ecx
lea edi, [ebp - 0x7c]
mov dword [ebp - 0x1e0], eax
rep movsd dword es:[edi], dword [esi]
mov edi, dword [ebp - 0x1d8]
mov dword [ebp - 0x1dc], eax
cmp byte [edi + 0x9a5], 1
jne 0x1008cb05
cmp byte [edi + 0x9a4], 0
jne 0x1008cb05
lea eax, [ebp - 0x1dc]
mov eax, dword [eax]
cmp eax, dword [edi + 0x980]
jne 0x1008cbe1
lea edx, [ebp - 0x7c]
xor ecx, ecx
mov eax, dword [edx + ecx*4]
cmp eax, dword [edi + ecx*4 + 0x984]
jne 0x1008cbe1
inc ecx
cmp ecx, 8
jne 0x1008caef
xor esi, esi
call fcn.1009205b
mov dword [ebp + esi - 0x24], eax
add esi, 4
cmp esi, 0x14
jl 0x1008cb07
and dword [ebp - 0x1e8], 0
lea eax, [ebp - 0x7c]
push 5
pop ecx
xorps xmm0, xmm0
lea esi, [ebp - 0x24]
movlpd qword [ebp - 0x1f0], xmm0
lea edi, [ebp - 0x204]
push eax
push dword [ebp - 0x1e0]
rep movsd dword es:[edi], dword [esi]
lea ecx, [ebp - 0x1d0]
call fcn.10091ecb
lea eax, [ebp - 0x9c]
push eax
lea eax, [ebp - 0x204]
push eax
lea ecx, [ebp - 0x1d0]
call fcn.10091de8
mov esi, dword [ebp - 0x1e4]
xor edx, edx
mov ecx, dword [ebp - 0x1d4]
inc esi
mov al, byte [esi + edx]
xor al, byte [ebp + edx - 0x24]
mov byte [ecx + edx + 0x81c], al
inc edx
cmp edx, 0x10
jl 0x1008cb75
mov byte [ecx + 0x82c], 1
lea edi, [ebp - 0x5b]
push 5
pop ecx
mov byte [ebp - 0x5c], 0x10
rep movsd dword es:[edi], dword [esi]
push 8
pop ecx
lea esi, [ebp - 0x9c]
lea edi, [ebp - 0x47]
rep movsd dword es:[edi], dword [esi]
call fcn.100853c5
xor ecx, ecx
push ecx
push eax
mov eax, dword [ebp - 0x1d4]
push ecx
push ecx
push dword [eax + 8]
push dword [eax + 4]
lea eax, [ebp - 0x5c]
push ecx
push 6
push ecx
mov ecx, dword [ebp - 0x1d8]
push 0x1a8
push eax
call fcn.1008e1dd
call fcn.1009b63b
ret 8
push 1
call fcn.1008e593
mov esi, eax
mov eax, dword [ebp - 0x1d4]
pop ecx
push 1
mov ecx, dword [esi + 0x14]
mov byte [ecx], 0x1c
mov dword [esi + 0x10], 8
mov ecx, dword [eax + 4]
mov dword [esi + 4], ecx
mov ax, word [eax + 8]
mov word [esi + 8], ax
push dword [esi + 8]
push ecx
mov ecx, edi
call fcn.1008bfc2
push esi
mov ecx, edi
mov word [esi], ax
call fcn.10091743
mov ecx, dword [ebp - 0x1d4]
mov dword [ecx + 0x83c], 2
jmp 0x1008cbd9
Function at 0x1009205b
Capabilities:
Encode data using xor
Generate random numbers using a mersenne twister

Disassembly:
cmp dword [0x101019d0], 0xffffffff
push ebx
push esi
mov ebx, 0x1012cf30
mov esi, 0x1012cf38
push edi
mov edi, ebx
jge 0x10091f6f
push 0x1105
call fcn.10091f1e
pop ecx
mov eax, dword [0x1012cf30]
mov edx, dword [0x1012cf34]
push ebp
mov dword [0x101019d0], 0x26f
mov ebp, 0xe3
mov dword [0x1012d8f4], 0x1012cf34
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [esi + 0x62c]
mov dword [edi], ecx
add edi, 4
mov edx, dword [esi]
add esi, 4
sub ebp, 1
jne 0x10091f94
mov ebp, 0x18c
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
lea ebx, [ebx + 4]
mov dword [edi], ecx
lea edi, [edi + 4]
mov edx, dword [esi]
lea esi, [esi + 4]
sub ebp, 1
jne 0x10091fd0
mov edx, dword [0x1012cf30]
mov ecx, edx
xor ecx, eax
and ecx, 0x7ffffffe
xor ecx, eax
mov eax, edx
and al, 1
shr ecx, 1
movzx eax, al
neg eax
pop ebp
sbb eax, eax
and eax, 0x9908b0df
xor ecx, eax
mov eax, edx
xor ecx, dword [ebx]
shr eax, 0xb
xor edx, eax
mov dword [edi], ecx
mov eax, edx
and eax, 0xff3a58ad
shl eax, 7
xor edx, eax
mov eax, edx
and eax, 0xffffdf8c
shl eax, 0xf
xor edx, eax
pop edi
mov eax, edx
shr eax, 0x12
pop esi
xor eax, edx
pop ebx
ret
sub dword [0x101019d0], 1
js 0x10091f4c
mov eax, dword [0x1012d8f4]
mov ecx, dword [eax]
add eax, 4
mov dword [0x1012d8f4], eax
mov eax, ecx
shr eax, 0xb
xor ecx, eax
mov eax, ecx
and eax, 0xff3a58ad
shl eax, 7
xor ecx, eax
mov eax, ecx
and eax, 0xffffdf8c
shl eax, 0xf
xor ecx, eax
mov eax, ecx
shr eax, 0x12
xor eax, ecx
ret